AssetPropertyProperty Struct
Contains asset property information.
| Source | |
|---|---|
| Type last changed |
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 assetPropertyProperty: iotsitewise.CfnAsset.AssetPropertyProperty = {
alias: 'alias',
externalId: 'externalId',
id: 'id',
logicalId: 'logicalId',
notificationState: 'notificationState',
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_property_property = iotsitewise.CfnAsset.AssetPropertyProperty(
alias="alias",
external_id="externalId",
id="id",
logical_id="logicalId",
notification_state="notificationState",
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.*;
AssetPropertyProperty assetPropertyProperty = AssetPropertyProperty.builder()
.alias("alias")
.externalId("externalId")
.id("id")
.logicalId("logicalId")
.notificationState("notificationState")
.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 assetPropertyProperty = new AssetPropertyProperty {
Alias = "alias",
ExternalId = "externalId",
Id = "id",
LogicalId = "logicalId",
NotificationState = "notificationState",
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"
assetPropertyProperty := &AssetPropertyProperty{
Alias: jsii.String("alias"),
ExternalId: jsii.String("externalId"),
Id: jsii.String("id"),
LogicalId: jsii.String("logicalId"),
NotificationState: jsii.String("notificationState"),
Unit: jsii.String("unit"),
}
Properties
The alias that identifies the property, such as an OPC-UA server data stream path (for example, `/company/windfarm/3/turbine/7/temperature` ).
For more information, see Mapping industrial data streams to asset properties in the AWS IoT SiteWise User Guide .
externalIdoptionalstringexternal_idoptionalstrexternalIdoptionalStringExternalIdoptionalstringExternalIdoptional*string #The external ID of the property.
For more information, see Using external IDs in the AWS IoT SiteWise User Guide .
The ID of the asset property.
This is a return value and can't be set.
logicalIdoptionalstringlogical_idoptionalstrlogicalIdoptionalStringLogicalIdoptionalstringLogicalIdoptional*string #The `LogicalID` of the asset property.
notificationStateoptionalstringnotification_stateoptionalstrnotificationStateoptionalStringNotificationStateoptionalstringNotificationStateoptional*string #The MQTT notification state (enabled or disabled) for this asset property.
notes
When the notification state is enabled, AWS IoT SiteWise publishes property value updates to a unique MQTT topic. For more information, see Interacting with other services in the AWS IoT SiteWise User Guide .
If you omit this parameter, the notification state is set to DISABLED .
The unit (such as `Newtons` or `RPM` ) of the asset property.