| 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:AcceptPage`. |
| 7 | * |
| 8 | * Acknowledge a page with the accept code Incident Manager delivered to |
| 9 | * the contact's channel — `READ` marks it seen, `DELIVERED` confirms |
| 10 | * receipt. Acknowledging stops further escalation stages. |
| 11 | * Provide the implementation with |
| 12 | * `Effect.provide(AWS.SSMContacts.AcceptPageHttp)`. |
| 13 | * ### Working with Pages |
| 14 | * **Example:** Acknowledge a Page |
| 15 | * ```typescript |
| 16 | * const acceptPage = yield* AWS.SSMContacts.AcceptPage(); |
| 17 | * |
| 18 | * yield* acceptPage({ |
| 19 | * PageId: pageArn, |
| 20 | * AcceptType: "READ", |
| 21 | * AcceptCode: "425440", |
| 22 | * }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface AcceptPage extends Binding.Service< |
| 28 | AcceptPage, |
| 29 | "AWS.SSMContacts.AcceptPage", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request: ssm.AcceptPageRequest, |
| 33 | ) => Effect.Effect<ssm.AcceptPageResult, ssm.AcceptPageError> |
| 34 | > |
| 35 | > {} |
| 36 | export const AcceptPage = Binding.Service<AcceptPage>( |
| 37 | "AWS.SSMContacts.AcceptPage", |
| 38 | ); |