FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
blog-code-examples/aws-lambda-python-2-7/lambda.py at master · yinchinan010/blog-code-examples · GitHub
yinchinan010
/
blog-code-examples
Public
forked from
fullstackpython/blog-code-examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
blog-code-examples
/
aws-lambda-python-2-7
/
lambda.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (10 loc) · 388 Bytes
Breadcrumbs
blog-code-examples
/
aws-lambda-python-2-7
/
lambda.py
Copy path
File metadata and controls
13 lines (10 loc) · 388 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
import
os
def
lambda_handler
(
event
,
context
):
what_to_print
=
os
.
environ
.
get
(
"what_to_print"
)
how_many_times
=
int
(
os
.
environ
.
get
(
"how_many_times"
))
# make sure what_to_print and how_many_times values exist
if
what_to_print
and
how_many_times
>
0
:
for
i
in
range
(
0
,
how_many_times
):
print
(
what_to_print
)
return
what_to_print
return
None
Back
|
FazBrowse Home
|
New Git URL