@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 37 lines 1.23 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:StopReplication`.
7 *
8 * Bind this operation (account-level) to stop a running DMS Serverless
9 * replication by replication-config ARN (the stopped replication keeps its
10 * provisioned capacity). The serverless counterpart of
11 * {@link StopReplicationTask}. Provide the implementation with
12 * `Effect.provide(AWS.DMS.StopReplicationHttp)`.
13 * ### Orchestrating Serverless Replications
14 * **Example:** Stop a Serverless Replication
15 * ```typescript
16 * // init — account-level, no target resource
17 * const stopReplication = yield* AWS.DMS.StopReplication();
18 *
19 * // runtime
20 * const { Replication } = yield* stopReplication({
21 * ReplicationConfigArn: configArn,
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface StopReplication extends Binding.Service<
28 StopReplication,
29 "AWS.DMS.StopReplication",
30 () => Effect.Effect<
31 (
32 request: dms.StopReplicationMessage,
33 ) => Effect.Effect<dms.StopReplicationResponse, dms.StopReplicationError>
34 >
35 > {}
36
37 export const StopReplication = Binding.Service<StopReplication>("AWS.DMS.StopReplication");