Class: AWSCDK::WorkspacesThinClient::CfnEnvironment::MaintenanceWindowProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_thin_client/cfn_environment.rb

Overview

Describes the maintenance window for a thin client device.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, apply_time_of: nil, days_of_the_week: nil, end_time_hour: nil, end_time_minute: nil, start_time_hour: nil, start_time_minute: nil) ⇒ MaintenanceWindowProperty

Returns a new instance of MaintenanceWindowProperty.

Parameters:

  • type (String)

    An option to select the default or custom maintenance window.

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

    The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).

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

    The days of the week during which the maintenance window is open.

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

    The hour for the maintenance window end ( 00 - 23 ).

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

    The minutes for the maintenance window end ( 00 - 59 ).

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

    The hour for the maintenance window start ( 00 - 23 ).

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

    The minutes past the hour for the maintenance window start ( 00 - 59 ).



739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
# File 'workspaces_thin_client/cfn_environment.rb', line 739

def initialize(type:, apply_time_of: nil, days_of_the_week: nil, end_time_hour: nil, end_time_minute: nil, start_time_hour: nil, start_time_minute: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @apply_time_of = apply_time_of
  Jsii::Type.check_type(@apply_time_of, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applyTimeOf") unless @apply_time_of.nil?
  @days_of_the_week = days_of_the_week
  Jsii::Type.check_type(@days_of_the_week, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "daysOfTheWeek") unless @days_of_the_week.nil?
  @end_time_hour = end_time_hour
  Jsii::Type.check_type(@end_time_hour, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "endTimeHour") unless @end_time_hour.nil?
  @end_time_minute = end_time_minute
  Jsii::Type.check_type(@end_time_minute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "endTimeMinute") unless @end_time_minute.nil?
  @start_time_hour = start_time_hour
  Jsii::Type.check_type(@start_time_hour, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "startTimeHour") unless @start_time_hour.nil?
  @start_time_minute = start_time_minute
  Jsii::Type.check_type(@start_time_minute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "startTimeMinute") unless @start_time_minute.nil?
end

Instance Attribute Details

#apply_time_ofString? (readonly)

The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).



765
766
767
# File 'workspaces_thin_client/cfn_environment.rb', line 765

def apply_time_of
  @apply_time_of
end

#days_of_the_weekArray<String>? (readonly)

The days of the week during which the maintenance window is open.



770
771
772
# File 'workspaces_thin_client/cfn_environment.rb', line 770

def days_of_the_week
  @days_of_the_week
end

#end_time_hourNumeric? (readonly)

The hour for the maintenance window end ( 00 - 23 ).



775
776
777
# File 'workspaces_thin_client/cfn_environment.rb', line 775

def end_time_hour
  @end_time_hour
end

#end_time_minuteNumeric? (readonly)

The minutes for the maintenance window end ( 00 - 59 ).



780
781
782
# File 'workspaces_thin_client/cfn_environment.rb', line 780

def end_time_minute
  @end_time_minute
end

#start_time_hourNumeric? (readonly)

The hour for the maintenance window start ( 00 - 23 ).



785
786
787
# File 'workspaces_thin_client/cfn_environment.rb', line 785

def start_time_hour
  @start_time_hour
end

#start_time_minuteNumeric? (readonly)

The minutes past the hour for the maintenance window start ( 00 - 59 ).



790
791
792
# File 'workspaces_thin_client/cfn_environment.rb', line 790

def start_time_minute
  @start_time_minute
end

#typeString (readonly)

An option to select the default or custom maintenance window.



760
761
762
# File 'workspaces_thin_client/cfn_environment.rb', line 760

def type
  @type
end

Class Method Details

.jsii_propertiesObject



792
793
794
795
796
797
798
799
800
801
802
# File 'workspaces_thin_client/cfn_environment.rb', line 792

def self.jsii_properties
  {
    :type => "type",
    :apply_time_of => "applyTimeOf",
    :days_of_the_week => "daysOfTheWeek",
    :end_time_hour => "endTimeHour",
    :end_time_minute => "endTimeMinute",
    :start_time_hour => "startTimeHour",
    :start_time_minute => "startTimeMinute",
  }
end

Instance Method Details

#to_jsiiObject



804
805
806
807
808
809
810
811
812
813
814
815
816
# File 'workspaces_thin_client/cfn_environment.rb', line 804

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "applyTimeOf" => @apply_time_of,
    "daysOfTheWeek" => @days_of_the_week,
    "endTimeHour" => @end_time_hour,
    "endTimeMinute" => @end_time_minute,
    "startTimeHour" => @start_time_hour,
    "startTimeMinute" => @start_time_minute,
  })
  result.compact
end