Module Smaws_Client_WorkMail.AssumeImpersonationRole

Assumes an impersonation role for the given WorkMail organization. This method returns an authentication token you can use to make impersonated calls.

val request : Smaws_Lib.Context.t -> Types.assume_impersonation_role_request -> (Types.assume_impersonation_role_response, [> Smaws_Lib.Protocols.AwsJson.error | `InvalidParameterException of Types.invalid_parameter_exception | `OrganizationNotFoundException of Types.organization_not_found_exception | `OrganizationStateException of Types.organization_state_exception | `ResourceNotFoundException of Types.resource_not_found_exception ]) Stdlib.result