| 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:DescribePage`. |
| 7 | * |
| 8 | * Read the details of a page — the engagement it belongs to, its subject |
| 9 | * and content, and delivery/read timestamps. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.SSMContacts.DescribePageHttp)`. |
| 12 | * ### Working with Pages |
| 13 | * **Example:** Inspect a Page |
| 14 | * ```typescript |
| 15 | * const describePage = yield* AWS.SSMContacts.DescribePage(); |
| 16 | * |
| 17 | * const page = yield* describePage({ PageId: pageArn }); |
| 18 | * // page.SentTime, page.ReadTime, page.DeliveryTime, ... |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface DescribePage extends Binding.Service< |
| 24 | DescribePage, |
| 25 | "AWS.SSMContacts.DescribePage", |
| 26 | () => Effect.Effect< |
| 27 | ( |
| 28 | request: ssm.DescribePageRequest, |
| 29 | ) => Effect.Effect<ssm.DescribePageResult, ssm.DescribePageError> |
| 30 | > |
| 31 | > {} |
| 32 | export const DescribePage = Binding.Service<DescribePage>( |
| 33 | "AWS.SSMContacts.DescribePage", |
| 34 | ); |