Verify the API Destination

Publish a test event to the event bus that is associated with the rule you created in a previous step, and verify that your subscriber in Salesforce receives the event from Amazon EventBridge.

  1. Start your event subscriber. For example, in Salesforce, you can create an Apex trigger that subscribes to the sample Carbon_Estimate__e event or another event that you’re using. To create a platform event trigger, see Subscribe to Platform Event Notifications with Apex Triggers in the Platform Events Developer Guide.
  2. In Amazon EventBridge, from the Event buses page, click the event bus associated with the rule and API destination.
  3. In the event bus page, copy the event bus ARN.
  4. Click Send events.
  5. For Event source, enter the ARN that you copied earlier.
  6. For Detail type, enter the platform event API name. For example, Carbon_Estimate__e.
  7. For Event detail, provide the fields and values in JSON format. For example, this event message contains two fields for the Carbon_Estimate__e event.
    {
        "Current_Vehicle__c": "Fast Car",
        "Carbon_Reduction_Percentage__c": 33
    }
  8. Click Send.
  9. In your subscriber, verify that the event was received from EventBridge.