amazonka-iam-2.0: Amazon Identity and Access Management 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.IAM.UntagPolicy

Description

Removes the specified tags from the customer managed policy. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Synopsis

Creating a Request

data UntagPolicy Source #

See: newUntagPolicy smart constructor.

Constructors

UntagPolicy' 

Fields

  • policyArn :: Text

    The ARN of the IAM customer managed policy from which you want to remove tags.

    This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

  • tagKeys :: [Text]

    A list of key names as a simple array of strings. The tags with matching keys are removed from the specified policy.

Instances

Instances details
ToHeaders UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

Methods

toHeaders :: UntagPolicy -> [Header] #

ToPath UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

ToQuery UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

AWSRequest UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

Associated Types

type AWSResponse UntagPolicy #

Generic UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

Associated Types

type Rep UntagPolicy :: Type -> Type #

Read UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

Show UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

NFData UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

Methods

rnf :: UntagPolicy -> () #

Eq UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

Hashable UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

type AWSResponse UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

type Rep UntagPolicy Source # 
Instance details

Defined in Amazonka.IAM.UntagPolicy

type Rep UntagPolicy = D1 ('MetaData "UntagPolicy" "Amazonka.IAM.UntagPolicy" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "UntagPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tagKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text])))

newUntagPolicy Source #

Create a value of UntagPolicy 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:

UntagPolicy, untagPolicy_policyArn - The ARN of the IAM customer managed policy from which you want to remove tags.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

$sel:tagKeys:UntagPolicy', untagPolicy_tagKeys - A list of key names as a simple array of strings. The tags with matching keys are removed from the specified policy.

Request Lenses

untagPolicy_policyArn :: Lens' UntagPolicy Text Source #

The ARN of the IAM customer managed policy from which you want to remove tags.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-

untagPolicy_tagKeys :: Lens' UntagPolicy [Text] Source #

A list of key names as a simple array of strings. The tags with matching keys are removed from the specified policy.

Destructuring the Response

data UntagPolicyResponse Source #

See: newUntagPolicyResponse smart constructor.

Constructors

UntagPolicyResponse' 

newUntagPolicyResponse :: UntagPolicyResponse Source #

Create a value of UntagPolicyResponse with all optional fields omitted.

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