Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateKeyspace = CreateKeyspace' {}
- newCreateKeyspace :: Text -> CreateKeyspace
- createKeyspace_tags :: Lens' CreateKeyspace (Maybe (NonEmpty Tag))
- createKeyspace_keyspaceName :: Lens' CreateKeyspace Text
- data CreateKeyspaceResponse = CreateKeyspaceResponse' {
- httpStatus :: Int
- resourceArn :: Text
- newCreateKeyspaceResponse :: Int -> Text -> CreateKeyspaceResponse
- createKeyspaceResponse_httpStatus :: Lens' CreateKeyspaceResponse Int
- createKeyspaceResponse_resourceArn :: Lens' CreateKeyspaceResponse Text
Creating a Request
data CreateKeyspace Source #
See: newCreateKeyspace
smart constructor.
CreateKeyspace' | |
|
Instances
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.
CreateKeyspaceResponse' | |
|
Instances
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_httpStatus :: Lens' CreateKeyspaceResponse Int Source #
The response's http status code.
createKeyspaceResponse_resourceArn :: Lens' CreateKeyspaceResponse Text Source #
The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).