# 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.

- Source: [`aws-bedrockagentcore/lib/runtime/runtime-artifact.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/runtime/runtime-artifact.ts#L29)
- Type last changed: v2.255.0 · 19 May 2026

## Example

```ts
// 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

- `NODE_22`: [AgentCoreRuntime](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.AgentCoreRuntime.html) (required) (static) — Node.js 22 runtime.

- `PYTHON_3_10`: [AgentCoreRuntime](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.AgentCoreRuntime.html) (required) (static) — Python 3.10 runtime.

- `PYTHON_3_11`: [AgentCoreRuntime](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.AgentCoreRuntime.html) (required) (static) — Python 3.11 runtime.

- `PYTHON_3_12`: [AgentCoreRuntime](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.AgentCoreRuntime.html) (required) (static) — Python 3.12 runtime.

- `PYTHON_3_13`: [AgentCoreRuntime](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.AgentCoreRuntime.html) (required) (static) — Python 3.13 runtime.

- `PYTHON_3_14`: [AgentCoreRuntime](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.AgentCoreRuntime.html) (required) (static) — Python 3.14 runtime.

- `value`: string (required) — The runtime string value.

## Methods

- `of(value: string): AgentCoreRuntime // chainable` (static) — Create a custom runtime value for runtimes not yet defined in this enum.

  **Parameters**

  - `value` — The runtime string value.

- `toString(): string` — Returns the runtime string value.
