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 |
Returns the tags for the specified Amazon SageMaker resource.
This operation returns paginated results.
Synopsis
- data ListTags = ListTags' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- resourceArn :: Text
- newListTags :: Text -> ListTags
- listTags_nextToken :: Lens' ListTags (Maybe Text)
- listTags_maxResults :: Lens' ListTags (Maybe Natural)
- 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.
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
- If the response to the previous ListTags
request is truncated, Amazon
SageMaker returns this token. To retrieve the next set of tags, use it
in the subsequent request.
$sel:maxResults:ListTags'
, listTags_maxResults
- Maximum number of tags to return.
$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, Amazon
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.
ListTagsResponse' | |
|
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
- If response is truncated, Amazon SageMaker includes a token in the
response. You can use this token in your subsequent request to fetch
next set of tokens.
$sel:tags: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, Amazon 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.