Class BrowserNetworkConfiguration

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

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-19T19:44:36.919Z") @Stability(Stable) public class BrowserNetworkConfiguration extends NetworkConfiguration
Network configuration for the Browser tool.

Example:

 Vpc vpc = new Vpc(this, "testVPC");
 CodeInterpreterCustom codeInterpreter = CodeInterpreterCustom.Builder.create(this, "MyCodeInterpreter")
         .codeInterpreterCustomName("my_sandbox_interpreter")
         .description("Code interpreter with isolated network access")
         .networkConfiguration(BrowserNetworkConfiguration.usingVpc(this, VpcConfigProps.builder()
                 .vpc(vpc)
                 .build()))
         .build();
 codeInterpreter.connections.addSecurityGroup(SecurityGroup.Builder.create(this, "AdditionalGroup").vpc(vpc).build());
 
  • Constructor Details

    • BrowserNetworkConfiguration

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

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

      @Stability(Stable) protected BrowserNetworkConfiguration(@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 -
    • BrowserNetworkConfiguration

      @Stability(Stable) protected BrowserNetworkConfiguration(@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 -
    • BrowserNetworkConfiguration

      @Stability(Stable) protected BrowserNetworkConfiguration(@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 BrowserNetworkConfiguration usingPublicNetwork()
      Creates a public network configuration.

      PUBLIC is the default network mode.

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

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

      Parameters:
      scope - This parameter is required.
      vpcConfig -
      • The VPC configuration.
      This parameter is required.
      Returns:
      A BrowserNetworkConfiguration.