deleteAgentRuntimeEndpoint method

Future<DeleteAgentRuntimeEndpointResponse> deleteAgentRuntimeEndpoint({
  1. required String agentRuntimeId,
  2. required String endpointName,
  3. String? clientToken,
})

Deletes an AAgentCore Runtime endpoint.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter agentRuntimeId : The unique identifier of the AgentCore Runtime associated with the endpoint.

Parameter endpointName : The name of the AgentCore Runtime endpoint to delete.

Parameter clientToken : A unique, case-sensitive identifier to ensure idempotency of the request.

Implementation

Future<DeleteAgentRuntimeEndpointResponse> deleteAgentRuntimeEndpoint({
  required String agentRuntimeId,
  required String endpointName,
  String? clientToken,
}) async {
  final $query = <String, List<String>>{
    if (clientToken != null) 'clientToken': [clientToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/runtimes/${Uri.encodeComponent(agentRuntimeId)}/runtime-endpoints/${Uri.encodeComponent(endpointName)}/',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return DeleteAgentRuntimeEndpointResponse.fromJson(response);
}