Class: AWSCDK::ODB::CfnCloudAutonomousVmCluster::MaintenanceWindowProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
odb/cfn_cloud_autonomous_vm_cluster.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(days_of_week: nil, hours_of_day: nil, lead_time_in_weeks: nil, months: nil, preference: nil, weeks_of_month: nil) ⇒ MaintenanceWindowProperty

Returns a new instance of MaintenanceWindowProperty.

Parameters:

  • 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.

  • 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.

  • 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.



1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
# File 'odb/cfn_cloud_autonomous_vm_cluster.rb', line 1004

def initialize(days_of_week: nil, hours_of_day: nil, lead_time_in_weeks: nil, months: nil, preference: nil, weeks_of_month: 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?
  @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?
  @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

#days_of_weekArray<String>? (readonly)

The days of the week when maintenance can be performed.



1023
1024
1025
# File 'odb/cfn_cloud_autonomous_vm_cluster.rb', line 1023

def days_of_week
  @days_of_week
end

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

The hours of the day when maintenance can be performed.



1028
1029
1030
# File 'odb/cfn_cloud_autonomous_vm_cluster.rb', line 1028

def hours_of_day
  @hours_of_day
end

#lead_time_in_weeksNumeric? (readonly)

The lead time in weeks before the maintenance window.



1033
1034
1035
# File 'odb/cfn_cloud_autonomous_vm_cluster.rb', line 1033

def lead_time_in_weeks
  @lead_time_in_weeks
end

#monthsArray<String>? (readonly)

The months when maintenance can be performed.



1038
1039
1040
# File 'odb/cfn_cloud_autonomous_vm_cluster.rb', line 1038

def months
  @months
end

#preferenceString? (readonly)

The preference for the maintenance window scheduling.



1043
1044
1045
# File 'odb/cfn_cloud_autonomous_vm_cluster.rb', line 1043

def preference
  @preference
end

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

The weeks of the month when maintenance can be performed.



1048
1049
1050
# File 'odb/cfn_cloud_autonomous_vm_cluster.rb', line 1048

def weeks_of_month
  @weeks_of_month
end

Class Method Details

.jsii_propertiesObject



1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
# File 'odb/cfn_cloud_autonomous_vm_cluster.rb', line 1050

def self.jsii_properties
  {
    :days_of_week => "daysOfWeek",
    :hours_of_day => "hoursOfDay",
    :lead_time_in_weeks => "leadTimeInWeeks",
    :months => "months",
    :preference => "preference",
    :weeks_of_month => "weeksOfMonth",
  }
end

Instance Method Details

#to_jsiiObject



1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
# File 'odb/cfn_cloud_autonomous_vm_cluster.rb', line 1061

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