@@ -39,6 +39,13 @@ python -m pip install -r requirements.txt
3939- [ Hello Lambda] ( hello/hello_lambda.py#L4 ) (` ListFunctions ` )
4040
4141
42+ ### Basics
43+
44+ Code examples that show you how to perform the essential operations within a service.
45+
46+ - [ Learn the basics] ( lambda_handler_basic.py )
47+
48+
4249### Single actions
4350
4451Code excerpts that show you how to call individual service functions.
@@ -60,7 +67,6 @@ functions within the same service.
6067- [ Create a lending library REST API] ( ../../cross_service/aurora_rest_lending_library )
6168- [ Create a messenger application] ( ../../cross_service/stepfunctions_messenger )
6269- [ Create a websocket chat application] ( ../../cross_service/apigateway_websocket_chat )
63- - [ Get started with functions] ( lambda_handler_basic.py )
6470- [ Use API Gateway to invoke a Lambda function] ( ../../example_code/lambda )
6571- [ Use scheduled events to invoke a Lambda function] ( ../../example_code/lambda )
6672
@@ -84,6 +90,29 @@ This example shows you how to get started using Lambda.
8490python hello/hello_lambda.py
8591```
8692
93+ #### Learn the basics
94+
95+ This example shows you how to do the following:
96+
97+ - Create an IAM role and Lambda function, then upload handler code.
98+ - Invoke the function with a single parameter and get results.
99+ - Update the function code and configure with an environment variable.
100+ - Invoke the function with new parameters and get results. Display the returned execution log.
101+ - List the functions for your account, then clean up resources.
102+
103+ <!-- custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
104+ <!-- custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
105+
106+ Start the example by running the following at a command prompt:
107+
108+ ```
109+ python lambda_handler_basic.py
110+ ```
111+
112+
113+ <!-- custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
114+ <!-- custom.basics.lambda_Scenario_GettingStartedFunctions.end-->
115+
87116
88117#### Create a REST API to track COVID-19 data
89118
@@ -133,29 +162,6 @@ This example shows you how to create a chat application that is served by a webs
133162<!-- custom.scenarios.cross_ApiGatewayWebsocketChat.start-->
134163<!-- custom.scenarios.cross_ApiGatewayWebsocketChat.end-->
135164
136- #### Get started with functions
137-
138- This example shows you how to do the following:
139-
140- - Create an IAM role and Lambda function, then upload handler code.
141- - Invoke the function with a single parameter and get results.
142- - Update the function code and configure with an environment variable.
143- - Invoke the function with new parameters and get results. Display the returned execution log.
144- - List the functions for your account, then clean up resources.
145-
146- <!-- custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
147- <!-- custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
148-
149- Start the example by running the following at a command prompt:
150-
151- ```
152- python lambda_handler_basic.py
153- ```
154-
155-
156- <!-- custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
157- <!-- custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->
158-
159165#### Use API Gateway to invoke a Lambda function
160166
161167This example shows you how to create an AWS Lambda function invoked by Amazon API Gateway.
0 commit comments