Format Lambda invocation input from EventBridge using AWS CDK
Amazon EventBridge can be customized to transform input parameters using an “input transformer.” The transformer allows the input parameter to be defined the same way as a direct invocation or API Gateway input. To define the input transformer, the AWS CDK can be used with the appropriate code. The input parameter format can be defined as text using RuleTargetInput.fromText instead. The input transformer is useful for obtaining the input parameter the way you want it instead of the default parameter provided by EventBridge.