azure-native.redis.AccessPolicyAssignment
Explore with Pulumi AI
Response to an operation on access policy assignment
Uses Azure REST API version 2024-11-01.
Other available API versions: 2023-05-01-preview, 2023-08-01, 2024-03-01, 2024-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native redis [ApiVersion]
. See the version guide for details.
Create AccessPolicyAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessPolicyAssignment(name: string, args: AccessPolicyAssignmentArgs, opts?: CustomResourceOptions);
@overload
def AccessPolicyAssignment(resource_name: str,
args: AccessPolicyAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessPolicyAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_policy_name: Optional[str] = None,
cache_name: Optional[str] = None,
object_id: Optional[str] = None,
object_id_alias: Optional[str] = None,
resource_group_name: Optional[str] = None,
access_policy_assignment_name: Optional[str] = None)
func NewAccessPolicyAssignment(ctx *Context, name string, args AccessPolicyAssignmentArgs, opts ...ResourceOption) (*AccessPolicyAssignment, error)
public AccessPolicyAssignment(string name, AccessPolicyAssignmentArgs args, CustomResourceOptions? opts = null)
public AccessPolicyAssignment(String name, AccessPolicyAssignmentArgs args)
public AccessPolicyAssignment(String name, AccessPolicyAssignmentArgs args, CustomResourceOptions options)
type: azure-native:redis:AccessPolicyAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AccessPolicyAssignmentArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. AccessPolicyAssignmentArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AccessPolicyAssignmentArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AccessPolicyAssignmentArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. AccessPolicyAssignmentArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var accessPolicyAssignmentResource = new AzureNative.Redis.AccessPolicyAssignment("accessPolicyAssignmentResource", new()
{
AccessPolicyName = "string",
CacheName = "string",
ObjectId = "string",
ObjectIdAlias = "string",
ResourceGroupName = "string",
AccessPolicyAssignmentName = "string",
});
example, err := redis.NewAccessPolicyAssignment(ctx, "accessPolicyAssignmentResource", &redis.AccessPolicyAssignmentArgs{
AccessPolicyName: pulumi.String("string"),
CacheName: pulumi.String("string"),
ObjectId: pulumi.String("string"),
ObjectIdAlias: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
AccessPolicyAssignmentName: pulumi.String("string"),
})
var accessPolicyAssignmentResource = new AccessPolicyAssignment("accessPolicyAssignmentResource", AccessPolicyAssignmentArgs.builder()
.accessPolicyName("string")
.cacheName("string")
.objectId("string")
.objectIdAlias("string")
.resourceGroupName("string")
.accessPolicyAssignmentName("string")
.build());
access_policy_assignment_resource = azure_native.redis.AccessPolicyAssignment("accessPolicyAssignmentResource",
access_policy_name="string",
cache_name="string",
object_id="string",
object_id_alias="string",
resource_group_name="string",
access_policy_assignment_name="string")
const accessPolicyAssignmentResource = new azure_native.redis.AccessPolicyAssignment("accessPolicyAssignmentResource", {
accessPolicyName: "string",
cacheName: "string",
objectId: "string",
objectIdAlias: "string",
resourceGroupName: "string",
accessPolicyAssignmentName: "string",
});
type: azure-native:redis:AccessPolicyAssignment
properties:
accessPolicyAssignmentName: string
accessPolicyName: string
cacheName: string
objectId: string
objectIdAlias: string
resourceGroupName: string
AccessPolicyAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AccessPolicyAssignment resource accepts the following input properties:
- Access
Policy Name This property is required. string - The name of the access policy that is being assigned
- Cache
Name This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- Object
Id This property is required. string - Object Id to assign access policy to
- Object
Id Alias This property is required. string - User friendly name for object id. Also represents username for token based authentication
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Access
Policy Assignment Name Changes to this property will trigger replacement.
- The name of the access policy assignment.
- Access
Policy Name This property is required. string - The name of the access policy that is being assigned
- Cache
Name This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- Object
Id This property is required. string - Object Id to assign access policy to
- Object
Id Alias This property is required. string - User friendly name for object id. Also represents username for token based authentication
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Access
Policy Assignment Name Changes to this property will trigger replacement.
- The name of the access policy assignment.
- access
Policy Name This property is required. String - The name of the access policy that is being assigned
- cache
Name This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- object
Id This property is required. String - Object Id to assign access policy to
- object
Id Alias This property is required. String - User friendly name for object id. Also represents username for token based authentication
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- access
Policy Assignment Name Changes to this property will trigger replacement.
- The name of the access policy assignment.
- access
Policy Name This property is required. string - The name of the access policy that is being assigned
- cache
Name This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- object
Id This property is required. string - Object Id to assign access policy to
- object
Id Alias This property is required. string - User friendly name for object id. Also represents username for token based authentication
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- access
Policy Assignment Name Changes to this property will trigger replacement.
- The name of the access policy assignment.
- access_
policy_ name This property is required. str - The name of the access policy that is being assigned
- cache_
name This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- object_
id This property is required. str - Object Id to assign access policy to
- object_
id_ alias This property is required. str - User friendly name for object id. Also represents username for token based authentication
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- access_
policy_ assignment_ name Changes to this property will trigger replacement.
- The name of the access policy assignment.
- access
Policy Name This property is required. String - The name of the access policy that is being assigned
- cache
Name This property is required. Changes to this property will trigger replacement.
- The name of the Redis cache.
- object
Id This property is required. String - Object Id to assign access policy to
- object
Id Alias This property is required. String - User friendly name for object id. Also represents username for token based authentication
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- access
Policy Assignment Name Changes to this property will trigger replacement.
- The name of the access policy assignment.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessPolicyAssignment resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of an access policy assignment set
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of an access policy assignment set
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of an access policy assignment set
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Provisioning state of an access policy assignment set
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - Provisioning state of an access policy assignment set
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of an access policy assignment set
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:redis:AccessPolicyAssignment accessPolicyAssignmentName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0