Amazon.Lambda.Templates
7.4.0
Prefix Reserved
dotnet new install Amazon.Lambda.Templates::7.4.0
AWS Lambda .NET Blueprints
Blueprints are used for setting up new .NET Core projects for AWS Lambda. They are defined in a generic form
so that they can be exposed through Visual Studio or the dotnet CLI with the command dotnet new
.
Definitions
The blueprints are defined in sub directories under the BlueprintDefinitions directory. There is a separate sub folder for each version of Visual Studio that contains Lambda blueprints.
For each blueprint there is a blueprint-manifest.json file containing the metadata for the blueprint and a src and test directory. It is required that each blueprint must contain a test project.
Packaging
The .NET Core console application BlueprintPackager is used to package up the blueprints for both Visual Studio and Yeoman.
The console application can be run by executing dotnet run
in the project directory.
Creating Projects from "dotnet new"
The blueprints are also packaged up into the NuGet package Amazon.Lambda.Templates and can be installed into the dotnet CLI by running the following command:
dotnet new -i Amazon.Lambda.Templates::*
Once that is complete the list of available projects types can be seen by running the following command.
dotnet new -all
Templates Short Name Language Tags
------------------------------------------------------------------------------------------------------
Lambda Detect Image Labels lambda.DetectImageLabels [C#] AWS/Lambda/Function
Lambda Empty Function lambda.EmptyFunction [C#] AWS/Lambda/Function
Lambda Simple DynamoDB Function lambda.DynamoDB [C#] AWS/Lambda/Function
Lambda Simple Kinesis Function lambda.Kinesis [C#] AWS/Lambda/Function
Lambda Simple S3 Function lambda.S3 [C#] AWS/Lambda/Function
Lambda ASP.NET Core Web API lambda.AspNetCoreWebAPI [C#] AWS/Lambda/Serverless
Lambda DynamoDB Blog API lambda.DynamoDBBlogAPI [C#] AWS/Lambda/Serverless
Lambda Empty Serverless lambda.EmptyServerless [C#] AWS/Lambda/Serverless
Console Application console [C#], F# Common/Console
Class library classlib [C#], F# Common/Library
Unit Test Project mstest [C#], F# Test/MSTest
xUnit Test Project xunit [C#], F# Test/xUnit
ASP.NET Core Empty web [C#] Web/Empty
ASP.NET Core Web App mvc [C#], F# Web/MVC
ASP.NET Core Web API webapi [C#] Web/WebAPI
Nuget Config nugetconfig Config
Web Config webconfig Config
Solution File sln Solution
To get help on a project template with dotnet new
run the following:
dotnet new lambda.EmptyFunction --help
Template Instantiation Commands for .NET Core CLI.
Usage: dotnet new [arguments] [options]
Arguments:
template The template to instantiate.
Options:
-l|--list List templates containing the specified name.
-lang|--language Specifies the language of the template to create
-n|--name The name for the output being created. If no name is specified, the name of the current directory is used.
-o|--output Location to place the generated output.
-h|--help Displays help for this command.
-all|--show-all Shows all templates
Lambda Empty Function (C#)
Author: AWS
Options:
-p|--profile The AWS credentials profile set in aws-lambda-tools-defaults.json and used as the default profile when interacting with AWS.
string - Optional
-r|--region The AWS region set in aws-lambda-tools-defaults.json and used as the default region when interacting with AWS.
string - Optional
To create a project run the following command:
dotnet new lambda.EmptyFunction --name ExampleFunction --profile default --region us-east-2
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
7.4.0 | 3,663 | 11/25/2024 |
7.3.0 | 3,525 | 11/14/2024 |
7.2.1 | 6,689 | 10/31/2024 |
7.2.0 | 45,342 | 6/21/2024 |
7.1.1 | 21,839 | 4/11/2024 |
7.1.0 | 5,433 | 3/27/2024 |
7.0.0 | 12,353 | 2/22/2024 |
6.15.1 | 19,522 | 12/15/2023 |
6.15.0 | 9,291 | 11/14/2023 |
6.14.0 | 35,735 | 7/17/2023 |
6.13.1 | 10,928 | 6/7/2023 |
6.13.0 | 13,174 | 4/24/2023 |
6.12.0 | 5,087 | 4/7/2023 |
6.11.0 | 5,647 | 3/24/2023 |
6.10.0 | 10,129 | 2/27/2023 |
6.9.0 | 23,113 | 12/8/2022 |
6.8.1 | 993 | 12/7/2022 |
6.8.0 | 6,708 | 11/17/2022 |
6.7.0 | 2,393 | 11/8/2022 |
6.6.0 | 1,138 | 11/4/2022 |
6.5.0 | 8,073 | 10/12/2022 |
6.4.0 | 4,004 | 9/29/2022 |
6.3.0 | 14,569 | 8/4/2022 |
6.2.0 | 15,399 | 5/25/2022 |
6.1.1 | 6,997 | 5/3/2022 |
6.1.0 | 31,824 | 3/24/2022 |
6.0.0 | 5,659 | 2/23/2022 |
5.8.0 | 8,582 | 1/5/2022 |
5.7.0 | 2,021 | 12/20/2021 |
5.6.1 | 475 | 10/12/2022 |
5.6.0 | 4,571 | 11/22/2021 |
5.5.1 | 477 | 6/28/2022 |
5.5.0 | 10,116 | 9/28/2021 |
5.4.0 | 12,552 | 7/17/2021 |
5.3.0 | 10,139 | 5/3/2021 |
5.2.0 | 5,486 | 3/26/2021 |
5.1.0 | 28,569 | 1/11/2021 |
5.0.0 | 5,750 | 12/2/2020 |
4.2.0 | 6,127 | 10/30/2020 |
4.1.2 | 24,434 | 5/4/2020 |
4.1.1 | 1,162 | 4/28/2020 |
4.1.0 | 674 | 4/28/2020 |
4.0.0 | 3,287 | 3/31/2020 |
3.10.1 | 495 | 9/28/2021 |
3.10.0 | 463 | 1/11/2021 |
3.9.0 | 15,193 | 10/25/2019 |
3.8.1 | 5,965 | 8/16/2019 |
3.8.0 | 4,771 | 6/20/2019 |
3.7.1 | 3,751 | 5/1/2019 |
3.7.0 | 3,138 | 3/18/2019 |
3.6.0 | 1,966 | 2/21/2019 |
3.5.1 | 2,146 | 2/8/2019 |
3.5.0 | 895 | 2/7/2019 |
3.4.0 | 7,112 | 9/25/2018 |
3.3.0 | 1,715 | 9/11/2018 |
3.2.0 | 3,812 | 7/9/2018 |
3.1.0 | 1,581 | 6/28/2018 |
3.0.0 | 9,619 | 5/1/2018 |
2.0.3 | 7,938 | 2/12/2018 |
2.0.2 | 1,460 | 2/5/2018 |
2.0.1 | 2,158 | 1/16/2018 |
2.0.0 | 1,194 | 1/15/2018 |
1.4.5 | 1,424 | 12/23/2017 |
1.4.4 | 1,171 | 12/22/2017 |
1.4.3 | 1,238 | 12/20/2017 |
1.4.2 | 1,233 | 12/12/2017 |
1.4.1 | 1,732 | 9/15/2017 |
1.4.0 | 1,287 | 8/22/2017 |
1.3.1 | 1,317 | 7/26/2017 |
1.3.0 | 1,420 | 6/1/2017 |
1.2.1 | 1,488 | 4/28/2017 |
1.2.0 | 1,199 | 4/27/2017 |
1.1.0 | 1,151 | 4/26/2017 |
1.0.0 | 1,557 | 3/21/2017 |