Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.KMS.ListResourceTags
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
- listResourceTags :: Text -> ListResourceTags
- data ListResourceTags
- lrtMarker :: Lens' ListResourceTags (Maybe Text)
- lrtLimit :: Lens' ListResourceTags (Maybe Natural)
- lrtKeyId :: Lens' ListResourceTags Text
- listResourceTagsResponse :: Int -> ListResourceTagsResponse
- data ListResourceTagsResponse
- lrtrsTruncated :: Lens' ListResourceTagsResponse (Maybe Bool)
- lrtrsNextMarker :: Lens' ListResourceTagsResponse (Maybe Text)
- lrtrsTags :: Lens' ListResourceTagsResponse [Tag]
- lrtrsResponseStatus :: Lens' ListResourceTagsResponse Int
Creating a Request
Arguments
:: Text | |
-> ListResourceTags |
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 ofNextMarker
from the truncated response you just received. Do not attempt to construct this value. Use only the value ofNextMarker
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, useListKeys
orDescribeKey
.
data ListResourceTags Source #
See: listResourceTags
smart constructor.
Instances
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 #
Arguments
:: Int | |
-> ListResourceTagsResponse |
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 theNextMarker
element in this response to theMarker
parameter in a subsequent request.lrtrsNextMarker
- WhenTruncated
is true, this element is present and contains the value to use for theMarker
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
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.
lrtrsResponseStatus :: Lens' ListResourceTagsResponse Int Source #
- - | The response status code.