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 tags from an Amazon EMR resource, such as a cluster or Amazon EMR Studio. Tags make it easier to associate resources in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tag Clusters.
The following example removes the stack tag with value Prod from a cluster:
Synopsis
- data RemoveTags = RemoveTags' {
- resourceId :: Text
- tagKeys :: [Text]
- newRemoveTags :: Text -> RemoveTags
- removeTags_resourceId :: Lens' RemoveTags Text
- removeTags_tagKeys :: Lens' RemoveTags [Text]
- data RemoveTagsResponse = RemoveTagsResponse' {
- httpStatus :: Int
- newRemoveTagsResponse :: Int -> RemoveTagsResponse
- removeTagsResponse_httpStatus :: Lens' RemoveTagsResponse Int
Creating a Request
data RemoveTags Source #
This input identifies an Amazon EMR resource and a list of tags to remove.
See: newRemoveTags
smart constructor.
RemoveTags' | |
|
Instances
Create a value of RemoveTags
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:resourceId:RemoveTags'
, removeTags_resourceId
- The Amazon EMR resource identifier from which tags will be removed. For
example, a cluster identifier or an Amazon EMR Studio ID.
$sel:tagKeys:RemoveTags'
, removeTags_tagKeys
- A list of tag keys to remove from the resource.
Request Lenses
removeTags_resourceId :: Lens' RemoveTags Text Source #
The Amazon EMR resource identifier from which tags will be removed. For example, a cluster identifier or an Amazon EMR Studio ID.
removeTags_tagKeys :: Lens' RemoveTags [Text] Source #
A list of tag keys to remove from the resource.
Destructuring the Response
data RemoveTagsResponse Source #
This output indicates the result of removing tags from the resource.
See: newRemoveTagsResponse
smart constructor.
RemoveTagsResponse' | |
|
Instances
newRemoveTagsResponse Source #
Create a value of RemoveTagsResponse
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:RemoveTagsResponse'
, removeTagsResponse_httpStatus
- The response's http status code.
Response Lenses
removeTagsResponse_httpStatus :: Lens' RemoveTagsResponse Int Source #
The response's http status code.