amazonka-resourcegroups-1.6.1: Amazon Resource Groups 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.ResourceGroups.Tag

Contents

Description

Adds specified tags to a resource with the specified ARN. Existing tags on a resource are not changed if they are not specified in the request parameters.

Synopsis

Creating a Request

tag Source #

Arguments

:: Text

tagARN

-> Tag 

Creates a value of Tag with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • tagARN - The ARN of the resource to which to add tags.
  • tagTags - The tags to add to the specified resource. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.

data Tag Source #

See: tag smart constructor.

Instances
Eq Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

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

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

Data Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

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

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

toConstr :: Tag -> Constr #

dataTypeOf :: Tag -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Show Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

Generic Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Associated Types

type Rep Tag :: Type -> Type #

Methods

from :: Tag -> Rep Tag x #

to :: Rep Tag x -> Tag #

Hashable Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

hashWithSalt :: Int -> Tag -> Int #

hash :: Tag -> Int #

ToJSON Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

AWSRequest Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Associated Types

type Rs Tag :: Type #

ToHeaders Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

toHeaders :: Tag -> [Header] #

ToPath Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

toPath :: Tag -> ByteString #

ToQuery Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

toQuery :: Tag -> QueryString #

NFData Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

rnf :: Tag -> () #

type Rep Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

type Rep Tag = D1 (MetaData "Tag" "Network.AWS.ResourceGroups.Tag" "amazonka-resourcegroups-1.6.1-ESIAO7l4Zjz1j0LGvWxGeP" False) (C1 (MetaCons "Tag'" PrefixI True) (S1 (MetaSel (Just "_tagARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tagTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text))))
type Rs Tag Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Request Lenses

tagARN :: Lens' Tag Text Source #

The ARN of the resource to which to add tags.

tagTags :: Lens' Tag (HashMap Text Text) Source #

The tags to add to the specified resource. A tag is a string-to-string map of key-value pairs. Tag keys can have a maximum character length of 127 characters, and tag values can have a maximum length of 255 characters.

Destructuring the Response

tagResponse Source #

Creates a value of TagResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data TagResponse Source #

See: tagResponse smart constructor.

Instances
Eq TagResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Data TagResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

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

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

toConstr :: TagResponse -> Constr #

dataTypeOf :: TagResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read TagResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Show TagResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Generic TagResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Associated Types

type Rep TagResponse :: Type -> Type #

NFData TagResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

Methods

rnf :: TagResponse -> () #

type Rep TagResponse Source # 
Instance details

Defined in Network.AWS.ResourceGroups.Tag

type Rep TagResponse = D1 (MetaData "TagResponse" "Network.AWS.ResourceGroups.Tag" "amazonka-resourcegroups-1.6.1-ESIAO7l4Zjz1j0LGvWxGeP" False) (C1 (MetaCons "TagResponse'" PrefixI True) (S1 (MetaSel (Just "_tagrsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_tagrsTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text Text))) :*: S1 (MetaSel (Just "_tagrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

tagrsARN :: Lens' TagResponse (Maybe Text) Source #

The ARN of the tagged resource.

tagrsTags :: Lens' TagResponse (HashMap Text Text) Source #

The tags that have been added to the specified resource.

tagrsResponseStatus :: Lens' TagResponse Int Source #

  • - | The response status code.