Copyright | (c) 2013-2018 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 |
Gets a list of tags for the specified AWS CloudHSM cluster.
This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken
value. Use this value in a subsequent ListTags
request to get more tags. When you receive a response with no NextToken
(or an empty or null value), that means there are no more tags to get.
This operation returns paginated results.
Synopsis
- listTags :: Text -> ListTags
- data ListTags
- ltNextToken :: Lens' ListTags (Maybe Text)
- ltMaxResults :: Lens' ListTags (Maybe Natural)
- ltResourceId :: Lens' ListTags Text
- listTagsResponse :: Int -> ListTagsResponse
- data ListTagsResponse
- ltrsNextToken :: Lens' ListTagsResponse (Maybe Text)
- ltrsResponseStatus :: Lens' ListTagsResponse Int
- ltrsTagList :: Lens' ListTagsResponse [Tag]
Creating a Request
Creates a value of ListTags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltNextToken
- TheNextToken
value that you received in the previous response. Use this value to get more tags.ltMaxResults
- The maximum number of tags to return in the response. When there are more tags than the number you specify, the response contains aNextToken
value.ltResourceId
- The cluster identifier (ID) for the cluster whose tags you are getting. To find the cluster ID, useDescribeClusters
.
See: listTags
smart constructor.
Instances
Request Lenses
ltNextToken :: Lens' ListTags (Maybe Text) Source #
The NextToken
value that you received in the previous response. Use this value to get more tags.
ltMaxResults :: Lens' ListTags (Maybe Natural) Source #
The maximum number of tags to return in the response. When there are more tags than the number you specify, the response contains a NextToken
value.
ltResourceId :: Lens' ListTags Text Source #
The cluster identifier (ID) for the cluster whose tags you are getting. To find the cluster ID, use DescribeClusters
.
Destructuring the Response
Creates a value of ListTagsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltrsNextToken
- An opaque string that indicates that the response contains only a subset of tags. Use this value in a subsequentListTags
request to get more tags.ltrsResponseStatus
- -- | The response status code.ltrsTagList
- A list of tags.
data ListTagsResponse Source #
See: listTagsResponse
smart constructor.
Instances
Response Lenses
ltrsNextToken :: Lens' ListTagsResponse (Maybe Text) Source #
An opaque string that indicates that the response contains only a subset of tags. Use this value in a subsequent ListTags
request to get more tags.
ltrsResponseStatus :: Lens' ListTagsResponse Int Source #
- - | The response status code.
ltrsTagList :: Lens' ListTagsResponse [Tag] Source #
A list of tags.