Copyright | (c) 2013-2021 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 |
Lists the tags (metadata) you have assigned to the resource.
Requires permission to access the ListTagsForResource action.
This operation returns paginated results.
Synopsis
- data ListTagsForResource = ListTagsForResource' {
- nextToken :: Maybe Text
- resourceArn :: Text
- newListTagsForResource :: Text -> ListTagsForResource
- listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text)
- listTagsForResource_resourceArn :: Lens' ListTagsForResource Text
- data ListTagsForResourceResponse = ListTagsForResourceResponse' {}
- newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
- listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text)
- listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag])
- listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
Creating a Request
data ListTagsForResource Source #
See: newListTagsForResource
smart constructor.
ListTagsForResource' | |
|
Instances
newListTagsForResource Source #
Create a value of ListTagsForResource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListTagsForResource'
, listTagsForResource_nextToken
- To retrieve the next set of results, the nextToken
value from a
previous response; otherwise null to receive the first set of
results.
$sel:resourceArn:ListTagsForResource'
, listTagsForResource_resourceArn
- The ARN of the resource.
Request Lenses
listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text) Source #
To retrieve the next set of results, the nextToken
value from a
previous response; otherwise null to receive the first set of
results.
listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #
The ARN of the resource.
Destructuring the Response
data ListTagsForResourceResponse Source #
See: newListTagsForResourceResponse
smart constructor.
Instances
newListTagsForResourceResponse Source #
Create a value of ListTagsForResourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListTagsForResource'
, listTagsForResourceResponse_nextToken
- The token to use to get the next set of results, or null if there
are no additional results.
$sel:tags:ListTagsForResourceResponse'
, listTagsForResourceResponse_tags
- The list of tags assigned to the resource.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #
The token to use to get the next set of results, or null if there are no additional results.
listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag]) Source #
The list of tags assigned to the resource.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.