Table of Contents

Interface IQuotaSettings

Namespace
Amazon.CDK.AWS.APIGateway
Assembly
Amazon.CDK.AWS.APIGateway.dll

Specifies the maximum number of requests that clients can make to API Gateway APIs.

public interface IQuotaSettings

Examples

RestApi api;


            var key = new RateLimitedApiKey(this, "rate-limited-api-key", new RateLimitedApiKeyProps {
                CustomerId = "hello-customer",
                Resources = new [] { api },
                Quota = new QuotaSettings {
                    Limit = 10000,
                    Period = Period.MONTH
                }
            });

Remarks

ExampleMetadata: infused

Properties

Limit

The maximum number of requests that users can make within the specified time period.

double? Limit { get; }

Property Value

double?

Remarks

Default: none

Offset

For the initial time period, the number of requests to subtract from the specified limit.

double? Offset { get; }

Property Value

double?

Remarks

Default: none

Period

The time period for which the maximum limit of requests applies.

Period? Period { get; }

Property Value

Period?

Remarks

Default: none