@Stability(value=Stable)
public static interface CfnUsagePlan.QuotaSettingsProperty
extends software.amazon.jsii.JsiiSerializable
In some cases clients can exceed the targets that you set. Don’t rely on usage plans to control costs. Consider using AWS Budgets to monitor costs and AWS WAF to manage API requests.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;
QuotaSettingsProperty quotaSettingsProperty = QuotaSettingsProperty.builder()
.limit(123)
.offset(123)
.period("period")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnUsagePlan.QuotaSettingsProperty.Builder
A builder for
CfnUsagePlan.QuotaSettingsProperty |
static class |
CfnUsagePlan.QuotaSettingsProperty.Jsii$Proxy
An implementation for
CfnUsagePlan.QuotaSettingsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnUsagePlan.QuotaSettingsProperty.Builder |
builder() |
default Number |
getLimit()
The target maximum number of requests that can be made in a given time period.
|
default Number |
getOffset()
The day that a time period starts.
|
default String |
getPeriod()
The time period for which the target maximum limit of requests applies, such as `DAY` or `WEEK` .
|
@Stability(value=Stable) @Nullable default Number getLimit()
@Stability(value=Stable) @Nullable default Number getOffset()
For example, with a time period of WEEK , an offset of 0 starts on Sunday, and an offset of 1 starts on Monday.
@Stability(value=Stable) @Nullable default String getPeriod()
For valid values, see the period property for the UsagePlan resource in the Amazon API Gateway REST API Reference .
@Stability(value=Stable) static CfnUsagePlan.QuotaSettingsProperty.Builder builder()
Copyright © 2022. All rights reserved.