Class: AWSCDK::CustomerProfiles::CfnDomain::AttributeTypesSelectorProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_matching_model:, address: nil, email_address: nil, phone_number: nil) ⇒ AttributeTypesSelectorProperty

Returns a new instance of AttributeTypesSelectorProperty.

Parameters:

  • attribute_matching_model (String)

    Configures the AttributeMatchingModel , you can either choose ONE_TO_ONE or MANY_TO_MANY .

  • address (Array<String>, nil) (defaults to: nil)

    The Address type.

  • email_address (Array<String>, nil) (defaults to: nil)

    The Email type.

  • phone_number (Array<String>, nil) (defaults to: nil)

    The PhoneNumber type.



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

#addressArray<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_modelString (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_addressArray<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_numberArray<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_propertiesObject



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_jsiiObject



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