@certenza/aws-cdk-infrastructure-commons 2.4.2 → 2.4.4
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.
- package/dist/src/apigateway.js +5 -7
- package/package.json +1 -1
package/dist/src/apigateway.js
CHANGED
|
@@ -126,9 +126,6 @@ const createHttpApiGateway = (scope, apiName, domainName, hostedZoneId, zoneName
|
|
|
126
126
|
description: `Public HTTP API Gateway for ${apiName}`,
|
|
127
127
|
defaultDomainMapping: {
|
|
128
128
|
domainName: apiDomainName,
|
|
129
|
-
// Explicitly set mappingKey to empty string for root path mapping
|
|
130
|
-
// to avoid "undefined" appearing in resource names
|
|
131
|
-
mappingKey: "",
|
|
132
129
|
},
|
|
133
130
|
defaultAuthorizer: defaultAuthorizer ?? new aws_apigatewayv2_authorizers_1.HttpIamAuthorizer(),
|
|
134
131
|
});
|
|
@@ -218,10 +215,11 @@ const createHttpApiGatewaySQSEndpoint = (method, path, queue, api) => {
|
|
|
218
215
|
integration: new apigatewayv2_integrations.HttpSqsIntegration(`${method}-${sanitizedPath}`, {
|
|
219
216
|
queue: queue,
|
|
220
217
|
// Configure parameter mapping to use the entire request body as the message body
|
|
221
|
-
//
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
218
|
+
// and set the QueueUrl. Both are required for SQS-SendMessage operation
|
|
219
|
+
// Using the same approach as the default implementation
|
|
220
|
+
parameterMapping: new apigatewayv2.ParameterMapping()
|
|
221
|
+
.custom("QueueUrl", queue.queueUrl)
|
|
222
|
+
.custom("MessageBody", "$request.body"),
|
|
225
223
|
}),
|
|
226
224
|
});
|
|
227
225
|
};
|
package/package.json
CHANGED