Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.IAM.DeleteUserPolicy
Description
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.
Synopsis
- data DeleteUserPolicy = DeleteUserPolicy' {
- userName :: Text
- policyName :: Text
- newDeleteUserPolicy :: Text -> Text -> DeleteUserPolicy
- deleteUserPolicy_userName :: Lens' DeleteUserPolicy Text
- deleteUserPolicy_policyName :: Lens' DeleteUserPolicy Text
- data DeleteUserPolicyResponse = DeleteUserPolicyResponse' {
- newDeleteUserPolicyResponse :: DeleteUserPolicyResponse
Creating a Request
data DeleteUserPolicy Source #
See: newDeleteUserPolicy
smart constructor.
Constructors
DeleteUserPolicy' | |
Fields
|
Instances
Arguments
:: Text | |
-> Text | |
-> DeleteUserPolicy |
Create a value of DeleteUserPolicy
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:
DeleteUserPolicy
, deleteUserPolicy_userName
- The name (friendly name, not ARN) identifying the user that the policy
is embedded in.
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: _+=,.@-
DeleteUserPolicy
, deleteUserPolicy_policyName
- The name identifying the policy document to delete.
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: _+=,.@-
Request Lenses
deleteUserPolicy_userName :: Lens' DeleteUserPolicy Text Source #
The name (friendly name, not ARN) identifying the user that the policy is embedded in.
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: _+=,.@-
deleteUserPolicy_policyName :: Lens' DeleteUserPolicy Text Source #
The name identifying the policy document to delete.
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: _+=,.@-
Destructuring the Response
data DeleteUserPolicyResponse Source #
See: newDeleteUserPolicyResponse
smart constructor.
Constructors
DeleteUserPolicyResponse' | |
Instances
newDeleteUserPolicyResponse :: DeleteUserPolicyResponse Source #
Create a value of DeleteUserPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.