We recommend new projects start with resources from the AWS provider.
aws-native.cassandra.Keyspace
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AWS::Cassandra::Keyspace
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var myNewKeyspace = new AwsNative.Cassandra.Keyspace("myNewKeyspace", new()
{
KeyspaceName = "MyNewKeyspace",
Tags = new[]
{
new AwsNative.Inputs.TagArgs
{
Key = "tag1",
Value = "val1",
},
new AwsNative.Inputs.TagArgs
{
Key = "tag2",
Value = "val2",
},
},
});
});
package main
import (
awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/cassandra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cassandra.NewKeyspace(ctx, "myNewKeyspace", &cassandra.KeyspaceArgs{
KeyspaceName: pulumi.String("MyNewKeyspace"),
Tags: aws.TagArray{
&aws.TagArgs{
Key: pulumi.String("tag1"),
Value: pulumi.String("val1"),
},
&aws.TagArgs{
Key: pulumi.String("tag2"),
Value: pulumi.String("val2"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
my_new_keyspace = aws_native.cassandra.Keyspace("myNewKeyspace",
keyspace_name="MyNewKeyspace",
tags=[
{
"key": "tag1",
"value": "val1",
},
{
"key": "tag2",
"value": "val2",
},
])
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myNewKeyspace = new aws_native.cassandra.Keyspace("myNewKeyspace", {
keyspaceName: "MyNewKeyspace",
tags: [
{
key: "tag1",
value: "val1",
},
{
key: "tag2",
value: "val2",
},
],
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var multiRegionKeyspace = new AwsNative.Cassandra.Keyspace("multiRegionKeyspace", new()
{
KeyspaceName = "MultiRegionKeyspace",
ReplicationSpecification = new AwsNative.Cassandra.Inputs.KeyspaceReplicationSpecificationArgs
{
ReplicationStrategy = AwsNative.Cassandra.KeyspaceReplicationSpecificationReplicationStrategy.MultiRegion,
RegionList = new[]
{
AwsNative.Cassandra.KeyspaceRegionListItem.UsEast1,
AwsNative.Cassandra.KeyspaceRegionListItem.UsWest2,
AwsNative.Cassandra.KeyspaceRegionListItem.EuWest1,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/cassandra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cassandra.NewKeyspace(ctx, "multiRegionKeyspace", &cassandra.KeyspaceArgs{
KeyspaceName: pulumi.String("MultiRegionKeyspace"),
ReplicationSpecification: &cassandra.KeyspaceReplicationSpecificationArgs{
ReplicationStrategy: cassandra.KeyspaceReplicationSpecificationReplicationStrategyMultiRegion,
RegionList: cassandra.KeyspaceRegionListItemArray{
cassandra.KeyspaceRegionListItemUsEast1,
cassandra.KeyspaceRegionListItemUsWest2,
cassandra.KeyspaceRegionListItemEuWest1,
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
multi_region_keyspace = aws_native.cassandra.Keyspace("multiRegionKeyspace",
keyspace_name="MultiRegionKeyspace",
replication_specification={
"replication_strategy": aws_native.cassandra.KeyspaceReplicationSpecificationReplicationStrategy.MULTI_REGION,
"region_list": [
aws_native.cassandra.KeyspaceRegionListItem.US_EAST1,
aws_native.cassandra.KeyspaceRegionListItem.US_WEST2,
aws_native.cassandra.KeyspaceRegionListItem.EU_WEST1,
],
})
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const multiRegionKeyspace = new aws_native.cassandra.Keyspace("multiRegionKeyspace", {
keyspaceName: "MultiRegionKeyspace",
replicationSpecification: {
replicationStrategy: aws_native.cassandra.KeyspaceReplicationSpecificationReplicationStrategy.MultiRegion,
regionList: [
aws_native.cassandra.KeyspaceRegionListItem.UsEast1,
aws_native.cassandra.KeyspaceRegionListItem.UsWest2,
aws_native.cassandra.KeyspaceRegionListItem.EuWest1,
],
},
});
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var multiRegionKeyspace = new AwsNative.Cassandra.Keyspace("multiRegionKeyspace", new()
{
KeyspaceName = "MultiRegionKeyspace",
ReplicationSpecification = new AwsNative.Cassandra.Inputs.KeyspaceReplicationSpecificationArgs
{
ReplicationStrategy = AwsNative.Cassandra.KeyspaceReplicationSpecificationReplicationStrategy.MultiRegion,
RegionList = new[]
{
AwsNative.Cassandra.KeyspaceRegionListItem.UsEast1,
AwsNative.Cassandra.KeyspaceRegionListItem.UsWest2,
AwsNative.Cassandra.KeyspaceRegionListItem.EuWest1,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/cassandra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cassandra.NewKeyspace(ctx, "multiRegionKeyspace", &cassandra.KeyspaceArgs{
KeyspaceName: pulumi.String("MultiRegionKeyspace"),
ReplicationSpecification: &cassandra.KeyspaceReplicationSpecificationArgs{
ReplicationStrategy: cassandra.KeyspaceReplicationSpecificationReplicationStrategyMultiRegion,
RegionList: cassandra.KeyspaceRegionListItemArray{
cassandra.KeyspaceRegionListItemUsEast1,
cassandra.KeyspaceRegionListItemUsWest2,
cassandra.KeyspaceRegionListItemEuWest1,
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
multi_region_keyspace = aws_native.cassandra.Keyspace("multiRegionKeyspace",
keyspace_name="MultiRegionKeyspace",
replication_specification={
"replication_strategy": aws_native.cassandra.KeyspaceReplicationSpecificationReplicationStrategy.MULTI_REGION,
"region_list": [
aws_native.cassandra.KeyspaceRegionListItem.US_EAST1,
aws_native.cassandra.KeyspaceRegionListItem.US_WEST2,
aws_native.cassandra.KeyspaceRegionListItem.EU_WEST1,
],
})
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const multiRegionKeyspace = new aws_native.cassandra.Keyspace("multiRegionKeyspace", {
keyspaceName: "MultiRegionKeyspace",
replicationSpecification: {
replicationStrategy: aws_native.cassandra.KeyspaceReplicationSpecificationReplicationStrategy.MultiRegion,
regionList: [
aws_native.cassandra.KeyspaceRegionListItem.UsEast1,
aws_native.cassandra.KeyspaceRegionListItem.UsWest2,
aws_native.cassandra.KeyspaceRegionListItem.EuWest1,
],
},
});
Coming soon!
Create Keyspace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Keyspace(name: string, args?: KeyspaceArgs, opts?: CustomResourceOptions);
@overload
def Keyspace(resource_name: str,
args: Optional[KeyspaceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Keyspace(resource_name: str,
opts: Optional[ResourceOptions] = None,
keyspace_name: Optional[str] = None,
replication_specification: Optional[KeyspaceReplicationSpecificationArgs] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewKeyspace(ctx *Context, name string, args *KeyspaceArgs, opts ...ResourceOption) (*Keyspace, error)
public Keyspace(string name, KeyspaceArgs? args = null, CustomResourceOptions? opts = null)
public Keyspace(String name, KeyspaceArgs args)
public Keyspace(String name, KeyspaceArgs args, CustomResourceOptions options)
type: aws-native:cassandra:Keyspace
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 KeyspaceArgs
- 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 KeyspaceArgs
- 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 KeyspaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KeyspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KeyspaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Keyspace 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 Keyspace resource accepts the following input properties:
- Keyspace
Name string - Name for Cassandra keyspace
- Replication
Specification Pulumi.Aws Native. Cassandra. Inputs. Keyspace Replication Specification Specifies the
ReplicationStrategy
of a keyspace. The options are:SINGLE_REGION
for a single Region keyspace (optional) orMULTI_REGION
for a multi-Region keyspace
If no
ReplicationStrategy
is provided, the default isSINGLE_REGION
. If you chooseMULTI_REGION
, you must also provide aRegionList
with the AWS Regions that the keyspace is replicated in.- List<Pulumi.
Aws Native. Inputs. Tag> An array of key-value pairs to apply to this resource.
For more information, see Tag .
- Keyspace
Name string - Name for Cassandra keyspace
- Replication
Specification KeyspaceReplication Specification Args Specifies the
ReplicationStrategy
of a keyspace. The options are:SINGLE_REGION
for a single Region keyspace (optional) orMULTI_REGION
for a multi-Region keyspace
If no
ReplicationStrategy
is provided, the default isSINGLE_REGION
. If you chooseMULTI_REGION
, you must also provide aRegionList
with the AWS Regions that the keyspace is replicated in.- Tag
Args An array of key-value pairs to apply to this resource.
For more information, see Tag .
- keyspace
Name String - Name for Cassandra keyspace
- replication
Specification KeyspaceReplication Specification Specifies the
ReplicationStrategy
of a keyspace. The options are:SINGLE_REGION
for a single Region keyspace (optional) orMULTI_REGION
for a multi-Region keyspace
If no
ReplicationStrategy
is provided, the default isSINGLE_REGION
. If you chooseMULTI_REGION
, you must also provide aRegionList
with the AWS Regions that the keyspace is replicated in.- List<Tag>
An array of key-value pairs to apply to this resource.
For more information, see Tag .
- keyspace
Name string - Name for Cassandra keyspace
- replication
Specification KeyspaceReplication Specification Specifies the
ReplicationStrategy
of a keyspace. The options are:SINGLE_REGION
for a single Region keyspace (optional) orMULTI_REGION
for a multi-Region keyspace
If no
ReplicationStrategy
is provided, the default isSINGLE_REGION
. If you chooseMULTI_REGION
, you must also provide aRegionList
with the AWS Regions that the keyspace is replicated in.- Tag[]
An array of key-value pairs to apply to this resource.
For more information, see Tag .
- keyspace_
name str - Name for Cassandra keyspace
- replication_
specification KeyspaceReplication Specification Args Specifies the
ReplicationStrategy
of a keyspace. The options are:SINGLE_REGION
for a single Region keyspace (optional) orMULTI_REGION
for a multi-Region keyspace
If no
ReplicationStrategy
is provided, the default isSINGLE_REGION
. If you chooseMULTI_REGION
, you must also provide aRegionList
with the AWS Regions that the keyspace is replicated in.- Sequence[Tag
Args] An array of key-value pairs to apply to this resource.
For more information, see Tag .
- keyspace
Name String - Name for Cassandra keyspace
- replication
Specification Property Map Specifies the
ReplicationStrategy
of a keyspace. The options are:SINGLE_REGION
for a single Region keyspace (optional) orMULTI_REGION
for a multi-Region keyspace
If no
ReplicationStrategy
is provided, the default isSINGLE_REGION
. If you chooseMULTI_REGION
, you must also provide aRegionList
with the AWS Regions that the keyspace is replicated in.- List<Property Map>
An array of key-value pairs to apply to this resource.
For more information, see Tag .
Outputs
All input properties are implicitly available as output properties. Additionally, the Keyspace 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.
Supporting Types
KeyspaceRegionListItem, KeyspaceRegionListItemArgs
- Ap
Northeast1 - ap-northeast-1
- Ap
Northeast2 - ap-northeast-2
- Ap
South1 - ap-south-1
- Ap
Southeast1 - ap-southeast-1
- Ap
Southeast2 - ap-southeast-2
- Ca
Central1 - ca-central-1
- Eu
Central1 - eu-central-1
- Eu
North1 - eu-north-1
- Eu
West1 - eu-west-1
- Eu
West2 - eu-west-2
- Eu
West3 - eu-west-3
- Sa
East1 - sa-east-1
- Us
East1 - us-east-1
- Us
East2 - us-east-2
- Us
West1 - us-west-1
- Us
West2 - us-west-2
- Keyspace
Region List Item Ap Northeast1 - ap-northeast-1
- Keyspace
Region List Item Ap Northeast2 - ap-northeast-2
- Keyspace
Region List Item Ap South1 - ap-south-1
- Keyspace
Region List Item Ap Southeast1 - ap-southeast-1
- Keyspace
Region List Item Ap Southeast2 - ap-southeast-2
- Keyspace
Region List Item Ca Central1 - ca-central-1
- Keyspace
Region List Item Eu Central1 - eu-central-1
- Keyspace
Region List Item Eu North1 - eu-north-1
- Keyspace
Region List Item Eu West1 - eu-west-1
- Keyspace
Region List Item Eu West2 - eu-west-2
- Keyspace
Region List Item Eu West3 - eu-west-3
- Keyspace
Region List Item Sa East1 - sa-east-1
- Keyspace
Region List Item Us East1 - us-east-1
- Keyspace
Region List Item Us East2 - us-east-2
- Keyspace
Region List Item Us West1 - us-west-1
- Keyspace
Region List Item Us West2 - us-west-2
- Ap
Northeast1 - ap-northeast-1
- Ap
Northeast2 - ap-northeast-2
- Ap
South1 - ap-south-1
- Ap
Southeast1 - ap-southeast-1
- Ap
Southeast2 - ap-southeast-2
- Ca
Central1 - ca-central-1
- Eu
Central1 - eu-central-1
- Eu
North1 - eu-north-1
- Eu
West1 - eu-west-1
- Eu
West2 - eu-west-2
- Eu
West3 - eu-west-3
- Sa
East1 - sa-east-1
- Us
East1 - us-east-1
- Us
East2 - us-east-2
- Us
West1 - us-west-1
- Us
West2 - us-west-2
- Ap
Northeast1 - ap-northeast-1
- Ap
Northeast2 - ap-northeast-2
- Ap
South1 - ap-south-1
- Ap
Southeast1 - ap-southeast-1
- Ap
Southeast2 - ap-southeast-2
- Ca
Central1 - ca-central-1
- Eu
Central1 - eu-central-1
- Eu
North1 - eu-north-1
- Eu
West1 - eu-west-1
- Eu
West2 - eu-west-2
- Eu
West3 - eu-west-3
- Sa
East1 - sa-east-1
- Us
East1 - us-east-1
- Us
East2 - us-east-2
- Us
West1 - us-west-1
- Us
West2 - us-west-2
- AP_NORTHEAST1
- ap-northeast-1
- AP_NORTHEAST2
- ap-northeast-2
- AP_SOUTH1
- ap-south-1
- AP_SOUTHEAST1
- ap-southeast-1
- AP_SOUTHEAST2
- ap-southeast-2
- CA_CENTRAL1
- ca-central-1
- EU_CENTRAL1
- eu-central-1
- EU_NORTH1
- eu-north-1
- EU_WEST1
- eu-west-1
- EU_WEST2
- eu-west-2
- EU_WEST3
- eu-west-3
- SA_EAST1
- sa-east-1
- US_EAST1
- us-east-1
- US_EAST2
- us-east-2
- US_WEST1
- us-west-1
- US_WEST2
- us-west-2
- "ap-northeast-1"
- ap-northeast-1
- "ap-northeast-2"
- ap-northeast-2
- "ap-south-1"
- ap-south-1
- "ap-southeast-1"
- ap-southeast-1
- "ap-southeast-2"
- ap-southeast-2
- "ca-central-1"
- ca-central-1
- "eu-central-1"
- eu-central-1
- "eu-north-1"
- eu-north-1
- "eu-west-1"
- eu-west-1
- "eu-west-2"
- eu-west-2
- "eu-west-3"
- eu-west-3
- "sa-east-1"
- sa-east-1
- "us-east-1"
- us-east-1
- "us-east-2"
- us-east-2
- "us-west-1"
- us-west-1
- "us-west-2"
- us-west-2
KeyspaceReplicationSpecification, KeyspaceReplicationSpecificationArgs
- Region
List List<Pulumi.Aws Native. Cassandra. Keyspace Region List Item> - Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two and up to six Regions, including the Region that the keyspace is being created in.
- Replication
Strategy Pulumi.Aws Native. Cassandra. Keyspace Replication Specification Replication Strategy The options are:
SINGLE_REGION
(optional)MULTI_REGION
If no value is specified, the default is
SINGLE_REGION
. IfMULTI_REGION
is specified,RegionList
is required.
- Region
List []KeyspaceRegion List Item - Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two and up to six Regions, including the Region that the keyspace is being created in.
- Replication
Strategy KeyspaceReplication Specification Replication Strategy The options are:
SINGLE_REGION
(optional)MULTI_REGION
If no value is specified, the default is
SINGLE_REGION
. IfMULTI_REGION
is specified,RegionList
is required.
- region
List List<KeyspaceRegion List Item> - Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two and up to six Regions, including the Region that the keyspace is being created in.
- replication
Strategy KeyspaceReplication Specification Replication Strategy The options are:
SINGLE_REGION
(optional)MULTI_REGION
If no value is specified, the default is
SINGLE_REGION
. IfMULTI_REGION
is specified,RegionList
is required.
- region
List KeyspaceRegion List Item[] - Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two and up to six Regions, including the Region that the keyspace is being created in.
- replication
Strategy KeyspaceReplication Specification Replication Strategy The options are:
SINGLE_REGION
(optional)MULTI_REGION
If no value is specified, the default is
SINGLE_REGION
. IfMULTI_REGION
is specified,RegionList
is required.
- region_
list Sequence[KeyspaceRegion List Item] - Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two and up to six Regions, including the Region that the keyspace is being created in.
- replication_
strategy KeyspaceReplication Specification Replication Strategy The options are:
SINGLE_REGION
(optional)MULTI_REGION
If no value is specified, the default is
SINGLE_REGION
. IfMULTI_REGION
is specified,RegionList
is required.
- region
List List<"ap-northeast-1" | "ap-northeast-2" | "ap-south-1" | "ap-southeast-1" | "ap-southeast-2" | "ca-central-1" | "eu-central-1" | "eu-north-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "sa-east-1" | "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2"> - Specifies the AWS Regions that the keyspace is replicated in. You must specify at least two and up to six Regions, including the Region that the keyspace is being created in.
- replication
Strategy "SINGLE_REGION" | "MULTI_REGION" The options are:
SINGLE_REGION
(optional)MULTI_REGION
If no value is specified, the default is
SINGLE_REGION
. IfMULTI_REGION
is specified,RegionList
is required.
KeyspaceReplicationSpecificationReplicationStrategy, KeyspaceReplicationSpecificationReplicationStrategyArgs
- Single
Region - SINGLE_REGION
- Multi
Region - MULTI_REGION
- Keyspace
Replication Specification Replication Strategy Single Region - SINGLE_REGION
- Keyspace
Replication Specification Replication Strategy Multi Region - MULTI_REGION
- Single
Region - SINGLE_REGION
- Multi
Region - MULTI_REGION
- Single
Region - SINGLE_REGION
- Multi
Region - MULTI_REGION
- SINGLE_REGION
- SINGLE_REGION
- MULTI_REGION
- MULTI_REGION
- "SINGLE_REGION"
- SINGLE_REGION
- "MULTI_REGION"
- MULTI_REGION
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.