aws-native.cassandra.Keyspace
Resource schema for AWS::Cassandra::Keyspace
Example Usage
Example
using System.Collections.Generic;
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!
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,
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
- List<Pulumi.
Aws Native. Cassandra. Inputs. Keyspace Tag Args>
- Keyspace
Name string Name for Cassandra keyspace
- []Keyspace
Tag Args
- keyspace
Name String Name for Cassandra keyspace
- List<Keyspace
Tag Args>
- keyspace
Name string Name for Cassandra keyspace
- Keyspace
Tag Args[]
- keyspace_
name str Name for Cassandra keyspace
- Sequence[Keyspace
Tag Args]
- keyspace
Name String Name for Cassandra keyspace
- 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
KeyspaceTag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0