WorkMail.Client.
update_impersonation_role
(**kwargs)¶Updates an impersonation role for the given WorkMail organization.
See also: AWS API Documentation
Request Syntax
response = client.update_impersonation_role(
OrganizationId='string',
ImpersonationRoleId='string',
Name='string',
Type='FULL_ACCESS'|'READ_ONLY',
Description='string',
Rules=[
{
'ImpersonationRuleId': 'string',
'Name': 'string',
'Description': 'string',
'Effect': 'ALLOW'|'DENY',
'TargetUsers': [
'string',
],
'NotTargetUsers': [
'string',
]
},
]
)
[REQUIRED]
The WorkMail organization that contains the impersonation role to update.
[REQUIRED]
The ID of the impersonation role to update.
[REQUIRED]
The updated impersonation role name.
[REQUIRED]
The updated impersonation role type.
[REQUIRED]
The updated list of rules.
The rules for the given impersonation role.
The identifier of the rule.
The rule name.
The rule description.
The effect of the rule when it matches the input. Allowed effect values are ALLOW
or DENY
.
A list of user IDs that match the rule.
A list of user IDs that don't match the rule.
dict
Response Syntax
{}
Response Structure
Exceptions
WorkMail.Client.exceptions.InvalidParameterException
WorkMail.Client.exceptions.OrganizationNotFoundException
WorkMail.Client.exceptions.OrganizationStateException
WorkMail.Client.exceptions.ResourceNotFoundException
WorkMail.Client.exceptions.EntityNotFoundException
WorkMail.Client.exceptions.EntityStateException
WorkMail.Client.exceptions.LimitExceededException