-
Notifications
You must be signed in to change notification settings - Fork 867
Open
Labels
bugThis issue is a bug.This issue is a bug.module/sdk-generatedp2This is a standard priority issueThis is a standard priority issuequeuedservice-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.
Description
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
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.module/sdk-generatedp2This is a standard priority issueThis is a standard priority issuequeuedservice-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.