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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new network configuration.protectedRuntimeNetworkConfiguration(String mode, software.constructs.Construct scope) Creates a new network configuration.protectedRuntimeNetworkConfiguration(String mode, software.constructs.Construct scope, VpcConfigProps vpcConfig) Creates a new network configuration.protectedRuntimeNetworkConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRuntimeNetworkConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeNetworkConfigurationCreates a public network configuration.static RuntimeNetworkConfigurationusingVpc(software.constructs.Construct scope, VpcConfigProps vpcConfig) Creates a network configuration from a VPC configuration.Methods inherited from class software.amazon.awscdk.services.bedrockagentcore.NetworkConfiguration
getConnections, getNetworkMode, getScope, getVpcSubnetsMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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.
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.
scope-
-
RuntimeNetworkConfiguration
Creates a new network configuration.- Parameters:
mode-- the network mode to use for the tool.
-
-
Method Details
-
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.
vpcConfig-- The VPC configuration.
- Returns:
- A RuntimeNetworkConfiguration.
-