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

Class: Aws::Shield::Types::TimeRange

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

Overview

Note:

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

{
  from_inclusive: Time.now,
  to_exclusive: Time.now,
}

The time range.

Instance Attribute Summary collapse

Instance Attribute Details

#from_inclusiveTime

The start time, in Unix time in seconds. For more information see timestamp.

Returns:

  • (Time)


714
715
716
717
718
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 714

class TimeRange < Struct.new(
  :from_inclusive,
  :to_exclusive)
  include Aws::Structure
end

#to_exclusiveTime

The end time, in Unix time in seconds. For more information see timestamp.

Returns:

  • (Time)


714
715
716
717
718
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 714

class TimeRange < Struct.new(
  :from_inclusive,
  :to_exclusive)
  include Aws::Structure
end