import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing Managed Redis Access Policy Assignment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.managedredis.getAccessPolicyAssignment({ * objectId: "00000000-0000-0000-0000-000000000000", * managedRedisName: "example-managedredis", * resourceGroupName: "example-resources", * }); * export const objectId = example.then(example => example.objectId); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Cache` - 2025-07-01 */ export declare function getAccessPolicyAssignment(args: GetAccessPolicyAssignmentArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAccessPolicyAssignment. */ export interface GetAccessPolicyAssignmentArgs { /** * The name of the Managed Redis instance. */ managedRedisName: string; /** * The object ID of the Azure Active Directory user, group, service principal, or managed identity. */ objectId: string; /** * The name of the Resource Group where the Managed Redis instance exists. * * > **Note:** This data source retrieves Access Policy Assignments from the `default` database of the Managed Redis instance. */ resourceGroupName: string; } /** * A collection of values returned by getAccessPolicyAssignment. */ export interface GetAccessPolicyAssignmentResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly managedRedisName: string; readonly objectId: string; readonly resourceGroupName: string; } /** * Use this data source to access information about an existing Managed Redis Access Policy Assignment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.managedredis.getAccessPolicyAssignment({ * objectId: "00000000-0000-0000-0000-000000000000", * managedRedisName: "example-managedredis", * resourceGroupName: "example-resources", * }); * export const objectId = example.then(example => example.objectId); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Cache` - 2025-07-01 */ export declare function getAccessPolicyAssignmentOutput(args: GetAccessPolicyAssignmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAccessPolicyAssignment. */ export interface GetAccessPolicyAssignmentOutputArgs { /** * The name of the Managed Redis instance. */ managedRedisName: pulumi.Input; /** * The object ID of the Azure Active Directory user, group, service principal, or managed identity. */ objectId: pulumi.Input; /** * The name of the Resource Group where the Managed Redis instance exists. * * > **Note:** This data source retrieves Access Policy Assignments from the `default` database of the Managed Redis instance. */ resourceGroupName: pulumi.Input; }