我可以将 API 资源限制为我想要的数量吗?
Cound I limit an API resource to the count that I want?
我使用 AWS API 网关已有几个月了。我现在只需要一个功能。 我必须将 API 资源限制为我想要的数量。 是否有可能做到这一点?当用户达到特定计数时,我需要对其进行限制。
Api 网关有一个称为使用计划的功能,用于限制一段时间内的请求数量,也用于出于经济原因限制 API 的使用。根据文档:
After you create, test, and deploy your APIs, you can use API Gateway usage plans to make them available as product offerings for your customers. You can configure usage plans and API keys to allow customers to access selected APIs at agreed-upon request rates and quotas that meet their business requirements and budget constraints. If desired, you can set default method-level throttling limits for an API or set throttling limits for individual API methods.
更多信息:
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html
我使用 AWS API 网关已有几个月了。我现在只需要一个功能。 我必须将 API 资源限制为我想要的数量。 是否有可能做到这一点?当用户达到特定计数时,我需要对其进行限制。
Api 网关有一个称为使用计划的功能,用于限制一段时间内的请求数量,也用于出于经济原因限制 API 的使用。根据文档:
After you create, test, and deploy your APIs, you can use API Gateway usage plans to make them available as product offerings for your customers. You can configure usage plans and API keys to allow customers to access selected APIs at agreed-upon request rates and quotas that meet their business requirements and budget constraints. If desired, you can set default method-level throttling limits for an API or set throttling limits for individual API methods.
更多信息: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html