Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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.
For more information about scheduling and canceling deletion of a CMK, go to Deleting Customer Master Keys in the AWS Key Management Service Developer Guide.
See: AWS API Reference for CancelKeyDeletion.
- 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:
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.
To specify this value, use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:
- Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
- Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
To obtain the unique key ID and key ARN for a given 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:
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.