Smaws_Client_WorkMail.DeregisterMailDomainRemoves a domain from WorkMail, stops email routing to WorkMail, and removes the authorization allowing WorkMail use. SES keeps the domain because other applications may use it. You must first remove any email address used by WorkMail entities before you remove the domain.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidCustomSesConfigurationException of
Types.invalid_custom_ses_configuration_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `MailDomainInUseException of Types.mail_domain_in_use_exception
| `OrganizationNotFoundException of Types.organization_not_found_exception
| `OrganizationStateException of Types.organization_state_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.deregister_mail_domain_request ->
(Types.deregister_mail_domain_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidCustomSesConfigurationException of
Types.invalid_custom_ses_configuration_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `MailDomainInUseException of Types.mail_domain_in_use_exception
| `OrganizationNotFoundException of Types.organization_not_found_exception
| `OrganizationStateException of Types.organization_state_exception ])
Stdlib.result