Aws-sdk-net: Lambda1002 always warns invalid property Qualifier

Created on 22 Oct 2018  路  3Comments  路  Source: aws/aws-sdk-net

Expected Behavior

A valid Lambda Function Qualifier such as "production" or "$LATEST" should not raise a warning

Current Behavior

When compiling, with a valid qualifier string

It produces a compile warning and flags in Visual Studio:

warning Lambda1002: Value "$LATEST" does not match required pattern "(|[a-zA-Z0-9$_-]+)" for property Qualifier

Possible Solution

It looks like the regex has a spurious "|" at the start

Steps to Reproduce (for bugs)

var request = new InvokeRequest { FunctionName = "FUNCTION", Qualifier = "$LATEST", InvocationType = InvocationType.Event, LogType = LogType.None, Payload = payload };

Context

Unable to compile when warnings as errors is on, and have to #pragma warning disable Lambda1002

Your Environment


AWSSDK.Lambda Version="3.3.16.5"
Visual Studio 2017 (15.8.7)
.Net Core 2.1
Windows 10

bug closed-for-staleness service-api

All 3 comments

@berkeleybross, thanks for reporting this. I believe that you're right in thinking this is a bug. I'll bring it up in a meeting in a few minutes

We're waiting on a resolution from the Lambda team, which could overwrite any patch the .NET SDK team does at any time, but they are probably swamped with re:Invent preparation. I'll inquire again as to whether we can do a short term patch from our team while waiting on the proper response. Thank you for your patience.

We have noticed this issue has not recieved attention in a year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue.

Was this page helpful?
0 / 5 - 0 ratings