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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 (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.

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:

  • 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, use ListKeys or DescribeKey . To get the alias name and alias ARN, use ListAliases .

data DescribeKey Source #

See: describeKey smart constructor.

Instances

Eq DescribeKey Source # 
Data DescribeKey Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeKey -> c DescribeKey #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeKey #

toConstr :: DescribeKey -> Constr #

dataTypeOf :: DescribeKey -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeKey) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeKey) #

gmapT :: (forall b. Data b => b -> b) -> DescribeKey -> DescribeKey #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeKey -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeKey -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeKey -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeKey -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeKey -> m DescribeKey #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeKey -> m DescribeKey #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeKey -> m DescribeKey #

Read DescribeKey Source # 
Show DescribeKey Source # 
Generic DescribeKey Source # 

Associated Types

type Rep DescribeKey :: * -> * #

Hashable DescribeKey Source # 
ToJSON DescribeKey Source # 
NFData DescribeKey Source # 

Methods

rnf :: DescribeKey -> () #

AWSRequest DescribeKey Source # 
ToHeaders DescribeKey Source # 

Methods

toHeaders :: DescribeKey -> [Header] #

ToPath DescribeKey Source # 
ToQuery DescribeKey Source # 
type Rep DescribeKey Source # 
type Rep DescribeKey = D1 * (MetaData "DescribeKey" "Network.AWS.KMS.DescribeKey" "amazonka-kms-1.6.0-6a1SDMHmleyARI8mxMgB7S" False) (C1 * (MetaCons "DescribeKey'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dGrantTokens") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_dKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DescribeKey Source # 

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

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:

data DescribeKeyResponse Source #

See: describeKeyResponse smart constructor.

Instances

Eq DescribeKeyResponse Source # 
Data DescribeKeyResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeKeyResponse -> c DescribeKeyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeKeyResponse #

toConstr :: DescribeKeyResponse -> Constr #

dataTypeOf :: DescribeKeyResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeKeyResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeKeyResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeKeyResponse -> DescribeKeyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeKeyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeKeyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeKeyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeKeyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeKeyResponse -> m DescribeKeyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeKeyResponse -> m DescribeKeyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeKeyResponse -> m DescribeKeyResponse #

Read DescribeKeyResponse Source # 
Show DescribeKeyResponse Source # 
Generic DescribeKeyResponse Source # 
NFData DescribeKeyResponse Source # 

Methods

rnf :: DescribeKeyResponse -> () #

type Rep DescribeKeyResponse Source # 
type Rep DescribeKeyResponse = D1 * (MetaData "DescribeKeyResponse" "Network.AWS.KMS.DescribeKey" "amazonka-kms-1.6.0-6a1SDMHmleyARI8mxMgB7S" False) (C1 * (MetaCons "DescribeKeyResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dkrsKeyMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe KeyMetadata))) (S1 * (MetaSel (Just Symbol "_dkrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

dkrsKeyMetadata :: Lens' DescribeKeyResponse (Maybe KeyMetadata) Source #

Metadata associated with the key.

dkrsResponseStatus :: Lens' DescribeKeyResponse Int Source #

  • - | The response status code.