Skip to content

batch_update_vehicle

batch_update_vehicle(
    vehicles: updateVehicleRequestItems,
    *,
    config_overrides: Optional[IoTFleetWiseClientConfig] = None,
) -> BatchUpdateVehicleResponse

Updates a group, or batch, of vehicles.

You must specify a decoder manifest and a vehicle model (model manifest) for each vehicle.

For more information, see Update multiple vehicles (AWS CLI) in the Amazon Web Services IoT FleetWise Developer Guide.

Parameters:

  • vehicles (updateVehicleRequestItems) –

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

Raises:

Source code in docs_src/capo_iotfleetwise/_services/io_t_fleet_wise.py
def batch_update_vehicle(
    self,
    vehicles: "capo_iotfleetwise.types.update_vehicle_request_items.updateVehicleRequestItems",
    *,
    config_overrides: Optional[IoTFleetWiseClientConfig] = None,
) -> "capo_iotfleetwise.types.batch_update_vehicle_response.BatchUpdateVehicleResponse":
    """<p> Updates a group, or batch, of vehicles.</p> <note> <p> You must specify a decoder manifest and a vehicle model (model manifest) for each vehicle. </p> </note> <p>For more information, see <a href="https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/update-vehicles-cli.html">Update multiple vehicles (AWS CLI)</a> in the <i>Amazon Web Services IoT FleetWise Developer Guide</i>. </p>

    Args:
        vehicles: <p> A list of information about the vehicles to update. For more information, see the API data type.</p>

    Raises:
        capo_iotfleetwise.errors.internal_server_exception.InternalServerException: <p>The request couldn't be completed because the server temporarily failed.</p>
        capo_iotfleetwise.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permission to perform this action.</p>
        capo_iotfleetwise.errors.limit_exceeded_exception.LimitExceededException: <p>A service quota was exceeded. </p>
        capo_iotfleetwise.errors.throttling_exception.ThrottlingException: <p>The request couldn't be completed due to throttling.</p>
        capo_iotfleetwise.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_iotfleetwise.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_iotfleetwise.types.batch_update_vehicle_request.BatchUpdateVehicleRequest]",
    ) -> OperationResponse[
        "capo_iotfleetwise.types.batch_update_vehicle_response.BatchUpdateVehicleResponse"
    ]:
        import capo_iotfleetwise._operations.io_t_autobahn_control_plane.batch_update_vehicle

        output, http_response = (
            capo_iotfleetwise._operations.io_t_autobahn_control_plane.batch_update_vehicle.batch_update_vehicle(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("BatchUpdateVehicle")
    )
    input_: capo_iotfleetwise.types.batch_update_vehicle_request.BatchUpdateVehicleRequest = {
        "vehicles": vehicles
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output