-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::FC::InvokeFunction.yml
70 lines (70 loc) · 1.75 KB
/
ACS::FC::InvokeFunction.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
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS::FC::InvokeFunction
name-zh-cn: 执行函数(FC)
en: Invoke Created Function
zh-cn: 执行创建的函数
Parameters:
regionId:
Description:
en: The ID of region
zh-cn: 地域ID
Type: String
Default: '{{ ACS::RegionId }}'
serviceName:
Description:
en: Service name to invoke
zh-cn: 需要执行的服务名称
Type: String
AssociationProperty: ALIYUN::FC::Service::ServiceName
AssociationPropertyMetadata:
RegionId: regionId
functionName:
Description:
en: Function name to invoke
zh-cn: 需要执行的函数名称
Type: String
AssociationProperty: ALIYUN::FC::Function::FunctionName
AssociationPropertyMetadata:
RegionId: regionId
ServiceName: serviceName
invocationType:
Description:
en: Invocation Type
zh-cn: 需要执行的执行类型
Type: String
AllowedValues:
- Sync
- Async
Default: Sync
event:
Description:
en: The parameters of the function are inside the event
zh-cn: 函数脚本的参数值
Type: String
Default: ''
Tasks:
- Name: invokeFunction
Action: 'ACS::ExecuteAPI'
Description:
en: Invokes function
zh-cn: 执行函数
Properties:
Service: FC
API: InvokeFunction
Method: POST
URI: '/services/{{serviceName}}/functions/{{functionName}}/invocations'
Headers:
X-Fc-Invocation-Type: '{{ invocationType }}'
Parameters:
AccountId: '{{ acs::accountid }}'
RegionId: '{{ regionId }}'
Body: '{{event}}'
Outputs:
data:
Type: String
ValueSelector: .data
Outputs:
data:
Type: String
Value: '{{ invokeFunction.data }}'