# MatchingProperty

The process of matching duplicate profiles.

If `Matching = true` , Connect Customer Customer Profiles starts a weekly batch process called *Identity Resolution Job* . If you do not specify a date and time for the *Identity Resolution Job* to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in your domains. After the *Identity Resolution Job* completes, use the `GetMatches` API to return and review the results. Or, if you have configured `ExportingConfig` in the `MatchingRequest` , you can download the results from S3.

- Source: Generated at build time
- Type last changed: v2.103.0 · 26 Oct 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_customerprofiles as customerprofiles } from 'aws-cdk-lib';
const matchingProperty: customerprofiles.CfnDomain.MatchingProperty = {
  enabled: false,

  // the properties below are optional
  autoMerging: {
    enabled: false,

    // the properties below are optional
    conflictResolution: {
      conflictResolvingModel: 'conflictResolvingModel',

      // the properties below are optional
      sourceName: 'sourceName',
    },
    consolidation: {
      matchingAttributesList: [['matchingAttributesList']],
    },
    minAllowedConfidenceScoreForMerging: 123,
  },
  exportingConfig: {
    s3Exporting: {
      s3BucketName: 's3BucketName',

      // the properties below are optional
      s3KeyName: 's3KeyName',
    },
  },
  jobSchedule: {
    dayOfTheWeek: 'dayOfTheWeek',
    time: 'time',
  },
};
```

Python:

```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_customerprofiles as customerprofiles

matching_property = customerprofiles.CfnDomain.MatchingProperty(
    enabled=False,

    # the properties below are optional
    auto_merging=customerprofiles.CfnDomain.AutoMergingProperty(
        enabled=False,

        # the properties below are optional
        conflict_resolution=customerprofiles.CfnDomain.ConflictResolutionProperty(
            conflict_resolving_model="conflictResolvingModel",

            # the properties below are optional
            source_name="sourceName"
        ),
        consolidation=customerprofiles.CfnDomain.ConsolidationProperty(
            matching_attributes_list=[["matchingAttributesList"]]
        ),
        min_allowed_confidence_score_for_merging=123
    ),
    exporting_config=customerprofiles.CfnDomain.ExportingConfigProperty(
        s3_exporting=customerprofiles.CfnDomain.S3ExportingConfigProperty(
            s3_bucket_name="s3BucketName",

            # the properties below are optional
            s3_key_name="s3KeyName"
        )
    ),
    job_schedule=customerprofiles.CfnDomain.JobScheduleProperty(
        day_of_the_week="dayOfTheWeek",
        time="time"
    )
)
```

Java:

```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.customerprofiles.*;

MatchingProperty matchingProperty = MatchingProperty.builder()
        .enabled(false)

        // the properties below are optional
        .autoMerging(AutoMergingProperty.builder()
                .enabled(false)

                // the properties below are optional
                .conflictResolution(ConflictResolutionProperty.builder()
                        .conflictResolvingModel("conflictResolvingModel")

                        // the properties below are optional
                        .sourceName("sourceName")
                        .build())
                .consolidation(ConsolidationProperty.builder()
                        .matchingAttributesList(List.of(List.of("matchingAttributesList")))
                        .build())
                .minAllowedConfidenceScoreForMerging(123)
                .build())
        .exportingConfig(ExportingConfigProperty.builder()
                .s3Exporting(S3ExportingConfigProperty.builder()
                        .s3BucketName("s3BucketName")

                        // the properties below are optional
                        .s3KeyName("s3KeyName")
                        .build())
                .build())
        .jobSchedule(JobScheduleProperty.builder()
                .dayOfTheWeek("dayOfTheWeek")
                .time("time")
                .build())
        .build();
```

C# / .NET:

```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.CustomerProfiles;

var matchingProperty = new MatchingProperty {
    Enabled = false,

    // the properties below are optional
    AutoMerging = new AutoMergingProperty {
        Enabled = false,

        // the properties below are optional
        ConflictResolution = new ConflictResolutionProperty {
            ConflictResolvingModel = "conflictResolvingModel",

            // the properties below are optional
            SourceName = "sourceName"
        },
        Consolidation = new ConsolidationProperty {
            MatchingAttributesList = new [] { new [] { "matchingAttributesList" } }
        },
        MinAllowedConfidenceScoreForMerging = 123
    },
    ExportingConfig = new ExportingConfigProperty {
        S3Exporting = new S3ExportingConfigProperty {
            S3BucketName = "s3BucketName",

            // the properties below are optional
            S3KeyName = "s3KeyName"
        }
    },
    JobSchedule = new JobScheduleProperty {
        DayOfTheWeek = "dayOfTheWeek",
        Time = "time"
    }
};
```

Golang:

```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"

matchingProperty := &MatchingProperty{
	Enabled: jsii.Boolean(false),

	// the properties below are optional
	AutoMerging: &AutoMergingProperty{
		Enabled: jsii.Boolean(false),

		// the properties below are optional
		ConflictResolution: &ConflictResolutionProperty{
			ConflictResolvingModel: jsii.String("conflictResolvingModel"),

			// the properties below are optional
			SourceName: jsii.String("sourceName"),
		},
		Consolidation: &ConsolidationProperty{
			MatchingAttributesList: []interface{}{
				[]*string{
					jsii.String("matchingAttributesList"),
				},
			},
		},
		MinAllowedConfidenceScoreForMerging: jsii.Number(123),
	},
	ExportingConfig: &ExportingConfigProperty{
		S3Exporting: &S3ExportingConfigProperty{
			S3BucketName: jsii.String("s3BucketName"),

			// the properties below are optional
			S3KeyName: jsii.String("s3KeyName"),
		},
	},
	JobSchedule: &JobScheduleProperty{
		DayOfTheWeek: jsii.String("dayOfTheWeek"),
		Time: jsii.String("time"),
	},
}
```

## Properties

- `autoMerging`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDomain.AutoMergingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnDomain.AutoMergingProperty.html) — Configuration information about the auto-merging process.

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — The flag that enables the matching process of duplicate profiles.

- `exportingConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDomain.ExportingConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnDomain.ExportingConfigProperty.html) — The S3 location where Identity Resolution Jobs write result files.

- `jobSchedule`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDomain.JobScheduleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnDomain.JobScheduleProperty.html) — The day and time when do you want to start the Identity Resolution Job every week.
