Skip to content

ExecuteScheduledQuery

Source: src/AWS/Timestream/ExecuteScheduledQuery.ts

Runtime binding for timestream-query:ExecuteScheduledQuery — manually run a ScheduledQuery for a given invocation time (e.g. to backfill a window the schedule missed).

Bind the operation to the scheduled query to get a callable with ScheduledQueryArn injected automatically.

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

// init — bind the operation to the scheduled query
const executeScheduledQuery = yield* Timestream.ExecuteScheduledQuery(rollup);
// runtime — re-run the rollup as-of one hour ago
yield* executeScheduledQuery({
InvocationTime: new Date(Date.now() - 60 * 60 * 1000),
});