Skip to content

Commit

Permalink
feat: Support both Lambda APIs in the example Python stack
Browse files Browse the repository at this point in the history
  • Loading branch information
lym953 committed Sep 30, 2024
1 parent 6eec489 commit 4d48f9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/python-stack/app.py
Original file line number Diff line number Diff line change
@@ -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()
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4d48f9a

Please sign in to comment.