amazonka-elbv2-1.4.5: Amazon Elastic Load Balancing SDK.

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

Network.AWS.ELBv2.AddTags

Contents

Description

Adds the specified tags to the specified resource. You can tag your Application Load Balancers and your target groups.

Each tag consists of a key and an optional value. If a resource already has a tag with the same key, AddTags updates its value.

To list the current tags for your resources, use DescribeTags . To remove tags from your resources, use RemoveTags .

Synopsis

Creating a Request

addTags #

Arguments

:: NonEmpty Tag

atTags

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

  • atResourceARNs - The Amazon Resource Name (ARN) of the resource.
  • atTags - The tags. Each resource can have a maximum of 10 tags.

data AddTags #

Contains the parameters for AddTags.

See: addTags smart constructor.

Instances

Eq AddTags # 

Methods

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

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

Data 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 # 
Show AddTags # 
Generic AddTags # 

Associated Types

type Rep AddTags :: * -> * #

Methods

from :: AddTags -> Rep AddTags x #

to :: Rep AddTags x -> AddTags #

Hashable AddTags # 

Methods

hashWithSalt :: Int -> AddTags -> Int #

hash :: AddTags -> Int #

NFData AddTags # 

Methods

rnf :: AddTags -> () #

AWSRequest AddTags # 

Associated Types

type Rs AddTags :: * #

ToQuery AddTags # 
ToPath AddTags # 

Methods

toPath :: AddTags -> ByteString #

ToHeaders AddTags # 

Methods

toHeaders :: AddTags -> [Header] #

type Rep AddTags # 
type Rep AddTags = D1 (MetaData "AddTags" "Network.AWS.ELBv2.AddTags" "amazonka-elbv2-1.4.5-1H99zq9GcvyVED37xNlPU" False) (C1 (MetaCons "AddTags'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_atResourceARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])) (S1 (MetaSel (Just Symbol "_atTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 Tag)))))
type Rs AddTags # 

Request Lenses

atResourceARNs :: Lens' AddTags [Text] #

The Amazon Resource Name (ARN) of the resource.

atTags :: Lens' AddTags (NonEmpty Tag) #

The tags. Each resource can have a maximum of 10 tags.

Destructuring the Response

addTagsResponse #

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 #

Contains the output of AddTags.

See: addTagsResponse smart constructor.

Instances

Eq AddTagsResponse # 
Data AddTagsResponse # 

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 # 
Show AddTagsResponse # 
Generic AddTagsResponse # 
NFData AddTagsResponse # 

Methods

rnf :: AddTagsResponse -> () #

type Rep AddTagsResponse # 
type Rep AddTagsResponse = D1 (MetaData "AddTagsResponse" "Network.AWS.ELBv2.AddTags" "amazonka-elbv2-1.4.5-1H99zq9GcvyVED37xNlPU" True) (C1 (MetaCons "AddTagsResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_atrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

atrsResponseStatus :: Lens' AddTagsResponse Int #

  • - | The response status code.