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