| 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.DescribeKey
Description
Provides detailed information about the specified customer master key (CMK).
To perform this operation on a CMK in a different AWS account, specify the key ARN or alias ARN in the value of the KeyId parameter.
- describeKey :: Text -> DescribeKey
- data DescribeKey
- dGrantTokens :: Lens' DescribeKey [Text]
- dKeyId :: Lens' DescribeKey Text
- describeKeyResponse :: Int -> DescribeKeyResponse
- data DescribeKeyResponse
- dkrsKeyMetadata :: Lens' DescribeKeyResponse (Maybe KeyMetadata)
- dkrsResponseStatus :: Lens' DescribeKeyResponse Int
Creating a Request
Arguments
| :: Text | |
| -> DescribeKey |
Creates a value of DescribeKey with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dGrantTokens- A list of grant tokens. For more information, see Grant Tokens in the AWS Key Management Service Developer Guide .dKeyId- A unique identifier for the customer master key (CMK). To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN. For example: * Key ID:1234abcd-12ab-34cd-56ef-1234567890ab* Key ARN: @arn:aws:kms:us-east-2:111122223333:key1234abcd-12ab-34cd-56ef-1234567890ab* Alias name:aliasExampleAlias* Alias ARN:arn:aws:kms:us-east-2:111122223333:aliasExampleAlias@ To get the key ID and key ARN for a CMK, useListKeysorDescribeKey. To get the alias name and alias ARN, useListAliases.
data DescribeKey Source #
See: describeKey smart constructor.
Instances
Request Lenses
dGrantTokens :: Lens' DescribeKey [Text] Source #
A list of grant tokens. For more information, see Grant Tokens in the AWS Key Management Service Developer Guide .
dKeyId :: Lens' DescribeKey Text Source #
A unique identifier for the customer master key (CMK). To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. When using an alias name, prefix it with "alias". To specify a CMK in a different AWS account, you must use the key ARN or alias ARN. For example: * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab * Key ARN: @arn:aws:kms:us-east-2:111122223333:key1234abcd-12ab-34cd-56ef-1234567890ab * Alias name: aliasExampleAlias * Alias ARN: arn:aws:kms:us-east-2:111122223333:aliasExampleAlias@ To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey . To get the alias name and alias ARN, use ListAliases .
Destructuring the Response
Arguments
| :: Int | |
| -> DescribeKeyResponse |
Creates a value of DescribeKeyResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dkrsKeyMetadata- Metadata associated with the key.dkrsResponseStatus- -- | The response status code.
data DescribeKeyResponse Source #
See: describeKeyResponse smart constructor.
Response Lenses
dkrsKeyMetadata :: Lens' DescribeKeyResponse (Maybe KeyMetadata) Source #
Metadata associated with the key.
dkrsResponseStatus :: Lens' DescribeKeyResponse Int Source #
- - | The response status code.