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.

1 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen