Skip to content

Commit 6b3e1a9

Browse files
committed
chore: update SAM template
1 parent 24bcbee commit 6b3e1a9

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

examples/template.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,3 +557,44 @@ Resources:
557557
DurableConfig:
558558
RetentionPeriodInDays: 7
559559
ExecutionTimeout: 300
560+
CallbackSimple:
561+
Type: AWS::Serverless::Function
562+
Properties:
563+
CodeUri: build/
564+
Handler: callback_simple.handler
565+
Description: Creating a callback ID for external systems to use
566+
Role:
567+
Fn::GetAtt:
568+
- DurableFunctionRole
569+
- Arn
570+
DurableConfig:
571+
RetentionPeriodInDays: 7
572+
ExecutionTimeout: 300
573+
CallbackHeartbeat:
574+
Type: AWS::Serverless::Function
575+
Properties:
576+
CodeUri: build/
577+
Handler: callback_heartbeat.handler
578+
Description: Demonstrates callback failure scenarios where the error propagates
579+
and is handled by framework
580+
Role:
581+
Fn::GetAtt:
582+
- DurableFunctionRole
583+
- Arn
584+
DurableConfig:
585+
RetentionPeriodInDays: 7
586+
ExecutionTimeout: 300
587+
CallbackMixedOps:
588+
Type: AWS::Serverless::Function
589+
Properties:
590+
CodeUri: build/
591+
Handler: callback_mixed_ops.handler
592+
Description: Demonstrates createCallback mixed with steps, waits, and other
593+
operations
594+
Role:
595+
Fn::GetAtt:
596+
- DurableFunctionRole
597+
- Arn
598+
DurableConfig:
599+
RetentionPeriodInDays: 7
600+
ExecutionTimeout: 300

0 commit comments

Comments
 (0)