RedisCacheArgs

data class RedisCacheArgs(val apiManagementId: Output<String>? = null, val cacheLocation: Output<String>? = null, val connectionString: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val redisCacheId: Output<String>? = null) : ConvertibleToJava<RedisCacheArgs>

Manages a API Management Redis Cache.

Example Usage

resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleService:
type: azure:apimanagement:Service
name: example
properties:
name: example-apim
location: ${example.location}
resourceGroupName: ${example.name}
publisherName: pub1
publisherEmail: pub1@email.com
skuName: Consumption_0
exampleCache:
type: azure:redis:Cache
name: example
properties:
name: example-cache
location: ${example.location}
resourceGroupName: ${example.name}
capacity: 1
family: C
skuName: Basic
enableNonSslPort: false
minimumTlsVersion: '1.2'
redisConfiguration: {}
exampleRedisCache:
type: azure:apimanagement:RedisCache
name: example
properties:
name: example-Redis-Cache
apiManagementId: ${exampleService.id}
connectionString: ${exampleCache.primaryConnectionString}
description: Redis cache instances
redisCacheId: ${exampleCache.id}
cacheLocation: East Us

API Providers

This resource uses the following Azure API Providers:

  • Microsoft.ApiManagement: 2022-08-01

Import

API Management Redis Caches can be imported using the resource id, e.g.

$ pulumi import azure:apimanagement/redisCache:RedisCache example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/caches/cache1

Constructors

Link copied to clipboard
constructor(apiManagementId: Output<String>? = null, cacheLocation: Output<String>? = null, connectionString: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, redisCacheId: Output<String>? = null)

Properties

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

The resource ID of the API Management Service from which to create this external cache. Changing this forces a new API Management Redis Cache to be created.

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

The location where to use cache from. Possible values are default and valid Azure regions. Defaults to default.

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

The connection string to the Cache for Redis.

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

The description of the API Management Redis Cache.

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

The name which should be used for this API Management Redis Cache. Changing this forces a new API Management Redis Cache to be created.

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

The resource ID of the Cache for Redis.

Functions

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