UpdateUsage
Source:
src/AWS/ApiGateway/UpdateUsage.ts
Runtime binding for granting a temporary quota extension to an API key
on a UsagePlan (apigateway:PATCH on
/usageplans/{id}/keys/{keyId}/usage).
Provide ApiGateway.UpdateUsageHttp on the Function effect to implement
the binding.
Metering usage
Section titled “Metering usage”// initconst updateUsage = yield* ApiGateway.UpdateUsage(plan);
// runtimeyield* updateUsage({ keyId, patchOperations: [ { op: "replace", path: "/remaining", value: "500" }, ],});