sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ SSMContacts/ ListPagesByEngagement.ts

import type * as ssm from "@distilled.cloud/aws/ssm-contacts";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for `ssm-contacts:ListPagesByEngagement`.
 *
 * List the pages an engagement produced — one page per engaged contact
 * and escalation stage.
 * Provide the implementation with
 * `Effect.provide(AWS.SSMContacts.ListPagesByEngagementHttp)`.
 * ### Working with Pages
 * **Example:** List an Engagement's Pages
 * ```typescript
 * const listPagesByEngagement = yield* AWS.SSMContacts.ListPagesByEngagement();
 *
 * const { Pages } = yield* listPagesByEngagement({ EngagementId: engagementArn });
 * ```
 *
 * @binding
 */
export interface ListPagesByEngagement extends Binding.Service<
  ListPagesByEngagement,
  "AWS.SSMContacts.ListPagesByEngagement",
  () => Effect.Effect<
    (
      request: ssm.ListPagesByEngagementRequest,
    ) => Effect.Effect<ssm.ListPagesByEngagementResult, ssm.ListPagesByEngagementError>
  >
> {}
export const ListPagesByEngagement = Binding.Service<ListPagesByEngagement>(
  "AWS.SSMContacts.ListPagesByEngagement",
);