createFindingAggregator
abstract suspend fun createFindingAggregator(input: CreateFindingAggregatorRequest): CreateFindingAggregatorResponse
Used to enable finding aggregation. Must be called from the aggregation Region.
For more details about cross-Region replication, see Configuring finding aggregation in the Security Hub User Guide.
Samples
fun main() {
//sampleStart
// The following example creates a finding aggregator. This is required to enable cross Region
// aggregation.
val resp = securityHubClient.createFindingAggregator {
regionLinkingMode = "SPECIFIED_REGIONS"
regions = listOf<String>(
"us-west-1",
"us-west-2"
)
}
//sampleEnd
}