AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::IoTSiteWise::Asset

CfnAsset

Creates 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

import { CfnAsset } from 'aws-cdk-lib/aws-iotsitewise';

Or use the module namespace:

import * as iotsitewise from 'aws-cdk-lib/aws-iotsitewise';
// iotsitewise.CfnAsset

Properties

Configuration passed to the constructor as CfnAssetProps.

assetModelIdRequired
string | IAssetModelRef

The 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* .

assetNameRequired
string

A friendly name for the asset.

assetDescriptionOptional
string

The ID of the asset, in UUID format.

assetExternalIdOptional
string

The 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* .

assetHierarchiesOptional
IResolvable | IResolvable | AssetHierarchyProperty[]

A list of asset hierarchies that each contain a `hierarchyId` . A hierarchy specifies allowed parent/child asset relationships.

assetPropertiesOptional
IResolvable | 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.

tagsOptional
CfnTag[]

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* .

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-iotsitewise
CFN TypeAWS::IoTSiteWise::Asset
Properties7

External Links