Module Smaws_Client_WorkMail.TestAvailabilityConfiguration

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

Performs a test on an availability provider to ensure that access is allowed. For EWS, it verifies the provided credentials can be used to successfully log in. For Lambda, it verifies that the Lambda function can be invoked and that the resource access policy was configured to deny anonymous access. An anonymous invocation is one done without providing either a SourceArn or SourceAccount header.

The request must contain either one provider definition (EwsProvider or LambdaProvider) or the DomainName parameter. If the DomainName parameter is provided, the configuration stored under the DomainName will be tested.