Skip to content

Commit 8b090b5

Browse files
committed
chore: update SAM template
1 parent 2d0f445 commit 8b090b5

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

examples/template.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,3 +557,31 @@ Resources:
557557
DurableConfig:
558558
RetentionPeriodInDays: 7
559559
ExecutionTimeout: 300
560+
CallbackFailure:
561+
Type: AWS::Serverless::Function
562+
Properties:
563+
CodeUri: build/
564+
Handler: callback_failure.handler
565+
Description: Demonstrates callback failure scenarios where the error is caught
566+
in the code
567+
Role:
568+
Fn::GetAtt:
569+
- DurableFunctionRole
570+
- Arn
571+
DurableConfig:
572+
RetentionPeriodInDays: 7
573+
ExecutionTimeout: 300
574+
CallbackWithTimeout:
575+
Type: AWS::Serverless::Function
576+
Properties:
577+
CodeUri: build/
578+
Handler: callback_with_timeout.handler
579+
Description: Demonstrates callback timeout scenarios (heartbeat timeout and
580+
general timeout)
581+
Role:
582+
Fn::GetAtt:
583+
- DurableFunctionRole
584+
- Arn
585+
DurableConfig:
586+
RetentionPeriodInDays: 7
587+
ExecutionTimeout: 300

0 commit comments

Comments
 (0)