Skip to content
v2.278.0

VpcConfigProperty Struct ​

Network mode configuration for VPC.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const vpcConfigProperty: bedrockagentcore.CfnCodeInterpreterCustom.VpcConfigProperty = {
  securityGroups: ['securityGroups'],
  subnets: ['subnets'],
};
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_bedrockagentcore as bedrockagentcore

vpc_config_property = bedrockagentcore.CfnCodeInterpreterCustom.VpcConfigProperty(
    security_groups=["securityGroups"],
    subnets=["subnets"]
)
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.bedrockagentcore.*;

VpcConfigProperty vpcConfigProperty = VpcConfigProperty.builder()
        .securityGroups(List.of("securityGroups"))
        .subnets(List.of("subnets"))
        .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.BedrockAgentCore;

var vpcConfigProperty = new VpcConfigProperty {
    SecurityGroups = new [] { "securityGroups" },
    Subnets = new [] { "subnets" }
};
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{
	SecurityGroups: []*string{
		jsii.String("securityGroups"),
	},
	Subnets: []*string{
		jsii.String("subnets"),
	},
}

Properties ​

securityGroupsstring[]security_groupstyping.List[str]securityGroupsList<String>SecurityGroupsstring[]SecurityGroups*[]*string required #
Security groups for VPC.
subnetsstring[]subnetstyping.List[str]subnetsList<String>Subnetsstring[]Subnets*[]*string required #
Subnets for VPC.