Skip to content

Commit c46b013

Browse files
authored
chore(config): Runtime updating of test code (#25349)
the following runtime support - Node.js 14 - 30 Apr 2023 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 4cbb790 commit c46b013

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/aws-cdk-lib/aws-config/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const evalComplianceFn = new lambda.Function(this, "CustomFunction", {
107107
"exports.handler = (event) => console.log(event);"
108108
),
109109
handler: "index.handler",
110-
runtime: lambda.Runtime.NODEJS_14_X,
110+
runtime: lambda.Runtime.NODEJS_18_X,
111111
});
112112

113113
// A custom rule that runs on configuration changes of EC2 instances
@@ -247,7 +247,7 @@ Compliance events are published to an SNS topic.
247247
const evalComplianceFn = new lambda.Function(this, 'CustomFunction', {
248248
code: lambda.AssetCode.fromInline('exports.handler = (event) => console.log(event);'),
249249
handler: 'index.handler',
250-
runtime: lambda.Runtime.NODEJS_14_X,
250+
runtime: lambda.Runtime.NODEJS_18_X,
251251
});
252252

253253
// A custom rule that runs on configuration changes of EC2 instances

packages/aws-cdk-lib/aws-config/test/rule.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('rule', () => {
4141
const fn = new lambda.Function(stack, 'Function', {
4242
code: lambda.AssetCode.fromInline('foo'),
4343
handler: 'index.handler',
44-
runtime: lambda.Runtime.NODEJS_14_X,
44+
runtime: lambda.Runtime.NODEJS_18_X,
4545
});
4646

4747
// WHEN
@@ -197,7 +197,7 @@ describe('rule', () => {
197197
const fn = new lambda.Function(stack, 'Function', {
198198
code: lambda.AssetCode.fromInline('foo'),
199199
handler: 'index.handler',
200-
runtime: lambda.Runtime.NODEJS_14_X,
200+
runtime: lambda.Runtime.NODEJS_18_X,
201201
});
202202

203203
// THEN
@@ -214,7 +214,7 @@ describe('rule', () => {
214214
const fn = new lambda.Function(stack, 'Function', {
215215
code: lambda.AssetCode.fromInline('foo'),
216216
handler: 'index.handler',
217-
runtime: lambda.Runtime.NODEJS_14_X,
217+
runtime: lambda.Runtime.NODEJS_18_X,
218218
});
219219

220220
// THEN
@@ -233,7 +233,7 @@ describe('rule', () => {
233233
const fn = new lambda.Function(stack, 'Function', {
234234
code: lambda.Code.fromInline('dummy'),
235235
handler: 'index.handler',
236-
runtime: lambda.Runtime.NODEJS_14_X,
236+
runtime: lambda.Runtime.NODEJS_18_X,
237237
});
238238

239239
// WHEN
@@ -461,7 +461,7 @@ describe('rule', () => {
461461
const fn = new lambda.Function(stack, 'Function', {
462462
code: lambda.AssetCode.fromInline('foo'),
463463
handler: 'index.handler',
464-
runtime: lambda.Runtime.NODEJS_14_X,
464+
runtime: lambda.Runtime.NODEJS_18_X,
465465
});
466466

467467
// WHEN

0 commit comments

Comments
 (0)