Interface VpcConfigProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcConfigProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.129.0 (build eaca441)",
date="2026-05-19T08:18:44.510Z")
@Stability(Stable)
public interface VpcConfigProps
extends software.amazon.jsii.JsiiSerializable
VPC configuration properties.
Only used when network mode is VPC.
Example:
Vpc vpc = new Vpc(this, "testVPC");
CodeInterpreterCustom codeInterpreter = CodeInterpreterCustom.Builder.create(this, "MyCodeInterpreter")
.codeInterpreterCustomName("my_sandbox_interpreter")
.description("Code interpreter with isolated network access")
.networkConfiguration(BrowserNetworkConfiguration.usingVpc(this, VpcConfigProps.builder()
.vpc(vpc)
.build()))
.build();
codeInterpreter.connections.addSecurityGroup(SecurityGroup.Builder.create(this, "AdditionalGroup").vpc(vpc).build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVpcConfigPropsstatic final classAn implementation forVpcConfigProps -
Method Summary
Modifier and TypeMethodDescriptionstatic VpcConfigProps.Builderbuilder()default BooleanWhether to allow the resource to send all network traffic (except ipv6).default List<ISecurityGroup> The list of security groups to associate with the resource's network interfaces.getVpc()The VPC to deploy the resource to.default SubnetSelectionWhere to place the network interfaces within the VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
The VPC to deploy the resource to. -
getAllowAllOutbound
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
securityGroupsproperty is set. Instead, configureallowAllOutbounddirectly on the security group.Default: true
-
getSecurityGroups
The list of security groups to associate with the resource's network interfaces.Only used if 'vpc' is supplied.
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.
-
getVpcSubnets
Where to place the network interfaces within the VPC.This requires
vpcto be specified in order for interfaces to actually be placed in the subnets. Ifvpcis not specify, this will raise an error.Default: - the Vpc default strategy if not specified
-
builder
- Returns:
- a
VpcConfigProps.BuilderofVpcConfigProps
-