GetComplianceDetailsByConfigRule
Source:
src/AWS/Config/GetComplianceDetailsByConfigRule.ts
Runtime binding for config:GetComplianceDetailsByConfigRule — read the
per-resource evaluation results (who was evaluated, when, and the
verdict) of the bound ConfigRule; the rule name is injected
automatically.
Provide Config.GetComplianceDetailsByConfigRuleHttp on the hosting
Lambda Function to satisfy the requirement.
Reading Compliance
Section titled “Reading Compliance”// init — grants config:GetComplianceDetailsByConfigRuleconst getComplianceDetails = yield* AWS.Config.GetComplianceDetailsByConfigRule(rule);
// runtimeconst result = yield* getComplianceDetails({ ComplianceTypes: ["NON_COMPLIANT"],});console.log(result.EvaluationResults);