| 1 | import type * as eventbridge from "@distilled.cloud/aws/eventbridge"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | export interface ListReplaysRequest extends eventbridge.ListReplaysRequest {} |
| 6 | |
| 7 | /** |
| 8 | * Lists the event replays in the account (`events:ListReplays`). |
| 9 | * |
| 10 | * Bind this operation inside a function runtime to enumerate replays, |
| 11 | * optionally filtered by name prefix, state, or source archive. Provide the |
| 12 | * `ListReplaysHttp` layer on the Function to satisfy the binding. |
| 13 | * ### Replaying Events |
| 14 | * **Example:** List Running Replays |
| 15 | * ```typescript |
| 16 | * // init — bind the operation (provide AWS.EventBridge.ListReplaysHttp on the Function) |
| 17 | * const listReplays = yield* AWS.EventBridge.ListReplays(); |
| 18 | * |
| 19 | * // runtime — enumerate replays currently running |
| 20 | * const { Replays } = yield* listReplays({ State: "RUNNING" }); |
| 21 | * ``` |
| 22 | * |
| 23 | * @binding |
| 24 | */ |
| 25 | export interface ListReplays extends Binding.Service< |
| 26 | ListReplays, |
| 27 | "AWS.EventBridge.ListReplays", |
| 28 | () => Effect.Effect< |
| 29 | ( |
| 30 | request?: ListReplaysRequest, |
| 31 | ) => Effect.Effect< |
| 32 | eventbridge.ListReplaysResponse, |
| 33 | eventbridge.ListReplaysError |
| 34 | > |
| 35 | > |
| 36 | > {} |
| 37 | export const ListReplays = Binding.Service<ListReplays>( |
| 38 | "AWS.EventBridge.ListReplays", |
| 39 | ); |