Skip to content

GetQueryResults

Source: src/AWS/CloudTrail/GetQueryResults.ts

Runtime binding for cloudtrail:GetQueryResults.

Reads one page of a finished CloudTrail Lake query’s result rows — use NextToken/MaxQueryResults to paginate large results. Provide the implementation with Effect.provide(AWS.CloudTrail.GetQueryResultsHttp).

// init — bind the operation to the event data store
const getQueryResults = yield* AWS.CloudTrail.GetQueryResults(store);
// runtime
const page = yield* getQueryResults({ QueryId: queryId });
console.log(page.QueryResultRows?.length);