import type * as dms from "@distilled.cloud/aws/database-migration-service"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Endpoint } from "./Endpoint.ts"; /** * Runtime binding for `dms:DescribeSchemas`. * * Bind this operation to an {@link Endpoint} to list the schemas DMS * discovered at the endpoint's database (populated by a prior * `RefreshSchemas` run against a replication instance). Provide the * implementation with `Effect.provide(AWS.DMS.DescribeSchemasHttp)`. * ### Listing Discovered Schemas * **Example:** List Schemas at a Source Endpoint * ```typescript * // init — bind the operation to the endpoint * const describeSchemas = yield* AWS.DMS.DescribeSchemas(source); * * // runtime * const { Schemas } = yield* describeSchemas(); * ``` * * @binding */ export interface DescribeSchemas extends Binding.Service< DescribeSchemas, "AWS.DMS.DescribeSchemas", ( endpoint: Endpoint, ) => Effect.Effect< ( request?: Omit, ) => Effect.Effect > > {} export const DescribeSchemas = Binding.Service( "AWS.DMS.DescribeSchemas", );