Skip to content
v2.278.0

VariableValueProperty Struct ​

Identifies a property value used in an expression.

Example ​

ts
// 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 = {
  hierarchyExternalId: 'hierarchyExternalId',
  hierarchyId: 'hierarchyId',
  hierarchyLogicalId: 'hierarchyLogicalId',
  propertyExternalId: 'propertyExternalId',
  propertyId: 'propertyId',
  propertyLogicalId: 'propertyLogicalId',
  propertyPath: [{
    name: 'name',
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotsitewise as iotsitewise

variable_value_property = iotsitewise.CfnAssetModel.VariableValueProperty(
    hierarchy_external_id="hierarchyExternalId",
    hierarchy_id="hierarchyId",
    hierarchy_logical_id="hierarchyLogicalId",
    property_external_id="propertyExternalId",
    property_id="propertyId",
    property_logical_id="propertyLogicalId",
    property_path=[iotsitewise.CfnAssetModel.PropertyPathDefinitionProperty(
        name="name"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotsitewise.*;

VariableValueProperty variableValueProperty = VariableValueProperty.builder()
        .hierarchyExternalId("hierarchyExternalId")
        .hierarchyId("hierarchyId")
        .hierarchyLogicalId("hierarchyLogicalId")
        .propertyExternalId("propertyExternalId")
        .propertyId("propertyId")
        .propertyLogicalId("propertyLogicalId")
        .propertyPath(List.of(PropertyPathDefinitionProperty.builder()
                .name("name")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTSiteWise;

var variableValueProperty = new VariableValueProperty {
    HierarchyExternalId = "hierarchyExternalId",
    HierarchyId = "hierarchyId",
    HierarchyLogicalId = "hierarchyLogicalId",
    PropertyExternalId = "propertyExternalId",
    PropertyId = "propertyId",
    PropertyLogicalId = "propertyLogicalId",
    PropertyPath = new [] { new PropertyPathDefinitionProperty {
        Name = "name"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

variableValueProperty := &VariableValueProperty{
	HierarchyExternalId: jsii.String("hierarchyExternalId"),
	HierarchyId: jsii.String("hierarchyId"),
	HierarchyLogicalId: jsii.String("hierarchyLogicalId"),
	PropertyExternalId: jsii.String("propertyExternalId"),
	PropertyId: jsii.String("propertyId"),
	PropertyLogicalId: jsii.String("propertyLogicalId"),
	PropertyPath: []interface{}{
		&PropertyPathDefinitionProperty{
			Name: jsii.String("name"),
		},
	},
}

Properties ​

hierarchyExternalIdoptionalstringhierarchy_external_idoptionalstrhierarchyExternalIdoptionalStringHierarchyExternalIdoptionalstringHierarchyExternalIdoptional*string #
The external ID of the hierarchy being referenced.

For more information, see Using external IDs in the AWS IoT SiteWise User Guide .

hierarchyIdoptionalstringhierarchy_idoptionalstrhierarchyIdoptionalStringHierarchyIdoptionalstringHierarchyIdoptional*string #
The ID of the hierarchy to query for the property ID.
notes

You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the AWS IoT SiteWise User Guide .

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

hierarchyLogicalIdoptionalstringhierarchy_logical_idoptionalstrhierarchyLogicalIdoptionalStringHierarchyLogicalIdoptionalstringHierarchyLogicalIdoptional*string #
The `LogicalID` of the hierarchy to query for the `PropertyLogicalID` .
notes

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 asset models (hierarchies) in the AWS IoT SiteWise User Guide .

propertyExternalIdoptionalstringproperty_external_idoptionalstrpropertyExternalIdoptionalStringPropertyExternalIdoptionalstringPropertyExternalIdoptional*string #
The external ID of the property being referenced.

For more information, see Using external IDs in the AWS IoT SiteWise User Guide .

propertyIdoptionalstringproperty_idoptionalstrpropertyIdoptionalStringPropertyIdoptionalstringPropertyIdoptional*string #
The ID of the property to use as the variable.
notes

You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the AWS IoT SiteWise User Guide .

This is a return value and can't be set.

propertyLogicalIdoptionalstringproperty_logical_idoptionalstrpropertyLogicalIdoptionalStringPropertyLogicalIdoptionalstringPropertyLogicalIdoptional*string #
The `LogicalID` of the property that is being referenced.
propertyPathoptionalIResolvable | IResolvable | CfnAssetModel.PropertyPathDefinitionProperty[]property_pathoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PropertyPathDefinitionProperty]]]propertyPathoptionalIResolvablePropertyPathoptionalIResolvablePropertyPathoptionalinterface{} #
The path of the property.

Each step of the path is the name of the step. See the following example:

PropertyPath: Name: AssetModelName Name: Composite1 Name: NestedComposite