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 that you associated with the specified resource.
This operation returns paginated results.
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
- For the first ListTagsForResource
request, omit this value.
If you have more than MaxResults
tags, you can submit another
ListTagsForResource
request to get the next group of tags for the
resource. In the next request, specify the value of NextToken
from the
previous response.
$sel:maxResults:ListTagsForResource'
, listTagsForResource_maxResults
- The maximum number of tags that you want to return in the response to a
ListTagsForResource
request. If you don't specify a value for
MaxResults
, Resolver returns up to 100 tags.
$sel:resourceArn:ListTagsForResource'
, listTagsForResource_resourceArn
- The Amazon Resource Name (ARN) for the resource that you want to list
tags for.
Request Lenses
listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text) Source #
For the first ListTagsForResource
request, omit this value.
If you have more than MaxResults
tags, you can submit another
ListTagsForResource
request to get the next group of tags for the
resource. In the next request, specify the value of NextToken
from the
previous response.
listTagsForResource_maxResults :: Lens' ListTagsForResource (Maybe Natural) Source #
The maximum number of tags that you want to return in the response to a
ListTagsForResource
request. If you don't specify a value for
MaxResults
, Resolver returns up to 100 tags.
listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #
The Amazon Resource Name (ARN) for the resource that you want to list tags for.
Destructuring the Response
data ListTagsForResourceResponse Source #
See: newListTagsForResourceResponse
smart constructor.
ListTagsForResourceResponse' | |
|
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
- If more than MaxResults
tags match the specified criteria, you can
submit another ListTagsForResource
request to get the next group of
results. In the next request, specify the value of NextToken
from the
previous response.
$sel:tags:ListTagsForResourceResponse'
, listTagsForResourceResponse_tags
- The tags that are associated with the resource that you specified in the
ListTagsForResource
request.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #
If more than MaxResults
tags match the specified criteria, you can
submit another ListTagsForResource
request to get the next group of
results. In the next request, specify the value of NextToken
from the
previous response.
listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag]) Source #
The tags that are associated with the resource that you specified in the
ListTagsForResource
request.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.