| 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 |
Network.AWS.KMS.EnableKey
Description
Sets the state of a customer master key (CMK) to enabled, thereby permitting its use for cryptographic operations. You cannot perform this operation on a CMK in a different AWS account.
Synopsis
- enableKey :: Text -> EnableKey
- data EnableKey
- ekKeyId :: Lens' EnableKey Text
- enableKeyResponse :: EnableKeyResponse
- data EnableKeyResponse
Creating a Request
Creates a value of EnableKey with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ekKeyId- A unique identifier for the customer master key (CMK). 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-1234567890abTo get the key ID and key ARN for a CMK, useListKeysorDescribeKey.
See: enableKey smart constructor.
Instances
Request Lenses
ekKeyId :: Lens' EnableKey Text Source #
A unique identifier for the customer master key (CMK). 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
enableKeyResponse :: EnableKeyResponse Source #
Creates a value of EnableKeyResponse with the minimum fields required to make a request.
data EnableKeyResponse Source #
See: enableKeyResponse smart constructor.