Class RuntimeNetworkConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrockagentcore.NetworkConfiguration
software.amazon.awscdk.services.bedrockagentcore.RuntimeNetworkConfiguration
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:44.501Z") @Stability(Stable) public class RuntimeNetworkConfiguration extends NetworkConfiguration
Network configuration for the Runtime.

Example:

 Repository repository = Repository.Builder.create(this, "TestRepository")
         .repositoryName("test-agent-runtime")
         .build();
 AgentRuntimeArtifact agentRuntimeArtifact = AgentRuntimeArtifact.fromEcrRepository(repository, "v1.0.0");
 // Create or use an existing VPC
 Vpc vpc = Vpc.Builder.create(this, "MyVpc")
         .maxAzs(2)
         .build();
 // Configure runtime with VPC
 Runtime runtime = Runtime.Builder.create(this, "MyAgentRuntime")
         .runtimeName("myAgent")
         .agentRuntimeArtifact(agentRuntimeArtifact)
         .networkConfiguration(RuntimeNetworkConfiguration.usingVpc(this, VpcConfigProps.builder()
                 .vpc(vpc)
                 .vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PRIVATE_WITH_EGRESS).build())
                 .build()))
         .build();
 
  • Constructor Details

    • RuntimeNetworkConfiguration

      protected RuntimeNetworkConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • RuntimeNetworkConfiguration

      protected RuntimeNetworkConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • RuntimeNetworkConfiguration

      @Stability(Stable) protected RuntimeNetworkConfiguration(@NotNull String mode, @Nullable software.constructs.Construct scope, @Nullable VpcConfigProps vpcConfig)
      Creates a new network configuration.

      Parameters:
      mode -
      • the network mode to use for the tool.
      This parameter is required.
      scope -
      vpcConfig -
    • RuntimeNetworkConfiguration

      @Stability(Stable) protected RuntimeNetworkConfiguration(@NotNull String mode, @Nullable software.constructs.Construct scope)
      Creates a new network configuration.

      Parameters:
      mode -
      • the network mode to use for the tool.
      This parameter is required.
      scope -
    • RuntimeNetworkConfiguration

      @Stability(Stable) protected RuntimeNetworkConfiguration(@NotNull String mode)
      Creates a new network configuration.

      Parameters:
      mode -
      • the network mode to use for the tool.
      This parameter is required.
  • Method Details

    • usingPublicNetwork

      @Stability(Stable) @NotNull public static RuntimeNetworkConfiguration usingPublicNetwork()
      Creates a public network configuration.

      PUBLIC is the default network mode.

      Returns:
      A RuntimeNetworkConfiguration. Run the runtime in a public environment with internet access, suitable for less sensitive or open-use scenarios.
    • usingVpc

      @Stability(Stable) @NotNull public static RuntimeNetworkConfiguration usingVpc(@NotNull software.constructs.Construct scope, @NotNull VpcConfigProps vpcConfig)
      Creates a network configuration from a VPC configuration.

      Parameters:
      scope -
      • The construct scope for creating resources.
      This parameter is required.
      vpcConfig -
      • The VPC configuration.
      This parameter is required.
      Returns:
      A RuntimeNetworkConfiguration.