Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Returns tags for a resource. Tagging is currently supported only for directories with a limit of 50 tags per directory. All 50 tags are returned for a given directory with this API call.
- listTagsForResource :: Text -> ListTagsForResource
- data ListTagsForResource
- ltfrNextToken :: Lens' ListTagsForResource (Maybe Text)
- ltfrMaxResults :: Lens' ListTagsForResource (Maybe Natural)
- ltfrResourceARN :: Lens' ListTagsForResource Text
- listTagsForResourceResponse :: Int -> ListTagsForResourceResponse
- data ListTagsForResourceResponse
- ltfrrsNextToken :: Lens' ListTagsForResourceResponse (Maybe Text)
- ltfrrsTags :: Lens' ListTagsForResourceResponse [Tag]
- ltfrrsResponseStatus :: Lens' ListTagsForResourceResponse Int
Creating a Request
Creates a value of ListTagsForResource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltfrNextToken
- The pagination token. This is for future use. Currently pagination is not supported for tagging.ltfrMaxResults
- TheMaxResults
parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently.ltfrResourceARN
- The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.
data ListTagsForResource Source #
See: listTagsForResource
smart constructor.
Request Lenses
ltfrNextToken :: Lens' ListTagsForResource (Maybe Text) Source #
The pagination token. This is for future use. Currently pagination is not supported for tagging.
ltfrMaxResults :: Lens' ListTagsForResource (Maybe Natural) Source #
The MaxResults
parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently.
ltfrResourceARN :: Lens' ListTagsForResource Text Source #
The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.
Destructuring the Response
listTagsForResourceResponse Source #
Creates a value of ListTagsForResourceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltfrrsNextToken
- The token to use to retrieve the next page of results. This value is null when there are no more results to return.ltfrrsTags
- A list of tag key value pairs that are associated with the response.ltfrrsResponseStatus
- -- | The response status code.
data ListTagsForResourceResponse Source #
See: listTagsForResourceResponse
smart constructor.
Response Lenses
ltfrrsNextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
ltfrrsTags :: Lens' ListTagsForResourceResponse [Tag] Source #
A list of tag key value pairs that are associated with the response.
ltfrrsResponseStatus :: Lens' ListTagsForResourceResponse Int Source #
- - | The response status code.