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 |
Adds or overwrites one or more tags for the specified Amazon SageMaker resource. You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, 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 For more information, see Amazon Web Services Tagging Strategies.
Tags that you add to a hyperparameter tuning job by calling this API are
also added to any training jobs that the hyperparameter tuning job
launches after you call this API, but not to training jobs that the
hyperparameter tuning job launched before you called this API. To make
sure that the tags associated with a hyperparameter tuning job are also
added to all training jobs that the hyperparameter tuning job launches,
add the tags when you first create the tuning job by specifying them in
the Tags
parameter of CreateHyperParameterTuningJob
Tags that you add to a SageMaker Studio Domain or User Profile by
calling this API are also added to any Apps that the Domain or User
Profile launches after you call this API, but not to Apps that the
Domain or User Profile launched before you called this API. To make sure
that the tags associated with a Domain or User Profile are also added to
all Apps that the Domain or User Profile launches, add the tags when you
first create the Domain or User Profile by specifying them in the Tags
parameter of CreateDomain or CreateUserProfile.
Synopsis
- data AddTags = AddTags' {
- resourceArn :: Text
- tags :: [Tag]
- newAddTags :: Text -> AddTags
- addTags_resourceArn :: Lens' AddTags Text
- addTags_tags :: Lens' AddTags [Tag]
- data AddTagsResponse = AddTagsResponse' {
- tags :: Maybe [Tag]
- httpStatus :: Int
- newAddTagsResponse :: Int -> AddTagsResponse
- addTagsResponse_tags :: Lens' AddTagsResponse (Maybe [Tag])
- addTagsResponse_httpStatus :: Lens' AddTagsResponse Int
Creating a Request
See: newAddTags
smart constructor.
AddTags' | |
|
Instances
Create a value of AddTags
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:resourceArn:AddTags'
, addTags_resourceArn
- The Amazon Resource Name (ARN) of the resource that you want to tag.
$sel:tags:AddTags'
, addTags_tags
- An array of key-value pairs. You can use tags to categorize your Amazon
Web Services resources in different ways, for example, by purpose,
owner, or environment. For more information, see
Tagging Amazon Web Services Resources.
Request Lenses
addTags_resourceArn :: Lens' AddTags Text Source #
The Amazon Resource Name (ARN) of the resource that you want to tag.
addTags_tags :: Lens' AddTags [Tag] Source #
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
Destructuring the Response
data AddTagsResponse Source #
See: newAddTagsResponse
smart constructor.
AddTagsResponse' | |
|
Instances
Create a value of AddTagsResponse
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:tags:AddTags'
, addTagsResponse_tags
- A list of tags associated with the Amazon SageMaker resource.
$sel:httpStatus:AddTagsResponse'
, addTagsResponse_httpStatus
- The response's http status code.
Response Lenses
addTagsResponse_tags :: Lens' AddTagsResponse (Maybe [Tag]) Source #
A list of tags associated with the Amazon SageMaker resource.
addTagsResponse_httpStatus :: Lens' AddTagsResponse Int Source #
The response's http status code.