Skip to content

GetVehicleStatus

Source: src/AWS/IoTFleetWise/GetVehicleStatus.ts

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

Reads the deployment status of the campaigns, decoder manifests, and state templates associated with the bound vehicle. Provide the implementation with Effect.provide(AWS.IoTFleetWise.GetVehicleStatusHttp).

const getVehicleStatus = yield* IoTFleetWise.GetVehicleStatus(vehicle);
const status = yield* getVehicleStatus();
for (const campaign of status.campaigns ?? []) {
console.log(campaign.campaignName, campaign.status);
}