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

main
ts 36 lines 1.22 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:StartAddressListImportJob`.
8 *
9 * Starts a created import job once its address data has been uploaded
10 * to the pre-signed URL. IAM access is granted on the bound list's ARN. Provide the implementation with
11 * `Effect.provide(AWS.MailManager.StartAddressListImportJobHttp)`.
12 * ### Bulk Importing Members
13 * **Example:** Start an Import Job
14 * ```typescript
15 * const startImportJob = yield* MailManager.StartAddressListImportJob(blockList);
16 *
17 * // runtime
18 * yield* startImportJob({ JobId });
19 * ```
20 *
21 * @binding
22 */
23 export interface StartAddressListImportJob extends Binding.Service<
24 StartAddressListImportJob,
25 "AWS.MailManager.StartAddressListImportJob",
26 (
27 list: AddressList,
28 ) => Effect.Effect<
29 (
30 request: mm.StartAddressListImportJobRequest,
31 ) => Effect.Effect<mm.StartAddressListImportJobResponse, mm.StartAddressListImportJobError>
32 >
33 > {}
34 export const StartAddressListImportJob = Binding.Service<StartAddressListImportJob>(
35 "AWS.MailManager.StartAddressListImportJob",
36 );