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.DetachGroupPolicy

Description

Removes the specified managed policy from the specified IAM group.

A group can also have inline policies embedded with it. To delete an inline policy, use DeleteGroupPolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide.

Synopsis

Creating a Request

data DetachGroupPolicy Source #

See: newDetachGroupPolicy smart constructor.

Constructors

DetachGroupPolicy' 

Fields

  • groupName :: Text

    The name (friendly name, not ARN) of the IAM group to detach the policy from.

    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: _+=,.@-

  • policyArn :: Text

    The Amazon Resource Name (ARN) of the IAM policy you want to detach.

    For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

Instances

Instances details
ToHeaders DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

ToPath DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

ToQuery DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

AWSRequest DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Associated Types

type AWSResponse DetachGroupPolicy #

Generic DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Associated Types

type Rep DetachGroupPolicy :: Type -> Type #

Read DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Show DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

NFData DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Methods

rnf :: DetachGroupPolicy -> () #

Eq DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Hashable DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

type AWSResponse DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

type Rep DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

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

newDetachGroupPolicy Source #

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

DetachGroupPolicy, detachGroupPolicy_groupName - The name (friendly name, not ARN) of the IAM group to detach the policy from.

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: _+=,.@-

DetachGroupPolicy, detachGroupPolicy_policyArn - The Amazon Resource Name (ARN) of the IAM policy you want to detach.

For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

Request Lenses

detachGroupPolicy_groupName :: Lens' DetachGroupPolicy Text Source #

The name (friendly name, not ARN) of the IAM group to detach the policy from.

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: _+=,.@-

detachGroupPolicy_policyArn :: Lens' DetachGroupPolicy Text Source #

The Amazon Resource Name (ARN) of the IAM policy you want to detach.

For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

Destructuring the Response

data DetachGroupPolicyResponse Source #

See: newDetachGroupPolicyResponse smart constructor.

Instances

Instances details
Generic DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Associated Types

type Rep DetachGroupPolicyResponse :: Type -> Type #

Read DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Show DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

NFData DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Eq DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

type Rep DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

type Rep DetachGroupPolicyResponse = D1 ('MetaData "DetachGroupPolicyResponse" "Amazonka.IAM.DetachGroupPolicy" "amazonka-iam-2.0-5DxkArXx9sD3CCYYGFyGET" 'False) (C1 ('MetaCons "DetachGroupPolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDetachGroupPolicyResponse :: DetachGroupPolicyResponse Source #

Create a value of DetachGroupPolicyResponse with all optional fields omitted.

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