Can you make action execution for rulesets conditional?

0

Hello,
So I have a fairly simple email forwarder using the standard S3/Lambda way with python.

I want to achieve that messages that eg. fail some condition in the Lambda script are bounced with ses actions.
Currently these messages are just silently dropped.

So I was wondering if I could just add a bounce action after the Lambda action that only gets executed is something is wrong.

So when lambda thinks everything is alright it just stops the execution of the ruleset after the lambda action and when something is wrong
it simply lets the ruleset continue to the bounce action?

Is something like that at all possible or not? I do have some execution infos through the context object, can that be somehow used for this?

Thanks for any ideas

jschulz
gefragt vor 3 Jahren213 Aufrufe
1 Antwort
0

well looks like i should read the doc properly :D

seems like exactly what i need can be achieved by synchronous RequestResponse invokation with the disposition property

jschulz
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