Module Smaws_Client_WorkMail.RegisterToWorkMail

Registers an existing and disabled user, group, or resource for WorkMail use by associating a mailbox and calendaring capabilities. It performs no change if the user, group, or resource is enabled and fails if the user, group, or resource is deleted. This operation results in the accumulation of costs. For more information, see Pricing. The equivalent console functionality for this operation is Enable.

Users can either be created by calling the CreateUser API operation or they can be synchronized from your directory. For more information, see DeregisterFromWorkMail.

val error_to_string : [ 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 | `EntityAlreadyRegisteredException of Types.entity_already_registered_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 ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.register_to_work_mail_request -> (Types.register_to_work_mail_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 | `EntityAlreadyRegisteredException of Types.entity_already_registered_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 ]) Stdlib.result