ProductTopicProps
Properties for defining a ProductTopic
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-iot-producttopic
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkiot"
&alicloudroscdkiot.ProductTopicProps {
Operation: interface{},
ProductKey: interface{},
TopicShortName: interface{},
Desc: interface{},
IotInstanceId: interface{},
}
Properties
Name | Type | Description |
---|---|---|
Operation |
interface{} |
Property operation: Operation permissions of devices on the topic category. |
ProductKey |
interface{} |
Property productKey: The unique identifier of the product for which you want to create a topic category. |
TopicShortName |
interface{} |
Property topicShortName: The custom category hierarchy in the topic category. |
Desc |
interface{} |
Property desc: The description of the topic category. |
IotInstanceId |
interface{} |
Property iotInstanceId: Instance ID you purchased. |
Operation
Required
Operation interface{}
- Type: interface{}
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
ProductKey interface{}
- Type: interface{}
Property productKey: The unique identifier of the product for which you want to create a topic category.
TopicShortName
Required
TopicShortName interface{}
- Type: interface{}
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
Desc interface{}
- Type: interface{}
Property desc: The description of the topic category.
You can enter a description with up to 100 characters.
IotInstanceId
Optional
IotInstanceId interface{}
- Type: interface{}
Property iotInstanceId: Instance ID you purchased.
Public instances do not need pass this property.