RedisCache

class RedisCache : KotlinCustomResource

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

Properties

Link copied to clipboard
val apiManagementId: Output<String>

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>?

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

Link copied to clipboard

The connection string to the Cache for Redis.

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

The description of the API Management Redis Cache.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val redisCacheId: Output<String>?

The resource ID of the Cache for Redis.

Link copied to clipboard
val urn: Output<String>