amazonka-kms-1.4.5: 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:

  • 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. 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:key12345678-1234-1234-1234-123456789012 * Alias ARN Example - arn:aws:kms:us-east-1:123456789012:aliasMyAliasName * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 * Alias Name Example - aliasMyAliasName

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 # 
ToPath DescribeKey Source # 
ToHeaders DescribeKey Source # 

Methods

toHeaders :: DescribeKey -> [Header] #

ToQuery DescribeKey Source # 
type Rep DescribeKey Source # 
type Rep DescribeKey = D1 (MetaData "DescribeKey" "Network.AWS.KMS.DescribeKey" "amazonka-kms-1.4.5-2CcuwPQYK1JBjEgZ8528Xg" 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. 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:key12345678-1234-1234-1234-123456789012 * Alias ARN Example - arn:aws:kms:us-east-1:123456789012:aliasMyAliasName * Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 * Alias Name Example - aliasMyAliasName

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.4.5-2CcuwPQYK1JBjEgZ8528Xg" False) (C1 (MetaCons "DescribeKeyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dkrsKeyMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe KeyMetadata))) (S1 (MetaSel (Just Symbol "_dkrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

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

Metadata associated with the key.

dkrsResponseStatus :: Lens' DescribeKeyResponse Int Source #

  • - | The response status code.