Class CodeInterpreterNetworkConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrock.agentcore.alpha.NetworkConfiguration
software.amazon.awscdk.services.bedrock.agentcore.alpha.CodeInterpreterNetworkConfiguration
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-10T14:50:08.881Z")
@Stability(Experimental)
public class CodeInterpreterNetworkConfiguration
extends NetworkConfiguration
(experimental) Network configuration for the Code Interpreter tool.
Example:
// Create a custom execution role
Role executionRole = Role.Builder.create(this, "CodeInterpreterExecutionRole")
.assumedBy(new ServicePrincipal("bedrock-agentcore.amazonaws.com"))
.build();
// Create code interpreter with custom execution role
CodeInterpreterCustom codeInterpreter = CodeInterpreterCustom.Builder.create(this, "MyCodeInterpreter")
.codeInterpreterCustomName("my_code_interpreter")
.description("Code interpreter with custom execution role")
.networkConfiguration(CodeInterpreterNetworkConfiguration.usingPublicNetwork())
.executionRole(executionRole)
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected(experimental) Creates a new network configuration.protectedCodeInterpreterNetworkConfiguration(String mode, software.constructs.Construct scope) (experimental) Creates a new network configuration.protectedCodeInterpreterNetworkConfiguration(String mode, software.constructs.Construct scope, VpcConfigProps vpcConfig) (experimental) Creates a new network configuration.protectedCodeInterpreterNetworkConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCodeInterpreterNetworkConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescription(experimental) Creates a public network configuration.(experimental) Creates a sandbox network configuration.usingVpc(software.constructs.Construct scope, VpcConfigProps vpcConfig) (experimental) Creates a network configuration from a VPC configuration.Methods inherited from class software.amazon.awscdk.services.bedrock.agentcore.alpha.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
-
CodeInterpreterNetworkConfiguration
protected CodeInterpreterNetworkConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CodeInterpreterNetworkConfiguration
protected CodeInterpreterNetworkConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CodeInterpreterNetworkConfiguration
@Stability(Experimental) protected CodeInterpreterNetworkConfiguration(@NotNull String mode, @Nullable software.constructs.Construct scope, @Nullable VpcConfigProps vpcConfig) (experimental) Creates a new network configuration.- Parameters:
mode-- the network mode to use for the tool.
scope-vpcConfig-
-
CodeInterpreterNetworkConfiguration
@Stability(Experimental) protected CodeInterpreterNetworkConfiguration(@NotNull String mode, @Nullable software.constructs.Construct scope) (experimental) Creates a new network configuration.- Parameters:
mode-- the network mode to use for the tool.
scope-
-
CodeInterpreterNetworkConfiguration
(experimental) Creates a new network configuration.- Parameters:
mode-- the network mode to use for the tool.
-
-
Method Details
-
usingPublicNetwork
@Stability(Experimental) @NotNull public static CodeInterpreterNetworkConfiguration usingPublicNetwork()(experimental) Creates a public network configuration.- Returns:
- A CodeInterpreterNetworkConfiguration. Run this tool to operate in a public environment with internet access, suitable for less sensitive or open-use scenarios.
-
usingSandboxNetwork
@Stability(Experimental) @NotNull public static CodeInterpreterNetworkConfiguration usingSandboxNetwork()(experimental) Creates a sandbox network configuration.- Returns:
- A CodeInterpreterNetworkConfiguration. Run this tool in a restricted environment with limited Permissions and Encryption to enhance safety and reduce potential risks.
-
usingVpc
@Stability(Experimental) @NotNull public static CodeInterpreterNetworkConfiguration usingVpc(@NotNull software.constructs.Construct scope, @NotNull VpcConfigProps vpcConfig) (experimental) Creates a network configuration from a VPC configuration.- Parameters:
scope- This parameter is required.vpcConfig-- The VPC configuration.
- Returns:
- A CodeInterpreterNetworkConfiguration.
-