| 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 |
Amazonka.CloudHSMV2.ListTags
Description
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' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- resourceId :: Text
- newListTags :: Text -> ListTags
- listTags_maxResults :: Lens' ListTags (Maybe Natural)
- listTags_nextToken :: Lens' ListTags (Maybe Text)
- 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.
Constructors
| ListTags' | |
Fields
| |
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: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.
ListTags, listTags_nextToken - The NextToken value that you received in the previous response. Use
this value to get more tags.
$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_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_nextToken :: Lens' ListTags (Maybe Text) Source #
The NextToken value that you received in the previous response. Use
this value to get more tags.
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.
Constructors
| ListTagsResponse' | |
Instances
Arguments
| :: Int | |
| -> ListTagsResponse |
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:
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.
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.