TransformerProperty Struct
Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eventsv2 as eventsv2 } from 'aws-cdk-lib';
const transformerProperty: eventsv2.CfnSubscriber.TransformerProperty = {
jsonataConfiguration: {
expression: 'expression',
},
type: 'type',
};
Properties
jsonataConfigurationoptionalIResolvable | CfnSubscriber.JsonataConfigurationPropertyjsonata_configurationoptionaltyping.Union[IResolvable, JsonataConfigurationProperty]jsonataConfigurationoptionalIResolvableJsonataConfigurationoptionalIResolvableJsonataConfigurationoptionalinterface{}#JSONata transform settings.
The transform type: RAW delivers the event payload only;
WITH_METADATA delivers the event with its metadata envelope; JSONATA delivers the output of the JSONata expression in JsonataConfiguration.