Class: AWSCDK::SSMContacts::CfnRotation::CoverageTimeProperty

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

Overview

Information about when an on-call shift begins and ends.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(end_time:, start_time:) ⇒ CoverageTimeProperty

Returns a new instance of CoverageTimeProperty.

Parameters:

  • end_time (String)

    Information about when an on-call rotation shift ends.

  • start_time (String)

    Information about when an on-call rotation shift begins.



586
587
588
589
590
591
# File 'ssm_contacts/cfn_rotation.rb', line 586

def initialize(end_time:, start_time:)
  @end_time = end_time
  Jsii::Type.check_type(@end_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endTime")
  @start_time = start_time
  Jsii::Type.check_type(@start_time, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "startTime")
end

Instance Attribute Details

#end_timeString (readonly)

Information about when an on-call rotation shift ends.



597
598
599
# File 'ssm_contacts/cfn_rotation.rb', line 597

def end_time
  @end_time
end

#start_timeString (readonly)

Information about when an on-call rotation shift begins.



602
603
604
# File 'ssm_contacts/cfn_rotation.rb', line 602

def start_time
  @start_time
end

Class Method Details

.jsii_propertiesObject



604
605
606
607
608
609
# File 'ssm_contacts/cfn_rotation.rb', line 604

def self.jsii_properties
  {
    :end_time => "endTime",
    :start_time => "startTime",
  }
end

Instance Method Details

#to_jsiiObject



611
612
613
614
615
616
617
618
# File 'ssm_contacts/cfn_rotation.rb', line 611

def to_jsii
  result = {}
  result.merge!({
    "endTime" => @end_time,
    "startTime" => @start_time,
  })
  result.compact
end