Class: AWSCDK::SSMContacts::CfnRotation::WeeklySettingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ssm_contacts/cfn_rotation.rb

Overview

Information about rotations that recur weekly.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(day_of_week:, hand_off_time:) ⇒ WeeklySettingProperty

Returns a new instance of WeeklySettingProperty.

Parameters:

  • day_of_week (String)

    The day of the week when weekly recurring on-call shift rotations begins.

  • hand_off_time (String)

    The time of day when a weekly recurring on-call shift rotation begins.



800
801
802
803
804
805
# File 'ssm_contacts/cfn_rotation.rb', line 800

def initialize(day_of_week:, hand_off_time:)
  @day_of_week = day_of_week
  Jsii::Type.check_type(@day_of_week, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dayOfWeek")
  @hand_off_time = hand_off_time
  Jsii::Type.check_type(@hand_off_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "handOffTime")
end

Instance Attribute Details

#day_of_weekString (readonly)

The day of the week when weekly recurring on-call shift rotations begins.



811
812
813
# File 'ssm_contacts/cfn_rotation.rb', line 811

def day_of_week
  @day_of_week
end

#hand_off_timeString (readonly)

The time of day when a weekly recurring on-call shift rotation begins.



816
817
818
# File 'ssm_contacts/cfn_rotation.rb', line 816

def hand_off_time
  @hand_off_time
end

Class Method Details

.jsii_propertiesObject



818
819
820
821
822
823
# File 'ssm_contacts/cfn_rotation.rb', line 818

def self.jsii_properties
  {
    :day_of_week => "dayOfWeek",
    :hand_off_time => "handOffTime",
  }
end

Instance Method Details

#to_jsiiObject



825
826
827
828
829
830
831
832
# File 'ssm_contacts/cfn_rotation.rb', line 825

def to_jsii
  result = {}
  result.merge!({
    "dayOfWeek" => @day_of_week,
    "handOffTime" => @hand_off_time,
  })
  result.compact
end