libZSservicesZSamazonka-organizationsZSamazonka-organizations
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.Organizations.UntagResource

Description

Removes any tags with the specified keys from the specified resource.

You can attach tags to the following resources in AWS Organizations.

  • AWS account
  • Organization root
  • Organizational unit (OU)
  • Policy (any type)

This operation can be called only from the organization's management account.

Synopsis

Creating a Request

data UntagResource Source #

See: newUntagResource smart constructor.

Constructors

UntagResource' 

Fields

  • resourceId :: Text

    The ID of the resource to remove a tag from.

    You can specify any of the following taggable resources.

    • AWS account – specify the account ID number.
    • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz
    • Root – specify the root ID that begins with r- and looks similar to: r-1a2b
    • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3
  • tagKeys :: [Text]

    The list of keys for tags to remove from the specified resource.

Instances

Instances details
Eq UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Read UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Show UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Generic UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Associated Types

type Rep UntagResource :: Type -> Type #

NFData UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Methods

rnf :: UntagResource -> () #

Hashable UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

ToJSON UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

AWSRequest UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Associated Types

type AWSResponse UntagResource #

ToHeaders UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

ToPath UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

ToQuery UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

type Rep UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

type Rep UntagResource = D1 ('MetaData "UntagResource" "Amazonka.Organizations.UntagResource" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "UntagResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tagKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))
type AWSResponse UntagResource Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

newUntagResource Source #

Create a value of UntagResource 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:UntagResource', untagResource_resourceId - The ID of the resource to remove a tag from.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.
  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz
  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b
  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

$sel:tagKeys:UntagResource', untagResource_tagKeys - The list of keys for tags to remove from the specified resource.

Request Lenses

untagResource_resourceId :: Lens' UntagResource Text Source #

The ID of the resource to remove a tag from.

You can specify any of the following taggable resources.

  • AWS account – specify the account ID number.
  • Organizational unit – specify the OU ID that begins with ou- and looks similar to: ou-1a2b-34uvwxyz
  • Root – specify the root ID that begins with r- and looks similar to: r-1a2b
  • Policy – specify the policy ID that begins with p- andlooks similar to: p-12abcdefg3

untagResource_tagKeys :: Lens' UntagResource [Text] Source #

The list of keys for tags to remove from the specified resource.

Destructuring the Response

data UntagResourceResponse Source #

See: newUntagResourceResponse smart constructor.

Instances

Instances details
Eq UntagResourceResponse Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Read UntagResourceResponse Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Show UntagResourceResponse Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Generic UntagResourceResponse Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Associated Types

type Rep UntagResourceResponse :: Type -> Type #

NFData UntagResourceResponse Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

Methods

rnf :: UntagResourceResponse -> () #

type Rep UntagResourceResponse Source # 
Instance details

Defined in Amazonka.Organizations.UntagResource

type Rep UntagResourceResponse = D1 ('MetaData "UntagResourceResponse" "Amazonka.Organizations.UntagResource" "libZSservicesZSamazonka-organizationsZSamazonka-organizations" 'False) (C1 ('MetaCons "UntagResourceResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newUntagResourceResponse :: UntagResourceResponse Source #

Create a value of UntagResourceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.