updateDevices method

Future<void> updateDevices({
  1. required String deviceFleetName,
  2. required List<Device> devices,
})

Updates one or more devices in a fleet.

Parameter deviceFleetName : The name of the fleet the devices belong to.

Parameter devices : List of devices to register with Edge Manager agent.

Implementation

Future<void> updateDevices({
  required String deviceFleetName,
  required List<Device> devices,
}) async {
  ArgumentError.checkNotNull(deviceFleetName, 'deviceFleetName');
  _s.validateStringLength(
    'deviceFleetName',
    deviceFleetName,
    1,
    63,
    isRequired: true,
  );
  ArgumentError.checkNotNull(devices, 'devices');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.UpdateDevices'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DeviceFleetName': deviceFleetName,
      'Devices': devices,
    },
  );
}