Unable to create Measurement definition in Asset Model properties (IoT_Site_Wise) through AWS Cloud Formation Template

0

Resources: AssetModel: Type: AWS::IoTSiteWise::AssetModel Properties: AssetModelName: Testmodel AssetModelDescription: Testmodel AssetModelProperties: - LogicalId: MyLogicalId_for_Accumulator_Level Name: Accumulator Level DataType: INTEGER DataTypeSpec: Accumulator Level Type: TypeName: Measurement

Unable to create Measurement definition in Asset Model properties (IoT_Site_Wise) through AWS Cloud Formation Template. Tried to create in many ways by changing Logical id, Datatype, Name etc. Please help me to create Measurement definitions. It will be a great help if anyone can provide sample template for Measurement creations.

已提问 2 年前262 查看次数
1 回答
0

DataTypeSpec is for when the STRUCT DataType is being used. Since your property is an Integer, you can omit this property.

Resources:
  AssetModel:
    Type: AWS::IoTSiteWise::AssetModel
    Properties:
      AssetModelName: Testmodel
      AssetModelDescription: Testmodel
      AssetModelProperties:
        - LogicalId: MyLogicalId_for_Accumulator_Level
          Name: Accumulator Level
          DataType: INTEGER
          Type:
            TypeName: Measurement
AWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则