Skip to content

ListInsights

Source: src/AWS/EKS/ListInsights.ts

Runtime binding for eks:ListInsights.

Enumerates EKS upgrade/configuration insights for the bound cluster — findings that block or degrade a Kubernetes version upgrade. The cluster clusterName is injected from the bound Cluster and eks:ListInsights is granted on the cluster’s ARN. Provide the implementation with Effect.provide(AWS.EKS.ListInsightsHttp).

// init
const listInsights = yield* AWS.EKS.ListInsights(cluster);
// runtime
const { insights } = yield* listInsights({
filter: { statuses: ["ERROR", "WARNING"] },
});