Interface ICfnAssetProps
Properties for defining a CfnAsset
.
Namespace: Amazon.CDK.AWS.IoTSiteWise
Assembly: Amazon.CDK.AWS.IoTSiteWise.dll
Syntax (csharp)
public interface ICfnAssetProps
Syntax (vb)
Public Interface ICfnAssetProps
Remarks
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-asset.html
ExampleMetadata: fixture=_generated
Examples
// 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 cfnAssetProps = new CfnAssetProps {
AssetModelId = "assetModelId",
AssetName = "assetName",
// the properties below are optional
AssetDescription = "assetDescription",
AssetHierarchies = new [] { new AssetHierarchyProperty {
ChildAssetId = "childAssetId",
LogicalId = "logicalId"
} },
AssetProperties = new [] { new AssetPropertyProperty {
LogicalId = "logicalId",
// the properties below are optional
Alias = "alias",
NotificationState = "notificationState",
Unit = "unit"
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
AssetDescription | A description for the asset. |
AssetHierarchies | A list of asset hierarchies that each contain a |
AssetModelId | The ID of the asset model from which to create the asset. |
AssetName | A unique, friendly name for the asset. |
AssetProperties | The list of asset properties for the asset. |
Tags | A list of key-value pairs that contain metadata for the asset. |
Properties
AssetDescription
A description for the asset.
virtual string AssetDescription { get; }
Property Value
System.String
Remarks
AssetHierarchies
A list of asset hierarchies that each contain a hierarchyLogicalId
.
virtual object AssetHierarchies { get; }
Property Value
System.Object
Remarks
A hierarchy specifies allowed parent/child asset relationships.
AssetModelId
The ID of the asset model from which to create the asset.
string AssetModelId { get; }
Property Value
System.String
Remarks
AssetName
A unique, friendly name for the asset.
string AssetName { get; }
Property Value
System.String
Remarks
The maximum length is 256 characters with the pattern [^\ u0000-\ u001F\ u007F]+
.
AssetProperties
The list of asset properties for the asset.
virtual object AssetProperties { get; }
Property Value
System.Object
Remarks
This object doesn't include properties that you define in composite models. You can find composite model properties in the assetCompositeModels
object.
Tags
A list of key-value pairs that contain metadata for the asset.
virtual ICfnTag[] Tags { get; }
Property Value
ICfnTag[]
Remarks
For more information, see Tagging your AWS IoT SiteWise resources in the AWS IoT SiteWise User Guide .