1import * as iotfleetwise from "@distilled.cloud/aws/iotfleetwise";
2import * as Layer from "effect/Layer";
3import { BatchCreateVehicle } from "./BatchCreateVehicle.ts";
4import { makeFleetWiseAccountHttpBinding } from "./BindingHttp.ts";
5
6export 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);