Class: AWSCDK::FSX::LustreMaintenanceTimeProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fsx/lustre_maintenance_time_props.rb

Overview

Properties required for setting up a weekly maintenance time.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(day:, hour:, minute:) ⇒ LustreMaintenanceTimeProps

Returns a new instance of LustreMaintenanceTimeProps.

Parameters:

  • day (AWSCDK::FSX::Weekday)

    The day of the week for maintenance to be performed.

  • hour (Numeric)

    The hour of the day (from 0-23) for maintenance to be performed.

  • minute (Numeric)

    The minute of the hour (from 0-59) for maintenance to be performed.



10
11
12
13
14
15
16
17
# File 'fsx/lustre_maintenance_time_props.rb', line 10

def initialize(day:, hour:, minute:)
  @day = day
  Jsii::Type.check_type(@day, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZnN4LldlZWtkYXkifQ==")), "day")
  @hour = hour
  Jsii::Type.check_type(@hour, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "hour")
  @minute = minute
  Jsii::Type.check_type(@minute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minute")
end

Instance Attribute Details

#dayAWSCDK::FSX::Weekday (readonly)

The day of the week for maintenance to be performed.



22
23
24
# File 'fsx/lustre_maintenance_time_props.rb', line 22

def day
  @day
end

#hourNumeric (readonly)

The hour of the day (from 0-23) for maintenance to be performed.

Returns:

  • (Numeric)


26
27
28
# File 'fsx/lustre_maintenance_time_props.rb', line 26

def hour
  @hour
end

#minuteNumeric (readonly)

The minute of the hour (from 0-59) for maintenance to be performed.

Returns:

  • (Numeric)


30
31
32
# File 'fsx/lustre_maintenance_time_props.rb', line 30

def minute
  @minute
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'fsx/lustre_maintenance_time_props.rb', line 32

def self.jsii_properties
  {
    :day => "day",
    :hour => "hour",
    :minute => "minute",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'fsx/lustre_maintenance_time_props.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "day" => @day,
    "hour" => @hour,
    "minute" => @minute,
  })
  result.compact
end