amazonka-elasticbeanstalk-1.6.0: Amazon Elastic Beanstalk 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.ElasticBeanstalk.UpdateTagsForResource

Contents

Description

Update the list of tags applied to an AWS Elastic Beanstalk resource. Two lists can be passed: TagsToAdd for tags to add or update, and TagsToRemove .

Currently, Elastic Beanstalk only supports tagging of Elastic Beanstalk environments. For details about environment tagging, see Tagging Resources in Your Elastic Beanstalk Environment .

If you create a custom IAM user policy to control permission to this operation, specify one of the following two virtual actions (or both) instead of the API operation name:

  • elasticbeanstalk:AddTags * Controls permission to call UpdateTagsForResource and pass a list of tags to add in the TagsToAdd parameter.
  • elasticbeanstalk:RemoveTags * Controls permission to call UpdateTagsForResource and pass a list of tag keys to remove in the TagsToRemove parameter.

For details about creating a custom user policy, see Creating a Custom User Policy .

Synopsis

Creating a Request

updateTagsForResource Source #

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

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

  • utfrTagsToRemove - A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.
  • utfrTagsToAdd - A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.
  • utfrResourceARN - The Amazon Resource Name (ARN) of the resouce to be updated. Must be the ARN of an Elastic Beanstalk environment.

data UpdateTagsForResource Source #

See: updateTagsForResource smart constructor.

Instances

Eq UpdateTagsForResource Source # 
Data UpdateTagsForResource Source # 

Methods

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

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

toConstr :: UpdateTagsForResource -> Constr #

dataTypeOf :: UpdateTagsForResource -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateTagsForResource Source # 
Show UpdateTagsForResource Source # 
Generic UpdateTagsForResource Source # 
Hashable UpdateTagsForResource Source # 
NFData UpdateTagsForResource Source # 

Methods

rnf :: UpdateTagsForResource -> () #

AWSRequest UpdateTagsForResource Source # 
ToHeaders UpdateTagsForResource Source # 
ToPath UpdateTagsForResource Source # 
ToQuery UpdateTagsForResource Source # 
type Rep UpdateTagsForResource Source # 
type Rep UpdateTagsForResource = D1 * (MetaData "UpdateTagsForResource" "Network.AWS.ElasticBeanstalk.UpdateTagsForResource" "amazonka-elasticbeanstalk-1.6.0-4Kt4TpxAtj66tluiSbk4fC" False) (C1 * (MetaCons "UpdateTagsForResource'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_utfrTagsToRemove") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_utfrTagsToAdd") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Tag]))) (S1 * (MetaSel (Just Symbol "_utfrResourceARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs UpdateTagsForResource Source # 

Request Lenses

utfrTagsToRemove :: Lens' UpdateTagsForResource [Text] Source #

A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.

utfrTagsToAdd :: Lens' UpdateTagsForResource [Tag] Source #

A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.

utfrResourceARN :: Lens' UpdateTagsForResource Text Source #

The Amazon Resource Name (ARN) of the resouce to be updated. Must be the ARN of an Elastic Beanstalk environment.

Destructuring the Response

updateTagsForResourceResponse :: UpdateTagsForResourceResponse Source #

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

data UpdateTagsForResourceResponse Source #

See: updateTagsForResourceResponse smart constructor.

Instances

Eq UpdateTagsForResourceResponse Source # 
Data UpdateTagsForResourceResponse Source # 

Methods

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

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

toConstr :: UpdateTagsForResourceResponse -> Constr #

dataTypeOf :: UpdateTagsForResourceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateTagsForResourceResponse Source # 
Show UpdateTagsForResourceResponse Source # 
Generic UpdateTagsForResourceResponse Source # 
NFData UpdateTagsForResourceResponse Source # 
type Rep UpdateTagsForResourceResponse Source # 
type Rep UpdateTagsForResourceResponse = D1 * (MetaData "UpdateTagsForResourceResponse" "Network.AWS.ElasticBeanstalk.UpdateTagsForResource" "amazonka-elasticbeanstalk-1.6.0-4Kt4TpxAtj66tluiSbk4fC" False) (C1 * (MetaCons "UpdateTagsForResourceResponse'" PrefixI False) (U1 *))