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

Class: Aws::Budgets::Types::Spend

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

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

A structure that represents either a cost spend or usage spend. Contains an amount and a unit.

Instance Attribute Summary collapse

Instance Attribute Details

#amountString

A string to represent NumericValue.

Returns:

  • (String)


808
809
810
811
812
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 808

class Spend < Struct.new(
  :amount,
  :unit)
  include Aws::Structure
end

#unitString

A string to represent budget spend unit. It should be not null and not empty.

Returns:

  • (String)


808
809
810
811
812
# File 'gems/aws-sdk-budgets/lib/aws-sdk-budgets/types.rb', line 808

class Spend < Struct.new(
  :amount,
  :unit)
  include Aws::Structure
end