Class: AWSCDK::OpenSearchService::CfnDomain::OffPeakWindowOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpenSearchService::CfnDomain::OffPeakWindowOptionsProperty
- Defined in:
- open_search_service/cfn_domain.rb
Overview
Off-peak window settings for the domain.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean, ...
readonly
Specifies whether off-peak window settings are enabled for the domain.
-
#off_peak_window ⇒ AWSCDK::IResolvable, ...
readonly
Off-peak window settings for the domain.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil, off_peak_window: nil) ⇒ OffPeakWindowOptionsProperty
constructor
A new instance of OffPeakWindowOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil, off_peak_window: nil) ⇒ OffPeakWindowOptionsProperty
Returns a new instance of OffPeakWindowOptionsProperty.
2147 2148 2149 2150 2151 2152 |
# File 'open_search_service/cfn_domain.rb', line 2147 def initialize(enabled: nil, off_peak_window: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? @off_peak_window = off_peak_window.is_a?(Hash) ? ::AWSCDK::OpenSearchService::CfnDomain::OffPeakWindowProperty.new(**off_peak_window.transform_keys(&:to_sym)) : off_peak_window Jsii::Type.check_type(@off_peak_window, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19vcGVuc2VhcmNoc2VydmljZS5DZm5Eb21haW4uT2ZmUGVha1dpbmRvd1Byb3BlcnR5In1dfX0=")), "offPeakWindow") unless @off_peak_window.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean, ... (readonly)
Specifies whether off-peak window settings are enabled for the domain.
2158 2159 2160 |
# File 'open_search_service/cfn_domain.rb', line 2158 def enabled @enabled end |
#off_peak_window ⇒ AWSCDK::IResolvable, ... (readonly)
Off-peak window settings for the domain.
2163 2164 2165 |
# File 'open_search_service/cfn_domain.rb', line 2163 def off_peak_window @off_peak_window end |
Class Method Details
.jsii_properties ⇒ Object
2165 2166 2167 2168 2169 2170 |
# File 'open_search_service/cfn_domain.rb', line 2165 def self.jsii_properties { :enabled => "enabled", :off_peak_window => "offPeakWindow", } end |
Instance Method Details
#to_jsii ⇒ Object
2172 2173 2174 2175 2176 2177 2178 2179 |
# File 'open_search_service/cfn_domain.rb', line 2172 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "offPeakWindow" => @off_peak_window, }) result.compact end |