Skip to content

TestConnection

Source: src/AWS/DMS/TestConnection.ts

Runtime binding for dms:TestConnection.

Bind this operation to a (ReplicationInstance, Endpoint) pair to initiate a connectivity test from the instance to the endpoint’s database. The test runs asynchronously — poll the result with DescribeConnections. Provide the implementation with Effect.provide(AWS.DMS.TestConnectionHttp).

// init — bind the operation to the instance + endpoint
const testConnection = yield* AWS.DMS.TestConnection(instance, source);
// runtime
const { Connection } = yield* testConnection();
// Connection.Status === "testing" — poll DescribeConnections for the result