Smaws_Client_WorkMail.UpdatePrimaryEmailAddress
Updates the primary email for a user, group, or resource. The current email is moved into the list of aliases (or swapped between an existing alias and the current primary email), and the email provided in the input is promoted as the primary.
val request :
Smaws_Lib.Context.t ->
Types.update_primary_email_address_request ->
(Types.update_primary_email_address_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `DirectoryServiceAuthenticationFailedException of
Types.directory_service_authentication_failed_exception
| `DirectoryUnavailableException of Types.directory_unavailable_exception
| `EmailAddressInUseException of Types.email_address_in_use_exception
| `EntityNotFoundException of Types.entity_not_found_exception
| `EntityStateException of Types.entity_state_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `MailDomainNotFoundException of Types.mail_domain_not_found_exception
| `MailDomainStateException of Types.mail_domain_state_exception
| `OrganizationNotFoundException of Types.organization_not_found_exception
| `OrganizationStateException of Types.organization_state_exception
| `UnsupportedOperationException of Types.unsupported_operation_exception ])
Stdlib.result