Cache Args
data class CacheArgs(val capacity: Output<Int>? = null, val enableNonSslPort: Output<Boolean>? = null, val family: Output<String>? = null, val identity: Output<CacheIdentityArgs>? = null, val location: Output<String>? = null, val minimumTlsVersion: Output<String>? = null, val name: Output<String>? = null, val patchSchedules: Output<List<CachePatchScheduleArgs>>? = null, val privateStaticIpAddress: Output<String>? = null, val publicNetworkAccessEnabled: Output<Boolean>? = null, val redisConfiguration: Output<CacheRedisConfigurationArgs>? = null, val redisVersion: Output<String>? = null, val replicasPerMaster: Output<Int>? = null, val replicasPerPrimary: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val shardCount: Output<Int>? = null, val skuName: Output<String>? = null, val subnetId: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val tenantSettings: Output<Map<String, String>>? = null, val zones: Output<List<String>>? = null) : ConvertibleToJava<CacheArgs>
Manages a Redis Cache.
Note: Redis version 4 is being retired and no longer supports creating new instances. Version 4 will be removed in a future release. Redis Version 4 Retirement
Example Usage
This example provisions a Standard Redis Cache.
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.redis.Cache;
import com.pulumi.azure.redis.CacheArgs;
import com.pulumi.azure.redis.inputs.CacheRedisConfigurationArgs;
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 exampleCache = new Cache("exampleCache", CacheArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.capacity(2)
.family("C")
.skuName("Standard")
.enableNonSslPort(false)
.minimumTlsVersion("1.2")
.redisConfiguration()
.build());
}
}
Content copied to clipboard
Relevant Links
Import
Redis Cache's can be imported using the resource id
, e.g.
$ pulumi import azure:redis/cache:Cache cache1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Cache/redis/cache1
Content copied to clipboard
Constructors
Link copied to clipboard
fun CacheArgs(capacity: Output<Int>? = null, enableNonSslPort: Output<Boolean>? = null, family: Output<String>? = null, identity: Output<CacheIdentityArgs>? = null, location: Output<String>? = null, minimumTlsVersion: Output<String>? = null, name: Output<String>? = null, patchSchedules: Output<List<CachePatchScheduleArgs>>? = null, privateStaticIpAddress: Output<String>? = null, publicNetworkAccessEnabled: Output<Boolean>? = null, redisConfiguration: Output<CacheRedisConfigurationArgs>? = null, redisVersion: Output<String>? = null, replicasPerMaster: Output<Int>? = null, replicasPerPrimary: Output<Int>? = null, resourceGroupName: Output<String>? = null, shardCount: Output<Int>? = null, skuName: Output<String>? = null, subnetId: Output<String>? = null, tags: Output<Map<String, String>>? = null, tenantSettings: Output<Map<String, String>>? = null, zones: Output<List<String>>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard