Skip to content
v2.278.0

RuntimeEndpointProps Struct ​

Properties for creating a Bedrock Agent Core Runtime Endpoint resource.

Example ​

ts
// Reference an existing runtime by its ID
const existingRuntimeId = "abc123-runtime-id"; // The ID of an existing runtime

// Create a standalone endpoint
const endpoint = new agentcore.RuntimeEndpoint(this, "MyEndpoint", {
  endpointName: "production",
  agentRuntimeId: existingRuntimeId,
  agentRuntimeVersion: "1", // Specify which version to use
  description: "Production endpoint for existing runtime"
});
python
# Reference an existing runtime by its ID
existing_runtime_id = "abc123-runtime-id" # The ID of an existing runtime

# Create a standalone endpoint
endpoint = agentcore.RuntimeEndpoint(self, "MyEndpoint",
    endpoint_name="production",
    agent_runtime_id=existing_runtime_id,
    agent_runtime_version="1",  # Specify which version to use
    description="Production endpoint for existing runtime"
)
java
// Reference an existing runtime by its ID
String existingRuntimeId = "abc123-runtime-id"; // The ID of an existing runtime

// Create a standalone endpoint
RuntimeEndpoint endpoint = RuntimeEndpoint.Builder.create(this, "MyEndpoint")
        .endpointName("production")
        .agentRuntimeId(existingRuntimeId)
        .agentRuntimeVersion("1") // Specify which version to use
        .description("Production endpoint for existing runtime")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// Reference an existing runtime by its ID
var existingRuntimeId = "abc123-runtime-id"; // The ID of an existing runtime

// Create a standalone endpoint
var endpoint = new RuntimeEndpoint(this, "MyEndpoint", new RuntimeEndpointProps {
    EndpointName = "production",
    AgentRuntimeId = existingRuntimeId,
    AgentRuntimeVersion = "1",  // Specify which version to use
    Description = "Production endpoint for existing runtime"
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// Reference an existing runtime by its ID
existingRuntimeId := "abc123-runtime-id" // The ID of an existing runtime

// Create a standalone endpoint
endpoint := agentcore.NewRuntimeEndpoint(this, jsii.String("MyEndpoint"), &RuntimeEndpointProps{
	EndpointName: jsii.String("production"),
	AgentRuntimeId: existingRuntimeId,
	AgentRuntimeVersion: jsii.String("1"),
	 // Specify which version to use
	Description: jsii.String("Production endpoint for existing runtime"),
})

Properties ​

agentRuntimeIdstringagent_runtime_idstragentRuntimeIdStringAgentRuntimeIdstringAgentRuntimeId*string required #
The ID of the agent runtime to associate with this endpoint This is the unique identifier of the runtime resource Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,99}-[a-zA-Z0-9]{10}$.
agentRuntimeVersionoptionalstringagent_runtime_versionoptionalstragentRuntimeVersionoptionalStringAgentRuntimeVersionoptionalstringAgentRuntimeVersionoptional*string = "1" #
The version of the agent runtime to use for this endpoint If not specified, the endpoint will point to version "1" of the runtime.

Pattern: ^([1-9][0-9]{0,4})$

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
Optional description for the agent runtime endpoint Length Minimum: 1 , Maximum: 256.

Default: No description

endpointNameoptionalstringendpoint_nameoptionalstrendpointNameoptionalStringEndpointNameoptionalstringEndpointNameoptional*string #
The name of the agent runtime endpoint Valid characters are a-z, A-Z, 0-9, _ (underscore) Must start with a letter and can be up to 48 characters long Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$.

Default: auto generate

tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string #
Tags for the agent runtime endpoint A list of key:value pairs of tags to apply to this RuntimeEndpoint resource Pattern: ^[a-zA-Z0-9\s._:/=+@-]*$.

Default: {} - no tags