Skip to content

GetResourceConfigHistory

Source: src/AWS/Config/GetResourceConfigHistory.ts

Runtime binding for config:GetResourceConfigHistory — read the list of configuration items (change history) AWS Config recorded for a resource, newest first.

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

// init — grants config:GetResourceConfigHistory
const getResourceConfigHistory = yield* AWS.Config.GetResourceConfigHistory();
// runtime
const result = yield* getResourceConfigHistory({
resourceType: "AWS::S3::Bucket",
resourceId: "my-bucket",
limit: 10,
});
console.log(result.configurationItems?.length);