Skip to main content

finding_aggregators

Creates, updates, deletes, gets or lists a finding_aggregators resource.

Overview

Namefinding_aggregators
TypeResource
Idaws.securityhub.finding_aggregators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
finding_aggregation_regionstringThe home Region. Findings generated in linked Regions are replicated and sent to the home Region. (pattern: <code>.\S.</code>)
finding_aggregator_arnstringThe ARN of the finding aggregator. (pattern: <code>.\S.</code>)
region_linking_modestringIndicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions. (pattern: <code>.\S.</code>)
regionsarrayThe list of excluded Regions or included Regions.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_finding_aggregatorselectfinding_aggregator_arn, regionThe aggregation Region is now called the home Region. Returns the current configuration in the calling account for cross-Region aggregation. A finding aggregator is a resource that establishes the home Region and any linked Regions.
list_finding_aggregatorsselectregionNextToken, MaxResultsIf cross-Region aggregation is enabled, then ListFindingAggregators returns the Amazon Resource Name (ARN) of the finding aggregator. You can run this operation from any Amazon Web Services Region.
create_finding_aggregatorinsertregion, RegionLinkingModeThe aggregation Region is now called the home Region. Used to enable cross-Region aggregation. This operation can be invoked from the home Region only. For information about how cross-Region aggregation works, see Understanding cross-Region aggregation in Security Hub CSPM in the Security Hub CSPM User Guide.
update_finding_aggregatorupdateregion, FindingAggregatorArn, RegionLinkingModeThe aggregation Region is now called the home Region. Updates cross-Region aggregation settings. You can use this operation to update the Region linking mode and the list of included or excluded Amazon Web Services Regions. However, you can't use this operation to change the home Region. You can invoke this operation from the current home Region only.
delete_finding_aggregatordeletefinding_aggregator_arn, regionThe aggregation Region is now called the home Region. Deletes a finding aggregator. When you delete the finding aggregator, you stop cross-Region aggregation. Finding replication stops occurring from the linked Regions to the home Region. When you stop cross-Region aggregation, findings that were already replicated and sent to the home Region are still visible from the home Region. However, new findings and finding updates are no longer replicated and sent to the home Region.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
finding_aggregator_arnstringThe ARN of the finding aggregator to delete. To obtain the ARN, use ListFindingAggregators.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of results to return. This operation currently only returns a single result.
NextTokenstringThe token returned with the previous set of results. Identifies the next set of results to return.

SELECT examples

The aggregation Region is now called the home Region. Returns the current configuration in the calling account for cross-Region aggregation. A finding aggregator is a resource that establishes the home Region and any linked Regions.

SELECT
finding_aggregation_region,
finding_aggregator_arn,
region_linking_mode,
regions
FROM aws.securityhub.finding_aggregators
WHERE finding_aggregator_arn = '{{ finding_aggregator_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

The aggregation Region is now called the home Region. Used to enable cross-Region aggregation. This operation can be invoked from the home Region only. For information about how cross-Region aggregation works, see Understanding cross-Region aggregation in Security Hub CSPM in the Security Hub CSPM User Guide.

INSERT INTO aws.securityhub.finding_aggregators (
RegionLinkingMode,
Regions,
region
)
SELECT
'{{ RegionLinkingMode }}' /* required */,
'{{ Regions }}',
'{{ region }}'
RETURNING
finding_aggregation_region,
finding_aggregator_arn,
region_linking_mode,
regions
;

UPDATE examples

The aggregation Region is now called the home Region. Updates cross-Region aggregation settings. You can use this operation to update the Region linking mode and the list of included or excluded Amazon Web Services Regions. However, you can't use this operation to change the home Region. You can invoke this operation from the current home Region only.

UPDATE aws.securityhub.finding_aggregators
SET
FindingAggregatorArn = '{{ FindingAggregatorArn }}',
RegionLinkingMode = '{{ RegionLinkingMode }}',
Regions = '{{ Regions }}'
WHERE
region = '{{ region }}' --required
AND FindingAggregatorArn = '{{ FindingAggregatorArn }}' --required
AND RegionLinkingMode = '{{ RegionLinkingMode }}' --required
RETURNING
finding_aggregation_region,
finding_aggregator_arn,
region_linking_mode,
regions;

DELETE examples

The aggregation Region is now called the home Region. Deletes a finding aggregator. When you delete the finding aggregator, you stop cross-Region aggregation. Finding replication stops occurring from the linked Regions to the home Region. When you stop cross-Region aggregation, findings that were already replicated and sent to the home Region are still visible from the home Region. However, new findings and finding updates are no longer replicated and sent to the home Region.

DELETE FROM aws.securityhub.finding_aggregators
WHERE finding_aggregator_arn = '{{ finding_aggregator_arn }}' --required
AND region = '{{ region }}' --required
;