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
demandé il y a 3 ans213 vues
1 réponse
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
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions