libZSservicesZSamazonka-iamZSamazonka-iam
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.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
Eq DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Read DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Show DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Generic DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Associated Types

type Rep DetachGroupPolicy :: Type -> Type #

NFData DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Methods

rnf :: DetachGroupPolicy -> () #

Hashable DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

AWSRequest DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Associated Types

type AWSResponse DetachGroupPolicy #

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

type Rep DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

type Rep DetachGroupPolicy = D1 ('MetaData "DetachGroupPolicy" "Amazonka.IAM.DetachGroupPolicy" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "DetachGroupPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "policyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DetachGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

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:

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

$sel:policyArn: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
Eq DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Read DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Show DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Generic DetachGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DetachGroupPolicy

Associated Types

type Rep DetachGroupPolicyResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iamZSamazonka-iam" '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.