Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Adds tags to an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.
See: AWS API Reference for AddTags.
- addTags :: Text -> AddTags
- data AddTags
- atResourceId :: Lens' AddTags Text
- atTags :: Lens' AddTags [Tag]
- addTagsResponse :: Int -> AddTagsResponse
- data AddTagsResponse
- atrsResponseStatus :: Lens' AddTagsResponse Int
Creating a Request
Creates a value of AddTags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
This input identifies a cluster and a list of tags to attach.
See: addTags
smart constructor.
Request Lenses
atResourceId :: Lens' AddTags Text Source
The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
atTags :: Lens' AddTags [Tag] Source
A list of tags to associate with a cluster and propagate to Amazon EC2 instances. 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
Creates a value of AddTagsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AddTagsResponse Source
This output indicates the result of adding tags to a resource.
See: addTagsResponse
smart constructor.
Response Lenses
atrsResponseStatus :: Lens' AddTagsResponse Int Source
The response status code.