We recommend using Azure Native.
azure.cosmosdb.CassandraTable
Explore with Pulumi AI
Manages a Cassandra Table within a Cosmos DB Cassandra Keyspace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "tflex-cosmosdb-account-rg",
location: "West Europe",
});
const exampleAccount = new azure.cosmosdb.Account("example", {
name: "tfex-cosmosdb-account",
resourceGroupName: example.name,
location: example.location,
offerType: "Standard",
capabilities: [{
name: "EnableCassandra",
}],
consistencyPolicy: {
consistencyLevel: "Strong",
},
geoLocations: [{
location: example.location,
failoverPriority: 0,
}],
});
const exampleCassandraKeyspace = new azure.cosmosdb.CassandraKeyspace("example", {
name: "tfex-cosmos-cassandra-keyspace",
resourceGroupName: exampleAccount.resourceGroupName,
accountName: exampleAccount.name,
throughput: 400,
});
const exampleCassandraTable = new azure.cosmosdb.CassandraTable("example", {
name: "testtable",
cassandraKeyspaceId: exampleCassandraKeyspace.id,
schema: {
columns: [
{
name: "test1",
type: "ascii",
},
{
name: "test2",
type: "int",
},
],
partitionKeys: [{
name: "test1",
}],
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="tflex-cosmosdb-account-rg",
location="West Europe")
example_account = azure.cosmosdb.Account("example",
name="tfex-cosmosdb-account",
resource_group_name=example.name,
location=example.location,
offer_type="Standard",
capabilities=[{
"name": "EnableCassandra",
}],
consistency_policy={
"consistency_level": "Strong",
},
geo_locations=[{
"location": example.location,
"failover_priority": 0,
}])
example_cassandra_keyspace = azure.cosmosdb.CassandraKeyspace("example",
name="tfex-cosmos-cassandra-keyspace",
resource_group_name=example_account.resource_group_name,
account_name=example_account.name,
throughput=400)
example_cassandra_table = azure.cosmosdb.CassandraTable("example",
name="testtable",
cassandra_keyspace_id=example_cassandra_keyspace.id,
schema={
"columns": [
{
"name": "test1",
"type": "ascii",
},
{
"name": "test2",
"type": "int",
},
],
"partition_keys": [{
"name": "test1",
}],
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("tflex-cosmosdb-account-rg"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := cosmosdb.NewAccount(ctx, "example", &cosmosdb.AccountArgs{
Name: pulumi.String("tfex-cosmosdb-account"),
ResourceGroupName: example.Name,
Location: example.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: example.Location,
FailoverPriority: pulumi.Int(0),
},
},
})
if err != nil {
return err
}
exampleCassandraKeyspace, err := cosmosdb.NewCassandraKeyspace(ctx, "example", &cosmosdb.CassandraKeyspaceArgs{
Name: pulumi.String("tfex-cosmos-cassandra-keyspace"),
ResourceGroupName: exampleAccount.ResourceGroupName,
AccountName: exampleAccount.Name,
Throughput: pulumi.Int(400),
})
if err != nil {
return err
}
_, err = cosmosdb.NewCassandraTable(ctx, "example", &cosmosdb.CassandraTableArgs{
Name: pulumi.String("testtable"),
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "tflex-cosmosdb-account-rg",
Location = "West Europe",
});
var exampleAccount = new Azure.CosmosDB.Account("example", new()
{
Name = "tfex-cosmosdb-account",
ResourceGroupName = example.Name,
Location = example.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 = example.Location,
FailoverPriority = 0,
},
},
});
var exampleCassandraKeyspace = new Azure.CosmosDB.CassandraKeyspace("example", new()
{
Name = "tfex-cosmos-cassandra-keyspace",
ResourceGroupName = exampleAccount.ResourceGroupName,
AccountName = exampleAccount.Name,
Throughput = 400,
});
var exampleCassandraTable = new Azure.CosmosDB.CassandraTable("example", new()
{
Name = "testtable",
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 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("tflex-cosmosdb-account-rg")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("tfex-cosmosdb-account")
.resourceGroupName(example.name())
.location(example.location())
.offerType("Standard")
.capabilities(AccountCapabilityArgs.builder()
.name("EnableCassandra")
.build())
.consistencyPolicy(AccountConsistencyPolicyArgs.builder()
.consistencyLevel("Strong")
.build())
.geoLocations(AccountGeoLocationArgs.builder()
.location(example.location())
.failoverPriority(0)
.build())
.build());
var exampleCassandraKeyspace = new CassandraKeyspace("exampleCassandraKeyspace", CassandraKeyspaceArgs.builder()
.name("tfex-cosmos-cassandra-keyspace")
.resourceGroupName(exampleAccount.resourceGroupName())
.accountName(exampleAccount.name())
.throughput(400)
.build());
var exampleCassandraTable = new CassandraTable("exampleCassandraTable", CassandraTableArgs.builder()
.name("testtable")
.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());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: tflex-cosmosdb-account-rg
location: West Europe
exampleAccount:
type: azure:cosmosdb:Account
name: example
properties:
name: tfex-cosmosdb-account
resourceGroupName: ${example.name}
location: ${example.location}
offerType: Standard
capabilities:
- name: EnableCassandra
consistencyPolicy:
consistencyLevel: Strong
geoLocations:
- location: ${example.location}
failoverPriority: 0
exampleCassandraKeyspace:
type: azure:cosmosdb:CassandraKeyspace
name: example
properties:
name: tfex-cosmos-cassandra-keyspace
resourceGroupName: ${exampleAccount.resourceGroupName}
accountName: ${exampleAccount.name}
throughput: 400
exampleCassandraTable:
type: azure:cosmosdb:CassandraTable
name: example
properties:
name: testtable
cassandraKeyspaceId: ${exampleCassandraKeyspace.id}
schema:
columns:
- name: test1
type: ascii
- name: test2
type: int
partitionKeys:
- name: test1
Create CassandraTable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CassandraTable(name: string, args: CassandraTableArgs, opts?: CustomResourceOptions);
@overload
def CassandraTable(resource_name: str,
args: CassandraTableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CassandraTable(resource_name: str,
opts: Optional[ResourceOptions] = None,
cassandra_keyspace_id: Optional[str] = None,
schema: Optional[CassandraTableSchemaArgs] = None,
analytical_storage_ttl: Optional[int] = None,
autoscale_settings: Optional[CassandraTableAutoscaleSettingsArgs] = None,
default_ttl: Optional[int] = None,
name: Optional[str] = None,
throughput: Optional[int] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var cassandraTableResource = new Azure.CosmosDB.CassandraTable("cassandraTableResource", new()
{
CassandraKeyspaceId = "string",
Schema = new Azure.CosmosDB.Inputs.CassandraTableSchemaArgs
{
Columns = new[]
{
new Azure.CosmosDB.Inputs.CassandraTableSchemaColumnArgs
{
Name = "string",
Type = "string",
},
},
PartitionKeys = new[]
{
new Azure.CosmosDB.Inputs.CassandraTableSchemaPartitionKeyArgs
{
Name = "string",
},
},
ClusterKeys = new[]
{
new Azure.CosmosDB.Inputs.CassandraTableSchemaClusterKeyArgs
{
Name = "string",
OrderBy = "string",
},
},
},
AnalyticalStorageTtl = 0,
AutoscaleSettings = new Azure.CosmosDB.Inputs.CassandraTableAutoscaleSettingsArgs
{
MaxThroughput = 0,
},
DefaultTtl = 0,
Name = "string",
Throughput = 0,
});
example, err := cosmosdb.NewCassandraTable(ctx, "cassandraTableResource", &cosmosdb.CassandraTableArgs{
CassandraKeyspaceId: pulumi.String("string"),
Schema: &cosmosdb.CassandraTableSchemaArgs{
Columns: cosmosdb.CassandraTableSchemaColumnArray{
&cosmosdb.CassandraTableSchemaColumnArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
PartitionKeys: cosmosdb.CassandraTableSchemaPartitionKeyArray{
&cosmosdb.CassandraTableSchemaPartitionKeyArgs{
Name: pulumi.String("string"),
},
},
ClusterKeys: cosmosdb.CassandraTableSchemaClusterKeyArray{
&cosmosdb.CassandraTableSchemaClusterKeyArgs{
Name: pulumi.String("string"),
OrderBy: pulumi.String("string"),
},
},
},
AnalyticalStorageTtl: pulumi.Int(0),
AutoscaleSettings: &cosmosdb.CassandraTableAutoscaleSettingsArgs{
MaxThroughput: pulumi.Int(0),
},
DefaultTtl: pulumi.Int(0),
Name: pulumi.String("string"),
Throughput: pulumi.Int(0),
})
var cassandraTableResource = new CassandraTable("cassandraTableResource", CassandraTableArgs.builder()
.cassandraKeyspaceId("string")
.schema(CassandraTableSchemaArgs.builder()
.columns(CassandraTableSchemaColumnArgs.builder()
.name("string")
.type("string")
.build())
.partitionKeys(CassandraTableSchemaPartitionKeyArgs.builder()
.name("string")
.build())
.clusterKeys(CassandraTableSchemaClusterKeyArgs.builder()
.name("string")
.orderBy("string")
.build())
.build())
.analyticalStorageTtl(0)
.autoscaleSettings(CassandraTableAutoscaleSettingsArgs.builder()
.maxThroughput(0)
.build())
.defaultTtl(0)
.name("string")
.throughput(0)
.build());
cassandra_table_resource = azure.cosmosdb.CassandraTable("cassandraTableResource",
cassandra_keyspace_id="string",
schema={
"columns": [{
"name": "string",
"type": "string",
}],
"partitionKeys": [{
"name": "string",
}],
"clusterKeys": [{
"name": "string",
"orderBy": "string",
}],
},
analytical_storage_ttl=0,
autoscale_settings={
"maxThroughput": 0,
},
default_ttl=0,
name="string",
throughput=0)
const cassandraTableResource = new azure.cosmosdb.CassandraTable("cassandraTableResource", {
cassandraKeyspaceId: "string",
schema: {
columns: [{
name: "string",
type: "string",
}],
partitionKeys: [{
name: "string",
}],
clusterKeys: [{
name: "string",
orderBy: "string",
}],
},
analyticalStorageTtl: 0,
autoscaleSettings: {
maxThroughput: 0,
},
defaultTtl: 0,
name: "string",
throughput: 0,
});
type: azure:cosmosdb:CassandraTable
properties:
analyticalStorageTtl: 0
autoscaleSettings:
maxThroughput: 0
cassandraKeyspaceId: string
defaultTtl: 0
name: string
schema:
clusterKeys:
- name: string
orderBy: string
columns:
- name: string
type: string
partitionKeys:
- name: string
throughput: 0
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:
- Cassandra
Keyspace stringId - The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
- Schema
Cassandra
Table Schema - A
schema
block as defined below. - Analytical
Storage intTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- Autoscale
Settings CassandraTable Autoscale Settings - 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 string
- Specifies the name of the Cosmos DB Cassandra Table. Changing this forces a new resource to be created.
- Throughput int
- Cassandra
Keyspace stringId - The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
- Schema
Cassandra
Table Schema Args - A
schema
block as defined below. - Analytical
Storage intTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- Autoscale
Settings CassandraTable Autoscale Settings Args - 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 string
- Specifies the name of the Cosmos DB Cassandra Table. Changing this forces a new resource to be created.
- Throughput int
- cassandra
Keyspace StringId - The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
- schema
Cassandra
Table Schema - A
schema
block as defined below. - analytical
Storage IntegerTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- autoscale
Settings CassandraTable Autoscale Settings - default
Ttl 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
- cassandra
Keyspace stringId - The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
- schema
Cassandra
Table Schema - A
schema
block as defined below. - analytical
Storage numberTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- autoscale
Settings CassandraTable Autoscale Settings - default
Ttl 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_ strid - The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
- schema
Cassandra
Table Schema Args - A
schema
block as defined below. - analytical_
storage_ intttl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- autoscale_
settings CassandraTable Autoscale Settings Args - 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
- cassandra
Keyspace StringId - 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. - analytical
Storage NumberTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- autoscale
Settings Property Map - default
Ttl 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.
- Analytical
Storage intTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- Autoscale
Settings CassandraTable Autoscale Settings - Cassandra
Keyspace stringId - 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 string
- Specifies the name of the Cosmos DB Cassandra Table. Changing this forces a new resource to be created.
- Schema
Cassandra
Table Schema - A
schema
block as defined below. - Throughput int
- Analytical
Storage intTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- Autoscale
Settings CassandraTable Autoscale Settings Args - Cassandra
Keyspace stringId - 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 string
- Specifies the name of the Cosmos DB Cassandra Table. Changing this forces a new resource to be created.
- Schema
Cassandra
Table Schema Args - A
schema
block as defined below. - Throughput int
- analytical
Storage IntegerTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- autoscale
Settings CassandraTable Autoscale Settings - cassandra
Keyspace StringId - The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
- default
Ttl 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
Cassandra
Table Schema - A
schema
block as defined below. - throughput Integer
- analytical
Storage numberTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- autoscale
Settings CassandraTable Autoscale Settings - cassandra
Keyspace stringId - The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
- default
Ttl 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
Cassandra
Table Schema - A
schema
block as defined below. - throughput number
- analytical_
storage_ intttl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- autoscale_
settings CassandraTable Autoscale Settings Args - cassandra_
keyspace_ strid - 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
Cassandra
Table Schema Args - A
schema
block as defined below. - throughput int
- analytical
Storage NumberTtl Time to live of the Analytical Storage. Possible values are between
-1
and2147483647
except0
.-1
means the Analytical Storage never expires. Changing this forces a new resource to be created.Note: throughput has a maximum value of
1000000
unless a higher limit is requested via Azure Support- autoscale
Settings Property Map - cassandra
Keyspace StringId - The ID of the Cosmos DB Cassandra Keyspace to create the table within. Changing this forces a new resource to be created.
- default
Ttl 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. - throughput Number
Supporting Types
CassandraTableAutoscaleSettings, CassandraTableAutoscaleSettingsArgs
- Max
Throughput int - The maximum throughput of the Cassandra Table (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- Max
Throughput int - The maximum throughput of the Cassandra Table (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- max
Throughput Integer - The maximum throughput of the Cassandra Table (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- max
Throughput number - The maximum throughput of the Cassandra Table (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- max_
throughput int - The maximum throughput of the Cassandra Table (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- max
Throughput Number - The maximum throughput of the Cassandra Table (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
CassandraTableSchema, CassandraTableSchemaArgs
- Columns
List<Cassandra
Table Schema Column> - One or more
column
blocks as defined below. - Partition
Keys List<CassandraTable Schema Partition Key> - One or more
partition_key
blocks as defined below. - Cluster
Keys List<CassandraTable Schema Cluster Key> - One or more
cluster_key
blocks as defined below.
- Columns
[]Cassandra
Table Schema Column - One or more
column
blocks as defined below. - Partition
Keys []CassandraTable Schema Partition Key - One or more
partition_key
blocks as defined below. - Cluster
Keys []CassandraTable Schema Cluster Key - One or more
cluster_key
blocks as defined below.
- columns
List<Cassandra
Table Schema Column> - One or more
column
blocks as defined below. - partition
Keys List<CassandraTable Schema Partition Key> - One or more
partition_key
blocks as defined below. - cluster
Keys List<CassandraTable Schema Cluster Key> - One or more
cluster_key
blocks as defined below.
- columns
Cassandra
Table Schema Column[] - One or more
column
blocks as defined below. - partition
Keys CassandraTable Schema Partition Key[] - One or more
partition_key
blocks as defined below. - cluster
Keys CassandraTable Schema Cluster Key[] - One or more
cluster_key
blocks as defined below.
- columns
Sequence[Cassandra
Table Schema Column] - One or more
column
blocks as defined below. - partition_
keys Sequence[CassandraTable Schema Partition Key] - One or more
partition_key
blocks as defined below. - cluster_
keys Sequence[CassandraTable Schema Cluster Key] - One or more
cluster_key
blocks as defined below.
- columns List<Property Map>
- One or more
column
blocks as defined below. - partition
Keys List<Property Map> - One or more
partition_key
blocks as defined below. - cluster
Keys List<Property Map> - One or more
cluster_key
blocks as defined below.
CassandraTableSchemaClusterKey, CassandraTableSchemaClusterKeyArgs
CassandraTableSchemaColumn, CassandraTableSchemaColumnArgs
CassandraTableSchemaPartitionKey, CassandraTableSchemaPartitionKeyArgs
- 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.