getWorkload method

Future<GetWorkloadOutput> getWorkload({
  1. required String workloadId,
})

Get an existing workload.

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

Implementation

Future<GetWorkloadOutput> getWorkload({
  required String workloadId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/workloads/${Uri.encodeComponent(workloadId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetWorkloadOutput.fromJson(response);
}