Skip to content
v2.278.0

NamespaceRuleBasedPropertiesProperty Struct ​

The rule-based properties of an ID namespace.

These properties define how the ID namespace can be used in an ID mapping workflow.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_entityresolution as entityresolution } from 'aws-cdk-lib';
const namespaceRuleBasedPropertiesProperty: entityresolution.CfnIdNamespace.NamespaceRuleBasedPropertiesProperty = {
  attributeMatchingModel: 'attributeMatchingModel',
  recordMatchingModels: ['recordMatchingModels'],
  ruleDefinitionTypes: ['ruleDefinitionTypes'],
  rules: [{
    matchingKeys: ['matchingKeys'],
    ruleName: 'ruleName',
  }],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_entityresolution as entityresolution

namespace_rule_based_properties_property = entityresolution.CfnIdNamespace.NamespaceRuleBasedPropertiesProperty(
    attribute_matching_model="attributeMatchingModel",
    record_matching_models=["recordMatchingModels"],
    rule_definition_types=["ruleDefinitionTypes"],
    rules=[entityresolution.CfnIdNamespace.RuleProperty(
        matching_keys=["matchingKeys"],
        rule_name="ruleName"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.entityresolution.*;

NamespaceRuleBasedPropertiesProperty namespaceRuleBasedPropertiesProperty = NamespaceRuleBasedPropertiesProperty.builder()
        .attributeMatchingModel("attributeMatchingModel")
        .recordMatchingModels(List.of("recordMatchingModels"))
        .ruleDefinitionTypes(List.of("ruleDefinitionTypes"))
        .rules(List.of(RuleProperty.builder()
                .matchingKeys(List.of("matchingKeys"))
                .ruleName("ruleName")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EntityResolution;

var namespaceRuleBasedPropertiesProperty = new NamespaceRuleBasedPropertiesProperty {
    AttributeMatchingModel = "attributeMatchingModel",
    RecordMatchingModels = new [] { "recordMatchingModels" },
    RuleDefinitionTypes = new [] { "ruleDefinitionTypes" },
    Rules = new [] { new RuleProperty {
        MatchingKeys = new [] { "matchingKeys" },
        RuleName = "ruleName"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

namespaceRuleBasedPropertiesProperty := &NamespaceRuleBasedPropertiesProperty{
	AttributeMatchingModel: jsii.String("attributeMatchingModel"),
	RecordMatchingModels: []*string{
		jsii.String("recordMatchingModels"),
	},
	RuleDefinitionTypes: []*string{
		jsii.String("ruleDefinitionTypes"),
	},
	Rules: []interface{}{
		&RuleProperty{
			MatchingKeys: []*string{
				jsii.String("matchingKeys"),
			},
			RuleName: jsii.String("ruleName"),
		},
	},
}

Properties ​

attributeMatchingModeloptionalstringattribute_matching_modeloptionalstrattributeMatchingModeloptionalStringAttributeMatchingModeloptionalstringAttributeMatchingModeloptional*string #
The comparison type. You can either choose `ONE_TO_ONE` or `MANY_TO_MANY` as the `attributeMatchingModel` .
notes

If you choose ONE_TO_ONE , the system can only match attributes if the sub-types are an exact match. For example, for the Email attribute type, the system will only consider it a match if the value of the Email field of Profile A matches the value of the Email field of Profile B.

If you choose MANY_TO_MANY , the system can match attributes across the sub-types of an attribute type. For example, if the value of the Email field of Profile A matches the value of BusinessEmail field of Profile B, the two profiles are matched on the Email attribute type.

recordMatchingModelsoptionalstring[]record_matching_modelsoptionaltyping.List[str]recordMatchingModelsoptionalList<String>RecordMatchingModelsoptionalstring[]RecordMatchingModelsoptional*[]*string #
The type of matching record that is allowed to be used in an ID mapping workflow.
notes

If the value is set to ONE_SOURCE_TO_ONE_TARGET , only one record in the source is matched to one record in the target.

If the value is set to MANY_SOURCE_TO_ONE_TARGET , all matching records in the source are matched to one record in the target.

ruleDefinitionTypesoptionalstring[]rule_definition_typesoptionaltyping.List[str]ruleDefinitionTypesoptionalList<String>RuleDefinitionTypesoptionalstring[]RuleDefinitionTypesoptional*[]*string #
The sets of rules you can use in an ID mapping workflow.

The limitations specified for the source and target must be compatible.

rulesoptionalIResolvable | IResolvable | CfnIdNamespace.RuleProperty[]rulesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleProperty]]]rulesoptionalIResolvableRulesoptionalIResolvableRulesoptionalinterface{} #
The rules for the ID namespace.