@certenza/aws-cdk-infrastructure-commons 2.4.1 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -214,6 +214,11 @@ const createHttpApiGatewaySQSEndpoint = (method, path, queue, api) => {
214
214
  methods: [getHttpMethod(method)],
215
215
  integration: new apigatewayv2_integrations.HttpSqsIntegration(`${method}-${sanitizedPath}`, {
216
216
  queue: queue,
217
+ // Configure parameter mapping to use the entire request body as the message body
218
+ // By default, it expects $request.body.MessageBody, but we want to send the whole body
219
+ parameterMapping: apigatewayv2.ParameterMapping.fromObject({
220
+ MessageBody: apigatewayv2.MappingValue.custom("$request.body"),
221
+ }),
217
222
  }),
218
223
  });
219
224
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certenza/aws-cdk-infrastructure-commons",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Common infrastructure reusable utilities and resources for Certenza projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",