Class: AWSCDK::OpenSearchService::CfnDomain::OffPeakWindowOptionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
open_search_service/cfn_domain.rb

Overview

Off-peak window settings for the domain.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil, off_peak_window: nil) ⇒ OffPeakWindowOptionsProperty

Returns a new instance of OffPeakWindowOptionsProperty.

Parameters:



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

#enabledBoolean, ... (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_windowAWSCDK::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_propertiesObject



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_jsiiObject



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