update_subscriber
async
¶
update_subscriber(
account_id: AccountId,
budget_name: BudgetName,
notification: Notification,
old_subscriber: Subscriber,
new_subscriber: Subscriber,
*,
config_overrides: Optional[AsyncBudgetsClientConfig] = None,
) -> UpdateSubscriberResponse
Updates a subscriber.
Parameters:
-
account_id(AccountId) –The
accountIdthat is associated with the budget whose subscriber you want to update. -
budget_name(BudgetName) –The name of the budget whose subscriber you want to update.
-
notification(Notification) –The notification whose subscriber you want to update.
-
old_subscriber(Subscriber) –The previous subscriber that is associated with a budget notification.
-
new_subscriber(Subscriber) –The updated subscriber that is associated with a budget notification.
Raises:
-
AccessDeniedException–You are not authorized to use this operation with the given parameters.
-
DuplicateRecordException–The budget name already exists. Budget names must be unique within an account.
-
InternalErrorException–An error on the server occurred during the processing of your request. Try again later.
-
InvalidParameterException–An error on the client occurred. Typically, the cause is an invalid input value.
-
NotFoundException–We can’t locate the resource that you specified.
-
ThrottlingException–The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_budgets/_services/async_budgets.py
2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 | |