Class: AWSCDK::ODB::CfnCloudExadataInfrastructure::MaintenanceWindowProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
odb/cfn_cloud_exadata_infrastructure.rb

Overview

The scheduling details for the maintenance window.

Patching and system updates take place during the maintenance window.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(custom_action_timeout_in_mins: nil, days_of_week: nil, hours_of_day: nil, is_custom_action_timeout_enabled: nil, lead_time_in_weeks: nil, months: nil, patching_mode: nil, preference: nil, weeks_of_month: nil) ⇒ MaintenanceWindowProperty

Returns a new instance of MaintenanceWindowProperty.

Parameters:

  • custom_action_timeout_in_mins (Numeric, nil) (defaults to: nil)

    The custom action timeout in minutes for the maintenance window.

  • days_of_week (Array<String>, nil) (defaults to: nil)

    The days of the week when maintenance can be performed.

  • hours_of_day (Array<Numeric>, AWSCDK::IResolvable, nil) (defaults to: nil)

    The hours of the day when maintenance can be performed.

  • is_custom_action_timeout_enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether custom action timeout is enabled for the maintenance window.

  • lead_time_in_weeks (Numeric, nil) (defaults to: nil)

    The lead time in weeks before the maintenance window.

  • months (Array<String>, nil) (defaults to: nil)

    The months when maintenance can be performed.

  • patching_mode (String, nil) (defaults to: nil)

    The patching mode for the maintenance window.

  • preference (String, nil) (defaults to: nil)

    The preference for the maintenance window scheduling.

  • weeks_of_month (Array<Numeric>, AWSCDK::IResolvable, nil) (defaults to: nil)

    The weeks of the month when maintenance can be performed.



855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 855

def initialize(custom_action_timeout_in_mins: nil, days_of_week: nil, hours_of_day: nil, is_custom_action_timeout_enabled: nil, lead_time_in_weeks: nil, months: nil, patching_mode: nil, preference: nil, weeks_of_month: nil)
  @custom_action_timeout_in_mins = custom_action_timeout_in_mins
  Jsii::Type.check_type(@custom_action_timeout_in_mins, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "customActionTimeoutInMins") unless @custom_action_timeout_in_mins.nil?
  @days_of_week = days_of_week
  Jsii::Type.check_type(@days_of_week, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "daysOfWeek") unless @days_of_week.nil?
  @hours_of_day = hours_of_day
  Jsii::Type.check_type(@hours_of_day, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "hoursOfDay") unless @hours_of_day.nil?
  @is_custom_action_timeout_enabled = is_custom_action_timeout_enabled
  Jsii::Type.check_type(@is_custom_action_timeout_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isCustomActionTimeoutEnabled") unless @is_custom_action_timeout_enabled.nil?
  @lead_time_in_weeks = lead_time_in_weeks
  Jsii::Type.check_type(@lead_time_in_weeks, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "leadTimeInWeeks") unless @lead_time_in_weeks.nil?
  @months = months
  Jsii::Type.check_type(@months, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "months") unless @months.nil?
  @patching_mode = patching_mode
  Jsii::Type.check_type(@patching_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "patchingMode") unless @patching_mode.nil?
  @preference = preference
  Jsii::Type.check_type(@preference, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "preference") unless @preference.nil?
  @weeks_of_month = weeks_of_month
  Jsii::Type.check_type(@weeks_of_month, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "weeksOfMonth") unless @weeks_of_month.nil?
end

Instance Attribute Details

#custom_action_timeout_in_minsNumeric? (readonly)

The custom action timeout in minutes for the maintenance window.



880
881
882
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 880

def custom_action_timeout_in_mins
  @custom_action_timeout_in_mins
end

#days_of_weekArray<String>? (readonly)

The days of the week when maintenance can be performed.



885
886
887
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 885

def days_of_week
  @days_of_week
end

#hours_of_dayArray<Numeric>, ... (readonly)

The hours of the day when maintenance can be performed.



890
891
892
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 890

def hours_of_day
  @hours_of_day
end

#is_custom_action_timeout_enabledBoolean, ... (readonly)

Indicates whether custom action timeout is enabled for the maintenance window.



895
896
897
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 895

def is_custom_action_timeout_enabled
  @is_custom_action_timeout_enabled
end

#lead_time_in_weeksNumeric? (readonly)

The lead time in weeks before the maintenance window.



900
901
902
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 900

def lead_time_in_weeks
  @lead_time_in_weeks
end

#monthsArray<String>? (readonly)

The months when maintenance can be performed.



905
906
907
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 905

def months
  @months
end

#patching_modeString? (readonly)

The patching mode for the maintenance window.



910
911
912
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 910

def patching_mode
  @patching_mode
end

#preferenceString? (readonly)

The preference for the maintenance window scheduling.



915
916
917
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 915

def preference
  @preference
end

#weeks_of_monthArray<Numeric>, ... (readonly)

The weeks of the month when maintenance can be performed.



920
921
922
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 920

def weeks_of_month
  @weeks_of_month
end

Class Method Details

.jsii_propertiesObject



922
923
924
925
926
927
928
929
930
931
932
933
934
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 922

def self.jsii_properties
  {
    :custom_action_timeout_in_mins => "customActionTimeoutInMins",
    :days_of_week => "daysOfWeek",
    :hours_of_day => "hoursOfDay",
    :is_custom_action_timeout_enabled => "isCustomActionTimeoutEnabled",
    :lead_time_in_weeks => "leadTimeInWeeks",
    :months => "months",
    :patching_mode => "patchingMode",
    :preference => "preference",
    :weeks_of_month => "weeksOfMonth",
  }
end

Instance Method Details

#to_jsiiObject



936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
# File 'odb/cfn_cloud_exadata_infrastructure.rb', line 936

def to_jsii
  result = {}
  result.merge!({
    "customActionTimeoutInMins" => @custom_action_timeout_in_mins,
    "daysOfWeek" => @days_of_week,
    "hoursOfDay" => @hours_of_day,
    "isCustomActionTimeoutEnabled" => @is_custom_action_timeout_enabled,
    "leadTimeInWeeks" => @lead_time_in_weeks,
    "months" => @months,
    "patchingMode" => @patching_mode,
    "preference" => @preference,
    "weeksOfMonth" => @weeks_of_month,
  })
  result.compact
end