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 |
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.
DeleteUserPolicy' | |
|
Instances
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:
$sel:userName: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: _+=,.@-
$sel:policyName: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.
Instances
Eq DeleteUserPolicyResponse Source # | |
Defined in Amazonka.IAM.DeleteUserPolicy | |
Read DeleteUserPolicyResponse Source # | |
Show DeleteUserPolicyResponse Source # | |
Defined in Amazonka.IAM.DeleteUserPolicy showsPrec :: Int -> DeleteUserPolicyResponse -> ShowS # show :: DeleteUserPolicyResponse -> String # showList :: [DeleteUserPolicyResponse] -> ShowS # | |
Generic DeleteUserPolicyResponse Source # | |
Defined in Amazonka.IAM.DeleteUserPolicy type Rep DeleteUserPolicyResponse :: Type -> Type # | |
NFData DeleteUserPolicyResponse Source # | |
Defined in Amazonka.IAM.DeleteUserPolicy rnf :: DeleteUserPolicyResponse -> () # | |
type Rep DeleteUserPolicyResponse Source # | |
newDeleteUserPolicyResponse :: DeleteUserPolicyResponse Source #
Create a value of DeleteUserPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.