File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
packages/@aws-cdk/aws-lambda Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ export enum RuntimeFamily {
12
12
Python ,
13
13
DotNetCore ,
14
14
Go ,
15
- Ruby
15
+ Ruby ,
16
+ Other
16
17
}
17
18
18
19
/**
@@ -38,6 +39,7 @@ export class Runtime {
38
39
public static readonly DotNetCore21 = new Runtime ( 'dotnetcore2.1' , RuntimeFamily . DotNetCore ) ;
39
40
public static readonly Go1x = new Runtime ( 'go1.x' , RuntimeFamily . Go ) ;
40
41
public static readonly Ruby25 = new Runtime ( 'ruby2.5' , RuntimeFamily . Ruby , { supportsInlineCode : true } ) ;
42
+ public static readonly Provided = new Runtime ( 'provided' , RuntimeFamily . Other ) ;
41
43
42
44
/**
43
45
* The name of this runtime, as expected by the Lambda resource.
Original file line number Diff line number Diff line change @@ -1286,6 +1286,15 @@ export = {
1286
1286
1287
1287
// THEN
1288
1288
test . deepEqual ( bindCount , 2 ) ;
1289
+ test . done ( ) ;
1290
+ } ,
1291
+
1292
+ 'Provided Runtime returns the right values' ( test : Test ) {
1293
+ const rt = lambda . Runtime . Provided ;
1294
+
1295
+ test . equal ( rt . name , 'provided' ) ;
1296
+ test . equal ( rt . supportsInlineCode , false ) ;
1297
+
1289
1298
test . done ( ) ;
1290
1299
}
1291
1300
} ;
You can’t perform that action at this time.
0 commit comments