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 the tags that are attached to a specified resource.
This operation returns paginated results.
Synopsis
- data ListTagsForResource = ListTagsForResource' {
- nextToken :: Maybe Text
- instanceArn :: Text
- resourceArn :: Text
- newListTagsForResource :: Text -> Text -> ListTagsForResource
- listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text)
- listTagsForResource_instanceArn :: Lens' ListTagsForResource Text
- listTagsForResource_resourceArn :: Lens' ListTagsForResource Text
- data ListTagsForResourceResponse = ListTagsForResourceResponse' {}
- newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
- listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text)
- listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag])
- listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
Creating a Request
data ListTagsForResource Source #
See: newListTagsForResource
smart constructor.
ListTagsForResource' | |
|
Instances
newListTagsForResource Source #
:: Text | |
-> Text | |
-> ListTagsForResource |
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
- The pagination token for the list API. Initially the value is null. Use
the output of previous API calls to make subsequent calls.
$sel:instanceArn:ListTagsForResource'
, listTagsForResource_instanceArn
- The ARN of the SSO instance under which the operation will be executed.
For more information about ARNs, see
Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces
in the Amazon Web Services General Reference.
$sel:resourceArn:ListTagsForResource'
, listTagsForResource_resourceArn
- The ARN of the resource with the tags to be listed.
Request Lenses
listTagsForResource_nextToken :: Lens' ListTagsForResource (Maybe Text) Source #
The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls.
listTagsForResource_instanceArn :: Lens' ListTagsForResource Text Source #
The ARN of the SSO instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.
listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #
The ARN of the resource with the tags to be listed.
Destructuring the Response
data ListTagsForResourceResponse Source #
See: newListTagsForResourceResponse
smart constructor.
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:nextToken:ListTagsForResource'
, listTagsForResourceResponse_nextToken
- The pagination token for the list API. Initially the value is null. Use
the output of previous API calls to make subsequent calls.
$sel:tags:ListTagsForResourceResponse'
, listTagsForResourceResponse_tags
- A set of key-value pairs that are used to manage the resource.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsForResourceResponse_nextToken :: Lens' ListTagsForResourceResponse (Maybe Text) Source #
The pagination token for the list API. Initially the value is null. Use the output of previous API calls to make subsequent calls.
listTagsForResourceResponse_tags :: Lens' ListTagsForResourceResponse (Maybe [Tag]) Source #
A set of key-value pairs that are used to manage the resource.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.