| 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 |
Amazonka.AppMesh.ListTagsForResource
Description
List the tags for an App Mesh resource.
This operation returns paginated results.
Synopsis
- data ListTagsForResource = ListTagsForResource' {}
- newListTagsForResource :: Text -> ListTagsForResource
- listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text)
- listTagsForResource_limit :: Lens' ListTagsForResource (Maybe Natural)
- listTagsForResource_resourceArn :: Lens' ListTagsForResource Text
- data ListTagsForResourceResponse = ListTagsForResourceResponse' {}
- newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
- listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text)
- listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
- listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse [TagRef]
Creating a Request
data ListTagsForResource Source #
See: newListTagsForResource smart constructor.
Constructors
| ListTagsForResource' | |
Fields
| |
Instances
newListTagsForResource Source #
Arguments
| :: Text | |
| -> ListTagsForResource |
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 nextToken value returned from a previous paginated
ListTagsForResource request where limit was used and the results
exceeded the value of that parameter. Pagination continues from the end
of the previous results that returned the nextToken value.
$sel:limit:ListTagsForResource', listTagsForResource_limit - The maximum number of tag results returned by ListTagsForResource in
paginated output. When this parameter is used, ListTagsForResource
returns only limit results in a single page along with a nextToken
response element. You can see the remaining results of the initial
request by sending another ListTagsForResource request with the
returned nextToken value. This value can be between 1 and 100. If you
don't use this parameter, ListTagsForResource returns up to 100
results and a nextToken value if applicable.
$sel:resourceArn:ListTagsForResource', listTagsForResource_resourceArn - The Amazon Resource Name (ARN) that identifies the resource to list the
tags for.
Request Lenses
listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text) Source #
The nextToken value returned from a previous paginated
ListTagsForResource request where limit was used and the results
exceeded the value of that parameter. Pagination continues from the end
of the previous results that returned the nextToken value.
listTagsForResource_limit :: Lens' ListTagsForResource (Maybe Natural) Source #
The maximum number of tag results returned by ListTagsForResource in
paginated output. When this parameter is used, ListTagsForResource
returns only limit results in a single page along with a nextToken
response element. You can see the remaining results of the initial
request by sending another ListTagsForResource request with the
returned nextToken value. This value can be between 1 and 100. If you
don't use this parameter, ListTagsForResource returns up to 100
results and a nextToken value if applicable.
listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #
The Amazon Resource Name (ARN) that identifies the resource to list the tags for.
Destructuring the Response
data ListTagsForResourceResponse Source #
See: newListTagsForResourceResponse smart constructor.
Constructors
| ListTagsForResourceResponse' | |
Fields
| |
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 nextToken value to include in a future ListTagsForResource
request. When the results of a ListTagsForResource request exceed
limit, you can use this value to retrieve the next page of results.
This value is null when there are no more results to return.
$sel:httpStatus:ListTagsForResourceResponse', listTagsForResourceResponse_httpStatus - The response's http status code.
$sel:tags:ListTagsForResourceResponse', listTagsForResourceResponse_tags - The tags for the resource.
Response Lenses
listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #
The nextToken value to include in a future ListTagsForResource
request. When the results of a ListTagsForResource request exceed
limit, you can use this value to retrieve the next page of results.
This value is null when there are no more results to return.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.
listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse [TagRef] Source #
The tags for the resource.