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

Class: Aws::CostExplorer::Types::DateInterval

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb

Overview

Note:

When making an API call, you may pass DateInterval data as a hash:

{
  start: "YearMonthDay", # required
  end: "YearMonthDay", # required
}

The time period that you want the usage and costs for.

Instance Attribute Summary collapse

Instance Attribute Details

#endString

The end of the time period that you want the usage and costs for. The end date is exclusive. For example, if the end is 2017-05-01, then the cost and usage data is retrieved from the start date but not including 2017-05-01.

Returns:

  • (String)


37
38
39
40
41
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 37

class DateInterval < Struct.new(
  :start,
  :end)
  include Aws::Structure
end

#startString

The beginning of the time period that you want the usage and costs for. The start date is inclusive. For example, if start is 2017-01-01, then the cost and usage data is retrieved starting at 2017-01-01 up to the end date.

Returns:

  • (String)


37
38
39
40
41
# File 'gems/aws-sdk-costexplorer/lib/aws-sdk-costexplorer/types.rb', line 37

class DateInterval < Struct.new(
  :start,
  :end)
  include Aws::Structure
end