Skip to content

Commit 02b34cd

Browse files
committed
Rename pattern: apigw-websocket-ack-connect-route
1 parent b42c583 commit 02b34cd

File tree

8 files changed

+53
-47
lines changed

8 files changed

+53
-47
lines changed

ack-connect-route/example-pattern.json

Lines changed: 0 additions & 44 deletions
This file was deleted.
File renamed without changes.

ack-connect-route/ack-connect-route.json renamed to apigw-websocket-ack-connect-route/apigw-websocket-ack-connect-route.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
},
1313
"gitHub": {
1414
"template": {
15-
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/ack-connect-route",
16-
"templateURL": "serverless-patterns/ack-connect-route",
17-
"projectFolder": "ack-connect-route",
15+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-websocket-ack-connect-route",
16+
"templateURL": "serverless-patterns/apigw-websocket-ack-connect-route",
17+
"projectFolder": "apigw-websocket-ack-connect-route",
1818
"templateFile": "template.yml"
1919
}
2020
},
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"title": "Amazon API Gateway WebSocket acknowledgement for $connect route.",
3+
"description": "This pattern demonstrates acknowledging WebSocket connections with API Gateway and AWS Lambda",
4+
"language": "Python",
5+
"level": "200",
6+
"framework": "AWS SAM",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"The Serverless Application Model (SAM) template deploys an Amazon WebSocket API Gateway and two AWS Lambda functions. When a client connects, the API Gateway creates a $connect route with Lambda proxy integration. The first Lambda function processes the initial connection, capturing both the Connection ID and API Gateway stage URL, then asynchronously invokes the second Lambda function. This second function validates the Connection ID and, if valid, uses SDK API calls to send a greeting message back to the client."
11+
]
12+
},
13+
"gitHub": {
14+
"template": {
15+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-websocket-ack-connect-route",
16+
"templateURL": "serverless-patterns/apigw-websocket-ack-connect-route",
17+
"projectFolder": "apigw-websocket-ack-connect-route",
18+
"templateFile": "template.yml"
19+
}
20+
},
21+
"deploy": {
22+
"text": [
23+
"sam deploy"
24+
]
25+
},
26+
"testing": {
27+
"text": [
28+
"See the GitHub repo for detailed testing instructions."
29+
]
30+
},
31+
"cleanup": {
32+
"text": [
33+
"Delete the stack: <code>sam delete</code>."
34+
]
35+
},
36+
"authors": [
37+
{
38+
"name": "Manasvi Jain",
39+
"image": "https://avatars.githubusercontent.com/u/56217984?v=4",
40+
"bio": "Associate Partner Solutions Architect at AWS",
41+
"linkedin": "https://www.linkedin.com/in/manasvi-jain-36b9941a3/"
42+
},
43+
{
44+
"name": "Umang Aggarwal",
45+
"image": "https://avatars.githubusercontent.com/Umang071",
46+
"bio": "Technical Account Manager @ AWS",
47+
"linkedin": "https://www.linkedin.com/in/umangaggarwal"
48+
}
49+
]
50+
}

0 commit comments

Comments
 (0)