Skip to content

chore: Update Message Processing Framework VS blueprint #1768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.3.0" />
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.5.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.1" />
<PackageReference Include="Amazon.Lambda.SQSEvents" Version="2.2.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Amazon.Lambda.Annotations;
using Amazon.Lambda.Annotations.APIGateway;
using Amazon.Lambda.Annotations.SQS;
using Amazon.Lambda.Core;
using Amazon.Lambda.SQSEvents;
using AWS.Messaging;
Expand Down Expand Up @@ -56,6 +56,7 @@ public async Task Sender([FromServices] IMessagePublisher publisher, GreetingMes
/// <param name="context">Lambda execution context</param>
/// <returns>Set of messages whose handler invocations failed, only these will be reprocessed</returns>
[LambdaFunction(Policies = "AWSLambdaSQSQueueExecutionRole")]
[SQSEvent("@MessageProcessingFrameworkDemoQueue", ResourceName = "SQSEvent")]
public async Task<SQSBatchResponse> Handler(SQSEvent evnt, ILambdaContext context)
{
// Pass the SQSEvent into the framework
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{
"AWSTemplateFormatVersion": "2010-09-09",
"Transform": "AWS::Serverless-2016-10-31",
"Description": "AWS Message Processing Framework for .NET Template. This template is partially managed by Amazon.Lambda.Annotations (v1.2.0.0).",
"Description": "AWS Message Processing Framework for .NET Template. This template is partially managed by Amazon.Lambda.Annotations (v1.5.0.0).",
"Resources": {
"MessageProcessingFrameworkDemoQueue": {
"Type": "AWS::SQS::Queue"
},
"BlueprintBaseName._1FunctionsHandlerGenerated": {
"Type": "AWS::Serverless::Function",
"Metadata": {
"Tool": "Amazon.Lambda.Annotations"
"Tool": "Amazon.Lambda.Annotations",
"SyncedEvents": [
"SQSEvent"
],
"SyncedEventProperties": {
"SQSEvent": [
"Queue.Fn::GetAtt",
"FunctionResponseTypes"
]
}
},
"Properties": {
"Runtime": "dotnet8",
Expand Down
2 changes: 1 addition & 1 deletion Blueprints/BlueprintDefinitions/vs2022/template.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Amazon.Lambda.Templates</id>
<version>7.1.1</version>
<version>7.2.0</version>
<authors>Amazon Web Services</authors>
<tags>AWS Amazon Lambda</tags>
<description>AWS Lambda templates for Microsoft Template Engine accessible with the dotnet CLI's new command</description>
Expand Down
Loading