Skip to content

Commit

Permalink
chore: Update Message Processing Framework VS blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
96malhar committed Jun 20, 2024
1 parent f6157b5 commit 7737bd3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
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

0 comments on commit 7737bd3

Please sign in to comment.