# CodeInterpreterNetworkConfigurationProperty

The network configuration.

- Source: Generated at build time
- Type last changed: v2.220.0 · 14 Oct 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
    }
};
```

Golang:

```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

- `networkMode`: string (required) — The network mode.

- `vpcConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCodeInterpreterCustom.VpcConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnCodeInterpreterCustom.VpcConfigProperty.html) — Network mode configuration for VPC.
