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 |
Removes the specified tags from the specified resources. When you specify a tag key, the action removes both that key and its associated value. The operation succeeds even if you attempt to remove tags from a resource that were already removed. Note the following:
- To remove tags from a resource, you need the necessary permissions for the service that the resource belongs to as well as permissions for removing tags. For more information, see the documentation for the service whose resource you want to untag.
- You can only tag resources that are located in the specified AWS Region for the calling AWS account.
Minimum permissions
In addition to the tag:UntagResources
permission required by this
operation, you must also have the remove tags permission defined by the
service that created the resource. For example, to remove the tags from
an Amazon EC2 instance using the UntagResources
operation, you must
have both of the following permissions:
tag:UntagResource
ChimeSDKMeetings:DeleteTags
Synopsis
- data UntagResource = UntagResource' {
- resourceARN :: Text
- tagKeys :: [Text]
- newUntagResource :: Text -> UntagResource
- untagResource_resourceARN :: Lens' UntagResource Text
- untagResource_tagKeys :: Lens' UntagResource [Text]
- data UntagResourceResponse = UntagResourceResponse' {
- httpStatus :: Int
- newUntagResourceResponse :: Int -> UntagResourceResponse
- untagResourceResponse_httpStatus :: Lens' UntagResourceResponse Int
Creating a Request
data UntagResource Source #
See: newUntagResource
smart constructor.
UntagResource' | |
|
Instances
Create a value of UntagResource
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:resourceARN:UntagResource'
, untagResource_resourceARN
- The ARN of the resource that you're removing tags from.
$sel:tagKeys:UntagResource'
, untagResource_tagKeys
- The tag keys being removed from the resources.
Request Lenses
untagResource_resourceARN :: Lens' UntagResource Text Source #
The ARN of the resource that you're removing tags from.
untagResource_tagKeys :: Lens' UntagResource [Text] Source #
The tag keys being removed from the resources.
Destructuring the Response
data UntagResourceResponse Source #
See: newUntagResourceResponse
smart constructor.
UntagResourceResponse' | |
|
Instances
newUntagResourceResponse Source #
Create a value of UntagResourceResponse
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:httpStatus:UntagResourceResponse'
, untagResourceResponse_httpStatus
- The response's http status code.
Response Lenses
untagResourceResponse_httpStatus :: Lens' UntagResourceResponse Int Source #
The response's http status code.