amazonka-redshift-serverless-2.0: Amazon Redshift Serverless SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RedshiftServerLess.UpdateUsageLimit

Description

Update a usage limit in Amazon Redshift Serverless. You can't update the usage type or period of a usage limit.

Synopsis

Creating a Request

data UpdateUsageLimit Source #

See: newUpdateUsageLimit smart constructor.

Constructors

UpdateUsageLimit' 

Fields

  • amount :: Maybe Integer

    The new limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

  • breachAction :: Maybe UsageLimitBreachAction

    The new action that Amazon Redshift Serverless takes when the limit is reached.

  • usageLimitId :: Text

    The identifier of the usage limit to update.

Instances

Instances details
ToJSON UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

ToHeaders UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

ToPath UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

ToQuery UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

AWSRequest UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

Associated Types

type AWSResponse UpdateUsageLimit #

Generic UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

Associated Types

type Rep UpdateUsageLimit :: Type -> Type #

Read UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

Show UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

NFData UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

Methods

rnf :: UpdateUsageLimit -> () #

Eq UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

Hashable UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

type AWSResponse UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

type Rep UpdateUsageLimit Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

type Rep UpdateUsageLimit = D1 ('MetaData "UpdateUsageLimit" "Amazonka.RedshiftServerLess.UpdateUsageLimit" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "UpdateUsageLimit'" 'PrefixI 'True) (S1 ('MetaSel ('Just "amount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "breachAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageLimitBreachAction)) :*: S1 ('MetaSel ('Just "usageLimitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newUpdateUsageLimit Source #

Create a value of UpdateUsageLimit 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:

UpdateUsageLimit, updateUsageLimit_amount - The new limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

UpdateUsageLimit, updateUsageLimit_breachAction - The new action that Amazon Redshift Serverless takes when the limit is reached.

UpdateUsageLimit, updateUsageLimit_usageLimitId - The identifier of the usage limit to update.

Request Lenses

updateUsageLimit_amount :: Lens' UpdateUsageLimit (Maybe Integer) Source #

The new limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

updateUsageLimit_breachAction :: Lens' UpdateUsageLimit (Maybe UsageLimitBreachAction) Source #

The new action that Amazon Redshift Serverless takes when the limit is reached.

updateUsageLimit_usageLimitId :: Lens' UpdateUsageLimit Text Source #

The identifier of the usage limit to update.

Destructuring the Response

data UpdateUsageLimitResponse Source #

See: newUpdateUsageLimitResponse smart constructor.

Constructors

UpdateUsageLimitResponse' 

Fields

Instances

Instances details
Generic UpdateUsageLimitResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

Associated Types

type Rep UpdateUsageLimitResponse :: Type -> Type #

Read UpdateUsageLimitResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

Show UpdateUsageLimitResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

NFData UpdateUsageLimitResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

Eq UpdateUsageLimitResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

type Rep UpdateUsageLimitResponse Source # 
Instance details

Defined in Amazonka.RedshiftServerLess.UpdateUsageLimit

type Rep UpdateUsageLimitResponse = D1 ('MetaData "UpdateUsageLimitResponse" "Amazonka.RedshiftServerLess.UpdateUsageLimit" "amazonka-redshift-serverless-2.0-ApuSN33KEWs53jvwyBa3sl" 'False) (C1 ('MetaCons "UpdateUsageLimitResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "usageLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UsageLimit)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateUsageLimitResponse Source #

Create a value of UpdateUsageLimitResponse 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:usageLimit:UpdateUsageLimitResponse', updateUsageLimitResponse_usageLimit - The updated usage limit object.

$sel:httpStatus:UpdateUsageLimitResponse', updateUsageLimitResponse_httpStatus - The response's http status code.

Response Lenses