unclaimDevice method
Disassociates a device from your AWS account using its device ID.
May throw ResourceNotFoundException. May throw InvalidRequestException. May throw InternalFailureException.
Parameter deviceId
:
The unique identifier of the device.
Implementation
Future<UnclaimDeviceResponse> unclaimDevice({
required String deviceId,
}) async {
ArgumentError.checkNotNull(deviceId, 'deviceId');
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri: '/devices/${Uri.encodeComponent(deviceId)}/unclaim',
exceptionFnMap: _exceptionFns,
);
return UnclaimDeviceResponse.fromJson(response);
}