aws-cdk-lib.aws_iotsitewise.CfnAssetModel.VariableValueProperty

interface VariableValueProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTSiteWise.CfnAssetModel.VariableValueProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotsitewise#CfnAssetModel_VariableValueProperty
Javasoftware.amazon.awscdk.services.iotsitewise.CfnAssetModel.VariableValueProperty
Pythonaws_cdk.aws_iotsitewise.CfnAssetModel.VariableValueProperty
TypeScript aws-cdk-lib » aws_iotsitewise » CfnAssetModel » VariableValueProperty

Identifies a property value used in an expression.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotsitewise as iotsitewise } from 'aws-cdk-lib';
const variableValueProperty: iotsitewise.CfnAssetModel.VariableValueProperty = {
  propertyLogicalId: 'propertyLogicalId',

  // the properties below are optional
  hierarchyLogicalId: 'hierarchyLogicalId',
};

Properties

NameTypeDescription
propertyLogicalIdstringThe LogicalID of the property to use as the variable.
hierarchyLogicalId?stringThe LogicalID of the hierarchy to query for the PropertyLogicalID .

propertyLogicalId

Type: string

The LogicalID of the property to use as the variable.


hierarchyLogicalId?

Type: string (optional)

The LogicalID of the hierarchy to query for the PropertyLogicalID .

You use a hierarchyLogicalID instead of a model ID because you can have several hierarchies using the same model and therefore the same property. For example, you might have separately grouped assets that come from the same asset model. For more information, see Defining relationships between assets in the AWS IoT SiteWise User Guide .