Skip to content
v2.274.0

AddEndpointOptions Struct ​

Options for adding an endpoint to the runtime.

Example ​

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

const agentRuntimeArtifactNew = agentcore.AgentRuntimeArtifact.fromEcrRepository(repository, "v2.0.0");

const runtime = new agentcore.Runtime(this, "MyAgentRuntime", {
  runtimeName: "myAgent",
  agentRuntimeArtifact: agentRuntimeArtifactNew,
});

const stagingEndpoint = runtime.addEndpoint("staging", {
  version: "2",
  description: "Staging environment for testing new version"
});

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
Description for the endpoint, Must be between 1 and 1200 characters.

Default: No description

versionoptionalstringversionoptionalstrversionoptionalStringVersionoptionalstringVersionoptional*string= 1#
Override the runtime version for this endpoint.