After you create an API destination, you can select it as the target of a rule. To use an API destination as a target, you must provide an IAM role with the correct permissions. For more information, see Permissions required for EventBridge to access targets using IAM roles
Selecting an API destination as a target is part of creating the rule.
To create a rule that sends events to an API destination using the console
-
Follow the steps in the Creating rules that react to events in Amazon EventBridge procedure.
-
In the Select targets step, when prompted to choose an API destination as the target type:
-
Select EventBridge API destination.
-
Do one of the following:
-
Choose Use an existing API destination and select an existing API destination
-
Choose Create a new API destination and specify the necessary setting to define your new API destination.
For more information on specifying the required settings, see Create an API destination in Amazon EventBridge.
-
-
(Optional): To specify header parameters for the event, under Header Parameters choose Add header parameter.
Next, specify the key and value for the header parameter.
-
(Optional): To specify query string parameters for the event, under Query string parameters choose Add query string parameter.
Next, specify the key and value for the query string parameter.
-
-
Complete creating the rule following the procedure steps.