Class: AWSCDK::ARCRegionSwitch::CfnPlan::TriggerConditionProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(associated_alarm_name:, condition:) ⇒ TriggerConditionProperty

Returns a new instance of TriggerConditionProperty.

Parameters:

  • associated_alarm_name (String)

    The name of the CloudWatch alarm associated with the condition.

  • condition (String)

    The condition that must be met.



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_nameString (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

#conditionString (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_propertiesObject



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_jsiiObject



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