update_spending_limit
¶
update_spending_limit(
spending_limit_arn: SpendingLimitArn,
client_token: String64,
*,
config_overrides: Optional[BraketClientConfig] = None,
spending_limit: Optional[str] = None,
time_period: Optional[TimePeriod] = None,
) -> UpdateSpendingLimitResponse
Updates an existing spending limit. You can modify the spending amount or time period. Changes take effect immediately.
Parameters:
-
spending_limit_arn(SpendingLimitArn) –The Amazon Resource Name (ARN) of the spending limit to update.
-
client_token(String64) –A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Braket ignores the request, but does not return an error.
-
spending_limit(Optional[str], default:None) –The new maximum amount that can be spent on the specified device, in USD.
-
time_period(Optional[TimePeriod], default:None) –The new time period during which the spending limit is active, including start and end dates.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–The request failed because of an unknown error.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The API throttling rate limit is exceeded.
-
ValidationException–The input request failed to satisfy constraints expected by Amazon Braket.
-
UnknownServiceError–The service returned an error code this client does not model.