Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Update a usage limit in Amazon Redshift Serverless. You can't update the usage type or period of a usage limit.
Synopsis
- data UpdateUsageLimit = UpdateUsageLimit' {}
- newUpdateUsageLimit :: Text -> UpdateUsageLimit
- updateUsageLimit_amount :: Lens' UpdateUsageLimit (Maybe Integer)
- updateUsageLimit_breachAction :: Lens' UpdateUsageLimit (Maybe UsageLimitBreachAction)
- updateUsageLimit_usageLimitId :: Lens' UpdateUsageLimit Text
- data UpdateUsageLimitResponse = UpdateUsageLimitResponse' {}
- newUpdateUsageLimitResponse :: Int -> UpdateUsageLimitResponse
- updateUsageLimitResponse_usageLimit :: Lens' UpdateUsageLimitResponse (Maybe UsageLimit)
- updateUsageLimitResponse_httpStatus :: Lens' UpdateUsageLimitResponse Int
Creating a Request
data UpdateUsageLimit Source #
See: newUpdateUsageLimit
smart constructor.
UpdateUsageLimit' | |
|
Instances
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.
UpdateUsageLimitResponse' | |
|
Instances
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
updateUsageLimitResponse_usageLimit :: Lens' UpdateUsageLimitResponse (Maybe UsageLimit) Source #
The updated usage limit object.
updateUsageLimitResponse_httpStatus :: Lens' UpdateUsageLimitResponse Int Source #
The response's http status code.