Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 29 additions & 4 deletions .doc_gen/metadata/lambda_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lambda_Hello:
excerpts:
- description:
snippet_tags:
- lambda.java2.ListLambdaFunctions.complete
- lambda.java2.list.main
.NET:
versions:
- sdk_version: 3
Expand Down Expand Up @@ -384,6 +384,15 @@ lambda_Invoke:
lambda: {Invoke}
lambda_GetFunction:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/lambda
sdkguide:
excerpts:
- description:
snippet_tags:
- lambda.java2.get.function.main
.NET:
versions:
- sdk_version: 3
Expand Down Expand Up @@ -469,6 +478,15 @@ lambda_GetFunction:
lambda: {GetFunction}
lambda_UpdateFunctionCode:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/lambda
sdkguide:
excerpts:
- description:
snippet_tags:
- lambda.java2.get.function.main
.NET:
versions:
- sdk_version: 3
Expand Down Expand Up @@ -555,6 +573,15 @@ lambda_UpdateFunctionCode:
lambda: {UpdateFunctionCode}
lambda_UpdateFunctionConfiguration:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/lambda
sdkguide:
excerpts:
- description:
snippet_tags:
- lambda.java2.update.config.main
.NET:
versions:
- sdk_version: 3
Expand Down Expand Up @@ -724,15 +751,13 @@ lambda_ListFunctions:
services:
lambda: {ListFunctions}
lambda_Scenario_GettingStartedFunctions:
title: Get started creating and invoking &LAM; functions using an &AWS; SDK
title_abbrev: Get started with functions
synopsis_list:
- Create an &IAM; role and &LAM; function, then upload handler code.
- Invoke the function with a single parameter and get results.
- Update the function code and configure with an environment variable.
- Invoke the function with new parameters and get results. Display the returned execution log.
- List the functions for your account, then clean up resources.
category: Scenarios
category: Basics
guide_topic:
title: Create a &LAM; function with the console
url: lambda/latest/dg/getting-started-create-function.html
Expand Down
42 changes: 24 additions & 18 deletions cpp/example_code/lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ Next, for information on code example structures and how to build and run the ex
- [Hello Lambda](hello_lambda/CMakeLists.txt#L4) (`ListFunctions`)


### Basics

Code examples that show you how to perform the essential operations within a service.

- [Learn the basics](get_started_with_functions_scenario.cpp)


### Single actions

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

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


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


#### Learn the basics

#### Create a serverless application to manage photos
This example shows you how to do the following:

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

<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->

<!--custom.scenario_prereqs.cross_PAM.start-->
<!--custom.scenario_prereqs.cross_PAM.end-->

<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->

<!--custom.scenarios.cross_PAM.start-->
<!--custom.scenarios.cross_PAM.end-->

#### Get started with functions
#### Create a serverless application to manage photos

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

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

<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
<!--custom.scenario_prereqs.cross_PAM.start-->
<!--custom.scenario_prereqs.cross_PAM.end-->


<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->
<!--custom.scenarios.cross_PAM.start-->
<!--custom.scenarios.cross_PAM.end-->

### Tests

Expand Down
61 changes: 24 additions & 37 deletions dotnetv3/Lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `dotnetv3
- [Hello Lambda](Actions/HelloLambda.cs#L4) (`ListFunctions`)


### Basics

Code examples that show you how to perform the essential operations within a service.

- [Learn the basics](Actions/LambdaWrapper.cs)


### Single actions

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

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


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


#### Learn the basics

This example shows you how to do the following:

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

<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->


<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->


#### Create a serverless application to manage photos

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

#### Get started with functions

This example shows you how to do the following:

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

<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->


<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
Before you can run the getting started with Lambda scenario, you must upload
the following two files to an Amazon Simple Storage Service (Amazon S3) bucket that you
own:

* [LambdaIncrement.zip](LambdaIncrement.zip)
* [LambdaCalculator.zip](LambdaCalculator.zip)

##### Configuration settings

The scenario includes the following settings in `settings.json`:

* `FunctionName` - A name for the Lambda function.
* `Handler` - "LambdaIncrement::LambdaIncrement.Function::FunctionHandler"
* `UpdatedHandler` - "LambdaCalculator::LambdaCalculator.Function::FunctionHandler"
* `BucketName` - The name of the bucket containing the .zip files for the sample functions.
* `IncrementKey` - "LambdaIncrement.zip",
* `CalculatorKey` - "LambdaCalculator.zip",
* `RoleName` - The name of the IAM role that gives the scenario permissions to access Lambda.
* `PolicyArn` - The Amazon Resource Name (ARN) of a policy giving the IAM role permissions to access Lambda.
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->

#### Transform data with S3 Object Lambda

This example shows you how to transform data for your application with S3 Object Lambda.
Expand Down
42 changes: 24 additions & 18 deletions gov2/lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `gov2` fo
- [Hello Lambda](hello/hello.go#L4) (`ListFunctions`)


### Basics

Code examples that show you how to perform the essential operations within a service.

- [Learn the basics](scenarios/scenario_get_started_functions.go)


### Single actions

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

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


Expand Down Expand Up @@ -84,6 +90,23 @@ and to get help for running a scenario, use the following command:
```
go run ./cmd -h
```
#### Learn the basics

This example shows you how to do the following:

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

<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->


<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->


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

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

#### Get started with functions

This example shows you how to do the following:

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

<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->


<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->

#### Write custom activity data with a Lambda function after Amazon Cognito user authentication

This example shows you how to write custom activity data with a Lambda function after Amazon Cognito user authentication.
Expand Down
26 changes: 13 additions & 13 deletions javascriptv3/example_code/lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `javas
- [Hello Lambda](hello.js#L6) (`ListFunctions`)


### Basics

Code examples that show you how to perform the essential operations within a service.

- [Learn the basics](../iam/actions/attach-role-policy.js)


### Single actions

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

### Scenarios

Code examples that show you how to accomplish a specific task by calling multiple
functions within the same service.

- [Get started with functions](../iam/actions/attach-role-policy.js)


<!--custom.examples.start-->
<!--custom.examples.end-->
Expand Down Expand Up @@ -98,8 +98,7 @@ This example shows you how to get started using Lambda.
node ./hello.js
```


#### Get started with functions
#### Learn the basics

This example shows you how to do the following:

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

<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.scenario_prereqs.lambda_Scenario_GettingStartedFunctions.end-->
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.basic_prereqs.lambda_Scenario_GettingStartedFunctions.end-->


<!--custom.basics.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.basics.lambda_Scenario_GettingStartedFunctions.end-->

<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.start-->
<!--custom.scenarios.lambda_Scenario_GettingStartedFunctions.end-->

### Tests

Expand Down
Loading
Loading