[{"data":1,"prerenderedAt":53},["ShallowReactive",2],{"pattern-custom-http-headers-to-sqs-message-attributes-using-http-api-gateway":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":28,"level":29,"meta":30,"patternArch":31,"resources":44,"s3URL":6,"services":6,"stem":48,"testing":49,"videoId":6,"__hash__":52},"patterns\u002Fpatterns\u002Fcustom-http-headers-to-sqs-message-attributes-using-http-api-gateway.json","Send customer headers from Amazon API Gateway to Amazon SQS",null,{"text":8},[9],"Delete the stack: sam delete",[11],"content\u002Fcontributors\u002Fannangarachari-r.json",{"text":13},[14],"sam deploy","Amazon API Gateway (HTTP) to Amazon Simple Queue Service (SQS) for passing custom http headers as message attributes.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcustom-http-headers-to-sqs-message-attributes-using-http-api-gateway","serverless-patterns\u002Fcustom-http-headers-to-sqs-message-attributes-using-http-api-gateway","custom-http-headers-to-sqs-message-attributes-using-http-api-gateway","template.yaml",{"headline":25,"text":26},"How it works",[27],"This pattern enables you to pass custom HTTP headers as message attributes when sending messages from Amazon HTTP API Gateway to an Amazon SQS queue. The headers can be configured either as static values or dynamically passed from the incoming request headers. In the default configuration, the message attribute name is set as 'MessageAttribute1' which maps to the header name 'header1' in the integration request mapping. You can customize these message attribute, header names and static values, according to your requirements by updating the requestParameters section in the SqsIntegration configuration within your SAM template. You can set the name for API Gateway and the SQS queue.","YAML","300",{},{"icon1":32,"icon2":37,"line1":41},{"x":33,"y":34,"service":35,"label":36},20,50,"apigw","Amazon API Gateway",{"x":38,"y":34,"service":39,"label":40},80,"sqs","Amazon SQS",{"from":42,"to":43},"icon1","icon2",{"bullets":45},[46],{"text":15,"link":47},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fhttp-api-develop-integrations-aws-services.html","patterns\u002Fcustom-http-headers-to-sqs-message-attributes-using-http-api-gateway",{"text":50},[51],"See the GitHub repo for detailed testing instructions.","8zaAld5np-z9mwUPEWH35unQE-P5tfWB9o08tU8ikJI",1778846884036]