modify_usage_limit
async
¶
modify_usage_limit(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = None,
usage_limit_id: Optional[String] = None,
amount: Optional[LongOptional] = None,
breach_action: Optional[UsageLimitBreachAction] = None,
) -> UsageLimit
Modifies a usage limit in a cluster. You can't modify the feature type or period of a usage limit.
Parameters:
-
usage_limit_id(Optional[String], default:None) –The identifier of the usage limit to modify.
-
amount(Optional[LongOptional], default:None) –The new limit amount. For more information about this parameter, see UsageLimit.
-
breach_action(Optional[UsageLimitBreachAction], default:None) –The new action that Amazon Redshift takes when the limit is reached. For more information about this parameter, see UsageLimit.
Raises:
-
InvalidUsageLimitFault–The usage limit is not valid.
-
UnsupportedOperationFault–The requested operation isn't supported.
-
UsageLimitNotFoundFault–The usage limit identifier can't be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/async_redshift.py
10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 | |