Class: AWSCDK::MediaLive::CfnChannel::MaintenanceCreateSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_channel.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maintenance_day: nil, maintenance_start_time: nil) ⇒ MaintenanceCreateSettingsProperty

Returns a new instance of MaintenanceCreateSettingsProperty.

Parameters:

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

    Choose one day of the week for maintenance.

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

    Choose the hour that maintenance will start.



9919
9920
9921
9922
9923
9924
# File 'media_live/cfn_channel.rb', line 9919

def initialize(maintenance_day: nil, maintenance_start_time: nil)
  @maintenance_day = maintenance_day
  Jsii::Type.check_type(@maintenance_day, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "maintenanceDay") unless @maintenance_day.nil?
  @maintenance_start_time = maintenance_start_time
  Jsii::Type.check_type(@maintenance_start_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "maintenanceStartTime") unless @maintenance_start_time.nil?
end

Instance Attribute Details

#maintenance_dayString? (readonly)

Choose one day of the week for maintenance.

The chosen day is used for all future maintenance windows.



9932
9933
9934
# File 'media_live/cfn_channel.rb', line 9932

def maintenance_day
  @maintenance_day
end

#maintenance_start_timeString? (readonly)

Choose the hour that maintenance will start.

The chosen time is used for all future maintenance windows.



9939
9940
9941
# File 'media_live/cfn_channel.rb', line 9939

def maintenance_start_time
  @maintenance_start_time
end

Class Method Details

.jsii_propertiesObject



9941
9942
9943
9944
9945
9946
# File 'media_live/cfn_channel.rb', line 9941

def self.jsii_properties
  {
    :maintenance_day => "maintenanceDay",
    :maintenance_start_time => "maintenanceStartTime",
  }
end

Instance Method Details

#to_jsiiObject



9948
9949
9950
9951
9952
9953
9954
9955
# File 'media_live/cfn_channel.rb', line 9948

def to_jsii
  result = {}
  result.merge!({
    "maintenanceDay" => @maintenance_day,
    "maintenanceStartTime" => @maintenance_start_time,
  })
  result.compact
end