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.
Reading Resource Configurations
Section titled “Reading Resource Configurations”// init — grants config:GetResourceConfigHistoryconst getResourceConfigHistory = yield* AWS.Config.GetResourceConfigHistory();
// runtimeconst result = yield* getResourceConfigHistory({ resourceType: "AWS::S3::Bucket", resourceId: "my-bucket", limit: 10,});console.log(result.configurationItems?.length);