create_subscriber
async
¶
create_subscriber(
account_id: AccountId,
budget_name: BudgetName,
notification: Notification,
subscriber: Subscriber,
*,
config_overrides: Optional[AsyncBudgetsClientConfig] = None,
) -> CreateSubscriberResponse
Creates a subscriber. You must create the associated budget and notification before you create the subscriber.
Parameters:
-
account_id(AccountId) –The
accountIdthat is associated with the budget that you want to create a subscriber for. -
budget_name(BudgetName) –The name of the budget that you want to subscribe to. Budget names must be unique within an account.
-
notification(Notification) –The notification that you want to create a subscriber for.
-
subscriber(Subscriber) –The subscriber that you want to associate with a budget notification.
Raises:
-
AccessDeniedException–You are not authorized to use this operation with the given parameters.
-
CreationLimitExceededException–You've exceeded the notification or subscriber limit.
-
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.