Skip to content

BatchGetResourceConfig

Source: src/AWS/Config/BatchGetResourceConfig.ts

Runtime binding for config:BatchGetResourceConfig — fetch the current configuration item for up to 100 recorded resources identified by resource keys. Keys the recorder has not discovered come back in unprocessedResourceKeys.

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

// init — grants config:BatchGetResourceConfig
const batchGetResourceConfig = yield* AWS.Config.BatchGetResourceConfig();
// runtime
const result = yield* batchGetResourceConfig({
resourceKeys: [
{ resourceType: "AWS::S3::Bucket", resourceId: "my-bucket" },
],
});
console.log(result.baseConfigurationItems);