AWS::IoTSiteWise::AssetCreates an asset from an existing asset model. For more information, see [Creating assets](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/create-assets.html) in the *AWS IoT SiteWise User Guide* .
import { CfnAsset } from 'aws-cdk-lib/aws-iotsitewise';Or use the module namespace:
import * as iotsitewise from 'aws-cdk-lib/aws-iotsitewise';
// iotsitewise.CfnAssetConfiguration passed to the constructor as CfnAssetProps.
assetModelIdRequiredstring | IAssetModelRefThe ID of the asset model from which to create the asset. This can be either the actual ID in UUID format, or else `externalId:` followed by the external ID, if it has one. For more information, see [Referencing objects with external IDs](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/object-ids.html#external-id-references) in the *AWS IoT SiteWise User Guide* .
assetNameRequiredstringA friendly name for the asset.
assetDescriptionOptionalstringThe ID of the asset, in UUID format.
assetExternalIdOptionalstringThe external ID of the asset model composite model. For more information, see [Using external IDs](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/object-ids.html#external-ids) in the *AWS IoT SiteWise User Guide* .
assetHierarchiesOptionalIResolvable | IResolvable | AssetHierarchyProperty[]A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.
assetPropertiesOptionalIResolvable | IResolvable | AssetPropertyProperty[]The list of asset properties for the asset. This object doesn't include properties that you define in composite models. You can find composite model properties in the `assetCompositeModels` object.
tagsOptionalCfnTag[]A list of key-value pairs that contain metadata for the asset. For more information, see [Tagging your AWS IoT SiteWise resources](https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html) in the *AWS IoT SiteWise User Guide* .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-iotsitewiseAWS::IoTSiteWise::Asset