Azure Native

Pulumi Official
Package maintained by Pulumi
v1.67.0 published on Tuesday, Jul 12, 2022 by Pulumi

CassandraResourceCassandraKeyspace

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

Example Usage

CosmosDBCassandraKeyspaceCreateUpdate

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var cassandraResourceCassandraKeyspace = new AzureNative.DocumentDB.CassandraResourceCassandraKeyspace("cassandraResourceCassandraKeyspace", new AzureNative.DocumentDB.CassandraResourceCassandraKeyspaceArgs
        {
            AccountName = "ddb1",
            KeyspaceName = "keyspaceName",
            Location = "West US",
            Options = ,
            Resource = new AzureNative.DocumentDB.Inputs.CassandraKeyspaceResourceArgs
            {
                Id = "keyspaceName",
            },
            ResourceGroupName = "rg1",
            Tags = ,
        });
    }

}
package main

import (
	documentdb "github.com/pulumi/pulumi-azure-native/sdk/go/azure/documentdb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := documentdb.NewCassandraResourceCassandraKeyspace(ctx, "cassandraResourceCassandraKeyspace", &documentdb.CassandraResourceCassandraKeyspaceArgs{
			AccountName:  pulumi.String("ddb1"),
			KeyspaceName: pulumi.String("keyspaceName"),
			Location:     pulumi.String("West US"),
			Options:      nil,
			Resource: &documentdb.CassandraKeyspaceResourceArgs{
				Id: pulumi.String("keyspaceName"),
			},
			ResourceGroupName: pulumi.String("rg1"),
			Tags:              nil,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var cassandraResourceCassandraKeyspace = new CassandraResourceCassandraKeyspace("cassandraResourceCassandraKeyspace", CassandraResourceCassandraKeyspaceArgs.builder()        
            .accountName("ddb1")
            .keyspaceName("keyspaceName")
            .location("West US")
            .options()
            .resource(Map.of("id", "keyspaceName"))
            .resourceGroupName("rg1")
            .tags()
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

cassandra_resource_cassandra_keyspace = azure_native.documentdb.CassandraResourceCassandraKeyspace("cassandraResourceCassandraKeyspace",
    account_name="ddb1",
    keyspace_name="keyspaceName",
    location="West US",
    options=azure_native.documentdb.CreateUpdateOptionsArgs(),
    resource=azure_native.documentdb.CassandraKeyspaceResourceArgs(
        id="keyspaceName",
    ),
    resource_group_name="rg1",
    tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const cassandraResourceCassandraKeyspace = new azure_native.documentdb.CassandraResourceCassandraKeyspace("cassandraResourceCassandraKeyspace", {
    accountName: "ddb1",
    keyspaceName: "keyspaceName",
    location: "West US",
    options: {},
    resource: {
        id: "keyspaceName",
    },
    resourceGroupName: "rg1",
    tags: {},
});
resources:
  cassandraResourceCassandraKeyspace:
    type: azure-native:documentdb:CassandraResourceCassandraKeyspace
    properties:
      accountName: ddb1
      keyspaceName: keyspaceName
      location: West US
      options: {}
      resource:
        id: keyspaceName
      resourceGroupName: rg1
      tags: {}

Create a CassandraResourceCassandraKeyspace Resource

new CassandraResourceCassandraKeyspace(name: string, args: CassandraResourceCassandraKeyspaceArgs, opts?: CustomResourceOptions);
@overload
def CassandraResourceCassandraKeyspace(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       account_name: Optional[str] = None,
                                       keyspace_name: Optional[str] = None,
                                       location: Optional[str] = None,
                                       options: Optional[CreateUpdateOptionsArgs] = None,
                                       resource: Optional[CassandraKeyspaceResourceArgs] = None,
                                       resource_group_name: Optional[str] = None,
                                       tags: Optional[Mapping[str, str]] = None)
@overload
def CassandraResourceCassandraKeyspace(resource_name: str,
                                       args: CassandraResourceCassandraKeyspaceArgs,
                                       opts: Optional[ResourceOptions] = 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:documentdb:CassandraResourceCassandraKeyspace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CassandraResourceCassandraKeyspaceArgs
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 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 string
The unique name of the resource.
args CassandraResourceCassandraKeyspaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CassandraResourceCassandraKeyspaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CassandraResourceCassandraKeyspaceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The CassandraResourceCassandraKeyspace resource accepts the following input properties:

AccountName string

Cosmos DB database account name.

Resource Pulumi.AzureNative.DocumentDB.Inputs.CassandraKeyspaceResourceArgs

The standard JSON format of a Cassandra keyspace

ResourceGroupName string

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

KeyspaceName string

Cosmos DB keyspace name.

Location string

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

Options Pulumi.AzureNative.DocumentDB.Inputs.CreateUpdateOptionsArgs

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

Tags 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".

AccountName string

Cosmos DB database account name.

Resource CassandraKeyspaceResourceArgs

The standard JSON format of a Cassandra keyspace

ResourceGroupName string

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

KeyspaceName string

Cosmos DB keyspace name.

Location string

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

Options CreateUpdateOptionsArgs

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

Tags 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".

accountName String

Cosmos DB database account name.

resource CassandraKeyspaceResourceArgs

The standard JSON format of a Cassandra keyspace

resourceGroupName String

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

keyspaceName String

Cosmos DB keyspace name.

location String

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

options CreateUpdateOptionsArgs

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

tags 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".

accountName string

Cosmos DB database account name.

resource CassandraKeyspaceResourceArgs

The standard JSON format of a Cassandra keyspace

resourceGroupName string

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

keyspaceName string

Cosmos DB keyspace name.

location string

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

options CreateUpdateOptionsArgs

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

tags {[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 str

Cosmos DB database account name.

resource CassandraKeyspaceResourceArgs

The standard JSON format of a Cassandra keyspace

resource_group_name str

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

keyspace_name str

Cosmos DB keyspace name.

location str

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

options CreateUpdateOptionsArgs

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

tags 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".

accountName String

Cosmos DB database account name.

resource Property Map

The standard JSON format of a Cassandra keyspace

resourceGroupName String

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

keyspaceName String

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.

tags 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:

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.

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.

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.

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.

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.

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

MaxThroughput int

Represents maximum throughput, the resource can scale up to.

MaxThroughput int

Represents maximum throughput, the resource can scale up to.

maxThroughput Integer

Represents maximum throughput, the resource can scale up to.

maxThroughput number

Represents maximum throughput, the resource can scale up to.

max_throughput int

Represents maximum throughput, the resource can scale up to.

maxThroughput Number

Represents maximum throughput, the resource can scale up to.

AutoscaleSettingsResponse

MaxThroughput int

Represents maximum throughput, the resource can scale up to.

MaxThroughput int

Represents maximum throughput, the resource can scale up to.

maxThroughput Integer

Represents maximum throughput, the resource can scale up to.

maxThroughput number

Represents maximum throughput, the resource can scale up to.

max_throughput int

Represents maximum throughput, the resource can scale up to.

maxThroughput Number

Represents maximum throughput, the resource can scale up to.

CassandraKeyspaceGetPropertiesResponseOptions

AutoscaleSettings Pulumi.AzureNative.DocumentDB.Inputs.AutoscaleSettingsResponse

Specifies the Autoscale settings.

Throughput int

Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.

AutoscaleSettings AutoscaleSettingsResponse

Specifies the Autoscale settings.

Throughput int

Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.

autoscaleSettings AutoscaleSettingsResponse

Specifies the Autoscale settings.

throughput Integer

Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.

autoscaleSettings AutoscaleSettingsResponse

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 AutoscaleSettingsResponse

Specifies the Autoscale settings.

throughput int

Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.

autoscaleSettings 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

Etag string

A system generated property representing the resource etag required for optimistic concurrency control.

Id string

Name of the Cosmos DB Cassandra keyspace

Rid string

A system generated property. A unique identifier.

Ts double

A system generated property that denotes the last updated timestamp of the resource.

Etag string

A system generated property representing the resource etag required for optimistic concurrency control.

Id string

Name of the Cosmos DB Cassandra keyspace

Rid string

A system generated property. A unique identifier.

Ts float64

A system generated property that denotes the last updated timestamp of the resource.

etag String

A system generated property representing the resource etag required for optimistic concurrency control.

id String

Name of the Cosmos DB Cassandra keyspace

rid String

A system generated property. A unique identifier.

ts Double

A system generated property that denotes the last updated timestamp of the resource.

etag string

A system generated property representing the resource etag required for optimistic concurrency control.

id string

Name of the Cosmos DB Cassandra keyspace

rid string

A system generated property. A unique identifier.

ts number

A system generated property that denotes the last updated timestamp of the resource.

etag str

A system generated property representing the resource etag required for optimistic concurrency control.

id str

Name of the Cosmos DB Cassandra keyspace

rid str

A system generated property. A unique identifier.

ts float

A system generated property that denotes the last updated timestamp of the resource.

etag String

A system generated property representing the resource etag required for optimistic concurrency control.

id String

Name of the Cosmos DB Cassandra keyspace

rid String

A system generated property. A unique identifier.

ts Number

A system generated property that denotes the last updated timestamp of the resource.

CassandraKeyspaceResource

Id string

Name of the Cosmos DB Cassandra keyspace

Id string

Name of the Cosmos DB Cassandra keyspace

id String

Name of the Cosmos DB Cassandra keyspace

id string

Name of the Cosmos DB Cassandra keyspace

id str

Name of the Cosmos DB Cassandra keyspace

id String

Name of the Cosmos DB Cassandra keyspace

CreateUpdateOptions

AutoscaleSettings Pulumi.AzureNative.DocumentDB.Inputs.AutoscaleSettings

Specifies the Autoscale settings.

Throughput int

Request Units per second. For example, "throughput": 10000.

AutoscaleSettings AutoscaleSettings

Specifies the Autoscale settings.

Throughput int

Request Units per second. For example, "throughput": 10000.

autoscaleSettings AutoscaleSettings

Specifies the Autoscale settings.

throughput Integer

Request Units per second. For example, "throughput": 10000.

autoscaleSettings AutoscaleSettings

Specifies the Autoscale settings.

throughput number

Request Units per second. For example, "throughput": 10000.

autoscale_settings AutoscaleSettings

Specifies the Autoscale settings.

throughput int

Request Units per second. For example, "throughput": 10000.

autoscaleSettings Property Map

Specifies the Autoscale settings.

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:documentdb:CassandraResourceCassandraKeyspace keyspaceName /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName 

Package Details

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