ProductTopicProps
Properties for defining a ProductTopic
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-iot-producttopic
Initializer
using AlibabaCloud.SDK.ROS.CDK.Iot;
new ProductTopicProps {
object Operation,
object ProductKey,
object TopicShortName,
object Desc = null,
object IotInstanceId = null
};
Properties
Name | Type | Description |
---|---|---|
Operation |
object |
Property operation: Operation permissions of devices on the topic category. |
ProductKey |
object |
Property productKey: The unique identifier of the product for which you want to create a topic category. |
TopicShortName |
object |
Property topicShortName: The custom category hierarchy in the topic category. |
Desc |
object |
Property desc: The description of the topic category. |
IotInstanceId |
object |
Property iotInstanceId: Instance ID you purchased. |
Operation
Required
public object Operation { get; set; }
- Type: object
Property operation: Operation permissions of devices on the topic category.
Value options: SUB: Subscribe. Devices can subscribe to the topics of this category. PUB: Publish. Devices can publish messages using the topics of this category. ALL: Subscribe and publish. Devices can subscribe to and publish messages to the topics of this category.
ProductKey
Required
public object ProductKey { get; set; }
- Type: object
Property productKey: The unique identifier of the product for which you want to create a topic category.
TopicShortName
Required
public object TopicShortName { get; set; }
- Type: object
Property topicShortName: The custom category hierarchy in the topic category.
By default, a topic category contains two system defined category hierarchies: productKey and ${deviceName}. Forward slashes (/) are used to delimit the topic hierarchies. The format of a topic category is productKey/${deviceName}/topicShortName. Note The name of each category hierarchy can contain English letters, digits, and underscores (_), and cannot be empty.
Desc
Optional
public object Desc { get; set; }
- Type: object
Property desc: The description of the topic category.
You can enter a description with up to 100 characters.
IotInstanceId
Optional
public object IotInstanceId { get; set; }
- Type: object
Property iotInstanceId: Instance ID you purchased.
Public instances do not need pass this property.