| 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.DeleteRolePolicy
Description
Deletes the specified inline policy that is embedded in the specified IAM role.
A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy. For more information about policies, refer to Managed policies and inline policies in the IAM User Guide.
Synopsis
- data DeleteRolePolicy = DeleteRolePolicy' {
- roleName :: Text
- policyName :: Text
- newDeleteRolePolicy :: Text -> Text -> DeleteRolePolicy
- deleteRolePolicy_roleName :: Lens' DeleteRolePolicy Text
- deleteRolePolicy_policyName :: Lens' DeleteRolePolicy Text
- data DeleteRolePolicyResponse = DeleteRolePolicyResponse' {
- newDeleteRolePolicyResponse :: DeleteRolePolicyResponse
Creating a Request
data DeleteRolePolicy Source #
See: newDeleteRolePolicy smart constructor.
Constructors
| DeleteRolePolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteRolePolicy |
Create a value of DeleteRolePolicy 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:
DeleteRolePolicy, deleteRolePolicy_roleName - The name (friendly name, not ARN) identifying the role 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: _+=,.@-
DeleteRolePolicy, deleteRolePolicy_policyName - The name of the inline policy to delete from the specified IAM role.
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
deleteRolePolicy_roleName :: Lens' DeleteRolePolicy Text Source #
The name (friendly name, not ARN) identifying the role 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: _+=,.@-
deleteRolePolicy_policyName :: Lens' DeleteRolePolicy Text Source #
The name of the inline policy to delete from the specified IAM role.
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 DeleteRolePolicyResponse Source #
See: newDeleteRolePolicyResponse smart constructor.
Constructors
| DeleteRolePolicyResponse' | |
Instances
newDeleteRolePolicyResponse :: DeleteRolePolicyResponse Source #
Create a value of DeleteRolePolicyResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.