getDevice method

Future<GetDeviceResponse> getDevice({
  1. required String id,
})

Returns information for a thin client device.

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

Parameter id : The ID of the device for which to return information.

Implementation

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