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.

asked 2 years ago253 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions