forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flow.yml
87 lines (87 loc) · 1.9 KB
/
flow.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
ROSTemplateFormatVersion: '2015-09-01'
Description: FNF Flow/Schedule resource example
Parameters:
Definition:
Type: String
Description: The definition of the created flow following the FDL syntax standard.
Default: "version: v1beta1\ntype: flow\nsteps: \n - type: pass\n name: mypass"
Description:
Type: String
Description: Create a description of the flow.
Default: mytest
Name:
Type: String
Description: The name of the flow created. This name is unique under the account.
Default: mytest
RoleArn:
Type: String
Description: The name of the flow created. This name is unique under the account.
ScheduleName:
Type: String
CronExpression:
Type: String
Default: 0 0 10 1 * ?
Enable:
Type: Boolean
Default: false
Resources:
Flow:
Type: ALIYUN::FNF::Flow
Properties:
Definition:
Ref: Definition
Description:
Ref: Description
Name:
Ref: Name
RoleArn:
Ref: RoleArn
Schedule:
Type: ALIYUN::FNF::Schedule
Properties:
Description: Test Schedule
FlowName:
Fn::GetAtt:
- Flow
- Name
Enable:
Ref: Enable
Payload: '{"key": "value"}'
CronExpression:
Ref: CronExpression
ScheduleName:
Ref: ScheduleName
Outputs:
FlowName:
Value:
Fn::GetAtt:
- Schedule
- FlowName
ScheduleId:
Value:
Fn::GetAtt:
- Schedule
- ScheduleId
ScheduleName:
Value:
Fn::GetAtt:
- Schedule
- ScheduleName
CreatedTime:
Description: Flow creation time.
Value:
Fn::GetAtt:
- Flow
- CreatedTime
LastModifiedTime:
Description: The most recently modified time of the flow.
Value:
Fn::GetAtt:
- Flow
- LastModifiedTime
Id:
Description: The unique ID of the flow.
Value:
Fn::GetAtt:
- Flow
- Id