getWirelessDevice method

Future<GetWirelessDeviceResponse> getWirelessDevice({
  1. required String identifier,
  2. required WirelessDeviceIdType identifierType,
})

Gets information about a wireless device.

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

Parameter identifier : The identifier of the wireless device to get.

Parameter identifierType : The type of identifier used in identifier.

Implementation

Future<GetWirelessDeviceResponse> getWirelessDevice({
  required String identifier,
  required WirelessDeviceIdType identifierType,
}) async {
  final $query = <String, List<String>>{
    'identifierType': [identifierType.value],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/wireless-devices/${Uri.encodeComponent(identifier)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetWirelessDeviceResponse.fromJson(response);
}