TopicProps
Properties for defining a Topic
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-datahub-topic
Initializer
import { TopicProps } from '@alicloud/ros-cdk-datahub'
const topicProps: TopicProps = { ... }
Properties
Name | Type | Description |
---|---|---|
comment |
string | @alicloud/ros-cdk-core.IResolvable |
Property comment: The comment of topic. |
projectName |
string | @alicloud/ros-cdk-core.IResolvable |
Property projectName: The name of the project. |
recordType |
string | @alicloud/ros-cdk-core.IResolvable |
Property recordType: Record type. |
topicName |
string | @alicloud/ros-cdk-core.IResolvable |
Property topicName: The name of the topic. |
lifecycle |
number | @alicloud/ros-cdk-core.IResolvable |
Property lifecycle: Data storage life cycle. |
recordSchema |
string | @alicloud/ros-cdk-core.IResolvable |
Property recordSchema: When creating a TUPLE type topic, you need to specify the schema, but the BLOB type does not pass this parameter. |
shardCount |
number | @alicloud/ros-cdk-core.IResolvable |
Property shardCount: Initial shard number. |
comment
Required
public readonly comment: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property comment: The comment of topic.
projectName
Required
public readonly projectName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property projectName: The name of the project.
Length [3, 32]. Beginning with characters, only characters, numbers and _ are allowed.
recordType
Required
public readonly recordType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property recordType: Record type.
TUPLE: structured data, BLOB: unstructured data.
topicName
Required
public readonly topicName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property topicName: The name of the topic.
Length [3, 64]. Beginning with characters, only characters, numbers and _ are allowed.
lifecycle
Optional
public readonly lifecycle: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property lifecycle: Data storage life cycle.
recordSchema
Optional
public readonly recordSchema: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property recordSchema: When creating a TUPLE type topic, you need to specify the schema, but the BLOB type does not pass this parameter.
shardCount
Optional
public readonly shardCount: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property shardCount: Initial shard number.