Skip to content

Commit 71e56b5

Browse files
committed
Fix example-pattern.json to match serverless-patterns standard format
1 parent f849738 commit 71e56b5

File tree

1 file changed

+7
-53
lines changed

1 file changed

+7
-53
lines changed

lambda-durable-human-approval-sam/example-pattern.json

Lines changed: 7 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
"description": "Approval workflow that pauses execution while waiting for human decisions, with automatic timeout handling and callback-based resumption",
44
"language": "Python",
55
"level": "300",
6-
"framework": "SAM",
7-
"services": {
8-
"from": "apigateway",
9-
"to": "lambda"
10-
},
6+
"framework": "AWS SAM",
117
"introBox": {
128
"headline": "How it works",
139
"text": [
@@ -20,10 +16,10 @@
2016
},
2117
"gitHub": {
2218
"template": {
23-
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-durable-hitl-approval-sam",
24-
"templateURL": "serverless-patterns/lambda-durable-hitl-approval-sam",
25-
"projectFolder": "lambda-durable-hitl-approval-sam",
26-
"templateFile": "lambda-durable-hitl-approval-sam/template.yaml"
19+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-durable-human-approval-sam",
20+
"templateURL": "serverless-patterns/lambda-durable-human-approval-sam",
21+
"projectFolder": "lambda-durable-human-approval-sam",
22+
"templateFile": "template.yaml"
2723
}
2824
},
2925
"resources": {
@@ -51,56 +47,14 @@
5147
},
5248
"testing": {
5349
"text": [
54-
"See README.md for comprehensive testing instructions including:",
55-
"- Creating approval requests",
56-
"- Submitting approval decisions",
57-
"- Testing timeout behavior",
58-
"- Monitoring durable executions"
50+
"See the GitHub repo for detailed testing instructions."
5951
]
6052
},
6153
"cleanup": {
6254
"text": [
63-
"sam delete --region us-east-2"
55+
"Delete the stack: <code>sam delete --region us-east-2</code>."
6456
]
6557
},
66-
"patternArch": {
67-
"icon1": {
68-
"x": 20,
69-
"y": 50,
70-
"service": "apigateway",
71-
"label": "API Gateway"
72-
},
73-
"icon2": {
74-
"x": 50,
75-
"y": 50,
76-
"service": "lambda",
77-
"label": "Durable Approval Function"
78-
},
79-
"icon3": {
80-
"x": 80,
81-
"y": 30,
82-
"service": "dynamodb",
83-
"label": "DynamoDB"
84-
},
85-
"icon4": {
86-
"x": 80,
87-
"y": 70,
88-
"service": "sns",
89-
"label": "SNS"
90-
},
91-
"line1": {
92-
"from": "icon1",
93-
"to": "icon2"
94-
},
95-
"line2": {
96-
"from": "icon2",
97-
"to": "icon3"
98-
},
99-
"line3": {
100-
"from": "icon2",
101-
"to": "icon4"
102-
}
103-
},
10458
"authors": [
10559
{
10660
"name": "Abhishek Agawane",

0 commit comments

Comments
 (0)