1import type * as mm from "@distilled.cloud/aws/mailmanager";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Archive } from "./Archive.ts";
5
6/**
7 * Runtime binding for `ses:StopArchiveSearch`.
8 *
9 * Cancels a queued or running archive search (by `SearchId`). IAM
10 * access is granted on the bound archive's ARN. Provide the implementation with
11 * `Effect.provide(AWS.MailManager.StopArchiveSearchHttp)`.
12 * ### Searching the Archive
13 * **Example:** Cancel a Search
14 * ```typescript
15 * const stopSearch = yield* MailManager.StopArchiveSearch(archive);
16 *
17 * // runtime
18 * yield* stopSearch({ SearchId });
19 * ```
20 *
21 * @binding
22 */
23export interface StopArchiveSearch extends Binding.Service<
24 StopArchiveSearch,
25 "AWS.MailManager.StopArchiveSearch",
26 (
27 archive: Archive,
28 ) => Effect.Effect<
29 (
30 request: mm.StopArchiveSearchRequest,
31 ) => Effect.Effect<mm.StopArchiveSearchResponse, mm.StopArchiveSearchError>
32 >
33> {}
34export const StopArchiveSearch = Binding.Service<StopArchiveSearch>(
35 "AWS.MailManager.StopArchiveSearch",
36);