Struct aws_sdk_workmail::operation::test_availability_configuration::builders::TestAvailabilityConfigurationFluentBuilder
source · pub struct TestAvailabilityConfigurationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to TestAvailabilityConfiguration
.
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.
Implementations§
source§impl TestAvailabilityConfigurationFluentBuilder
impl TestAvailabilityConfigurationFluentBuilder
sourcepub async fn send(
self
) -> Result<TestAvailabilityConfigurationOutput, SdkError<TestAvailabilityConfigurationError>>
pub async fn send( self ) -> Result<TestAvailabilityConfigurationOutput, SdkError<TestAvailabilityConfigurationError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<TestAvailabilityConfiguration, AwsResponseRetryClassifier>, SdkError<TestAvailabilityConfigurationError>>
pub async fn customize( self ) -> Result<CustomizableOperation<TestAvailabilityConfiguration, AwsResponseRetryClassifier>, SdkError<TestAvailabilityConfigurationError>>
Consumes this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The WorkMail organization where the availability provider will be tested.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The WorkMail organization where the availability provider will be tested.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The domain to which the provider applies. If this field is provided, a stored availability provider associated to this domain name will be tested.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The domain to which the provider applies. If this field is provided, a stored availability provider associated to this domain name will be tested.
sourcepub fn ews_provider(self, input: EwsAvailabilityProvider) -> Self
pub fn ews_provider(self, input: EwsAvailabilityProvider) -> Self
Describes an EWS based availability provider. This is only used as input to the service.
sourcepub fn set_ews_provider(self, input: Option<EwsAvailabilityProvider>) -> Self
pub fn set_ews_provider(self, input: Option<EwsAvailabilityProvider>) -> Self
Describes an EWS based availability provider. This is only used as input to the service.
sourcepub fn lambda_provider(self, input: LambdaAvailabilityProvider) -> Self
pub fn lambda_provider(self, input: LambdaAvailabilityProvider) -> Self
Describes a Lambda based availability provider.
sourcepub fn set_lambda_provider(
self,
input: Option<LambdaAvailabilityProvider>
) -> Self
pub fn set_lambda_provider( self, input: Option<LambdaAvailabilityProvider> ) -> Self
Describes a Lambda based availability provider.
Trait Implementations§
source§impl Clone for TestAvailabilityConfigurationFluentBuilder
impl Clone for TestAvailabilityConfigurationFluentBuilder
source§fn clone(&self) -> TestAvailabilityConfigurationFluentBuilder
fn clone(&self) -> TestAvailabilityConfigurationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more