libZSservicesZSamazonka-kmsZSamazonka-kms
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 state: Effect on your KMS key 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
Eq UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Read UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Show UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Generic UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Associated Types

type Rep UpdateKeyDescription :: Type -> Type #

NFData UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Methods

rnf :: UpdateKeyDescription -> () #

Hashable UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

ToJSON UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

AWSRequest UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Associated Types

type AWSResponse 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

type Rep UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

type Rep UpdateKeyDescription = D1 ('MetaData "UpdateKeyDescription" "Amazonka.KMS.UpdateKeyDescription" "libZSservicesZSamazonka-kmsZSamazonka-kms" 'False) (C1 ('MetaCons "UpdateKeyDescription'" 'PrefixI 'True) (S1 ('MetaSel ('Just "keyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse UpdateKeyDescription Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

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:

$sel:keyId: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.

$sel:description: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
Eq UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Read UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Show UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Generic UpdateKeyDescriptionResponse Source # 
Instance details

Defined in Amazonka.KMS.UpdateKeyDescription

Associated Types

type Rep UpdateKeyDescriptionResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-kmsZSamazonka-kms" '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.