import * as pulumi from "@pulumi/pulumi"; /** * Manages a Managed Redis Access Policy Assignment. * * ## Import * * Managed Redis Access Policy Assignments can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:managedredis/accessPolicyAssignment:AccessPolicyAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Cache/redisEnterprise/redis1/databases/default/accessPolicyAssignments/00000000-0000-0000-0000-000000000000 * ``` */ export declare class AccessPolicyAssignment extends pulumi.CustomResource { /** * Get an existing AccessPolicyAssignment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AccessPolicyAssignmentState, opts?: pulumi.CustomResourceOptions): AccessPolicyAssignment; /** * Returns true if the given object is an instance of AccessPolicyAssignment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AccessPolicyAssignment; /** * The ID of the Managed Redis instance. Changing this forces a new Access Policy Assignment to be created. */ readonly managedRedisId: pulumi.Output; /** * The object ID of the Azure Active Directory user, group, service principal, or managed identity to assign the access policy to. Changing this forces a new Access Policy Assignment to be created. * * > **Note:** Access Policy Assignments are created on the `default` database of the Managed Redis instance. */ readonly objectId: pulumi.Output; /** * Create a AccessPolicyAssignment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AccessPolicyAssignmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AccessPolicyAssignment resources. */ export interface AccessPolicyAssignmentState { /** * The ID of the Managed Redis instance. Changing this forces a new Access Policy Assignment to be created. */ managedRedisId?: pulumi.Input; /** * The object ID of the Azure Active Directory user, group, service principal, or managed identity to assign the access policy to. Changing this forces a new Access Policy Assignment to be created. * * > **Note:** Access Policy Assignments are created on the `default` database of the Managed Redis instance. */ objectId?: pulumi.Input; } /** * The set of arguments for constructing a AccessPolicyAssignment resource. */ export interface AccessPolicyAssignmentArgs { /** * The ID of the Managed Redis instance. Changing this forces a new Access Policy Assignment to be created. */ managedRedisId: pulumi.Input; /** * The object ID of the Azure Active Directory user, group, service principal, or managed identity to assign the access policy to. Changing this forces a new Access Policy Assignment to be created. * * > **Note:** Access Policy Assignments are created on the `default` database of the Managed Redis instance. */ objectId: pulumi.Input; }