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

Description

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

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

Synopsis

Creating a Request

data DeleteRolePolicy Source #

See: newDeleteRolePolicy smart constructor.

Constructors

DeleteRolePolicy' 

Fields

  • roleName :: Text

    The name (friendly name, not ARN) identifying the role 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 of the inline policy to delete from the specified IAM role.

    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
Eq DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Read DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Show DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Generic DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Associated Types

type Rep DeleteRolePolicy :: Type -> Type #

NFData DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Methods

rnf :: DeleteRolePolicy -> () #

Hashable DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

AWSRequest DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Associated Types

type AWSResponse DeleteRolePolicy #

ToHeaders DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

ToPath DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

ToQuery DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

type Rep DeleteRolePolicy Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

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

Defined in Amazonka.IAM.DeleteRolePolicy

newDeleteRolePolicy Source #

Create a value of DeleteRolePolicy 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:roleName:DeleteRolePolicy', deleteRolePolicy_roleName - The name (friendly name, not ARN) identifying the role 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: _+=,.@-

$sel:policyName:DeleteRolePolicy', deleteRolePolicy_policyName - The name of the inline policy to delete from the specified IAM role.

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

deleteRolePolicy_roleName :: Lens' DeleteRolePolicy Text Source #

The name (friendly name, not ARN) identifying the role 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: _+=,.@-

deleteRolePolicy_policyName :: Lens' DeleteRolePolicy Text Source #

The name of the inline policy to delete from the specified IAM role.

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 DeleteRolePolicyResponse Source #

See: newDeleteRolePolicyResponse smart constructor.

Instances

Instances details
Eq DeleteRolePolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Read DeleteRolePolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Show DeleteRolePolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Generic DeleteRolePolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

Associated Types

type Rep DeleteRolePolicyResponse :: Type -> Type #

NFData DeleteRolePolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

type Rep DeleteRolePolicyResponse Source # 
Instance details

Defined in Amazonka.IAM.DeleteRolePolicy

type Rep DeleteRolePolicyResponse = D1 ('MetaData "DeleteRolePolicyResponse" "Amazonka.IAM.DeleteRolePolicy" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "DeleteRolePolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteRolePolicyResponse :: DeleteRolePolicyResponse Source #

Create a value of DeleteRolePolicyResponse with all optional fields omitted.

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