ListInsightsData
Source:
src/AWS/CloudTrail/ListInsightsData.ts
Runtime binding for cloudtrail:ListInsightsData.
An account-level operation (no resource argument) that reads the raw
Insights events recorded for an insight source — empty when Insights has
recorded no anomalies. Rate-limited by AWS to two requests per second,
per account, per Region. Provide the implementation with
Effect.provide(AWS.CloudTrail.ListInsightsDataHttp).
Reading Insights Events
Section titled “Reading Insights Events”// init — account-level binding takes no resourceconst listInsightsData = yield* AWS.CloudTrail.ListInsightsData();
// runtimeconst result = yield* listInsightsData({ InsightSource: "s3.amazonaws.com", DataType: "InsightsEvents", MaxResults: 10,});console.log((result.Events ?? []).map((e) => e.EventName));