TopicProps
Properties for defining a Topic.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mns-topic
Initializer
import ros_cdk_mns
ros_cdk_mns.TopicProps(
topic_name: typing.Union[str, IResolvable],
logging_enabled: typing.Union[bool, IResolvable] = None,
maximum_message_size: typing.Union[typing.Union[int, float], IResolvable] = None,
tags: typing.List[TagsProperty] = None
)
Properties
| Name | Type | Description |
|---|---|---|
topic_name | typing.Union[str, ros_cdk_core.IResolvable] | Property topicName: Topic name. |
logging_enabled | typing.Union[bool, ros_cdk_core.IResolvable] | Property loggingEnabled: Whether to enable log management. |
maximum_message_size | typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] | Property maximumMessageSize: Maximum body length of a message sent to the topic, in the unit of bytes. |
tags | typing.List[TagsProperty] | Property tags: Tags to attach to Topic. |
topic_nameRequired
topic_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property topicName: Topic name.
logging_enabledOptional
logging_enabled: typing.Union[bool, IResolvable]
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property loggingEnabled: Whether to enable log management.
"true" indicates that log management is enabled, whereas "false" indicates that log management is disabled. The default value is false
maximum_message_sizeOptional
maximum_message_size: typing.Union[typing.Union[int, float], IResolvable]
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property maximumMessageSize: Maximum body length of a message sent to the topic, in the unit of bytes.
An integer in the range of 1,024 (1 KB) to 65, 536 (64 KB); default value: 65,536 (64 KB).
tagsOptional
tags: typing.List[TagsProperty]
- Type: typing.List[TagsProperty]
Property tags: Tags to attach to Topic.
Max support 20 tags to add during create Topic. Each tag with two properties Key and Value, and Key is required.