update_impersonation_role
async
¶
update_impersonation_role(
organization_id: OrganizationId,
impersonation_role_id: ImpersonationRoleId,
name: ImpersonationRoleName,
type: ImpersonationRoleType,
rules: ImpersonationRuleList,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = 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/async_work_mail.py
5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 | |