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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.networkScanning(CfnHubV2PropsMixin.NetworkScanningProperty networkScanning) Sets the value ofCfnHubV2MixinProps.getNetworkScanning()networkScanning(IResolvable networkScanning) Sets the value ofCfnHubV2MixinProps.getNetworkScanning()Sets the value ofCfnHubV2MixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networkScanning
Sets the value ofCfnHubV2MixinProps.getNetworkScanning()- 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) Sets the value ofCfnHubV2MixinProps.getNetworkScanning()- 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
Sets the value ofCfnHubV2MixinProps.getTags()- Parameters:
tags- The tags to add to the hub V2 resource when you enable Security Hub CSPM.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHubV2MixinProps>- Returns:
- a new instance of
CfnHubV2MixinProps - Throws:
NullPointerException- if any required attribute was not provided
-