This topic describes the parameters in the metadata of an event target.

Fields

The following table describes the required fields in the metadata of an event target.

Field Type Description
resourceKey String The resource key of the transformed event.
resourceName String The resource name of the transformed event.
forms String The transformation method. The following transformation methods are supported:
  • ORIGINAL: complete event. For more information, see the "Complete event" section of the Event transformation topic.
  • JSONPATH: partial event. EventBridge extracts data from the event by using JSONPath. For more information, see the "Partial event" section of the Event transformation topic.
    The following value provides an example:
    $.data.name
  • CONSTANT: constant. The output is always a constant regardless of the input. For more information, see the "Constant" section of the Event transformation topic.
    The following value provides an example:
    "test1"
  • TEMPLATE: template. You can customize a template and variables to transform events. For more information, see the "Template" section of the Event transformation topic.
    The following value provides an example:
    {
        "name":"$.data.name",
        "constant":"Please deal with it timely."
    }
    The following template provides an example:
    The instance is broken, which name is ${name}, ${constant}

DingTalk

The following table describes the parameters that you can set if you select DingTalk as the event target.

resourceKey resourceName forms
URL Address CONSTANT
SecretKey Secret Key CONSTANT
Body Pushed Content TEMPLATE

Direct Mail

The following table describes the parameters that you can set if you select Direct Mail as the event target.

resourceKey resourceName forms
Subject Subject CONSTANT
AccountName Sender Address CONSTANT
AddressType Address Type CONSTANT
ReplyToAddress Return Address CONSTANT
ToAddress Recipient
  • CONSTANT
  • JSONPATH
IsHtmlBody HTML Body CONSTANT
Body Body TEMPLATE

SMS

The following table describes the parameters that you can set if you select Short Message Service (SMS) as the event target.

resourceKey resourceName forms
PhoneNumbers Phone Number
  • CONSTANT
  • JSONPATH
SignName Signature CONSTANT
TemplateCode Template Code CONSTANT
TemplateParam Template Parameters TEMPLATE

Function Compute

The following table describes the parameters that you can set if you select Function Compute as the event target.

resourceKey resourceName forms
serviceName Service CONSTANT
functionName Function CONSTANT
Body Event
  • ORIGINAL
  • CONSTANT
  • JSONPATH
  • TEMPLATE

MNS

The following table describes the parameters that you can set if you select Message Service (MNS) as the event target.

resourceKey resourceName forms
queue Queue CONSTANT
Body Message Content
  • ORIGINAL
  • CONSTANT
  • JSONPATH
  • TEMPLATE

Message Queue for Apache RocketMQ

The following table describes the parameters that you can set if you select Message Queue for Apache RocketMQ as the event target.

resourceKey resourceName forms
InstanceId Instance ID CONSTANT
Topic Topic CONSTANT
Body Body
  • ORIGINAL
  • JSONPATH
  • CONSTANT
  • TEMPLATE
Properties Properties
  • JSONPATH
  • TEMPLATE
Keys Keys
  • JSONPATH
  • CONSTANT
  • TEMPLATE
Tags Tags
  • JSONPATH
  • CONSTANT
  • TEMPLATE

Message Queue for RabbitMQ

The following table describes the parameters that you can set if you select Message Queue for RabbitMQ as the event target.

resourceKey resourceName forms
InstanceId Instance ID CONSTANT
Vhost vhost CONSTANT
Exchange Exchange CONSTANT
Routing Key Routing Key
  • JSONPATH
  • CONSTANT
Body Body
  • ORIGINAL
  • JSONPATH
  • CONSTANT
  • TEMPLATE
MessageId MessageId
  • JSONPATH
  • CONSTANT
  • TEMPLATE
Properties Properties
  • JSONPATH
  • TEMPLATE

HTTP

The following table describes the parameters that you can set if you select HTTP as the event target.

resourceKey resourceName forms
url URL CONSTANT
Body Body
  • ORIGINAL
  • CONSTANT
  • JSONPATH
  • TEMPLATE
Network Network Type CONSTANT
VPCNameAndId VPC CONSTANT
VSwitchesNameAndId vSwitch CONSTANT
SecurityGroupNameAndId Security Group CONSTANT

HTTPS

The following table describes the parameters that you can set if you select HTTPS as the event target.

resourceKey resourceName forms
url URL CONSTANT
Body Body
  • ORIGINAL
  • CONSTANT
  • JSONPATH
  • TEMPLATE