Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Cancels the deletion of a customer master key (CMK). When this operation is successful, the CMK is set to the Disabled
state. To enable a CMK, use EnableKey
. You cannot perform this operation on a CMK in a different AWS account.
For more information about scheduling and canceling deletion of a CMK, see Deleting Customer Master Keys in the AWS Key Management Service Developer Guide .
- cancelKeyDeletion :: Text -> CancelKeyDeletion
- data CancelKeyDeletion
- ckdKeyId :: Lens' CancelKeyDeletion Text
- cancelKeyDeletionResponse :: Int -> CancelKeyDeletionResponse
- data CancelKeyDeletionResponse
- ckdrsKeyId :: Lens' CancelKeyDeletionResponse (Maybe Text)
- ckdrsResponseStatus :: Lens' CancelKeyDeletionResponse Int
Creating a Request
Creates a value of CancelKeyDeletion
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ckdKeyId
- The unique identifier for the customer master key (CMK) for which to cancel deletion. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. 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 CMK, useListKeys
orDescribeKey
.
data CancelKeyDeletion Source #
See: cancelKeyDeletion
smart constructor.
Request Lenses
ckdKeyId :: Lens' CancelKeyDeletion Text Source #
The unique identifier for the customer master key (CMK) for which to cancel deletion. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. 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 CMK, use ListKeys
or DescribeKey
.
Destructuring the Response
cancelKeyDeletionResponse Source #
Creates a value of CancelKeyDeletionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ckdrsKeyId
- The unique identifier of the master key for which deletion is canceled.ckdrsResponseStatus
- -- | The response status code.
data CancelKeyDeletionResponse Source #
See: cancelKeyDeletionResponse
smart constructor.
Response Lenses
ckdrsKeyId :: Lens' CancelKeyDeletionResponse (Maybe Text) Source #
The unique identifier of the master key for which deletion is canceled.
ckdrsResponseStatus :: Lens' CancelKeyDeletionResponse Int Source #
- - | The response status code.