Class CfnFindingAggregatorProps.Builder

java.lang.Object
software.amazon.awscdk.services.securityhub.CfnFindingAggregatorProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFindingAggregatorProps>
Enclosing interface:
CfnFindingAggregatorProps

@Stability(Stable) public static final class CfnFindingAggregatorProps.Builder extends Object implements software.amazon.jsii.Builder<CfnFindingAggregatorProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • regionLinkingMode

      @Stability(Stable) public CfnFindingAggregatorProps.Builder regionLinkingMode(String regionLinkingMode)
      Parameters:
      regionLinkingMode - Indicates whether to aggregate findings from all of the available Regions in the current partition. This parameter is required. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.

      The selected option also determines how to use the Regions provided in the Regions list.

      The options are as follows:

      • ALL_REGIONS - Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.
      • ALL_REGIONS_EXCEPT_SPECIFIED - Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in the Regions parameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them.
      • SPECIFIED_REGIONS - Indicates to aggregate findings only from the Regions listed in the Regions parameter. Security Hub does not automatically aggregate findings from new Regions.
      Returns:
      this
    • regions

      @Stability(Stable) public CfnFindingAggregatorProps.Builder regions(List<String> regions)
      Parameters:
      regions - If RegionLinkingMode is ALL_REGIONS_EXCEPT_SPECIFIED , then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region. If RegionLinkingMode is SPECIFIED_REGIONS , then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.
      Returns:
      this
    • build

      @Stability(Stable) public CfnFindingAggregatorProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnFindingAggregatorProps>
      Returns:
      a new instance of CfnFindingAggregatorProps
      Throws:
      NullPointerException - if any required attribute was not provided