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

Description

Deletes the specified inline policy that is embedded in the specified IAM group.

A group can also have managed policies attached to it. To detach a managed policy from a group, use DetachGroupPolicy. For more information about policies, refer to Managed policies and inline policies in the IAM User Guide.

Synopsis

Creating a Request

data DeleteGroupPolicy Source #

See: newDeleteGroupPolicy smart constructor.

Constructors

DeleteGroupPolicy' 

Fields

  • groupName :: Text

    The name (friendly name, not ARN) identifying the group that the policy is embedded in.

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

  • policyName :: Text

    The name identifying the policy document to delete.

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

Instances

Instances details
ToHeaders DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

ToPath DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

ToQuery DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

AWSRequest DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

Associated Types

type AWSResponse DeleteGroupPolicy #

Generic DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

Associated Types

type Rep DeleteGroupPolicy :: Type -> Type #

Read DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

Show DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

NFData DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

Methods

rnf :: DeleteGroupPolicy -> () #

Eq DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

Hashable DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

type AWSResponse DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

type Rep DeleteGroupPolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

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

newDeleteGroupPolicy Source #

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

DeleteGroupPolicy, deleteGroupPolicy_groupName - The name (friendly name, not ARN) identifying the group that the policy is embedded in.

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

DeleteGroupPolicy, deleteGroupPolicy_policyName - The name identifying the policy document to delete.

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

Request Lenses

deleteGroupPolicy_groupName :: Lens' DeleteGroupPolicy Text Source #

The name (friendly name, not ARN) identifying the group that the policy is embedded in.

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

deleteGroupPolicy_policyName :: Lens' DeleteGroupPolicy Text Source #

The name identifying the policy document to delete.

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

Destructuring the Response

data DeleteGroupPolicyResponse Source #

See: newDeleteGroupPolicyResponse smart constructor.

Instances

Instances details
Generic DeleteGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

Associated Types

type Rep DeleteGroupPolicyResponse :: Type -> Type #

Read DeleteGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

Show DeleteGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

NFData DeleteGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

Eq DeleteGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

type Rep DeleteGroupPolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteGroupPolicy

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

newDeleteGroupPolicyResponse :: DeleteGroupPolicyResponse Source #

Create a value of DeleteGroupPolicyResponse with all optional fields omitted.

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