batchUpdateVehicle method

Future<BatchUpdateVehicleResponse> batchUpdateVehicle({
  1. required List<UpdateVehicleRequestItem> vehicles,
})

Updates a group, or batch, of vehicles. For more information, see Update multiple vehicles (AWS CLI) in the Amazon Web Services IoT FleetWise Developer Guide.

May throw AccessDeniedException. May throw InternalServerException. May throw LimitExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter vehicles : A list of information about the vehicles to update. For more information, see the API data type.

Implementation

Future<BatchUpdateVehicleResponse> batchUpdateVehicle({
  required List<UpdateVehicleRequestItem> vehicles,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'IoTAutobahnControlPlane.BatchUpdateVehicle'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'vehicles': vehicles,
    },
  );

  return BatchUpdateVehicleResponse.fromJson(jsonResponse.body);
}