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 |
Lists all tags for a specific resource.
This operation returns paginated results.
Synopsis
- listTags :: Text -> ListTags
- data ListTags
- ltNextToken :: Lens' ListTags (Maybe Text)
- ltMaxResults :: Lens' ListTags (Maybe Natural)
- ltARN :: Lens' ListTags Text
- listTagsResponse :: Int -> ListTagsResponse
- data ListTagsResponse
- ltrsNextToken :: Lens' ListTagsResponse (Maybe Text)
- ltrsTags :: Lens' ListTagsResponse [Tag]
- ltrsResponseStatus :: Lens' ListTagsResponse Int
Creating a Request
Creates a value of ListTags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltNextToken
- An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified byMaxResults
.ltMaxResults
- The maximum number of results to include in the response. If more results exist than the specifiedMaxResults
value, a token is included in the response so that the remaining results can be retrieved.ltARN
- The ARN of the specific resource for which to list tags. Required.
See: listTags
smart constructor.
Instances
Request Lenses
ltNextToken :: Lens' ListTags (Maybe Text) Source #
An optional token returned from a prior request. Use this token for pagination of results from this action. If this parameter is specified, the response includes only results beyond the token, up to the value specified by MaxResults
.
ltMaxResults :: Lens' ListTags (Maybe Natural) Source #
The maximum number of results to include in the response. If more results exist than the specified MaxResults
value, a token is included in the response so that the remaining results can be retrieved.
ltARN :: Lens' ListTags Text Source #
The ARN of the specific resource for which to list tags. Required.
Destructuring the Response
Creates a value of ListTagsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltrsNextToken
- The token returned to indicate that there is more data available.ltrsTags
- The list of tags requested for the specific resource.ltrsResponseStatus
- -- | The response status code.
data ListTagsResponse Source #
See: listTagsResponse
smart constructor.
Instances
Response Lenses
ltrsNextToken :: Lens' ListTagsResponse (Maybe Text) Source #
The token returned to indicate that there is more data available.
ltrsTags :: Lens' ListTagsResponse [Tag] Source #
The list of tags requested for the specific resource.
ltrsResponseStatus :: Lens' ListTagsResponse Int Source #
- - | The response status code.