Interface CodeAssetOptions

All Superinterfaces:
AssetOptions, AssetOptions, FileCopyOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CodeAssetOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.129.0 (build eaca441)", date="2026-05-19T08:18:44.369Z") @Stability(Stable) public interface CodeAssetOptions extends software.amazon.jsii.JsiiSerializable, AssetOptions
Options for configuring an S3 code asset from local files for agent runtime artifact.

Example:

 AgentRuntimeArtifact agentRuntimeArtifact = AgentRuntimeArtifact.fromCodeAsset(CodeAssetOptions.builder()
         .path(path.join(__dirname, "path/to/agent/code"))
         .runtime(AgentCoreRuntime.PYTHON_3_12)
         .entrypoint(List.of("opentelemetry-instrument", "main.py"))
         .build());
 Runtime runtimeInstance = Runtime.Builder.create(this, "MyAgentRuntime")
         .runtimeName("myAgent")
         .agentRuntimeArtifact(agentRuntimeArtifact)
         .build();
 
  • Method Details

    • getEntrypoint

      @Stability(Stable) @NotNull List<String> getEntrypoint()
      The entry point for the code execution, specifying the function or method that should be invoked when the code runs.
    • getPath

      @Stability(Stable) @NotNull String getPath()
      The file path to the code asset.
    • getRuntime

      @Stability(Stable) @NotNull AgentCoreRuntime getRuntime()
      The runtime environment for executing the code.
    • builder

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