Class: AWSCDK::EntityResolution::CfnMatchingWorkflow::RuleConditionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EntityResolution::CfnMatchingWorkflow::RuleConditionProperty
- Defined in:
- entity_resolution/cfn_matching_workflow.rb
Overview
An object that defines the ruleCondition and the ruleName to use in a matching workflow.
Instance Attribute Summary collapse
-
#condition ⇒ String?
readonly
A statement that specifies the conditions for a matching rule.
-
#rule_name ⇒ String?
readonly
A name for the matching rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(condition: nil, rule_name: nil) ⇒ RuleConditionProperty
constructor
A new instance of RuleConditionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(condition: nil, rule_name: nil) ⇒ RuleConditionProperty
Returns a new instance of RuleConditionProperty.
1205 1206 1207 1208 1209 1210 |
# File 'entity_resolution/cfn_matching_workflow.rb', line 1205 def initialize(condition: nil, rule_name: nil) @condition = condition Jsii::Type.check_type(@condition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "condition") unless @condition.nil? @rule_name = rule_name Jsii::Type.check_type(@rule_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleName") unless @rule_name.nil? end |
Instance Attribute Details
#condition ⇒ String? (readonly)
A statement that specifies the conditions for a matching rule.
If your data is accurate, use an Exact matching function: Exact or ExactManyToMany .
If your data has variations in spelling or pronunciation, use a Fuzzy matching function: Cosine , Levenshtein , or Soundex .
Use operators if you want to combine ( AND ), separate ( OR ), or group matching functions (...) .
For example: (Cosine(a, 10) AND Exact(b, true)) OR ExactManyToMany(c, d)
1224 1225 1226 |
# File 'entity_resolution/cfn_matching_workflow.rb', line 1224 def condition @condition end |
#rule_name ⇒ String? (readonly)
A name for the matching rule.
For example: Rule1
1231 1232 1233 |
# File 'entity_resolution/cfn_matching_workflow.rb', line 1231 def rule_name @rule_name end |
Class Method Details
.jsii_properties ⇒ Object
1233 1234 1235 1236 1237 1238 |
# File 'entity_resolution/cfn_matching_workflow.rb', line 1233 def self.jsii_properties { :condition => "condition", :rule_name => "ruleName", } end |
Instance Method Details
#to_jsii ⇒ Object
1240 1241 1242 1243 1244 1245 1246 1247 |
# File 'entity_resolution/cfn_matching_workflow.rb', line 1240 def to_jsii result = {} result.merge!({ "condition" => @condition, "ruleName" => @rule_name, }) result.compact end |