amazonka-kms-1.6.1: 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.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 # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Data ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

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 # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Show ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Generic ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Associated Types

type Rep ListResourceTags :: Type -> Type #

Hashable ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

ToJSON ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

AWSRequest ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Associated Types

type Rs ListResourceTags :: Type #

ToHeaders ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

ToPath ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

ToQuery ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

NFData ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Methods

rnf :: ListResourceTags -> () #

type Rep ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

type Rep ListResourceTags = D1 (MetaData "ListResourceTags" "Network.AWS.KMS.ListResourceTags" "amazonka-kms-1.6.1-1UDljZYfeha1jjHbbMax4v" False) (C1 (MetaCons "ListResourceTags'" PrefixI True) (S1 (MetaSel (Just "_lrtMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lrtLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)) :*: S1 (MetaSel (Just "_lrtKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ListResourceTags Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

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 # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Data ListResourceTagsResponse Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

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 # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Show ListResourceTagsResponse Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Generic ListResourceTagsResponse Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

Associated Types

type Rep ListResourceTagsResponse :: Type -> Type #

NFData ListResourceTagsResponse Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

type Rep ListResourceTagsResponse Source # 
Instance details

Defined in Network.AWS.KMS.ListResourceTags

type Rep ListResourceTagsResponse = D1 (MetaData "ListResourceTagsResponse" "Network.AWS.KMS.ListResourceTags" "amazonka-kms-1.6.1-1UDljZYfeha1jjHbbMax4v" False) (C1 (MetaCons "ListResourceTagsResponse'" PrefixI True) ((S1 (MetaSel (Just "_lrtrsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_lrtrsNextMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lrtrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 (MetaSel (Just "_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.