Smaws_Client_WorkMail.UpdatePrimaryEmailAddress
val request :
Smaws_Lib.Context.t ->
update_primary_email_address_request ->
(update_primary_email_address_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `DirectoryServiceAuthenticationFailedException of
directory_service_authentication_failed_exception
| `DirectoryUnavailableException of directory_unavailable_exception
| `EmailAddressInUseException of email_address_in_use_exception
| `EntityNotFoundException of entity_not_found_exception
| `EntityStateException of entity_state_exception
| `InvalidParameterException of invalid_parameter_exception
| `MailDomainNotFoundException of mail_domain_not_found_exception
| `MailDomainStateException of mail_domain_state_exception
| `OrganizationNotFoundException of organization_not_found_exception
| `OrganizationStateException of organization_state_exception
| `UnsupportedOperationException of unsupported_operation_exception ])
Stdlib.result
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.