Skip to content

Lambda1002 always warns invalid property Qualifier #1105

Open
@bjbr-dev

Description

@bjbr-dev

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

No one assigned

    Labels

    bugThis issue is a bug.module/sdk-generatedp2This is a standard priority issuequeuedservice-apiThis issue is due to a problem in a service API, not the SDK implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions