create_notification
¶
create_notification(
account_id: AccountId,
budget_name: BudgetName,
notification: Notification,
subscribers: Subscribers,
*,
config_overrides: Optional[BudgetsClientConfig] = None,
) -> CreateNotificationResponse
Creates a notification. You must create the budget before you create the associated notification.
Parameters:
-
account_id(AccountId) –The
accountIdthat is associated with the budget that you want to create a notification for. -
budget_name(BudgetName) –The name of the budget that you want Amazon Web Services to notify you about. Budget names must be unique within an account.
-
notification(Notification) –The notification that you want to create.
-
subscribers(Subscribers) –A list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to 10 email subscribers.
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.