Class: AWSCDK::EntityResolution::CfnMatchingWorkflow::RuleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
entity_resolution/cfn_matching_workflow.rb

Overview

An object containing the ruleName and matchingKeys .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(matching_keys:, rule_name:) ⇒ RuleProperty

Returns a new instance of RuleProperty.

Parameters:

  • matching_keys (Array<String>)

    A list of MatchingKeys .

  • rule_name (String)

    A name for the matching rule.



1258
1259
1260
1261
1262
1263
# File 'entity_resolution/cfn_matching_workflow.rb', line 1258

def initialize(matching_keys:, rule_name:)
  @matching_keys = matching_keys
  Jsii::Type.check_type(@matching_keys, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "matchingKeys")
  @rule_name = rule_name
  Jsii::Type.check_type(@rule_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleName")
end

Instance Attribute Details

#matching_keysArray<String> (readonly)

A list of MatchingKeys .

The MatchingKeys must have been defined in the SchemaMapping . Two records are considered to match according to this rule if all of the MatchingKeys match.



1271
1272
1273
# File 'entity_resolution/cfn_matching_workflow.rb', line 1271

def matching_keys
  @matching_keys
end

#rule_nameString (readonly)

A name for the matching rule.



1276
1277
1278
# File 'entity_resolution/cfn_matching_workflow.rb', line 1276

def rule_name
  @rule_name
end

Class Method Details

.jsii_propertiesObject



1278
1279
1280
1281
1282
1283
# File 'entity_resolution/cfn_matching_workflow.rb', line 1278

def self.jsii_properties
  {
    :matching_keys => "matchingKeys",
    :rule_name => "ruleName",
  }
end

Instance Method Details

#to_jsiiObject



1285
1286
1287
1288
1289
1290
1291
1292
# File 'entity_resolution/cfn_matching_workflow.rb', line 1285

def to_jsii
  result = {}
  result.merge!({
    "matchingKeys" => @matching_keys,
    "ruleName" => @rule_name,
  })
  result.compact
end