[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-apigw-cognito-authorizer-sam-nodejs":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":29,"level":30,"meta":31,"patternArch":32,"resources":52,"s3URL":61,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Fapigw-cognito-authorizer-sam-nodejs.json","Amazon API Gateway REST API with an Amazon Cognito User Pools Authorizer",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Falbert-blaya.json",{"text":13},[14],"Deploy the stack: \u003Ccode>sam deploy\u003C\u002Fcode>.","Create a REST API Gateway with a Cognito User Pools Authorizer for access control","json","AWS SAM",{"template":19},{"projectFolder":20,"repoURL":21,"templateURL":22,"templateFile":23},"cognito-restapi","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fcognito-restapi","serverless-patterns\u002Fcognito-restapi","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"This pattern deploys an Amazon API Gateway REST API endpoint that uses a Cognito User Pools Authorizer for access control.","It assumes that the Cognito User Pool already exists and takes the Cognito User Pool ARN as an input parameter which must be provided by the user.","Node.js","200",{},{"icon1":33,"icon2":38,"icon3":41,"line1":45,"line2":49},{"x":34,"y":35,"service":36,"label":37},20,50,"apigw","API Gateway REST API",{"x":35,"y":35,"service":39,"label":40},"cognito","Cognito",{"x":42,"y":35,"service":43,"label":44},80,"lambda","AWS Lambda",{"from":46,"to":47,"label":48},"icon1","icon2","",{"from":47,"to":50,"label":51},"icon3","Cognito Auth",{"headline":53,"bullets":54},"Additional resources",[55,58],{"text":56,"link":57},"Controlling access to a REST API with a Cognito User Pools Authorizer","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-integrate-with-cognito.html",{"text":59,"link":60},"Lambda Function Handler","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwhitepapers\u002Flatest\u002Fserverless-architectures-lambda\u002Fthe-handler.html","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Fapigw-cognito-authorizer-sam-nodejs\u002Fcloudformation.yml","patterns\u002Fapigw-cognito-authorizer-sam-nodejs",{"text":64},[65],"See the GitHub repo for detailed testing instructions.","rfX1BDpMcnuNjUaCQBXsugsxiDeVNYO8MCiJQE_gMHE",1778846881607]