Creates a DataHub topic.
Topics are supported in the following regions:
-
China (Hangzhou)
-
China (Shanghai)
-
China (Beijing)
-
China (Zhangjiakou)
-
China (Shenzhen)
-
Singapore
-
Malaysia (Kuala Lumpur)
-
Germany (Frankfurt)
Syntax
{
"Type": "ALIYUN::DATAHUB::Topic",
"Properties": {
"Comment": String,
"RecordType": String,
"ProjectName": String,
"RecordSchema": String,
"TopicName": String,
"ShardCount": Integer,
"Lifecycle": Integer
}
}
Properties
|
Property Name |
Type |
Required |
Update allowed |
Description |
Constraints |
|
Comment |
String |
Yes |
No |
The topic description. |
3 to 1,024 characters. |
|
RecordType |
String |
Yes |
No |
The record type. |
Valid values:
|
|
ProjectName |
String |
Yes |
No |
The project name. |
None |
|
RecordSchema |
String |
No |
No |
The record schema. |
Set this parameter for TUPLE topics. Leave it unset for BLOB topics. |
|
TopicName |
String |
Yes |
No |
The topic name. |
3 to 64 characters. Must start with a letter. Can contain letters (case-sensitive), digits, and underscores (_). |
|
ShardCount |
Integer |
No |
No |
The initial shard count. |
None |
|
Lifecycle |
Integer |
No |
No |
The data retention period. |
None |
Return values
Fn::GetAtt
-
ProjectName: the project name.
-
TopicName: the topic name.