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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ