Policy / Action / detach_role
detach_role#
- IAM.Policy.detach_role(**kwargs)#
Removes the specified managed policy from the specified role.
A role can also have inline policies embedded with it. To delete an inline policy, use DeleteRolePolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide.
See also: AWS API Documentation
Request Syntax
response = policy.detach_role( RoleName='string', )
- Parameters:
RoleName (string) –
[REQUIRED]
The name (friendly name, not ARN) of the IAM role to detach the policy from.
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: _+=,.@-
- Returns:
None