[{"data":1,"prerenderedAt":80},["ShallowReactive",2],{"pattern-apigw-bedrock-cognito-cdk":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":31,"level":32,"meta":33,"patternArch":34,"resources":59,"s3URL":6,"services":6,"stem":75,"testing":76,"videoId":6,"__hash__":79},"patterns\u002Fpatterns\u002Fapigw-bedrock-cognito-cdk.json","Amazon API Gateway with Amazon Cognito to AWS Lambda to Amazon Bedrock",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Finthuson-anandakumar.json",{"text":13},[14,15],"Deploy the stack: \u003Ccode>cdk deploy\u003C\u002Fcode>","Deploy the stack with context variables: \u003Ccode>cdk deploy --context ORGANIZATION_DOMAIN=@example.com --context API_THROTTLE_RATE_LIMIT=1 --context API_THROTTLE_BURST_LIMIT=2 --context API_QUOTA_LIMIT=25 --contect API_QUOTA_LIMIT=DAY\u003C\u002Fcode>","Create an AWS CDK Python application for Bedrock API with Cognito user management, domain restriction, API request throttling, and quota limits.","json","AWS CDK",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-bedrock-cognito-cdk","serverless-patterns\u002Fapigw-bedrock-cognito-cdk","apigw-bedrock-cognito-cdk","app.py",{"headline":26,"text":27},"How it works",[28,29,30],"This sample project demonstrates how to create an API Gateway with AWS CDK, backed by a Cognito user pool for user management.","Users can register and log in via an endpoint. Registration can be restricted to a specific domain, such as '@example.com'. The application supports request throttling and quota limits to the API.","Configuration for domain restriction, request throttling, and quota management can be done using CDK context variables.","Python","200",{},{"icon1":35,"icon2":40,"icon3":44,"icon4":48,"line1":52,"line2":55,"line3":57},{"x":36,"y":37,"service":38,"label":39},10,50,"cognito","Amazon Cognito",{"x":41,"y":37,"service":42,"label":43},38,"apigw","Amazon API Gateway",{"x":45,"y":37,"service":46,"label":47},66,"lambda","AWS Lambda",{"x":49,"y":37,"service":50,"label":51},90,"bedrock","Amazon Bedrock",{"from":53,"to":54},"icon1","icon2",{"from":54,"to":56},"icon3",{"from":56,"to":58},"icon4",{"bullets":60},[61,64,66,69,72],{"text":62,"link":63},"Amazon API Gateway - REST API","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fapigateway-rest-api.html",{"text":51,"link":65},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fwhat-is-bedrock.html",{"text":67,"link":68},"Amazon Bedrock - Inference parameters for foundation models","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fmodel-parameters.html",{"text":70,"link":71},"AWS CDK v2 - Python","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fv2\u002Fguide\u002Fwork-with-cdk-python.html",{"text":73,"link":74},"Amazon Cognito - User Pools","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcognito\u002Flatest\u002Fdeveloperguide\u002Fcognito-user-identity-pools.html","patterns\u002Fapigw-bedrock-cognito-cdk",{"text":77},[78],"Run end-to-end tests: \u003Ccode>pytest\u003C\u002Fcode>","tVdJu-cdY7XMEwgRZ5QrOuOYAzL9XBq53ntBZMucoNU",1779273331754]