Skip to content

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.

// init — grants config:GetComplianceDetailsByConfigRule
const getComplianceDetails =
yield* AWS.Config.GetComplianceDetailsByConfigRule(rule);
// runtime
const result = yield* getComplianceDetails({
ComplianceTypes: ["NON_COMPLIANT"],
});
console.log(result.EvaluationResults);