Skip to content

ListPreparedStatements

Source: src/AWS/Athena/ListPreparedStatements.ts

Runtime binding for athena:ListPreparedStatements.

Lists the prepared statements (name + last-modified time) in the bound workgroup — the workgroup name is injected automatically. Provide the implementation with Effect.provide(AWS.Athena.ListPreparedStatementsHttp).

// init — bind the operation to the workgroup
const listPreparedStatements =
yield* AWS.Athena.ListPreparedStatements(workGroup);
// runtime
const res = yield* listPreparedStatements({ MaxResults: 50 });
console.log(res.PreparedStatements?.map((s) => s.StatementName));