| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
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
- data UpdateTagsForResource = UpdateTagsForResource' {
- tagsToAdd :: Maybe [Tag]
- tagsToRemove :: Maybe [Text]
- resourceArn :: Text
- newUpdateTagsForResource :: Text -> UpdateTagsForResource
- updateTagsForResource_tagsToAdd :: Lens' UpdateTagsForResource (Maybe [Tag])
- updateTagsForResource_tagsToRemove :: Lens' UpdateTagsForResource (Maybe [Text])
- updateTagsForResource_resourceArn :: Lens' UpdateTagsForResource Text
- data UpdateTagsForResourceResponse = UpdateTagsForResourceResponse' {
- newUpdateTagsForResourceResponse :: UpdateTagsForResourceResponse
Creating a Request
data UpdateTagsForResource Source #
See: newUpdateTagsForResource smart constructor.
Constructors
| UpdateTagsForResource' | |
Fields
| |
Instances
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: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: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: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_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_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_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.
Constructors
| UpdateTagsForResourceResponse' | |
Instances
| Generic UpdateTagsForResourceResponse Source # | |
Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource Associated Types type Rep UpdateTagsForResourceResponse :: Type -> Type # | |
| Read UpdateTagsForResourceResponse Source # | |
| Show UpdateTagsForResourceResponse Source # | |
Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource Methods showsPrec :: Int -> UpdateTagsForResourceResponse -> ShowS # show :: UpdateTagsForResourceResponse -> String # showList :: [UpdateTagsForResourceResponse] -> ShowS # | |
| NFData UpdateTagsForResourceResponse Source # | |
Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource Methods rnf :: UpdateTagsForResourceResponse -> () # | |
| Eq UpdateTagsForResourceResponse Source # | |
| type Rep UpdateTagsForResourceResponse Source # | |
newUpdateTagsForResourceResponse :: UpdateTagsForResourceResponse Source #
Create a value of UpdateTagsForResourceResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.