| 1 | import * as Kinesis from "@distilled.cloud/aws/kinesis"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | export interface ListStreamsRequest extends Kinesis.ListStreamsInput {} |
| 6 | |
| 7 | /** |
| 8 | * Runtime binding for `kinesis:ListStreams`. |
| 9 | * |
| 10 | * An account-level operation (no stream argument) that enumerates all |
| 11 | * Kinesis streams in the region. Provide the implementation with |
| 12 | * `Effect.provide(AWS.Kinesis.ListStreamsHttp)`. |
| 13 | * ### Inspecting Streams |
| 14 | * **Example:** List Streams in the Region |
| 15 | * ```typescript |
| 16 | * // init — account-level binding takes no resource |
| 17 | * const listStreams = yield* AWS.Kinesis.ListStreams(); |
| 18 | * |
| 19 | * // runtime |
| 20 | * const result = yield* listStreams(); |
| 21 | * yield* Effect.log(result.StreamNames); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface ListStreams extends Binding.Service< |
| 27 | ListStreams, |
| 28 | "AWS.Kinesis.ListStreams", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request?: ListStreamsRequest, |
| 32 | ) => Effect.Effect<Kinesis.ListStreamsOutput, Kinesis.ListStreamsError> |
| 33 | > |
| 34 | > {} |
| 35 | export const ListStreams = Binding.Service<ListStreams>( |
| 36 | "AWS.Kinesis.ListStreams", |
| 37 | ); |