Interface CfnPentestProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPentestProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-24T20:29:37.172Z")
@Stability(Stable)
public interface CfnPentestProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnPentest.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.securityagent.*;
CfnPentestProps cfnPentestProps = CfnPentestProps.builder()
.agentSpaceId("agentSpaceId")
.assets(AssetsProperty.builder()
.actors(List.of(ActorProperty.builder()
.authentication(AuthenticationProperty.builder()
.providerType("providerType")
.value("value")
.build())
.description("description")
.identifier("identifier")
.uris(List.of("uris"))
.build()))
.documents(List.of(DocumentInfoProperty.builder()
.artifactId("artifactId")
.s3Location("s3Location")
.build()))
.endpoints(List.of(EndpointProperty.builder()
.uri("uri")
.build()))
.integratedRepositories(List.of(IntegratedRepositoryProperty.builder()
.integrationId("integrationId")
.providerResourceId("providerResourceId")
.build()))
.sourceCode(List.of(SourceCodeRepositoryProperty.builder()
.s3Location("s3Location")
.build()))
.build())
.serviceRole("serviceRole")
// the properties below are optional
.codeRemediationStrategy("codeRemediationStrategy")
.excludeRiskTypes(List.of("excludeRiskTypes"))
.logConfig(CloudWatchLogProperty.builder()
.logGroup("logGroup")
.logStream("logStream")
.build())
.networkTrafficConfig(NetworkTrafficConfigProperty.builder()
.customHeaders(List.of(CustomHeaderProperty.builder()
.name("name")
.value("value")
.build()))
.rules(List.of(NetworkTrafficRuleProperty.builder()
.effect("effect")
.networkTrafficRuleType("networkTrafficRuleType")
.pattern("pattern")
.build()))
.build())
.title("title")
.vpcConfig(VpcConfigProperty.builder()
.securityGroupArns(List.of("securityGroupArns"))
.subnetArns(List.of("subnetArns"))
.vpcArn("vpcArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPentestPropsstatic final classAn implementation forCfnPentestProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPentestProps.Builderbuilder()Identifier of agent space where the pentest should be created.Collection of assets to be tested during the pentest.default StringStrategy for remediating code vulnerabilities discovered during the pentest.A list of risk types excluded from the pentest execution.default ObjectCloudWatch Logs configuration for pentest output.default ObjectNetwork traffic configuration for the pentest.Service role for accessing resources.default StringgetTitle()Title of the penetration test.default ObjectVPC configuration that the pentest agent accesses.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAgentSpaceId
Identifier of agent space where the pentest should be created.- See Also:
-
getAssets
Collection of assets to be tested during the pentest.Returns union: either
IResolvableorCfnPentest.AssetsProperty- See Also:
-
getServiceRole
Service role for accessing resources.- See Also:
-
getCodeRemediationStrategy
Strategy for remediating code vulnerabilities discovered during the pentest.- See Also:
-
getExcludeRiskTypes
A list of risk types excluded from the pentest execution.- See Also:
-
getLogConfig
CloudWatch Logs configuration for pentest output.Returns union: either
IResolvableorCfnPentest.CloudWatchLogProperty- See Also:
-
getNetworkTrafficConfig
Network traffic configuration for the pentest.Returns union: either
IResolvableorCfnPentest.NetworkTrafficConfigProperty- See Also:
-
getTitle
Title of the penetration test.- See Also:
-
getVpcConfig
VPC configuration that the pentest agent accesses.Returns union: either
IResolvableorCfnPentest.VpcConfigProperty- See Also:
-
builder
- Returns:
- a
CfnPentestProps.BuilderofCfnPentestProps
-