diff --git a/Blueprints/BlueprintDefinitions/vs2022/AnnotationsFramework/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/AnnotationsFramework/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 8c98a66c0..e58865a32 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AnnotationsFramework/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AnnotationsFramework/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,7 +1,7 @@ Library - net6.0 + net8.0 enable enable true @@ -14,8 +14,8 @@ - - + + @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-FSharp/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-FSharp/template/src/BlueprintBaseName.1/serverless.template index 36a82f1f2..7dff15bdd 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-FSharp/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-FSharp/template/src/BlueprintBaseName.1/serverless.template @@ -8,9 +8,9 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.LambdaEntryPoint::FunctionHandlerAsync", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index cc28ea9f0..1f5ed46d5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - netcoreapp3.1 + net8.0 False diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/.template.config/template.json index e1a4c209f..13c803850 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/.template.config/template.json @@ -6,7 +6,7 @@ "Lambda", "Serverless" ], - "name": "Lambda ASP.NET Core Web API (.NET 6 Container Image)", + "name": "Lambda ASP.NET Core Web API (.NET 8 Container Image)", "identity": "AWS.Lambda.Serverless.Image.AspNetCoreWebAPI.FSharp", "groupIdentity": "AWS.Lambda.Serverless.Image.AspNetCoreWebAPI", "shortName": "serverless.image.AspNetCoreWebAPI", diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index fdddb178d..734aa1759 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,7 +1,7 @@ Exe - net6.0 + net8.0 true Lambda @@ -18,6 +18,6 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile index 34e74b336..b27d64435 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile @@ -1,5 +1,4 @@ -FROM public.ecr.aws/lambda/dotnet:7 - +FROM public.ecr.aws/lambda/dotnet:8 WORKDIR /var/task # This COPY command copies the .NET Lambda project's build artifacts from the host machine into the image. diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md index e4b7e649b..0212586a4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md @@ -44,9 +44,9 @@ Alternatively the Docker file could be written to use [multi-stage](https://docs have the .NET project built inside the container. Below is an example of building the .NET project inside the image. ```dockerfile -FROM public.ecr.aws/lambda/dotnet:7 AS base +FROM public.ecr.aws/lambda/dotnet:8 AS base -FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim as build +FROM mcr.microsoft.com/dotnet/sdk:8.0 as build WORKDIR /src COPY ["BlueprintBaseName.1.csproj", "BlueprintBaseName.1/"] RUN dotnet restore "BlueprintBaseName.1/BlueprintBaseName.1.csproj" diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/serverless.template index f1991c49f..a2c672b93 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/src/BlueprintBaseName.1/serverless.template @@ -14,7 +14,7 @@ ] }, "ImageUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index 8c69b3923..6c3e7470a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net6.0 + net8.0 False diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/blueprint-manifest.json b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/blueprint-manifest.json index 7162bf90e..a8801e0c9 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/blueprint-manifest.json +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/blueprint-manifest.json @@ -1,7 +1,7 @@ { - "display-name": "ASP.NET Core 7 (Container Image)", + "display-name": "ASP.NET Core 8 (Container Image)", "system-name": "AspNetCoreWebAPIImage", - "description": "Serverless ASP.NET Core 7 Web API packaged as a container image.", + "description": "Serverless ASP.NET Core 8 Web API packaged as a container image.", "sort-order": 250, "hidden-tags": [ "C#", diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/.template.config/template.json index 595182d77..57d5039e1 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/.template.config/template.json @@ -6,7 +6,7 @@ "Lambda", "Serverless" ], - "name": "Lambda ASP.NET Core Web API (.NET 6 Container Image)", + "name": "Lambda ASP.NET Core Web API (.NET 8 Container Image)", "identity": "AWS.Lambda.Serverless.Image.AspNetCoreWebAPI.CSharp", "groupIdentity": "AWS.Lambda.Serverless.Image.AspNetCoreWebAPI", "shortName": "serverless.image.AspNetCoreWebAPI", diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 88cba1ad4..2adcf98d8 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,7 +1,7 @@ Exe - net7.0 + net8.0 enable enable true @@ -12,6 +12,6 @@ true - + - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/Dockerfile b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/Dockerfile index 34e74b336..30d679def 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/Dockerfile +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/Dockerfile @@ -1,4 +1,4 @@ -FROM public.ecr.aws/lambda/dotnet:7 +FROM public.ecr.aws/lambda/dotnet:8 WORKDIR /var/task diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs index bb27642b0..4bc1cac2e 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs @@ -25,7 +25,7 @@ public class LambdaEntryPoint : /// The builder has configuration, logging and Amazon API Gateway already configured. The startup class /// needs to be configured in this method using the UseStartup<>() method. /// - /// + /// The IWebHostBuilder to configure. protected override void Init(IWebHostBuilder builder) { builder @@ -38,7 +38,7 @@ protected override void Init(IWebHostBuilder builder) /// It is recommended not to call ConfigureWebHostDefaults to configure the IWebHostBuilder inside this method. /// Instead customize the IWebHostBuilder in the Init(IWebHostBuilder) overload. /// - /// + /// The IHostBuilder to configure. protected override void Init(IHostBuilder builder) { } diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/Readme.md index e84bbfd03..e5427804d 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/Readme.md @@ -51,9 +51,8 @@ Alternatively the Docker file could be written to use [multi-stage](https://docs have the .NET project built inside the container. Below is an example of building the .NET project inside the image. ```dockerfile -FROM public.ecr.aws/lambda/dotnet:7 AS base - -FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim as build +FROM public.ecr.aws/lambda/dotnet:8 +FROM mcr.microsoft.com/dotnet/sdk:8.0-bullseye-slim as build WORKDIR /src COPY ["BlueprintBaseName.1.csproj", "BlueprintBaseName.1/"] RUN dotnet restore "BlueprintBaseName.1/BlueprintBaseName.1.csproj" diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/serverless.template index 10dcf6555..ecb1bd636 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/src/BlueprintBaseName.1/serverless.template @@ -15,7 +15,7 @@ ] }, "ImageUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index fa0de5d80..4deece153 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 2b784eaef..e49406b70 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -11,6 +11,6 @@ true - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/Controllers/CalculatorController.cs b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/Controllers/CalculatorController.cs index ebe0f42a9..6d58fb50a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/Controllers/CalculatorController.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/Controllers/CalculatorController.cs @@ -16,8 +16,8 @@ public CalculatorController(ILogger logger) /// /// Perform x + y /// - /// - /// + /// Left hand operand of the arithmetic operation. + /// Right hand operand of the arithmetic operation. /// Sum of x and y. [HttpGet("add/{x}/{y}")] public int Add(int x, int y) @@ -29,8 +29,8 @@ public int Add(int x, int y) /// /// Perform x - y. /// - /// - /// + /// Left hand operand of the arithmetic operation. + /// Right hand operand of the arithmetic operation. /// x subtract y [HttpGet("subtract/{x}/{y}")] public int Subtract(int x, int y) @@ -42,8 +42,8 @@ public int Subtract(int x, int y) /// /// Perform x * y. /// - /// - /// + /// Left hand operand of the arithmetic operation. + /// Right hand operand of the arithmetic operation. /// x multiply y [HttpGet("multiply/{x}/{y}")] public int Multiply(int x, int y) @@ -55,8 +55,8 @@ public int Multiply(int x, int y) /// /// Perform x / y. /// - /// - /// + /// Left hand operand of the arithmetic operation. + /// Right hand operand of the arithmetic operation. /// x divide y [HttpGet("divide/{x}/{y}")] public int Divide(int x, int y) diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/serverless.template index ca924793a..2d9f0225e 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI.MinimalAPI/template/src/BlueprintBaseName.1/serverless.template @@ -9,9 +9,9 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 4d489a0ac..2adcf98d8 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net8.0 enable enable true @@ -12,6 +12,6 @@ true - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs index bb27642b0..4bc1cac2e 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs @@ -25,7 +25,7 @@ public class LambdaEntryPoint : /// The builder has configuration, logging and Amazon API Gateway already configured. The startup class /// needs to be configured in this method using the UseStartup<>() method. /// - /// + /// The IWebHostBuilder to configure. protected override void Init(IWebHostBuilder builder) { builder @@ -38,7 +38,7 @@ protected override void Init(IWebHostBuilder builder) /// It is recommended not to call ConfigureWebHostDefaults to configure the IWebHostBuilder inside this method. /// Instead customize the IWebHostBuilder in the Init(IWebHostBuilder) overload. /// - /// + /// The IHostBuilder to configure. protected override void Init(IHostBuilder builder) { } diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/serverless.template index e52a556c5..6858f8047 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/src/BlueprintBaseName.1/serverless.template @@ -9,9 +9,9 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.LambdaEntryPoint::FunctionHandlerAsync", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 6f8487858..77f3bed94 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebAPI/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index f5f46d768..e0e5485e9 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net8.0 enable enable true @@ -12,7 +12,7 @@ true - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs index bb27642b0..4bc1cac2e 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/LambdaEntryPoint.cs @@ -25,7 +25,7 @@ public class LambdaEntryPoint : /// The builder has configuration, logging and Amazon API Gateway already configured. The startup class /// needs to be configured in this method using the UseStartup<>() method. /// - /// + /// The IWebHostBuilder to configure. protected override void Init(IWebHostBuilder builder) { builder @@ -38,7 +38,7 @@ protected override void Init(IWebHostBuilder builder) /// It is recommended not to call ConfigureWebHostDefaults to configure the IWebHostBuilder inside this method. /// Instead customize the IWebHostBuilder in the Init(IWebHostBuilder) overload. /// - /// + /// The IHostBuilder to configure. protected override void Init(IHostBuilder builder) { } diff --git a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/serverless.template index ce8a64b5f..aa64abedc 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/AspNetCoreWebApp/template/src/BlueprintBaseName.1/serverless.template @@ -18,7 +18,7 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.LambdaEntryPoint::FunctionHandlerAsync", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", "MemorySize": 512, "Timeout": 30, diff --git a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/AbstractIntentProcessor.cs b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/AbstractIntentProcessor.cs index bd6b8b280..60713b553 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/AbstractIntentProcessor.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/AbstractIntentProcessor.cs @@ -15,8 +15,8 @@ public abstract class AbstractIntentProcessor : IIntentProcessor /// /// Main method for proccessing the lex event for the intent. /// - /// - /// + /// The event coming from the Lex service. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public abstract LexResponse Process(LexEvent lexEvent, ILambdaContext context); diff --git a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index fad00e15c..7d864e3b4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/Function.cs index 43f363603..27be97f18 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/Function.cs @@ -14,8 +14,8 @@ public class Function /// Then entry point for the Lambda function that looks at the current intent and calls /// the appropriate intent process. /// - /// - /// + /// The event coming from the Lex service. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public LexResponse FunctionHandler(LexEvent lexEvent, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/IIntentProcessor.cs b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/IIntentProcessor.cs index ffb5ff647..f9d9c6d9c 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/IIntentProcessor.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/IIntentProcessor.cs @@ -11,8 +11,8 @@ public interface IIntentProcessor /// /// Main method for processing the Lex event for the intent. /// - /// - /// + /// The event coming from the Lex service. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// LexResponse Process(LexEvent lexEvent, ILambdaContext context); } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/OrderFlowersIntentProcessor.cs b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/OrderFlowersIntentProcessor.cs index 51a3b917c..fbc30835c 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/OrderFlowersIntentProcessor.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/OrderFlowersIntentProcessor.cs @@ -20,8 +20,8 @@ public class OrderFlowersIntentProcessor : AbstractIntentProcessor /// 1) Use of elicitSlot in slot validation and re-prompting /// 2) Use of sessionAttributes to pass information that can be used to guide the conversation /// - /// - /// + /// The event coming from the Lex service. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public override LexResponse Process(LexEvent lexEvent, ILambdaContext context) { @@ -103,7 +103,7 @@ private FlowerOrder CreateOrder(IDictionary slots) /// /// Verifies that any values for slots in the intent are valid. /// - /// + /// The FlowerOrder to validate. /// private ValidationResult Validate(FlowerOrder order) { @@ -147,7 +147,7 @@ private ValidationResult Validate(FlowerOrder order) /// /// Verifies that any values for flower type slot in the intent is valid. /// - /// + /// The flower type to validate. /// private ValidationResult ValidateFlowerType(string? flowerTypeString) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index b7e620382..50a3fb21f 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/ChatBotTutorial/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 241ac0000..215b75d48 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -33,7 +33,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs index c4a33ffbc..ce99ad4a0 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -16,8 +16,8 @@ module Function = /// https://github.com/aws/aws-lambda-dotnet#events /// and change the string input parameter to the desired event type. /// - /// - /// + /// Input to the Lambda function handler. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// let functionHandler (input: string) (_: ILambdaContext) = match input with diff --git a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 7c215db7f..edce63a51 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -9,7 +9,7 @@ "region": "DefaultRegion", "configuration": "Release", "function-runtime": "provided.al2023", - "function-memory-size": 256, + "function-memory-size": 512, "function-timeout": 30, "function-handler": "bootstrap", "function-name": "BlueprintBaseName.1", diff --git a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index faf10e25f..75df728cc 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -29,6 +29,6 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/Function.cs index 3281dd52f..e97b9d200 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/Function.cs @@ -9,7 +9,7 @@ public class Function /// /// The main entry point for the custom runtime. /// - /// + /// Command line arguments. private static async Task Main(string[] args) { Func handler = FunctionHandler; @@ -25,8 +25,8 @@ private static async Task Main(string[] args) /// https://github.com/aws/aws-lambda-dotnet#events /// and change the string input parameter to the desired event type. /// - /// - /// + /// The input to the Lambda function handler. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public static string FunctionHandler(string input, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 34f7fda96..e0b777db1 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/CustomRuntimeFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -9,7 +9,7 @@ "region": "DefaultRegion", "configuration": "Release", "function-runtime": "provided.al2023", - "function-memory-size": 256, + "function-memory-size": 512, "function-timeout": 30, "function-handler": "bootstrap", "msbuild-parameters": "--self-contained true" diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 1bb1a6246..a3ffea702 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true Lambda @@ -9,10 +9,10 @@ true - - + + - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/Function.fs index cf613df52..cd85e4317 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -39,8 +39,8 @@ type Function(s3Client: IAmazonS3, rekognitionClient: IAmazonRekognition, minCon /// A function for responding to S3 create events. It will determine if the object is an image /// and use Amazon Rekognition to detect labels and add the labels as tags on the S3 object. /// - /// - /// + /// The S3 event to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.FunctionHandler (input: S3Event) (context: ILambdaContext) = task { diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index 6b434ca28..a64b01e5f 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net6.0 + net8.0 @@ -12,7 +12,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 1bfed5708..3252bbf26 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -11,10 +11,10 @@ true - - + + - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/Function.cs index b6318d1d1..b577a2de4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/Function.cs @@ -69,9 +69,9 @@ public Function() /// /// Constructor used for testing which will pass in the already configured service clients. /// - /// - /// - /// + /// Service client for accessing Amazon S3. + /// Service client for accessing Amazon Rekognition. + /// The min confidence for accepting a label from Amazon Rekognition. public Function(IAmazonS3 s3Client, IAmazonRekognition rekognitionClient, float minConfidence) { this.S3Client = s3Client; @@ -83,8 +83,8 @@ public Function(IAmazonS3 s3Client, IAmazonRekognition rekognitionClient, float /// A function for responding to S3 create events. It will determine if the object is an image and use Amazon Rekognition /// to detect labels and add the labels as tags on the S3 object. /// - /// - /// + /// The S3 event to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public async Task FunctionHandler(S3Event input, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index c8d1b83c8..0be85cffe 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabels/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -13,7 +13,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 9d4d71d8d..ff47ef387 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true Lambda @@ -9,10 +9,10 @@ true - - + + - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs index cf88a11c5..8a726fdff 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -38,8 +38,8 @@ type Function(s3Client: IAmazonS3, rekognitionClient: IAmazonRekognition, minCon /// A function for responding to S3 create events. It will determine if the object is an image /// and use Amazon Rekognition to detect labels and add the labels as tags on the S3 object. /// - /// - /// + /// The S3 event to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.FunctionHandler (input: S3Event) (context: ILambdaContext) = task { diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template index 006bd2bb9..99a41455f 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template @@ -40,10 +40,10 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", "Description": "Default function", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index 3d474ef25..9be0ec67a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net6.0 + net8.0 @@ -12,7 +12,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 1bfed5708..3252bbf26 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -11,10 +11,10 @@ true - - + + - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/Function.cs index b6318d1d1..b577a2de4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/Function.cs @@ -69,9 +69,9 @@ public Function() /// /// Constructor used for testing which will pass in the already configured service clients. /// - /// - /// - /// + /// Service client for accessing Amazon S3. + /// Service client for accessing Amazon Rekognition. + /// The min confidence for accepting a label from Amazon Rekognition. public Function(IAmazonS3 s3Client, IAmazonRekognition rekognitionClient, float minConfidence) { this.S3Client = s3Client; @@ -83,8 +83,8 @@ public Function(IAmazonS3 s3Client, IAmazonRekognition rekognitionClient, float /// A function for responding to S3 create events. It will determine if the object is an image and use Amazon Rekognition /// to detect labels and add the labels as tags on the S3 object. /// - /// - /// + /// The S3 event to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public async Task FunctionHandler(S3Event input, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/serverless.template index 006bd2bb9..99a41455f 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/src/BlueprintBaseName.1/serverless.template @@ -40,10 +40,10 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", "Description": "Default function", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index c8d1b83c8..0be85cffe 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/DetectImageLabelsServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -13,7 +13,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 6b90eab38..9972cc078 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true Lambda @@ -16,7 +16,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs index 7cb3c1f27..01dcede69 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -15,8 +15,8 @@ type Function() = /// /// A simple function that takes a string and does a ToUpper /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.FunctionHandler (input: string) (_: ILambdaContext) = match input with diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index da356f7a2..099cad24d 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net6.0 + net8.0 diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/blueprint-manifest.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/blueprint-manifest.json index 072b912c7..120e8ef91 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/blueprint-manifest.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/blueprint-manifest.json @@ -1,7 +1,7 @@ { - "display-name": ".NET 7 (Container Image)", + "display-name": ".NET 8 (Container Image)", "system-name": "EmptyImageFunction", - "description": "A .NET 7 Lambda function packaged as a container image.", + "description": "A .NET 8 Lambda function packaged as a container image.", "sort-order": 225, "hidden-tags": [ "F#", diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/.template.config/template.json index 0ede5f3c2..836ec0096 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/.template.config/template.json @@ -5,7 +5,7 @@ "Lambda", "Function" ], - "name": "Lambda Empty Function (.NET 7 Container Image)", + "name": "Lambda Empty Function (.NET 8 Container Image)", "identity": "AWS.Lambda.Function.Image.Empty.FSharp", "groupIdentity": "AWS.Lambda.Function.Image.Empty", "shortName": "lambda.image.EmptyFunction", diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 2de65ff00..1497d2fd1 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 true Lambda @@ -16,7 +16,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile index 34e74b336..30d679def 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile @@ -1,4 +1,4 @@ -FROM public.ecr.aws/lambda/dotnet:7 +FROM public.ecr.aws/lambda/dotnet:8 WORKDIR /var/task diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Function.fs index 7cb3c1f27..01dcede69 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -15,8 +15,8 @@ type Function() = /// /// A simple function that takes a string and does a ToUpper /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.FunctionHandler (input: string) (_: ILambdaContext) = match input with diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md index 7117b7171..35a28d462 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md @@ -22,9 +22,9 @@ Alternatively the Docker file could be written to use [multi-stage](https://docs have the .NET project built inside the container. Below is an example of building the .NET project inside the image. ```dockerfile -FROM public.ecr.aws/lambda/dotnet:7 AS base +FROM public.ecr.aws/lambda/dotnet:8 AS base -FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim as build +FROM mcr.microsoft.com/dotnet/sdk:8.0 as build WORKDIR /src COPY ["BlueprintBaseName.1.fsproj", "BlueprintBaseName.1/"] RUN dotnet restore "BlueprintBaseName.1/BlueprintBaseName.1.fsproj" diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index a76c44642..5f2229e2a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -9,7 +9,7 @@ "region": "DefaultRegion", "configuration": "Release", "package-type": "image", - "function-memory-size": 256, + "function-memory-size": 512, "function-timeout": 30, "image-command": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler", "docker-host-build-output-dir": "./bin/Release/lambda-publish" diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index c43f6032f..12e1769a3 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net7.0 + net8.0 diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/blueprint-manifest.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/blueprint-manifest.json index c6e129fd3..6c12cdd7d 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/blueprint-manifest.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/blueprint-manifest.json @@ -1,7 +1,7 @@ { - "display-name": ".NET 7 (Container Image)", + "display-name": ".NET 8 (Container Image)", "system-name": "EmptyImageFunction", - "description": "A .NET 7 Lambda function packaged as a container image.", + "description": "A .NET 8 Lambda function packaged as a container image.", "sort-order": 225, "hidden-tags": [ "C#", diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/.template.config/template.json index 56b532412..5ca9771c1 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/.template.config/template.json @@ -5,7 +5,7 @@ "Lambda", "Function" ], - "name": "Lambda Empty Function (.NET 7 Container Image)", + "name": "Lambda Empty Function (.NET .8 Container Image)", "identity": "AWS.Lambda.Function.Image.Empty.CSharp", "groupIdentity": "AWS.Lambda.Function.Image.Empty", "shortName": "lambda.image.EmptyFunction", diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 1338dde30..3d15b45fe 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 enable enable true @@ -12,6 +12,6 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Dockerfile b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Dockerfile index 34e74b336..30d679def 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Dockerfile +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Dockerfile @@ -1,4 +1,4 @@ -FROM public.ecr.aws/lambda/dotnet:7 +FROM public.ecr.aws/lambda/dotnet:8 WORKDIR /var/task diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Function.cs index df48d7551..0d8916a13 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Function.cs @@ -11,8 +11,8 @@ public class Function /// /// A simple function that takes a string and returns both the upper and lower case version of the string. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public Casing FunctionHandler(string input, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Readme.md index 5432e8b9d..e1ebeaf4c 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/Readme.md @@ -22,9 +22,9 @@ Alternatively the Docker file could be written to use [multi-stage](https://docs have the .NET project built inside the container. Below is an example of building the .NET project inside the image. ```dockerfile -FROM public.ecr.aws/lambda/dotnet:7 AS base +FROM public.ecr.aws/lambda/dotnet:8 AS base -FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim as build +FROM mcr.microsoft.com/dotnet/sdk:8.0 as build WORKDIR /src COPY ["BlueprintBaseName.1.csproj", "BlueprintBaseName.1/"] RUN dotnet restore "BlueprintBaseName.1/BlueprintBaseName.1.csproj" diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index a76c44642..5f2229e2a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -9,7 +9,7 @@ "region": "DefaultRegion", "configuration": "Release", "package-type": "image", - "function-memory-size": 256, + "function-memory-size": 512, "function-timeout": 30, "image-command": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler", "docker-host-build-output-dir": "./bin/Release/lambda-publish" diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 61898850e..d43710e6a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 84f1c3860..3d15b45fe 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,6 +12,6 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/Function.cs index 0c901d1dd..b41b9bcf4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/Function.cs @@ -11,8 +11,8 @@ public class Function /// /// A simple function that takes a string and does a ToUpper /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public string FunctionHandler(string input, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index ce63d32f3..1a94ab382 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -9,8 +9,8 @@ "region": "DefaultRegion", "configuration": "Release", "function-architecture": "x86_64", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 05b95f534..065f45efb 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 1a2781053..7b7054c03 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true Lambda @@ -16,7 +16,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/Functions.fs b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/Functions.fs index 7dbe2dca2..a9c60c7db 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/Functions.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/Functions.fs @@ -16,8 +16,8 @@ type Functions() = /// /// A Lambda function to respond to HTTP Get methods from API Gateway /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.Get (request: APIGatewayProxyRequest) (context: ILambdaContext) = sprintf "Request: %s" request.Path diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template index ab61880fb..21a66fca9 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template @@ -7,9 +7,9 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Functions::Get", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index 19cbfe3de..11f0e5ed4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net6.0 + net8.0 diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/blueprint-manifest.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/blueprint-manifest.json index 9673942b1..547d35b48 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/blueprint-manifest.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/blueprint-manifest.json @@ -1,7 +1,7 @@ { - "display-name": ".NET 7 (Container Image) Serverless Application", + "display-name": ".NET 8 (Container Image) Serverless Application", "system-name": "EmptyImageServerless", - "description": ".NET 7 Lambda function packaged as a container image and deploy through AWS CloudFormation.", + "description": ".NET 8 Lambda function packaged as a container image and deploy through AWS CloudFormation.", "sort-order": 225, "hidden-tags": [ "F#", diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/.template.config/template.json index c38c9d719..b28416c4c 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/.template.config/template.json @@ -5,7 +5,7 @@ "Lambda", "Serverless" ], - "name": "Lambda Empty Serverless (.NET 7 Container Image)", + "name": "Lambda Empty Serverless (.NET 8 Container Image)", "identity": "AWS.Lambda.Serverless.Image.Empty.FSharp", "groupIdentity": "AWS.Lambda.Image.Serverless.Empty", "shortName": "serverless.image.EmptyServerless", diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 434d05126..7371403f9 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 true Lambda @@ -16,7 +16,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile index 34e74b336..30d679def 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Dockerfile @@ -1,4 +1,4 @@ -FROM public.ecr.aws/lambda/dotnet:7 +FROM public.ecr.aws/lambda/dotnet:8 WORKDIR /var/task diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Functions.fs b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Functions.fs index 7dbe2dca2..a9c60c7db 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Functions.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Functions.fs @@ -16,8 +16,8 @@ type Functions() = /// /// A Lambda function to respond to HTTP Get methods from API Gateway /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.Get (request: APIGatewayProxyRequest) (context: ILambdaContext) = sprintf "Request: %s" request.Path diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md index b91f4adaf..7420143f7 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/Readme.md @@ -24,9 +24,9 @@ Alternatively the Docker file could be written to use [multi-stage](https://docs have the .NET project built inside the container. Below is an example of building the .NET project inside the image. ```dockerfile -FROM public.ecr.aws/lambda/dotnet:7 AS base +FROM public.ecr.aws/lambda/8 AS base -FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim as build +FROM mcr.microsoft.com/dotnet/sdk:8.0 as build WORKDIR /src COPY ["BlueprintBaseName.1.csproj", "BlueprintBaseName.1/"] RUN dotnet restore "BlueprintBaseName.1/BlueprintBaseName.1.csproj" diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/serverless.template index c0f045ddf..1effb6fe0 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/src/BlueprintBaseName.1/serverless.template @@ -13,7 +13,7 @@ ] }, "ImageUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index a9ce879cb..e39105269 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net7.0 + net8.0 diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/blueprint-manifest.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/blueprint-manifest.json index 6feb2a7c2..6317a34e4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/blueprint-manifest.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/blueprint-manifest.json @@ -1,7 +1,7 @@ { - "display-name": ".NET 7 (Container Image) Serverless Application", + "display-name": ".NET 8 (Container Image) Serverless Application", "system-name": "EmptyImageServerless", - "description": ".NET 7 Lambda function packaged as a container image and deploy through AWS CloudFormation.", + "description": ".NET 8 Lambda function packaged as a container image and deploy through AWS CloudFormation.", "sort-order": 225, "hidden-tags": [ "C#", diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/.template.config/template.json index 5583b3fd4..277cf1db2 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/.template.config/template.json @@ -5,7 +5,7 @@ "Lambda", "Serverless" ], - "name": "Lambda Empty Serverless (.NET 7 Container Image)", + "name": "Lambda Empty Serverless (.NET 8 Container Image)", "identity": "AWS.Lambda.Serverless.Image.Empty.CSharp", "groupIdentity": "AWS.Lambda.Image.Serverless.Empty", "shortName": "serverless.image.EmptyServerless", diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 3460393d8..20d4e8f78 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 enable enable true @@ -11,9 +11,9 @@ true - + - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Dockerfile b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Dockerfile index 34e74b336..30d679def 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Dockerfile +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Dockerfile @@ -1,4 +1,4 @@ -FROM public.ecr.aws/lambda/dotnet:7 +FROM public.ecr.aws/lambda/dotnet:8 WORKDIR /var/task diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Functions.cs b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Functions.cs index 30a99fb0f..bb24d8353 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Functions.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Functions.cs @@ -34,7 +34,7 @@ public Functions() /// /// Information about the invocation, function, and execution environment /// The response as an implicit - [LambdaFunction(PackageType = LambdaPackageType.Image, Policies = "AWSLambdaBasicExecutionRole", MemorySize = 256, Timeout = 30)] + [LambdaFunction(PackageType = LambdaPackageType.Image, Policies = "AWSLambdaBasicExecutionRole", MemorySize = 512, Timeout = 30)] [RestApi(LambdaHttpMethod.Get, "/")] public IHttpResult Get(ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Readme.md index 89ad1f6da..f2a8f6e41 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/Readme.md @@ -25,9 +25,9 @@ Alternatively the Docker file could be written to use [multi-stage](https://docs have the .NET project built inside the container. Below is an example of building the .NET project inside the image. ```dockerfile -FROM public.ecr.aws/lambda/dotnet:7 AS base +FROM public.ecr.aws/lambda/dotnet:8 AS base -FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim as build +FROM mcr.microsoft.com/dotnet/sdk:8.0 as build WORKDIR /src COPY ["BlueprintBaseName.1.csproj", "BlueprintBaseName.1/"] RUN dotnet restore "BlueprintBaseName.1/BlueprintBaseName.1.csproj" @@ -96,7 +96,7 @@ It also generates the function resources in a JSON or YAML CloudFormation templa ### Using Annotations without API Gateway You can still use Lambda Annotations without integrating with API Gateway. For example, this Lambda function processes messages from an Amazon Simple Queue Service (Amazon SQS) queue: ``` -[LambdaFunction(PackageType = LambdaPackageType.Image, Policies = "AWSLambdaSQSQueueExecutionRole", MemorySize = 256, Timeout = 30)] +[LambdaFunction(PackageType = LambdaPackageType.Image, Policies = "AWSLambdaSQSQueueExecutionRole", MemorySize = 512, Timeout = 30)] public async Task FunctionHandler(SQSEvent evnt, ILambdaContext context) { foreach(var message in evnt.Records) @@ -136,7 +136,7 @@ You must also replace the function resource in `serverless.template` with: ] }, "ImageUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/serverless.template index 4ecf28c37..ad424c004 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/src/BlueprintBaseName.1/serverless.template @@ -1,7 +1,7 @@ { "AWSTemplateFormatVersion": "2010-09-09", "Transform": "AWS::Serverless-2016-10-31", - "Description": "An AWS Serverless Application.", + "Description": "An AWS Serverless Application. This template is partially managed by Amazon.Lambda.Annotations (v1.2.0.0).", "Resources": { "BlueprintBaseName._1FunctionsGetGenerated": { "Type": "AWS::Serverless::Function", @@ -12,7 +12,7 @@ ] }, "Properties": { - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "PackageType": "Image", "Events": { @@ -34,6 +34,38 @@ "AWSLambdaBasicExecutionRole" ] } + }, + "BlueprintBaseName1FunctionsGetGenerated": { + "Type": "AWS::Serverless::Function", + "Metadata": { + "Tool": "Amazon.Lambda.Annotations", + "SyncedEvents": [ + "RootGet" + ] + }, + "Properties": { + "MemorySize": 512, + "Timeout": 30, + "Policies": [ + "AWSLambdaBasicExecutionRole" + ], + "PackageType": "Image", + "ImageUri": ".", + "ImageConfig": { + "Command": [ + "BlueprintBaseName.1::BlueprintBaseName._1.Functions_Get_Generated::Get" + ] + }, + "Events": { + "RootGet": { + "Type": "Api", + "Properties": { + "Path": "/", + "Method": "GET" + } + } + } + } } }, "Outputs": { diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index fd87a9a44..8ad700de7 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless-Image/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index eae38dd22..20d4e8f78 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -11,9 +11,9 @@ true - + - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Functions.cs b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Functions.cs index ec3e10b08..d9dd02508 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Functions.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Functions.cs @@ -34,7 +34,7 @@ public Functions() /// /// Information about the invocation, function, and execution environment /// The response as an implicit - [LambdaFunction(Policies = "AWSLambdaBasicExecutionRole", MemorySize = 256, Timeout = 30)] + [LambdaFunction(Policies = "AWSLambdaBasicExecutionRole", MemorySize = 512, Timeout = 30)] [RestApi(LambdaHttpMethod.Get, "/")] public IHttpResult Get(ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Readme.md index ecb79c8d4..d6eae2c22 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/Readme.md @@ -57,7 +57,7 @@ It also generates the function resources in a JSON or YAML CloudFormation templa ### Using Annotations without API Gateway You can still use Lambda Annotations without integrating with API Gateway. For example, this Lambda function processes messages from an Amazon Simple Queue Service (Amazon SQS) queue: ``` -[LambdaFunction(Policies = "AWSLambdaSQSQueueExecutionRole", MemorySize = 256, Timeout = 30)] +[LambdaFunction(Policies = "AWSLambdaSQSQueueExecutionRole", MemorySize = 512, Timeout = 30)] public async Task FunctionHandler(SQSEvent evnt, ILambdaContext context) { foreach(var message in evnt.Records) @@ -91,9 +91,9 @@ You must also replace the function resource in `serverless.template` with: "Type": "AWS::Serverless::Function", "Properties": { "Handler": "::.Functions::Get", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/serverless.template index b3e5203b7..fd7fad382 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/src/BlueprintBaseName.1/serverless.template @@ -1,7 +1,7 @@ { "AWSTemplateFormatVersion": "2010-09-09", "Transform": "AWS::Serverless-2016-10-31", - "Description": "An AWS Serverless Application.", + "Description": "An AWS Serverless Application. This template is partially managed by Amazon.Lambda.Annotations (v1.2.0.0).", "Resources": { "BlueprintBaseName._1FunctionsGetGenerated": { "Type": "AWS::Serverless::Function", @@ -16,9 +16,9 @@ "x86_64" ], "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Functions::Get", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": ".", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Policies": [ "AWSLambdaBasicExecutionRole" @@ -34,6 +34,35 @@ } } } + }, + "BlueprintBaseName1FunctionsGetGenerated": { + "Type": "AWS::Serverless::Function", + "Metadata": { + "Tool": "Amazon.Lambda.Annotations", + "SyncedEvents": [ + "RootGet" + ] + }, + "Properties": { + "Runtime": "dotnet8", + "CodeUri": ".", + "MemorySize": 512, + "Timeout": 30, + "Policies": [ + "AWSLambdaBasicExecutionRole" + ], + "PackageType": "Zip", + "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Functions_Get_Generated::Get", + "Events": { + "RootGet": { + "Type": "Api", + "Properties": { + "Path": "/", + "Method": "GET" + } + } + } + } } }, "Outputs": { diff --git a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 293766b81..0f4e524ce 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/EmptyServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 69929d917..11d81a949 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,7 +1,7 @@ Exe - net6.0 + net8.0 true Lambda @@ -11,7 +11,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/src/BlueprintBaseName.1/serverless.template index 70b9b354f..0a83106fd 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/src/BlueprintBaseName.1/serverless.template @@ -9,9 +9,9 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::Setup+LambdaEntryPoint::FunctionHandlerAsync", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index 6c1d9f66e..3da26fff6 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/GiraffeWebApp-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net6.0 + net8.0 False diff --git a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/AbstractIntentProcessor.cs b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/AbstractIntentProcessor.cs index 3db753be0..e2a647688 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/AbstractIntentProcessor.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/AbstractIntentProcessor.cs @@ -19,8 +19,8 @@ public abstract class AbstractIntentProcessor : IIntentProcessor /// /// Main method for proccessing the lex event for the intent. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public abstract LexResponse Process(LexEvent lexEvent, ILambdaContext context); diff --git a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index fad00e15c..7d864e3b4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BookCarIntentProcessor.cs b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BookCarIntentProcessor.cs index 5ecb8678d..f76242103 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BookCarIntentProcessor.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BookCarIntentProcessor.cs @@ -22,7 +22,8 @@ public class BookCarIntentProcessor : AbstractIntentProcessor /// 1) Use of elicitSlot in slot validation and re-prompting /// 2) Use of sessionAttributes to pass information that can be used to guide the conversation /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public override LexResponse Process(LexEvent lexEvent, ILambdaContext context) { @@ -215,7 +216,7 @@ public override LexResponse Process(LexEvent lexEvent, ILambdaContext context) /// /// Verifies that any values for slots in the intent are valid. /// - /// + /// The reservation to validate. /// private ValidationResult Validate(Reservation reservation) { @@ -295,7 +296,7 @@ private ValidationResult Validate(Reservation reservation) /// Generates a number within a reasonable range that might be expected for a flight. /// The price is fixed for a given pair of locations. /// - /// + /// The reservation to generate a price for. /// private double GeneratePrice(Reservation reservation) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BookHotelIntentProcessor.cs b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BookHotelIntentProcessor.cs index 7081243d3..a69f43579 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BookHotelIntentProcessor.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/BookHotelIntentProcessor.cs @@ -18,8 +18,8 @@ public class BookHotelIntentProcessor : AbstractIntentProcessor /// 1) Use of elicitSlot in slot validation and re-prompting /// 2) Use of sessionAttributes to pass information that can be used to guide the conversation /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public override LexResponse Process(LexEvent lexEvent, ILambdaContext context) { @@ -94,7 +94,7 @@ public override LexResponse Process(LexEvent lexEvent, ILambdaContext context) /// /// Verifies that any values for slots in the intent are valid. /// - /// + /// The reservation to validate. /// private ValidationResult Validate(Reservation reservation) { @@ -141,7 +141,7 @@ private ValidationResult Validate(Reservation reservation) /// Generates a number within a reasonable range that might be expected for a hotel. /// The price is fixed for a pair of location and roomType. /// - /// + /// The reservation to generate a price for. /// private double GeneratePrice(Reservation reservation) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/Function.cs index 00a4ff7d8..bb03ecfe3 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/Function.cs @@ -16,8 +16,8 @@ public class Function /// Then entry point for the Lambda function that looks at the current intent and calls /// the appropriate intent process. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public LexResponse FunctionHandler(LexEvent lexEvent, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/IIntentProcessor.cs b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/IIntentProcessor.cs index f5beb4a31..fc3f06f85 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/IIntentProcessor.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/IIntentProcessor.cs @@ -11,8 +11,8 @@ public interface IIntentProcessor /// /// Main method for processing the Lex event for the intent. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// LexResponse Process(LexEvent lexEvent, ILambdaContext context); } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 703da9e4a..7ca2a0b33 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/LexBookTripSample/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/blueprint-manifest.json b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/blueprint-manifest.json index 5ee5e1efb..d32a828bd 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/blueprint-manifest.json +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/blueprint-manifest.json @@ -1,7 +1,7 @@ { - "display-name": "Native AOT (.NET 7)", + "display-name": "Native AOT (.NET 8)", "system-name": "NativeAotFunction", - "description": "A project configured for deployment using .NET 7's Native AOT feature.", + "description": "A project configured for deployment using .NET 8's Native AOT feature.", "sort-order": 110, "hidden-tags": [ "F#", diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/.template.config/template.json index db6245c4a..78e025ca8 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/.template.config/template.json @@ -5,7 +5,7 @@ "Lambda", "Function" ], - "name": "Lambda Function project configured for deployment using .NET 7's Native AOT feature.", + "name": "Lambda Function project configured for deployment using .NET 8's Native AOT feature.", "identity": "AWS.Lambda.Function.NativeAot.FSharp", "groupIdentity": "AWS.Lambda.Function.NativeAOT", "shortName": "lambda.NativeAOT", diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 272a7fb0d..ba2be7b85 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,9 +1,8 @@ Exe - net7.0 + net8.0 Lambda - bootstrap true @@ -21,18 +20,10 @@ - - - - - - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs index 112945269..c2761a342 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -23,8 +23,8 @@ module Function = // SDK for .NET does not support trimming. This will result in a larger executable size, and still does not // guarantee runtime trimming errors won't be hit. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// let functionHandler (input: string) (_: ILambdaContext) = match input with @@ -37,7 +37,7 @@ module Function = /// initializes the .NET Lambda runtime client passing in the function handler to invoke for each Lambda event and /// the JSON serializer to use for converting Lambda JSON format to the .NET types. /// - /// + /// The command line arguments. [] let main _args = diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/Readme.md index 8b58b77df..f8afb439c 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction-FSharp/template/src/BlueprintBaseName.1/Readme.md @@ -13,7 +13,7 @@ The function handler is a simple method accepting a string argument that returns ## Native AOT -Native AOT is a feature of .NET 7 that compiles .NET assemblies into a single native executable. By using the native executable the .NET runtime +Native AOT is a feature that compiles .NET assemblies into a single native executable. By using the native executable the .NET runtime is not required to be installed on the target platform. Native AOT can significantly improve Lambda cold starts for .NET Lambda functions. This project enables Native AOT by setting the .NET `PublishAot` property in the .NET project file to `true`. The `StripSymbols` property is also set to `true` to strip debugging symbols from the deployed executable to reduce the executable's size. @@ -21,16 +21,16 @@ set to `true` to strip debugging symbols from the deployed executable to reduce ### Building Native AOT When publishing with Native AOT the build OS and Architecture must match the target platform that the application will run. For AWS Lambda that target -platform is Amazon Linux 2. The AWS tooling for Lambda like the AWS Toolkit for Visual Studio, .NET Global Tool Amazon.Lambda.Tools and SAM CLI will -perform a container build using a .NET 7 Amazon Linux 2 build image when `PublishAot` is set to `true`. This means **docker is a requirement** -when packaging .NET Native AOT Lambda functions on non-Amazon Linux 2 build environments. To install docker go to https://www.docker.com/. +platform is Amazon Linux 2023. The AWS tooling for Lambda like the AWS Toolkit for Visual Studio, .NET Global Tool Amazon.Lambda.Tools and SAM CLI will +perform a container build using a .NET 8 Amazon Linux 2023 build image when `PublishAot` is set to `true`. This means **docker is a requirement** +when packaging .NET Native AOT Lambda functions on non-Amazon Linux 2023 build environments. To install docker go to https://www.docker.com/. ### Trimming As part of the Native AOT compilation, .NET assemblies will be trimmed removing types and methods that the compiler does not find a reference to. This is important to keep the native executable size small. When types are used through reflection this can go undetected by the compiler causing necessary types and methods to be removed. When testing Native AOT Lambda functions in Lambda if a runtime error occurs about missing types or methods the most likely solution will -be to remove references to trim-unsafe code or configure [trimming options](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-7-0). +be to remove references to trim-unsafe code or configure [trimming options](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options). This sample defaults to partial TrimMode because currently the AWS SDK for .NET does not support trimming. This will result in a larger executable size, and still does not guarantee runtime trimming errors won't be hit. @@ -38,7 +38,7 @@ For information about trimming see the documentation: Library false - net7.0 + net8.0 diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/blueprint-manifest.json b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/blueprint-manifest.json index 081fb604c..c082cc3cc 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/blueprint-manifest.json +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/blueprint-manifest.json @@ -1,7 +1,7 @@ { - "display-name": "Native AOT (.NET 7)", + "display-name": "Native AOT (.NET 8)", "system-name": "NativeAotFunction", - "description": "A project configured for deployment using .NET 7's Native AOT feature.", + "description": "A project configured for deployment using .NET 8's Native AOT feature.", "sort-order": 110, "hidden-tags": [ "C#", diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/.template.config/template.json index 541302d68..eaf197584 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/.template.config/template.json @@ -5,7 +5,7 @@ "Lambda", "Function" ], - "name": "Lambda Function project configured for deployment using .NET 7's Native AOT feature.", + "name": "Lambda Function project configured for deployment using .NET 8's Native AOT feature.", "identity": "AWS.Lambda.Function.NativeAOT.CSharp", "groupIdentity": "AWS.Lambda.Function.NativeAOT", "shortName": "lambda.NativeAOT", diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index d3c78dbab..717aa47b1 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,11 +1,10 @@ Exe - net7.0 + net8.0 enable enable Lambda - bootstrap true @@ -17,17 +16,9 @@ If there are trim warnings during build, you can hit errors at runtime.--> partial - - - - - - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/Function.cs index 052e900da..8a6dd4c04 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/Function.cs @@ -37,8 +37,8 @@ private static async Task Main() // SDK for .NET does not support trimming. This will result in a larger executable size, and still does not // guarantee runtime trimming errors won't be hit. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public static string FunctionHandler(string input, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/Readme.md index 31704684b..7a17fa7f9 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTFunction/template/src/BlueprintBaseName.1/Readme.md @@ -14,7 +14,7 @@ The function handler is a simple method accepting a string argument that returns ## Native AOT -Native AOT is a feature of .NET 7 that compiles .NET assemblies into a single native executable. By using the native executable the .NET runtime +Native AOT is a feature that compiles .NET assemblies into a single native executable. By using the native executable the .NET runtime is not required to be installed on the target platform. Native AOT can significantly improve Lambda cold starts for .NET Lambda functions. This project enables Native AOT by setting the .NET `PublishAot` property in the .NET project file to `true`. The `StripSymbols` property is also set to `true` to strip debugging symbols from the deployed executable to reduce the executable's size. @@ -22,16 +22,16 @@ set to `true` to strip debugging symbols from the deployed executable to reduce ### Building Native AOT When publishing with Native AOT the build OS and Architecture must match the target platform that the application will run. For AWS Lambda that target -platform is Amazon Linux 2. The AWS tooling for Lambda like the AWS Toolkit for Visual Studio, .NET Global Tool Amazon.Lambda.Tools and SAM CLI will -perform a container build using a .NET 7 Amazon Linux 2 build image when `PublishAot` is set to `true`. This means **docker is a requirement** -when packaging .NET Native AOT Lambda functions on non-Amazon Linux 2 build environments. To install docker go to https://www.docker.com/. +platform is Amazon Linux 2023. The AWS tooling for Lambda like the AWS Toolkit for Visual Studio, .NET Global Tool Amazon.Lambda.Tools and SAM CLI will +perform a container build using a .NET 8 Amazon Linux 2023 build image when `PublishAot` is set to `true`. This means **docker is a requirement** +when packaging .NET Native AOT Lambda functions on non-Amazon Linux 2023 build environments. To install docker go to https://www.docker.com/. ### Trimming As part of the Native AOT compilation, .NET assemblies will be trimmed removing types and methods that the compiler does not find a reference to. This is important to keep the native executable size small. When types are used through reflection this can go undetected by the compiler causing necessary types and methods to be removed. When testing Native AOT Lambda functions in Lambda if a runtime error occurs about missing types or methods the most likely solution will -be to remove references to trim-unsafe code or configure [trimming options](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-7-0). +be to remove references to trim-unsafe code or configure [trimming options](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options). This sample defaults to partial TrimMode because currently the AWS SDK for .NET does not support trimming. This will result in a larger executable size, and still does not guarantee runtime trimming errors won't be hit. @@ -39,7 +39,7 @@ For information about trimming see the documentation: - net7.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/blueprint-manifest.json b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/blueprint-manifest.json index 1bac4129f..0efba6b9a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/blueprint-manifest.json +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/blueprint-manifest.json @@ -1,7 +1,7 @@ { - "display-name": "Native AOT (.NET 7)", + "display-name": "Native AOT (.NET 8)", "system-name": "NativeAotFunction", - "description": "A project configured for deployment using .NET 7's Native AOT feature.", + "description": "A project configured for deployment using .NET 8's Native AOT feature.", "sort-order": 120, "hidden-tags": [ "F#", diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/.template.config/template.json index e6549d0c4..945d0ca7e 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/.template.config/template.json @@ -5,7 +5,7 @@ "Lambda", "Serverless" ], - "name": "Serverless project configured for deployment using .NET 7's Native AOT feature.", + "name": "Serverless project configured for deployment using .NET 8's Native AOT feature.", "identity": "AWS.Serverless.NativeAot.FSharp", "groupIdentity": "AWS.Serverless.NativeAOT", "shortName": "serverless.NativeAOT", diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 4f6209cb0..5f8de7642 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,9 +1,8 @@ Exe - net7.0 + net8.0 Lambda - bootstrap true @@ -21,18 +20,10 @@ - - - - - - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs index 3fd016abd..2282679a4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -26,8 +26,8 @@ module Function = // guarantee runtime trimming errors won't be hit. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// let GetFunctionHandler (request: APIGatewayProxyRequest) (context: ILambdaContext) = sprintf "Request: %s" request.Path @@ -46,7 +46,7 @@ module Function = /// the JSON serializer to use for converting Lambda JSON format to the .NET types. /// /// - /// + /// The command line arguments. [] let main _args = diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/Readme.md index 644fb9c08..1bdc238a2 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless-FSharp/template/src/BlueprintBaseName.1/Readme.md @@ -15,7 +15,7 @@ the `serverless.template` file. ## Native AOT -Native AOT is a feature of .NET 7 that compiles .NET assemblies into a single native executable. By using the native executable the .NET runtime +Native AOT is a feature that compiles .NET assemblies into a single native executable. By using the native executable the .NET runtime is not required to be installed on the target platform. Native AOT can significantly improve Lambda cold starts for .NET Lambda functions. This project enables Native AOT by setting the .NET `PublishAot` property in the .NET project file to `true`. The `StripSymbols` property is also set to `true` to strip debugging symbols from the deployed executable to reduce the executable's size. @@ -23,16 +23,16 @@ set to `true` to strip debugging symbols from the deployed executable to reduce ### Building Native AOT When publishing with Native AOT the build OS and Architecture must match the target platform that the application will run. For AWS Lambda that target -platform is Amazon Linux 2. The AWS tooling for Lambda like the AWS Toolkit for Visual Studio, .NET Global Tool Amazon.Lambda.Tools and SAM CLI will -perform a container build using a .NET 7 Amazon Linux 2 build image when `PublishAot` is set to `true`. This means **docker is a requirement** -when packaging .NET Native AOT Lambda functions on non-Amazon Linux 2 build environments. To install docker go to https://www.docker.com/. +platform is Amazon Linux 2023. The AWS tooling for Lambda like the AWS Toolkit for Visual Studio, .NET Global Tool Amazon.Lambda.Tools and SAM CLI will +perform a container build using a .NET 8 Amazon Linux 2023 build image when `PublishAot` is set to `true`. This means **docker is a requirement** +when packaging .NET Native AOT Lambda functions on non-Amazon Linux 2023 build environments. To install docker go to https://www.docker.com/. ### Trimming As part of the Native AOT compilation, .NET assemblies will be trimmed removing types and methods that the compiler does not find a reference to. This is important to keep the native executable size small. When types are used through reflection this can go undetected by the compiler causing necessary types and methods to be removed. When testing Native AOT Lambda functions in Lambda if a runtime error occurs about missing types or methods the most likely solution will -be to remove references to trim-unsafe code or configure [trimming options](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-7-0). +be to remove references to trim-unsafe code or configure [trimming options](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-8-0). This sample defaults to partial TrimMode because currently the AWS SDK for .NET does not support trimming. This will result in a larger executable size, and still does not guarantee runtime trimming errors won't be hit. @@ -40,7 +40,7 @@ For information about trimming see the documentation: Library false - net7.0 + net8.0 diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/blueprint-manifest.json b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/blueprint-manifest.json index bdd9267a5..6f1929a93 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/blueprint-manifest.json +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/blueprint-manifest.json @@ -1,7 +1,7 @@ { - "display-name": "Native AOT (.NET 7)", + "display-name": "Native AOT (.NET 8)", "system-name": "NativeAotFunction", - "description": "A project configured for deployment using .NET 7's Native AOT feature.", + "description": "A project configured for deployment using .NET 8's Native AOT feature.", "sort-order": 120, "hidden-tags": [ "C#", diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/.template.config/template.json b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/.template.config/template.json index e5198bacb..18a895f74 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/.template.config/template.json +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/.template.config/template.json @@ -5,7 +5,7 @@ "Lambda", "Serverless" ], - "name": "Serverless project configured for deployment using .NET 7's Native AOT feature.", + "name": "Serverless project configured for deployment using .NET 8's Native AOT feature.", "identity": "AWS.Serverless.NativeAOT.CSharp", "groupIdentity": "AWS.Serverless.NativeAOT", "shortName": "serverless.NativeAOT", diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 0f6755de4..d9818d632 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,11 +1,10 @@ Exe - net7.0 + net8.0 enable enable Lambda - bootstrap true @@ -17,18 +16,12 @@ If there are trim warnings during build, you can hit errors at runtime.--> partial - - - - - - + + + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/Functions.cs b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/Functions.cs index 160ebfee7..d9076cd91 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/Functions.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/Functions.cs @@ -1,123 +1,94 @@ +using System.Text.Json.Serialization; using Amazon.Lambda.Core; -using Amazon.Lambda.RuntimeSupport; using Amazon.Lambda.Serialization.SystemTextJson; +using Amazon.Lambda.Annotations; +using Amazon.Lambda.Annotations.APIGateway; using Amazon.Lambda.APIGatewayEvents; -using System.Text.Json.Serialization; -using System.Net; +using BlueprintBaseName._1; + +[assembly:LambdaGlobalProperties(GenerateMain = true)] +[assembly:LambdaSerializer(typeof(SourceGeneratorLambdaJsonSerializer))] namespace BlueprintBaseName._1; +/// +/// This class is used to register the input event and return type for the FunctionHandler method with the System.Text.Json source generator. +/// There must be a JsonSerializable attribute for each type used as the input and return type or a runtime error will occur +/// from the JSON serializer unable to find the serialization information for unknown types. +/// +/// Request and response types used with Annotations library must also have a JsonSerializable for the type. The Annotations library will use the same +/// source generator serializer to use non-reflection based serialization. For example parameters with the [FromBody] or types returned using +/// the HttpResults utility class. +/// +[JsonSerializable(typeof(APIGatewayProxyRequest))] +[JsonSerializable(typeof(APIGatewayProxyResponse))] +[JsonSerializable(typeof(NewProductDTO))] +[JsonSerializable(typeof(ProductDTO))] +public partial class LambdaFunctionJsonSerializerContext : JsonSerializerContext +{ + // By using this partial class derived from JsonSerializerContext, we can generate reflection free JSON Serializer code at compile time + // which can deserialize our class and properties. However, we must attribute this class to tell it what types to generate serialization code for. + // See https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-source-generation +} + +public record NewProductDTO(string Name, string Description); + +public record ProductDTO(string ID, string Name, string Description); + public class Functions { /// - /// The main entry point for the Lambda function. The main function is called once during the Lambda init phase. It - /// initializes the .NET Lambda runtime client passing in the function handler to invoke for each Lambda event and - /// the JSON serializer to use for converting Lambda JSON format to the .NET types. + /// A Lambda function to respond to HTTP Get methods from API Gateway. /// - private static async Task Main() + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. + /// + [LambdaFunction(MemorySize = 512)] + [RestApi(LambdaHttpMethod.Get, "/")] + public IHttpResult GetFunctionHandler(ILambdaContext context) { - // The "_HANDLER" environment variable is set by the Lambda runtime to the configured value for the function - // handler property. - var configuredFunctionHandler = Environment.GetEnvironmentVariable("_HANDLER"); - - // Native AOT Lambda functions are deployed as a native executable using the provided.al2 Lambda runtime. - // The provided.al2 runtime ignores the function handler field and always looks for an executable called "bootstrap". - // - // As a convention this project template checks the value for the function handler field set in the - // serverless template to determine which method should be registered with the Lambda runtime client - // to respond to incoming Lambda events. This allows multiple Lambda functions be defined in the - // same .NET project using the provided.al2 runtime. - Func handler = configuredFunctionHandler switch - { - nameof(GetFunctionHandler) => new Functions().GetFunctionHandler, - nameof(PutFunctionHandler) => new Functions().PutFunctionHandler, - _ => throw new Exception($"Unknown method to call for handler value {configuredFunctionHandler}") - }; - - await LambdaBootstrapBuilder.Create(handler, new SourceGeneratorLambdaJsonSerializer()) - .Build() - .RunAsync(); + context.Logger.LogInformation("Get Request"); + + return HttpResults.Ok("Hello AWS Serverless") + .AddHeader("Content-Type", "text/plain"); } /// - /// A Lambda function to respond to HTTP Get methods from API Gateway. - /// - /// To use this handler to respond to an AWS event, reference the appropriate package from - /// https://github.com/aws/aws-lambda-dotnet#events - /// and change the input parameter to the desired event type. When the event type - /// is changed, the handler type registered in the main method needs to be updated and the LambdaFunctionJsonSerializerContext - /// defined below will need the JsonSerializable updated. If the return type and event type are different then the - /// LambdaFunctionJsonSerializerContext must have two JsonSerializable attributes, one for each type. - /// - // When using Native AOT extra testing with the deployed Lambda functions is required to ensure - // the libraries used in the Lambda function work correctly with Native AOT. If a runtime - // error occurs about missing types or methods the most likely solution will be to remove references to trim-unsafe - // code or configure trimming options. This sample defaults to partial TrimMode because currently the AWS - // SDK for .NET does not support trimming. This will result in a larger executable size, and still does not - // guarantee runtime trimming errors won't be hit. + /// A Lambda function to respond to HTTP POST methods from API Gateway /// - /// - /// + /// The new product to post to the system. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// - public APIGatewayProxyResponse GetFunctionHandler(APIGatewayProxyRequest request, ILambdaContext context) + [LambdaFunction(MemorySize = 512)] + [RestApi(LambdaHttpMethod.Post, "/")] + public IHttpResult PostFunctionHandler([FromBody] NewProductDTO product, ILambdaContext context) { - context.Logger.LogInformation("Get Request\n"); + // TODO: Add business logic + ProductDTO savedProduct = new(Guid.NewGuid().ToString(), product.Name, product.Description); - var response = new APIGatewayProxyResponse - { - StatusCode = (int)HttpStatusCode.OK, - Body = "Hello AWS Serverless", - Headers = new Dictionary { { "Content-Type", "text/plain" } } - }; + context.Logger.LogInformation($"Saved product {savedProduct.ID} with name {product.Name}."); - return response; + return HttpResults.Ok(savedProduct); } + /// - /// A Lambda function to respond to HTTP PUT methods from API Gateway - /// - /// To use this handler to respond to an AWS event, reference the appropriate package from - /// https://github.com/aws/aws-lambda-dotnet#events - /// and change the input parameter to the desired event type. When the event type - /// is changed the handler type registered in the main needs to be updated and the LambdaFunctionJsonSerializerContext - /// defined below will need the JsonSerializable updated. If the return type and event type are different then the - /// LambdaFunctionJsonSerializerContext must have two JsonSerializable attributes, one for each type. - /// - // When using Native AOT extra testing with the deployed Lambda functions is required to ensure - // the libraries used in the Lambda function work correctly with Native AOT. If a runtime - // error occurs about missing types or methods the most likely solution will be to remove references to trim-unsafe - // code or configure trimming options. This sample defaults to partial TrimMode because currently the AWS - // SDK for .NET does not support trimming. This will result in a larger executable size, and still does not - // guarantee runtime trimming errors won't be hit. + /// This method demonstrates methods being exposed as Lambda functions using Amazon.Lambda.Annotations without API Gateway attributes. + /// The event source for the Lambda function can be configured in the serverless.template. The Lambda function can be invoked manually + /// using the AWS SDKs. /// - /// - /// /// - public APIGatewayProxyResponse PutFunctionHandler(APIGatewayProxyRequest request, ILambdaContext context) + [LambdaFunction(MemorySize = 512)] + public async Task GetCallingIPAsync(ILambdaContext context) { - context.Logger.LogInformation("Put Request"); + context.Logger.LogInformation("Checking IP address"); - var response = new APIGatewayProxyResponse - { - StatusCode = (int)HttpStatusCode.OK, - Body = "Processed PUT request", - Headers = new Dictionary { { "Content-Type", "text/plain" } } - }; + using var client = new HttpClient(); - return response; - } -} + client.DefaultRequestHeaders.Accept.Clear(); + client.DefaultRequestHeaders.Add("User-Agent", "AWS Lambda .Net Client"); -/// -/// This class is used to register the input event and return type for the FunctionHandler method with the System.Text.Json source generator. -/// There must be a JsonSerializable attribute for each type used as the input and return type or a runtime error will occur -/// from the JSON serializer unable to find the serialization information for unknown types. -/// -[JsonSerializable(typeof(APIGatewayProxyRequest))] -[JsonSerializable(typeof(APIGatewayProxyResponse))] -public partial class LambdaFunctionJsonSerializerContext : JsonSerializerContext -{ - // By using this partial class derived from JsonSerializerContext, we can generate reflection free JSON Serializer code at compile time - // which can deserialize our class and properties. However, we must attribute this class to tell it what types to generate serialization code for. - // See https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-source-generation + var msg = await client.GetStringAsync("http://checkip.amazonaws.com/").ConfigureAwait(continueOnCapturedContext: false); + + return msg.Replace("\n", ""); + } } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/Readme.md b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/Readme.md index 05fbf5756..b7ef784a4 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/Readme.md +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/Readme.md @@ -3,19 +3,27 @@ This starter project consists of: * serverless.template - an AWS CloudFormation Serverless Application Model template file for declaring your Serverless functions and other AWS resources. * Function.cs - contains a class with a `Main` method that starts the bootstrap and a single function handler method. +* Startup.cs - When using dependency injection the services can be registered in the ConfigureServices of this type. * aws-lambda-tools-defaults.json - default argument settings for use with Visual Studio and command line deployment tools for AWS. You may also have a test project depending on the options selected. -The `Main` function is called once during the Lambda init phase. It initializes the .NET Lambda runtime client passing in the function -handler to invoke for each Lambda event and the JSON serializer to use for converting Lambda JSON format to the .NET types. +This project uses the [Amazon.Lambda.Annotations](https://www.nuget.org/packages/Amazon.Lambda.Annotations) library +that uses .NET attributes to generate the boiler plate code needed for Lambda functions. It will also synchronize the CloudFormation template +with the .NET methods marked with the LambdaAttribute. -The function handler responds to events from API Gateway. The API Gateway and integration with the Lambda function are defined in -the `serverless.template` file. +For Native AOT Lambda functions the project must be deployed as an executable and bootstrap the Lambda runtime client. Lambda Annotations +will automatically generate the `Main` by using the `GenerateMain` property of `LambdaGlobalProperties` attribute to true. The generated +`Main` method uses the environment variable `ANNOTATIONS_HANDLER` to switch to the correct function handler for the executable. Lambda +Annotations will automatically set the `ANNOTATIONS_HANDLER` environment variable when synchronizing the CloudFormation template. If deploying +the project with a tool besides CloudFormation then the `ANNOTATIONS_HANDLER` environment variable must be manually set to the .NET method name +that should be invoked. + +For more information about Amazon.Lambda.Annotations library visit the docs in GitHub for the library. https://github.com/aws/aws-lambda-dotnet/tree/master/Libraries/src/Amazon.Lambda.Annotations ## Native AOT -Native AOT is a feature of .NET 7 that compiles .NET assemblies into a single native executable. By using the native executable the .NET runtime +Native AOT is a feature that compiles .NET assemblies into a single native executable. By using the native executable the .NET runtime is not required to be installed on the target platform. Native AOT can significantly improve Lambda cold starts for .NET Lambda functions. This project enables Native AOT by setting the .NET `PublishAot` property in the .NET project file to `true`. The `StripSymbols` property is also set to `true` to strip debugging symbols from the deployed executable to reduce the executable's size. @@ -23,16 +31,16 @@ set to `true` to strip debugging symbols from the deployed executable to reduce ### Building Native AOT When publishing with Native AOT the build OS and Architecture must match the target platform that the application will run. For AWS Lambda that target -platform is Amazon Linux 2. The AWS tooling for Lambda like the AWS Toolkit for Visual Studio, .NET Global Tool Amazon.Lambda.Tools and SAM CLI will -perform a container build using a .NET 7 Amazon Linux 2 build image when `PublishAot` is set to `true`. This means **docker is a requirement** -when packaging .NET Native AOT Lambda functions on non-Amazon Linux 2 build environments. To install docker go to https://www.docker.com/. +platform is Amazon Linux 2023. The AWS tooling for Lambda like the AWS Toolkit for Visual Studio, .NET Global Tool Amazon.Lambda.Tools and SAM CLI will +perform a container build using a .NET 8 Amazon Linux 2023 build image when `PublishAot` is set to `true`. This means **docker is a requirement** +when packaging .NET Native AOT Lambda functions on non-Amazon Linux 2023 build environments. To install docker go to https://www.docker.com/. ### Trimming As part of the Native AOT compilation, .NET assemblies will be trimmed removing types and methods that the compiler does not find a reference to. This is important to keep the native executable size small. When types are used through reflection this can go undetected by the compiler causing necessary types and methods to be removed. When testing Native AOT Lambda functions in Lambda if a runtime error occurs about missing types or methods the most likely solution will -be to remove references to trim-unsafe code or configure [trimming options](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-7-0). +be to remove references to trim-unsafe code or configure [trimming options](https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options). This sample defaults to partial TrimMode because currently the AWS SDK for .NET does not support trimming. This will result in a larger executable size, and still does not guarantee runtime trimming errors won't be hit. @@ -40,7 +48,7 @@ For information about trimming see the documentation: + /// Services for Lambda functions can be registered in the services dependency injection container in this method. + /// + /// The services can be injected into the Lambda function through the containing type's constructor or as a + /// parameter in the Lambda function using the FromService attribute. Services injected for the constructor have + /// the lifetime of the Lambda compute container. Services injected as parameters are created within the scope + /// of the function invocation. + /// + public void ConfigureServices(IServiceCollection services) + { + //// Example of creating the IConfiguration object and + //// adding it to the dependency injection container. + //var builder = new ConfigurationBuilder() + // .AddJsonFile("appsettings.json", true); + + //// Add AWS Systems Manager as a potential provider for the configuration. This is + //// available with the Amazon.Extensions.Configuration.SystemsManager NuGet package. + //builder.AddSystemsManager("/app/settings"); + + //var configuration = builder.Build(); + //services.AddSingleton(configuration); + } +} \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/serverless.template index 291f03bfa..b5f935663 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/src/BlueprintBaseName.1/serverless.template @@ -1,23 +1,31 @@ { "AWSTemplateFormatVersion": "2010-09-09", "Transform": "AWS::Serverless-2016-10-31", - "Description": "An AWS Serverless Application.", + "Description": "An AWS Serverless Application. This template is partially managed by Amazon.Lambda.Annotations (v1.2.0.0).", "Resources": { - "RootGet": { + "BlueprintBaseName1FunctionsGetFunctionHandlerGenerated": { "Type": "AWS::Serverless::Function", + "Metadata": { + "Tool": "Amazon.Lambda.Annotations", + "SyncedEvents": [ + "RootGet" + ] + }, "Properties": { - "Architectures": [ - "x86_64" - ], - "Handler": "GetFunctionHandler", - "Runtime": "provided.al2", - "CodeUri": "", - "MemorySize": 256, + "Runtime": "dotnet8", + "CodeUri": ".", + "MemorySize": 512, "Timeout": 30, - "Role": null, "Policies": [ "AWSLambdaBasicExecutionRole" ], + "PackageType": "Zip", + "Handler": "BlueprintBaseName.1", + "Environment": { + "Variables": { + "ANNOTATIONS_HANDLER": "GetFunctionHandler" + } + }, "Events": { "RootGet": { "Type": "Api", @@ -29,31 +37,61 @@ } } }, - "RootPut": { + "BlueprintBaseName1FunctionsPostFunctionHandlerGenerated": { "Type": "AWS::Serverless::Function", + "Metadata": { + "Tool": "Amazon.Lambda.Annotations", + "SyncedEvents": [ + "RootPost" + ] + }, "Properties": { - "Architectures": [ - "x86_64" - ], - "Handler": "PutFunctionHandler", - "Runtime": "provided.al2", - "CodeUri": "", - "MemorySize": 256, + "Runtime": "dotnet8", + "CodeUri": ".", + "MemorySize": 512, "Timeout": 30, - "Role": null, "Policies": [ "AWSLambdaBasicExecutionRole" ], + "PackageType": "Zip", + "Handler": "BlueprintBaseName.1", + "Environment": { + "Variables": { + "ANNOTATIONS_HANDLER": "PostFunctionHandler" + } + }, "Events": { - "RootPut": { + "RootPost": { "Type": "Api", "Properties": { "Path": "/", - "Method": "PUT" + "Method": "POST" } } } } + }, + "BlueprintBaseName1FunctionsGetCallingIPAsyncGenerated": { + "Type": "AWS::Serverless::Function", + "Metadata": { + "Tool": "Amazon.Lambda.Annotations" + }, + "Properties": { + "Runtime": "dotnet8", + "CodeUri": ".", + "MemorySize": 512, + "Timeout": 30, + "Policies": [ + "AWSLambdaBasicExecutionRole" + ], + "PackageType": "Zip", + "Handler": "BlueprintBaseName.1", + "Environment": { + "Variables": { + "ANNOTATIONS_HANDLER": "GetCallingIPAsync" + } + } + } } }, "Outputs": { diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index d80a80577..065f45efb 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/test/BlueprintBaseName.1.Tests/FunctionsTest.cs b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/test/BlueprintBaseName.1.Tests/FunctionsTest.cs index 2f5272866..e17f0895a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/test/BlueprintBaseName.1.Tests/FunctionsTest.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/NativeAOTServerless/template/test/BlueprintBaseName.1.Tests/FunctionsTest.cs @@ -1,27 +1,20 @@ using Xunit; -using Amazon.Lambda.Core; using Amazon.Lambda.TestUtilities; -using Amazon.Lambda.APIGatewayEvents; - +using System.Net; namespace BlueprintBaseName._1.Tests; public class FunctionsTest { [Fact] - public void TestGetMethod() + public async Task TestGetMethod() { - TestLambdaContext context; - APIGatewayProxyRequest request; - APIGatewayProxyResponse response; - Functions functions = new Functions(); + var context = new TestLambdaContext(); + + var ip = await functions.GetCallingIPAsync(context); - request = new APIGatewayProxyRequest(); - context = new TestLambdaContext(); - response = functions.GetFunctionHandler(request, context); - Assert.Equal(200, response.StatusCode); - Assert.Equal("Hello AWS Serverless", response.Body); + Assert.True(IPAddress.TryParse(ip, out var _)); } } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index ff59dabee..4e79cf83d 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -13,9 +13,9 @@ - - - - + + + + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/Function.cs index 6587d1040..0375e53d7 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/Function.cs @@ -21,8 +21,8 @@ public class Function /// /// A simple function that takes a string and does a ToUpper /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// [Logging(LogEvent = true)] [Tracing] diff --git a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index e68c6bb3a..dde742e6d 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -9,8 +9,8 @@ "region": "DefaultRegion", "configuration": "Release", "function-architecture": "x86_64", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler", "environment-variables": "POWERTOOLS_SERVICE_NAME=PowertoolsFunction;POWERTOOLS_LOG_LEVEL=Info;POWERTOOLS_LOGGER_CASE=PascalCase;POWERTOOLS_TRACER_CAPTURE_RESPONSE=true;POWERTOOLS_TRACER_CAPTURE_ERROR=true;POWERTOOLS_METRICS_NAMESPACE=powertools_function" diff --git a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 05b95f534..065f45efb 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 316dda379..15c522877 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -13,10 +13,10 @@ - + - - - + + + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/Functions.cs b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/Functions.cs index 375a410f1..0fb710fbc 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/Functions.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/Functions.cs @@ -21,7 +21,8 @@ public class Functions /// /// A Lambda function to respond to HTTP Get methods from API Gateway /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// The API Gateway response. [Logging(LogEvent = true, CorrelationIdPath = CorrelationIdPaths.ApiGatewayRest)] [Metrics(CaptureColdStart = true)] diff --git a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/serverless.template index e163e80ee..8018b8f99 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/src/BlueprintBaseName.1/serverless.template @@ -10,9 +10,9 @@ "x86_64" ], "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Functions::Get", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 293766b81..0f4e524ce 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/PowertoolsServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 9d8687ee2..6ea6ced96 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,7 +12,7 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/Function.cs index 66cfc35ec..5f2364d4f 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/Function.cs @@ -16,8 +16,8 @@ public class Function /// on the ApplicationLoadBalancerRequest and ApplicationLoadBalancerResponse objects. If "Multi value headers" is enabled then /// use MultiValueHeaders and MultiValueQueryStringParameters properties. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public ApplicationLoadBalancerResponse FunctionHandler(ApplicationLoadBalancerRequest request, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 05b95f534..065f45efb 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleApplicationLoadBalancer/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index cf4df3454..8bbeb6704 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true Lambda @@ -10,9 +10,8 @@ - - - + + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs index 2d6ae3cdd..3987b234b 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -17,8 +17,8 @@ type Function() = /// /// A simple function to print out the DynamoDB stream event /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.FunctionHandler (dynamoEvent: DynamoDBEvent) (context: ILambdaContext) = sprintf "Beginning to process %i records..." dynamoEvent.Records.Count @@ -26,7 +26,7 @@ type Function() = let processRecord (record: DynamoDBEvent.DynamodbStreamRecord) = context.Logger.LogInformation(sprintf "Event ID: %s" record.EventID) - context.Logger.LogInformation(sprintf "Event Name: %s" record.EventName.Value) + context.Logger.LogInformation(sprintf "Event Name: %s" record.EventName) // TODO: Add business logic processing the record.Dynamodb object. dynamoEvent.Records diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index 9e36c1158..5374de614 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,13 +2,12 @@ Library false - net6.0 + net8.0 - - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/test/BlueprintBaseName.1.Tests/FunctionTest.fs b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/test/BlueprintBaseName.1.Tests/FunctionTest.fs index e38a68df6..912a54425 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/test/BlueprintBaseName.1.Tests/FunctionTest.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction-FSharp/template/test/BlueprintBaseName.1.Tests/FunctionTest.fs @@ -1,12 +1,9 @@ namespace BlueprintBaseName._1.Tests - open Xunit open Amazon.Lambda.TestUtilities open Amazon.Lambda.DynamoDBEvents -open Amazon.DynamoDBv2 -open Amazon.DynamoDBv2.Model open System open System.Collections.Generic @@ -17,22 +14,22 @@ open BlueprintBaseName._1 module FunctionTest = [] let ``Test Reading DynamoDB Stream Event``() = - let keys = dict [ ("id", AttributeValue(S = "MyId")) ] + let keys = dict [ ("id", DynamoDBEvent.AttributeValue(S = "MyId")) ] let newImage = dict [ - ("field1", AttributeValue(S = "NewValue")) - ("field2", AttributeValue(S = "AnotherNewValue")) + ("field1", DynamoDBEvent.AttributeValue(S = "NewValue")) + ("field2", DynamoDBEvent.AttributeValue(S = "AnotherNewValue")) ] let oldImages = dict [ - ("field1", AttributeValue(S = "OldValue")) - ("field2", AttributeValue(S = "AnotherOldValue")) + ("field1", DynamoDBEvent.AttributeValue(S = "OldValue")) + ("field2", DynamoDBEvent.AttributeValue(S = "AnotherOldValue")) ] let streamRecord = - StreamRecord( + DynamoDBEvent.StreamRecord( ApproximateCreationDateTime = DateTime.Now, - StreamViewType = StreamViewType.NEW_AND_OLD_IMAGES, + StreamViewType = "NEW_AND_OLD_IMAGES", Keys = Dictionary(keys), NewImage = Dictionary(newImage), OldImage = Dictionary(oldImages) @@ -41,7 +38,7 @@ module FunctionTest = let ddbStreamRecords = [ DynamoDBEvent.DynamodbStreamRecord( EventID = "id-foo", - EventName = OperationType.INSERT, + EventName = "INSERT", AwsRegion = "us-west-2", Dynamodb = streamRecord ) diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 14d4fa2db..311dc67af 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,8 +12,7 @@ - - - + + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/Function.cs index 823a0f390..fcc70fa00 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/Function.cs @@ -1,6 +1,5 @@ using Amazon.Lambda.Core; using Amazon.Lambda.DynamoDBEvents; -using Amazon.DynamoDBv2.Model; // Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class. [assembly: LambdaSerializer(typeof(Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))] diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 3eff6a8f7..33b6700f6 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -8,8 +8,7 @@ - - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/test/BlueprintBaseName.1.Tests/FunctionTest.cs b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/test/BlueprintBaseName.1.Tests/FunctionTest.cs index 33458897d..3d3797fab 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/test/BlueprintBaseName.1.Tests/FunctionTest.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleDynamoDBFunction/template/test/BlueprintBaseName.1.Tests/FunctionTest.cs @@ -1,11 +1,9 @@ using Xunit; -using Amazon; -using Amazon.Lambda.Core; + using Amazon.Lambda.DynamoDBEvents; using Amazon.Lambda.TestUtilities; -using Amazon.DynamoDBv2; -using Amazon.DynamoDBv2.Model; + @@ -23,19 +21,18 @@ public void TestFunction() new DynamoDBEvent.DynamodbStreamRecord { AwsRegion = "us-west-2", - Dynamodb = new StreamRecord + Dynamodb = new DynamoDBEvent.StreamRecord { ApproximateCreationDateTime = DateTime.Now, - Keys = new Dictionary { {"id", new AttributeValue { S = "MyId" } } }, - NewImage = new Dictionary { { "field1", new AttributeValue { S = "NewValue" } }, { "field2", new AttributeValue { S = "AnotherNewValue" } } }, - OldImage = new Dictionary { { "field1", new AttributeValue { S = "OldValue" } }, { "field2", new AttributeValue { S = "AnotherOldValue" } } }, - StreamViewType = StreamViewType.NEW_AND_OLD_IMAGES + Keys = new Dictionary { {"id", new DynamoDBEvent.AttributeValue { S = "MyId" } } }, + NewImage = new Dictionary { { "field1", new DynamoDBEvent.AttributeValue { S = "NewValue" } }, { "field2", new DynamoDBEvent.AttributeValue { S = "AnotherNewValue" } } }, + OldImage = new Dictionary { { "field1", new DynamoDBEvent.AttributeValue { S = "OldValue" } }, { "field2", new DynamoDBEvent.AttributeValue { S = "AnotherOldValue" } } }, + StreamViewType = "NEW_AND_OLD_IMAGES" } } } }; - var context = new TestLambdaContext(); var function = new Function(); diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index a25531fb0..6b920ef99 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,7 +12,7 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 2df8fa7e8..0e5295122 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFirehoseFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index ddec24e9a..89d59f535 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true Lambda @@ -10,7 +10,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs index 5c9af3560..5267f682d 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -17,8 +17,8 @@ type Function() = /// /// A function to process Kinesis events /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.FunctionHandler (kinesisEvent: KinesisEvent) (context: ILambdaContext) = sprintf "Beginning to process % i records..." kinesisEvent.Records.Count diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index e3c8a2c15..16eddfa1c 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net6.0 + net8.0 diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 67e60ff30..f057c79d0 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,7 +12,7 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index c5d70f04c..424ba7fcb 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleKinesisFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 87ea71502..9f99a5199 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true Lambda @@ -10,9 +10,9 @@ - + - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/Function.fs index 8be934c15..f31eb6897 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -20,8 +20,8 @@ type Function(s3Client: IAmazonS3) = /// This method is called for every Lambda invocation. This method takes in an S3 event object and can be used /// to respond to S3 notifications. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.FunctionHandler (event: S3Event) (context: ILambdaContext) = task { diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index 82833c991..f5da95d86 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,13 +2,13 @@ Library false - net6.0 + net8.0 - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 1f2ff2141..aaf3665eb 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,8 +12,8 @@ - + - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/Function.cs index 3a7fd8843..ca8bc9a3a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/Function.cs @@ -25,7 +25,7 @@ public Function() /// /// Constructs an instance with a preconfigured S3 client. This can be used for testing outside of the Lambda environment. /// - /// + /// The service client to access Amazon S3. public Function(IAmazonS3 s3Client) { this.S3Client = s3Client; @@ -35,8 +35,8 @@ public Function(IAmazonS3 s3Client) /// This method is called for every Lambda invocation. This method takes in an S3 event object and can be used /// to respond to S3 notifications. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public async Task FunctionHandler(S3Event evnt, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 2ce2c3a44..f28f5e98d 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3Function/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -9,7 +9,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 03d252cd7..44692ac99 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true Lambda @@ -10,9 +10,9 @@ - + - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs index 8be934c15..f31eb6897 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/Function.fs @@ -20,8 +20,8 @@ type Function(s3Client: IAmazonS3) = /// This method is called for every Lambda invocation. This method takes in an S3 event object and can be used /// to respond to S3 notifications. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// member __.FunctionHandler (event: S3Event) (context: ILambdaContext) = task { diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template index d7e11e61c..27709a99c 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/src/BlueprintBaseName.1/serverless.template @@ -40,10 +40,10 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", "Description": "Default function", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index 82833c991..f5da95d86 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,13 +2,13 @@ Library false - net6.0 + net8.0 - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 1f2ff2141..aaf3665eb 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,8 +12,8 @@ - + - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/Function.cs index 34bbd5cab..b30d53d7a 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/Function.cs @@ -25,7 +25,7 @@ public Function() /// /// Constructs an instance with a preconfigured S3 client. This can be used for testing the outside of the Lambda environment. /// - /// + /// The service client to access Amazon S3. public Function(IAmazonS3 s3Client) { this.S3Client = s3Client; @@ -35,8 +35,8 @@ public Function(IAmazonS3 s3Client) /// This method is called for every Lambda invocation. This method takes in an S3 event object and can be used /// to respond to S3 notifications. /// - /// - /// + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public async Task FunctionHandler(S3Event evnt, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/serverless.template index d7e11e61c..27709a99c 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/src/BlueprintBaseName.1/serverless.template @@ -40,10 +40,10 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", "Description": "Default function", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index a9e61710b..3e6995f12 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleS3FunctionServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -9,7 +9,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 4b4b09fcd..03783ca3f 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,7 +12,7 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/Function.cs index 68b689639..2d9748207 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/Function.cs @@ -24,8 +24,8 @@ public Function() /// This method is called for every Lambda invocation. This method takes in an SNS event object and can be used /// to respond to SNS messages. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public async Task FunctionHandler(SNSEvent evnt, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 745d3688f..24ee61975 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleSNSFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index cc7e287ad..3c9e0eaa0 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,7 +12,7 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/Function.cs b/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/Function.cs index a26eda4c4..6e6a0d5b0 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/Function.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/Function.cs @@ -24,8 +24,8 @@ public Function() /// This method is called for every Lambda invocation. This method takes in an SQS event object and can be used /// to respond to SQS messages. /// - /// - /// + /// The event for the Lambda function handler to process. + /// The ILambdaContext that provides methods for logging and describing the Lambda environment. /// public async Task FunctionHandler(SQSEvent evnt, ILambdaContext context) { diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index 84f8e0616..d4dd3c3f5 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1::BlueprintBaseName._1.Function::FunctionHandler" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 745d3688f..24ee61975 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/SimpleSQSFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj index 062b865c8..5dbb3cb11 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/src/BlueprintBaseName.1/BlueprintBaseName.1.fsproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 true Lambda @@ -10,7 +10,7 @@ - + diff --git a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/src/BlueprintBaseName.1/serverless.template index 9e21d61e3..23dc10b7d 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/src/BlueprintBaseName.1/serverless.template @@ -13,8 +13,8 @@ "Arn" ] }, - "Runtime": "dotnet6", - "MemorySize": 256, + "Runtime": "dotnet8", + "MemorySize": 512, "Timeout": 30, "Code": { "S3Bucket": "", @@ -32,8 +32,8 @@ "Arn" ] }, - "Runtime": "dotnet6", - "MemorySize": 256, + "Runtime": "dotnet8", + "MemorySize": 512, "Timeout": 30, "Code": { "S3Bucket": "", diff --git a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj index 7c243636c..50faa435e 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj +++ b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld-FSharp/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.fsproj @@ -2,7 +2,7 @@ Library false - net6.0 + net8.0 diff --git a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index 84f1c3860..3d15b45fe 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,6 +12,6 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/src/BlueprintBaseName.1/serverless.template index 9e21d61e3..23dc10b7d 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/src/BlueprintBaseName.1/serverless.template @@ -13,8 +13,8 @@ "Arn" ] }, - "Runtime": "dotnet6", - "MemorySize": 256, + "Runtime": "dotnet8", + "MemorySize": 512, "Timeout": 30, "Code": { "S3Bucket": "", @@ -32,8 +32,8 @@ "Arn" ] }, - "Runtime": "dotnet6", - "MemorySize": 256, + "Runtime": "dotnet8", + "MemorySize": 512, "Timeout": 30, "Code": { "S3Bucket": "", diff --git a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 05b95f534..065f45efb 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/StepFunctionsHelloWorld/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/TopLevelStatementsFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/TopLevelStatementsFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index fce34e231..98c85cc36 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/TopLevelStatementsFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/TopLevelStatementsFunction/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,7 +1,7 @@ Exe - net6.0 + net8.0 enable enable true @@ -14,6 +14,6 @@ - + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/TopLevelStatementsFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json b/Blueprints/BlueprintDefinitions/vs2022/TopLevelStatementsFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json index d50797d01..65c047592 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/TopLevelStatementsFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json +++ b/Blueprints/BlueprintDefinitions/vs2022/TopLevelStatementsFunction/template/src/BlueprintBaseName.1/aws-lambda-tools-defaults.json @@ -8,8 +8,8 @@ "profile": "DefaultProfile", "region": "DefaultRegion", "configuration": "Release", - "function-runtime": "dotnet6", - "function-memory-size": 256, + "function-runtime": "dotnet8", + "function-memory-size": 512, "function-timeout": 30, "function-handler": "BlueprintBaseName.1" } \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj b/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj index d871dc9df..b594f8c9f 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true @@ -12,9 +12,9 @@ - + - - + + \ No newline at end of file diff --git a/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/Functions.cs b/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/Functions.cs index 8bf36c57a..5b3eb9792 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/Functions.cs +++ b/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/Functions.cs @@ -65,9 +65,9 @@ public Functions() /// /// Constructor used for testing allow tests to pass in moq versions of the service clients. /// - /// - /// - /// + /// The service client for accessing Amazon DynamoDB. + /// The service client for accessing Amazon API Gateway. + /// Name of the DynamoDB table to store websocket connection mappings. public Functions(IAmazonDynamoDB ddbClient, Func apiGatewayManagementApiClientFactory, string connectionMappingTable) { this.DDBClient = ddbClient; diff --git a/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/serverless.template b/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/serverless.template index 7c04d9c06..1d53910f3 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/serverless.template +++ b/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/src/BlueprintBaseName.1/serverless.template @@ -38,9 +38,9 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Functions::OnConnectHandler", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ @@ -65,9 +65,9 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Functions::OnDisconnectHandler", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ @@ -92,9 +92,9 @@ "Type": "AWS::Serverless::Function", "Properties": { "Handler": "BlueprintBaseName.1::BlueprintBaseName._1.Functions::SendMessageHandler", - "Runtime": "dotnet6", + "Runtime": "dotnet8", "CodeUri": "", - "MemorySize": 256, + "MemorySize": 512, "Timeout": 30, "Role": null, "Policies": [ diff --git a/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj b/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj index 27d1e4223..73522be2f 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj +++ b/Blueprints/BlueprintDefinitions/vs2022/WebSocketAPIServerless/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj @@ -1,6 +1,6 @@ - net6.0 + net8.0 enable enable true diff --git a/Blueprints/BlueprintDefinitions/vs2022/template.nuspec b/Blueprints/BlueprintDefinitions/vs2022/template.nuspec index 17dc2dbda..ffa6df1a6 100644 --- a/Blueprints/BlueprintDefinitions/vs2022/template.nuspec +++ b/Blueprints/BlueprintDefinitions/vs2022/template.nuspec @@ -2,7 +2,7 @@ Amazon.Lambda.Templates - 6.15.1 + 7.0.0 Amazon Web Services AWS Amazon Lambda AWS Lambda templates for Microsoft Template Engine accessible with the dotnet CLI's new command