EnableInsightRules
Source:
src/AWS/CloudWatch/EnableInsightRules.ts
Runtime binding for cloudwatch:EnableInsightRules — resume data
collection for the bound Contributor Insights rules after they were
paused with DisableInsightRules. Bind it to one or more
InsightRule resources; the rule names are injected automatically.
Provide CloudWatch.EnableInsightRulesHttp on the hosting Lambda
Function to satisfy the requirement.
Managing Insight Rules
Section titled “Managing Insight Rules”// init — grants cloudwatch:EnableInsightRules on the ruleconst enableInsightRules = yield* AWS.CloudWatch.EnableInsightRules(rule);
// runtimeconst result = yield* enableInsightRules();const failures = result.Failures ?? []; // empty on success