Class: AWSCDK::CloudWatch::CfnAlarmMuteRule::RuleProperty

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

Overview

The rule for the mute.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schedule:) ⇒ RuleProperty

Returns a new instance of RuleProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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