Class: AWSCDK::SSMContacts::CfnRotation::ShiftCoverageProperty

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

Overview

Information about the days of the week that the on-call rotation coverage includes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(coverage_times:, day_of_week:) ⇒ ShiftCoverageProperty

Returns a new instance of ShiftCoverageProperty.

Parameters:



757
758
759
760
761
762
# File 'ssm_contacts/cfn_rotation.rb', line 757

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

Instance Attribute Details

#day_of_weekString (readonly)

A list of days on which the schedule is active.



773
774
775
# File 'ssm_contacts/cfn_rotation.rb', line 773

def day_of_week
  @day_of_week
end

Class Method Details

.jsii_propertiesObject



775
776
777
778
779
780
# File 'ssm_contacts/cfn_rotation.rb', line 775

def self.jsii_properties
  {
    :coverage_times => "coverageTimes",
    :day_of_week => "dayOfWeek",
  }
end

Instance Method Details

#to_jsiiObject



782
783
784
785
786
787
788
789
# File 'ssm_contacts/cfn_rotation.rb', line 782

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