Class: AWSCDK::SSMContacts::CfnRotation::ShiftCoverageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSMContacts::CfnRotation::ShiftCoverageProperty
- 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
-
#coverage_times ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::SSMContacts::CfnRotation::CoverageTimeProperty>
readonly
The start and end times of the shift.
-
#day_of_week ⇒ String
readonly
A list of days on which the schedule is active.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(coverage_times:, day_of_week:) ⇒ ShiftCoverageProperty
constructor
A new instance of ShiftCoverageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(coverage_times:, day_of_week:) ⇒ ShiftCoverageProperty
Returns a new instance of ShiftCoverageProperty.
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
#coverage_times ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::SSMContacts::CfnRotation::CoverageTimeProperty> (readonly)
The start and end times of the shift.
768 769 770 |
# File 'ssm_contacts/cfn_rotation.rb', line 768 def coverage_times @coverage_times end |
#day_of_week ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |