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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠