Class: AWSCDK::EntityResolution::CfnMatchingWorkflow::RuleConditionProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(condition: nil, rule_name: nil) ⇒ RuleConditionProperty

Returns a new instance of RuleConditionProperty.

Parameters:

  • condition (String, nil) (defaults to: nil)

    A statement that specifies the conditions for a matching rule.

  • rule_name (String, nil) (defaults to: nil)

    A name for the matching rule.



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

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



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_jsiiObject



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