diff --git a/packages/aws-cdk-lib/aws-cloudfront/lib/experimental/edge-function.ts b/packages/aws-cdk-lib/aws-cloudfront/lib/experimental/edge-function.ts index f209c6d311304..0a428be5b70b1 100644 --- a/packages/aws-cdk-lib/aws-cloudfront/lib/experimental/edge-function.ts +++ b/packages/aws-cdk-lib/aws-cloudfront/lib/experimental/edge-function.ts @@ -213,8 +213,8 @@ export class EdgeFunction extends Resource implements lambda.IVersion { }); const resource = new CustomResource(this, 'ArnReader', { - resourceType: resourceType, - serviceToken: serviceToken, + resourceType, + serviceToken, properties: { Region: EdgeFunction.EDGE_REGION, ParameterName: parameterName,