Operation to list the endpoints of a harness.
Parameters:
-
harness_id
(HarnessId)
–
The ID of the harness whose endpoints are listed.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results to return in a single call.
-
next_token
(Optional[NextToken], default:
None
)
–
The token for the next set of results.
Raises:
Source code in docs_src/capo_bedrock_agentcore_control/_services/bedrock_agent_core_control.py
| def list_harness_endpoints(
self,
harness_id: "capo_bedrock_agentcore_control.types.harness_id.HarnessId",
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = None,
max_results: Optional[
"capo_bedrock_agentcore_control.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_bedrock_agentcore_control.types.next_token.NextToken"
] = None,
) -> "capo_bedrock_agentcore_control.types.list_harness_endpoints_response.ListHarnessEndpointsResponse":
"""<p>Operation to list the endpoints of a harness.</p>
Args:
harness_id: <p>The ID of the harness whose endpoints are listed.</p>
max_results: <p>The maximum number of results to return in a single call.</p>
next_token: <p>The token for the next set of results.</p>
Raises:
capo_bedrock_agentcore_control.errors.access_denied_exception.AccessDeniedException: <p>This exception is thrown when a request is denied per access permissions</p>
capo_bedrock_agentcore_control.errors.internal_server_exception.InternalServerException: <p>This exception is thrown if there was an unexpected error during processing of request</p>
capo_bedrock_agentcore_control.errors.resource_not_found_exception.ResourceNotFoundException: <p>This exception is thrown when a resource referenced by the operation does not exist</p>
capo_bedrock_agentcore_control.errors.throttling_exception.ThrottlingException: <p>This exception is thrown when the number of requests exceeds the limit</p>
capo_bedrock_agentcore_control.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by the service.</p>
capo_bedrock_agentcore_control.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_bedrock_agentcore_control.types.list_harness_endpoints_request.ListHarnessEndpointsRequest]",
) -> OperationResponse[
"capo_bedrock_agentcore_control.types.list_harness_endpoints_response.ListHarnessEndpointsResponse"
]:
import capo_bedrock_agentcore_control._operations.amazon_bedrock_agent_core_control.list_harness_endpoints
output, http_response = (
capo_bedrock_agentcore_control._operations.amazon_bedrock_agent_core_control.list_harness_endpoints.list_harness_endpoints(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListHarnessEndpoints")
)
input_: capo_bedrock_agentcore_control.types.list_harness_endpoints_request.ListHarnessEndpointsRequest = {
"harness_id": harness_id
}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|