Creates 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 Create multiple vehicles (AWS CLI) in the Amazon Web Services IoT FleetWise Developer Guide.
Parameters:
-
vehicles
(createVehicleRequestItems)
–
A list of information about each vehicle to create. For more information, see the API data type.
Raises:
Source code in docs_src/capo_iotfleetwise/_services/async_io_t_fleet_wise.py
| async def batch_create_vehicle(
self,
vehicles: "capo_iotfleetwise.types.create_vehicle_request_items.createVehicleRequestItems",
*,
config_overrides: Optional[AsyncIoTFleetWiseClientConfig] = None,
) -> "capo_iotfleetwise.types.batch_create_vehicle_response.BatchCreateVehicleResponse":
"""<p> Creates 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/create-vehicles-cli.html">Create 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 each vehicle to create. 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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_iotfleetwise.types.batch_create_vehicle_request.BatchCreateVehicleRequest]",
) -> AsyncOperationResponse[
"capo_iotfleetwise.types.batch_create_vehicle_response.BatchCreateVehicleResponse"
]:
import capo_iotfleetwise._operations.io_t_autobahn_control_plane.batch_create_vehicle
(
output,
http_response,
) = await capo_iotfleetwise._operations.io_t_autobahn_control_plane.batch_create_vehicle.async_batch_create_vehicle(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchCreateVehicle")
)
input_: capo_iotfleetwise.types.batch_create_vehicle_request.BatchCreateVehicleRequest = {
"vehicles": vehicles
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|