Skip to content

CancelQuery

Source: src/AWS/Timestream/CancelQuery.ts

Runtime binding for timestream-query:CancelQuery — cancel a running query by the QueryId a previous Query call reported.

timestream:CancelQuery does not support resource-level permissions, so this is an account-level binding invoked with no resource argument.

Provide Timestream.CancelQueryHttp on the Function to implement the binding.

// init — account-level binding, no resource argument
const cancelQuery = yield* Timestream.CancelQuery();
// runtime — cancel by the QueryId from a prior Query response
const result = yield* cancelQuery({ QueryId: queryId });
// result.CancellationMessage reports whether the query was still running