Interface CodeInterpreterCustomProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CodeInterpreterCustomProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-19T19:44:37.066Z") @Stability(Stable) public interface CodeInterpreterCustomProps extends software.amazon.jsii.JsiiSerializable
Properties for creating a CodeInterpreter resource.

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();
 
  • Method Details

    • getCodeInterpreterCustomName

      @Stability(Stable) @Nullable default String getCodeInterpreterCustomName()
      The name of the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore) The name must start with a letter and can be up to 48 characters long Pattern: [a-zA-Z][a-zA-Z0-9_]{0,47}.

      Default: - auto generate

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      Optional description for the code interpreter Valid characters are a-z, A-Z, 0-9, _ (underscore), - (hyphen) and spaces The description can have up to 200 characters.

      Default: - No description

    • getExecutionRole

      @Stability(Stable) @Nullable default IRole getExecutionRole()
      The IAM role that provides permissions for the code interpreter to access AWS services.

      Default: - A new role will be created.

    • getNetworkConfiguration

      @Stability(Stable) @Nullable default CodeInterpreterNetworkConfiguration getNetworkConfiguration()
      Network configuration for code interpreter.

      Default: - PUBLIC network mode

    • getTags

      @Stability(Stable) @Nullable default Map<String,String> getTags()
      Tags (optional) A list of key:value pairs of tags to apply to this Code Interpreter resource.

      Default: {} - no tags

    • builder

      @Stability(Stable) static CodeInterpreterCustomProps.Builder builder()
      Returns:
      a CodeInterpreterCustomProps.Builder of CodeInterpreterCustomProps