Skip to content

ListQueries

Source: src/AWS/CloudTrail/ListQueries.ts

Runtime binding for cloudtrail:ListQueries.

Lists the CloudTrail Lake queries that ran against the bound EventDataStore in the last seven days — the store is injected from the binding. Provide the implementation with Effect.provide(AWS.CloudTrail.ListQueriesHttp).

// init — bind the operation to the event data store
const listQueries = yield* AWS.CloudTrail.ListQueries(store);
// runtime
const result = yield* listQueries({ MaxResults: 10 });
console.log(result.Queries?.map((q) => q.QueryId));