本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
创建多 FleetWise 辆 AWS 物联网车辆
您可以使用 BatchCreateVehicleAPI 操作同时创建多辆车辆。下面的示例使用了 AWS CLI。
要创建多辆车,请运行以下命令。
file-name
替换为包含多辆车配置的.json 文件的名称。
aws iotfleetwise batch-create-vehicle --cli-input-json file://
file-name
.json
例 — 车辆配置
{ "vehicles": [ { "associationBehavior": "
associationBehavior
", "vehicleName": "vehicle-name
", "modelManifestArn": "model-manifest-ARN
", "decoderManifestArn": "decoder-manifest-ARN
", "attributes": { "key
": "value
" } }, { "associationBehavior": "associationBehavior
", "vehicleName": "vehicle-name
", "modelManifestArn": "model-manifest-ARN
", "decoderManifestArn": "decoder-manifest-ARN
", "attributes": { "key
": "value
" } } ] }
可以为每个批处理操作创建最多 10 辆车。有关配置文件的更多信息,请参阅创建物 AWS 联网 FleetWise 汽车。
如果您启用了使用客户托管 AWS KMS 密钥的加密,请包括以下政策声明,以便您的角色可以调用 BatchCreateVehicle
API 操作。