describeDevice method

Future<DescribeDeviceResponse> describeDevice({
  1. required String deviceId,
})

Given a device ID, returns a DescribeDeviceResponse object describing the details of the device.

May throw ResourceNotFoundException. May throw InvalidRequestException. May throw InternalFailureException.

Parameter deviceId : The unique identifier of the device.

Implementation

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