EnterpriseDatabase

class EnterpriseDatabase : KotlinCustomResource

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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleEnterpriseCluster = new EnterpriseCluster("exampleEnterpriseCluster", EnterpriseClusterArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.skuName("Enterprise_E20-4")
.build());
var example1 = new EnterpriseCluster("example1", EnterpriseClusterArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.skuName("Enterprise_E20-4")
.build());
var exampleEnterpriseDatabase = new EnterpriseDatabase("exampleEnterpriseDatabase", EnterpriseDatabaseArgs.builder()
.resourceGroupName(exampleResourceGroup.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

Properties

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

Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. 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>

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

Clustering policy - default is OSSCluster. 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>?

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

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

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

Link copied to clipboard

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>

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

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

The Primary Access Key for the Redis Enterprise Database Instance.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

The Secondary Access Key for the Redis Enterprise Database Instance.

Link copied to clipboard
val urn: Output<String>