Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Adds or overwrites one or more tags for the specified Amazon SageMaker resource. You can add tags to notebook instances, training jobs, models, endpoint configurations, and endpoints.
Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .
- addTags :: Text -> AddTags
- data AddTags
- atResourceARN :: Lens' AddTags Text
- atTags :: Lens' AddTags [Tag]
- addTagsResponse :: Int -> AddTagsResponse
- data AddTagsResponse
- atrsTags :: Lens' AddTagsResponse [Tag]
- atrsResponseStatus :: Lens' AddTagsResponse Int
Creating a Request
Creates a value of AddTags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atResourceARN
- The Amazon Resource Name (ARN) of the resource that you want to tag.atTags
- An array ofTag
objects. Each tag is a key-value pair. Only thekey
parameter is required. If you don't specify a value, Amazon SageMaker sets the value to an empty string.
See: addTags
smart constructor.
Request Lenses
atResourceARN :: Lens' AddTags Text Source #
The Amazon Resource Name (ARN) of the resource that you want to tag.
atTags :: Lens' AddTags [Tag] Source #
An array of Tag
objects. Each tag is a key-value pair. Only the key
parameter is required. If you don't specify a value, Amazon SageMaker sets the value to an empty string.
Destructuring the Response
Creates a value of AddTagsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atrsTags
- A list of tags associated with the Amazon SageMaker resource.atrsResponseStatus
- -- | The response status code.
data AddTagsResponse Source #
See: addTagsResponse
smart constructor.
Response Lenses
atrsTags :: Lens' AddTagsResponse [Tag] Source #
A list of tags associated with the Amazon SageMaker resource.
atrsResponseStatus :: Lens' AddTagsResponse Int Source #
- - | The response status code.