Class: AWSCDK::ARCRegionSwitch::CfnPlan::TriggerConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::TriggerConditionProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
Defines a condition that must be met for a trigger to fire.
Instance Attribute Summary collapse
-
#associated_alarm_name ⇒ String
readonly
The name of the CloudWatch alarm associated with the condition.
-
#condition ⇒ String
readonly
The condition that must be met.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(associated_alarm_name:, condition:) ⇒ TriggerConditionProperty
constructor
A new instance of TriggerConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(associated_alarm_name:, condition:) ⇒ TriggerConditionProperty
Returns a new instance of TriggerConditionProperty.
3085 3086 3087 3088 3089 3090 |
# File 'arc_region_switch/cfn_plan.rb', line 3085 def initialize(associated_alarm_name:, condition:) @associated_alarm_name = associated_alarm_name Jsii::Type.check_type(@associated_alarm_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "associatedAlarmName") @condition = condition Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "condition") end |
Instance Attribute Details
#associated_alarm_name ⇒ String (readonly)
The name of the CloudWatch alarm associated with the condition.
3096 3097 3098 |
# File 'arc_region_switch/cfn_plan.rb', line 3096 def associated_alarm_name @associated_alarm_name end |
#condition ⇒ String (readonly)
The condition that must be met.
Valid values include ALARM and OK.
3103 3104 3105 |
# File 'arc_region_switch/cfn_plan.rb', line 3103 def condition @condition end |
Class Method Details
.jsii_properties ⇒ Object
3105 3106 3107 3108 3109 3110 |
# File 'arc_region_switch/cfn_plan.rb', line 3105 def self.jsii_properties { :associated_alarm_name => "associatedAlarmName", :condition => "condition", } end |
Instance Method Details
#to_jsii ⇒ Object
3112 3113 3114 3115 3116 3117 3118 3119 |
# File 'arc_region_switch/cfn_plan.rb', line 3112 def to_jsii result = {} result.merge!({ "associatedAlarmName" => @associated_alarm_name, "condition" => @condition, }) result.compact end |