SelectResourceConfig
Source:
src/AWS/Config/SelectResourceConfig.ts
Runtime binding for config:SelectResourceConfig — run a SQL SELECT
query (AWS Config advanced query) against the current configuration
state of recorded resources.
Provide Config.SelectResourceConfigHttp on the hosting Lambda Function to
satisfy the requirement.
Querying with SQL
Section titled “Querying with SQL”// init — grants config:SelectResourceConfigconst selectResourceConfig = yield* AWS.Config.SelectResourceConfig();
// runtimeconst result = yield* selectResourceConfig({ Expression: "SELECT resourceId WHERE resourceType = 'AWS::S3::Bucket'",});console.log(result.Results);