Articles → AWS → API Keys And Usage Plans In AWS API Gateway

API Keys And Usage Plans In AWS API Gateway






What Is An API Key?





How To Create API Keys?




Picture showing the API Keys menu option in API gateway




Picture showing the Create API Key for creating the new API Key




Picture showing the Create API key screen for creating the new API key




Picture showing the API key created in AWS console



What Is The Usage Plan?





Create A Usage Plan




Picture showing the Usage plan menu in API gateway




Picture showing the Create usage plan button for creating the new usage plan




Picture showing the Create usage plan screen for creating the new usage plan




Picture showing the usage plan created in AWS console



Terms Used In Usage Plan


TermsDescription
ThrottleThrottling controls the rate at which users can call your API, helping to manage traffic and protect backend services
RateSpecifies the number of requests per second (RPS) an API can handle. Once the threshold is reached, further requests are delayed or rejected until the rate drops below the limit
BurstSpecifies the maximum number of requests that can be made quickly (like within a few seconds) without throttling, even if it temporarily exceeds the normal request rate limit
QuotaSpecifies the maximum number of requests a user can take per month. Once the limit is reached, the user cannot make any additional request.



Associate API Key With Usage Plan




Picture showing the Associate API Key tab for associating key and usage plan




Picture showing a screen to add the key to the usage plan




Picture showing the API key is added to usage plan



How To Configure API Key?




Picture showing the method request  in API gateway




Picture showing the Edit method request screen




x-api-key: [Your_API_Key_Here]



Can We Have Two API Keys In Single Usage Plan?





Can We Use Same API Key With Multiple Usage Plan?





Posted By  -  Karan Gupta
 
Posted On  -  Saturday, November 16, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250