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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCodeAssetOptionsstatic final classAn implementation forCodeAssetOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic CodeAssetOptions.Builderbuilder()The entry point for the code execution, specifying the function or method that should be invoked when the code runs.getPath()The file path to the code asset.The runtime environment for executing the code.Methods inherited from interface software.amazon.awscdk.AssetOptions
getAssetHash, getAssetHashType, getBundlingMethods inherited from interface software.amazon.awscdk.services.s3.assets.AssetOptions
getDeployTime, getDisplayName, getReaders, getSourceKMSKeyMethods inherited from interface software.amazon.awscdk.FileCopyOptions
getExclude, getFollowSymlinks, getIgnoreModeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEntrypoint
The entry point for the code execution, specifying the function or method that should be invoked when the code runs. -
getPath
The file path to the code asset. -
getRuntime
The runtime environment for executing the code. -
builder
- Returns:
- a
CodeAssetOptions.BuilderofCodeAssetOptions
-