@gradientedge/cdk-utils 7.15.0 → 7.16.1

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,14 +214,13 @@ class ApiToEventBridgeTarget extends common_1.CommonConstruct {
214
214
  'application/json': [
215
215
  '#set($context.requestOverride.header.X-Amz-Target = "AWSEvents.PutEvents")',
216
216
  '#set($context.requestOverride.header.Content-Type = "application/x-amz-json-1.1")',
217
- "#set($inputRoot = $input.path('$'))",
218
217
  `{
219
218
  "Entries": [
220
219
  {
221
220
  "EventBusName": "${this.apiEvent.eventBus.eventBusName}",
222
221
  "Source": "api-to-eventbridge-target",
223
222
  "DetailType": "$util.escapeJavaScript($context.domainName)$util.escapeJavaScript($context.resourcePath)",
224
- "Detail": "$util.escapeJavaScript($input.json('$'))"
223
+ "Detail": "$util.escapeJavaScript($input.body).replaceAll("\\\\'","'")"
225
224
  }
226
225
  ]
227
226
  }`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "7.15.0",
3
+ "version": "7.16.1",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -234,14 +234,13 @@ export class ApiToEventBridgeTarget extends CommonConstruct {
234
234
  'application/json': [
235
235
  '#set($context.requestOverride.header.X-Amz-Target = "AWSEvents.PutEvents")',
236
236
  '#set($context.requestOverride.header.Content-Type = "application/x-amz-json-1.1")',
237
- "#set($inputRoot = $input.path('$'))",
238
237
  `{
239
238
  "Entries": [
240
239
  {
241
240
  "EventBusName": "${this.apiEvent.eventBus.eventBusName}",
242
241
  "Source": "api-to-eventbridge-target",
243
242
  "DetailType": "$util.escapeJavaScript($context.domainName)$util.escapeJavaScript($context.resourcePath)",
244
- "Detail": "$util.escapeJavaScript($input.json('$'))"
243
+ "Detail": "$util.escapeJavaScript($input.body).replaceAll("\\\\'","'")"
245
244
  }
246
245
  ]
247
246
  }`,