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

Copyright(c) 2013-2017 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.ListResourceTags

Contents

Description

Returns a list of all tags for the specified customer master key (CMK).

You cannot perform this operation on a CMK in a different AWS account.

Synopsis

Creating a Request

listResourceTags Source #

Creates a value of ListResourceTags with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lrtMarker - Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received. Do not attempt to construct this value. Use only the value of NextMarker from the truncated response you just received.
  • lrtLimit - Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 50, inclusive. If you do not include a value, it defaults to 50.
  • lrtKeyId - A unique identifier for the customer master key (CMK). Specify the key ID or the Amazon Resource Name (ARN) of the CMK. For example: * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey .

data ListResourceTags Source #

See: listResourceTags smart constructor.

Instances

Eq ListResourceTags Source # 
Data ListResourceTags Source # 

Methods

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

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

toConstr :: ListResourceTags -> Constr #

dataTypeOf :: ListResourceTags -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListResourceTags Source # 
Show ListResourceTags Source # 
Generic ListResourceTags Source # 
Hashable ListResourceTags Source # 
ToJSON ListResourceTags Source # 
NFData ListResourceTags Source # 

Methods

rnf :: ListResourceTags -> () #

AWSRequest ListResourceTags Source # 
ToQuery ListResourceTags Source # 
ToPath ListResourceTags Source # 
ToHeaders ListResourceTags Source # 
type Rep ListResourceTags Source # 
type Rep ListResourceTags = D1 (MetaData "ListResourceTags" "Network.AWS.KMS.ListResourceTags" "amazonka-kms-1.5.0-1ul8bs34gET2EfYsh0ppOn" False) (C1 (MetaCons "ListResourceTags'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lrtMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lrtLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_lrtKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListResourceTags Source # 

Request Lenses

lrtMarker :: Lens' ListResourceTags (Maybe Text) Source #

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received. Do not attempt to construct this value. Use only the value of NextMarker from the truncated response you just received.

lrtLimit :: Lens' ListResourceTags (Maybe Natural) Source #

Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer. This value is optional. If you include a value, it must be between 1 and 50, inclusive. If you do not include a value, it defaults to 50.

lrtKeyId :: Lens' ListResourceTags Text Source #

A unique identifier for the customer master key (CMK). Specify the key ID or the Amazon Resource Name (ARN) of the CMK. For example: * Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab * Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab To get the key ID and key ARN for a CMK, use ListKeys or DescribeKey .

Destructuring the Response

listResourceTagsResponse Source #

Creates a value of ListResourceTagsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lrtrsTruncated - A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.
  • lrtrsNextMarker - When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request. Do not assume or infer any information from this value.
  • lrtrsTags - A list of tags. Each tag consists of a tag key and a tag value.
  • lrtrsResponseStatus - -- | The response status code.

data ListResourceTagsResponse Source #

See: listResourceTagsResponse smart constructor.

Instances

Eq ListResourceTagsResponse Source # 
Data ListResourceTagsResponse Source # 

Methods

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

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

toConstr :: ListResourceTagsResponse -> Constr #

dataTypeOf :: ListResourceTagsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListResourceTagsResponse Source # 
Show ListResourceTagsResponse Source # 
Generic ListResourceTagsResponse Source # 
NFData ListResourceTagsResponse Source # 
type Rep ListResourceTagsResponse Source # 
type Rep ListResourceTagsResponse = D1 (MetaData "ListResourceTagsResponse" "Network.AWS.KMS.ListResourceTags" "amazonka-kms-1.5.0-1ul8bs34gET2EfYsh0ppOn" False) (C1 (MetaCons "ListResourceTagsResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lrtrsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_lrtrsNextMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_lrtrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Tag]))) (S1 (MetaSel (Just Symbol "_lrtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lrtrsTruncated :: Lens' ListResourceTagsResponse (Maybe Bool) Source #

A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request.

lrtrsNextMarker :: Lens' ListResourceTagsResponse (Maybe Text) Source #

When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request. Do not assume or infer any information from this value.

lrtrsTags :: Lens' ListResourceTagsResponse [Tag] Source #

A list of tags. Each tag consists of a tag key and a tag value.