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 |
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
- data ListTags = ListTags' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- resourceId :: Text
- newListTags :: Text -> ListTags
- listTags_nextToken :: Lens' ListTags (Maybe Text)
- listTags_maxResults :: Lens' ListTags (Maybe Natural)
- listTags_resourceId :: Lens' ListTags Text
- data ListTagsResponse = ListTagsResponse' {}
- newListTagsResponse :: Int -> ListTagsResponse
- listTagsResponse_nextToken :: Lens' ListTagsResponse (Maybe Text)
- listTagsResponse_httpStatus :: Lens' ListTagsResponse Int
- listTagsResponse_tagList :: Lens' ListTagsResponse [Tag]
Creating a Request
See: newListTags
smart constructor.
ListTags' | |
|
Instances
Create a value of ListTags
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:ListTags'
, listTags_nextToken
- The NextToken
value that you received in the previous response. Use
this value to get more tags.
$sel:maxResults:ListTags'
, listTags_maxResults
- 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.
$sel:resourceId:ListTags'
, listTags_resourceId
- The cluster identifier (ID) for the cluster whose tags you are getting.
To find the cluster ID, use DescribeClusters.
Request Lenses
listTags_nextToken :: Lens' ListTags (Maybe Text) Source #
The NextToken
value that you received in the previous response. Use
this value to get more tags.
listTags_maxResults :: 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.
listTags_resourceId :: 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
data ListTagsResponse Source #
See: newListTagsResponse
smart constructor.
Instances
Create a value of ListTagsResponse
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:ListTags'
, listTagsResponse_nextToken
- 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.
$sel:httpStatus:ListTagsResponse'
, listTagsResponse_httpStatus
- The response's http status code.
$sel:tagList:ListTagsResponse'
, listTagsResponse_tagList
- A list of tags.
Response Lenses
listTagsResponse_nextToken :: 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.
listTagsResponse_httpStatus :: Lens' ListTagsResponse Int Source #
The response's http status code.
listTagsResponse_tagList :: Lens' ListTagsResponse [Tag] Source #
A list of tags.