DescribeInsightRules
Source:
src/AWS/CloudWatch/DescribeInsightRules.ts
Runtime binding for cloudwatch:DescribeInsightRules — list the
Contributor Insights rules in the account/region.
Provide CloudWatch.DescribeInsightRulesHttp on the hosting Lambda
Function to satisfy the requirement.
Reading Insight Rules
Section titled “Reading Insight Rules”// init — grants cloudwatch:DescribeInsightRulesconst describeInsightRules = yield* AWS.CloudWatch.DescribeInsightRules();
// runtimeconst result = yield* describeInsightRules();const names = (result.InsightRules ?? []).map((rule) => rule.Name);