Skip to content

Commit b3d6ded

Browse files
committed
Update Python CDK pattern versions to latest
1 parent 92771a3 commit b3d6ded

File tree

69 files changed

+85
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+85
-85
lines changed

adobe-eventbridge-lambda/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
5656
adobe_process_order_events_lambda = _lambda.Function(
5757
self,
5858
id='AdobeProcessOrderEventsLambda',
59-
runtime=_lambda.Runtime.PYTHON_3_11,
59+
runtime=_lambda.Runtime.PYTHON_3_14,
6060
code=_lambda.Code.from_asset('src'),
6161
handler='AdobeProcessOrderEvents.handler',
6262
role=lambda_role,

apigw-bedrock-cognito-cdk/apigw_bedrock_cognito_cdk/apigw_bedrock_cognito_cdk_stack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(
8686
"bedrock",
8787
None,
8888
BundlingOptions(
89-
image=_lambda.Runtime.PYTHON_3_12.bundling_image,
89+
image=_lambda.Runtime.PYTHON_3_14.bundling_image,
9090
command=[
9191
"bash",
9292
"-c",
@@ -151,7 +151,7 @@ def create_lambda_function(
151151
return _lambda.Function(
152152
self,
153153
func_id,
154-
runtime=_lambda.Runtime.PYTHON_3_12,
154+
runtime=_lambda.Runtime.PYTHON_3_14,
155155
code=_lambda.Code.from_asset(
156156
os.path.join("src", handler), bundling=bundle_options
157157
),

apigw-canary-deployment-cdk/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
2424
# Code in ./src directory
2525
lambda_fn = lambda_.Function(
2626
self, "MyFunction",
27-
runtime=lambda_.Runtime.PYTHON_3_9,
27+
runtime=lambda_.Runtime.PYTHON_3_14,
2828
handler="index.handler",
2929
code=lambda_.Code.from_asset(os.path.join(DIRNAME, "src"))
3030
)

apigw-dynamodb-python-cdk/apigw_dynamodb_python_cdk/lambda_construct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, scope: Construct, id: str ,**kwargs) -> None:
2929

3030
# Create lambda function.
3131
self.lambda_function = lambda_.Function(self, "LambdaFunction",
32-
runtime=lambda_.Runtime.PYTHON_3_12,
32+
runtime=lambda_.Runtime.PYTHON_3_14,
3333
handler="lambda_function.lambda_handler",
3434
role=lambda_execution_role,
3535
code=lambda_.Code.from_asset("src/lambda.zip")

apigw-http-api-lambda-cdk/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
2323
# The source code is in './src' directory
2424
lambda_fn = lambda_.Function(
2525
self, "MyFunction",
26-
runtime=lambda_.Runtime.PYTHON_3_9,
26+
runtime=lambda_.Runtime.PYTHON_3_14,
2727
handler="index.handler",
2828
code=lambda_.Code.from_asset(os.path.join(DIRNAME, "src")),
2929
environment={

apigw-http-api-lambda-dynamodb-python-cdk/stacks/apigw_http_api_lambda_dynamodb_python_cdk_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
7272
self,
7373
"ApiHandler",
7474
function_name="apigw_handler",
75-
runtime=lambda_.Runtime.PYTHON_3_9,
75+
runtime=lambda_.Runtime.PYTHON_3_14,
7676
code=lambda_.Code.from_asset("lambda/apigw-handler"),
7777
handler="index.handler",
7878
vpc=vpc,

apigw-lambda-bedrock-s3-cdk-python/apigw_lambda_bedrock/apigw_lambda_bedrock_s3_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
3939
boto_layer = _lambda.LayerVersion.from_layer_version_arn(self, "Boto3Layer", 'arn:aws:lambda:us-east-1:770693421928:layer:Klayers-p311-boto3:5')
4040
# Create the Lambda function and attach the layer
4141
lambda_function = _lambda.Function(self, "MyFunction",
42-
runtime=_lambda.Runtime.PYTHON_3_11,
42+
runtime=_lambda.Runtime.PYTHON_3_14,
4343
handler="index.handler",
4444
code=_lambda.Code.from_asset("./function_code"),
4545
layers=[PIL_layer,boto_layer],

apigw-lambda-iot-cdk/lib/apigw-lambda-iot-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class ApigwLambdaIotStack extends Stack {
2020
handler: 'handler.handler',
2121
code: Code.fromAsset('./src'),
2222
description: 'This function publishes a message to AWS IoT Core',
23-
runtime: Runtime.PYTHON_3_9,
23+
runtime: Runtime.PYTHON_3_14,
2424
})
2525

2626
const iotPublishHandlerPersmission = new PolicyStatement(({

apigw-lambda-redshiftdataapi/apigw_lambda_redshiftdataapi_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
8888
lambda_function = _lambda.Function(
8989
self,
9090
"RedshiftApiLambda",
91-
runtime=_lambda.Runtime.PYTHON_3_9,
91+
runtime=_lambda.Runtime.PYTHON_3_14,
9292
handler="index.lambda_handler",
9393
code=_lambda.InlineCode(
9494
"""

apigw-lambda-sagemaker-jumpstartendpoint-cdk-python/stack/ApigwLambdaSagemakerJumpstartendpointStack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def __init__(self, scope: Construct, construct_id: str, model_info, **kwargs) ->
9999
self,
100100
"InvokeSagemakerEndpointLambda",
101101
function_name="InvokeSagemakerEndpointLambda",
102-
runtime=_lambda.Runtime.PYTHON_3_9,
102+
runtime=_lambda.Runtime.PYTHON_3_14,
103103
handler="InvokeSagemakerEndpointLambda.lambda_handler",
104104
code=_lambda.Code.from_asset("lambda"),
105105
environment={

0 commit comments

Comments
 (0)