azure-native.cosmosdb.CassandraResourceCassandraKeyspace
Explore with Pulumi AI
An Azure Cosmos DB Cassandra keyspace.
Uses Azure REST API version 2024-11-15.
Other available API versions: 2019-08-01, 2019-12-12, 2020-03-01, 2020-04-01, 2020-06-01-preview, 2020-09-01, 2021-01-15, 2021-03-01-preview, 2021-03-15, 2021-04-01-preview, 2021-04-15, 2021-05-15, 2021-06-15, 2021-07-01-preview, 2021-10-15, 2021-10-15-preview, 2021-11-15-preview, 2022-02-15-preview, 2022-05-15, 2022-05-15-preview, 2022-08-15, 2022-08-15-preview, 2022-11-15, 2022-11-15-preview, 2023-03-01-preview, 2023-03-15, 2023-03-15-preview, 2023-04-15, 2023-09-15, 2023-09-15-preview, 2023-11-15, 2023-11-15-preview, 2024-02-15-preview, 2024-05-15, 2024-05-15-preview, 2024-08-15, 2024-09-01-preview, 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cosmosdb [ApiVersion]
. See the version guide for details.
Create CassandraResourceCassandraKeyspace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CassandraResourceCassandraKeyspace(name: string, args: CassandraResourceCassandraKeyspaceArgs, opts?: CustomResourceOptions);
@overload
def CassandraResourceCassandraKeyspace(resource_name: str,
args: CassandraResourceCassandraKeyspaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CassandraResourceCassandraKeyspace(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
resource: Optional[CassandraKeyspaceResourceArgs] = None,
resource_group_name: Optional[str] = None,
keyspace_name: Optional[str] = None,
location: Optional[str] = None,
options: Optional[CreateUpdateOptionsArgs] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCassandraResourceCassandraKeyspace(ctx *Context, name string, args CassandraResourceCassandraKeyspaceArgs, opts ...ResourceOption) (*CassandraResourceCassandraKeyspace, error)
public CassandraResourceCassandraKeyspace(string name, CassandraResourceCassandraKeyspaceArgs args, CustomResourceOptions? opts = null)
public CassandraResourceCassandraKeyspace(String name, CassandraResourceCassandraKeyspaceArgs args)
public CassandraResourceCassandraKeyspace(String name, CassandraResourceCassandraKeyspaceArgs args, CustomResourceOptions options)
type: azure-native:cosmosdb:CassandraResourceCassandraKeyspace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. CassandraResourceCassandraKeyspaceArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. CassandraResourceCassandraKeyspaceArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. CassandraResourceCassandraKeyspaceArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. CassandraResourceCassandraKeyspaceArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. CassandraResourceCassandraKeyspaceArgs - 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 cassandraResourceCassandraKeyspaceResource = new AzureNative.CosmosDB.CassandraResourceCassandraKeyspace("cassandraResourceCassandraKeyspaceResource", new()
{
AccountName = "string",
Resource = new AzureNative.CosmosDB.Inputs.CassandraKeyspaceResourceArgs
{
Id = "string",
},
ResourceGroupName = "string",
KeyspaceName = "string",
Location = "string",
Options = new AzureNative.CosmosDB.Inputs.CreateUpdateOptionsArgs
{
AutoscaleSettings = new AzureNative.CosmosDB.Inputs.AutoscaleSettingsArgs
{
MaxThroughput = 0,
},
Throughput = 0,
},
Tags =
{
{ "string", "string" },
},
});
example, err := cosmosdb.NewCassandraResourceCassandraKeyspace(ctx, "cassandraResourceCassandraKeyspaceResource", &cosmosdb.CassandraResourceCassandraKeyspaceArgs{
AccountName: pulumi.String("string"),
Resource: &cosmosdb.CassandraKeyspaceResourceArgs{
Id: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
KeyspaceName: pulumi.String("string"),
Location: pulumi.String("string"),
Options: &cosmosdb.CreateUpdateOptionsArgs{
AutoscaleSettings: &cosmosdb.AutoscaleSettingsArgs{
MaxThroughput: pulumi.Int(0),
},
Throughput: pulumi.Int(0),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var cassandraResourceCassandraKeyspaceResource = new CassandraResourceCassandraKeyspace("cassandraResourceCassandraKeyspaceResource", CassandraResourceCassandraKeyspaceArgs.builder()
.accountName("string")
.resource(CassandraKeyspaceResourceArgs.builder()
.id("string")
.build())
.resourceGroupName("string")
.keyspaceName("string")
.location("string")
.options(CreateUpdateOptionsArgs.builder()
.autoscaleSettings(AutoscaleSettingsArgs.builder()
.maxThroughput(0)
.build())
.throughput(0)
.build())
.tags(Map.of("string", "string"))
.build());
cassandra_resource_cassandra_keyspace_resource = azure_native.cosmosdb.CassandraResourceCassandraKeyspace("cassandraResourceCassandraKeyspaceResource",
account_name="string",
resource={
"id": "string",
},
resource_group_name="string",
keyspace_name="string",
location="string",
options={
"autoscale_settings": {
"max_throughput": 0,
},
"throughput": 0,
},
tags={
"string": "string",
})
const cassandraResourceCassandraKeyspaceResource = new azure_native.cosmosdb.CassandraResourceCassandraKeyspace("cassandraResourceCassandraKeyspaceResource", {
accountName: "string",
resource: {
id: "string",
},
resourceGroupName: "string",
keyspaceName: "string",
location: "string",
options: {
autoscaleSettings: {
maxThroughput: 0,
},
throughput: 0,
},
tags: {
string: "string",
},
});
type: azure-native:cosmosdb:CassandraResourceCassandraKeyspace
properties:
accountName: string
keyspaceName: string
location: string
options:
autoscaleSettings:
maxThroughput: 0
throughput: 0
resource:
id: string
resourceGroupName: string
tags:
string: string
CassandraResourceCassandraKeyspace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CassandraResourceCassandraKeyspace resource accepts the following input properties:
- Account
Name This property is required. Changes to this property will trigger replacement.
- Cosmos DB database account name.
- Resource
This property is required. Pulumi.Azure Native. Cosmos DB. Inputs. Cassandra Keyspace Resource - The standard JSON format of a Cassandra keyspace
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Keyspace
Name Changes to this property will trigger replacement.
- Cosmos DB keyspace name.
- Location string
- The location of the resource group to which the resource belongs.
- Options
Pulumi.
Azure Native. Cosmos DB. Inputs. Create Update Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- Dictionary<string, string>
- 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".
- Account
Name This property is required. Changes to this property will trigger replacement.
- Cosmos DB database account name.
- Resource
This property is required. CassandraKeyspace Resource Args - The standard JSON format of a Cassandra keyspace
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Keyspace
Name Changes to this property will trigger replacement.
- Cosmos DB keyspace name.
- Location string
- The location of the resource group to which the resource belongs.
- Options
Create
Update Options Args - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- map[string]string
- 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".
- account
Name This property is required. Changes to this property will trigger replacement.
- Cosmos DB database account name.
- resource
This property is required. CassandraKeyspace Resource - The standard JSON format of a Cassandra keyspace
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- keyspace
Name Changes to this property will trigger replacement.
- Cosmos DB keyspace name.
- location String
- The location of the resource group to which the resource belongs.
- options
Create
Update Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- Map<String,String>
- 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".
- account
Name This property is required. Changes to this property will trigger replacement.
- Cosmos DB database account name.
- resource
This property is required. CassandraKeyspace Resource - The standard JSON format of a Cassandra keyspace
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- keyspace
Name Changes to this property will trigger replacement.
- Cosmos DB keyspace name.
- location string
- The location of the resource group to which the resource belongs.
- options
Create
Update Options - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- {[key: string]: string}
- 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".
- account_
name This property is required. Changes to this property will trigger replacement.
- Cosmos DB database account name.
- resource
This property is required. CassandraKeyspace Resource Args - The standard JSON format of a Cassandra keyspace
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- keyspace_
name Changes to this property will trigger replacement.
- Cosmos DB keyspace name.
- location str
- The location of the resource group to which the resource belongs.
- options
Create
Update Options Args - A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- Mapping[str, str]
- 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".
- account
Name This property is required. Changes to this property will trigger replacement.
- Cosmos DB database account name.
- resource
This property is required. Property Map - The standard JSON format of a Cassandra keyspace
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- keyspace
Name Changes to this property will trigger replacement.
- Cosmos DB keyspace name.
- location String
- The location of the resource group to which the resource belongs.
- options Property Map
- A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
- Map<String>
- 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".
Outputs
All input properties are implicitly available as output properties. Additionally, the CassandraResourceCassandraKeyspace resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the ARM resource.
- Type string
- The type of Azure resource.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the ARM resource.
- Type string
- The type of Azure resource.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the ARM resource.
- type String
- The type of Azure resource.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the ARM resource.
- type string
- The type of Azure resource.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the ARM resource.
- type str
- The type of Azure resource.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the ARM resource.
- type String
- The type of Azure resource.
Supporting Types
AutoscaleSettings, AutoscaleSettingsArgs
- Max
Throughput int - Represents maximum throughput, the resource can scale up to.
- Max
Throughput int - Represents maximum throughput, the resource can scale up to.
- max
Throughput Integer - Represents maximum throughput, the resource can scale up to.
- max
Throughput number - Represents maximum throughput, the resource can scale up to.
- max_
throughput int - Represents maximum throughput, the resource can scale up to.
- max
Throughput Number - Represents maximum throughput, the resource can scale up to.
AutoscaleSettingsResponse, AutoscaleSettingsResponseArgs
- Max
Throughput int - Represents maximum throughput, the resource can scale up to.
- Max
Throughput int - Represents maximum throughput, the resource can scale up to.
- max
Throughput Integer - Represents maximum throughput, the resource can scale up to.
- max
Throughput number - Represents maximum throughput, the resource can scale up to.
- max_
throughput int - Represents maximum throughput, the resource can scale up to.
- max
Throughput Number - Represents maximum throughput, the resource can scale up to.
CassandraKeyspaceGetPropertiesResponseOptions, CassandraKeyspaceGetPropertiesResponseOptionsArgs
- Autoscale
Settings Pulumi.Azure Native. Cosmos DB. Inputs. Autoscale Settings Response - Specifies the Autoscale settings.
- Throughput int
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
- Autoscale
Settings AutoscaleSettings Response - Specifies the Autoscale settings.
- Throughput int
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
- autoscale
Settings AutoscaleSettings Response - Specifies the Autoscale settings.
- throughput Integer
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
- autoscale
Settings AutoscaleSettings Response - Specifies the Autoscale settings.
- throughput number
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
- autoscale_
settings AutoscaleSettings Response - Specifies the Autoscale settings.
- throughput int
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
- autoscale
Settings Property Map - Specifies the Autoscale settings.
- throughput Number
- Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.
CassandraKeyspaceGetPropertiesResponseResource, CassandraKeyspaceGetPropertiesResponseResourceArgs
- Etag
This property is required. string - A system generated property representing the resource etag required for optimistic concurrency control.
- Id
This property is required. string - Name of the Cosmos DB Cassandra keyspace
- Rid
This property is required. string - A system generated property. A unique identifier.
- Ts
This property is required. double - A system generated property that denotes the last updated timestamp of the resource.
- Etag
This property is required. string - A system generated property representing the resource etag required for optimistic concurrency control.
- Id
This property is required. string - Name of the Cosmos DB Cassandra keyspace
- Rid
This property is required. string - A system generated property. A unique identifier.
- Ts
This property is required. float64 - A system generated property that denotes the last updated timestamp of the resource.
- etag
This property is required. String - A system generated property representing the resource etag required for optimistic concurrency control.
- id
This property is required. String - Name of the Cosmos DB Cassandra keyspace
- rid
This property is required. String - A system generated property. A unique identifier.
- ts
This property is required. Double - A system generated property that denotes the last updated timestamp of the resource.
- etag
This property is required. string - A system generated property representing the resource etag required for optimistic concurrency control.
- id
This property is required. string - Name of the Cosmos DB Cassandra keyspace
- rid
This property is required. string - A system generated property. A unique identifier.
- ts
This property is required. number - A system generated property that denotes the last updated timestamp of the resource.
- etag
This property is required. str - A system generated property representing the resource etag required for optimistic concurrency control.
- id
This property is required. str - Name of the Cosmos DB Cassandra keyspace
- rid
This property is required. str - A system generated property. A unique identifier.
- ts
This property is required. float - A system generated property that denotes the last updated timestamp of the resource.
- etag
This property is required. String - A system generated property representing the resource etag required for optimistic concurrency control.
- id
This property is required. String - Name of the Cosmos DB Cassandra keyspace
- rid
This property is required. String - A system generated property. A unique identifier.
- ts
This property is required. Number - A system generated property that denotes the last updated timestamp of the resource.
CassandraKeyspaceResource, CassandraKeyspaceResourceArgs
- Id
This property is required. string - Name of the Cosmos DB Cassandra keyspace
- Id
This property is required. string - Name of the Cosmos DB Cassandra keyspace
- id
This property is required. String - Name of the Cosmos DB Cassandra keyspace
- id
This property is required. string - Name of the Cosmos DB Cassandra keyspace
- id
This property is required. str - Name of the Cosmos DB Cassandra keyspace
- id
This property is required. String - Name of the Cosmos DB Cassandra keyspace
CreateUpdateOptions, CreateUpdateOptionsArgs
- Autoscale
Settings Pulumi.Azure Native. Cosmos DB. Inputs. Autoscale Settings - Specifies the Autoscale settings. Note: Either throughput or autoscaleSettings is required, but not both.
- Throughput int
- Request Units per second. For example, "throughput": 10000.
- Autoscale
Settings AutoscaleSettings - Specifies the Autoscale settings. Note: Either throughput or autoscaleSettings is required, but not both.
- Throughput int
- Request Units per second. For example, "throughput": 10000.
- autoscale
Settings AutoscaleSettings - Specifies the Autoscale settings. Note: Either throughput or autoscaleSettings is required, but not both.
- throughput Integer
- Request Units per second. For example, "throughput": 10000.
- autoscale
Settings AutoscaleSettings - Specifies the Autoscale settings. Note: Either throughput or autoscaleSettings is required, but not both.
- throughput number
- Request Units per second. For example, "throughput": 10000.
- autoscale_
settings AutoscaleSettings - Specifies the Autoscale settings. Note: Either throughput or autoscaleSettings is required, but not both.
- throughput int
- Request Units per second. For example, "throughput": 10000.
- autoscale
Settings Property Map - Specifies the Autoscale settings. Note: Either throughput or autoscaleSettings is required, but not both.
- throughput Number
- Request Units per second. For example, "throughput": 10000.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cosmosdb:CassandraResourceCassandraKeyspace keyspaceName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0