Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Lists all tags for the specified resource.
This operation returns paginated results.
Synopsis
- data ListTags = ListTags' {}
- newListTags :: Text -> ListTags
- listTags_maxResults :: Lens' ListTags (Maybe Natural)
- listTags_nextToken :: Lens' ListTags (Maybe Text)
- listTags_arn :: Lens' ListTags Text
- data ListTagsResponse = ListTagsResponse' {}
- newListTagsResponse :: Int -> ListTagsResponse
- listTagsResponse_nextToken :: Lens' ListTagsResponse (Maybe Text)
- listTagsResponse_tags :: Lens' ListTagsResponse (Maybe [Tag])
- listTagsResponse_httpStatus :: Lens' ListTagsResponse Int
Creating a Request
See: newListTags
smart constructor.
ListTags' | |
|
Instances
Create a value of ListTags
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:maxResults:ListTags'
, listTags_maxResults
- 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.
ListTags
, listTags_nextToken
- 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
.
ListTags
, listTags_arn
- The ARN of the specified resource for which to list tags.
Request Lenses
listTags_maxResults :: 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.
listTags_nextToken :: 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
.
listTags_arn :: Lens' ListTags Text Source #
The ARN of the specified resource for which to list tags.
Destructuring the Response
data ListTagsResponse Source #
See: newListTagsResponse
smart constructor.
Instances
Create a value of ListTagsResponse
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:
ListTags
, listTagsResponse_nextToken
- The token returned to indicate that there is more data available.
$sel:tags:ListTagsResponse'
, listTagsResponse_tags
- The tags requested for the specified resource.
$sel:httpStatus:ListTagsResponse'
, listTagsResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsResponse_nextToken :: Lens' ListTagsResponse (Maybe Text) Source #
The token returned to indicate that there is more data available.
listTagsResponse_tags :: Lens' ListTagsResponse (Maybe [Tag]) Source #
The tags requested for the specified resource.
listTagsResponse_httpStatus :: Lens' ListTagsResponse Int Source #
The response's http status code.