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

Class: Aws::Budgets::Types::CreateNotificationRequest

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 CreateNotificationRequest 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
  },
  subscribers: [ # required
    {
      subscription_type: "SNS", # required, accepts SNS, EMAIL
      address: "GenericString", # required
    },
  ],
}

Request of CreateNotification

Instance Attribute Summary collapse

Instance Attribute Details

#account_idString

Account Id of the customer. It should be a 12 digit number.

Returns:

  • (String)


273
274
275
276
277
278
279
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 273

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

#budget_nameString

A string represents the budget name. No ":" and "\" character is allowed.

Returns:

  • (String)


273
274
275
276
277
278
279
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 273

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

#notificationTypes::Notification

Notification model. Each budget may contain multiple notifications with different settings.

Returns:



273
274
275
276
277
278
279
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 273

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

#subscribersArray<Types::Subscriber>

A list of subscribers.

Returns:



273
274
275
276
277
278
279
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 273

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