EventBridge Genesys Cloud integration: 502 on custom event pattern

Trying to wire up Genesys Cloud events to AWS EventBridge. Created the event bus and partner event source via the CXone UI. The test event works fine. But live traffic hits the target Lambda with a 502 Bad Gateway. Checked the EventBridge rules. The pattern looks standard.

{
“source”: [“genesys.cloud”],
“detail-type”: [“conversation.created”]
}

Lambda logs show timeout. Is the payload size exceeding the 256KB limit for Genesys events? Or is there a specific IAM policy missing for the partner source? Here is the Lambda handler …