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