From 4d48f9aed50a5d127f8e2c14e7d853ad8478d425 Mon Sep 17 00:00:00 2001 From: Yiming Luo Date: Mon, 30 Sep 2024 16:41:27 -0400 Subject: [PATCH] feat: Support both Lambda APIs in the example Python stack --- examples/python-stack/app.py | 2 ++ .../{cdk_python_stack.py => cdk_python_lambda_old_api_stack.py} | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) rename examples/python-stack/cdk_python/{cdk_python_stack.py => cdk_python_lambda_old_api_stack.py} (94%) diff --git a/examples/python-stack/app.py b/examples/python-stack/app.py index 417b29f0..1104d47f 100644 --- a/examples/python-stack/app.py +++ b/examples/python-stack/app.py @@ -1,8 +1,10 @@ #!/usr/bin/env python3 from aws_cdk import App from cdk_python.cdk_python_stack import CdkPythonStack +from cdk_python.cdk_python_lambda_old_api_stack import CdkPythonLambdaOldApiStack app = App() CdkPythonStack(app, "CdkPythonStack") +CdkPythonLambdaOldApiStack(app, "CdkPythonLambdaOldApiStack") app.synth() diff --git a/examples/python-stack/cdk_python/cdk_python_stack.py b/examples/python-stack/cdk_python/cdk_python_lambda_old_api_stack.py similarity index 94% rename from examples/python-stack/cdk_python/cdk_python_stack.py rename to examples/python-stack/cdk_python/cdk_python_lambda_old_api_stack.py index fecffca1..9193d3e6 100644 --- a/examples/python-stack/cdk_python/cdk_python_stack.py +++ b/examples/python-stack/cdk_python/cdk_python_lambda_old_api_stack.py @@ -3,7 +3,7 @@ import os from cdk_python.cdk_python_stack_base import CdkPythonStackBase -class CdkPythonStack(CdkPythonStackBase): +class CdkPythonLambdaOldApiStack(CdkPythonStackBase): def __init__(self, scope: Construct, id: str, **kwargs) -> None: super().__init__(scope, id, **kwargs)