Skip to content
v2.274.0

PlatformVersion Class ​

The platform version of the Agent Runtime.

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 ​

Platform version V1 (the create-time default).
Platform version V2 (the new AgentCore Runtime — elastic, optimized, consistently fast starts).
valuestringvaluestrvalueStringValuestringValue*stringrequired#
The platform version string value.

Methods ​

of(value: string): PlatformVersion // chainable@staticmethod def of(value: str) -> PlatformVersionpublic static PlatformVersion of(String value)public static PlatformVersion Of(string value)func Of(Value *string) PlatformVersionstatic#
Use a custom platform version not yet defined in this class.
1 parameter

Parameters

  • valuevaluevaluevalueValue — The platform version string value.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#
Returns the string value.