Skip to content
v2.274.0

Experimental

@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

CodeInterpreterNetworkConfiguration Class ​

Network configuration for the Code Interpreter tool.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const codeInterpreterNetworkConfiguration = bedrock_agentcore_alpha.CodeInterpreterNetworkConfiguration.usingPublicNetwork();

Properties ​

connectionsmay be undefinedConnectionsconnectionsmay be undefinedConnectionsconnectionsmay be undefinedConnectionsConnectionsmay be undefinedConnectionsConnectionsmay be undefinedConnections#
The connections object to the network.
networkModestringnetwork_modestrnetworkModeStringNetworkModestringNetworkMode*stringrequired#
The network mode to use.

Configure the security level for agent execution to control access, isolate resources, and protect sensitive data.

scopemay be undefinedConstructscopemay be undefinedConstructscopemay be undefinedConstructScopemay be undefinedConstructScopemay be undefinedConstruct#
The scope to create the resource in.
vpcSubnetsmay be undefinedSubnetSelectionvpc_subnetsmay be undefinedSubnetSelectionvpcSubnetsmay be undefinedSubnetSelectionVpcSubnetsmay be undefinedSubnetSelectionVpcSubnetsmay be undefinedSubnetSelection#
The VPC subnets to use.

Methods ​

usingPublicNetwork(): CodeInterpreterNetworkConfiguration // chainable@staticmethod def using_public_network() -> CodeInterpreterNetworkConfigurationpublic static CodeInterpreterNetworkConfiguration usingPublicNetwork()public static CodeInterpreterNetworkConfiguration UsingPublicNetwork()func UsingPublicNetwork() CodeInterpreterNetworkConfigurationstatic#
Creates a public network configuration.
returns

Returns: A CodeInterpreterNetworkConfiguration. Run this tool to operate in a public environment with internet access, suitable for less sensitive or open-use scenarios.

usingSandboxNetwork(): CodeInterpreterNetworkConfiguration // chainable@staticmethod def using_sandbox_network() -> CodeInterpreterNetworkConfigurationpublic static CodeInterpreterNetworkConfiguration usingSandboxNetwork()public static CodeInterpreterNetworkConfiguration UsingSandboxNetwork()func UsingSandboxNetwork() CodeInterpreterNetworkConfigurationstatic#
Creates a sandbox network configuration.
returns

Returns: A CodeInterpreterNetworkConfiguration. Run this tool in a restricted environment with limited Permissions and Encryption to enhance safety and reduce potential risks.

usingVpc(scope: Construct, vpcConfig: VpcConfigProps): CodeInterpreterNetworkConfiguration // chainable@staticmethod def using_vpc(scope: Construct, vpc_config: VpcConfigProps) -> CodeInterpreterNetworkConfigurationpublic static CodeInterpreterNetworkConfiguration usingVpc(Construct scope, VpcConfigProps vpcConfig)public static CodeInterpreterNetworkConfiguration UsingVpc(Construct scope, VpcConfigProps vpcConfig)func UsingVpc(Scope Construct, VpcConfig VpcConfigProps) CodeInterpreterNetworkConfigurationstatic#
Creates a network configuration from a VPC configuration.
1 parameter · returns

Parameters

  • vpcConfigvpc_configvpcConfigvpcConfigVpcConfig — - The VPC configuration.

Returns: A CodeInterpreterNetworkConfiguration.