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 all tags associated with the resource. This is a paginated API. To get the next page results, provide the pagination token from the response as part of your request. A null pagination token fetches the records from the beginning.
Synopsis
- data ListTagsForResource = ListTagsForResource' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- resourceARN :: Text
- newListTagsForResource :: Text -> ListTagsForResource
- listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text)
- listTagsForResource_maxResults :: Lens' ListTagsForResource (Maybe Natural)
- 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
- The next token from the previous results.
$sel:maxResults:ListTagsForResource'
, listTagsForResource_maxResults
- The maximum number of objects to return for the request.
$sel:resourceARN:ListTagsForResource'
, listTagsForResource_resourceARN
- The ARN that specifies the resource whose tags you want to list.
Request Lenses
listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text) Source #
The next token from the previous results.
listTagsForResource_maxResults :: Lens' ListTagsForResource (Maybe Natural) Source #
The maximum number of objects to return for the request.
listTagsForResource_resourceARN :: Lens' ListTagsForResource Text Source #
The ARN that specifies the resource whose tags you want to list.
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 next token for subsequent requests.
$sel:tags:ListTagsForResourceResponse'
, listTagsForResourceResponse_tags
- A collection of key and value pairs.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #
The next token for subsequent requests.
listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag]) Source #
A collection of key and value pairs.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.