Creates a usage limit for a specified Amazon Redshift feature on a cluster¶
Description¶
Creates a usage limit for a specified Amazon Redshift feature on a cluster. The usage limit is identified by the returned usage limit identifier.
Usage¶
redshift_create_usage_limit(ClusterIdentifier, FeatureType, LimitType,
Amount, Period, BreachAction, Tags)
Arguments¶
-
ClusterIdentifier[required] The identifier of the cluster that you want to limit usage.
-
FeatureType[required] The Amazon Redshift feature that you want to limit.
-
LimitType[required] The type of limit. Depending on the feature type, this can be based on a time duration or data size. If
FeatureTypeisspectrum, thenLimitTypemust bedata-scanned. IfFeatureTypeisconcurrency-scaling, thenLimitTypemust betime. IfFeatureTypeiscross-region-datasharing, thenLimitTypemust bedata-scanned. IfFeatureTypeisextra-compute-for-automatic-optimization, thenLimitTypemust betime. -
Amount[required] The limit amount. If time-based, this amount is in minutes. If data-based, this amount is in terabytes (TB). The value must be a positive number.
-
PeriodThe time period that the amount applies to. A
weeklyperiod begins on Sunday. The default ismonthly. -
BreachActionThe action that Amazon Redshift takes when the limit is reached. The default is log. For more information about this parameter, see UsageLimit.
-
TagsA list of tag instances.
Value¶
A list with the following syntax:
list(
UsageLimitId = "string",
ClusterIdentifier = "string",
FeatureType = "spectrum"|"concurrency-scaling"|"cross-region-datasharing"|"extra-compute-for-automatic-optimization",
LimitType = "time"|"data-scanned",
Amount = 123,
Period = "daily"|"weekly"|"monthly",
BreachAction = "log"|"emit-metric"|"disable",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)
Request syntax¶
svc$create_usage_limit(
ClusterIdentifier = "string",
FeatureType = "spectrum"|"concurrency-scaling"|"cross-region-datasharing"|"extra-compute-for-automatic-optimization",
LimitType = "time"|"data-scanned",
Amount = 123,
Period = "daily"|"weekly"|"monthly",
BreachAction = "log"|"emit-metric"|"disable",
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)