amazonka-timestream-write-2.0: Amazon Timestream Write 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.TimeStreamWrite.UpdateDatabase

Description

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

Creating a Request

data UpdateDatabase Source #

See: newUpdateDatabase smart constructor.

Constructors

UpdateDatabase' 

Fields

  • databaseName :: Text

    The name of the database.

  • kmsKeyId :: Text

    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

Instances

Instances details
ToJSON UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

ToHeaders UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

ToPath UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

ToQuery UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

AWSRequest UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

Associated Types

type AWSResponse UpdateDatabase #

Generic UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

Associated Types

type Rep UpdateDatabase :: Type -> Type #

Read UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

Show UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

NFData UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

Methods

rnf :: UpdateDatabase -> () #

Eq UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

Hashable UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

type AWSResponse UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

type Rep UpdateDatabase Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

type Rep UpdateDatabase = D1 ('MetaData "UpdateDatabase" "Amazonka.TimeStreamWrite.UpdateDatabase" "amazonka-timestream-write-2.0-LXdAXNx5NaTIjNxYPQvSVq" 'False) (C1 ('MetaCons "UpdateDatabase'" 'PrefixI 'True) (S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUpdateDatabase Source #

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_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.

Constructors

UpdateDatabaseResponse' 

Fields

Instances

Instances details
Generic UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

Associated Types

type Rep UpdateDatabaseResponse :: Type -> Type #

Read UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

Show UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

NFData UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

Methods

rnf :: UpdateDatabaseResponse -> () #

Eq UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

type Rep UpdateDatabaseResponse Source # 
Instance details

Defined in Amazonka.TimeStreamWrite.UpdateDatabase

type Rep UpdateDatabaseResponse = D1 ('MetaData "UpdateDatabaseResponse" "Amazonka.TimeStreamWrite.UpdateDatabase" "amazonka-timestream-write-2.0-LXdAXNx5NaTIjNxYPQvSVq" 'False) (C1 ('MetaCons "UpdateDatabaseResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "database") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Database)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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