TopicProps
Properties for defining a Topic.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mns-topic
Initializer
import { TopicProps } from '@alicloud/ros-cdk-mns'
const topicProps: TopicProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
topicName | string | @alicloud/ros-cdk-core.IResolvable | Property topicName: Topic name. |
loggingEnabled | boolean | @alicloud/ros-cdk-core.IResolvable | Property loggingEnabled: Whether to enable log management. |
maximumMessageSize | number | @alicloud/ros-cdk-core.IResolvable | Property maximumMessageSize: Maximum body length of a message sent to the topic, in the unit of bytes. |
tags | TagsProperty[] | Property tags: Tags to attach to Topic. |
topicNameRequired
public readonly topicName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property topicName: Topic name.
loggingEnabledOptional
public readonly loggingEnabled: boolean | IResolvable;
- Type: boolean | @alicloud/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
maximumMessageSizeOptional
public readonly maximumMessageSize: number | IResolvable;
- Type: number | @alicloud/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
public readonly tags: TagsProperty[];
- Type: 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.