Class: AWSCDK::CloudWatch::CfnAlarmMuteRule::RuleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudWatch::CfnAlarmMuteRule::RuleProperty
- Defined in:
- cloud_watch/cfn_alarm_mute_rule.rb
Overview
The rule for the mute.
Instance Attribute Summary collapse
-
#schedule ⇒ AWSCDK::IResolvable, AWSCDK::CloudWatch::CfnAlarmMuteRule::ScheduleProperty
readonly
Schedule for the mute to be active.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(schedule:) ⇒ RuleProperty
constructor
A new instance of RuleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(schedule:) ⇒ RuleProperty
Returns a new instance of RuleProperty.
654 655 656 657 |
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 654 def initialize(schedule:) @schedule = schedule.is_a?(Hash) ? ::AWSCDK::CloudWatch::CfnAlarmMuteRule::ScheduleProperty.new(**schedule.transform_keys(&:to_sym)) : schedule Jsii::Type.check_type(@schedule, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZHdhdGNoLkNmbkFsYXJtTXV0ZVJ1bGUuU2NoZWR1bGVQcm9wZXJ0eSJ9XX19")), "schedule") end |
Instance Attribute Details
#schedule ⇒ AWSCDK::IResolvable, AWSCDK::CloudWatch::CfnAlarmMuteRule::ScheduleProperty (readonly)
Schedule for the mute to be active.
663 664 665 |
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 663 def schedule @schedule end |
Class Method Details
.jsii_properties ⇒ Object
665 666 667 668 669 |
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 665 def self.jsii_properties { :schedule => "schedule", } end |
Instance Method Details
#to_jsii ⇒ Object
671 672 673 674 675 676 677 |
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 671 def to_jsii result = {} result.merge!({ "schedule" => @schedule, }) result.compact end |