Class CfnPentest
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.securityagent.CfnPentest
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IPentestRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-13T16:55:17.694Z")
@Stability(Stable)
public class CfnPentest
extends CfnResource
implements IInspectable, IPentestRef
Resource Type definition for AWS::SecurityAgent::Pentest.
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.*;
CfnPentest cfnPentest = CfnPentest.Builder.create(this, "MyCfnPentest")
.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 TypeClassDescriptionstatic interfaceAn authenticated actor to be used during pentest execution.static interfaceCollection of assets to be tested during the pentest.static interfaceAuthentication configuration for a pentest actor.static final classA fluent builder forCfnPentest.static interfaceCloudWatch Logs configuration for pentest output.static interfaceA custom header to include in outbound requests.static interfaceA document stored in S3 that provides context for the pentest.static interfaceAn endpoint to be tested during the pentest.static interfaceA repository connected via a provider integration.static interfaceNetwork traffic configuration for the pentest.static interfaceNetwork traffic rule.static interfaceA source code archive stored in S3 for analysis during the pentest.static interfaceVPC configuration that the pentest agent accesses.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.securityagent.IPentestRef
IPentestRef.Jsii$Default, IPentestRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPentest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPentest(software.amazon.jsii.JsiiObjectRef objRef) CfnPentest(software.constructs.Construct scope, String id, CfnPentestProps props) Create a newAWS::SecurityAgent::Pentest. -
Method Summary
Modifier and TypeMethodDescriptionIdentifier of agent space where the pentest should be created.Collection of assets to be tested during the pentest.Timestamp when the pentest was created.Unique identifier of the pentest.Timestamp when the pentest was last updated.Strategy for remediating code vulnerabilities discovered during the pentest.A list of risk types excluded from the pentest execution.CloudWatch Logs configuration for pentest output.Network traffic configuration for the pentest.A reference to a Pentest resource.Service role for accessing resources.getTitle()Title of the penetration test.VPC configuration that the pentest agent accesses.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnPentest.renderProperties(Map<String, Object> props) voidsetAgentSpaceId(String value) Identifier of agent space where the pentest should be created.voidsetAssets(IResolvable value) Collection of assets to be tested during the pentest.voidCollection of assets to be tested during the pentest.voidsetCodeRemediationStrategy(String value) Strategy for remediating code vulnerabilities discovered during the pentest.voidsetExcludeRiskTypes(List<String> value) A list of risk types excluded from the pentest execution.voidsetLogConfig(IResolvable value) CloudWatch Logs configuration for pentest output.voidCloudWatch Logs configuration for pentest output.voidNetwork traffic configuration for the pentest.voidNetwork traffic configuration for the pentest.voidsetServiceRole(String value) Service role for accessing resources.voidTitle of the penetration test.voidsetVpcConfig(IResolvable value) VPC configuration that the pentest agent accesses.voidVPC configuration that the pentest agent accesses.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPentest
protected CfnPentest(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPentest
protected CfnPentest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPentest
@Stability(Stable) public CfnPentest(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPentestProps props) Create a newAWS::SecurityAgent::Pentest.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnPentest
Checks whether the given object is a CfnPentest.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
Timestamp when the pentest was created. -
getAttrPentestId
Unique identifier of the pentest. -
getAttrUpdatedAt
Timestamp when the pentest was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getPentestRef
A reference to a Pentest resource.- Specified by:
getPentestRefin interfaceIPentestRef
-
getAgentSpaceId
Identifier of agent space where the pentest should be created. -
setAgentSpaceId
Identifier of agent space where the pentest should be created. -
getAssets
Collection of assets to be tested during the pentest.Returns union: either
IResolvableorCfnPentest.AssetsProperty -
setAssets
Collection of assets to be tested during the pentest. -
setAssets
Collection of assets to be tested during the pentest. -
getServiceRole
Service role for accessing resources. -
setServiceRole
Service role for accessing resources. -
getCodeRemediationStrategy
Strategy for remediating code vulnerabilities discovered during the pentest. -
setCodeRemediationStrategy
Strategy for remediating code vulnerabilities discovered during the pentest. -
getExcludeRiskTypes
A list of risk types excluded from the pentest execution. -
setExcludeRiskTypes
A list of risk types excluded from the pentest execution. -
getLogConfig
CloudWatch Logs configuration for pentest output.Returns union: either
IResolvableorCfnPentest.CloudWatchLogProperty -
setLogConfig
CloudWatch Logs configuration for pentest output. -
setLogConfig
CloudWatch Logs configuration for pentest output. -
getNetworkTrafficConfig
Network traffic configuration for the pentest.Returns union: either
IResolvableorCfnPentest.NetworkTrafficConfigProperty -
setNetworkTrafficConfig
Network traffic configuration for the pentest. -
setNetworkTrafficConfig
@Stability(Stable) public void setNetworkTrafficConfig(@Nullable CfnPentest.NetworkTrafficConfigProperty value) Network traffic configuration for the pentest. -
getTitle
Title of the penetration test. -
setTitle
Title of the penetration test. -
getVpcConfig
VPC configuration that the pentest agent accesses.Returns union: either
IResolvableorCfnPentest.VpcConfigProperty -
setVpcConfig
VPC configuration that the pentest agent accesses. -
setVpcConfig
VPC configuration that the pentest agent accesses.
-