AddEndpointOptions

class aws_cdk.aws_bedrock_agentcore_alpha.AddEndpointOptions(*, description=None, version=None)

Bases: object

(experimental) Options for adding an endpoint to the runtime.

Parameters:
  • description (Optional[str]) – (experimental) Description for the endpoint, Must be between 1 and 1200 characters. Default: - No description

  • version (Optional[str]) – (experimental) Override the runtime version for this endpoint. Default: 1

Stability:

experimental

ExampleMetadata:

fixture=default infused

Example:

repository = ecr.Repository(self, "TestRepository",
    repository_name="test-agent-runtime"
)

agent_runtime_artifact_new = agentcore.AgentRuntimeArtifact.from_ecr_repository(repository, "v2.0.0")

runtime = agentcore.Runtime(self, "MyAgentRuntime",
    runtime_name="myAgent",
    agent_runtime_artifact=agent_runtime_artifact_new
)

staging_endpoint = runtime.add_endpoint("staging",
    version="2",
    description="Staging environment for testing new version"
)

Attributes

description

(experimental) Description for the endpoint, Must be between 1 and 1200 characters.

Default:
  • No description

Stability:

experimental

version

(experimental) Override the runtime version for this endpoint.

Default:

1

Stability:

experimental