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
답변함 일 년 전
  • 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)

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠