Azure Classic

v5.25.0 published on Thursday, Nov 24, 2022 by Pulumi

CassandraTable

Manages a Cassandra Table within a Cosmos DB Cassandra Keyspace.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleAccount = new Azure.CosmosDB.Account("exampleAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        OfferType = "Standard",
        Capabilities = new[]
        {
            new Azure.CosmosDB.Inputs.AccountCapabilityArgs
            {
                Name = "EnableCassandra",
            },
        },
        ConsistencyPolicy = new Azure.CosmosDB.Inputs.AccountConsistencyPolicyArgs
        {
            ConsistencyLevel = "Strong",
        },
        GeoLocations = new[]
        {
            new Azure.CosmosDB.Inputs.AccountGeoLocationArgs
            {
                Location = exampleResourceGroup.Location,
                FailoverPriority = 0,
            },
        },
    });

    var exampleCassandraKeyspace = new Azure.CosmosDB.CassandraKeyspace("exampleCassandraKeyspace", new()
    {
        ResourceGroupName = exampleAccount.ResourceGroupName,
        AccountName = exampleAccount.Name,
        Throughput = 400,
    });

    var exampleCassandraTable = new Azure.CosmosDB.CassandraTable("exampleCassandraTable", new()
    {
        CassandraKeyspaceId = exampleCassandraKeyspace.Id,
        Schema = new Azure.CosmosDB.Inputs.CassandraTableSchemaArgs
        {
            Columns = new[]
            {
                new Azure.CosmosDB.Inputs.CassandraTableSchemaColumnArgs
                {
                    Name = "test1",
                    Type = "ascii",
                },
                new Azure.CosmosDB.Inputs.CassandraTableSchemaColumnArgs
                {
                    Name = "test2",
                    Type = "int",
                },
            },
            PartitionKeys = new[]
            {
                new Azure.CosmosDB.Inputs.CassandraTableSchemaPartitionKeyArgs
                {
                    Name = "test1",
                },
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cosmosdb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := cosmosdb.NewAccount(ctx, "exampleAccount", &cosmosdb.AccountArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			OfferType:         pulumi.String("Standard"),
			Capabilities: cosmosdb.AccountCapabilityArray{
				&cosmosdb.AccountCapabilityArgs{
					Name: pulumi.String("EnableCassandra"),
				},
			},
			ConsistencyPolicy: &cosmosdb.AccountConsistencyPolicyArgs{
				ConsistencyLevel: pulumi.String("Strong"),
			},
			GeoLocations: cosmosdb.AccountGeoLocationArray{
				&cosmosdb.AccountGeoLocationArgs{
					Location:         exampleResourceGroup.Location,
					FailoverPriority: pulumi.Int(0),
				},
			},
		})
		if err != nil {
			return err
		}
		exampleCassandraKeyspace, err := cosmosdb.NewCassandraKeyspace(ctx, "exampleCassandraKeyspace", &cosmosdb.CassandraKeyspaceArgs{
			ResourceGroupName: exampleAccount.ResourceGroupName,
			AccountName:       exampleAccount.Name,
			Throughput:        pulumi.Int(400),
		})
		if err != nil {
			return err
		}
		_, err = cosmosdb.NewCassandraTable(ctx, "exampleCassandraTable", &cosmosdb.CassandraTableArgs{
			CassandraKeyspaceId: exampleCassandraKeyspace.ID(),
			Schema: &cosmosdb.CassandraTableSchemaArgs{
				Columns: cosmosdb.CassandraTableSchemaColumnArray{
					&cosmosdb.CassandraTableSchemaColumnArgs{
						Name: pulumi.String("test1"),
						Type: pulumi.String("ascii"),
					},
					&cosmosdb.CassandraTableSchemaColumnArgs{
						Name: pulumi.String("test2"),
						Type: pulumi.String("int"),
					},
				},
				PartitionKeys: cosmosdb.CassandraTableSchemaPartitionKeyArray{
					&cosmosdb.CassandraTableSchemaPartitionKeyArgs{
						Name: pulumi.String("test1"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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 com.pulumi.azure.cosmosdb.CassandraTable;
import com.pulumi.azure.cosmosdb.CassandraTableArgs;
import com.pulumi.azure.cosmosdb.inputs.CassandraTableSchemaArgs;
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());

        var exampleCassandraTable = new CassandraTable("exampleCassandraTable", CassandraTableArgs.builder()        
            .cassandraKeyspaceId(exampleCassandraKeyspace.id())
            .schema(CassandraTableSchemaArgs.builder()
                .columns(                
                    CassandraTableSchemaColumnArgs.builder()
                        .name("test1")
                        .type("ascii")
                        .build(),
                    CassandraTableSchemaColumnArgs.builder()
                        .name("test2")
                        .type("int")
                        .build())
                .partitionKeys(CassandraTableSchemaPartitionKeyArgs.builder()
                    .name("test1")
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.cosmosdb.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    offer_type="Standard",
    capabilities=[azure.cosmosdb.AccountCapabilityArgs(
        name="EnableCassandra",
    )],
    consistency_policy=azure.cosmosdb.AccountConsistencyPolicyArgs(
        consistency_level="Strong",
    ),
    geo_locations=[azure.cosmosdb.AccountGeoLocationArgs(
        location=example_resource_group.location,
        failover_priority=0,
    )])
example_cassandra_keyspace = azure.cosmosdb.CassandraKeyspace("exampleCassandraKeyspace",
    resource_group_name=example_account.resource_group_name,
    account_name=example_account.name,
    throughput=400)
example_cassandra_table = azure.cosmosdb.CassandraTable("exampleCassandraTable",
    cassandra_keyspace_id=example_cassandra_keyspace.id,
    schema=azure.cosmosdb.CassandraTableSchemaArgs(
        columns=[
            azure.cosmosdb.CassandraTableSchemaColumnArgs(
                name="test1",
                type="ascii",
            ),
            azure.cosmosdb.CassandraTableSchemaColumnArgs(
                name="test2",
                type="int",
            ),
        ],
        partition_keys=[azure.cosmosdb.CassandraTableSchemaPartitionKeyArgs(
            name="test1",
        )],
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.cosmosdb.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    offerType: "Standard",
    capabilities: [{
        name: "EnableCassandra",
    }],
    consistencyPolicy: {
        consistencyLevel: "Strong",
    },
    geoLocations: [{
        location: exampleResourceGroup.location,
        failoverPriority: 0,
    }],
});
const exampleCassandraKeyspace = new azure.cosmosdb.CassandraKeyspace("exampleCassandraKeyspace", {
    resourceGroupName: exampleAccount.resourceGroupName,
    accountName: exampleAccount.name,
    throughput: 400,
});
const exampleCassandraTable = new azure.cosmosdb.CassandraTable("exampleCassandraTable", {
    cassandraKeyspaceId: exampleCassandraKeyspace.id,
    schema: {
        columns: [
            {
                name: "test1",
                type: "ascii",
            },
            {
                name: "test2",
                type: "int",
            },
        ],
        partitionKeys: [{
            name: "test1",
        }],
    },
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleAccount:
    type: azure:cosmosdb:Account
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      offerType: Standard
      capabilities:
        - name: EnableCassandra
      consistencyPolicy:
        consistencyLevel: Strong
      geoLocations:
        - location: ${exampleResourceGroup.location}
          failoverPriority: 0
  exampleCassandraKeyspace:
    type: azure:cosmosdb:CassandraKeyspace
    properties:
      resourceGroupName: ${exampleAccount.resourceGroupName}
      accountName: ${exampleAccount.name}
      throughput: 400
  exampleCassandraTable:
    type: azure:cosmosdb:CassandraTable
    properties:
      cassandraKeyspaceId: ${exampleCassandraKeyspace.id}
      schema:
        columns:
          - name: test1
            type: ascii
          - name: test2
            type: int
        partitionKeys:
          - name: test1

Create CassandraTable Resource

new CassandraTable(name: string, args: CassandraTableArgs, opts?: CustomResourceOptions);
@overload
def CassandraTable(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   analytical_storage_ttl: Optional[int] = None,
                   autoscale_settings: Optional[CassandraTableAutoscaleSettingsArgs] = None,
                   cassandra_keyspace_id: Optional[str] = None,
                   default_ttl: Optional[int] = None,
                   name: Optional[str] = None,
                   schema: Optional[CassandraTableSchemaArgs] = None,
                   throughput: Optional[int] = None)
@overload
def CassandraTable(resource_name: str,
                   args: CassandraTableArgs,
                   opts: Optional[ResourceOptions] = None)
func NewCassandraTable(ctx *Context, name string, args CassandraTableArgs, opts ...ResourceOption) (*CassandraTable, error)
public CassandraTable(string name, CassandraTableArgs args, CustomResourceOptions? opts = null)
public CassandraTable(String name, CassandraTableArgs args)
public CassandraTable(String name, CassandraTableArgs args, CustomResourceOptions options)
type: azure:cosmosdb:CassandraTable
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CassandraTableArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args CassandraTableArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CassandraTableArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CassandraTableArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CassandraTableArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CassandraTable Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The CassandraTable resource accepts the following input properties:

CassandraKeyspaceId string

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

Schema CassandraTableSchemaArgs

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

AnalyticalStorageTtl int

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

AutoscaleSettings CassandraTableAutoscaleSettingsArgs
DefaultTtl int

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

Name string

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

Throughput int
CassandraKeyspaceId string

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

Schema CassandraTableSchemaArgs

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

AnalyticalStorageTtl int

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

AutoscaleSettings CassandraTableAutoscaleSettingsArgs
DefaultTtl int

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

Name string

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

Throughput int
cassandraKeyspaceId String

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

schema CassandraTableSchemaArgs

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

analyticalStorageTtl Integer

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

autoscaleSettings CassandraTableAutoscaleSettingsArgs
defaultTtl Integer

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

name String

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

throughput Integer
cassandraKeyspaceId string

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

schema CassandraTableSchemaArgs

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

analyticalStorageTtl number

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

autoscaleSettings CassandraTableAutoscaleSettingsArgs
defaultTtl number

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

name string

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

throughput number
cassandra_keyspace_id str

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

schema CassandraTableSchemaArgs

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

analytical_storage_ttl int

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

autoscale_settings CassandraTableAutoscaleSettingsArgs
default_ttl int

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

name str

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

throughput int
cassandraKeyspaceId String

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

schema Property Map

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

analyticalStorageTtl Number

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

autoscaleSettings Property Map
defaultTtl Number

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

name String

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

throughput Number

Outputs

All input properties are implicitly available as output properties. Additionally, the CassandraTable resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing CassandraTable Resource

Get an existing CassandraTable resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CassandraTableState, opts?: CustomResourceOptions): CassandraTable
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        analytical_storage_ttl: Optional[int] = None,
        autoscale_settings: Optional[CassandraTableAutoscaleSettingsArgs] = None,
        cassandra_keyspace_id: Optional[str] = None,
        default_ttl: Optional[int] = None,
        name: Optional[str] = None,
        schema: Optional[CassandraTableSchemaArgs] = None,
        throughput: Optional[int] = None) -> CassandraTable
func GetCassandraTable(ctx *Context, name string, id IDInput, state *CassandraTableState, opts ...ResourceOption) (*CassandraTable, error)
public static CassandraTable Get(string name, Input<string> id, CassandraTableState? state, CustomResourceOptions? opts = null)
public static CassandraTable get(String name, Output<String> id, CassandraTableState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AnalyticalStorageTtl int

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

AutoscaleSettings CassandraTableAutoscaleSettingsArgs
CassandraKeyspaceId string

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

DefaultTtl int

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

Name string

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

Schema CassandraTableSchemaArgs

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

Throughput int
AnalyticalStorageTtl int

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

AutoscaleSettings CassandraTableAutoscaleSettingsArgs
CassandraKeyspaceId string

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

DefaultTtl int

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

Name string

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

Schema CassandraTableSchemaArgs

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

Throughput int
analyticalStorageTtl Integer

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

autoscaleSettings CassandraTableAutoscaleSettingsArgs
cassandraKeyspaceId String

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

defaultTtl Integer

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

name String

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

schema CassandraTableSchemaArgs

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

throughput Integer
analyticalStorageTtl number

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

autoscaleSettings CassandraTableAutoscaleSettingsArgs
cassandraKeyspaceId string

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

defaultTtl number

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

name string

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

schema CassandraTableSchemaArgs

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

throughput number
analytical_storage_ttl int

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

autoscale_settings CassandraTableAutoscaleSettingsArgs
cassandra_keyspace_id str

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

default_ttl int

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

name str

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

schema CassandraTableSchemaArgs

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

throughput int
analyticalStorageTtl Number

Time to live of the Analytical Storage. Possible values are between -1 and 2147483647 except 0. -1 means the Analytical Storage never expires. Changing this forces a new resource to be created.

autoscaleSettings Property Map
cassandraKeyspaceId String

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

defaultTtl Number

Time to live of the Cosmos DB Cassandra table. Possible values are at least -1. -1 means the Cassandra table never expires.

name String

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

schema Property Map

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

throughput Number

Supporting Types

CassandraTableAutoscaleSettings

MaxThroughput int

The maximum throughput of the Cassandra Table (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.

MaxThroughput int

The maximum throughput of the Cassandra Table (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.

maxThroughput Integer

The maximum throughput of the Cassandra Table (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.

maxThroughput number

The maximum throughput of the Cassandra Table (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.

max_throughput int

The maximum throughput of the Cassandra Table (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.

maxThroughput Number

The maximum throughput of the Cassandra Table (RU/s). Must be between 1,000 and 1,000,000. Must be set in increments of 1,000. Conflicts with throughput.

CassandraTableSchema

Columns List<CassandraTableSchemaColumn>

One or more column blocks as defined below.

PartitionKeys List<CassandraTableSchemaPartitionKey>

One or more partition_key blocks as defined below.

ClusterKeys List<CassandraTableSchemaClusterKey>

One or more cluster_key blocks as defined below.

Columns []CassandraTableSchemaColumn

One or more column blocks as defined below.

PartitionKeys []CassandraTableSchemaPartitionKey

One or more partition_key blocks as defined below.

ClusterKeys []CassandraTableSchemaClusterKey

One or more cluster_key blocks as defined below.

columns List<CassandraTableSchemaColumn>

One or more column blocks as defined below.

partitionKeys List<CassandraTableSchemaPartitionKey>

One or more partition_key blocks as defined below.

clusterKeys List<CassandraTableSchemaClusterKey>

One or more cluster_key blocks as defined below.

columns CassandraTableSchemaColumn[]

One or more column blocks as defined below.

partitionKeys CassandraTableSchemaPartitionKey[]

One or more partition_key blocks as defined below.

clusterKeys CassandraTableSchemaClusterKey[]

One or more cluster_key blocks as defined below.

columns Sequence[CassandraTableSchemaColumn]

One or more column blocks as defined below.

partition_keys Sequence[CassandraTableSchemaPartitionKey]

One or more partition_key blocks as defined below.

cluster_keys Sequence[CassandraTableSchemaClusterKey]

One or more cluster_key blocks as defined below.

columns List<Property Map>

One or more column blocks as defined below.

partitionKeys List<Property Map>

One or more partition_key blocks as defined below.

clusterKeys List<Property Map>

One or more cluster_key blocks as defined below.

CassandraTableSchemaClusterKey

Name string

Name of the cluster key to be created.

OrderBy string

Order of the key. Currently supported values are Asc and Desc.

Name string

Name of the cluster key to be created.

OrderBy string

Order of the key. Currently supported values are Asc and Desc.

name String

Name of the cluster key to be created.

orderBy String

Order of the key. Currently supported values are Asc and Desc.

name string

Name of the cluster key to be created.

orderBy string

Order of the key. Currently supported values are Asc and Desc.

name str

Name of the cluster key to be created.

order_by str

Order of the key. Currently supported values are Asc and Desc.

name String

Name of the cluster key to be created.

orderBy String

Order of the key. Currently supported values are Asc and Desc.

CassandraTableSchemaColumn

Name string

Name of the column to be created.

Type string

Type of the column to be created.

Name string

Name of the column to be created.

Type string

Type of the column to be created.

name String

Name of the column to be created.

type String

Type of the column to be created.

name string

Name of the column to be created.

type string

Type of the column to be created.

name str

Name of the column to be created.

type str

Type of the column to be created.

name String

Name of the column to be created.

type String

Type of the column to be created.

CassandraTableSchemaPartitionKey

Name string

Name of the column to partition by.

Name string

Name of the column to partition by.

name String

Name of the column to partition by.

name string

Name of the column to partition by.

name str

Name of the column to partition by.

name String

Name of the column to partition by.

Import

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

 $ pulumi import azure:cosmosdb/cassandraTable:CassandraTable ks1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/cassandraKeyspaces/ks1/tables/table1

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.