Skip to content
v2.277.0

VpcConfigProperty Struct ​

Customer VPC configuration that the security testing environment accesses.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securityagent as securityagent } from 'aws-cdk-lib';
const vpcConfigProperty: securityagent.CfnAgentSpace.VpcConfigProperty = {
  securityGroupArns: ['securityGroupArns'],
  subnetArns: ['subnetArns'],
  vpcArn: 'vpcArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_securityagent as securityagent

vpc_config_property = securityagent.CfnAgentSpace.VpcConfigProperty(
    security_group_arns=["securityGroupArns"],
    subnet_arns=["subnetArns"],
    vpc_arn="vpcArn"
)
java
// 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.*;

VpcConfigProperty vpcConfigProperty = VpcConfigProperty.builder()
        .securityGroupArns(List.of("securityGroupArns"))
        .subnetArns(List.of("subnetArns"))
        .vpcArn("vpcArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SecurityAgent;

var vpcConfigProperty = new VpcConfigProperty {
    SecurityGroupArns = new [] { "securityGroupArns" },
    SubnetArns = new [] { "subnetArns" },
    VpcArn = "vpcArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

vpcConfigProperty := &VpcConfigProperty{
	SecurityGroupArns: []*string{
		jsii.String("securityGroupArns"),
	},
	SubnetArns: []*string{
		jsii.String("subnetArns"),
	},
	VpcArn: jsii.String("vpcArn"),
}

Properties ​

securityGroupArnsoptionalstring[]security_group_arnsoptionaltyping.List[str]securityGroupArnsoptionalList<String>SecurityGroupArnsoptionalstring[]SecurityGroupArnsoptional*[]*string#
List of security group ARNs in the customer VPC.
subnetArnsoptionalstring[]subnet_arnsoptionaltyping.List[str]subnetArnsoptionalList<String>SubnetArnsoptionalstring[]SubnetArnsoptional*[]*string#
List of subnet ARNs in the customer VPC.
vpcArnoptionalstringvpc_arnoptionalstrvpcArnoptionalStringVpcArnoptionalstringVpcArnoptional*string#
ARN of the customer VPC.