@@ -19,7 +19,7 @@ describeCdkTest(SecureFunction, (id, getStack, getTemplate) => {
19
19
it ( 'creates lambda function with default properties' , ( ) => {
20
20
// Act
21
21
new SecureFunction ( stack , id , {
22
- runtime : Runtime . NODEJS_20_X ,
22
+ runtime : Runtime . NODEJS_22_X ,
23
23
handler : 'index.handler' ,
24
24
code : Code . fromInline ( 'exports.handler = function() { }' )
25
25
} ) ;
@@ -29,7 +29,7 @@ describeCdkTest(SecureFunction, (id, getStack, getTemplate) => {
29
29
30
30
template . hasResourceProperties ( 'AWS::Lambda::Function' , {
31
31
Handler : 'index.handler' ,
32
- Runtime : 'nodejs20 .x' ,
32
+ Runtime : 'nodejs22 .x' ,
33
33
ReservedConcurrentExecutions : 5
34
34
} ) ;
35
35
@@ -57,7 +57,7 @@ describeCdkTest(SecureFunction, (id, getStack, getTemplate) => {
57
57
it ( 'creates lambda function with custom log retention' , ( ) => {
58
58
// Act
59
59
new SecureFunction ( stack , id , {
60
- runtime : Runtime . NODEJS_20_X ,
60
+ runtime : Runtime . NODEJS_22_X ,
61
61
handler : 'index.handler' ,
62
62
code : Code . fromInline ( 'exports.handler = function() { }' ) ,
63
63
logGroupRetention : RetentionDays . ONE_WEEK
@@ -77,7 +77,7 @@ describeCdkTest(SecureFunction, (id, getStack, getTemplate) => {
77
77
78
78
// Act
79
79
new SecureFunction ( stack , id , {
80
- runtime : Runtime . NODEJS_20_X ,
80
+ runtime : Runtime . NODEJS_22_X ,
81
81
handler : 'index.handler' ,
82
82
code : Code . fromInline ( 'exports.handler = function() { }' ) ,
83
83
encryption : key
@@ -104,7 +104,7 @@ describeCdkTest(SecureFunction, (id, getStack, getTemplate) => {
104
104
it ( 'grants log write permissions to lambda' , ( ) => {
105
105
// Act
106
106
new SecureFunction ( stack , id , {
107
- runtime : Runtime . NODEJS_20_X ,
107
+ runtime : Runtime . NODEJS_22_X ,
108
108
handler : 'index.handler' ,
109
109
code : Code . fromInline ( 'exports.handler = function() { }' )
110
110
} ) ;
0 commit comments