Class CfnHub.Builder

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

@Stability(Stable) public static final class CfnHub.Builder extends Object implements software.amazon.jsii.Builder<CfnHub>
A fluent builder for CfnHub.
  • Method Details

    • create

      @Stability(Stable) public static CfnHub.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      Returns:
      a new instance of CfnHub.Builder.
    • autoEnableControls

      @Stability(Stable) public CfnHub.Builder autoEnableControls(Boolean autoEnableControls)
      Whether to automatically enable new controls when they are added to standards that are enabled.

      By default, this is set to true , and new controls are enabled automatically. To not automatically enable new controls, set this to false .

      Parameters:
      autoEnableControls - Whether to automatically enable new controls when they are added to standards that are enabled. This parameter is required.
      Returns:
      this
      See Also:
    • autoEnableControls

      @Stability(Stable) public CfnHub.Builder autoEnableControls(IResolvable autoEnableControls)
      Whether to automatically enable new controls when they are added to standards that are enabled.

      By default, this is set to true , and new controls are enabled automatically. To not automatically enable new controls, set this to false .

      Parameters:
      autoEnableControls - Whether to automatically enable new controls when they are added to standards that are enabled. This parameter is required.
      Returns:
      this
      See Also:
    • controlFindingGenerator

      @Stability(Stable) public CfnHub.Builder controlFindingGenerator(String controlFindingGenerator)
      Specifies whether an account has consolidated control findings turned on or off.

      If the value for this field is set to SECURITY_CONTROL , Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.

      If the value for this field is set to STANDARD_CONTROL , Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.

      The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL if you enabled Security Hub on or after February 23, 2023.

      Parameters:
      controlFindingGenerator - Specifies whether an account has consolidated control findings turned on or off. This parameter is required.
      Returns:
      this
      See Also:
    • enableDefaultStandards

      @Stability(Stable) public CfnHub.Builder enableDefaultStandards(Boolean enableDefaultStandards)
      Whether to enable the security standards that Security Hub has designated as automatically enabled.

      If you don't provide a value for EnableDefaultStandards , it is set to true , and the designated standards are automatically enabled in each AWS Region where you enable Security Hub . If you don't want to enable the designated standards, set EnableDefaultStandards to false .

      Currently, the automatically enabled standards are the Center for Internet Security (CIS) AWS Foundations Benchmark v1.2.0 and AWS Foundational Security Best Practices (FSBP).

      Parameters:
      enableDefaultStandards - Whether to enable the security standards that Security Hub has designated as automatically enabled. This parameter is required.
      Returns:
      this
      See Also:
    • enableDefaultStandards

      @Stability(Stable) public CfnHub.Builder enableDefaultStandards(IResolvable enableDefaultStandards)
      Whether to enable the security standards that Security Hub has designated as automatically enabled.

      If you don't provide a value for EnableDefaultStandards , it is set to true , and the designated standards are automatically enabled in each AWS Region where you enable Security Hub . If you don't want to enable the designated standards, set EnableDefaultStandards to false .

      Currently, the automatically enabled standards are the Center for Internet Security (CIS) AWS Foundations Benchmark v1.2.0 and AWS Foundational Security Best Practices (FSBP).

      Parameters:
      enableDefaultStandards - Whether to enable the security standards that Security Hub has designated as automatically enabled. This parameter is required.
      Returns:
      this
      See Also:
    • tags

      @Stability(Stable) public CfnHub.Builder tags(Object tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
      See Also:
    • build

      @Stability(Stable) public CfnHub build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnHub>
      Returns:
      a newly built instance of CfnHub.