| 1 | import * as iotfleetwise from "@distilled.cloud/aws/iotfleetwise"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { BatchCreateVehicle } from "./BatchCreateVehicle.ts"; |
| 4 | import { makeFleetWiseAccountHttpBinding } from "./BindingHttp.ts"; |
| 5 | |
| 6 | export const BatchCreateVehicleHttp = Layer.effect( |
| 7 | BatchCreateVehicle, |
| 8 | makeFleetWiseAccountHttpBinding({ |
| 9 | tag: "AWS.IoTFleetWise.BatchCreateVehicle", |
| 10 | operation: iotfleetwise.batchCreateVehicle, |
| 11 | // The vehicle ARNs only exist after the call; iot:CreateThing / |
| 12 | // iot:DescribeThing are dependent actions when the association |
| 13 | // behavior auto-creates the backing IoT thing. |
| 14 | actions: [ |
| 15 | "iotfleetwise:BatchCreateVehicle", |
| 16 | "iotfleetwise:CreateVehicle", |
| 17 | "iot:CreateThing", |
| 18 | "iot:DescribeThing", |
| 19 | ], |
| 20 | }), |
| 21 | ); |