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

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.apimanagement.Service;
import com.pulumi.azure.apimanagement.ServiceArgs;
import com.pulumi.azure.redis.Cache;
import com.pulumi.azure.redis.CacheArgs;
import com.pulumi.azure.redis.inputs.CacheRedisConfigurationArgs;
import com.pulumi.azure.apimanagement.RedisCache;
import com.pulumi.azure.apimanagement.RedisCacheArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.publisherName("pub1")
.publisherEmail("pub1@email.com")
.skuName("Consumption_0")
.build());
var exampleCache = new Cache("exampleCache", CacheArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.capacity(1)
.family("C")
.skuName("Basic")
.enableNonSslPort(false)
.minimumTlsVersion("1.2")
.redisConfiguration()
.build());
var exampleRedisCache = new RedisCache("exampleRedisCache", RedisCacheArgs.builder()
.apiManagementId(exampleService.id())
.connectionString(exampleCache.primaryConnectionString())
.description("Redis cache instances")
.redisCacheId(exampleCache.id())
.cacheLocation("East Us")
.build());
}
}

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
fun RedisCacheArgs(apiManagementId: Output<String>? = null, cacheLocation: Output<String>? = null, connectionString: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, redisCacheId: Output<String>? = null)

Functions

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

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.