Interface CreatePentestRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreatePentestRequest.Builder,,CreatePentestRequest> SdkBuilder<CreatePentestRequest.Builder,,CreatePentestRequest> SdkPojo,SdkRequest.Builder,SecurityAgentRequest.Builder
- Enclosing class:
CreatePentestRequest
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier of the agent space to create the pentest in.default CreatePentestRequest.Builderassets(Consumer<Assets.Builder> assets) The assets to include in the pentest, such as endpoints, actors, documents, and source code.The assets to include in the pentest, such as endpoints, actors, documents, and source code.codeRemediationStrategy(String codeRemediationStrategy) The code remediation strategy for the pentest.codeRemediationStrategy(CodeRemediationStrategy codeRemediationStrategy) The code remediation strategy for the pentest.excludeRiskTypes(Collection<RiskType> excludeRiskTypes) The list of risk types to exclude from the pentest.excludeRiskTypes(RiskType... excludeRiskTypes) The list of risk types to exclude from the pentest.excludeRiskTypesWithStrings(String... excludeRiskTypes) The list of risk types to exclude from the pentest.excludeRiskTypesWithStrings(Collection<String> excludeRiskTypes) The list of risk types to exclude from the pentest.default CreatePentestRequest.BuilderlogConfig(Consumer<CloudWatchLog.Builder> logConfig) The CloudWatch Logs configuration for the pentest.logConfig(CloudWatchLog logConfig) The CloudWatch Logs configuration for the pentest.default CreatePentestRequest.BuildernetworkTrafficConfig(Consumer<NetworkTrafficConfig.Builder> networkTrafficConfig) The network traffic configuration for the pentest, including custom headers and traffic rules.networkTrafficConfig(NetworkTrafficConfig networkTrafficConfig) The network traffic configuration for the pentest, including custom headers and traffic rules.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.serviceRole(String serviceRole) The IAM service role to use for the pentest.The title of the pentest.default CreatePentestRequest.BuildervpcConfig(Consumer<VpcConfig.Builder> vpcConfig) The VPC configuration for the pentest.The VPC configuration for the pentest.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.securityagent.model.SecurityAgentRequest.Builder
build
-
Method Details
-
title
The title of the pentest.
- Parameters:
title- The title of the pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentSpaceId
The unique identifier of the agent space to create the pentest in.
- Parameters:
agentSpaceId- The unique identifier of the agent space to create the pentest in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
The assets to include in the pentest, such as endpoints, actors, documents, and source code.
- Parameters:
assets- The assets to include in the pentest, such as endpoints, actors, documents, and source code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
The assets to include in the pentest, such as endpoints, actors, documents, and source code.
This is a convenience method that creates an instance of theAssets.Builderavoiding the need to create one manually viaAssets.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassets(Assets).- Parameters:
assets- a consumer that will call methods onAssets.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excludeRiskTypesWithStrings
The list of risk types to exclude from the pentest.
- Parameters:
excludeRiskTypes- The list of risk types to exclude from the pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeRiskTypesWithStrings
The list of risk types to exclude from the pentest.
- Parameters:
excludeRiskTypes- The list of risk types to exclude from the pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeRiskTypes
The list of risk types to exclude from the pentest.
- Parameters:
excludeRiskTypes- The list of risk types to exclude from the pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeRiskTypes
The list of risk types to exclude from the pentest.
- Parameters:
excludeRiskTypes- The list of risk types to exclude from the pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceRole
The IAM service role to use for the pentest.
- Parameters:
serviceRole- The IAM service role to use for the pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfig
The CloudWatch Logs configuration for the pentest.
- Parameters:
logConfig- The CloudWatch Logs configuration for the pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfig
The CloudWatch Logs configuration for the pentest.
This is a convenience method that creates an instance of theCloudWatchLog.Builderavoiding the need to create one manually viaCloudWatchLog.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologConfig(CloudWatchLog).- Parameters:
logConfig- a consumer that will call methods onCloudWatchLog.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcConfig
The VPC configuration for the pentest.
- Parameters:
vpcConfig- The VPC configuration for the pentest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
The VPC configuration for the pentest.
This is a convenience method that creates an instance of theVpcConfig.Builderavoiding the need to create one manually viaVpcConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovpcConfig(VpcConfig).- Parameters:
vpcConfig- a consumer that will call methods onVpcConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
networkTrafficConfig
The network traffic configuration for the pentest, including custom headers and traffic rules.
- Parameters:
networkTrafficConfig- The network traffic configuration for the pentest, including custom headers and traffic rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkTrafficConfig
default CreatePentestRequest.Builder networkTrafficConfig(Consumer<NetworkTrafficConfig.Builder> networkTrafficConfig) The network traffic configuration for the pentest, including custom headers and traffic rules.
This is a convenience method that creates an instance of theNetworkTrafficConfig.Builderavoiding the need to create one manually viaNetworkTrafficConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkTrafficConfig(NetworkTrafficConfig).- Parameters:
networkTrafficConfig- a consumer that will call methods onNetworkTrafficConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
codeRemediationStrategy
The code remediation strategy for the pentest. Valid values are AUTOMATIC and DISABLED.
- Parameters:
codeRemediationStrategy- The code remediation strategy for the pentest. Valid values are AUTOMATIC and DISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
codeRemediationStrategy
CreatePentestRequest.Builder codeRemediationStrategy(CodeRemediationStrategy codeRemediationStrategy) The code remediation strategy for the pentest. Valid values are AUTOMATIC and DISABLED.
- Parameters:
codeRemediationStrategy- The code remediation strategy for the pentest. Valid values are AUTOMATIC and DISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreatePentestRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreatePentestRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-