import type * as athena from "@distilled.cloud/aws/athena";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { WorkGroup } from "./WorkGroup.ts";
/**
* Runtime binding for `athena:ListQueryExecutions`.
*
* Lists recent query execution IDs in the bound workgroup (newest first) —
* the workgroup name is injected automatically. Provide the implementation
* with `Effect.provide(AWS.Athena.ListQueryExecutionsHttp)`.
* ### Inspecting Query Executions
* **Example:** List Recent Executions in the Workgroup
* ```typescript
* // init — bind the operation to the workgroup
* const listQueryExecutions = yield* AWS.Athena.ListQueryExecutions(workGroup);
*
* // runtime
* const res = yield* listQueryExecutions({ MaxResults: 10 });
* console.log(res.QueryExecutionIds);
* ```
*
* @binding
*/
export interface ListQueryExecutions extends Binding.Service<
ListQueryExecutions,
"AWS.Athena.ListQueryExecutions",
(
workGroup: WorkGroup,
) => Effect.Effect<
(
request: Omit<athena.ListQueryExecutionsInput, "WorkGroup">,
) => Effect.Effect<athena.ListQueryExecutionsOutput, athena.ListQueryExecutionsError>
>
> {}
export const ListQueryExecutions = Binding.Service<ListQueryExecutions>(
"AWS.Athena.ListQueryExecutions",
);