Class CfnHubV2MixinProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • networkScanning

      @Stability(Stable) public CfnHubV2MixinProps.Builder networkScanning(IResolvable networkScanning)
      Parameters:
      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.
      Returns:
      this
    • networkScanning

      @Stability(Stable) public CfnHubV2MixinProps.Builder networkScanning(CfnHubV2PropsMixin.NetworkScanningProperty networkScanning)
      Parameters:
      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.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnHubV2MixinProps.Builder tags(Map<String,String> tags)
      Parameters:
      tags - The tags to add to the hub V2 resource when you enable Security Hub CSPM.
      Returns:
      this
    • build

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