CassandraResourceCassandraTableArgs

data class CassandraResourceCassandraTableArgs(val accountName: Output<String>? = null, val keyspaceName: Output<String>? = null, val location: Output<String>? = null, val options: Output<CreateUpdateOptionsArgs>? = null, val resource: Output<CassandraTableResourceArgs>? = null, val resourceGroupName: Output<String>? = null, val tableName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CassandraResourceCassandraTableArgs>

An Azure Cosmos DB Cassandra table. API Version: 2021-03-15.

Example Usage

CosmosDBCassandraTableCreateUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cassandraResourceCassandraTable = new AzureNative.DocumentDB.CassandraResourceCassandraTable("cassandraResourceCassandraTable", new()
{
AccountName = "ddb1",
KeyspaceName = "keyspaceName",
Location = "West US",
Options = null,
Resource = new AzureNative.DocumentDB.Inputs.CassandraTableResourceArgs
{
DefaultTtl = 100,
Id = "tableName",
Schema = new AzureNative.DocumentDB.Inputs.CassandraSchemaArgs
{
ClusterKeys = new[]
{
new AzureNative.DocumentDB.Inputs.ClusterKeyArgs
{
Name = "columnA",
OrderBy = "Asc",
},
},
Columns = new[]
{
new AzureNative.DocumentDB.Inputs.ColumnArgs
{
Name = "columnA",
Type = "Ascii",
},
},
PartitionKeys = new[]
{
new AzureNative.DocumentDB.Inputs.CassandraPartitionKeyArgs
{
Name = "columnA",
},
},
},
},
ResourceGroupName = "rg1",
TableName = "tableName",
Tags = null,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.documentdb.CassandraResourceCassandraTable;
import com.pulumi.azurenative.documentdb.CassandraResourceCassandraTableArgs;
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 cassandraResourceCassandraTable = new CassandraResourceCassandraTable("cassandraResourceCassandraTable", CassandraResourceCassandraTableArgs.builder()
.accountName("ddb1")
.keyspaceName("keyspaceName")
.location("West US")
.options()
.resource(Map.ofEntries(
Map.entry("defaultTtl", 100),
Map.entry("id", "tableName"),
Map.entry("schema", Map.ofEntries(
Map.entry("clusterKeys", Map.ofEntries(
Map.entry("name", "columnA"),
Map.entry("orderBy", "Asc")
)),
Map.entry("columns", Map.ofEntries(
Map.entry("name", "columnA"),
Map.entry("type", "Ascii")
)),
Map.entry("partitionKeys", Map.of("name", "columnA"))
))
))
.resourceGroupName("rg1")
.tableName("tableName")
.tags()
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:documentdb:CassandraResourceCassandraTable tableName /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, keyspaceName: Output<String>? = null, location: Output<String>? = null, options: Output<CreateUpdateOptionsArgs>? = null, resource: Output<CassandraTableResourceArgs>? = null, resourceGroupName: Output<String>? = null, tableName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Cosmos DB database account name.

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

Cosmos DB keyspace name.

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

The location of the resource group to which the resource belongs.

Link copied to clipboard
val options: Output<CreateUpdateOptionsArgs>? = null

A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Link copied to clipboard

The standard JSON format of a Cassandra table

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

The name of the resource group. The name is case insensitive.

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

Cosmos DB table name.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".

Functions

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