CacheAccessPolicyArgs

data class CacheAccessPolicyArgs(val name: Output<String>? = null, val permissions: Output<String>? = null, val redisCacheId: Output<String>? = null) : ConvertibleToJava<CacheAccessPolicyArgs>

Manages a Redis Cache Access Policy

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
exampleCacheAccessPolicy:
type: azure:redis:CacheAccessPolicy
name: example
properties:
name: example
redisCacheId: ${exampleCache.id}
permissions: +@read +@connection +cluster|info

Import

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

$ pulumi import azure:redis/cacheAccessPolicy:CacheAccessPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Cache/redis/cache1/accessPolicies/policy1

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, permissions: Output<String>? = null, redisCacheId: Output<String>? = null)

Properties

Link copied to clipboard
val name: Output<String>? = null

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

Link copied to clipboard
val permissions: Output<String>? = null

Permissions that are going to be assigned to this Redis Cache Access Policy.

Link copied to clipboard
val redisCacheId: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): CacheAccessPolicyArgs