Class: AWSCDK::CloudWatch::CfnAlarmMuteRule::ScheduleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_watch/cfn_alarm_mute_rule.rb

Overview

Schedule for the mute to be active.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(duration:, expression:, timezone: nil) ⇒ ScheduleProperty

Returns a new instance of ScheduleProperty.

Parameters:

  • duration (String)

    The duration of the schedule when it triggers.

  • expression (String)

    The expression of the schedule.

  • timezone (String, nil) (defaults to: nil)

    The timezone of the schedule.



689
690
691
692
693
694
695
696
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 689

def initialize(duration:, expression:, timezone: nil)
  @duration = duration
  Jsii::Type.check_type(@duration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "duration")
  @expression = expression
  Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression")
  @timezone = timezone
  Jsii::Type.check_type(@timezone, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timezone") unless @timezone.nil?
end

Instance Attribute Details

#durationString (readonly)

The duration of the schedule when it triggers.



702
703
704
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 702

def duration
  @duration
end

#expressionString (readonly)

The expression of the schedule.



707
708
709
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 707

def expression
  @expression
end

#timezoneString? (readonly)

The timezone of the schedule.



712
713
714
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 712

def timezone
  @timezone
end

Class Method Details

.jsii_propertiesObject



714
715
716
717
718
719
720
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 714

def self.jsii_properties
  {
    :duration => "duration",
    :expression => "expression",
    :timezone => "timezone",
  }
end

Instance Method Details

#to_jsiiObject



722
723
724
725
726
727
728
729
730
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 722

def to_jsii
  result = {}
  result.merge!({
    "duration" => @duration,
    "expression" => @expression,
    "timezone" => @timezone,
  })
  result.compact
end