Class: AWSCDK::CustomerProfiles::CfnDomain::AttributeTypesSelectorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CustomerProfiles::CfnDomain::AttributeTypesSelectorProperty
- Defined in:
- customer_profiles/cfn_domain.rb
Overview
Configures information about the AttributeTypesSelector which rule-based identity resolution uses to match profiles.
Instance Attribute Summary collapse
-
#address ⇒ Array<String>?
readonly
The
Addresstype. -
#attribute_matching_model ⇒ String
readonly
Configures the
AttributeMatchingModel, you can either chooseONE_TO_ONEorMANY_TO_MANY. -
#email_address ⇒ Array<String>?
readonly
The Email type.
-
#phone_number ⇒ Array<String>?
readonly
The
PhoneNumbertype.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attribute_matching_model:, address: nil, email_address: nil, phone_number: nil) ⇒ AttributeTypesSelectorProperty
constructor
A new instance of AttributeTypesSelectorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attribute_matching_model:, address: nil, email_address: nil, phone_number: nil) ⇒ AttributeTypesSelectorProperty
Returns a new instance of AttributeTypesSelectorProperty.
659 660 661 662 663 664 665 666 667 668 |
# File 'customer_profiles/cfn_domain.rb', line 659 def initialize(attribute_matching_model:, address: nil, email_address: nil, phone_number: nil) @attribute_matching_model = attribute_matching_model Jsii::Type.check_type(@attribute_matching_model, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeMatchingModel") @address = address Jsii::Type.check_type(@address, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "address") unless @address.nil? @email_address = email_address Jsii::Type.check_type(@email_address, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "emailAddress") unless @email_address.nil? @phone_number = phone_number Jsii::Type.check_type(@phone_number, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "phoneNumber") unless @phone_number.nil? end |
Instance Attribute Details
#address ⇒ Array<String>? (readonly)
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.
681 682 683 |
# File 'customer_profiles/cfn_domain.rb', line 681 def address @address end |
#attribute_matching_model ⇒ String (readonly)
Configures the AttributeMatchingModel , you can either choose ONE_TO_ONE or MANY_TO_MANY .
674 675 676 |
# File 'customer_profiles/cfn_domain.rb', line 674 def attribute_matching_model @attribute_matching_model end |
#email_address ⇒ Array<String>? (readonly)
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.
688 689 690 |
# File 'customer_profiles/cfn_domain.rb', line 688 def email_address @email_address end |
#phone_number ⇒ Array<String>? (readonly)
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.
695 696 697 |
# File 'customer_profiles/cfn_domain.rb', line 695 def phone_number @phone_number end |
Class Method Details
.jsii_properties ⇒ Object
697 698 699 700 701 702 703 704 |
# File 'customer_profiles/cfn_domain.rb', line 697 def self.jsii_properties { :attribute_matching_model => "attributeMatchingModel", :address => "address", :email_address => "emailAddress", :phone_number => "phoneNumber", } end |
Instance Method Details
#to_jsii ⇒ Object
706 707 708 709 710 711 712 713 714 715 |
# File 'customer_profiles/cfn_domain.rb', line 706 def to_jsii result = {} result.merge!({ "attributeMatchingModel" => @attribute_matching_model, "address" => @address, "emailAddress" => @email_address, "phoneNumber" => @phone_number, }) result.compact end |