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 |
Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to Amazon Web Services managed KMS keys for more info. Service quotas apply. See code sample for details.
Synopsis
- data CreateDatabase = CreateDatabase' {}
- newCreateDatabase :: Text -> CreateDatabase
- createDatabase_kmsKeyId :: Lens' CreateDatabase (Maybe Text)
- createDatabase_tags :: Lens' CreateDatabase (Maybe [Tag])
- createDatabase_databaseName :: Lens' CreateDatabase Text
- data CreateDatabaseResponse = CreateDatabaseResponse' {
- database :: Maybe Database
- httpStatus :: Int
- newCreateDatabaseResponse :: Int -> CreateDatabaseResponse
- createDatabaseResponse_database :: Lens' CreateDatabaseResponse (Maybe Database)
- createDatabaseResponse_httpStatus :: Lens' CreateDatabaseResponse Int
Creating a Request
data CreateDatabase Source #
See: newCreateDatabase
smart constructor.
CreateDatabase' | |
|
Instances
Create a value of CreateDatabase
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:
CreateDatabase
, createDatabase_kmsKeyId
- The KMS key for the database. If the KMS key is not specified, the
database will be encrypted with a Timestream managed KMS key located in
your account. Refer to
Amazon Web Services managed KMS keys
for more info.
$sel:tags:CreateDatabase'
, createDatabase_tags
- A list of key-value pairs to label the table.
CreateDatabase
, createDatabase_databaseName
- The name of the Timestream database.
Request Lenses
createDatabase_kmsKeyId :: Lens' CreateDatabase (Maybe Text) Source #
The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to Amazon Web Services managed KMS keys for more info.
createDatabase_tags :: Lens' CreateDatabase (Maybe [Tag]) Source #
A list of key-value pairs to label the table.
createDatabase_databaseName :: Lens' CreateDatabase Text Source #
The name of the Timestream database.
Destructuring the Response
data CreateDatabaseResponse Source #
See: newCreateDatabaseResponse
smart constructor.
CreateDatabaseResponse' | |
|
Instances
newCreateDatabaseResponse Source #
Create a value of CreateDatabaseResponse
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:database:CreateDatabaseResponse'
, createDatabaseResponse_database
- The newly created Timestream database.
$sel:httpStatus:CreateDatabaseResponse'
, createDatabaseResponse_httpStatus
- The response's http status code.
Response Lenses
createDatabaseResponse_database :: Lens' CreateDatabaseResponse (Maybe Database) Source #
The newly created Timestream database.
createDatabaseResponse_httpStatus :: Lens' CreateDatabaseResponse Int Source #
The response's http status code.