AWS API Gateway sandbox
REST API
- CloudFormation resource
AWS::ApiGateway::RestApi - Regional service
- Edge-optimized
- Can be made private
- Integration types
AWSUse this to create AWS API proxies for virtually any serviceAWS_PROXYlambdaHTTP_PROXYHTTPMOCK
- Offers caching
HTTP API
- CloudFormation resource
AWS::ApiGatewayV2::Api - Lightweight version of the REST API
- Regional service
- NOT Edge-optimized
- NOT Private
- Integration types
AWS_PROXYLambda, SQS, Kinesis Data Stream, AppConfig, Step Functions, EventBridge with proper integration sub-types. RefHTTP_PROXY
WebSocket API
- Integration types
AWSAWS_PROXYLambdaHTTP_PROXYHTTPMOCK
Usage plan
Set throttling limits and send a 429 Too many requests HTTP response to clients
Throttling rule evaluation sequence -
- Per client, per method limit set on a API stage
- Per client limit on the API
- Default per method limit or individual per method limit set on API stage
- Per region account level limit
Error Note API gateway does not support HTTP endpoints, it is HTTPS only. Use CloudFront to add
(http -> https)redirection.