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.EC2.DeleteTags
Description
Deletes the specified set of tags from the specified set of resources.
To list the current tags, use DescribeTags. For more information about tags, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide.
Synopsis
Creating a Request
data DeleteTags Source #
See: newDeleteTags
smart constructor.
Constructors
DeleteTags' | |
Fields
|
Instances
newDeleteTags :: DeleteTags Source #
Create a value of DeleteTags
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:dryRun:DeleteTags'
, deleteTags_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
DeleteTags
, deleteTags_tags
- The tags to delete. Specify a tag key and an optional tag value to
delete specific tags. If you specify a tag key without a tag value, we
delete any tag with this key regardless of its value. If you specify a
tag key with an empty string as the tag value, we delete the tag only if
its value is an empty string.
If you omit this parameter, we delete all user-defined tags for the
specified resources. We do not delete Amazon Web Services-generated tags
(tags that have the aws:
prefix).
Constraints: Up to 1000 tags.
DeleteTags
, deleteTags_resources
- The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
Request Lenses
deleteTags_dryRun :: Lens' DeleteTags (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
deleteTags_tags :: Lens' DeleteTags (Maybe [Tag]) Source #
The tags to delete. Specify a tag key and an optional tag value to delete specific tags. If you specify a tag key without a tag value, we delete any tag with this key regardless of its value. If you specify a tag key with an empty string as the tag value, we delete the tag only if its value is an empty string.
If you omit this parameter, we delete all user-defined tags for the
specified resources. We do not delete Amazon Web Services-generated tags
(tags that have the aws:
prefix).
Constraints: Up to 1000 tags.
deleteTags_resources :: Lens' DeleteTags [Text] Source #
The IDs of the resources, separated by spaces.
Constraints: Up to 1000 resource IDs. We recommend breaking up this request into smaller batches.
Destructuring the Response
data DeleteTagsResponse Source #
See: newDeleteTagsResponse
smart constructor.
Constructors
DeleteTagsResponse' | |
Instances
Generic DeleteTagsResponse Source # | |
Defined in Amazonka.EC2.DeleteTags Associated Types type Rep DeleteTagsResponse :: Type -> Type # Methods from :: DeleteTagsResponse -> Rep DeleteTagsResponse x # to :: Rep DeleteTagsResponse x -> DeleteTagsResponse # | |
Read DeleteTagsResponse Source # | |
Defined in Amazonka.EC2.DeleteTags Methods readsPrec :: Int -> ReadS DeleteTagsResponse # readList :: ReadS [DeleteTagsResponse] # | |
Show DeleteTagsResponse Source # | |
Defined in Amazonka.EC2.DeleteTags Methods showsPrec :: Int -> DeleteTagsResponse -> ShowS # show :: DeleteTagsResponse -> String # showList :: [DeleteTagsResponse] -> ShowS # | |
NFData DeleteTagsResponse Source # | |
Defined in Amazonka.EC2.DeleteTags Methods rnf :: DeleteTagsResponse -> () # | |
Eq DeleteTagsResponse Source # | |
Defined in Amazonka.EC2.DeleteTags Methods (==) :: DeleteTagsResponse -> DeleteTagsResponse -> Bool # (/=) :: DeleteTagsResponse -> DeleteTagsResponse -> Bool # | |
type Rep DeleteTagsResponse Source # | |
newDeleteTagsResponse :: DeleteTagsResponse Source #
Create a value of DeleteTagsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.