deleteWorker method
Deletes a worker.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerErrorException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter farmId :
The farm ID of the worker to delete.
Parameter fleetId :
The fleet ID of the worker to delete.
Parameter workerId :
The worker ID of the worker to delete.
Implementation
Future<void> deleteWorker({
required String farmId,
required String fleetId,
required String workerId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/2023-10-12/farms/${Uri.encodeComponent(farmId)}/fleets/${Uri.encodeComponent(fleetId)}/workers/${Uri.encodeComponent(workerId)}',
exceptionFnMap: _exceptionFns,
);
}