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.
| Source | lib/network/network-configuration.ts |
|---|
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();
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
code_interpreter_network_configuration = bedrock_agentcore_alpha.CodeInterpreterNetworkConfiguration.using_public_network()
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;
CodeInterpreterNetworkConfiguration codeInterpreterNetworkConfiguration = CodeInterpreterNetworkConfiguration.usingPublicNetwork();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;
var codeInterpreterNetworkConfiguration = CodeInterpreterNetworkConfiguration.UsingPublicNetwork();
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"
codeInterpreterNetworkConfiguration := bedrock_agentcore_alpha.CodeInterpreterNetworkConfiguration_UsingPublicNetwork()
Properties
connectionsmay be undefinedConnectionsconnectionsmay be undefinedConnectionsconnectionsmay be undefinedConnectionsConnectionsmay be undefinedConnectionsConnectionsmay be undefinedConnections #The connections object to the network.
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() CodeInterpreterNetworkConfiguration static #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() CodeInterpreterNetworkConfiguration static #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) CodeInterpreterNetworkConfiguration static #Creates a network configuration from a VPC configuration.
1 parameter · returns
Parameters
vpcConfigvpc_configvpcConfigvpcConfigVpcConfig— - The VPC configuration.
Returns: A CodeInterpreterNetworkConfiguration.