SpringCloudAppRedisAssociationArgs

data class SpringCloudAppRedisAssociationArgs(val name: Output<String>? = null, val redisAccessKey: Output<String>? = null, val redisCacheId: Output<String>? = null, val springCloudAppId: Output<String>? = null, val sslEnabled: Output<Boolean>? = null) : ConvertibleToJava<SpringCloudAppRedisAssociationArgs>

Associates a Spring Cloud Application with a Redis Cache.

Example Usage

resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
name: example
properties:
name: example-springcloud
resourceGroupName: ${example.name}
location: ${example.location}
exampleSpringCloudApp:
type: azure:appplatform:SpringCloudApp
name: example
properties:
name: example-springcloudapp
resourceGroupName: ${example.name}
serviceName: ${exampleSpringCloudService.name}
exampleCache:
type: azure:redis:Cache
name: example
properties:
name: example-cache
location: ${example.location}
resourceGroupName: ${example.name}
capacity: 0
family: C
skuName: Basic
enableNonSslPort: true
exampleSpringCloudAppRedisAssociation:
type: azure:appplatform:SpringCloudAppRedisAssociation
name: example
properties:
name: example-bind
springCloudAppId: ${exampleSpringCloudApp.id}
redisCacheId: ${exampleCache.id}
redisAccessKey: ${exampleCache.primaryAccessKey}
sslEnabled: true

Import

Spring Cloud Application Redis Association can be imported using the resource id, e.g.

$ pulumi import azure:appplatform/springCloudAppRedisAssociation:SpringCloudAppRedisAssociation example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.AppPlatform/spring/myservice/apps/myapp/bindings/bind1

Constructors

Link copied to clipboard
constructor(name: Output<String>? = null, redisAccessKey: Output<String>? = null, redisCacheId: Output<String>? = null, springCloudAppId: Output<String>? = null, sslEnabled: Output<Boolean>? = null)

Properties

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

Specifies the name of the Spring Cloud Application Association. Changing this forces a new resource to be created.

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

Specifies the Redis Cache access key.

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

Specifies the Redis Cache resource ID. Changing this forces a new resource to be created.

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

Specifies the Spring Cloud Application resource ID in which the Association is created. Changing this forces a new resource to be created.

Link copied to clipboard
val sslEnabled: Output<Boolean>? = null

Should SSL be used when connecting to Redis? Defaults to true.

Functions

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