Skip to content

GetQueryExecution

Source: src/AWS/Athena/GetQueryExecution.ts

Runtime binding for athena:GetQueryExecution.

Reads the state, statistics, and configuration of a single query execution that ran in the bound workgroup. Provide the implementation with Effect.provide(AWS.Athena.GetQueryExecutionHttp).

// init — bind the operation to the workgroup
const getQueryExecution = yield* AWS.Athena.GetQueryExecution(workGroup);
// runtime
const res = yield* getQueryExecution({ QueryExecutionId: id });
console.log(res.QueryExecution?.Status?.State);