libZSservicesZSamazonka-elasticbeanstalkZSamazonka-elasticbeanstalk
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.ElasticBeanstalk.UpdateTagsForResource

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.

Elastic Beanstalk supports tagging of all of its resources. For details about resource tagging, see Tagging Application Resources.

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

data UpdateTagsForResource Source #

See: newUpdateTagsForResource smart constructor.

Constructors

UpdateTagsForResource' 

Fields

  • tagsToRemove :: Maybe [Text]

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

    Specify at least one of these parameters: TagsToAdd, TagsToRemove.

  • tagsToAdd :: Maybe [Tag]

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

    Specify at least one of these parameters: TagsToAdd, TagsToRemove.

  • resourceArn :: Text

    The Amazon Resource Name (ARN) of the resouce to be updated.

    Must be the ARN of an Elastic Beanstalk resource.

Instances

Instances details
Eq UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Read UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Show UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Generic UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Associated Types

type Rep UpdateTagsForResource :: Type -> Type #

NFData UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Methods

rnf :: UpdateTagsForResource -> () #

Hashable UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

AWSRequest UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Associated Types

type AWSResponse UpdateTagsForResource #

ToHeaders UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

ToPath UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

ToQuery UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

type Rep UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

type Rep UpdateTagsForResource = D1 ('MetaData "UpdateTagsForResource" "Amazonka.ElasticBeanstalk.UpdateTagsForResource" "libZSservicesZSamazonka-elasticbeanstalkZSamazonka-elasticbeanstalk" 'False) (C1 ('MetaCons "UpdateTagsForResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tagsToRemove") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "tagsToAdd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "resourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateTagsForResource Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

newUpdateTagsForResource Source #

Create a value of UpdateTagsForResource 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:tagsToRemove:UpdateTagsForResource', updateTagsForResource_tagsToRemove - A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.

Specify at least one of these parameters: TagsToAdd, TagsToRemove.

$sel:tagsToAdd:UpdateTagsForResource', updateTagsForResource_tagsToAdd - A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.

Specify at least one of these parameters: TagsToAdd, TagsToRemove.

$sel:resourceArn:UpdateTagsForResource', updateTagsForResource_resourceArn - The Amazon Resource Name (ARN) of the resouce to be updated.

Must be the ARN of an Elastic Beanstalk resource.

Request Lenses

updateTagsForResource_tagsToRemove :: Lens' UpdateTagsForResource (Maybe [Text]) Source #

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

Specify at least one of these parameters: TagsToAdd, TagsToRemove.

updateTagsForResource_tagsToAdd :: Lens' UpdateTagsForResource (Maybe [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.

Specify at least one of these parameters: TagsToAdd, TagsToRemove.

updateTagsForResource_resourceArn :: Lens' UpdateTagsForResource Text Source #

The Amazon Resource Name (ARN) of the resouce to be updated.

Must be the ARN of an Elastic Beanstalk resource.

Destructuring the Response

data UpdateTagsForResourceResponse Source #

See: newUpdateTagsForResourceResponse smart constructor.

Instances

Instances details
Eq UpdateTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Read UpdateTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Show UpdateTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Generic UpdateTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

Associated Types

type Rep UpdateTagsForResourceResponse :: Type -> Type #

NFData UpdateTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

type Rep UpdateTagsForResourceResponse Source # 
Instance details

Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource

type Rep UpdateTagsForResourceResponse = D1 ('MetaData "UpdateTagsForResourceResponse" "Amazonka.ElasticBeanstalk.UpdateTagsForResource" "libZSservicesZSamazonka-elasticbeanstalkZSamazonka-elasticbeanstalk" 'False) (C1 ('MetaCons "UpdateTagsForResourceResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newUpdateTagsForResourceResponse :: UpdateTagsForResourceResponse Source #

Create a value of UpdateTagsForResourceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.