# AttributeTypesSelectorProperty

Configures information about the `AttributeTypesSelector` which rule-based identity resolution uses to match profiles.

- 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 attributeTypesSelectorProperty: customerprofiles.CfnDomain.AttributeTypesSelectorProperty = {
  attributeMatchingModel: 'attributeMatchingModel',

  // the properties below are optional
  address: ['address'],
  emailAddress: ['emailAddress'],
  phoneNumber: ['phoneNumber'],
};
```

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

attribute_types_selector_property = customerprofiles.CfnDomain.AttributeTypesSelectorProperty(
    attribute_matching_model="attributeMatchingModel",

    # the properties below are optional
    address=["address"],
    email_address=["emailAddress"],
    phone_number=["phoneNumber"]
)
```

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

AttributeTypesSelectorProperty attributeTypesSelectorProperty = AttributeTypesSelectorProperty.builder()
        .attributeMatchingModel("attributeMatchingModel")

        // the properties below are optional
        .address(List.of("address"))
        .emailAddress(List.of("emailAddress"))
        .phoneNumber(List.of("phoneNumber"))
        .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 attributeTypesSelectorProperty = new AttributeTypesSelectorProperty {
    AttributeMatchingModel = "attributeMatchingModel",

    // the properties below are optional
    Address = new [] { "address" },
    EmailAddress = new [] { "emailAddress" },
    PhoneNumber = new [] { "phoneNumber" }
};
```

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"

attributeTypesSelectorProperty := &AttributeTypesSelectorProperty{
	AttributeMatchingModel: jsii.String("attributeMatchingModel"),

	// the properties below are optional
	Address: []*string{
		jsii.String("address"),
	},
	EmailAddress: []*string{
		jsii.String("emailAddress"),
	},
	PhoneNumber: []*string{
		jsii.String("phoneNumber"),
	},
}
```

## Properties

- `address`: string[] — The `Address` type.

  You can choose from `Address` , `BusinessAddress` , `MaillingAddress` , and `ShippingAddress` . You only can use the `Address` type in the `MatchingRule` . For example, if you want to match a profile based on `BusinessAddress.City` or `MaillingAddress.City` , you can choose the `BusinessAddress` and the `MaillingAddress` to represent the `Address` type and specify the `Address.City` on the matching rule.

- `attributeMatchingModel`: string (required) — Configures the `AttributeMatchingModel` , you can either choose `ONE_TO_ONE` or `MANY_TO_MANY` .

- `emailAddress`: string[] — The Email type.

  You can choose from `EmailAddress` , `BusinessEmailAddress` and `PersonalEmailAddress` . You only can use the `EmailAddress` type in the `MatchingRule` . For example, if you want to match profile based on `PersonalEmailAddress` or `BusinessEmailAddress` , you can choose the `PersonalEmailAddress` and the `BusinessEmailAddress` to represent the `EmailAddress` type and only specify the `EmailAddress` on the matching rule.

- `phoneNumber`: string[] — The `PhoneNumber` type.

  You can choose from `PhoneNumber` , `HomePhoneNumber` , and `MobilePhoneNumber` . You only can use the `PhoneNumber` type in the `MatchingRule` . For example, if you want to match a profile based on `Phone` or `HomePhone` , you can choose the `Phone` and the `HomePhone` to represent the `PhoneNumber` type and only specify the `PhoneNumber` on the matching rule.
