A valid Lambda Function Qualifier such as "production" or "$LATEST" should not raise a warning
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
It looks like the regex has a spurious "|" at the start
var request = new InvokeRequest
{
FunctionName = "FUNCTION",
Qualifier = "$LATEST",
InvocationType = InvocationType.Event,
LogType = LogType.None,
Payload = payload
};
Unable to compile when warnings as errors is on, and have to #pragma warning disable Lambda1002
AWSSDK.Lambda Version="3.3.16.5"
Visual Studio 2017 (15.8.7)
.Net Core 2.1
Windows 10
@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.