Skip to main content

harness_endpoints

Creates, updates, deletes, gets or lists a harness_endpoints resource.

Overview

Nameharness_endpoints
TypeResource
Idaws.bedrock_agentcore_control.harness_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the endpoint. (pattern: <code>arn:([^:]+)?:bedrock-agentcore:[a-z0-9-]+:[0-9]{12}:harness/[a-zA-Z][a-zA-Z0-9_]{0,39}-[a-zA-Z0-9]{10}/harness-endpoint/[a-zA-Z][a-zA-Z0-9_]{0,47}</code>)
created_atstring (date-time)The timestamp when the endpoint was created.
descriptionstringThe description of the endpoint.
endpoint_namestringThe name of the endpoint. (pattern: <code>[a-zA-Z][a-zA-Z0-9_]{0,47}</code>)
failure_reasonstringThe reason the endpoint's last create or update operation failed.
harness_idstringThe ID of the harness that the endpoint belongs to. (pattern: <code>[a-zA-Z][a-zA-Z0-9_]{0,39}-[a-zA-Z0-9]{10}</code>)
harness_namestringThe name of the harness that the endpoint belongs to. (pattern: <code>[a-zA-Z][a-zA-Z0-9_]{0,39}</code>)
live_versionstringThe harness version that the endpoint is currently serving. (pattern: <code>([1-9][0-9]{0,4})</code>)
statusstringThe status of the endpoint. (CREATING, CREATE_FAILED, UPDATING, UPDATE_FAILED, READY, DELETING, DELETE_FAILED)
target_versionstringThe harness version that the endpoint points to. While an update is in progress, this can differ from the live version until the endpoint finishes transitioning. (pattern: <code>([1-9][0-9]{0,4})</code>)
updated_atstring (date-time)The timestamp when the endpoint was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_harness_endpointselectharness_id, endpoint_name, regionOperation to get a single harness endpoint.
list_harness_endpointsselectharness_id, regionmaxResults, nextTokenOperation to list the endpoints of a harness.
create_harness_endpointinsertharness_id, region, endpointNameOperation to create a harness endpoint.
update_harness_endpointupdateharness_id, endpoint_name, regionOperation to update a harness endpoint.
delete_harness_endpointdeleteharness_id, endpoint_name, regionclientTokenOperation to delete a harness endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpoint_namestringThe name of the endpoint to delete.
harness_idstringThe ID of the harness that the endpoint belongs to.
regionstringAWS region (default: us-east-1)
clientTokenstringA unique, case-sensitive identifier to ensure idempotency of the request.
maxResultsintegerThe maximum number of results to return in a single call.
nextTokenstringThe token for the next set of results.

SELECT examples

Operation to get a single harness endpoint.

SELECT
arn,
created_at,
description,
endpoint_name,
failure_reason,
harness_id,
harness_name,
live_version,
status,
target_version,
updated_at
FROM aws.bedrock_agentcore_control.harness_endpoints
WHERE harness_id = '{{ harness_id }}' -- required
AND endpoint_name = '{{ endpoint_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Operation to create a harness endpoint.

INSERT INTO aws.bedrock_agentcore_control.harness_endpoints (
endpointName,
targetVersion,
description,
clientToken,
tags,
harness_id,
region
)
SELECT
'{{ endpointName }}' /* required */,
'{{ targetVersion }}',
'{{ description }}',
'{{ clientToken }}',
'{{ tags }}',
'{{ harness_id }}',
'{{ region }}'
RETURNING
endpoint
;

UPDATE examples

Operation to update a harness endpoint.

UPDATE aws.bedrock_agentcore_control.harness_endpoints
SET
targetVersion = '{{ targetVersion }}',
description = '{{ description }}',
clientToken = '{{ clientToken }}'
WHERE
harness_id = '{{ harness_id }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND region = '{{ region }}' --required
RETURNING
endpoint;

DELETE examples

Operation to delete a harness endpoint.

DELETE FROM aws.bedrock_agentcore_control.harness_endpoints
WHERE harness_id = '{{ harness_id }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
;