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
10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 | |