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

main
ts 38 lines 1.24 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:StopReplicationTask`.
7 *
8 * Bind this operation (account-level) to stop a running replication task by
9 * ARN — the other half of scheduled CDC windows and cost-control automation
10 * (pair with {@link StartReplicationTask}). Provide the implementation with
11 * `Effect.provide(AWS.DMS.StopReplicationTaskHttp)`.
12 * ### Orchestrating Replication Tasks
13 * **Example:** Stop a Running Task
14 * ```typescript
15 * // init — account-level, no target resource
16 * const stopReplicationTask = yield* AWS.DMS.StopReplicationTask();
17 *
18 * // runtime
19 * const { ReplicationTask } = yield* stopReplicationTask({
20 * ReplicationTaskArn: taskArn,
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface StopReplicationTask extends Binding.Service<
27 StopReplicationTask,
28 "AWS.DMS.StopReplicationTask",
29 () => Effect.Effect<
30 (
31 request: dms.StopReplicationTaskMessage,
32 ) => Effect.Effect<dms.StopReplicationTaskResponse, dms.StopReplicationTaskError>
33 >
34 > {}
35
36 export const StopReplicationTask = Binding.Service<StopReplicationTask>(
37 "AWS.DMS.StopReplicationTask",
38 );