Skip to main content

finding_aggregators

Creates, updates, deletes or gets a finding_aggregator resource or lists finding_aggregators in a region

Overview

Namefinding_aggregators
TypeResource
DescriptionThe AWS::SecurityHub::FindingAggregator resource represents the AWS Security Hub Finding Aggregator in your account. One finding aggregator resource is created for each account in non opt-in region in which you configure region linking mode.
Idaws.securityhub.finding_aggregators

Fields

NameDatatypeDescription
finding_aggregator_arnstringThe ARN of the FindingAggregator being created and assigned as the unique identifier
region_linking_modestringIndicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions
regionsarrayThe list of excluded Regions or included Regions
finding_aggregation_regionstringThe aggregation Region of the FindingAggregator
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTRegionLinkingMode, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all finding_aggregators in a region.

SELECT
region,
finding_aggregator_arn,
region_linking_mode,
regions,
finding_aggregation_region
FROM aws.securityhub.finding_aggregators
WHERE region = 'us-east-1';

Gets all properties from an individual finding_aggregator.

SELECT
region,
finding_aggregator_arn,
region_linking_mode,
regions,
finding_aggregation_region
FROM aws.securityhub.finding_aggregators
WHERE region = 'us-east-1' AND data__Identifier = '<FindingAggregatorArn>';

INSERT example

Use the following StackQL query and manifest file to create a new finding_aggregator resource, using stack-deploy.

/*+ create */
INSERT INTO aws.securityhub.finding_aggregators (
RegionLinkingMode,
region
)
SELECT
'{{ RegionLinkingMode }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.securityhub.finding_aggregators
WHERE data__Identifier = '<FindingAggregatorArn>'
AND region = 'us-east-1';

Permissions

To operate on the finding_aggregators resource, the following permissions are required:

Create

securityhub:CreateFindingAggregator

Read

securityhub:GetFindingAggregator

Update

securityhub:UpdateFindingAggregator

Delete

securityhub:DeleteFindingAggregator

List

securityhub:ListFindingAggregators