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
    threshold_type: "PERCENTAGE", # accepts PERCENTAGE, ABSOLUTE_VALUE
  },
  subscribers: [ # required
    {
      subscription_type: "SNS", # required, accepts SNS, EMAIL
      address: "SubscriberAddress", # required
    },
  ],
}

Request of CreateNotification

Instance Attribute Summary collapse

Instance Attribute Details

#account_idString

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

Returns:

  • (String)


401
402
403
404
405
406
407
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 401

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

#budget_nameString

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

Returns:

  • (String)


401
402
403
404
405
406
407
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 401

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

#notificationTypes::Notification

The notification that you want to create.

Returns:



401
402
403
404
405
406
407
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 401

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

#subscribersArray<Types::Subscriber>

A list of subscribers that you want to associate with the notification. Each notification can have one SNS subscriber and up to ten email subscribers.

Returns:



401
402
403
404
405
406
407
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 401

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