deleteHarnessEndpoint method

Future<DeleteHarnessEndpointResponse> deleteHarnessEndpoint({
  1. required String endpointName,
  2. required String harnessId,
  3. String? clientToken,
})

Operation to delete a harness endpoint.

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

Parameter endpointName : The name of the endpoint to delete.

Parameter harnessId : The ID of the harness that the endpoint belongs to.

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

Implementation

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