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.
Creating Scheduled Queries
Section titled “Creating Scheduled Queries”// init — bind the operation to the scheduled queryconst executeScheduledQuery = yield* Timestream.ExecuteScheduledQuery(rollup);
// runtime — re-run the rollup as-of one hour agoyield* executeScheduledQuery({ InvocationTime: new Date(Date.now() - 60 * 60 * 1000),});