You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Budgets::Types::CreateSubscriberRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb

Overview

Note:

When making an API call, you may pass CreateSubscriberRequest data as a hash:

{
  account_id: "AccountId", # required
  budget_name: "BudgetName", # required
  notification: { # required
    notification_type: "ACTUAL", # required, accepts ACTUAL, FORECASTED
    comparison_operator: "GREATER_THAN", # required, accepts GREATER_THAN, LESS_THAN, EQUAL_TO
    threshold: 1.0, # required
    threshold_type: "PERCENTAGE", # accepts PERCENTAGE, ABSOLUTE_VALUE
    notification_state: "OK", # accepts OK, ALARM
  },
  subscriber: { # required
    subscription_type: "SNS", # required, accepts SNS, EMAIL
    address: "SubscriberAddress", # required
  },
}

Request of CreateSubscriber

Instance Attribute Summary collapse

Instance Attribute Details

#account_idString

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

Returns:

  • (String)


603
604
605
606
607
608
609
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 603

class CreateSubscriberRequest < Struct.new(
  :account_id,
  :budget_name,
  :notification,
  :subscriber)
  include Aws::Structure
end

#budget_nameString

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

Returns:

  • (String)


603
604
605
606
607
608
609
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 603

class CreateSubscriberRequest < Struct.new(
  :account_id,
  :budget_name,
  :notification,
  :subscriber)
  include Aws::Structure
end

#notificationTypes::Notification

The notification that you want to create a subscriber for.

Returns:



603
604
605
606
607
608
609
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 603

class CreateSubscriberRequest < Struct.new(
  :account_id,
  :budget_name,
  :notification,
  :subscriber)
  include Aws::Structure
end

#subscriberTypes::Subscriber

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

Returns:



603
604
605
606
607
608
609
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 603

class CreateSubscriberRequest < Struct.new(
  :account_id,
  :budget_name,
  :notification,
  :subscriber)
  include Aws::Structure
end