|
| 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/ack-connect-route", |
| 16 | + "templateURL": "serverless-patterns/ack-connect-route", |
| 17 | + "projectFolder": "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": "manasvi-jain-36b9941a3" |
| 42 | + }, |
| 43 | + { |
| 44 | + "name": "Umang Aggarwal", |
| 45 | + "image": "https://avatars.githubusercontent.com/Umang071", |
| 46 | + "bio": "Technical Account Manager @ AWS", |
| 47 | + "linkedin": "/umangaggarwal" |
| 48 | + } |
| 49 | + ], |
| 50 | + "patternArch": { |
| 51 | + "icon1": { |
| 52 | + "x": 20, |
| 53 | + "y": 50, |
| 54 | + "service": "apigw", |
| 55 | + "label": "API Gateway WebSocket API" |
| 56 | + }, |
| 57 | + "icon2": { |
| 58 | + "x": 50, |
| 59 | + "y": 50, |
| 60 | + "service": "lambda", |
| 61 | + "label": "AWS Lambda" |
| 62 | + }, |
| 63 | + "icon3": { |
| 64 | + "x": 90, |
| 65 | + "y": 50, |
| 66 | + "service": "lambda", |
| 67 | + "label": "AWS Lambda" |
| 68 | + }, |
| 69 | + "line1": { |
| 70 | + "from": "icon1", |
| 71 | + "to": "icon2", |
| 72 | + "label": "Validation" |
| 73 | + }, |
| 74 | + "line2": { |
| 75 | + "from": "icon2", |
| 76 | + "to": "icon3", |
| 77 | + "label": "Generate Response" |
| 78 | + } |
| 79 | + } |
| 80 | +} |
0 commit comments