updateFindingAggregator

Updates the finding aggregation configuration. Used to update the Region linking mode and the list of included or excluded Regions. You cannot use UpdateFindingAggregator to change the aggregation Region.

You must run UpdateFindingAggregator from the current aggregation Region.

Samples


fun main() { 
   //sampleStart 
   // The following example updates the cross Region aggregation configuration. You use this operation to
// change the list of linked Regions and the treatment of new Regions. However, you cannot use this operation
// to change the aggregation Region.
val resp = securityHubClient.updateFindingAggregator {
    findingAggregatorArn = "arn:aws:securityhub:us-east-1:123456789012:finding-aggregator/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
    regionLinkingMode = "SPECIFIED_REGIONS"
    regions = listOf<String>(
        "us-west-1",
        "us-west-2"
    )
} 
   //sampleEnd
}