AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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 in the Security Hub User Guide.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateFindingAggregatorAsync.

Namespace: Amazon.SecurityHub
Assembly: AWSSDK.SecurityHub.dll
Version: 3.x.y.z

Syntax

C#
public abstract CreateFindingAggregatorResponse CreateFindingAggregator(
         CreateFindingAggregatorRequest request
)

Parameters

request
Type: Amazon.SecurityHub.Model.CreateFindingAggregatorRequest

Container for the necessary parameters to execute the CreateFindingAggregator service method.

Return Value


The response from the CreateFindingAggregator service method, as returned by SecurityHub.

Exceptions

ExceptionCondition
AccessDeniedException You don't have permission to perform the action specified in the request.
InternalException Internal server error.
InvalidAccessException The account doesn't have permission to perform this action.
InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.

Examples

The following example creates a finding aggregator. This is required to enable cross-Region aggregation.

To enable cross-Region aggregation


var client = new AmazonSecurityHubClient();
var response = client.CreateFindingAggregator(new CreateFindingAggregatorRequest 
{
    RegionLinkingMode = "SPECIFIED_REGIONS",
    Regions = new List<string> {
        "us-west-1",
        "us-west-2"
    }
});

string findingAggregationRegion = response.FindingAggregationRegion;
string findingAggregatorArn = response.FindingAggregatorArn;
string regionLinkingMode = response.RegionLinkingMode;
List<string> regions = response.Regions;

            

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also