Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Removes the specified managed policy from the specified role.
A role can also have inline policies embedded with it. To delete an inline policy, use the DeleteRolePolicy
API. For information about policies, see Managed Policies and Inline Policies in the IAM User Guide .
Creating a Request
Creates a value of DetachRolePolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drpRoleName
- The name (friendly name, not ARN) of the IAM role to detach the policy from. This parameter allows (per 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: _+=,.@-drpPolicyARN
- The Amazon Resource Name (ARN) of the IAM policy you want to detach. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
data DetachRolePolicy Source #
See: detachRolePolicy
smart constructor.
Request Lenses
drpRoleName :: Lens' DetachRolePolicy Text Source #
The name (friendly name, not ARN) of the IAM role to detach the policy from. This parameter allows (per 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: _+=,.@-
drpPolicyARN :: Lens' DetachRolePolicy 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) and AWS Service Namespaces in the AWS General Reference .
Destructuring the Response
detachRolePolicyResponse :: DetachRolePolicyResponse Source #
Creates a value of DetachRolePolicyResponse
with the minimum fields required to make a request.
data DetachRolePolicyResponse Source #
See: detachRolePolicyResponse
smart constructor.