amazonka-sagemaker-1.6.1: Amazon SageMaker Service SDK.

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

Network.AWS.SageMaker.AddTags

Contents

Description

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 .

Synopsis

Creating a Request

addTags Source #

Arguments

:: Text

atResourceARN

-> AddTags 

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 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.

data AddTags Source #

See: addTags smart constructor.

Instances
Eq AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Methods

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

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

Data AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AddTags -> c AddTags #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AddTags #

toConstr :: AddTags -> Constr #

dataTypeOf :: AddTags -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AddTags) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AddTags) #

gmapT :: (forall b. Data b => b -> b) -> AddTags -> AddTags #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AddTags -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AddTags -> r #

gmapQ :: (forall d. Data d => d -> u) -> AddTags -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AddTags -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AddTags -> m AddTags #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AddTags -> m AddTags #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AddTags -> m AddTags #

Read AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Show AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Generic AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Associated Types

type Rep AddTags :: Type -> Type #

Methods

from :: AddTags -> Rep AddTags x #

to :: Rep AddTags x -> AddTags #

Hashable AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Methods

hashWithSalt :: Int -> AddTags -> Int #

hash :: AddTags -> Int #

ToJSON AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

AWSRequest AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Associated Types

type Rs AddTags :: Type #

ToHeaders AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Methods

toHeaders :: AddTags -> [Header] #

ToPath AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Methods

toPath :: AddTags -> ByteString #

ToQuery AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

NFData AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Methods

rnf :: AddTags -> () #

type Rep AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

type Rep AddTags = D1 (MetaData "AddTags" "Network.AWS.SageMaker.AddTags" "amazonka-sagemaker-1.6.1-KSR3FgWuE9u23bvJsHopKu" False) (C1 (MetaCons "AddTags'" PrefixI True) (S1 (MetaSel (Just "_atResourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_atTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Tag])))
type Rs AddTags Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

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

addTagsResponse Source #

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:

data AddTagsResponse Source #

See: addTagsResponse smart constructor.

Instances
Eq AddTagsResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Data AddTagsResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AddTagsResponse -> c AddTagsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AddTagsResponse #

toConstr :: AddTagsResponse -> Constr #

dataTypeOf :: AddTagsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AddTagsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AddTagsResponse) #

gmapT :: (forall b. Data b => b -> b) -> AddTagsResponse -> AddTagsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AddTagsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AddTagsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> AddTagsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AddTagsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AddTagsResponse -> m AddTagsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AddTagsResponse -> m AddTagsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AddTagsResponse -> m AddTagsResponse #

Read AddTagsResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Show AddTagsResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Generic AddTagsResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Associated Types

type Rep AddTagsResponse :: Type -> Type #

NFData AddTagsResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

Methods

rnf :: AddTagsResponse -> () #

type Rep AddTagsResponse Source # 
Instance details

Defined in Network.AWS.SageMaker.AddTags

type Rep AddTagsResponse = D1 (MetaData "AddTagsResponse" "Network.AWS.SageMaker.AddTags" "amazonka-sagemaker-1.6.1-KSR3FgWuE9u23bvJsHopKu" False) (C1 (MetaCons "AddTagsResponse'" PrefixI True) (S1 (MetaSel (Just "_atrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 (MetaSel (Just "_atrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

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.