Copyright | (c) 2013-2021 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 |
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 DeleteRolePolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide.
Synopsis
- data DetachRolePolicy = DetachRolePolicy' {}
- newDetachRolePolicy :: Text -> Text -> DetachRolePolicy
- detachRolePolicy_roleName :: Lens' DetachRolePolicy Text
- detachRolePolicy_policyArn :: Lens' DetachRolePolicy Text
- data DetachRolePolicyResponse = DetachRolePolicyResponse' {
- newDetachRolePolicyResponse :: DetachRolePolicyResponse
Creating a Request
data DetachRolePolicy Source #
See: newDetachRolePolicy
smart constructor.
DetachRolePolicy' | |
|
Instances
Create a value of DetachRolePolicy
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:DetachRolePolicy'
, detachRolePolicy_roleName
- The name (friendly name, not ARN) of the IAM role 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:DetachRolePolicy'
, detachRolePolicy_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
detachRolePolicy_roleName :: Lens' DetachRolePolicy Text Source #
The name (friendly name, not ARN) of the IAM role 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: _+=,.@-
detachRolePolicy_policyArn :: 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) in the Amazon Web Services General Reference.
Destructuring the Response
data DetachRolePolicyResponse Source #
See: newDetachRolePolicyResponse
smart constructor.
Instances
Eq DetachRolePolicyResponse Source # | |
Defined in Amazonka.IAM.DetachRolePolicy | |
Read DetachRolePolicyResponse Source # | |
Show DetachRolePolicyResponse Source # | |
Defined in Amazonka.IAM.DetachRolePolicy showsPrec :: Int -> DetachRolePolicyResponse -> ShowS # show :: DetachRolePolicyResponse -> String # showList :: [DetachRolePolicyResponse] -> ShowS # | |
Generic DetachRolePolicyResponse Source # | |
Defined in Amazonka.IAM.DetachRolePolicy type Rep DetachRolePolicyResponse :: Type -> Type # | |
NFData DetachRolePolicyResponse Source # | |
Defined in Amazonka.IAM.DetachRolePolicy rnf :: DetachRolePolicyResponse -> () # | |
type Rep DetachRolePolicyResponse Source # | |
newDetachRolePolicyResponse :: DetachRolePolicyResponse Source #
Create a value of DetachRolePolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.