Class: AWSCDK::Route53RecoveryControl::CfnSafetyRule::RuleConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
route53_recovery_control/cfn_safety_rule.rb

Overview

The rule configuration for an assertion rule.

That is, the criteria that you set for specific assertion controls (routing controls) that specify how many controls must be enabled after a transaction completes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(inverted:, threshold:, type:) ⇒ RuleConfigProperty

Returns a new instance of RuleConfigProperty.

Parameters:

  • inverted (Boolean, AWSCDK::IResolvable)

    Logical negation of the rule.

  • threshold (Numeric)

    The value of N, when you specify an ATLEAST rule type.

  • type (String)

    A rule can be one of the following: ATLEAST , AND , or OR .



719
720
721
722
723
724
725
726
# File 'route53_recovery_control/cfn_safety_rule.rb', line 719

def initialize(inverted:, threshold:, type:)
  @inverted = inverted
  Jsii::Type.check_type(@inverted, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "inverted")
  @threshold = threshold
  Jsii::Type.check_type(@threshold, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "threshold")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#invertedBoolean, AWSCDK::IResolvable (readonly)

Logical negation of the rule.

If the rule would usually evaluate true, it's evaluated as false, and vice versa.



734
735
736
# File 'route53_recovery_control/cfn_safety_rule.rb', line 734

def inverted
  @inverted
end

#thresholdNumeric (readonly)

The value of N, when you specify an ATLEAST rule type.

That is, Threshold is the number of controls that must be set when you specify an ATLEAST type.



741
742
743
# File 'route53_recovery_control/cfn_safety_rule.rb', line 741

def threshold
  @threshold
end

#typeString (readonly)

A rule can be one of the following: ATLEAST , AND , or OR .



746
747
748
# File 'route53_recovery_control/cfn_safety_rule.rb', line 746

def type
  @type
end

Class Method Details

.jsii_propertiesObject



748
749
750
751
752
753
754
# File 'route53_recovery_control/cfn_safety_rule.rb', line 748

def self.jsii_properties
  {
    :inverted => "inverted",
    :threshold => "threshold",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



756
757
758
759
760
761
762
763
764
# File 'route53_recovery_control/cfn_safety_rule.rb', line 756

def to_jsii
  result = {}
  result.merge!({
    "inverted" => @inverted,
    "threshold" => @threshold,
    "type" => @type,
  })
  result.compact
end