Skip to content

ListRecommendations

Source: src/AWS/DevOpsGuru/ListRecommendations.ts

Runtime binding for devops-guru:ListRecommendations.

Lists DevOps Guru’s remediation recommendations for an insight — the ready-made content of an incident notification or runbook comment. Provide the implementation with Effect.provide(AWS.DevOpsGuru.ListRecommendationsHttp).

// init — account-level binding, no resource argument
const listRecommendations = yield* AWS.DevOpsGuru.ListRecommendations();
// runtime
const { Recommendations } = yield* listRecommendations({
InsightId: insightId,
});
for (const rec of Recommendations ?? []) {
yield* Effect.log(`${rec.Name}: ${rec.Description}`);
}