amazonka-keyspaces-2.0: Amazon Keyspaces SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.KeySpaces.CreateKeyspace

Description

The CreateKeyspace operation adds a new keyspace to your account. In an Amazon Web Services account, keyspace names must be unique within each Region.

CreateKeyspace is an asynchronous operation. You can monitor the creation status of the new keyspace by using the GetKeyspace operation.

For more information, see Creating keyspaces in the Amazon Keyspaces Developer Guide.

Synopsis

Creating a Request

data CreateKeyspace Source #

See: newCreateKeyspace smart constructor.

Constructors

CreateKeyspace' 

Fields

Instances

Instances details
ToJSON CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

ToHeaders CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

ToPath CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

ToQuery CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

AWSRequest CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

Associated Types

type AWSResponse CreateKeyspace #

Generic CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

Associated Types

type Rep CreateKeyspace :: Type -> Type #

Read CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

Show CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

NFData CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

Methods

rnf :: CreateKeyspace -> () #

Eq CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

Hashable CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

type AWSResponse CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

type Rep CreateKeyspace Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

type Rep CreateKeyspace = D1 ('MetaData "CreateKeyspace" "Amazonka.KeySpaces.CreateKeyspace" "amazonka-keyspaces-2.0-IgmNF4xdaFLH03VHAkrBWw" 'False) (C1 ('MetaCons "CreateKeyspace'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag))) :*: S1 ('MetaSel ('Just "keyspaceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateKeyspace Source #

Create a value of CreateKeyspace with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:tags:CreateKeyspace', createKeyspace_tags - A list of key-value pair tags to be attached to the keyspace.

For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.

CreateKeyspace, createKeyspace_keyspaceName - The name of the keyspace to be created.

Request Lenses

createKeyspace_tags :: Lens' CreateKeyspace (Maybe (NonEmpty Tag)) Source #

A list of key-value pair tags to be attached to the keyspace.

For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.

createKeyspace_keyspaceName :: Lens' CreateKeyspace Text Source #

The name of the keyspace to be created.

Destructuring the Response

data CreateKeyspaceResponse Source #

See: newCreateKeyspaceResponse smart constructor.

Constructors

CreateKeyspaceResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • resourceArn :: Text

    The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).

Instances

Instances details
Generic CreateKeyspaceResponse Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

Associated Types

type Rep CreateKeyspaceResponse :: Type -> Type #

Read CreateKeyspaceResponse Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

Show CreateKeyspaceResponse Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

NFData CreateKeyspaceResponse Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

Methods

rnf :: CreateKeyspaceResponse -> () #

Eq CreateKeyspaceResponse Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

type Rep CreateKeyspaceResponse Source # 
Instance details

Defined in Amazonka.KeySpaces.CreateKeyspace

type Rep CreateKeyspaceResponse = D1 ('MetaData "CreateKeyspaceResponse" "Amazonka.KeySpaces.CreateKeyspace" "amazonka-keyspaces-2.0-IgmNF4xdaFLH03VHAkrBWw" 'False) (C1 ('MetaCons "CreateKeyspaceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateKeyspaceResponse Source #

Create a value of CreateKeyspaceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:CreateKeyspaceResponse', createKeyspaceResponse_httpStatus - The response's http status code.

CreateKeyspaceResponse, createKeyspaceResponse_resourceArn - The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).

Response Lenses

createKeyspaceResponse_resourceArn :: Lens' CreateKeyspaceResponse Text Source #

The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).