Class CfnPentestProps.Builder
java.lang.Object
software.amazon.awscdk.services.securityagent.CfnPentestProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPentestProps>
- Enclosing interface:
CfnPentestProps
@Stability(Stable)
public static final class CfnPentestProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPentestProps>
A builder for
CfnPentestProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) Sets the value ofCfnPentestProps.getAgentSpaceId()assets(IResolvable assets) Sets the value ofCfnPentestProps.getAssets()assets(CfnPentest.AssetsProperty assets) Sets the value ofCfnPentestProps.getAssets()build()Builds the configured instance.codeRemediationStrategy(String codeRemediationStrategy) Sets the value ofCfnPentestProps.getCodeRemediationStrategy()excludeRiskTypes(List<String> excludeRiskTypes) Sets the value ofCfnPentestProps.getExcludeRiskTypes()logConfig(IResolvable logConfig) Sets the value ofCfnPentestProps.getLogConfig()logConfig(CfnPentest.CloudWatchLogProperty logConfig) Sets the value ofCfnPentestProps.getLogConfig()networkTrafficConfig(IResolvable networkTrafficConfig) Sets the value ofCfnPentestProps.getNetworkTrafficConfig()networkTrafficConfig(CfnPentest.NetworkTrafficConfigProperty networkTrafficConfig) Sets the value ofCfnPentestProps.getNetworkTrafficConfig()serviceRole(String serviceRole) Sets the value ofCfnPentestProps.getServiceRole()Sets the value ofCfnPentestProps.getTitle()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnPentestProps.getVpcConfig()vpcConfig(CfnPentest.VpcConfigProperty vpcConfig) Sets the value ofCfnPentestProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentSpaceId
Sets the value ofCfnPentestProps.getAgentSpaceId()- Parameters:
agentSpaceId- the value to be set. This parameter is required.- Returns:
this
-
assets
Sets the value ofCfnPentestProps.getAssets()- Parameters:
assets- the value to be set. This parameter is required.- Returns:
this
-
assets
Sets the value ofCfnPentestProps.getAssets()- Parameters:
assets- the value to be set. This parameter is required.- Returns:
this
-
serviceRole
Sets the value ofCfnPentestProps.getServiceRole()- Parameters:
serviceRole- the value to be set. This parameter is required.- Returns:
this
-
codeRemediationStrategy
@Stability(Stable) public CfnPentestProps.Builder codeRemediationStrategy(String codeRemediationStrategy) Sets the value ofCfnPentestProps.getCodeRemediationStrategy()- Parameters:
codeRemediationStrategy- the value to be set.- Returns:
this
-
excludeRiskTypes
Sets the value ofCfnPentestProps.getExcludeRiskTypes()- Parameters:
excludeRiskTypes- the value to be set.- Returns:
this
-
logConfig
Sets the value ofCfnPentestProps.getLogConfig()- Parameters:
logConfig- the value to be set.- Returns:
this
-
logConfig
@Stability(Stable) public CfnPentestProps.Builder logConfig(CfnPentest.CloudWatchLogProperty logConfig) Sets the value ofCfnPentestProps.getLogConfig()- Parameters:
logConfig- the value to be set.- Returns:
this
-
networkTrafficConfig
@Stability(Stable) public CfnPentestProps.Builder networkTrafficConfig(IResolvable networkTrafficConfig) Sets the value ofCfnPentestProps.getNetworkTrafficConfig()- Parameters:
networkTrafficConfig- the value to be set.- Returns:
this
-
networkTrafficConfig
@Stability(Stable) public CfnPentestProps.Builder networkTrafficConfig(CfnPentest.NetworkTrafficConfigProperty networkTrafficConfig) Sets the value ofCfnPentestProps.getNetworkTrafficConfig()- Parameters:
networkTrafficConfig- the value to be set.- Returns:
this
-
title
Sets the value ofCfnPentestProps.getTitle()- Parameters:
title- the value to be set.- Returns:
this
-
vpcConfig
Sets the value ofCfnPentestProps.getVpcConfig()- Parameters:
vpcConfig- the value to be set.- Returns:
this
-
vpcConfig
Sets the value ofCfnPentestProps.getVpcConfig()- Parameters:
vpcConfig- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPentestProps>- Returns:
- a new instance of
CfnPentestProps - Throws:
NullPointerException- if any required attribute was not provided
-