API - activateEventSource and deactivateEventSource - Possible bug

0

Hey there!

I'm trying to use activateEventSource and deactivateEventSource on Lambda using aws-sdk. We have a rule with the following name:

example_name-rule

When we try calling the API methods, the following response is returned:

ValidationException: 1 validation error detected: Value 'example_name-rule' at 'name' failed to satisfy constraint: Member must satisfy regular expression pattern: aws.partner(/[.-_A-Za-z0-9]+){2,}

It looks to me that this is a bug. Note this bit: (/\[.-_A-Za-z0-9]+){2,} (Link for proper formatting: https://regexr.com/5gnfl)

Shouldn't this be (/[.-_A-Za-z0-9]+){2,}? (Link for proper formatting: https://regexr.com/5gnfu) Dashes are allowed in names, which is why we could create the rule in the first place.

Am I doing something wrong?

gefragt vor 3 Jahren191 Aufrufe
1 Antwort
0

Closing this, this is entirely my mistake.

I mixed up between Partner Event Source and Rules. Apologies.

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen