You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/rest-api-construct/src/construct.ts
+1-11Lines changed: 1 addition & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ import {
5
5
ExistingDirectory,
6
6
ExistingLambda,
7
7
NewFromCode,
8
-
NewFromTemplate,
9
8
RestApiConstructProps,
10
9
}from'./types.js';
11
10
@@ -30,8 +29,7 @@ export class RestApiConstruct extends Construct {
30
29
const{ path, routes, lambdaEntry }=pathConfig;
31
30
constsource=lambdaEntry.source;
32
31
33
-
// Determine Lambda code source - either ExistingDirectory, NewFromCode, NewFromTemplate,
34
-
// or ExistingLambda (function already exists in aws and does not need to be constructed)
32
+
// Determine Lambda code source - either ExistingDirectory, NewFromCode, or ExistingLambda (function already exists in aws and does not need to be constructed)
35
33
letcode: lambda.AssetCode|lambda.InlineCode=
36
34
lambda.Code.fromInline('');
37
35
if('path'insource){
@@ -40,14 +38,6 @@ export class RestApiConstruct extends Construct {
0 commit comments