Class CfnPentest.Builder
java.lang.Object
software.amazon.awscdk.services.securityagent.CfnPentest.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPentest>
- Enclosing class:
CfnPentest
@Stability(Stable)
public static final class CfnPentest.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPentest>
A fluent builder for
CfnPentest.-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) Identifier of agent space where the pentest should be created.assets(IResolvable assets) Collection of assets to be tested during the pentest.assets(CfnPentest.AssetsProperty assets) Collection of assets to be tested during the pentest.build()codeRemediationStrategy(String codeRemediationStrategy) Strategy for remediating code vulnerabilities discovered during the pentest.static CfnPentest.BuilderexcludeRiskTypes(List<String> excludeRiskTypes) A list of risk types excluded from the pentest execution.logConfig(IResolvable logConfig) CloudWatch Logs configuration for pentest output.logConfig(CfnPentest.CloudWatchLogProperty logConfig) CloudWatch Logs configuration for pentest output.networkTrafficConfig(IResolvable networkTrafficConfig) Network traffic configuration for the pentest.networkTrafficConfig(CfnPentest.NetworkTrafficConfigProperty networkTrafficConfig) Network traffic configuration for the pentest.serviceRole(String serviceRole) Service role for accessing resources.Title of the penetration test.vpcConfig(IResolvable vpcConfig) VPC configuration that the pentest agent accesses.vpcConfig(CfnPentest.VpcConfigProperty vpcConfig) VPC configuration that the pentest agent accesses.
-
Method Details
-
create
@Stability(Stable) public static CfnPentest.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
CfnPentest.Builder.
-
agentSpaceId
Identifier of agent space where the pentest should be created.- Parameters:
agentSpaceId- Identifier of agent space where the pentest should be created. This parameter is required.- Returns:
this- See Also:
-
assets
Collection of assets to be tested during the pentest.- Parameters:
assets- Collection of assets to be tested during the pentest. This parameter is required.- Returns:
this- See Also:
-
assets
Collection of assets to be tested during the pentest.- Parameters:
assets- Collection of assets to be tested during the pentest. This parameter is required.- Returns:
this- See Also:
-
serviceRole
Service role for accessing resources.- Parameters:
serviceRole- Service role for accessing resources. This parameter is required.- Returns:
this- See Also:
-
codeRemediationStrategy
@Stability(Stable) public CfnPentest.Builder codeRemediationStrategy(String codeRemediationStrategy) Strategy for remediating code vulnerabilities discovered during the pentest.- Parameters:
codeRemediationStrategy- Strategy for remediating code vulnerabilities discovered during the pentest. This parameter is required.- Returns:
this- See Also:
-
excludeRiskTypes
A list of risk types excluded from the pentest execution.- Parameters:
excludeRiskTypes- A list of risk types excluded from the pentest execution. This parameter is required.- Returns:
this- See Also:
-
logConfig
CloudWatch Logs configuration for pentest output.- Parameters:
logConfig- CloudWatch Logs configuration for pentest output. This parameter is required.- Returns:
this- See Also:
-
logConfig
CloudWatch Logs configuration for pentest output.- Parameters:
logConfig- CloudWatch Logs configuration for pentest output. This parameter is required.- Returns:
this- See Also:
-
networkTrafficConfig
Network traffic configuration for the pentest.- Parameters:
networkTrafficConfig- Network traffic configuration for the pentest. This parameter is required.- Returns:
this- See Also:
-
networkTrafficConfig
@Stability(Stable) public CfnPentest.Builder networkTrafficConfig(CfnPentest.NetworkTrafficConfigProperty networkTrafficConfig) Network traffic configuration for the pentest.- Parameters:
networkTrafficConfig- Network traffic configuration for the pentest. This parameter is required.- Returns:
this- See Also:
-
title
Title of the penetration test.- Parameters:
title- Title of the penetration test. This parameter is required.- Returns:
this- See Also:
-
vpcConfig
VPC configuration that the pentest agent accesses.- Parameters:
vpcConfig- VPC configuration that the pentest agent accesses. This parameter is required.- Returns:
this- See Also:
-
vpcConfig
VPC configuration that the pentest agent accesses.- Parameters:
vpcConfig- VPC configuration that the pentest agent accesses. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPentest>- Returns:
- a newly built instance of
CfnPentest.
-