amazonka-kms-1.4.0: Amazon Key Management Service SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.KMS.DescribeKey

Contents

Description

Provides detailed information about the specified customer master key.

Synopsis

Creating a Request

describeKey Source

Arguments

:: Text

dKeyId

-> 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:

Request Lenses

dGrantTokens :: Lens' DescribeKey [Text] Source

A list of grant tokens.

For more information, go to Grant Tokens in the AWS Key Management Service Developer Guide.

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

describeKeyResponse Source

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:

Response Lenses

dkrsKeyMetadata :: Lens' DescribeKeyResponse (Maybe KeyMetadata) Source

Metadata associated with the key.