Class: AWSCDK::Route53RecoveryControl::CfnSafetyRule::RuleConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Route53RecoveryControl::CfnSafetyRule::RuleConfigProperty
- 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
-
#inverted ⇒ Boolean, AWSCDK::IResolvable
readonly
Logical negation of the rule.
-
#threshold ⇒ Numeric
readonly
The value of N, when you specify an
ATLEASTrule type. -
#type ⇒ String
readonly
A rule can be one of the following:
ATLEAST,AND, orOR.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(inverted:, threshold:, type:) ⇒ RuleConfigProperty
constructor
A new instance of RuleConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(inverted:, threshold:, type:) ⇒ RuleConfigProperty
Returns a new instance of RuleConfigProperty.
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
#inverted ⇒ Boolean, 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 |
#threshold ⇒ Numeric (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 |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |