@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 17 lines 679 Bytes
Raw
1 import * as iotfleetwise from "@distilled.cloud/aws/iotfleetwise";
2 import * as Layer from "effect/Layer";
3 import { makeFleetWiseResourceHttpBinding } from "./BindingHttp.ts";
4 import type { Fleet } from "./Fleet.ts";
5 import { ListVehiclesInFleet } from "./ListVehiclesInFleet.ts";
6
7 export const ListVehiclesInFleetHttp = Layer.effect(
8 ListVehiclesInFleet,
9 makeFleetWiseResourceHttpBinding({
10 tag: "AWS.IoTFleetWise.ListVehiclesInFleet",
11 operation: iotfleetwise.listVehiclesInFleet,
12 actions: ["iotfleetwise:ListVehiclesInFleet"],
13 requestKey: "fleetId",
14 identifier: (fleet: Fleet) => fleet.fleetId,
15 resources: (fleet: Fleet) => [fleet.fleetArn],
16 }),
17 );