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

main
ts 36 lines 1.19 KB
Raw
1 import type * as mm from "@distilled.cloud/aws/mailmanager";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { AddressList } from "./AddressList.ts";
5
6 /**
7 * Runtime binding for `ses:StopAddressListImportJob`.
8 *
9 * Stops an in-flight import job. Addresses already imported remain on
10 * the list. IAM access is granted on the bound list's ARN. Provide the implementation with
11 * `Effect.provide(AWS.MailManager.StopAddressListImportJobHttp)`.
12 * ### Bulk Importing Members
13 * **Example:** Stop an Import Job
14 * ```typescript
15 * const stopImportJob = yield* MailManager.StopAddressListImportJob(blockList);
16 *
17 * // runtime
18 * yield* stopImportJob({ JobId });
19 * ```
20 *
21 * @binding
22 */
23 export interface StopAddressListImportJob extends Binding.Service<
24 StopAddressListImportJob,
25 "AWS.MailManager.StopAddressListImportJob",
26 (
27 list: AddressList,
28 ) => Effect.Effect<
29 (
30 request: mm.StopAddressListImportJobRequest,
31 ) => Effect.Effect<mm.StopAddressListImportJobResponse, mm.StopAddressListImportJobError>
32 >
33 > {}
34 export const StopAddressListImportJob = Binding.Service<StopAddressListImportJob>(
35 "AWS.MailManager.StopAddressListImportJob",
36 );