Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data UpdateKeyDescription = UpdateKeyDescription' {
- keyId :: Text
- description :: Text
- newUpdateKeyDescription :: Text -> Text -> UpdateKeyDescription
- updateKeyDescription_keyId :: Lens' UpdateKeyDescription Text
- updateKeyDescription_description :: Lens' UpdateKeyDescription Text
- data UpdateKeyDescriptionResponse = UpdateKeyDescriptionResponse' {
- newUpdateKeyDescriptionResponse :: UpdateKeyDescriptionResponse
Creating a Request
data UpdateKeyDescription Source #
See: newUpdateKeyDescription
smart constructor.
UpdateKeyDescription' | |
|
Instances
newUpdateKeyDescription Source #
:: Text | |
-> Text | |
-> UpdateKeyDescription |
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.
updateKeyDescription_description :: Lens' UpdateKeyDescription Text Source #
New description for the KMS key.
Destructuring the Response
data UpdateKeyDescriptionResponse Source #
See: newUpdateKeyDescriptionResponse
smart constructor.
Instances
newUpdateKeyDescriptionResponse :: UpdateKeyDescriptionResponse Source #
Create a value of UpdateKeyDescriptionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.