amazonka-emr-2.0: Amazon EMR SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EMR.RemoveTags

Description

Removes tags from an Amazon EMR resource, such as a cluster or 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.

The following example removes the stack tag with value Prod from a cluster:

Synopsis

Creating a Request

data RemoveTags Source #

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

See: newRemoveTags smart constructor.

Constructors

RemoveTags' 

Fields

  • resourceId :: Text

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

  • tagKeys :: [Text]

    A list of tag keys to remove from the resource.

Instances

Instances details
ToJSON RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

ToHeaders RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

Methods

toHeaders :: RemoveTags -> [Header] #

ToPath RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

ToQuery RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

AWSRequest RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

Associated Types

type AWSResponse RemoveTags #

Generic RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

Associated Types

type Rep RemoveTags :: Type -> Type #

Read RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

Show RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

NFData RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

Methods

rnf :: RemoveTags -> () #

Eq RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

Hashable RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

type AWSResponse RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

type Rep RemoveTags Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

type Rep RemoveTags = D1 ('MetaData "RemoveTags" "Amazonka.EMR.RemoveTags" "amazonka-emr-2.0-B3cWhP6sdymF3IBUMdPGcd" 'False) (C1 ('MetaCons "RemoveTags'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tagKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))

newRemoveTags Source #

Create a value of RemoveTags 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:RemoveTags', removeTags_resourceId - The Amazon EMR resource identifier from which tags will be removed. For example, a cluster identifier or an Amazon EMR Studio ID.

$sel:tagKeys:RemoveTags', removeTags_tagKeys - A list of tag keys to remove from the resource.

Request Lenses

removeTags_resourceId :: Lens' RemoveTags Text Source #

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

removeTags_tagKeys :: Lens' RemoveTags [Text] Source #

A list of tag keys to remove from the resource.

Destructuring the Response

data RemoveTagsResponse Source #

This output indicates the result of removing tags from the resource.

See: newRemoveTagsResponse smart constructor.

Constructors

RemoveTagsResponse' 

Fields

Instances

Instances details
Generic RemoveTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

Associated Types

type Rep RemoveTagsResponse :: Type -> Type #

Read RemoveTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

Show RemoveTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

NFData RemoveTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

Methods

rnf :: RemoveTagsResponse -> () #

Eq RemoveTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

type Rep RemoveTagsResponse Source # 
Instance details

Defined in Amazonka.EMR.RemoveTags

type Rep RemoveTagsResponse = D1 ('MetaData "RemoveTagsResponse" "Amazonka.EMR.RemoveTags" "amazonka-emr-2.0-B3cWhP6sdymF3IBUMdPGcd" 'False) (C1 ('MetaCons "RemoveTagsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newRemoveTagsResponse Source #

Create a value of RemoveTagsResponse 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:RemoveTagsResponse', removeTagsResponse_httpStatus - The response's http status code.

Response Lenses