update_impersonation_role
¶
update_impersonation_role(
organization_id: OrganizationId,
impersonation_role_id: ImpersonationRoleId,
name: ImpersonationRoleName,
type: ImpersonationRoleType,
rules: ImpersonationRuleList,
*,
config_overrides: Optional[WorkMailClientConfig] = None,
description: Optional[ImpersonationRoleDescription] = None,
) -> UpdateImpersonationRoleResponse
Updates an impersonation role for the given WorkMail organization.
Parameters:
-
organization_id(OrganizationId) –The WorkMail organization that contains the impersonation role to update.
-
impersonation_role_id(ImpersonationRoleId) –The ID of the impersonation role to update.
-
name(ImpersonationRoleName) –The updated impersonation role name.
-
type(ImpersonationRoleType) –The updated impersonation role type.
-
description(Optional[ImpersonationRoleDescription], default:None) –The updated impersonation role description.
-
rules(ImpersonationRuleList) –The updated list of rules.
Raises:
-
EntityNotFoundException–The identifier supplied for the user, group, or resource does not exist in your organization.
-
EntityStateException–You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
LimitExceededException–The request exceeds the limit of the resource.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
ResourceNotFoundException–The resource cannot be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/work_mail.py
5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 | |