Skip to content

TopicProps

Properties for defining a Topic.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rocketmq-topic

Initializer

import ros_cdk_rocketmq
ros_cdk_rocketmq.TopicProps(
  instance_id: typing.Union[str, IResolvable],
  message_type: typing.Union[typing.Union[int, float], IResolvable],
  topic: typing.Union[str, IResolvable],
  remark: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
instance_id typing.Union[str, ros_cdk_core.IResolvable] Property instanceId: The ID of the instance.
message_type typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property messageType: The type of the message.
topic typing.Union[str, ros_cdk_core.IResolvable] Property topic: The name of the topic you want to create.
remark typing.Union[str, ros_cdk_core.IResolvable] Property remark: The remarks on the request.

instance_idRequired

instance_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property instanceId: The ID of the instance.


message_typeRequired

message_type: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property messageType: The type of the message.

Valid values: 0: normal message 1: partitionally ordered message 2: globally ordered message 4: transactional message 5: scheduled/delayed message


topicRequired

topic: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property topic: The name of the topic you want to create.

Note: "CID" and "GID" are the reserved fields of a group ID, and they cannot be the start of a topic name. If namespaces are available in the instance for which the topic is created, the topic name must be unique in the instance and can be duplicated across instances. If no namespaces are available in the instance, the topic name must be unique both in the instance and across instances.


remarkOptional

remark: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property remark: The remarks on the request.

This parameter can be left blank.