libZSservicesZSamazonka-apigatewayZSamazonka-apigateway
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.APIGateway.Types.QuotaSettings

Description

 
Synopsis

Documentation

data QuotaSettings Source #

Quotas configured for a usage plan.

See: newQuotaSettings smart constructor.

Constructors

QuotaSettings' 

Fields

  • offset :: Maybe Int

    The day that a time period starts. For example, with a time period of WEEK, an offset of 0 starts on Sunday, and an offset of 1 starts on Monday.

  • period :: Maybe QuotaPeriodType

    The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".

  • limit :: Maybe Int

    The maximum number of requests that can be made in a given time period.

Instances

Instances details
Eq QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Read QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Show QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Generic QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Associated Types

type Rep QuotaSettings :: Type -> Type #

NFData QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

Methods

rnf :: QuotaSettings -> () #

Hashable QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

ToJSON QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

FromJSON QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

type Rep QuotaSettings Source # 
Instance details

Defined in Amazonka.APIGateway.Types.QuotaSettings

type Rep QuotaSettings = D1 ('MetaData "QuotaSettings" "Amazonka.APIGateway.Types.QuotaSettings" "libZSservicesZSamazonka-apigatewayZSamazonka-apigateway" 'False) (C1 ('MetaCons "QuotaSettings'" 'PrefixI 'True) (S1 ('MetaSel ('Just "offset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "period") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QuotaPeriodType)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))

newQuotaSettings :: QuotaSettings Source #

Create a value of QuotaSettings with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:offset:QuotaSettings', quotaSettings_offset - The day that a time period starts. For example, with a time period of WEEK, an offset of 0 starts on Sunday, and an offset of 1 starts on Monday.

$sel:period:QuotaSettings', quotaSettings_period - The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".

$sel:limit:QuotaSettings', quotaSettings_limit - The maximum number of requests that can be made in a given time period.

quotaSettings_offset :: Lens' QuotaSettings (Maybe Int) Source #

The day that a time period starts. For example, with a time period of WEEK, an offset of 0 starts on Sunday, and an offset of 1 starts on Monday.

quotaSettings_period :: Lens' QuotaSettings (Maybe QuotaPeriodType) Source #

The time period in which the limit applies. Valid values are "DAY", "WEEK" or "MONTH".

quotaSettings_limit :: Lens' QuotaSettings (Maybe Int) Source #

The maximum number of requests that can be made in a given time period.