EnterpriseDatabaseArgs

data class EnterpriseDatabaseArgs(val clientProtocol: Output<String>? = null, val clusterId: Output<String>? = null, val clusteringPolicy: Output<String>? = null, val evictionPolicy: Output<String>? = null, val linkedDatabaseGroupNickname: Output<String>? = null, val linkedDatabaseIds: Output<List<String>>? = null, val modules: Output<List<EnterpriseDatabaseModuleArgs>>? = null, val name: Output<String>? = null, val port: Output<Int>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<EnterpriseDatabaseArgs>

Manages a Redis Enterprise Database.

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.redis.EnterpriseCluster;
import com.pulumi.azure.redis.EnterpriseClusterArgs;
import com.pulumi.azure.redis.EnterpriseDatabase;
import com.pulumi.azure.redis.EnterpriseDatabaseArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-redisenterprise")
.location("West Europe")
.build());
var exampleEnterpriseCluster = new EnterpriseCluster("exampleEnterpriseCluster", EnterpriseClusterArgs.builder()
.name("example-redisenterprise")
.resourceGroupName(example.name())
.location(example.location())
.skuName("Enterprise_E20-4")
.build());
var example1 = new EnterpriseCluster("example1", EnterpriseClusterArgs.builder()
.name("example-redisenterprise1")
.resourceGroupName(example.name())
.location(example.location())
.skuName("Enterprise_E20-4")
.build());
var exampleEnterpriseDatabase = new EnterpriseDatabase("exampleEnterpriseDatabase", EnterpriseDatabaseArgs.builder()
.name("default")
.resourceGroupName(example.name())
.clusterId(exampleEnterpriseCluster.id())
.clientProtocol("Encrypted")
.clusteringPolicy("EnterpriseCluster")
.evictionPolicy("NoEviction")
.port(10000)
.linkedDatabaseIds(
exampleEnterpriseCluster.id().applyValue(id -> String.format("%s/databases/default", id)),
example1.id().applyValue(id -> String.format("%s/databases/default", id)))
.linkedDatabaseGroupNickname("tftestGeoGroup")
.build());
}
}

Import

Redis Enterprise Databases can be imported using the resource id, e.g.

$ pulumi import azure:redis/enterpriseDatabase:EnterpriseDatabase example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Cache/redisEnterprise/cluster1/databases/database1

Constructors

Link copied to clipboard
fun EnterpriseDatabaseArgs(clientProtocol: Output<String>? = null, clusterId: Output<String>? = null, clusteringPolicy: Output<String>? = null, evictionPolicy: Output<String>? = null, linkedDatabaseGroupNickname: Output<String>? = null, linkedDatabaseIds: Output<List<String>>? = null, modules: Output<List<EnterpriseDatabaseModuleArgs>>? = null, name: Output<String>? = null, port: Output<Int>? = null, resourceGroupName: Output<String>? = null)

Functions

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

Properties

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

Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Possible values are Encrypted and Plaintext. Defaults to Encrypted. Changing this forces a new Redis Enterprise Database to be created.

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

The resource id of the Redis Enterprise Cluster to deploy this Redis Enterprise Database. Changing this forces a new Redis Enterprise Database to be created.

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

Clustering policy Specified at create time. Possible values are EnterpriseCluster and OSSCluster. Defaults to OSSCluster. Changing this forces a new Redis Enterprise Database to be created.

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

Redis eviction policy possible values are AllKeysLFU, AllKeysLRU, AllKeysRandom, VolatileLRU, VolatileLFU, VolatileTTL, VolatileRandom and NoEviction. Changing this forces a new Redis Enterprise Database to be created. Defaults to VolatileLRU.

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

Nickname of the group of linked databases. Changing this force a new Redis Enterprise Geo Database to be created.

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

A list of database resources to link with this database with a maximum of 5.

Link copied to clipboard

A module block as defined below. Changing this forces a new resource to be created.

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

The name which should be used for this Redis Enterprise Database. Currently the acceptable value for this argument is default. Defaults to default. Changing this forces a new Redis Enterprise Database to be created.

Link copied to clipboard
val port: Output<Int>? = null

TCP port of the database endpoint. Specified at create time. Defaults to an available port. Changing this forces a new Redis Enterprise Database to be created. Defaults to 10000.

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

The name of the Resource Group where the Redis Enterprise Database should exist. Changing this forces a new Redis Enterprise Database to be created.