Skip to content

ListFleetsForVehicle

Source: src/AWS/IoTFleetWise/ListFleetsForVehicle.ts

Runtime binding for the ListFleetsForVehicle operation (IAM action iotfleetwise:ListFleetsForVehicle), scoped to one Vehicle.

Lists the IDs of the fleets the bound vehicle belongs to. Provide the implementation with Effect.provide(AWS.IoTFleetWise.ListFleetsForVehicleHttp).

const listFleetsForVehicle = yield* IoTFleetWise.ListFleetsForVehicle(vehicle);
const { fleets } = yield* listFleetsForVehicle();