We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e590781 commit 78d8b43Copy full SHA for 78d8b43
1 file changed
example.py
@@ -1,13 +1,16 @@
1
# MIT Licensed, Copyright (c) 2015 Ryan Scott Brown <sb@ryansb.com>
2
3
-from cfn_wrapper import cfn_resource
4
-
5
-@cfn_resource
6
-def lambda_handler(event, context):
7
- # deal with your external service here
8
- return {
9
- "Status": "SUCCESS",
10
- "Reason": "Life is good, man",
11
- "PhysicalResourceId": "some:fake:id",
12
- "Data": {},
13
- }
+import cfn_resource
+
+# set `handler` as the entry point for Lambda
+handler = cfn_resource.Resource()
+@handler.create
+def create_thing(event, context):
+ # do some stuff
+ return {"PhysicalResourceId": "arn:aws:fake:myID"}
+@handler.update
14
+def update_thing(event, context):
15
16
0 commit comments