title: Pass custom parameters in Event Bridge schedule event to lambda
body: <p>I have a Lambda function which gets invoked at a fixed schedule from EventBridge events. Is there any way to pass custom parameters(like a json file) to the invoked lambda function via an event rule?</p>
  <p>I tried passing a json string inside withEventPattern in the PutRule object, like this:</p>
  <p><code>{'detail': {&quot;id&quot; : [&quot;unique_id&quot;]}}</code> =&gt; this lead to this error:</p>
  <p><code>&quot;Event pattern is not valid. Reason: Unrecognized match type instance-id\n at [Source: (String)\&quot;{\&quot;detail\&quot;:[{\&quot;instance-id\&quot;:[\&quot;d1983a77-dc0e-4724-953f-df283c1ad421\&quot;]}]}\&quot;</code></p>
  <p>I understand this is not the appropriate way of doing this, but I was trying my luck.</p>