Skip to content

Commit 7737bd3

Browse files
committed
chore: Update Message Processing Framework VS blueprint
1 parent f6157b5 commit 7737bd3

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

Blueprints/BlueprintDefinitions/vs2022/MessageProcessingFramework/template/src/BlueprintBaseName.1/BlueprintBaseName.1.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PublishReadyToRun>true</PublishReadyToRun>
1212
</PropertyGroup>
1313
<ItemGroup>
14-
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.3.0" />
14+
<PackageReference Include="Amazon.Lambda.Annotations" Version="1.5.0" />
1515
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
1616
<PackageReference Include="Amazon.Lambda.Serialization.SystemTextJson" Version="2.4.1" />
1717
<PackageReference Include="Amazon.Lambda.SQSEvents" Version="2.2.0" />

Blueprints/BlueprintDefinitions/vs2022/MessageProcessingFramework/template/src/BlueprintBaseName.1/Functions.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Amazon.Lambda.Annotations;
2-
using Amazon.Lambda.Annotations.APIGateway;
2+
using Amazon.Lambda.Annotations.SQS;
33
using Amazon.Lambda.Core;
44
using Amazon.Lambda.SQSEvents;
55
using AWS.Messaging;
@@ -56,6 +56,7 @@ public async Task Sender([FromServices] IMessagePublisher publisher, GreetingMes
5656
/// <param name="context">Lambda execution context</param>
5757
/// <returns>Set of messages whose handler invocations failed, only these will be reprocessed</returns>
5858
[LambdaFunction(Policies = "AWSLambdaSQSQueueExecutionRole")]
59+
[SQSEvent("@MessageProcessingFrameworkDemoQueue", ResourceName = "SQSEvent")]
5960
public async Task<SQSBatchResponse> Handler(SQSEvent evnt, ILambdaContext context)
6061
{
6162
// Pass the SQSEvent into the framework

Blueprints/BlueprintDefinitions/vs2022/MessageProcessingFramework/template/src/BlueprintBaseName.1/serverless.template

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
22
"AWSTemplateFormatVersion": "2010-09-09",
33
"Transform": "AWS::Serverless-2016-10-31",
4-
"Description": "AWS Message Processing Framework for .NET Template. This template is partially managed by Amazon.Lambda.Annotations (v1.2.0.0).",
4+
"Description": "AWS Message Processing Framework for .NET Template. This template is partially managed by Amazon.Lambda.Annotations (v1.5.0.0).",
55
"Resources": {
66
"MessageProcessingFrameworkDemoQueue": {
77
"Type": "AWS::SQS::Queue"
88
},
99
"BlueprintBaseName._1FunctionsHandlerGenerated": {
1010
"Type": "AWS::Serverless::Function",
1111
"Metadata": {
12-
"Tool": "Amazon.Lambda.Annotations"
12+
"Tool": "Amazon.Lambda.Annotations",
13+
"SyncedEvents": [
14+
"SQSEvent"
15+
],
16+
"SyncedEventProperties": {
17+
"SQSEvent": [
18+
"Queue.Fn::GetAtt",
19+
"FunctionResponseTypes"
20+
]
21+
}
1322
},
1423
"Properties": {
1524
"Runtime": "dotnet8",

Blueprints/BlueprintDefinitions/vs2022/template.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
33
<metadata>
44
<id>Amazon.Lambda.Templates</id>
5-
<version>7.1.1</version>
5+
<version>7.2.0</version>
66
<authors>Amazon Web Services</authors>
77
<tags>AWS Amazon Lambda</tags>
88
<description>AWS Lambda templates for Microsoft Template Engine accessible with the dotnet CLI's new command</description>

0 commit comments

Comments
 (0)