Class AgentCoreRuntime

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

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:44.198Z") @Stability(Stable) public class AgentCoreRuntime extends software.amazon.jsii.JsiiObject
Bedrock AgentCore runtime environment for code execution Allowed values: PYTHON_3_10 | PYTHON_3_11 | PYTHON_3_12 | PYTHON_3_13 | PYTHON_3_14 | NODE_22.

Example:

 // S3 bucket containing the agent core
 Bucket codeBucket = Bucket.Builder.create(this, "AgentCode")
         .bucketName("my-code-bucket")
         .removalPolicy(RemovalPolicy.DESTROY)
         .build();
 // the bucket above needs to contain the agent code
 AgentRuntimeArtifact agentRuntimeArtifact = AgentRuntimeArtifact.fromS3(Location.builder()
         .bucketName(codeBucket.getBucketName())
         .objectKey("deployment_package.zip")
         .build(), AgentCoreRuntime.PYTHON_3_12, List.of("opentelemetry-instrument", "main.py"));
 Runtime runtimeInstance = Runtime.Builder.create(this, "MyAgentRuntime")
         .runtimeName("myAgent")
         .agentRuntimeArtifact(agentRuntimeArtifact)
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final AgentCoreRuntime
    Node.js 22 runtime.
    static final AgentCoreRuntime
    Python 3.10 runtime.
    static final AgentCoreRuntime
    Python 3.11 runtime.
    static final AgentCoreRuntime
    Python 3.12 runtime.
    static final AgentCoreRuntime
    Python 3.13 runtime.
    static final AgentCoreRuntime
    Python 3.14 runtime.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AgentCoreRuntime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    AgentCoreRuntime(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The runtime string value.
    of(String value)
    Create a custom runtime value for runtimes not yet defined in this enum.
    Returns the runtime string value.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • NODE_22

      @Stability(Stable) public static final AgentCoreRuntime NODE_22
      Node.js 22 runtime.
    • PYTHON_3_10

      @Stability(Stable) public static final AgentCoreRuntime PYTHON_3_10
      Python 3.10 runtime.
    • PYTHON_3_11

      @Stability(Stable) public static final AgentCoreRuntime PYTHON_3_11
      Python 3.11 runtime.
    • PYTHON_3_12

      @Stability(Stable) public static final AgentCoreRuntime PYTHON_3_12
      Python 3.12 runtime.
    • PYTHON_3_13

      @Stability(Stable) public static final AgentCoreRuntime PYTHON_3_13
      Python 3.13 runtime.
    • PYTHON_3_14

      @Stability(Stable) public static final AgentCoreRuntime PYTHON_3_14
      Python 3.14 runtime.
  • Constructor Details

    • AgentCoreRuntime

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

      protected AgentCoreRuntime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • of

      @Stability(Stable) @NotNull public static AgentCoreRuntime of(@NotNull String value)
      Create a custom runtime value for runtimes not yet defined in this enum.

      Parameters:
      value - The runtime string value. This parameter is required.
    • toString

      @Stability(Stable) @NotNull public String toString()
      Returns the runtime string value.
      Overrides:
      toString in class Object
    • getValue

      @Stability(Stable) @NotNull public String getValue()
      The runtime string value.