@gradientedge/cdk-utils 9.27.0 → 9.28.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.
@@ -303,10 +303,10 @@ class CloudFrontManager {
303
303
  if (!props.functionName)
304
304
  throw `CloudFront Function functionName undefined for ${id}`;
305
305
  const cloudfrontFunction = new aws_cloudfront_1.Function(scope, `${id}`, {
306
+ ...props,
306
307
  code: aws_cloudfront_1.FunctionCode.fromFile({
307
308
  filePath: props.functionFilePath,
308
309
  }),
309
- comment: props.comment,
310
310
  functionName: scope.resourceNameFormatter.format(props.functionName, scope.props.resourceNameOptions?.cloudfront),
311
311
  });
312
312
  (0, utils_1.createCfnOutput)(`${id}-functionArn`, scope, cloudfrontFunction.functionArn);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.27.0",
3
+ "version": "9.28.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -356,10 +356,10 @@ export class CloudFrontManager {
356
356
  if (!props.functionName) throw `CloudFront Function functionName undefined for ${id}`
357
357
 
358
358
  const cloudfrontFunction = new Function(scope, `${id}`, {
359
+ ...props,
359
360
  code: FunctionCode.fromFile({
360
361
  filePath: props.functionFilePath,
361
362
  }),
362
- comment: props.comment,
363
363
  functionName: scope.resourceNameFormatter.format(props.functionName, scope.props.resourceNameOptions?.cloudfront),
364
364
  })
365
365