AddEndpointOptions

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

Bases: object

Options for adding an endpoint to the runtime.

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

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

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

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

Default:
  • No description

version

Override the runtime version for this endpoint.

Default:

1