-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS-EventBridge-PutEvents.yml
61 lines (61 loc) · 2.02 KB
/
ACS-EventBridge-PutEvents.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
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS-EventBridge-PutEvents
name-zh-cn: EventBridge发布事件
en: Put one or more events
zh-cn: 发布一个或多个事件
categories:
- security
Parameters:
regionId:
Type: String
Label:
en: RegionId
zh-cn: 地域ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
eventBusName:
Label:
en: EventBusName
zh-cn: 事件总线的名称
Type: String
eventList:
Label:
en: EventListField
zh-cn: 事件列表字段
Description:
en: For other types, please refer to the document:https://help.aliyun.com/document_detail/181428.html
zh-cn: 其它类型请参考文档:https://help.aliyun.com/document_detail/181428.html
Type: String
Default: '[{"aliyunaccountid":"{{ACS::AccountId}}","data":{"meetingName":"meetingName","groupId":"456","action":"camera_off","time":1590592527490,"userId":"199525","meetingUUID":"hz-20864c8f-b10d-45cd-9935-884bca1b****"},"aliyunpublishtime":"{{ACS::CurrentDate}}","subject":"acs.aliyuncvc:cn-hangzhou:{{ACS::AccountId}}:215672","specversion":"1.0","aliyuneventbusname":"eventBusName","id":"{{ACS::ExecutionId}}","source":"acs:aliyuncvc","time":"2020-11-19T21:04:41+08:00","type":"aliyuncvc:MeetingEvent:MemberOperate"}]'
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: OOS扮演的RAM角色
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: putEvents
Action: 'ACS::ExecuteAPI'
Description:
en: Put the bucket referer
zh-cn: 发布一个或多个事件
Properties:
Service: EVENTBRIDGE
API: PutEvents
Method: POST
URI: /openapi/putEvents
Headers: {}
Parameters:
AccountId: '{{ ACS::AccountId }}'
RegionId: '{{ regionId }}'
Body: '{"EventBusName":"{{ eventBusName }}", "EventList":{{eventList}}}'
Outputs:
response:
Type: List
ValueSelector: .
Outputs:
responses:
Type: Json
Value: '{{ putEvents.response }}'