| 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.Redshift.ModifyUsageLimit
Description
Modifies a usage limit in a cluster. You can't modify the feature type or period of a usage limit.
Synopsis
- data ModifyUsageLimit = ModifyUsageLimit' {}
- newModifyUsageLimit :: Text -> ModifyUsageLimit
- modifyUsageLimit_amount :: Lens' ModifyUsageLimit (Maybe Integer)
- modifyUsageLimit_breachAction :: Lens' ModifyUsageLimit (Maybe UsageLimitBreachAction)
- modifyUsageLimit_usageLimitId :: Lens' ModifyUsageLimit Text
- data UsageLimit = UsageLimit' {}
- newUsageLimit :: UsageLimit
- usageLimit_amount :: Lens' UsageLimit (Maybe Integer)
- usageLimit_breachAction :: Lens' UsageLimit (Maybe UsageLimitBreachAction)
- usageLimit_clusterIdentifier :: Lens' UsageLimit (Maybe Text)
- usageLimit_featureType :: Lens' UsageLimit (Maybe UsageLimitFeatureType)
- usageLimit_limitType :: Lens' UsageLimit (Maybe UsageLimitLimitType)
- usageLimit_period :: Lens' UsageLimit (Maybe UsageLimitPeriod)
- usageLimit_tags :: Lens' UsageLimit (Maybe [Tag])
- usageLimit_usageLimitId :: Lens' UsageLimit (Maybe Text)
Creating a Request
data ModifyUsageLimit Source #
See: newModifyUsageLimit smart constructor.
Constructors
| ModifyUsageLimit' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ModifyUsageLimit |
Create a value of ModifyUsageLimit 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:
ModifyUsageLimit, modifyUsageLimit_amount - The new limit amount. For more information about this parameter, see
UsageLimit.
ModifyUsageLimit, modifyUsageLimit_breachAction - The new action that Amazon Redshift takes when the limit is reached. For
more information about this parameter, see UsageLimit.
ModifyUsageLimit, modifyUsageLimit_usageLimitId - The identifier of the usage limit to modify.
Request Lenses
modifyUsageLimit_amount :: Lens' ModifyUsageLimit (Maybe Integer) Source #
The new limit amount. For more information about this parameter, see UsageLimit.
modifyUsageLimit_breachAction :: Lens' ModifyUsageLimit (Maybe UsageLimitBreachAction) Source #
The new action that Amazon Redshift takes when the limit is reached. For more information about this parameter, see UsageLimit.
modifyUsageLimit_usageLimitId :: Lens' ModifyUsageLimit Text Source #
The identifier of the usage limit to modify.
Destructuring the Response
data UsageLimit Source #
Describes a usage limit object for a cluster.
See: newUsageLimit smart constructor.
Constructors
| UsageLimit' | |
Fields
| |
Instances
newUsageLimit :: UsageLimit Source #
Create a value of UsageLimit 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:amount:UsageLimit', usageLimit_amount - The limit amount. If time-based, this amount is in minutes. If
data-based, this amount is in terabytes (TB).
$sel:breachAction:UsageLimit', usageLimit_breachAction - The action that Amazon Redshift takes when the limit is reached.
Possible values are:
- log - To log an event in a system table. The default is log.
- emit-metric - To emit CloudWatch metrics.
- disable - To disable the feature until the next usage period begins.
$sel:clusterIdentifier:UsageLimit', usageLimit_clusterIdentifier - The identifier of the cluster with a usage limit.
$sel:featureType:UsageLimit', usageLimit_featureType - The Amazon Redshift feature to which the limit applies.
$sel:limitType:UsageLimit', usageLimit_limitType - The type of limit. Depending on the feature type, this can be based on a
time duration or data size.
$sel:period:UsageLimit', usageLimit_period - The time period that the amount applies to. A weekly period begins on
Sunday. The default is monthly.
$sel:tags:UsageLimit', usageLimit_tags - A list of tag instances.
$sel:usageLimitId:UsageLimit', usageLimit_usageLimitId - The identifier of the usage limit.
Response Lenses
usageLimit_amount :: Lens' UsageLimit (Maybe Integer) Source #
The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB).
usageLimit_breachAction :: Lens' UsageLimit (Maybe UsageLimitBreachAction) Source #
The action that Amazon Redshift takes when the limit is reached. Possible values are:
- log - To log an event in a system table. The default is log.
- emit-metric - To emit CloudWatch metrics.
- disable - To disable the feature until the next usage period begins.
usageLimit_clusterIdentifier :: Lens' UsageLimit (Maybe Text) Source #
The identifier of the cluster with a usage limit.
usageLimit_featureType :: Lens' UsageLimit (Maybe UsageLimitFeatureType) Source #
The Amazon Redshift feature to which the limit applies.
usageLimit_limitType :: Lens' UsageLimit (Maybe UsageLimitLimitType) Source #
The type of limit. Depending on the feature type, this can be based on a time duration or data size.
usageLimit_period :: Lens' UsageLimit (Maybe UsageLimitPeriod) Source #
The time period that the amount applies to. A weekly period begins on
Sunday. The default is monthly.
usageLimit_tags :: Lens' UsageLimit (Maybe [Tag]) Source #
A list of tag instances.
usageLimit_usageLimitId :: Lens' UsageLimit (Maybe Text) Source #
The identifier of the usage limit.