Skip to content

BatchCreateVehicle

Source: src/AWS/IoTFleetWise/BatchCreateVehicle.ts

Runtime binding for the BatchCreateVehicle operation (IAM action iotfleetwise:BatchCreateVehicle), account-level.

Creates up to 10 vehicles in one call — the data plane of vehicle provisioning pipelines (each item names its model and decoder manifest). Per-item failures are returned in the response errors list, not the error channel. Provide the implementation with Effect.provide(AWS.IoTFleetWise.BatchCreateVehicleHttp).

const batchCreateVehicle = yield* IoTFleetWise.BatchCreateVehicle();
const { vehicles, errors } = yield* batchCreateVehicle({
vehicles: [
{
vehicleName: "vin-1HGBH41JXMN109186",
modelManifestArn,
decoderManifestArn,
},
],
});