更新多輛車(AWS CLI) - AWS IoT FleetWise

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

更新多輛車(AWS CLI)

您可以使用 BatchUpdateVehicleAPI 操作一次更新多輛現有車輛。下列為使用 AWS CLI的範例。

若要更新多輛車,請執行以下指令。

將檔案名稱取代為包含多輛車配置的 JSON 檔案名稱。

aws iotfleetwise batch-update-vehicle --cli-input-json file://file-name.json
範例 車輛配置
{ "vehicles": [ { "vehicleName": "vehicle-name", "modelManifestArn": "model-manifest-arn", "decoderManifestArn": "decoder-manifest-arn", "mergeAttributes": true, "attributes": { "key": "value" } }, { "vehicleName": "vehicle-name", "modelManifestArn": "model-manifest-arn", "decoderManifestArn": "decoder-manifest-arn", "mergeAttributes": true, "attributes": { "key": "value" } } ] }

每批作業最多可更新 10 輛車輛。若要取得有關每輛車配置的更多資訊,請參閱〈〉更新車輛(AWS CLI)