amazonka-workmail-2.0: Amazon WorkMail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkMail.TestAvailabilityConfiguration

Description

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.

Synopsis

Creating a Request

data TestAvailabilityConfiguration Source #

See: newTestAvailabilityConfiguration smart constructor.

Constructors

TestAvailabilityConfiguration' 

Fields

Instances

Instances details
ToJSON TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

ToHeaders TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

ToPath TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

ToQuery TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

AWSRequest TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

Generic TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

Associated Types

type Rep TestAvailabilityConfiguration :: Type -> Type #

Show TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

NFData TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

Eq TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

Hashable TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

type AWSResponse TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

type Rep TestAvailabilityConfiguration Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

type Rep TestAvailabilityConfiguration = D1 ('MetaData "TestAvailabilityConfiguration" "Amazonka.WorkMail.TestAvailabilityConfiguration" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "TestAvailabilityConfiguration'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "ewsProvider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EwsAvailabilityProvider))) :*: (S1 ('MetaSel ('Just "lambdaProvider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LambdaAvailabilityProvider)) :*: S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newTestAvailabilityConfiguration Source #

Create a value of TestAvailabilityConfiguration with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

TestAvailabilityConfiguration, testAvailabilityConfiguration_domainName - The domain to which the provider applies. If this field is provided, a stored availability provider associated to this domain name will be tested.

TestAvailabilityConfiguration, testAvailabilityConfiguration_ewsProvider - Undocumented member.

TestAvailabilityConfiguration, testAvailabilityConfiguration_lambdaProvider - Undocumented member.

TestAvailabilityConfiguration, testAvailabilityConfiguration_organizationId - The WorkMail organization where the availability provider will be tested.

Request Lenses

testAvailabilityConfiguration_domainName :: Lens' TestAvailabilityConfiguration (Maybe Text) Source #

The domain to which the provider applies. If this field is provided, a stored availability provider associated to this domain name will be tested.

testAvailabilityConfiguration_organizationId :: Lens' TestAvailabilityConfiguration Text Source #

The WorkMail organization where the availability provider will be tested.

Destructuring the Response

data TestAvailabilityConfigurationResponse Source #

Constructors

TestAvailabilityConfigurationResponse' 

Fields

Instances

Instances details
Generic TestAvailabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

Read TestAvailabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

Show TestAvailabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

NFData TestAvailabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

Eq TestAvailabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

type Rep TestAvailabilityConfigurationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.TestAvailabilityConfiguration

type Rep TestAvailabilityConfigurationResponse = D1 ('MetaData "TestAvailabilityConfigurationResponse" "Amazonka.WorkMail.TestAvailabilityConfiguration" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "TestAvailabilityConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failureReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "testPassed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newTestAvailabilityConfigurationResponse Source #

Create a value of TestAvailabilityConfigurationResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:failureReason:TestAvailabilityConfigurationResponse', testAvailabilityConfigurationResponse_failureReason - String containing the reason for a failed test if TestPassed is false.

$sel:testPassed:TestAvailabilityConfigurationResponse', testAvailabilityConfigurationResponse_testPassed - Boolean indicating whether the test passed or failed.

$sel:httpStatus:TestAvailabilityConfigurationResponse', testAvailabilityConfigurationResponse_httpStatus - The response's http status code.

Response Lenses

testAvailabilityConfigurationResponse_failureReason :: Lens' TestAvailabilityConfigurationResponse (Maybe Text) Source #

String containing the reason for a failed test if TestPassed is false.