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 |
Deletes the specified inline policy that is embedded in the specified IAM user.
A user can also have managed policies attached to it. To detach a managed policy from a user, use DetachUserPolicy
. For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
Creating a Request
Creates a value of DeleteUserPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dupUserName
- The name (friendly name, not ARN) identifying the user that the policy is embedded in. 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: _+=,.@-dupPolicyName
- The name identifying the policy document to delete. 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: _+=,.@-
data DeleteUserPolicy Source #
See: deleteUserPolicy
smart constructor.
Instances
Request Lenses
dupUserName :: Lens' DeleteUserPolicy Text Source #
The name (friendly name, not ARN) identifying the user that the policy is embedded in. 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: _+=,.@-
dupPolicyName :: Lens' DeleteUserPolicy Text Source #
The name identifying the policy document to delete. 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: _+=,.@-
Destructuring the Response
deleteUserPolicyResponse :: DeleteUserPolicyResponse Source #
Creates a value of DeleteUserPolicyResponse
with the minimum fields required to make a request.
data DeleteUserPolicyResponse Source #
See: deleteUserPolicyResponse
smart constructor.