Skip to content

Commit ebef303

Browse files
authored
feat(lambda): add Python 3.14 runtime for Lambda (#35869)
### Issue # (if applicable) N/A ### Reason for this change Add Python 3.14 Runtime to the available [Lambda Runtimes constants](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Runtime.html#initializer) ### Description of changes Have added integration tests to validate the runtime support ### Describe any new or updated permissions being added No ### Description of how you validated changes ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent db71fac commit ebef303

File tree

6 files changed

+126
-135
lines changed

6 files changed

+126
-135
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js.snapshot/aws-cdk-lambda-runtime-inlinecode.assets.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js.snapshot/aws-cdk-lambda-runtime-inlinecode.template.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,56 @@
250250
"PYTHON313ServiceRole907582AC"
251251
]
252252
},
253+
"PYTHON314ServiceRoleB0324A64": {
254+
"Type": "AWS::IAM::Role",
255+
"Properties": {
256+
"AssumeRolePolicyDocument": {
257+
"Statement": [
258+
{
259+
"Action": "sts:AssumeRole",
260+
"Effect": "Allow",
261+
"Principal": {
262+
"Service": "lambda.amazonaws.com"
263+
}
264+
}
265+
],
266+
"Version": "2012-10-17"
267+
},
268+
"ManagedPolicyArns": [
269+
{
270+
"Fn::Join": [
271+
"",
272+
[
273+
"arn:",
274+
{
275+
"Ref": "AWS::Partition"
276+
},
277+
":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
278+
]
279+
]
280+
}
281+
]
282+
}
283+
},
284+
"PYTHON314C98D0951": {
285+
"Type": "AWS::Lambda::Function",
286+
"Properties": {
287+
"Code": {
288+
"ZipFile": "def handler(event, context):\n return \"success\""
289+
},
290+
"Handler": "index.handler",
291+
"Role": {
292+
"Fn::GetAtt": [
293+
"PYTHON314ServiceRoleB0324A64",
294+
"Arn"
295+
]
296+
},
297+
"Runtime": "python3.14"
298+
},
299+
"DependsOn": [
300+
"PYTHON314ServiceRoleB0324A64"
301+
]
302+
},
253303
"NODEJS20XServiceRole188A4E38": {
254304
"Type": "AWS::IAM::Role",
255305
"Properties": {
@@ -377,6 +427,11 @@
377427
"Ref": "PYTHON3136F4F65AE"
378428
}
379429
},
430+
"PYTHON314functionName": {
431+
"Value": {
432+
"Ref": "PYTHON314C98D0951"
433+
}
434+
},
380435
"NODEJS20XfunctionName": {
381436
"Value": {
382437
"Ref": "NODEJS20X70A25ADE"

packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.inlinecode.js.snapshot/manifest.json

Lines changed: 51 additions & 131 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)