Class: AWSCDK::CloudWatch::CfnAlarmMuteRule::MuteTargetsProperty

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

Overview

Targets to be muted.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alarm_names:) ⇒ MuteTargetsProperty

Returns a new instance of MuteTargetsProperty.

Parameters:

  • alarm_names (Array<String>)

    The alarm names to be mute by the AlarmMuteRule.



621
622
623
624
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 621

def initialize(alarm_names:)
  @alarm_names = alarm_names
  Jsii::Type.check_type(@alarm_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "alarmNames")
end

Instance Attribute Details

#alarm_namesArray<String> (readonly)

The alarm names to be mute by the AlarmMuteRule.



630
631
632
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 630

def alarm_names
  @alarm_names
end

Class Method Details

.jsii_propertiesObject



632
633
634
635
636
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 632

def self.jsii_properties
  {
    :alarm_names => "alarmNames",
  }
end

Instance Method Details

#to_jsiiObject



638
639
640
641
642
643
644
# File 'cloud_watch/cfn_alarm_mute_rule.rb', line 638

def to_jsii
  result = {}
  result.merge!({
    "alarmNames" => @alarm_names,
  })
  result.compact
end