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 |
Amazonka.RedshiftServerLess.CreateUsageLimit
Description
Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage limit is identified by the returned usage limit identifier.
Synopsis
- data CreateUsageLimit = CreateUsageLimit' {}
- newCreateUsageLimit :: Integer -> Text -> UsageLimitUsageType -> CreateUsageLimit
- createUsageLimit_breachAction :: Lens' CreateUsageLimit (Maybe UsageLimitBreachAction)
- createUsageLimit_period :: Lens' CreateUsageLimit (Maybe UsageLimitPeriod)
- createUsageLimit_amount :: Lens' CreateUsageLimit Integer
- createUsageLimit_resourceArn :: Lens' CreateUsageLimit Text
- createUsageLimit_usageType :: Lens' CreateUsageLimit UsageLimitUsageType
- data CreateUsageLimitResponse = CreateUsageLimitResponse' {}
- newCreateUsageLimitResponse :: Int -> CreateUsageLimitResponse
- createUsageLimitResponse_usageLimit :: Lens' CreateUsageLimitResponse (Maybe UsageLimit)
- createUsageLimitResponse_httpStatus :: Lens' CreateUsageLimitResponse Int
Creating a Request
data CreateUsageLimit Source #
See: newCreateUsageLimit
smart constructor.
Constructors
CreateUsageLimit' | |
Fields
|
Instances
Arguments
:: Integer | |
-> Text | |
-> UsageLimitUsageType | |
-> CreateUsageLimit |
Create a value of CreateUsageLimit
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:
CreateUsageLimit
, createUsageLimit_breachAction
- The action that Amazon Redshift Serverless takes when the limit is
reached. The default is log.
CreateUsageLimit
, createUsageLimit_period
- The time period that the amount applies to. A weekly period begins on
Sunday. The default is monthly.
CreateUsageLimit
, createUsageLimit_amount
- The 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.
CreateUsageLimit
, createUsageLimit_resourceArn
- The Amazon Resource Name (ARN) of the Amazon Redshift Serverless
resource to create the usage limit for.
CreateUsageLimit
, createUsageLimit_usageType
- The type of Amazon Redshift Serverless usage to create a usage limit
for.
Request Lenses
createUsageLimit_breachAction :: Lens' CreateUsageLimit (Maybe UsageLimitBreachAction) Source #
The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.
createUsageLimit_period :: Lens' CreateUsageLimit (Maybe UsageLimitPeriod) Source #
The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.
createUsageLimit_amount :: Lens' CreateUsageLimit Integer Source #
The 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.
createUsageLimit_resourceArn :: Lens' CreateUsageLimit Text Source #
The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.
createUsageLimit_usageType :: Lens' CreateUsageLimit UsageLimitUsageType Source #
The type of Amazon Redshift Serverless usage to create a usage limit for.
Destructuring the Response
data CreateUsageLimitResponse Source #
See: newCreateUsageLimitResponse
smart constructor.
Constructors
CreateUsageLimitResponse' | |
Fields
|
Instances
newCreateUsageLimitResponse Source #
Create a value of CreateUsageLimitResponse
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:CreateUsageLimitResponse'
, createUsageLimitResponse_usageLimit
- The returned usage limit object.
$sel:httpStatus:CreateUsageLimitResponse'
, createUsageLimitResponse_httpStatus
- The response's http status code.
Response Lenses
createUsageLimitResponse_usageLimit :: Lens' CreateUsageLimitResponse (Maybe UsageLimit) Source #
The returned usage limit object.
createUsageLimitResponse_httpStatus :: Lens' CreateUsageLimitResponse Int Source #
The response's http status code.