Skip to content
v2.278.0

AssetModelPropertyProperty Struct ​

Contains information about an asset model property.

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 assetModelPropertyProperty: iotsitewise.CfnAssetModel.AssetModelPropertyProperty = {
  dataType: 'dataType',
  name: 'name',
  type: {
    typeName: 'typeName',

    // the properties below are optional
    attribute: {
      defaultValue: 'defaultValue',
    },
    metric: {
      expression: 'expression',
      variables: [{
        name: 'name',
        value: {
          hierarchyExternalId: 'hierarchyExternalId',
          hierarchyId: 'hierarchyId',
          hierarchyLogicalId: 'hierarchyLogicalId',
          propertyExternalId: 'propertyExternalId',
          propertyId: 'propertyId',
          propertyLogicalId: 'propertyLogicalId',
          propertyPath: [{
            name: 'name',
          }],
        },
      }],
      window: {
        tumbling: {
          interval: 'interval',

          // the properties below are optional
          offset: 'offset',
        },
      },
    },
    transform: {
      expression: 'expression',
      variables: [{
        name: 'name',
        value: {
          hierarchyExternalId: 'hierarchyExternalId',
          hierarchyId: 'hierarchyId',
          hierarchyLogicalId: 'hierarchyLogicalId',
          propertyExternalId: 'propertyExternalId',
          propertyId: 'propertyId',
          propertyLogicalId: 'propertyLogicalId',
          propertyPath: [{
            name: 'name',
          }],
        },
      }],
    },
  },

  // the properties below are optional
  dataTypeSpec: 'dataTypeSpec',
  externalId: 'externalId',
  id: 'id',
  logicalId: 'logicalId',
  unit: 'unit',
};
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

asset_model_property_property = iotsitewise.CfnAssetModel.AssetModelPropertyProperty(
    data_type="dataType",
    name="name",
    type=iotsitewise.CfnAssetModel.PropertyTypeProperty(
        type_name="typeName",

        # the properties below are optional
        attribute=iotsitewise.CfnAssetModel.AttributeProperty(
            default_value="defaultValue"
        ),
        metric=iotsitewise.CfnAssetModel.MetricProperty(
            expression="expression",
            variables=[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"
                    )]
                )
            )],
            window=iotsitewise.CfnAssetModel.MetricWindowProperty(
                tumbling=iotsitewise.CfnAssetModel.TumblingWindowProperty(
                    interval="interval",

                    # the properties below are optional
                    offset="offset"
                )
            )
        ),
        transform=iotsitewise.CfnAssetModel.TransformProperty(
            expression="expression",
            variables=[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"
                    )]
                )
            )]
        )
    ),

    # the properties below are optional
    data_type_spec="dataTypeSpec",
    external_id="externalId",
    id="id",
    logical_id="logicalId",
    unit="unit"
)
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.*;

AssetModelPropertyProperty assetModelPropertyProperty = AssetModelPropertyProperty.builder()
        .dataType("dataType")
        .name("name")
        .type(PropertyTypeProperty.builder()
                .typeName("typeName")

                // the properties below are optional
                .attribute(AttributeProperty.builder()
                        .defaultValue("defaultValue")
                        .build())
                .metric(MetricProperty.builder()
                        .expression("expression")
                        .variables(List.of(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()))
                        .window(MetricWindowProperty.builder()
                                .tumbling(TumblingWindowProperty.builder()
                                        .interval("interval")

                                        // the properties below are optional
                                        .offset("offset")
                                        .build())
                                .build())
                        .build())
                .transform(TransformProperty.builder()
                        .expression("expression")
                        .variables(List.of(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()))
                        .build())
                .build())

        // the properties below are optional
        .dataTypeSpec("dataTypeSpec")
        .externalId("externalId")
        .id("id")
        .logicalId("logicalId")
        .unit("unit")
        .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 assetModelPropertyProperty = new AssetModelPropertyProperty {
    DataType = "dataType",
    Name = "name",
    Type = new PropertyTypeProperty {
        TypeName = "typeName",

        // the properties below are optional
        Attribute = new AttributeProperty {
            DefaultValue = "defaultValue"
        },
        Metric = new MetricProperty {
            Expression = "expression",
            Variables = new [] { 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"
                    } }
                }
            } },
            Window = new MetricWindowProperty {
                Tumbling = new TumblingWindowProperty {
                    Interval = "interval",

                    // the properties below are optional
                    Offset = "offset"
                }
            }
        },
        Transform = new TransformProperty {
            Expression = "expression",
            Variables = new [] { 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"
                    } }
                }
            } }
        }
    },

    // the properties below are optional
    DataTypeSpec = "dataTypeSpec",
    ExternalId = "externalId",
    Id = "id",
    LogicalId = "logicalId",
    Unit = "unit"
};
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"

assetModelPropertyProperty := &AssetModelPropertyProperty{
	DataType: jsii.String("dataType"),
	Name: jsii.String("name"),
	Type: &PropertyTypeProperty{
		TypeName: jsii.String("typeName"),

		// the properties below are optional
		Attribute: &AttributeProperty{
			DefaultValue: jsii.String("defaultValue"),
		},
		Metric: &MetricProperty{
			Expression: jsii.String("expression"),
			Variables: []interface{}{
				&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"),
							},
						},
					},
				},
			},
			Window: &MetricWindowProperty{
				Tumbling: &TumblingWindowProperty{
					Interval: jsii.String("interval"),

					// the properties below are optional
					Offset: jsii.String("offset"),
				},
			},
		},
		Transform: &TransformProperty{
			Expression: jsii.String("expression"),
			Variables: []interface{}{
				&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"),
							},
						},
					},
				},
			},
		},
	},

	// the properties below are optional
	DataTypeSpec: jsii.String("dataTypeSpec"),
	ExternalId: jsii.String("externalId"),
	Id: jsii.String("id"),
	LogicalId: jsii.String("logicalId"),
	Unit: jsii.String("unit"),
}

Properties ​

dataTypestringdata_typestrdataTypeStringDataTypestringDataType*string required #
The data type of the asset model property.

If you specify STRUCT , you must also specify dataTypeSpec to identify the type of the structure for this property.

dataTypeSpecoptionalstringdata_type_specoptionalstrdataTypeSpecoptionalStringDataTypeSpecoptionalstringDataTypeSpecoptional*string #
The data type of the structure for this property.

This parameter exists on properties that have the STRUCT data type.

externalIdoptionalstringexternal_idoptionalstrexternalIdoptionalStringExternalIdoptionalstringExternalIdoptional*string #
The external ID of the asset property.

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

One of ExternalId or LogicalId must be specified.

idoptionalstringidoptionalstridoptionalStringIdoptionalstringIdoptional*string #
The ID of the property.

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

logicalIdoptionalstringlogical_idoptionalstrlogicalIdoptionalStringLogicalIdoptionalstringLogicalIdoptional*string #
The `LogicalID` of the asset model property.

One of ExternalId or LogicalId must be specified.

namestringnamestrnameStringNamestringName*string required #
The name of the asset model property.
Contains a property type, which can be one of `attribute` , `measurement` , `metric` , or `transform` .
unitoptionalstringunitoptionalstrunitoptionalStringUnitoptionalstringUnitoptional*string #
The unit of the asset model property, such as `Newtons` or `RPM` .