Why set X-Amz-Target header for EventBridge integration?

0

Why do I need to set the header X-Amz-Target as 'AWSEvents.PutEvents' while integrating API Gateway with EventBridge? I never had to do similar for Firehose, S3, SQS, etc..

The Action is already set to PutEvents so why the target header is required again? Please clarify.

Thanks,
Sheen

已提問 4 年前檢視次數 682 次
1 個回答
0

Hello:

I believe you've already gotten a response via twitter, but the TL;DR is that not all AWS services behave the same. Some services do require you to explicitly map the X-Amz-Target header and others will work with the action header specified by API Gateway when configuring the integration.

Feedback from your twitter thread will be taken into account as we look at adding AWS service integrations to HTTP APIs.

Regards,
Bob

專家
已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南