| 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.SageMaker.ListTags
Description
Returns the tags for the specified SageMaker resource.
This operation returns paginated results.
Synopsis
- data ListTags = ListTags' {
- maxResults :: Maybe Natural
 - nextToken :: Maybe Text
 - resourceArn :: Text
 
 - newListTags :: Text -> ListTags
 - listTags_maxResults :: Lens' ListTags (Maybe Natural)
 - listTags_nextToken :: Lens' ListTags (Maybe Text)
 - listTags_resourceArn :: Lens' ListTags Text
 - data ListTagsResponse = ListTagsResponse' {}
 - newListTagsResponse :: Int -> ListTagsResponse
 - listTagsResponse_nextToken :: Lens' ListTagsResponse (Maybe Text)
 - listTagsResponse_tags :: Lens' ListTagsResponse (Maybe [Tag])
 - listTagsResponse_httpStatus :: Lens' ListTagsResponse Int
 
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 - Maximum number of tags to return.
ListTags, listTags_nextToken - If the response to the previous ListTags request is truncated,
 SageMaker returns this token. To retrieve the next set of tags, use it
 in the subsequent request.
$sel:resourceArn:ListTags', listTags_resourceArn - The Amazon Resource Name (ARN) of the resource whose tags you want to
 retrieve.
Request Lenses
listTags_nextToken :: Lens' ListTags (Maybe Text) Source #
If the response to the previous ListTags request is truncated,
 SageMaker returns this token. To retrieve the next set of tags, use it
 in the subsequent request.
listTags_resourceArn :: Lens' ListTags Text Source #
The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.
Destructuring the Response
data ListTagsResponse Source #
See: newListTagsResponse smart constructor.
Constructors
| ListTagsResponse' | |
Fields  | |
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 - If response is truncated, SageMaker includes a token in the response.
 You can use this token in your subsequent request to fetch next set of
 tokens.
ListTagsResponse, listTagsResponse_tags - An array of Tag objects, each with a tag key and a value.
$sel:httpStatus:ListTagsResponse', listTagsResponse_httpStatus - The response's http status code.
Response Lenses
listTagsResponse_nextToken :: Lens' ListTagsResponse (Maybe Text) Source #
If response is truncated, SageMaker includes a token in the response. You can use this token in your subsequent request to fetch next set of tokens.
listTagsResponse_tags :: Lens' ListTagsResponse (Maybe [Tag]) Source #
An array of Tag objects, each with a tag key and a value.
listTagsResponse_httpStatus :: Lens' ListTagsResponse Int Source #
The response's http status code.