interface VpcConfigProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.VpcConfigProps |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#VpcConfigProps |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.VpcConfigProps |
Python | aws_cdk.aws_bedrock_agentcore_alpha.VpcConfigProps |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป VpcConfigProps |
VPC configuration properties.
Only used when network mode is VPC.
Example
const vpc = new ec2.Vpc(this, 'testVPC');
const codeInterpreter = new agentcore.CodeInterpreterCustom(this, "MyCodeInterpreter", {
codeInterpreterCustomName: "my_sandbox_interpreter",
description: "Code interpreter with isolated network access",
networkConfiguration: agentcore.BrowserNetworkConfiguration.usingVpc(this, {
vpc: vpc,
}),
});
codeInterpreter.connections.addSecurityGroup(new ec2.SecurityGroup(this, 'AdditionalGroup', { vpc }));
Properties
| Name | Type | Description |
|---|---|---|
| vpc | IVpc | The VPC to deploy the resource to. |
| allow | boolean | Whether to allow the resource to send all network traffic (except ipv6). |
| security | ISecurity[] | The list of security groups to associate with the resource's network interfaces. |
| vpc | Subnet | Where to place the network interfaces within the VPC. |
vpc
Type:
IVpc
The VPC to deploy the resource to.
allowAllOutbound?
Type:
boolean
(optional, default: true)
Whether to allow the resource to send all network traffic (except ipv6).
If set to false, you must individually add traffic rules to allow the resource to connect to network targets.
Do not specify this property if the securityGroups property is set.
Instead, configure allowAllOutbound directly on the security group.
securityGroups?
Type:
ISecurity[]
(optional, default: If the resource is placed within a VPC and a security group is
not specified by this prop, a dedicated security
group will be created for this resource.)
The list of security groups to associate with the resource's network interfaces.
Only used if 'vpc' is supplied.
vpcSubnets?
Type:
Subnet
(optional, default: the Vpc default strategy if not specified)
Where to place the network interfaces within the VPC.
This requires vpc to be specified in order for interfaces to actually be
placed in the subnets. If vpc is not specify, this will raise an error.

.NET
Go
Java
Python
TypeScript (