Copyright | (c) 2013-2021 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 |
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 theTagsToAdd
parameter. - elasticbeanstalk:RemoveTags
- Controls permission to call
UpdateTagsForResource
and pass a list of tag keys to remove in theTagsToRemove
parameter.
For details about creating a custom user policy, see Creating a Custom User Policy.
Synopsis
- data UpdateTagsForResource = UpdateTagsForResource' {
- tagsToRemove :: Maybe [Text]
- tagsToAdd :: Maybe [Tag]
- resourceArn :: Text
- newUpdateTagsForResource :: Text -> UpdateTagsForResource
- updateTagsForResource_tagsToRemove :: Lens' UpdateTagsForResource (Maybe [Text])
- updateTagsForResource_tagsToAdd :: Lens' UpdateTagsForResource (Maybe [Tag])
- updateTagsForResource_resourceArn :: Lens' UpdateTagsForResource Text
- data UpdateTagsForResourceResponse = UpdateTagsForResourceResponse' {
- newUpdateTagsForResourceResponse :: UpdateTagsForResourceResponse
Creating a Request
data UpdateTagsForResource Source #
See: newUpdateTagsForResource
smart constructor.
UpdateTagsForResource' | |
|
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: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
Eq UpdateTagsForResourceResponse Source # | |
Read UpdateTagsForResourceResponse Source # | |
Show UpdateTagsForResourceResponse Source # | |
Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource showsPrec :: Int -> UpdateTagsForResourceResponse -> ShowS # show :: UpdateTagsForResourceResponse -> String # showList :: [UpdateTagsForResourceResponse] -> ShowS # | |
Generic UpdateTagsForResourceResponse Source # | |
NFData UpdateTagsForResourceResponse Source # | |
Defined in Amazonka.ElasticBeanstalk.UpdateTagsForResource rnf :: UpdateTagsForResourceResponse -> () # | |
type Rep UpdateTagsForResourceResponse Source # | |
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.