Nom du modèle
ACS-EventBridge-PutEvents
Description du modèle
Publie un événement sur un bus d'événements EventBridge spécifié.
Type de modèle
Automatisé
Propriétaire
Alibaba Cloud
Paramètres d'entrée
|
Paramètre |
Description |
Type de données |
Obligatoire |
Valeur par défaut |
Limite |
|
eventBusName |
Nom du bus d'événements. |
String |
Oui |
||
|
source |
Source de l'événement. |
String |
Oui |
||
|
regionId |
ID de la région. |
String |
Non |
{{ ACS::RegionId }} |
|
|
id |
ID de l'événement. |
String |
Non |
{{ ACS::ExecutionId }} |
|
|
type |
Type d'événement. |
String |
Non |
aliyunoos:Execution:Success |
|
|
data |
Contenu de l'événement. |
Json |
Non |
{"name": "EventBridge", "number": 100} |
|
|
OOSAssumeRole |
Rôle RAM endossé par le service CloudOps Orchestration Service (OOS). |
String |
Non |
"" |
Paramètres de sortie
|
Paramètre |
Description |
Type de données |
|
responses |
Json |
Politique d'autorisation requise
{
"Version": "1",
"Statement": [
{
"Action": [
"eventbridge:TestPutEvents"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
Détails
Contenu du modèle
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS-EventBridge-PutEvents
en: Publishes an event.
categories:
- security
Parameters:
regionId:
Type: String
Label:
en: Region ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
eventBusName:
Label:
en: EventBusName
Type: String
id:
Type: String
Label:
en: Event ID
Description:
en: The event ID. A unique value that identifies an event. The sender must ensure that the combination of source and id is unique.
Default: '{{ ACS::ExecutionId }}'
source:
Type: String
Label:
en: Source
Description:
en: The event source. A service that provides events. It identifies the context of the event. This typically includes the type of event source, the mechanism for publishing events, or the process that produced the event.
type:
Type: String
Label:
en: Type
Description:
en: The event type. It describes the event type associated with the event source. This parameter is used for routing, event queries, and policy execution.
Default: 'aliyunoos:Execution:Success'
data:
Type: Json
Label:
en: Data
Description:
en: The event content. A JSON object whose content is determined by the service that initiates the event.
Default:
name: EventBridge
number: 100
OOSAssumeRole:
Label:
en: OOSAssumeRole
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: putEvents
Action: 'ACS::ExecuteAPI'
Description:
en: Publish an event
Properties:
Service: EVENTBRIDGE
API: TestPutEvents
Parameters:
RegionId: '{{ regionId }}'
Event:
Id: '{{ id }}'
Type: '{{ type }}'
Data: '{{ data }}'
Source: '{{ source }}'
AliyunEventbusName: '{{ eventBusName }}'
Outputs:
response:
Type: List
ValueSelector: .
Outputs:
responses:
Type: Json
Value: '{{ putEvents.response }}'