delete_alias
async
¶
delete_alias(
organization_id: OrganizationId,
entity_id: WorkMailIdentifier,
alias: EmailAddress,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
) -> DeleteAliasResponse
Remove one or more specified aliases from a set of aliases for a given user.
Parameters:
-
organization_id(OrganizationId) –The identifier for the organization under which the user exists.
-
entity_id(WorkMailIdentifier) –The identifier for the member (user or group) from which to have the aliases removed.
-
alias(EmailAddress) –The aliases to be removed from the user's set of aliases. Duplicate entries in the list are collapsed into single entries (the list is transformed into a set).
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.
-
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.
-
UnknownServiceError–The service returned an error code this client does not model.