Values.UsagePlanSourceRepresents a usage plan used to specify who can assess associated API stages. Optionally, target request rate and quota limits can be set. In some cases clients can exceed the targets that you set. Donโt rely on usage plans to control costs. Consider using Amazon Web Services Budgets to monitor costs and WAF to manage API requests.
type nonrec t = {id : String_.t option;The identifier of a UsagePlan resource.
*)name : String_.t option;The name of a usage plan.
*)description : String_.t option;The description of a usage plan.
*)apiStages : ListOfApiStage.t option;The associated API stages of a usage plan.
*)throttle : ThrottleSettings.t option;A map containing method level throttling information for API stage in a usage plan.
*)quota : QuotaSettings.t option;The target maximum number of permitted requests per a given unit time interval.
*)productCode : String_.t option;The Amazon Web Services Marketplace product identifier to associate with the usage plan as a SaaS product on the Amazon Web Services Marketplace.
*)}type nonrec error = [ | `BadRequestException of BadRequestException.t| `ConflictException of ConflictException.t| `LimitExceededException of LimitExceededException.t| `NotFoundException of NotFoundException.t| `TooManyRequestsException of TooManyRequestsException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `BadRequestException of BadRequestException.t
| `ConflictException of ConflictException.t
| `LimitExceededException of LimitExceededException.t
| `NotFoundException of NotFoundException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `UnauthorizedException of UnauthorizedException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `BadRequestException of BadRequestException.t
| `ConflictException of ConflictException.t
| `LimitExceededException of LimitExceededException.t
| `NotFoundException of NotFoundException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `UnauthorizedException of UnauthorizedException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Map of
([> `String of String_.t ]
* [> `Structure of
(string
* [> `Double of Double.t
| `Integer of Integer.t ])
list ])
list
| `String of String_.t ])
list ]
list
| `Map of
([> `String of String_.t ] * [> `String of String_.t ]) list
| `String of String_.t
| `Structure of
(string
* [> `Double of Double.t
| `Enum of string
| `Integer of Integer.t ])
list ])
list ]