-
Notifications
You must be signed in to change notification settings - Fork 35
/
topic.yml
53 lines (53 loc) · 1.08 KB
/
topic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建DataHub项目与主题,配置记录类型,默认初始化示例。
en: Create a DataHub project and topic, configure the record type, and perform default
initialization with example data.
Parameters:
RecordType:
Type: String
Default: BLOB
AllowedValues:
- TUPLE
- BLOB
ProjectName:
Type: String
Default: mytest
TopicName:
Type: String
Default: mytest
Resources:
Project:
Type: ALIYUN::DATAHUB::Project
Properties:
Comment: Topic Project
ProjectName:
Ref: ProjectName
Topic:
Type: ALIYUN::DATAHUB::Topic
Properties:
Comment: Test Create Topic
RecordType:
Ref: RecordType
ProjectName:
Fn::GetAtt:
- Project
- ProjectName
TopicName:
Ref: TopicName
Outputs:
Project:
Value:
Fn::GetAtt:
- Project
- ProjectName
ProjectName:
Value:
Fn::GetAtt:
- Topic
- ProjectName
TopicName:
Value:
Fn::GetAtt:
- Topic
- TopicName