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 |
Adds tags to an Amazon EMR resource, such as a cluster or an 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.
Synopsis
- data AddTags = AddTags' {
- resourceId :: Text
- tags :: [Tag]
- newAddTags :: Text -> AddTags
- addTags_resourceId :: Lens' AddTags Text
- addTags_tags :: Lens' AddTags [Tag]
- data AddTagsResponse = AddTagsResponse' {
- httpStatus :: Int
- newAddTagsResponse :: Int -> AddTagsResponse
- addTagsResponse_httpStatus :: Lens' AddTagsResponse Int
Creating a Request
This input identifies an Amazon EMR resource and a list of tags to attach.
See: newAddTags
smart constructor.
AddTags' | |
|
Instances
Create a value of AddTags
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:AddTags'
, addTags_resourceId
- The Amazon EMR resource identifier to which tags will be added. For
example, a cluster identifier or an Amazon EMR Studio ID.
$sel:tags:AddTags'
, addTags_tags
- A list of tags to associate with a resource. Tags are user-defined
key-value pairs that consist of a required key string with a maximum of
128 characters, and an optional value string with a maximum of 256
characters.
Request Lenses
addTags_resourceId :: Lens' AddTags Text Source #
The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an Amazon EMR Studio ID.
addTags_tags :: Lens' AddTags [Tag] Source #
A list of tags to associate with a resource. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
Destructuring the Response
data AddTagsResponse Source #
This output indicates the result of adding tags to a resource.
See: newAddTagsResponse
smart constructor.
AddTagsResponse' | |
|
Instances
Create a value of AddTagsResponse
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:AddTagsResponse'
, addTagsResponse_httpStatus
- The response's http status code.
Response Lenses
addTagsResponse_httpStatus :: Lens' AddTagsResponse Int Source #
The response's http status code.