class AgentCoreRuntime
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.AgentCoreRuntime |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#AgentCoreRuntime |
Java | software.amazon.awscdk.services.bedrockagentcore.AgentCoreRuntime |
Python | aws_cdk.aws_bedrockagentcore.AgentCoreRuntime |
TypeScript (source) | aws-cdk-lib » aws_bedrockagentcore » AgentCoreRuntime |
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
const codeBucket = new s3.Bucket(this, "AgentCode", {
bucketName: "my-code-bucket",
removalPolicy: RemovalPolicy.DESTROY, // For demo purposes
});
// the bucket above needs to contain the agent code
const agentRuntimeArtifact = agentcore.AgentRuntimeArtifact.fromS3(
{
bucketName: codeBucket.bucketName,
objectKey: 'deployment_package.zip',
},
agentcore.AgentCoreRuntime.PYTHON_3_12,
['opentelemetry-instrument', 'main.py']
);
const runtimeInstance = new agentcore.Runtime(this, "MyAgentRuntime", {
runtimeName: "myAgent",
agentRuntimeArtifact: agentRuntimeArtifact,
});
Properties
| Name | Type | Description |
|---|---|---|
| value | string | The runtime string value. |
| static NODE_22 | Agent | Node.js 22 runtime. |
| static PYTHON_3_10 | Agent | Python 3.10 runtime. |
| static PYTHON_3_11 | Agent | Python 3.11 runtime. |
| static PYTHON_3_12 | Agent | Python 3.12 runtime. |
| static PYTHON_3_13 | Agent | Python 3.13 runtime. |
| static PYTHON_3_14 | Agent | Python 3.14 runtime. |
value
Type:
string
The runtime string value.
static NODE_22
Type:
Agent
Node.js 22 runtime.
static PYTHON_3_10
Type:
Agent
Python 3.10 runtime.
static PYTHON_3_11
Type:
Agent
Python 3.11 runtime.
static PYTHON_3_12
Type:
Agent
Python 3.12 runtime.
static PYTHON_3_13
Type:
Agent
Python 3.13 runtime.
static PYTHON_3_14
Type:
Agent
Python 3.14 runtime.
Methods
| Name | Description |
|---|---|
| to | Returns the runtime string value. |
| static of(value) | Create a custom runtime value for runtimes not yet defined in this enum. |
toString()
public toString(): string
Returns
string
Returns the runtime string value.
static of(value)
public static of(value: string): AgentCoreRuntime
Parameters
- value
string— The runtime string value.
Returns
Create a custom runtime value for runtimes not yet defined in this enum.

.NET
Go
Java
Python
TypeScript (