Class: Aws::Budgets::Types::CreateBudgetRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Budgets::Types::CreateBudgetRequest
- Defined in:
- gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb
Overview
Note:
When making an API call, you may pass CreateBudgetRequest data as a hash:
{
account_id: "AccountId", # required
budget: { # required
budget_name: "BudgetName", # required
budget_limit: {
amount: "NumericValue", # required
unit: "UnitValue", # required
},
planned_budget_limits: {
"GenericString" => {
amount: "NumericValue", # required
unit: "UnitValue", # required
},
},
cost_filters: {
"GenericString" => ["GenericString"],
},
cost_types: {
include_tax: false,
include_subscription: false,
use_blended: false,
include_refund: false,
include_credit: false,
include_upfront: false,
include_recurring: false,
include_other_subscription: false,
include_support: false,
include_discount: false,
use_amortized: false,
},
time_unit: "DAILY", # required, accepts DAILY, MONTHLY, QUARTERLY, ANNUALLY
time_period: {
start: Time.now,
end: Time.now,
},
calculated_spend: {
actual_spend: { # required
amount: "NumericValue", # required
unit: "UnitValue", # required
},
forecasted_spend: {
amount: "NumericValue", # required
unit: "UnitValue", # required
},
},
budget_type: "USAGE", # required, accepts USAGE, COST, RI_UTILIZATION, RI_COVERAGE, SAVINGS_PLANS_UTILIZATION, SAVINGS_PLANS_COVERAGE
last_updated_time: Time.now,
},
notifications_with_subscribers: [
{
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 CreateBudget
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#account_id ⇒ String
The
accountId
that is associated with the budget. -
#budget ⇒ Types::Budget
The budget object that you want to create.
-
#notifications_with_subscribers ⇒ Array<Types::NotificationWithSubscribers>
A notification that you want to associate with a budget.
Instance Attribute Details
#account_id ⇒ String
The accountId
that is associated with the budget.
768 769 770 771 772 773 774 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 768 class CreateBudgetRequest < Struct.new( :account_id, :budget, :notifications_with_subscribers) SENSITIVE = [] include Aws::Structure end |
#budget ⇒ Types::Budget
The budget object that you want to create.
768 769 770 771 772 773 774 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 768 class CreateBudgetRequest < Struct.new( :account_id, :budget, :notifications_with_subscribers) SENSITIVE = [] include Aws::Structure end |
#notifications_with_subscribers ⇒ Array<Types::NotificationWithSubscribers>
A notification that you want to associate with a budget. A budget
can have up to five notifications, and each notification can have
one SNS subscriber and up to 10 email subscribers. If you include
notifications and subscribers in your CreateBudget
call, AWS
creates the notifications and subscribers for you.
768 769 770 771 772 773 774 |
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 768 class CreateBudgetRequest < Struct.new( :account_id, :budget, :notifications_with_subscribers) SENSITIVE = [] include Aws::Structure end |