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
posta 3 anni fa213 visualizzazioni
1 Risposta
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
con risposta 3 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande