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

Amazonka.EMR.AddTags

Description

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

Creating a Request

data AddTags Source #

This input identifies an Amazon EMR resource and a list of tags to attach.

See: newAddTags smart constructor.

Constructors

AddTags' 

Fields

  • resourceId :: Text

    The Amazon EMR resource identifier to which tags will be added. For example, a cluster identifier or an Amazon EMR Studio ID.

  • tags :: [Tag]

    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.

Instances

Instances details
Eq AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Methods

(==) :: AddTags -> AddTags -> Bool #

(/=) :: AddTags -> AddTags -> Bool #

Read AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Show AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Generic AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Associated Types

type Rep AddTags :: Type -> Type #

Methods

from :: AddTags -> Rep AddTags x #

to :: Rep AddTags x -> AddTags #

NFData AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Methods

rnf :: AddTags -> () #

Hashable AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Methods

hashWithSalt :: Int -> AddTags -> Int #

hash :: AddTags -> Int #

ToJSON AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

AWSRequest AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Associated Types

type AWSResponse AddTags #

ToHeaders AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Methods

toHeaders :: AddTags -> [Header] #

ToPath AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Methods

toPath :: AddTags -> ByteString #

ToQuery AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

type Rep AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

type Rep AddTags = D1 ('MetaData "AddTags" "Amazonka.EMR.AddTags" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "AddTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tag])))
type AWSResponse AddTags Source # 
Instance details

Defined in Amazonka.EMR.AddTags

newAddTags Source #

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.

Constructors

AddTagsResponse' 

Fields

Instances

Instances details
Eq AddTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Read AddTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Show AddTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Generic AddTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Associated Types

type Rep AddTagsResponse :: Type -> Type #

NFData AddTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.AddTags

Methods

rnf :: AddTagsResponse -> () #

type Rep AddTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.AddTags

type Rep AddTagsResponse = D1 ('MetaData "AddTagsResponse" "Amazonka.EMR.AddTags" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "AddTagsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAddTagsResponse Source #

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.