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 |
Modifies the KMS key for an existing database. While updating the
database, you must specify the database name and the identifier of the
new KMS key to be used (KmsKeyId
). If there are any concurrent
UpdateDatabase
requests, first writer wins.
See code sample for details.
Synopsis
- data UpdateDatabase = UpdateDatabase' {
- databaseName :: Text
- kmsKeyId :: Text
- newUpdateDatabase :: Text -> Text -> UpdateDatabase
- updateDatabase_databaseName :: Lens' UpdateDatabase Text
- updateDatabase_kmsKeyId :: Lens' UpdateDatabase Text
- data UpdateDatabaseResponse = UpdateDatabaseResponse' {
- database :: Maybe Database
- httpStatus :: Int
- newUpdateDatabaseResponse :: Int -> UpdateDatabaseResponse
- updateDatabaseResponse_database :: Lens' UpdateDatabaseResponse (Maybe Database)
- updateDatabaseResponse_httpStatus :: Lens' UpdateDatabaseResponse Int
Creating a Request
data UpdateDatabase Source #
See: newUpdateDatabase
smart constructor.
UpdateDatabase' | |
|
Instances
Create a value of UpdateDatabase
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:
UpdateDatabase
, updateDatabase_databaseName
- The name of the database.
UpdateDatabase
, updateDatabase_kmsKeyId
- The identifier of the new KMS key (KmsKeyId
) to be used to encrypt the
data stored in the database. If the KmsKeyId
currently registered with
the database is the same as the KmsKeyId
in the request, there will
not be any update.
You can specify the KmsKeyId
using any of the following:
- Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
- Key ARN:
arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
- Alias name:
alias/ExampleAlias
- Alias ARN:
arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
Request Lenses
updateDatabase_databaseName :: Lens' UpdateDatabase Text Source #
The name of the database.
updateDatabase_kmsKeyId :: Lens' UpdateDatabase Text Source #
The identifier of the new KMS key (KmsKeyId
) to be used to encrypt the
data stored in the database. If the KmsKeyId
currently registered with
the database is the same as the KmsKeyId
in the request, there will
not be any update.
You can specify the KmsKeyId
using any of the following:
- Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
- Key ARN:
arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
- Alias name:
alias/ExampleAlias
- Alias ARN:
arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
Destructuring the Response
data UpdateDatabaseResponse Source #
See: newUpdateDatabaseResponse
smart constructor.
UpdateDatabaseResponse' | |
|
Instances
newUpdateDatabaseResponse Source #
Create a value of UpdateDatabaseResponse
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:UpdateDatabaseResponse'
, updateDatabaseResponse_database
- Undocumented member.
$sel:httpStatus:UpdateDatabaseResponse'
, updateDatabaseResponse_httpStatus
- The response's http status code.
Response Lenses
updateDatabaseResponse_database :: Lens' UpdateDatabaseResponse (Maybe Database) Source #
Undocumented member.
updateDatabaseResponse_httpStatus :: Lens' UpdateDatabaseResponse Int Source #
The response's http status code.