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 |
Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.
Synopsis
- data ListTagsForResource = ListTagsForResource' {}
- newListTagsForResource :: Text -> ListTagsForResource
- listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text)
- listTagsForResource_maxResults :: Lens' ListTagsForResource (Maybe Natural)
- listTagsForResource_arn :: Lens' ListTagsForResource Text
- data ListTagsForResourceResponse = ListTagsForResourceResponse' {}
- newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
- listTagsForResourceResponse_arn :: Lens' ListTagsForResourceResponse (Maybe Text)
- listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text)
- listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe (NonEmpty Tag))
- listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
Creating a Request
data ListTagsForResource Source #
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:nextToken:ListTagsForResource'
, listTagsForResource_nextToken
- When you request additional results from the ListTagsForResource
operation, a NextToken
parameter is returned in the input. You can
then pass in a subsequent command to the NextToken
parameter to
continue listing additional tags.
$sel:maxResults:ListTagsForResource'
, listTagsForResource_maxResults
- Specifies the number of tags to return as a response to the
ListTagsForResource
request.
$sel:arn:ListTagsForResource'
, listTagsForResource_arn
- Requests the tags associated with a particular Amazon Resource Name
(ARN). An ARN is an identifier for a specific Amazon Web Services
resource, such as a server, user, or role.
Request Lenses
listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text) Source #
When you request additional results from the ListTagsForResource
operation, a NextToken
parameter is returned in the input. You can
then pass in a subsequent command to the NextToken
parameter to
continue listing additional tags.
listTagsForResource_maxResults :: Lens' ListTagsForResource (Maybe Natural) Source #
Specifies the number of tags to return as a response to the
ListTagsForResource
request.
listTagsForResource_arn :: Lens' ListTagsForResource Text Source #
Requests the tags associated with a particular Amazon Resource Name (ARN). An ARN is an identifier for a specific Amazon Web Services resource, such as a server, user, or role.
Destructuring the Response
data ListTagsForResourceResponse Source #
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:
$sel:arn:ListTagsForResource'
, listTagsForResourceResponse_arn
- The ARN you specified to list the tags of.
$sel:nextToken:ListTagsForResource'
, listTagsForResourceResponse_nextToken
- When you can get additional results from the ListTagsForResource
call,
a NextToken
parameter is returned in the output. You can then pass in
a subsequent command to the NextToken
parameter to continue listing
additional tags.
$sel:tags:ListTagsForResourceResponse'
, listTagsForResourceResponse_tags
- Key-value pairs that are assigned to a resource, usually for the purpose
of grouping and searching for items. Tags are metadata that you define.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsForResourceResponse_arn :: Lens' ListTagsForResourceResponse (Maybe Text) Source #
The ARN you specified to list the tags of.
listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #
When you can get additional results from the ListTagsForResource
call,
a NextToken
parameter is returned in the output. You can then pass in
a subsequent command to the NextToken
parameter to continue listing
additional tags.
listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe (NonEmpty Tag)) Source #
Key-value pairs that are assigned to a resource, usually for the purpose of grouping and searching for items. Tags are metadata that you define.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.