[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-apigw-waf-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":16,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":31,"language":36,"level":37,"meta":38,"patternArch":39,"resources":53,"s3URL":6,"services":59,"stem":60,"testing":61,"videoId":30,"__hash__":65},"patterns\u002Fpatterns\u002Fapigw-waf-cdk.json","Amazon API Gateway integration with AWS WAF",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. In the source folder, from the command line enter:","\u003Ccode>npx cdk destroy --app 'ts-node .'\u003C\u002Fcode>","2. Confirm the removal and wait for the resource deletion to complete.",[14,15],"content\u002Fcontributors\u002Frajneesh-ranjan.json","content\u002Fcontributors\u002Fbritney-tong.json",{"text":17},[18],"npx cdk deploy --app 'ts-node .'","Create an Amazon API Gateway integration with AWS WAF","json","AWS CDK",{"template":23,"payloads":28},{"projectFolder":24,"repoURL":25,"templateURL":26,"templateFile":27},"apig-waf\u002Fsrc","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapig-waf\u002Fsrc","serverless-patterns\u002Fapig-waf\u002Fsrc","waf\u002Findex.ts",[29],{"headline":30,"payloadURL":30},"",{"headline":32,"text":33},"How it works",[34,35],"This pattern in CDK offers a example to generate an Amazon API Gateway with a greedy proxy (\"{proxy+}\") and \"ANY\" method from the specified path.","This means it will accept by default any method and any path. The Lambda function is configured for VPC access and returns only the path.","TypeScript","200",{},{"icon1":40,"icon2":45,"line1":49},{"x":41,"y":42,"service":43,"label":44},20,50,"waf","AWS WAF",{"x":46,"y":42,"service":47,"label":48},80,"apigw","API Gateway REST API",{"from":50,"to":51,"label":52},"icon1","icon2","Request ANY {proxy+}",{"headline":54,"bullets":55},"Additional resources",[56],{"text":57,"link":58},"CDK Patterns","https:\u002F\u002Fcdkpatterns.com\u002F",{"from":43,"to":47},"patterns\u002Fapigw-waf-cdk",{"headline":62,"text":63},"Testing",[64],"Locate WAFAPIGatewayApi.ApiUrl from the CDK output. This is the API endpoint to be invoked in a browser.","X70aEL8ydGf7cJrwMVFUhAi6NCJQ96SH6_jBURom4TI",1781001380464]