Todos os produtos
Search
Central de documentação

CloudOps Orchestration Service:ACS-EventBridge-PutEvents

Última atualização: Jun 28, 2026

Nome do modelo

ACS-EventBridge-PutEvents

Executar agora

Descrição do modelo

Publica um evento em um barramento de eventos específico do EventBridge.

Tipo de modelo

Automatizado

Proprietário

Alibaba Cloud

Parâmetros de entrada

Parâmetro

Descrição

Tipo de dados

Obrigatório

Valor padrão

Limite

eventBusName

Nome do barramento de eventos.

String

Sim

source

Origem do evento.

String

Sim

regionId

ID da região.

String

Não

{{ ACS::RegionId }}

id

ID do evento.

String

Não

{{ ACS::ExecutionId }}

type

Tipo do evento.

String

Não

aliyunoos:Execution:Success

data

Conteúdo do evento.

Json

Não

{"name": "EventBridge", "number": 100}

OOSAssumeRole

Função do RAM que o CloudOps Orchestration Service (OOS) assume.

String

Não

""

Parâmetros de saída

Parâmetro

Descrição

Tipo de dados

responses

Json

Política de permissões necessária

{
    "Version": "1",
    "Statement": [
        {
            "Action": [
                "eventbridge:TestPutEvents"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

Detalhes

ACS-EventBridge-PutEvents

Conteúdo do modelo

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 }}'