Skip to content
v2.277.0

CodeInterpreterNetworkConfigurationProperty Struct ​

The network configuration.

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 codeInterpreterNetworkConfigurationProperty: bedrockagentcore.CfnCodeInterpreterCustom.CodeInterpreterNetworkConfigurationProperty = {
  networkMode: 'networkMode',

  // the properties below are optional
  vpcConfig: {
    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

code_interpreter_network_configuration_property = bedrockagentcore.CfnCodeInterpreterCustom.CodeInterpreterNetworkConfigurationProperty(
    network_mode="networkMode",

    # the properties below are optional
    vpc_config=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.*;

CodeInterpreterNetworkConfigurationProperty codeInterpreterNetworkConfigurationProperty = CodeInterpreterNetworkConfigurationProperty.builder()
        .networkMode("networkMode")

        // the properties below are optional
        .vpcConfig(VpcConfigProperty.builder()
                .securityGroups(List.of("securityGroups"))
                .subnets(List.of("subnets"))
                .build())
        .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 codeInterpreterNetworkConfigurationProperty = new CodeInterpreterNetworkConfigurationProperty {
    NetworkMode = "networkMode",

    // the properties below are optional
    VpcConfig = 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"

codeInterpreterNetworkConfigurationProperty := &CodeInterpreterNetworkConfigurationProperty{
	NetworkMode: jsii.String("networkMode"),

	// the properties below are optional
	VpcConfig: &VpcConfigProperty{
		SecurityGroups: []*string{
			jsii.String("securityGroups"),
		},
		Subnets: []*string{
			jsii.String("subnets"),
		},
	},
}

Properties ​

networkModestringnetwork_modestrnetworkModeStringNetworkModestringNetworkMode*string required #
The network mode.
vpcConfigoptionalIResolvable | CfnCodeInterpreterCustom.VpcConfigPropertyvpc_configoptionaltyping.Union[IResolvable, VpcConfigProperty]vpcConfigoptionalIResolvableVpcConfigoptionalIResolvableVpcConfigoptionalinterface{} #
Network mode configuration for VPC.