Class CfnHubV2.Builder

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

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

    • create

      @Stability(Stable) public static CfnHubV2.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 CfnHubV2.Builder.
    • networkScanning

      @Stability(Stable) public CfnHubV2.Builder networkScanning(IResolvable networkScanning)
      Configuration for the Network Scanning opt-in feature of Security Hub V2.

      Network Scanning is available in the AWS commercial partition only; specifying this property in another partition, such as AWS GovCloud (US) or China, fails. This property is desired state: if you remove it from a stack that previously set it, the feature is disabled. If a stack has never set it, the feature is left as-is, so a stack that does not manage Network Scanning will not disable it. Network Scanning requires Security Hub V2 to be enabled in the same account and Region.

      Parameters:
      networkScanning - Configuration for the Network Scanning opt-in feature of Security Hub V2. This parameter is required.
      Returns:
      this
      See Also:
    • networkScanning

      @Stability(Stable) public CfnHubV2.Builder networkScanning(CfnHubV2.NetworkScanningProperty networkScanning)
      Configuration for the Network Scanning opt-in feature of Security Hub V2.

      Network Scanning is available in the AWS commercial partition only; specifying this property in another partition, such as AWS GovCloud (US) or China, fails. This property is desired state: if you remove it from a stack that previously set it, the feature is disabled. If a stack has never set it, the feature is left as-is, so a stack that does not manage Network Scanning will not disable it. Network Scanning requires Security Hub V2 to be enabled in the same account and Region.

      Parameters:
      networkScanning - Configuration for the Network Scanning opt-in feature of Security Hub V2. This parameter is required.
      Returns:
      this
      See Also:
    • tags

      @Stability(Stable) public CfnHubV2.Builder tags(Map<String,String> tags)
      The tags to add to the hub V2 resource when you enable Security Hub CSPM.

      Parameters:
      tags - The tags to add to the hub V2 resource when you enable Security Hub CSPM. This parameter is required.
      Returns:
      this
      See Also:
    • build

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