[{"data":1,"prerenderedAt":61},["ShallowReactive",2],{"pattern-apigw-websocket-api-sns":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":31,"level":32,"meta":33,"patternArch":34,"resources":48,"s3URL":6,"services":6,"stem":56,"testing":57,"videoId":6,"__hash__":60},"patterns\u002Fpatterns\u002Fapigw-websocket-api-sns.json","API WebSocket to Amazon SNS with request validation",null,{"text":8},[9],"sam delete",[11],"content\u002Fcontributors\u002Fbharat-sahni.json",{"text":13},[14],"sam deploy","Create a WebSocket API to send notification via SNS topic with request validation","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-websocket-api-sns","serverless-patterns\u002Fapigw-websocket-api-sns","apigw-websocket-api-sns","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29,30],"This sample project demonstrates how to use WebSocket API to integrate with Amazon Simple Notification service (SNS) to send notifications. This pattern also implements data validation in WebSocket API using model in API Gateway.","This pattern is utilizing native AWS Integration between WebSocket API Gateway and SNS. Request template is used in WebSocket integration to map the input to SNS payload.","This pattern is also a workaround to invoke AWS services in WebSocket API which requires Content-Type header to be application\u002Fx-www-form-urlencoded. By default, WebSocket APIs do not support overriding headers from AWS console by default","This pattern deploys one API Gateway and one SNS topic.","Integration","300",{},{"icon1":35,"icon2":40,"line1":44},{"x":36,"y":37,"service":38,"label":39},20,50,"apigw","Amazon API Gateway",{"x":41,"y":37,"service":42,"label":43},70,"sns","Amazon SNS",{"from":45,"to":46,"label":47},"icon1","icon2","",{"bullets":49},[50,53],{"text":51,"link":52},"Request validation in WebSocket API","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fwebsocket-api-request-validation.html",{"text":54,"link":55},"Mapping template in WebSocket API","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fwebsocket-api-data-transformations.html","patterns\u002Fapigw-websocket-api-sns",{"text":58},[59],"See the GitHub repo for detailed testing instructions.","5qad09hxmy6w26xTl9Z7AyZUlksnZTR1dRFvkuF2bNs",1778927706052]