@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 38 lines 1.29 KB
Raw
1 import type * as dms from "@distilled.cloud/aws/database-migration-service";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `dms:StartReplication`.
7 *
8 * Bind this operation (account-level) to start a DMS Serverless replication
9 * for a replication config by ARN — DMS provisions the required capacity
10 * and begins replicating. The serverless counterpart of
11 * {@link StartReplicationTask}. Provide the implementation with
12 * `Effect.provide(AWS.DMS.StartReplicationHttp)`.
13 * ### Orchestrating Serverless Replications
14 * **Example:** Start a Serverless Replication
15 * ```typescript
16 * // init — account-level, no target resource
17 * const startReplication = yield* AWS.DMS.StartReplication();
18 *
19 * // runtime
20 * const { Replication } = yield* startReplication({
21 * ReplicationConfigArn: configArn,
22 * StartReplicationType: "start-replication",
23 * });
24 * ```
25 *
26 * @binding
27 */
28 export interface StartReplication extends Binding.Service<
29 StartReplication,
30 "AWS.DMS.StartReplication",
31 () => Effect.Effect<
32 (
33 request: dms.StartReplicationMessage,
34 ) => Effect.Effect<dms.StartReplicationResponse, dms.StartReplicationError>
35 >
36 > {}
37
38 export const StartReplication = Binding.Service<StartReplication>("AWS.DMS.StartReplication");