class RuntimeNetworkConfiguration
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.RuntimeNetworkConfiguration | 
|  Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#RuntimeNetworkConfiguration | 
|  Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.RuntimeNetworkConfiguration | 
|  Python | aws_cdk.aws_bedrock_agentcore_alpha.RuntimeNetworkConfiguration | 
|  TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alphaยปRuntimeNetworkConfiguration | 
Extends
Network
Network configuration for the Runtime.
Example
const repository = new ecr.Repository(this, "TestRepository", {
  repositoryName: "test-agent-runtime",
});
const agentRuntimeArtifact = agentcore.AgentRuntimeArtifact.fromEcrRepository(repository, "v1.0.0");
// Create or use an existing VPC
const vpc = new ec2.Vpc(this, 'MyVpc', {
  maxAzs: 2,
});
// Configure runtime with VPC
const runtime = new agentcore.Runtime(this, "MyAgentRuntime", {
  runtimeName: "myAgent",
  agentRuntimeArtifact: agentRuntimeArtifact,
  networkConfiguration: agentcore.RuntimeNetworkConfiguration.usingVpc(this, {
    vpc: vpc,
    vpcSubnets: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },
    // Optionally specify security groups, or one will be created automatically
    // securityGroups: [mySecurityGroup],
  }),
});
Initializer (protected)
super(mode: string, scope?: Construct, vpcConfig?: VpcConfigProps)
Parameters
- mode stringโ - the network mode to use for the tool.
- scope Construct
- vpcConfig VpcConfig Props 
Creates a new network configuration.
Properties
| Name | Type | Description | 
|---|---|---|
| network | string | The network mode to use. | 
| connections? | Connections | The connections object to the network. | 
| scope? | Construct | The scope to create the resource in. | 
| vpc | Subnet | The VPC subnets to use. | 
networkMode
Type:
string
The network mode to use.
Configure the security level for agent execution to control access, isolate resources, and protect sensitive data.
connections?
Type:
Connections
(optional)
The connections object to the network.
scope?
Type:
Construct
(optional)
The scope to create the resource in.
vpcSubnets?
Type:
Subnet
(optional)
The VPC subnets to use.
Methods
| Name | Description | 
|---|---|
| static using | Creates a public network configuration. | 
| static using | Creates a network configuration from a VPC configuration. | 
static usingPublicNetwork()  
public static usingPublicNetwork(): RuntimeNetworkConfiguration
Returns
Creates a public network configuration.
PUBLIC is the default network mode.
static usingVpc(scope, vpcConfig) 
public static usingVpc(scope: Construct, vpcConfig: VpcConfigProps): RuntimeNetworkConfiguration
Parameters
- scope Constructโ - The construct scope for creating resources.
- vpcConfig Vpcโ - The VPC configuration.Config Props 
Returns
Creates a network configuration from a VPC configuration.
