Class CodeInterpreterCustom

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.bedrockagentcore.CodeInterpreterCustomBase
software.amazon.awscdk.services.bedrockagentcore.CodeInterpreterCustom
All Implemented Interfaces:
ICodeInterpreterCustomRef, IEnvironmentAware, IResource, ICodeInterpreterCustom, IConnectable, IGrantable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-19T19:44:37.063Z") @Stability(Stable) public class CodeInterpreterCustom extends CodeInterpreterCustomBase
Custom code interpreter resource for AWS Bedrock Agent Core.

Provides a sandboxed environment for code execution with configurable network access.

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();
 

See Also:
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Stable) public static final String PROPERTY_INJECTION_ID
      Uniquely identifies this class.
  • Constructor Details

    • CodeInterpreterCustom

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

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

      @Stability(Stable) public CodeInterpreterCustom(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CodeInterpreterCustomProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • CodeInterpreterCustom

      @Stability(Stable) public CodeInterpreterCustom(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details