Class: AWSCDK::ECS::DeploymentAlarmOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::DeploymentAlarmOptions
- Defined in:
- ecs/deployment_alarm_options.rb
Overview
Options for deployment alarms.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#behavior ⇒ AWSCDK::ECS::AlarmBehavior?
readonly
Default rollback on alarm.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(behavior: nil) ⇒ DeploymentAlarmOptions
constructor
A new instance of DeploymentAlarmOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(behavior: nil) ⇒ DeploymentAlarmOptions
Returns a new instance of DeploymentAlarmOptions.
8 9 10 11 |
# File 'ecs/deployment_alarm_options.rb', line 8 def initialize(behavior: nil) @behavior = behavior Jsii::Type.check_type(@behavior, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkFsYXJtQmVoYXZpb3IifQ==")), "behavior") unless @behavior.nil? end |
Instance Attribute Details
#behavior ⇒ AWSCDK::ECS::AlarmBehavior? (readonly)
Note:
Default: AlarmBehavior.ROLLBACK_ON_ALARM
Default rollback on alarm.
17 18 19 |
# File 'ecs/deployment_alarm_options.rb', line 17 def behavior @behavior end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'ecs/deployment_alarm_options.rb', line 19 def self.jsii_properties { :behavior => "behavior", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'ecs/deployment_alarm_options.rb', line 25 def to_jsii result = {} result.merge!({ "behavior" => @behavior, }) result.compact end |