@gradientedge/cdk-utils 9.0.0 → 9.1.0

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.
@@ -225,6 +225,9 @@ class EventManager {
225
225
  },
226
226
  },
227
227
  target: targetLambdaFunction.functionArn,
228
+ targetParameters: {
229
+ inputTemplate: props.lambdaInputTemplate,
230
+ },
228
231
  });
229
232
  (0, utils_1.createCfnOutput)(`${id}-pipeArn`, scope, pipe.attrArn);
230
233
  (0, utils_1.createCfnOutput)(`${id}-pipeName`, scope, pipe.name);
@@ -15,6 +15,7 @@ export interface SqsToSfnPipeProps extends CfnPipeProps {
15
15
  export interface SqsToLambdaPipeProps extends CfnPipeProps {
16
16
  pipeFilterPattern?: any;
17
17
  sqsBatchSize?: number;
18
+ lambdaInputTemplate?: string;
18
19
  sqsMaximumBatchingWindowInSeconds?: number;
19
20
  }
20
21
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.0.0",
3
+ "version": "9.1.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -297,6 +297,9 @@ export class EventManager {
297
297
  },
298
298
  },
299
299
  target: targetLambdaFunction.functionArn,
300
+ targetParameters: {
301
+ inputTemplate: props.lambdaInputTemplate,
302
+ },
300
303
  })
301
304
 
302
305
  createCfnOutput(`${id}-pipeArn`, scope, pipe.attrArn)
@@ -17,6 +17,7 @@ export interface SqsToSfnPipeProps extends CfnPipeProps {
17
17
  export interface SqsToLambdaPipeProps extends CfnPipeProps {
18
18
  pipeFilterPattern?: any
19
19
  sqsBatchSize?: number
20
+ lambdaInputTemplate?: string
20
21
  sqsMaximumBatchingWindowInSeconds?: number
21
22
  }
22
23