Skip to content

FindingAggregator

Source: src/AWS/SecurityHub/FindingAggregator.ts

The Security Hub cross-Region finding aggregator — replicates findings from linked Regions into the home Region. Only one aggregator can exist per account, so this is a singleton: adopting a pre-existing aggregator that Alchemy did not create requires --adopt.

Aggregate from All Regions

const aggregator = yield* AWS.SecurityHub.FindingAggregator("Aggregator", {
regionLinkingMode: "ALL_REGIONS",
});

Aggregate from Specific Regions

const aggregator = yield* AWS.SecurityHub.FindingAggregator("Aggregator", {
regionLinkingMode: "SPECIFIED_REGIONS",
regions: ["us-east-1", "eu-west-1"],
});