Skip to content

Add [SNSEvent] annotation attribute and source generator support#2322

Draft
GarrettBeatty wants to merge 2 commits intodevfrom
feature/sns-annotations
Draft

Add [SNSEvent] annotation attribute and source generator support#2322
GarrettBeatty wants to merge 2 commits intodevfrom
feature/sns-annotations

Conversation

@GarrettBeatty
Copy link
Copy Markdown
Contributor

Adds SNSEvent annotation for Lambda Annotations, following the SQSEvent pattern. GeneratesSAM SNS event source config from attribute properties.

Related: DOTNET-8573

- SNSEventAttribute with Topic (required), ResourceName, FilterPolicy, Enabled
- SNSEventAttributeBuilder for Roslyn AttributeData parsing
- TypeFullNames constants and Events hashset
- EventType.SNS enum value and EventTypeBuilder
- SyntaxReceiver secondary attribute registration
- AttributeModelBuilder else-if branch
- CloudFormationWriter ProcessSnsAttribute (SAM SNS event type)
- LambdaFunctionValidator: ValidateSnsEvents + dependency check
- DiagnosticDescriptors: InvalidSnsEventAttribute (AWSLambda0134)
- SnsMessageProcessing.cs test source in TestServerlessApp
- SNSEventsTests.cs CloudFormation writer tests
- SNSEvents project reference in TestServerlessApp.csproj
- AnalyzerReleases.Unshipped.md entry for AWSLambda0134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant