amazonka-iam-1.0.0: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.DeleteRolePolicy

Contents

Description

Deletes the specified inline policy that is embedded in the specified 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 Using IAM guide.

See: AWS API Reference for DeleteRolePolicy.

Synopsis

Creating a Request

deleteRolePolicy Source

Creates a value of DeleteRolePolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

delRoleName :: Lens' DeleteRolePolicy Text Source

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

delPolicyName :: Lens' DeleteRolePolicy Text Source

The name identifying the policy document to delete.

Destructuring the Response

deleteRolePolicyResponse :: DeleteRolePolicyResponse Source

Creates a value of DeleteRolePolicyResponse with the minimum fields required to make a request.