Skip to content

Commit 74535c5

Browse files
committed
updated Readmes
1 parent 2efd6b2 commit 74535c5

File tree

9 files changed

+161
-156
lines changed

9 files changed

+161
-156
lines changed

cpp/example_code/lambda/README.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ Next, for information on code example structures and how to build and run the ex
4242
- [Hello Lambda](hello_lambda/CMakeLists.txt#L4) (`ListFunctions`)
4343

4444

45+
### Basics
46+
47+
Code examples that show you how to perform the essential operations within a service.
48+
49+
- [Learn the basics](get_started_with_functions_scenario.cpp)
50+
51+
4552
### Single actions
4653

4754
Code excerpts that show you how to call individual service functions.
@@ -60,7 +67,6 @@ Code examples that show you how to accomplish a specific task by calling multipl
6067
functions within the same service.
6168

6269
- [Create a serverless application to manage photos](../../example_code/cross-service/photo_asset_manager)
63-
- [Get started with functions](get_started_with_functions_scenario.cpp)
6470

6571

6672
<!--custom.examples.start-->
@@ -91,35 +97,35 @@ folder.
9197
This example shows you how to get started using Lambda.
9298

9399

100+
#### Learn the basics
94101

95-
#### Create a serverless application to manage photos
102+
This example shows you how to do the following:
96103

97-
This example shows you how to create a serverless application that lets users manage photos using labels.
104+
- Create an IAM role and Lambda function, then upload handler code.
105+
- Invoke the function with a single parameter and get results.
106+
- Update the function code and configure with an environment variable.
107+
- Invoke the function with new parameters and get results. Display the returned execution log.
108+
- List the functions for your account, then clean up resources.
98109

110+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
111+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
99112

100-
<!--custom.scenario_prereqs.cross_PAM.start-->
101-
<!--custom.scenario_prereqs.cross_PAM.end-->
102113

114+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
115+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->
103116

104-
<!--custom.scenarios.cross_PAM.start-->
105-
<!--custom.scenarios.cross_PAM.end-->
106117

107-
#### Get started with functions
118+
#### Create a serverless application to manage photos
108119

109-
This example shows you how to do the following:
120+
This example shows you how to create a serverless application that lets users manage photos using labels.
110121

111-
- Create an IAM role and Lambda function, then upload handler code.
112-
- Invoke the function with a single parameter and get results.
113-
- Update the function code and configure with an environment variable.
114-
- Invoke the function with new parameters and get results. Display the returned execution log.
115-
- List the functions for your account, then clean up resources.
116122

117-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
118-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
123+
<!--custom.scenario_prereqs.cross_PAM.start-->
124+
<!--custom.scenario_prereqs.cross_PAM.end-->
119125

120126

121-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
122-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->
127+
<!--custom.scenarios.cross_PAM.start-->
128+
<!--custom.scenarios.cross_PAM.end-->
123129

124130
### Tests
125131

dotnetv3/Lambda/README.md

Lines changed: 24 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `dotnetv3
3434
- [Hello Lambda](Actions/HelloLambda.cs#L4) (`ListFunctions`)
3535

3636

37+
### Basics
38+
39+
Code examples that show you how to perform the essential operations within a service.
40+
41+
- [Learn the basics](Actions/LambdaWrapper.cs)
42+
43+
3744
### Single actions
3845

3946
Code excerpts that show you how to call individual service functions.
@@ -53,7 +60,6 @@ functions within the same service.
5360

5461
- [Create a serverless application to manage photos](../cross-service/PhotoAssetManager)
5562
- [Create an application to analyze customer feedback](../cross-service/FeedbackSentimentAnalyzer)
56-
- [Get started with functions](Actions/LambdaWrapper.cs)
5763
- [Transform data with S3 Object Lambda](../cross-service/S3ObjectLambdaFunction)
5864

5965

@@ -90,6 +96,23 @@ Alternatively, you can run the example from within your IDE.
9096
This example shows you how to get started using Lambda.
9197

9298

99+
#### Learn the basics
100+
101+
This example shows you how to do the following:
102+
103+
- Create an IAM role and Lambda function, then upload handler code.
104+
- Invoke the function with a single parameter and get results.
105+
- Update the function code and configure with an environment variable.
106+
- Invoke the function with new parameters and get results. Display the returned execution log.
107+
- List the functions for your account, then clean up resources.
108+
109+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
110+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
111+
112+
113+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
114+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->
115+
93116

94117
#### Create a serverless application to manage photos
95118

@@ -115,42 +138,6 @@ This example shows you how to create an application that analyzes customer comme
115138
<!--custom.scenarios.cross_FSA.start-->
116139
<!--custom.scenarios.cross_FSA.end-->
117140

118-
#### Get started with functions
119-
120-
This example shows you how to do the following:
121-
122-
- Create an IAM role and Lambda function, then upload handler code.
123-
- Invoke the function with a single parameter and get results.
124-
- Update the function code and configure with an environment variable.
125-
- Invoke the function with new parameters and get results. Display the returned execution log.
126-
- List the functions for your account, then clean up resources.
127-
128-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
129-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
130-
131-
132-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
133-
Before you can run the getting started with Lambda scenario, you must upload
134-
the following two files to an Amazon Simple Storage Service (Amazon S3) bucket that you
135-
own:
136-
137-
* [LambdaIncrement.zip](LambdaIncrement.zip)
138-
* [LambdaCalculator.zip](LambdaCalculator.zip)
139-
140-
##### Configuration settings
141-
142-
The scenario includes the following settings in `settings.json`:
143-
144-
* `FunctionName` - A name for the Lambda function.
145-
* `Handler` - "LambdaIncrement::LambdaIncrement.Function::FunctionHandler"
146-
* `UpdatedHandler` - "LambdaCalculator::LambdaCalculator.Function::FunctionHandler"
147-
* `BucketName` - The name of the bucket containing the .zip files for the sample functions.
148-
* `IncrementKey` - "LambdaIncrement.zip",
149-
* `CalculatorKey` - "LambdaCalculator.zip",
150-
* `RoleName` - The name of the IAM role that gives the scenario permissions to access Lambda.
151-
* `PolicyArn` - The Amazon Resource Name (ARN) of a policy giving the IAM role permissions to access Lambda.
152-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->
153-
154141
#### Transform data with S3 Object Lambda
155142

156143
This example shows you how to transform data for your application with S3 Object Lambda.

gov2/lambda/README.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `gov2` fo
3434
- [Hello Lambda](hello/hello.go#L4) (`ListFunctions`)
3535

3636

37+
### Basics
38+
39+
Code examples that show you how to perform the essential operations within a service.
40+
41+
- [Learn the basics](scenarios/scenario_get_started_functions.go)
42+
43+
3744
### Single actions
3845

3946
Code excerpts that show you how to call individual service functions.
@@ -53,7 +60,6 @@ functions within the same service.
5360

5461
- [Automatically confirm known users with a Lambda function](../workflows/user_pools_and_lambda_triggers/workflows/scenario_auto_confirm_trusted_accounts.go)
5562
- [Automatically migrate known users with a Lambda function](../workflows/user_pools_and_lambda_triggers/workflows/scenario_migrate_user.go)
56-
- [Get started with functions](scenarios/scenario_get_started_functions.go)
5763
- [Write custom activity data with a Lambda function after Amazon Cognito user authentication](../workflows/user_pools_and_lambda_triggers/workflows/scenario_activity_log.go)
5864

5965

@@ -84,6 +90,23 @@ and to get help for running a scenario, use the following command:
8490
```
8591
go run ./cmd -h
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+
107+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
108+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->
109+
87110

88111
#### Automatically confirm known users with a Lambda function
89112

@@ -118,23 +141,6 @@ This example shows you how to automatically migrate known Amazon Cognito users w
118141
<!--custom.scenarios.cross_CognitoAutoMigrateUser.start-->
119142
<!--custom.scenarios.cross_CognitoAutoMigrateUser.end-->
120143

121-
#### Get started with functions
122-
123-
This example shows you how to do the following:
124-
125-
- Create an IAM role and Lambda function, then upload handler code.
126-
- Invoke the function with a single parameter and get results.
127-
- Update the function code and configure with an environment variable.
128-
- Invoke the function with new parameters and get results. Display the returned execution log.
129-
- List the functions for your account, then clean up resources.
130-
131-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
132-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
133-
134-
135-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
136-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->
137-
138144
#### Write custom activity data with a Lambda function after Amazon Cognito user authentication
139145

140146
This example shows you how to write custom activity data with a Lambda function after Amazon Cognito user authentication.

javascriptv3/example_code/lambda/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `javas
3434
- [Hello Lambda](hello.js#L6) (`ListFunctions`)
3535

3636

37+
### Basics
38+
39+
Code examples that show you how to perform the essential operations within a service.
40+
41+
- [Learn the basics](../iam/actions/attach-role-policy.js)
42+
43+
3744
### Single actions
3845

3946
Code excerpts that show you how to call individual service functions.
@@ -46,13 +53,6 @@ Code excerpts that show you how to call individual service functions.
4653
- [UpdateFunctionCode](actions/update-function-code.js#L15)
4754
- [UpdateFunctionConfiguration](actions/update-function-configuration.js#L12)
4855

49-
### Scenarios
50-
51-
Code examples that show you how to accomplish a specific task by calling multiple
52-
functions within the same service.
53-
54-
- [Get started with functions](../iam/actions/attach-role-policy.js)
55-
5656

5757
<!--custom.examples.start-->
5858
<!--custom.examples.end-->
@@ -98,8 +98,7 @@ This example shows you how to get started using Lambda.
9898
node ./hello.js
9999
```
100100

101-
102-
#### Get started with functions
101+
#### Learn the basics
103102

104103
This example shows you how to do the following:
105104

@@ -109,12 +108,13 @@ This example shows you how to do the following:
109108
- Invoke the function with new parameters and get results. Display the returned execution log.
110109
- List the functions for your account, then clean up resources.
111110

112-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
113-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
111+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
112+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
113+
114114

115+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
116+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->
115117

116-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
117-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->
118118

119119
### Tests
120120

kotlin/services/lambda/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `kotli
2929
<!--custom.prerequisites.start-->
3030
<!--custom.prerequisites.end-->
3131

32+
### Basics
33+
34+
Code examples that show you how to perform the essential operations within a service.
35+
36+
- [Learn the basics](src/main/kotlin/com/kotlin/lambda/LambdaScenario.kt)
37+
38+
3239
### Single actions
3340

3441
Code excerpts that show you how to call individual service functions.
@@ -37,13 +44,6 @@ Code excerpts that show you how to call individual service functions.
3744
- [DeleteFunction](src/main/kotlin/com/kotlin/lambda/DeleteFunction.kt#L38)
3845
- [Invoke](src/main/kotlin/com/kotlin/lambda/LambdaInvoke.kt#L39)
3946

40-
### Scenarios
41-
42-
Code examples that show you how to accomplish a specific task by calling multiple
43-
functions within the same service.
44-
45-
- [Get started with functions](src/main/kotlin/com/kotlin/lambda/LambdaScenario.kt)
46-
4747

4848
<!--custom.examples.start-->
4949
<!--custom.examples.end-->
@@ -57,8 +57,7 @@ functions within the same service.
5757
<!--custom.instructions.end-->
5858

5959

60-
61-
#### Get started with functions
60+
#### Learn the basics
6261

6362
This example shows you how to do the following:
6463

@@ -68,12 +67,13 @@ This example shows you how to do the following:
6867
- Invoke the function with new parameters and get results. Display the returned execution log.
6968
- List the functions for your account, then clean up resources.
7069

71-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
72-
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
70+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
71+
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
72+
7373

74+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
75+
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->
7476

75-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
76-
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->
7777

7878
### Tests
7979

0 commit comments

Comments
 (0)