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 |
Returns all the tags associated with an Amazon Web Services resource.
This operation returns paginated results.
Synopsis
- data ListTagsForResource = ListTagsForResource' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- resourceArn :: Text
- newListTagsForResource :: Text -> ListTagsForResource
- listTagsForResource_maxResults :: Lens' ListTagsForResource (Maybe Natural)
- listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text)
- listTagsForResource_resourceArn :: Lens' ListTagsForResource Text
- data ListTagsForResourceResponse = ListTagsForResourceResponse' {
- nextToken :: Maybe Text
- tags :: Maybe [TagListEntry]
- httpStatus :: Int
- newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
- listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text)
- listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [TagListEntry])
- listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
Creating a Request
data ListTagsForResource Source #
ListTagsForResourceRequest
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:maxResults:ListTagsForResource'
, listTagsForResource_maxResults
- Specifies how many results that you want in the response.
ListTagsForResource
, listTagsForResource_nextToken
- Specifies an opaque string that indicates the position to begin the next
list of results in the response.
$sel:resourceArn:ListTagsForResource'
, listTagsForResource_resourceArn
- Specifies the Amazon Resource Name (ARN) of the resource that you want
tag information on.
Request Lenses
listTagsForResource_maxResults :: Lens' ListTagsForResource (Maybe Natural) Source #
Specifies how many results that you want in the response.
listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text) Source #
Specifies an opaque string that indicates the position to begin the next list of results in the response.
listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #
Specifies the Amazon Resource Name (ARN) of the resource that you want tag information on.
Destructuring the Response
data ListTagsForResourceResponse Source #
ListTagsForResourceResponse
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:
ListTagsForResource
, listTagsForResourceResponse_nextToken
- The opaque string that indicates the position to begin the next list of
results in the response.
$sel:tags:ListTagsForResourceResponse'
, listTagsForResourceResponse_tags
- An array of tags applied to the specified resource.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #
The opaque string that indicates the position to begin the next list of results in the response.
listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [TagListEntry]) Source #
An array of tags applied to the specified resource.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.