CassandraKeyspaceArgs

data class CassandraKeyspaceArgs(val accountName: Output<String>? = null, val autoscaleSettings: Output<CassandraKeyspaceAutoscaleSettingsArgs>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val throughput: Output<Int>? = null) : ConvertibleToJava<CassandraKeyspaceArgs>

Manages a Cassandra KeySpace within a Cosmos DB Account.

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.cosmosdb.Account;
import com.pulumi.azure.cosmosdb.AccountArgs;
import com.pulumi.azure.cosmosdb.inputs.AccountCapabilityArgs;
import com.pulumi.azure.cosmosdb.inputs.AccountConsistencyPolicyArgs;
import com.pulumi.azure.cosmosdb.inputs.AccountGeoLocationArgs;
import com.pulumi.azure.cosmosdb.CassandraKeyspace;
import com.pulumi.azure.cosmosdb.CassandraKeyspaceArgs;
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 exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.offerType("Standard")
.capabilities(AccountCapabilityArgs.builder()
.name("EnableCassandra")
.build())
.consistencyPolicy(AccountConsistencyPolicyArgs.builder()
.consistencyLevel("Strong")
.build())
.geoLocations(AccountGeoLocationArgs.builder()
.location(exampleResourceGroup.location())
.failoverPriority(0)
.build())
.build());
var exampleCassandraKeyspace = new CassandraKeyspace("exampleCassandraKeyspace", CassandraKeyspaceArgs.builder()
.resourceGroupName(exampleAccount.resourceGroupName())
.accountName(exampleAccount.name())
.throughput(400)
.build());
}
}

Import

Cosmos Cassandra KeySpace can be imported using the resource id, e.g.

$ pulumi import azure:cosmosdb/cassandraKeyspace:CassandraKeyspace ks1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/cassandraKeyspaces/ks1

Constructors

Link copied to clipboard
fun CassandraKeyspaceArgs(accountName: Output<String>? = null, autoscaleSettings: Output<CassandraKeyspaceAutoscaleSettingsArgs>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, throughput: Output<Int>? = null)

Functions

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

Properties

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

The name of the Cosmos DB Cassandra KeySpace to create the table within. Changing this forces a new resource to be created.

Link copied to clipboard

An autoscale_settings block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.

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

Specifies the name of the Cosmos DB Cassandra KeySpace. Changing this forces a new resource to be created.

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

The name of the resource group in which the Cosmos DB Cassandra KeySpace is created. Changing this forces a new resource to be created.

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

The throughput of Cassandra KeySpace (RU/s). Must be set in increments of 100. The minimum value is 400. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply.