Class: AWSCDK::OpenSearchService::CfnDomain::WindowStartTimeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpenSearchService::CfnDomain::WindowStartTimeProperty
- Defined in:
- open_search_service/cfn_domain.rb
Overview
A custom start time for the off-peak window, in Coordinated Universal Time (UTC).
The window length will always be 10 hours, so you can't specify an end time. For example, if you specify 11:00 P.M. UTC as a start time, the end time will automatically be set to 9:00 A.M.
Instance Attribute Summary collapse
-
#hours ⇒ Numeric
readonly
The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time.
-
#minutes ⇒ Numeric
readonly
The start minute of the window, in UTC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hours:, minutes:) ⇒ WindowStartTimeProperty
constructor
A new instance of WindowStartTimeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(hours:, minutes:) ⇒ WindowStartTimeProperty
Returns a new instance of WindowStartTimeProperty.
2636 2637 2638 2639 2640 2641 |
# File 'open_search_service/cfn_domain.rb', line 2636 def initialize(hours:, minutes:) @hours = hours Jsii::Type.check_type(@hours, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "hours") @minutes = minutes Jsii::Type.check_type(@minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minutes") end |
Instance Attribute Details
#hours ⇒ Numeric (readonly)
The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time.
For example, 17 refers to 5:00 P.M. UTC. The minimum value is 0 and the maximum value is 23.
2649 2650 2651 |
# File 'open_search_service/cfn_domain.rb', line 2649 def hours @hours end |
#minutes ⇒ Numeric (readonly)
The start minute of the window, in UTC.
The minimum value is 0 and the maximum value is 59.
2656 2657 2658 |
# File 'open_search_service/cfn_domain.rb', line 2656 def minutes @minutes end |
Class Method Details
.jsii_properties ⇒ Object
2658 2659 2660 2661 2662 2663 |
# File 'open_search_service/cfn_domain.rb', line 2658 def self.jsii_properties { :hours => "hours", :minutes => "minutes", } end |
Instance Method Details
#to_jsii ⇒ Object
2665 2666 2667 2668 2669 2670 2671 2672 |
# File 'open_search_service/cfn_domain.rb', line 2665 def to_jsii result = {} result.merge!({ "hours" => @hours, "minutes" => @minutes, }) result.compact end |