
An Amazon API Gateway REST API sends messages straight to an Amazon SQS queue and uses a VTL mapping template to remove part of the message body first.
POST /sqs method with a direct AWS service integration to Amazon SQS SendMessage. There is no AWS Lambda function in the request path.notNeededElement object from the message body before it reaches the queue. It also passes through optional delaySeconds and messageAttributes. Use this when other parties call your API, for example as a webhook, and you want to keep message size under the SQS limit.git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/apigw-sqs-msg-filtering/typescript/cdknpm installnpm run buildcdk deploycdk destroy