Skip to content

GetQueryResults

Source: src/AWS/InternetMonitor/GetQueryResults.ts

Runtime binding for internetmonitor:GetQueryResults — fetch the result rows of a SUCCEEDED query on the bound Monitor; the monitor name is injected automatically.

Provide InternetMonitor.GetQueryResultsHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants internetmonitor:GetQueryResults on the monitor
const getQueryResults = yield* AWS.InternetMonitor.GetQueryResults(monitor);
// runtime
const { Fields, Data } = yield* getQueryResults({ QueryId: queryId });