[{"data":1,"prerenderedAt":51},["ShallowReactive",2],{"pattern-apigw-api-key-sam":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":39,"s3URL":45,"services":6,"stem":46,"testing":47,"videoId":6,"__hash__":50},"patterns\u002Fpatterns\u002Fapigw-api-key-sam.json","Amazon API Gateway with an API Key",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Falbert-blaya.json",{"text":13},[14],"sam deploy --guided","Create a REST API Gateway with an API Key associated with a Usage Plan.","json","AWS SAM",{"template":19},{"projectFolder":20,"repoURL":21,"templateURL":22,"templateFile":23},"apigw-api-key","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-api-key","serverless-patterns\u002Fapigw-api-key","template.yaml",{"headline":25,"text":26},"How it works",[27,28,29,30],"An API Key is created and added to a Usage Plan (no throttling, no quota). This Usage Plan is then associated with the Prod stage of a REST API.","The GET method of this REST API is configured to require an API Key associated with the Usage Plan.","If the API key is provided, then API Gateway allows the request and sends it to the Lambda integration.","If the API is not provided, API returns a 403 Forbidden.","Node.js","200",{},{"icon1":35},{"x":36,"y":36,"service":37,"label":38},50,"apigw","API Gateway REST API",{"headline":40,"bullets":41},"Additional resources",[42],{"text":43,"link":44},"REST API with an API Key","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapi-gateway-setup-api-key-with-console.html","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Fapigw-api-key-sam\u002Fcloudformation.yml","patterns\u002Fapigw-api-key-sam",{"text":48},[49],"See the GitHub repo for detailed testing instructions.","o5gEYSfVzDWuSlsfBDR_yyWAQw8mKgo7giHemwpOQNw",1778846881553]