CacheAccessPolicyAssignment

class CacheAccessPolicyAssignment : KotlinCustomResource

Manages a Redis Cache Access Policy Assignment

Example Usage

resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: East US
exampleCache:
type: azure:redis:Cache
name: example
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
capacity: 1
family: P
skuName: Premium
enableNonSslPort: false
redisConfiguration:
maxmemoryReserved: 2
maxmemoryDelta: 2
maxmemoryPolicy: allkeys-lru
exampleCacheAccessPolicyAssignment:
type: azure:redis:CacheAccessPolicyAssignment
name: example
properties:
name: example
redisCacheId: ${exampleCache.id}
accessPolicyName: Data Contributor
objectId: ${test.objectId}
objectIdAlias: ServicePrincipal
variables:
test:
fn::invoke:
function: azure:core:getClientConfig
arguments: {}

Import

Redis Cache Policy Assignment can be imported using the resource id, e.g.

$ pulumi import azure:redis/cacheAccessPolicyAssignment:CacheAccessPolicyAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Cache/redis/cache1/accessPolicyAssignments/assignment1

Properties

Link copied to clipboard

The name of the Access Policy to be assigned. Changing this forces a new Redis Cache Access Policy Assignment to be created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the Redis Cache Access Policy Assignment. Changing this forces a new Redis Cache Access Policy Assignment to be created.

Link copied to clipboard
val objectId: Output<String>

The principal ID to be assigned the Access Policy. Changing this forces a new Redis Cache Access Policy Assignment to be created.

Link copied to clipboard
val objectIdAlias: Output<String>

The alias of the principal ID. User-friendly name for object ID. Also represents username for token based authentication. Changing this forces a new Redis Cache Access Policy Assignment to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val redisCacheId: Output<String>

The ID of the Redis Cache. Changing this forces a new Redis Cache Access Policy Assignment to be created.

Link copied to clipboard
val urn: Output<String>