libZSservicesZSamazonka-mlZSamazonka-ml
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.MachineLearning.AddTags

Description

Adds one or more tags to an object, up to a limit of 10. Each tag consists of a key and an optional value. If you add a tag using a key that is already associated with the ML object, AddTags updates the tag's value.

Synopsis

Creating a Request

data AddTags Source #

See: newAddTags smart constructor.

Constructors

AddTags' 

Fields

  • tags :: [Tag]

    The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.

  • resourceId :: Text

    The ID of the ML object to tag. For example, exampleModelId.

  • resourceType :: TaggableResourceType

    The type of the ML object to tag.

Instances

Instances details
Eq AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Methods

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

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

Read AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Show AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Generic AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.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.MachineLearning.AddTags

Methods

rnf :: AddTags -> () #

Hashable AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Methods

hashWithSalt :: Int -> AddTags -> Int #

hash :: AddTags -> Int #

ToJSON AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

AWSRequest AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Associated Types

type AWSResponse AddTags #

ToHeaders AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Methods

toHeaders :: AddTags -> [Header] #

ToPath AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Methods

toPath :: AddTags -> ByteString #

ToQuery AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

type Rep AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

type Rep AddTags = D1 ('MetaData "AddTags" "Amazonka.MachineLearning.AddTags" "libZSservicesZSamazonka-mlZSamazonka-ml" 'False) (C1 ('MetaCons "AddTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag]) :*: (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TaggableResourceType))))
type AWSResponse AddTags Source # 
Instance details

Defined in Amazonka.MachineLearning.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:tags:AddTags', addTags_tags - The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.

$sel:resourceId:AddTags', addTags_resourceId - The ID of the ML object to tag. For example, exampleModelId.

$sel:resourceType:AddTags', addTags_resourceType - The type of the ML object to tag.

Request Lenses

addTags_tags :: Lens' AddTags [Tag] Source #

The key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.

addTags_resourceId :: Lens' AddTags Text Source #

The ID of the ML object to tag. For example, exampleModelId.

addTags_resourceType :: Lens' AddTags TaggableResourceType Source #

The type of the ML object to tag.

Destructuring the Response

data AddTagsResponse Source #

Amazon ML returns the following elements.

See: newAddTagsResponse smart constructor.

Constructors

AddTagsResponse' 

Fields

Instances

Instances details
Eq AddTagsResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Read AddTagsResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Show AddTagsResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Generic AddTagsResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Associated Types

type Rep AddTagsResponse :: Type -> Type #

NFData AddTagsResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

Methods

rnf :: AddTagsResponse -> () #

type Rep AddTagsResponse Source # 
Instance details

Defined in Amazonka.MachineLearning.AddTags

type Rep AddTagsResponse = D1 ('MetaData "AddTagsResponse" "Amazonka.MachineLearning.AddTags" "libZSservicesZSamazonka-mlZSamazonka-ml" 'False) (C1 ('MetaCons "AddTagsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TaggableResourceType)) :*: 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:resourceId:AddTags', addTagsResponse_resourceId - The ID of the ML object that was tagged.

$sel:resourceType:AddTags', addTagsResponse_resourceType - The type of the ML object that was tagged.

$sel:httpStatus:AddTagsResponse', addTagsResponse_httpStatus - The response's http status code.

Response Lenses

addTagsResponse_resourceId :: Lens' AddTagsResponse (Maybe Text) Source #

The ID of the ML object that was tagged.

addTagsResponse_httpStatus :: Lens' AddTagsResponse Int Source #

The response's http status code.