Class: AWSCDK::CloudWatch::CfnAlarmMuteRule::ScheduleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudWatch::CfnAlarmMuteRule::ScheduleProperty
- Defined in:
- cloud_watch/cfn_alarm_mute_rule.rb
Overview
Schedule for the mute to be active.
Instance Attribute Summary collapse
-
#duration ⇒ String
readonly
The duration of the schedule when it triggers.
-
#expression ⇒ String
readonly
The expression of the schedule.
-
#timezone ⇒ String?
readonly
The timezone of the schedule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(duration:, expression:, timezone: nil) ⇒ ScheduleProperty
constructor
A new instance of ScheduleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(duration:, expression:, timezone: nil) ⇒ ScheduleProperty
Returns a new instance of ScheduleProperty.
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
#duration ⇒ String (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 |
#expression ⇒ String (readonly)
The expression of the schedule.
707 708 709 |
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 707 def expression @expression end |
#timezone ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |