Skip to content

Commit

Permalink
fix lambda function to resource
Browse files Browse the repository at this point in the history
  • Loading branch information
shikha372 committed Apr 29, 2024
1 parent f93fc70 commit ae45d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/core/lib/nodejs-aspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ abstract class RuntimeAspectsBase implements IAspect {
//isComplete Handlers
// Handlers
const isCompleteHandler = provider.isCompleteHandler as lambda.Function;
const isCompleteHandlerRuntime = isCompleteHandler.node.children.find((child) => child instanceof cdk.CfnResource && child.cfnResourceType === 'AWS::Lambda::Function') as lcdk.CfnResource;
const isCompleteHandlerRuntime = isCompleteHandler.node.children.find((child) => child instanceof cdk.CfnResource && child.cfnResourceType === 'AWS::Lambda::Function') as cdk.CfnResource;
if (this.isValidRuntime(this.getRuntimeProperty(targetNode))) {
isCompleteHandlerRuntime.addPropertyOverride('Runtime', 'nodejs20.x');
}
Expand Down

0 comments on commit ae45d2d

Please sign in to comment.