| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.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 .
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
UpdateTagsForResourceand pass a list of tags to add in theTagsToAddparameter. - elasticbeanstalk:RemoveTags * Controls permission to call
UpdateTagsForResourceand pass a list of tag keys to remove in theTagsToRemoveparameter.
For details about creating a custom user policy, see Creating a Custom User Policy .
Synopsis
- updateTagsForResource :: Text -> UpdateTagsForResource
- data UpdateTagsForResource
- utfrTagsToRemove :: Lens' UpdateTagsForResource [Text]
- utfrTagsToAdd :: Lens' UpdateTagsForResource [Tag]
- utfrResourceARN :: Lens' UpdateTagsForResource Text
- updateTagsForResourceResponse :: UpdateTagsForResourceResponse
- data UpdateTagsForResourceResponse
Creating a Request
updateTagsForResource Source #
Arguments
| :: Text | |
| -> UpdateTagsForResource |
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
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.