Skip to content

Create Subscriber

budgets_create_subscriber R Documentation

Creates a subscriber

Description

Creates a subscriber. You must create the associated budget and notification before you create the subscriber.

Usage

budgets_create_subscriber(AccountId, BudgetName, Notification,
  Subscriber)

Arguments

AccountId

[required] The accountId that is associated with the budget that you want to create a subscriber for.

BudgetName

[required] The name of the budget that you want to subscribe to. Budget names must be unique within an account.

Notification

[required] The notification that you want to create a subscriber for.

Subscriber

[required] The subscriber that you want to associate with a budget notification.

Value

An empty list.

Request syntax

svc$create_subscriber(
  AccountId = "string",
  BudgetName = "string",
  Notification = list(
    NotificationType = "ACTUAL"|"FORECASTED",
    ComparisonOperator = "GREATER_THAN"|"LESS_THAN"|"EQUAL_TO",
    Threshold = 123.0,
    ThresholdType = "PERCENTAGE"|"ABSOLUTE_VALUE",
    NotificationState = "OK"|"ALARM"
  ),
  Subscriber = list(
    SubscriptionType = "SNS"|"EMAIL",
    Address = "string"
  )
)