libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SageMaker.AddTags

Description

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

Creating a Request

data AddTags Source #

See: newAddTags smart constructor.

Constructors

AddTags' 

Fields

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the resource that you want to tag.

  • tags :: [Tag]

    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.

Instances

Instances details
Eq AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Methods

(==) :: AddTags -> AddTags -> Bool #

(/=) :: AddTags -> AddTags -> Bool #

Read AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Show AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Generic AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Associated Types

type Rep AddTags :: Type -> Type #

Methods

from :: AddTags -> Rep AddTags x #

to :: Rep AddTags x -> AddTags #

NFData AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Methods

rnf :: AddTags -> () #

Hashable AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Methods

hashWithSalt :: Int -> AddTags -> Int #

hash :: AddTags -> Int #

ToJSON AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

AWSRequest AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Associated Types

type AWSResponse AddTags #

ToHeaders AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Methods

toHeaders :: AddTags -> [Header] #

ToPath AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Methods

toPath :: AddTags -> ByteString #

ToQuery AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

type Rep AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

type Rep AddTags = D1 ('MetaData "AddTags" "Amazonka.SageMaker.AddTags" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "AddTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag])))
type AWSResponse AddTags Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

newAddTags Source #

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.

Constructors

AddTagsResponse' 

Fields

  • tags :: Maybe [Tag]

    A list of tags associated with the Amazon SageMaker resource.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq AddTagsResponse Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Read AddTagsResponse Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Show AddTagsResponse Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Generic AddTagsResponse Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Associated Types

type Rep AddTagsResponse :: Type -> Type #

NFData AddTagsResponse Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

Methods

rnf :: AddTagsResponse -> () #

type Rep AddTagsResponse Source # 
Instance details

Defined in Amazonka.SageMaker.AddTags

type Rep AddTagsResponse = D1 ('MetaData "AddTagsResponse" "Amazonka.SageMaker.AddTags" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "AddTagsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAddTagsResponse Source #

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.