Creating rules that send events to an API destination in EventBridge
You can use an API destination as the target of a rule. First, create the API destination. Then choose it as the target when you create the rule. You also need an IAM role with the correct permissions. For more information, see Permissions to access targets.
You set the target as part of the rule.
To create a rule that sends events to an API destination using the console
-
Follow the steps in the Creating rules using the Enhanced Builder procedure.
-
In the Select targets step, choose an API destination as the target type. Then do the following:
-
Select EventBridge API destination.
-
Do one of the following:
-
Choose Use an existing API destination. Then select the one you want.
-
Choose Create a new API destination. Then set up the new one.
For more information, see Create an API destination in Amazon EventBridge.
-
-
(Optional) To add header values, under Header Parameters choose Add header parameter. Then enter a key and a value.
-
(Optional) To add query string values, under Query string parameters choose Add query string parameter. Then enter a key and a value.
-
-
To finish, follow the rest of the steps.