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 user.
A user can also have inline policies embedded with it. To delete an inline policy, use DeleteUserPolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide.
Synopsis
- data DetachUserPolicy = DetachUserPolicy' {}
- newDetachUserPolicy :: Text -> Text -> DetachUserPolicy
- detachUserPolicy_userName :: Lens' DetachUserPolicy Text
- detachUserPolicy_policyArn :: Lens' DetachUserPolicy Text
- data DetachUserPolicyResponse = DetachUserPolicyResponse' {
- newDetachUserPolicyResponse :: DetachUserPolicyResponse
Creating a Request
data DetachUserPolicy Source #
See: newDetachUserPolicy
smart constructor.
DetachUserPolicy' | |
|
Instances
Create a value of DetachUserPolicy
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:userName:DetachUserPolicy'
, detachUserPolicy_userName
- The name (friendly name, not ARN) of the IAM user 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:DetachUserPolicy'
, detachUserPolicy_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
detachUserPolicy_userName :: Lens' DetachUserPolicy Text Source #
The name (friendly name, not ARN) of the IAM user 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: _+=,.@-
detachUserPolicy_policyArn :: Lens' DetachUserPolicy 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 DetachUserPolicyResponse Source #
See: newDetachUserPolicyResponse
smart constructor.
Instances
Eq DetachUserPolicyResponse Source # | |
Defined in Amazonka.IAM.DetachUserPolicy | |
Read DetachUserPolicyResponse Source # | |
Show DetachUserPolicyResponse Source # | |
Defined in Amazonka.IAM.DetachUserPolicy showsPrec :: Int -> DetachUserPolicyResponse -> ShowS # show :: DetachUserPolicyResponse -> String # showList :: [DetachUserPolicyResponse] -> ShowS # | |
Generic DetachUserPolicyResponse Source # | |
Defined in Amazonka.IAM.DetachUserPolicy type Rep DetachUserPolicyResponse :: Type -> Type # | |
NFData DetachUserPolicyResponse Source # | |
Defined in Amazonka.IAM.DetachUserPolicy rnf :: DetachUserPolicyResponse -> () # | |
type Rep DetachUserPolicyResponse Source # | |
newDetachUserPolicyResponse :: DetachUserPolicyResponse Source #
Create a value of DetachUserPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.