Event transformation lets you split, map, and enrich events before routing them to a sink, converting them into the format that the sink accepts. For example, you can transform events from ApsaraMQ for RocketMQ into the format required by Simple Message Queue (formerly MNS).
Description
After an event is transformed, EventBridge does not impose limits on the returned data and processes it based on whether it is in array format.
-
Non-array data: data not in the [***, ***] format. Non-array data is sent to the sink as a single record. For example, if event transformation returns
"test","test"is sent to the sink as one record. -
Array data: data in the [***, ***] format. How array data is processed depends on the sink type.
-
If the sink is a service other than Function Compute, such as Simple Message Queue (formerly MNS), ApsaraMQ for RocketMQ, and ApsaraMQ for Kafka, array data is split by default and each element is sent to the sink individually. For example, if event transformation returns
["test1", "test2"],"test1"and"test2"are sent to the sink separately. -
If the sink is Function Compute, array data is sent to the sink as a single record by default. For example, if event transformation returns
["test1", "test2"],["test1", "test2"]is sent to the sink as-is.
-