Skip to content

CancelQuery

Source: src/AWS/CloudTrail/CancelQuery.ts

Runtime binding for cloudtrail:CancelQuery.

Cancels a running CloudTrail Lake query. Cancelling a query that already finished fails with the typed InactiveQueryException. Provide the implementation with Effect.provide(AWS.CloudTrail.CancelQueryHttp).

// init — bind the operation to the event data store
const cancelQuery = yield* AWS.CloudTrail.CancelQuery(store);
// runtime
const result = yield* cancelQuery({ QueryId: queryId });
console.log(result.QueryStatus); // CANCELLED