# PlatformVersion

The platform version of the Agent Runtime.

- Source: [`aws-bedrockagentcore/lib/runtime/types.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/runtime/types.ts#L62)
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

```ts
const repository = new ecr.Repository(this, 'TestRepository', {
  repositoryName: 'test-agent-runtime',
});

const agentRuntimeArtifact = agentcore.AgentRuntimeArtifact.fromEcrRepository(repository, 'v1.0.0');

new agentcore.Runtime(this, 'test-runtime', {
  runtimeName: 'test_runtime',
  agentRuntimeArtifact: agentRuntimeArtifact,
  platformVersion: agentcore.PlatformVersion.V2,
});
```

## Properties

- `V1`: [PlatformVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.PlatformVersion.html) (required) (static) — Platform version V1 (the create-time default).

- `V2`: [PlatformVersion](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.PlatformVersion.html) (required) (static) — Platform version V2 (the new AgentCore Runtime — elastic, optimized, consistently fast starts).

- `value`: string (required) — The platform version string value.

## Methods

- `of(value: string): PlatformVersion // chainable` (static) — Use a custom platform version not yet defined in this class.

  **Parameters**

  - `value` — The platform version string value.

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