| 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 |
Network.AWS.KMS.DescribeKey
Description
Provides detailed information about the specified customer master key.
See: AWS API Reference for DescribeKey.
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:
data DescribeKey Source
See: describeKey smart constructor.
Request Lenses
dKeyId :: Lens' DescribeKey Text Source
A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".
- Key ARN Example - arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
- Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
- Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012
- Alias Name Example - alias/MyAliasName
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:
data DescribeKeyResponse Source
See: describeKeyResponse smart constructor.
Response Lenses
dkrsKeyMetadata :: Lens' DescribeKeyResponse (Maybe KeyMetadata) Source
Metadata associated with the key.
dkrsStatus :: Lens' DescribeKeyResponse Int Source
The response status code.