Skip to content

PutExternalEvaluation

Source: src/AWS/Config/PutExternalEvaluation.ts

Runtime binding for config:PutExternalEvaluation — push an externally computed compliance verdict for one resource into the bound ConfigRule (the rule must use the external evaluation mode); the rule name is injected automatically.

Provide Config.PutExternalEvaluationHttp on the hosting Lambda Function to satisfy the requirement.

// init — grants config:PutExternalEvaluation
const putExternalEvaluation = yield* AWS.Config.PutExternalEvaluation(rule);
// runtime
yield* putExternalEvaluation({
ExternalEvaluation: {
ComplianceResourceType: "AWS::S3::Bucket",
ComplianceResourceId: "my-bucket",
ComplianceType: "COMPLIANT",
OrderingTimestamp: new Date(),
},
});