How can I set expiration date for a usage plan after 1 month from the first use

0

I am currently facing an issue with AWS regarding my app's communication with Amazon AWS via API Gateway. Once I create, test, and deploy my APIs, I use API Gateway usage plans to offer them as products to my customers. However, I have two issues that I need help with:

  1. Currently, the plan quota resets on the 1st day of each month, but I need it to expire after 1 month from the first use by the customer.
  2. I am unable to find a way to display the remaining plan quota to the user on my app.

Any assistance with these issues would be greatly appreciated. Thank you.

I have tried researching extensively and exploring various AWS resources to find a solution to my issues, but I have not been able to find a clear solution. Any assistance or guidance on these matters would be greatly appreciated.

2 回答
2
已接受的回答
  1. There isn't a way to change when the usage plan quota resets. Monthly quotas only reset on the 1st of every month.
  2. There is a getUsage API that will return the usage data for each API key in a usage plan. You can use this to retrieve the remaining quota(s) and give the relevant data back to the user. https://docs.aws.amazon.com/apigateway/latest/api/API_GetUsage.html
AWS
已回答 1 年前
  • Thank you for the helpful response, I will try the GetUsage API to retrieve the remaining quota.

0

Najmuddin llc/media/postImages/original/IMm3y7lJseQfyJJky_YRzGvg)

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则