https://pulumi.com logo
#getting-started
Title
# getting-started
v

victorious-exabyte-55449

10/03/2023, 2:53 PM
Hi All, Is there anyone having an example code for deploying AWS IoT SiteWise AssetModel using python? I'm able to create AssetModel without any properties (as it's optional), but when I'm adding properties JSON, there I'm not able to figure out how to define
type
attribute in it. I have tried with some string value like
"type": "MEASUREMENT"
, but it failing with an error:
property assetModelProperties[0]/type value {<nil>} has a problem: assetModelProperties[0]/type must be an object
(as that's mandatory field).
i

incalculable-motherboard-92742

10/03/2023, 3:54 PM
Hey! Could you give this a shot (from `aws-native.iotsitewise.AssetModel`:
Copy code
"type": {
        "measurement": {}
      },