AWS Native is in preview. AWS Classic is fully supported.
aws-native.cassandra.Keyspace
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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.Cassandra.Inputs.KeyspaceTagArgs
{
Key = "tag1",
Value = "val1",
},
new AwsNative.Cassandra.Inputs.KeyspaceTagArgs
{
Key = "tag2",
Value = "val2",
},
},
});
});
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, "myNewKeyspace", &cassandra.KeyspaceArgs{
KeyspaceName: pulumi.String("MyNewKeyspace"),
Tags: []cassandra.KeyspaceTagArgs{
{
Key: pulumi.String("tag1"),
Value: pulumi.String("val1"),
},
{
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=[
aws_native.cassandra.KeyspaceTagArgs(
key="tag1",
value="val1",
),
aws_native.cassandra.KeyspaceTagArgs(
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=aws_native.cassandra.KeyspaceReplicationSpecificationArgs(
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=aws_native.cassandra.KeyspaceReplicationSpecificationArgs(
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
new Keyspace(name: string, args?: KeyspaceArgs, opts?: CustomResourceOptions);
@overload
def Keyspace(resource_name: str,
opts: Optional[ResourceOptions] = None,
keyspace_name: Optional[str] = None,
replication_specification: Optional[KeyspaceReplicationSpecificationArgs] = None,
tags: Optional[Sequence[KeyspaceTagArgs]] = None)
@overload
def Keyspace(resource_name: str,
args: Optional[KeyspaceArgs] = None,
opts: Optional[ResourceOptions] = 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.
- 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
The Keyspace resource accepts the following input properties:
- Keyspace
Name string Name for Cassandra keyspace
- Replication
Specification KeyspaceReplication Specification Args - []Keyspace
Tag Args
- keyspace
Name String Name for Cassandra keyspace
- replication
Specification KeyspaceReplication Specification - List<Keyspace
Tag>
- keyspace
Name string Name for Cassandra keyspace
- replication
Specification KeyspaceReplication Specification - Keyspace
Tag[]
- keyspace_
name str Name for Cassandra keyspace
- replication_
specification KeyspaceReplication Specification Args - Sequence[Keyspace
Tag Args]
- keyspace
Name String Name for Cassandra keyspace
- replication
Specification Property Map - List<Property Map>
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<"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"> - replication
Strategy "SINGLE_REGION" | "MULTI_REGION"
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
KeyspaceTag, KeyspaceTagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.