Class: AWSCDK::ECS::CfnDaemon::DaemonAlarmConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnDaemon::DaemonAlarmConfigurationProperty
- Defined in:
- ecs/cfn_daemon.rb
Overview
The CloudWatch alarm configuration for a daemon.
When enabled, CloudWatch alarms determine whether a daemon deployment has failed.
Instance Attribute Summary collapse
-
#alarm_names ⇒ Array<String>?
readonly
The CloudWatch alarm names to monitor during a daemon deployment.
-
#enable ⇒ Boolean, ...
readonly
Determines whether to use the CloudWatch alarm option in the daemon deployment process.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(alarm_names: nil, enable: nil) ⇒ DaemonAlarmConfigurationProperty
constructor
A new instance of DaemonAlarmConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(alarm_names: nil, enable: nil) ⇒ DaemonAlarmConfigurationProperty
Returns a new instance of DaemonAlarmConfigurationProperty.
643 644 645 646 647 648 |
# File 'ecs/cfn_daemon.rb', line 643 def initialize(alarm_names: nil, enable: nil) @alarm_names = alarm_names Jsii::Type.check_type(@alarm_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "alarmNames") unless @alarm_names.nil? @enable = enable Jsii::Type.check_type(@enable, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enable") unless @enable.nil? end |
Instance Attribute Details
#alarm_names ⇒ Array<String>? (readonly)
The CloudWatch alarm names to monitor during a daemon deployment.
654 655 656 |
# File 'ecs/cfn_daemon.rb', line 654 def alarm_names @alarm_names end |
#enable ⇒ Boolean, ... (readonly)
Determines whether to use the CloudWatch alarm option in the daemon deployment process.
The default value is false.
661 662 663 |
# File 'ecs/cfn_daemon.rb', line 661 def enable @enable end |
Class Method Details
.jsii_properties ⇒ Object
663 664 665 666 667 668 |
# File 'ecs/cfn_daemon.rb', line 663 def self.jsii_properties { :alarm_names => "alarmNames", :enable => "enable", } end |
Instance Method Details
#to_jsii ⇒ Object
670 671 672 673 674 675 676 677 |
# File 'ecs/cfn_daemon.rb', line 670 def to_jsii result = {} result.merge!({ "alarmNames" => @alarm_names, "enable" => @enable, }) result.compact end |