amazonka-emr-1.3.6: Amazon Elastic MapReduce SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EMR.AddTags

Contents

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 Tagging Amazon EMR Resources.

See: AWS API Reference for AddTags.

Synopsis

Creating a Request

addTags Source

Arguments

:: Text

atResourceId

-> AddTags 

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:

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

addTagsResponse Source

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.