1import type * as qbusiness from "@distilled.cloud/aws/qbusiness";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Application } from "./Application.ts";
5
6/**
7 * `DeleteAttachment` request with `applicationId` injected from the bound application.
8 */
9export interface DeleteAttachmentRequest extends Omit<
10 qbusiness.DeleteAttachmentRequest,
11 "applicationId"
12> {}
13
14/**
15 * Runtime binding for the `DeleteAttachment` operation (IAM action
16 * `qbusiness:DeleteAttachment`), scoped to one {@link Application}.
17 *
18 * Deletes an attachment associated with a chat conversation.
19 * Provide the implementation with
20 * `Effect.provide(AWS.QBusiness.DeleteAttachmentHttp)`.
21 *
22 * ### Conversations
23 * **Example:** Delete an Attachment
24 * ```typescript
25 * const deleteAttachment = yield* AWS.QBusiness.DeleteAttachment(app);
26 *
27 * yield* deleteAttachment({ conversationId, attachmentId });
28 * ```
29 *
30 * @binding
31 */
32export interface DeleteAttachment extends Binding.Service<
33 DeleteAttachment,
34 "AWS.QBusiness.DeleteAttachment",
35 (
36 application: Application,
37 ) => Effect.Effect<
38 (
39 request: DeleteAttachmentRequest,
40 ) => Effect.Effect<
41 qbusiness.DeleteAttachmentResponse,
42 qbusiness.DeleteAttachmentError
43 >
44 >
45> {}
46export const DeleteAttachment = Binding.Service<DeleteAttachment>(
47 "AWS.QBusiness.DeleteAttachment",
48);