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

Class: Aws::Budgets::Types::CalculatedSpend

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 CalculatedSpend data as a hash:

{
  actual_spend: { # required
    amount: "NumericValue", # required
    unit: "UnitValue", # required
  },
  forecasted_spend: {
    amount: "NumericValue", # required
    unit: "UnitValue", # required
  },
}

The spend objects that are associated with this budget. The actualSpend tracks how much you've used, cost, usage, or RI units, and the forecastedSpend tracks how much you are predicted to spend if your current usage remains steady.

For example, if it is the 20th of the month and you have spent 50 dollars on Amazon EC2, your actualSpend is 50 USD, and your forecastedSpend is 75 USD.

Instance Attribute Summary collapse

Instance Attribute Details

#actual_spendTypes::Spend

The amount of cost, usage, or RI units that you have used.

Returns:



298
299
300
301
302
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 298

class CalculatedSpend < Struct.new(
  :actual_spend,
  :forecasted_spend)
  include Aws::Structure
end

#forecasted_spendTypes::Spend

The amount of cost, usage, or RI units that you are forecasted to use.

Returns:



298
299
300
301
302
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 298

class CalculatedSpend < Struct.new(
  :actual_spend,
  :forecasted_spend)
  include Aws::Structure
end