-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS-FC-InvokeFunction.json
89 lines (89 loc) · 2.1 KB
/
ACS-FC-InvokeFunction.json
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
88
89
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"en": "Invoke the function and return the result",
"zh-cn": "执行函数计算,并返回函数计算的结果",
"name-en": "ACS-FC-InvokeFunction",
"name-zh-cn": "执行函数计算"
},
"Parameters": {
"regionId": {
"Type": "String",
"Label": {
"en": "RegionId",
"zh-cn": "地域ID"
},
"AssociationProperty": "RegionId",
"Default": "{{ ACS::RegionId }}"
},
"serviceName": {
"Label": {
"en": "ServiceName",
"zh-cn": "服务名称"
},
"Type": "String",
"AssociationProperty": "ALIYUN::FC::Service::ServiceName",
"AssociationPropertyMetadata": {
"RegionId": "regionId"
}
},
"functionName": {
"Label": {
"en": "FunctionName",
"zh-cn": "函数名称"
},
"Type": "String",
"AssociationProperty": "ALIYUN::FC::Function::FunctionName",
"AssociationPropertyMetadata": {
"RegionId": "regionId",
"ServiceName": "serviceName"
}
},
"parameters": {
"Label": {
"en": "Parameters",
"zh-cn": "函数参数"
},
"Type": "String",
"Default": ""
},
"OOSAssumeRole": {
"Label": {
"en": "OOSAssumeRole",
"zh-cn": "OOS扮演的RAM角色"
},
"Type": "String",
"Default": ""
}
},
"RamRole": "{{ OOSAssumeRole }}",
"Tasks": [
{
"Name": "invokeFunction",
"Action": "ACS::FC::InvokeFunction",
"Description": {
"en": "Invoke the function",
"zh-cn": "执行函数计算"
},
"Properties": {
"functionName": "{{ functionName }}",
"serviceName": "{{ serviceName }}",
"invocationType": "Sync",
"regionId": "{{ regionId }}",
"event": "{{ parameters }}"
},
"Outputs": {
"invokeData": {
"Type": "String",
"ValueSelector": "data"
}
}
}
],
"Outputs": {
"invokeData": {
"Type": "String",
"Value": "{{ invokeFunction.invokeData }}"
}
}
}