amazonka-kms-2.0: Amazon Key Management Service 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.KMS.UpdateKeyDescription

Description

Updates the description of a KMS key. To see the description of a KMS key, use DescribeKey.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UpdateKeyDescription (key policy)

Related operations

  • CreateKey
  • DescribeKey
Synopsis

Creating a Request

data UpdateKeyDescription Source #

See: newUpdateKeyDescription smart constructor.

Constructors

UpdateKeyDescription' 

Fields

  • keyId :: Text

    Updates the description of the specified KMS key.

    Specify the key ID or key ARN of the KMS key.

    For example:

    • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
    • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

    To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

  • description :: Text

    New description for the KMS key.

Instances

Instances details
ToJSON UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

ToHeaders UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

ToPath UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

ToQuery UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

AWSRequest UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Associated Types

type AWSResponse UpdateKeyDescription #

Generic UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Associated Types

type Rep UpdateKeyDescription :: Type -> Type #

Read UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Show UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

NFData UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Methods

rnf :: UpdateKeyDescription -> () #

Eq UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Hashable UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

type AWSResponse UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

type Rep UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

type Rep UpdateKeyDescription = D1 ('MetaData "UpdateKeyDescription" "Amazonka.KMS.UpdateKeyDescription" "amazonka-kms-2.0-6YhT3Ymbf9Z5PoaGoz7tbG" 'False) (C1 ('MetaCons "UpdateKeyDescription'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUpdateKeyDescription Source #

Create a value of UpdateKeyDescription 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:

UpdateKeyDescription, updateKeyDescription_keyId - Updates the description of the specified KMS key.

Specify the key ID or key ARN of the KMS key.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

UpdateKeyDescription, updateKeyDescription_description - New description for the KMS key.

Request Lenses

updateKeyDescription_keyId :: Lens' UpdateKeyDescription Text Source #

Updates the description of the specified KMS key.

Specify the key ID or key ARN of the KMS key.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

Destructuring the Response

data UpdateKeyDescriptionResponse Source #

See: newUpdateKeyDescriptionResponse smart constructor.

Instances

Instances details
Generic UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Associated Types

type Rep UpdateKeyDescriptionResponse :: Type -> Type #

Read UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Show UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

NFData UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Eq UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

type Rep UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

type Rep UpdateKeyDescriptionResponse = D1 ('MetaData "UpdateKeyDescriptionResponse" "Amazonka.KMS.UpdateKeyDescription" "amazonka-kms-2.0-6YhT3Ymbf9Z5PoaGoz7tbG" 'False) (C1 ('MetaCons "UpdateKeyDescriptionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newUpdateKeyDescriptionResponse :: UpdateKeyDescriptionResponse Source #

Create a value of UpdateKeyDescriptionResponse with all optional fields omitted.

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