| 1 | import type * as ssm from "@distilled.cloud/aws/ssm-contacts"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `ssm-contacts:ListPageReceipts`. |
| 7 | * |
| 8 | * List the delivery/read receipts of a page — one receipt per contact |
| 9 | * channel the page was sent over. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SSMContacts.ListPageReceiptsHttp)`. |
| 12 | * ### Working with Pages |
| 13 | * **Example:** Check Whether a Page Was Read |
| 14 | * ```typescript |
| 15 | * const listPageReceipts = yield* AWS.SSMContacts.ListPageReceipts(); |
| 16 | * |
| 17 | * const { Receipts } = yield* listPageReceipts({ PageId: pageArn }); |
| 18 | * // receipts with ReceiptType "READ" mean the page was acknowledged |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface ListPageReceipts extends Binding.Service< |
| 24 | ListPageReceipts, |
| 25 | "AWS.SSMContacts.ListPageReceipts", |
| 26 | () => Effect.Effect< |
| 27 | ( |
| 28 | request: ssm.ListPageReceiptsRequest, |
| 29 | ) => Effect.Effect<ssm.ListPageReceiptsResult, ssm.ListPageReceiptsError> |
| 30 | > |
| 31 | > {} |
| 32 | export const ListPageReceipts = Binding.Service<ListPageReceipts>( |
| 33 | "AWS.SSMContacts.ListPageReceipts", |
| 34 | ); |