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 the format 2016-12-16T13:50Z.

Returns:

  • (Time)


537
538
539
540
541
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 537

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

#to_exclusiveTime

The end time, in the format 2016-12-16T15:50Z.

Returns:

  • (Time)


537
538
539
540
541
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 537

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