Skip to content

ListEvents

Source: src/AWS/DevOpsGuru/ListEvents.ts

Runtime binding for devops-guru:ListEvents.

Lists the infrastructure and deployment events (CloudTrail changes, deployments, schema changes) DevOps Guru evaluated around an insight — the “what changed?” of an incident. Provide the implementation with Effect.provide(AWS.DevOpsGuru.ListEventsHttp).

// init — account-level binding, no resource argument
const listEvents = yield* AWS.DevOpsGuru.ListEvents();
// runtime
const { Events } = yield* listEvents({
Filters: { InsightId: insightId, DataSource: "AWS_CLOUD_TRAIL" },
});
yield* Effect.log(`events: ${Events?.length}`);