aws-cdk-lib/triggers: Confusing/missing explanation on trigger failures #26341
Labels
@aws-cdk/triggers
Related to the triggers package
bug
This issue is a bug.
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
p2
Describe the issue
From the docs about trigger failures:
However, when the
invocationType
in the trigger's props istriggers.InvocationType.EVENT
a deployment will succeed regardless of if an error is thrown in the handler body. The quoted statement is true iftriggers.InvocationType.REQUEST_RESPONSE
is used however. Since the example code snippet of a trigger usestriggers.InvocationType.EVENT
it gives the impression that the deployment will fail if an exception is raised in the handler for the event. Perhaps this is an actual bug in this case, but if it works as intended then it would be good to be explicit about the effect of the differentinvocationType
s in the documentation.Links
aws-cdk-lib
The text was updated successfully, but these errors were encountered: