| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.EMR.AddTags
Description
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 Tag Clusters .
Synopsis
- 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:
atResourceId- The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.atTags- A list of tags to associate with a cluster and propagate to 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.
This input identifies a cluster and a list of tags to attach.
See: addTags smart constructor.
Instances
| Eq AddTags # | |
| Data AddTags # | |
Defined in Network.AWS.EMR.AddTags Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AddTags -> c AddTags # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AddTags # toConstr :: AddTags -> Constr # dataTypeOf :: AddTags -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AddTags) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AddTags) # gmapT :: (forall b. Data b => b -> b) -> AddTags -> AddTags # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AddTags -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AddTags -> r # gmapQ :: (forall d. Data d => d -> u) -> AddTags -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> AddTags -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> AddTags -> m AddTags # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AddTags -> m AddTags # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AddTags -> m AddTags # | |
| Read AddTags # | |
| Show AddTags # | |
| Generic AddTags # | |
| Hashable AddTags # | |
Defined in Network.AWS.EMR.AddTags | |
| ToJSON AddTags # | |
Defined in Network.AWS.EMR.AddTags | |
| AWSRequest AddTags # | |
| ToHeaders AddTags # | |
Defined in Network.AWS.EMR.AddTags | |
| ToPath AddTags # | |
Defined in Network.AWS.EMR.AddTags Methods toPath :: AddTags -> ByteString # | |
| ToQuery AddTags # | |
Defined in Network.AWS.EMR.AddTags Methods toQuery :: AddTags -> QueryString # | |
| NFData AddTags # | |
Defined in Network.AWS.EMR.AddTags | |
| type Rep AddTags # | |
Defined in Network.AWS.EMR.AddTags type Rep AddTags = D1 (MetaData "AddTags" "Network.AWS.EMR.AddTags" "amazonka-emr-1.6.1-AJXjUjiwraU6EiIJd44yy8" False) (C1 (MetaCons "AddTags'" PrefixI True) (S1 (MetaSel (Just "_atResourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_atTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Tag]))) | |
| type Rs AddTags # | |
Defined in Network.AWS.EMR.AddTags | |
Request Lenses
atResourceId :: Lens' AddTags Text #
The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
atTags :: Lens' AddTags [Tag] #
A list of tags to associate with a cluster and propagate to 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
Arguments
| :: Int | |
| -> AddTagsResponse |
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:
atrsResponseStatus- -- | The response status code.
data AddTagsResponse #
This output indicates the result of adding tags to a resource.
See: addTagsResponse smart constructor.
Instances
Response Lenses
atrsResponseStatus :: Lens' AddTagsResponse Int #
- - | The response status code.