Skip to content
v2.278.0

ExpressionVariableProperty Struct ​

Contains expression variable information.

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 expressionVariableProperty: iotsitewise.CfnAssetModel.ExpressionVariableProperty = {
  name: 'name',
  value: {
    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

expression_variable_property = iotsitewise.CfnAssetModel.ExpressionVariableProperty(
    name="name",
    value=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.*;

ExpressionVariableProperty expressionVariableProperty = ExpressionVariableProperty.builder()
        .name("name")
        .value(VariableValueProperty.builder()
                .hierarchyExternalId("hierarchyExternalId")
                .hierarchyId("hierarchyId")
                .hierarchyLogicalId("hierarchyLogicalId")
                .propertyExternalId("propertyExternalId")
                .propertyId("propertyId")
                .propertyLogicalId("propertyLogicalId")
                .propertyPath(List.of(PropertyPathDefinitionProperty.builder()
                        .name("name")
                        .build()))
                .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 expressionVariableProperty = new ExpressionVariableProperty {
    Name = "name",
    Value = 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"

expressionVariableProperty := &ExpressionVariableProperty{
	Name: jsii.String("name"),
	Value: &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 ​

namestringnamestrnameStringNamestringName*string required #
The friendly name of the variable to be used in the expression.
The variable that identifies an asset property from which to use values.