The best way to control Claude Code, Codex and more from any computer or phone

main
ts 16 lines 692 Bytes
Raw
1 import * as iotfleetwise from "@distilled.cloud/aws/iotfleetwise";
2 import * as Layer from "effect/Layer";
3 import { BatchUpdateVehicle } from "./BatchUpdateVehicle.ts";
4 import { makeFleetWiseAccountHttpBinding } from "./BindingHttp.ts";
5
6 export const BatchUpdateVehicleHttp = Layer.effect(
7 BatchUpdateVehicle,
8 makeFleetWiseAccountHttpBinding({
9 tag: "AWS.IoTFleetWise.BatchUpdateVehicle",
10 operation: iotfleetwise.batchUpdateVehicle,
11 // The vehicle names are runtime arguments, so the grant is the
12 // account-wide vehicle pattern.
13 actions: ["iotfleetwise:BatchUpdateVehicle", "iotfleetwise:UpdateVehicle"],
14 resources: ["arn:aws:iotfleetwise:*:*:vehicle/*"],
15 }),
16 );