[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-apigw-lambda-cognito-sam-java":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":32,"level":33,"meta":34,"patternArch":35,"resources":54,"s3URL":6,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Fapigw-lambda-cognito-sam-java.json","Amazon Cognito user management using Amazon API Gateway and AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fbiswanath-mukherjee.json",{"text":13},[14,15],"sam build","sam deploy --guided","Deploys Amazon Cognito user pool, Amazon API Gateway REST API with AWS Lambda integration for user creation, confirmation & token retrieval in Java.","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-cognito-sam-java","serverless-patterns\u002Fapigw-lambda-cognito-sam-java","apigw-lambda-cognito-sam-java","template.yaml",{"headline":26,"text":27},"How it works",[28,29,30,31],"Amazon API Gateway receives the HTTP POST request containing the request details in JSON format. There are 3 POST methods exposed for create user, confirm user and login user operations.","AWS Lambda is by the API Gateway, this function written in Java uses Amazon Cognito API to create, confirm and login user.","Depending on the operation invoked, user is created, confirmed or logged in the Amazon Cognito user pool.","The Lambda function processes the Amazon Cognito API response and sends it back to the user via the API Gateway.","Java","200",{},{"icon1":36,"icon2":41,"icon3":44,"line1":48,"line2":52},{"x":37,"y":38,"service":39,"label":40},20,50,"apigw","Amazon API Gateway",{"x":38,"y":38,"service":42,"label":43},"lambda","AWS Lambda",{"x":45,"y":38,"service":46,"label":47},80,"cognito","Amazon Cognito",{"from":49,"to":50,"label":51},"icon1","icon2","",{"from":50,"to":53,"label":51},"icon3",{"bullets":55},[56,59],{"text":57,"link":58},"Call a REST API integrated with an Amazon Cognito user pool","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-invoke-api-integrated-with-cognito-user-pool.html",{"text":60,"link":61},"Building fine-grained authorization using Amazon Cognito, API Gateway, and IAM","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fsecurity\u002Fbuilding-fine-grained-authorization-using-amazon-cognito-api-gateway-and-iam\u002F","patterns\u002Fapigw-lambda-cognito-sam-java",{"text":64},[65],"See the GitHub repo for detailed testing instructions.","AjoW07K2pSmmtspRC9UgkTOT77_yrHLJ6Ta_OPWlVKQ",1778927705110]