Cache Access Policy Assignment Args
data class CacheAccessPolicyAssignmentArgs(val accessPolicyName: Output<String>? = null, val name: Output<String>? = null, val objectId: Output<String>? = null, val objectIdAlias: Output<String>? = null, val redisCacheId: Output<String>? = null) : ConvertibleToJava<CacheAccessPolicyAssignmentArgs>
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: {}
Content copied to clipboard
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
Content copied to clipboard
Constructors
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
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
The ID of the Redis Cache. Changing this forces a new Redis Cache Access Policy Assignment to be created.