Class: Aws::Budgets::Types::CreateNotificationRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Budgets::Types::CreateNotificationRequest
- Defined in:
- gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb
Overview
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
notification_state: "OK", # accepts OK, ALARM
},
subscribers: [ # required
{
subscription_type: "SNS", # required, accepts SNS, EMAIL
address: "SubscriberAddress", # required
},
],
}
Request of CreateNotification
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#account_id ⇒ String
The
accountId
that is associated with the budget that you want to create a notification for. -
#budget_name ⇒ String
The name of the budget that you want AWS to notify you about.
-
#notification ⇒ Types::Notification
The notification that you want to create.
-
#subscribers ⇒ Array<Types::Subscriber>
A list of subscribers that you want to associate with the notification.
Instance Attribute Details
#account_id ⇒ String
The accountId
that is associated with the budget that you want to
create a notification for.
823 824 825 826 827 828 829 830 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 823 class CreateNotificationRequest < Struct.new( :account_id, :budget_name, :notification, :subscribers) SENSITIVE = [] include Aws::Structure end |
#budget_name ⇒ String
The name of the budget that you want AWS to notify you about. Budget names must be unique within an account.
823 824 825 826 827 828 829 830 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 823 class CreateNotificationRequest < Struct.new( :account_id, :budget_name, :notification, :subscribers) SENSITIVE = [] include Aws::Structure end |
#notification ⇒ Types::Notification
The notification that you want to create.
823 824 825 826 827 828 829 830 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 823 class CreateNotificationRequest < Struct.new( :account_id, :budget_name, :notification, :subscribers) SENSITIVE = [] include Aws::Structure end |
#subscribers ⇒ Array<Types::Subscriber>
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.
823 824 825 826 827 828 829 830 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 823 class CreateNotificationRequest < Struct.new( :account_id, :budget_name, :notification, :subscribers) SENSITIVE = [] include Aws::Structure end |