aws-sdk-customerprofiles 1.23.0 → 1.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03cf9cfce6be419e6b6410e9f48f4429d47c923ab8ad650a072dad70bfd6798d
4
- data.tar.gz: 9ee21be8c5711df078cea3507ce3e17e6107e7a035338fe4b117903e24a8d235
3
+ metadata.gz: 873f685772d2b81ed1bd473376590ebb073ffdfd4337bf7fa7956b26da63307c
4
+ data.tar.gz: 10d62a0420366eefcb3ba8788ec895b7b0af66470ed54f447f9f0aff5932618e
5
5
  SHA512:
6
- metadata.gz: d30f9b58207015f9476744677031b47b2a5692822a9f91cc1e6e44584cb9e941b7c3a07f0fcfafcecd2b54690b06e5e305d88f2ad61c3c586f102fd48e90d139
7
- data.tar.gz: 0b71ce4c7a787c8027a8f3636debb01cf7cc8b064b7295a83ae58e845d8c1b05f81b47e06b8f4828131f3679904b6a3f7ad3d4f5c0c5c4f803d6d7e3e1f2cb58
6
+ metadata.gz: 7035a3ffe7ad88607d0a7d26290e73089d1148bc4a905d5bd12a32bf63a28bf2810f40683f631ce6cd097bcd76d8e5967f56a90ba3a32aed3cdee047a0cf2ec3
7
+ data.tar.gz: a62a75ba126b5792bedb14b5cfb849b5a361f9454f49572b365faa09f1a120331393ef380094ed048e32c8b18a480ff5b1dc05ec5d3aa29b8c2c72e56c0f424f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.24.0 (2022-11-14)
5
+ ------------------
6
+
7
+ * Feature - This release enhances the SearchProfiles API by providing functionality to search for profiles using multiple keys and logical operators.
8
+
4
9
  1.23.0 (2022-10-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.23.0
1
+ 1.24.0
@@ -2532,8 +2532,14 @@ module Aws::CustomerProfiles
2532
2532
  req.send_request(options)
2533
2533
  end
2534
2534
 
2535
- # Searches for profiles within a specific domain name using name, phone
2536
- # number, email address, account number, or a custom defined index.
2535
+ # Searches for profiles within a specific domain using one or more
2536
+ # predefined search keys (e.g., \_fullName, \_phone, \_email, \_account,
2537
+ # etc.) and/or custom-defined search keys. A search key is a data type
2538
+ # pair that consists of a `KeyName` and `Values` list.
2539
+ #
2540
+ # This operation supports searching for profiles with a minimum of 1
2541
+ # key-value(s) pair and up to 5 key-value(s) pairs using either `AND` or
2542
+ # `OR` logic.
2537
2543
  #
2538
2544
  # @option params [String] :next_token
2539
2545
  # The pagination token from the previous SearchProfiles API call.
@@ -2541,6 +2547,8 @@ module Aws::CustomerProfiles
2541
2547
  # @option params [Integer] :max_results
2542
2548
  # The maximum number of objects returned per page.
2543
2549
  #
2550
+ # The default is 20 if this parameter is not included in the request.
2551
+ #
2544
2552
  # @option params [required, String] :domain_name
2545
2553
  # The unique name of the domain.
2546
2554
  #
@@ -2556,6 +2564,33 @@ module Aws::CustomerProfiles
2556
2564
  # @option params [required, Array<String>] :values
2557
2565
  # A list of key values.
2558
2566
  #
2567
+ # @option params [Array<Types::AdditionalSearchKey>] :additional_search_keys
2568
+ # A list of `AdditionalSearchKey` objects that are each searchable
2569
+ # identifiers of a profile. Each `AdditionalSearchKey` object contains a
2570
+ # `KeyName` and a list of `Values` associated with that specific key
2571
+ # (i.e., a key-value(s) pair). These additional search keys will be used
2572
+ # in conjunction with the `LogicalOperator` and the required `KeyName`
2573
+ # and `Values` parameters to search for profiles that satisfy the search
2574
+ # criteria.
2575
+ #
2576
+ # @option params [String] :logical_operator
2577
+ # Relationship between all specified search keys that will be used to
2578
+ # search for profiles. This includes the required `KeyName` and `Values`
2579
+ # parameters as well as any key-value(s) pairs specified in the
2580
+ # `AdditionalSearchKeys` list.
2581
+ #
2582
+ # This parameter influences which profiles will be returned in the
2583
+ # response in the following manner:
2584
+ #
2585
+ # * `AND` - The response only includes profiles that match all of the
2586
+ # search keys.
2587
+ #
2588
+ # * `OR` - The response includes profiles that match at least one of the
2589
+ # search keys.
2590
+ #
2591
+ # The `OR` relationship is the default behavior if this parameter is not
2592
+ # included in the request.
2593
+ #
2559
2594
  # @return [Types::SearchProfilesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2560
2595
  #
2561
2596
  # * {Types::SearchProfilesResponse#items #items} => Array&lt;Types::Profile&gt;
@@ -2569,6 +2604,13 @@ module Aws::CustomerProfiles
2569
2604
  # domain_name: "name", # required
2570
2605
  # key_name: "name", # required
2571
2606
  # values: ["string1To255"], # required
2607
+ # additional_search_keys: [
2608
+ # {
2609
+ # key_name: "name", # required
2610
+ # values: ["string1To255"], # required
2611
+ # },
2612
+ # ],
2613
+ # logical_operator: "AND", # accepts AND, OR
2572
2614
  # })
2573
2615
  #
2574
2616
  # @example Response structure
@@ -2633,6 +2675,10 @@ module Aws::CustomerProfiles
2633
2675
  # resp.items[0].billing_address.postal_code #=> String
2634
2676
  # resp.items[0].attributes #=> Hash
2635
2677
  # resp.items[0].attributes["string1To255"] #=> String
2678
+ # resp.items[0].found_by_items #=> Array
2679
+ # resp.items[0].found_by_items[0].key_name #=> String
2680
+ # resp.items[0].found_by_items[0].values #=> Array
2681
+ # resp.items[0].found_by_items[0].values[0] #=> String
2636
2682
  # resp.next_token #=> String
2637
2683
  #
2638
2684
  # @see http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/SearchProfiles AWS API Documentation
@@ -3042,7 +3088,7 @@ module Aws::CustomerProfiles
3042
3088
  params: params,
3043
3089
  config: config)
3044
3090
  context[:gem_name] = 'aws-sdk-customerprofiles'
3045
- context[:gem_version] = '1.23.0'
3091
+ context[:gem_version] = '1.24.0'
3046
3092
  Seahorse::Client::Request.new(handlers, context)
3047
3093
  end
3048
3094
 
@@ -16,6 +16,7 @@ module Aws::CustomerProfiles
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
17
  AddProfileKeyRequest = Shapes::StructureShape.new(name: 'AddProfileKeyRequest')
18
18
  AddProfileKeyResponse = Shapes::StructureShape.new(name: 'AddProfileKeyResponse')
19
+ AdditionalSearchKey = Shapes::StructureShape.new(name: 'AdditionalSearchKey')
19
20
  Address = Shapes::StructureShape.new(name: 'Address')
20
21
  AppflowIntegration = Shapes::StructureShape.new(name: 'AppflowIntegration')
21
22
  AppflowIntegrationWorkflowAttributes = Shapes::StructureShape.new(name: 'AppflowIntegrationWorkflowAttributes')
@@ -71,6 +72,7 @@ module Aws::CustomerProfiles
71
72
  FlowDefinition = Shapes::StructureShape.new(name: 'FlowDefinition')
72
73
  FlowDescription = Shapes::StringShape.new(name: 'FlowDescription')
73
74
  FlowName = Shapes::StringShape.new(name: 'FlowName')
75
+ FoundByKeyValue = Shapes::StructureShape.new(name: 'FoundByKeyValue')
74
76
  Gender = Shapes::StringShape.new(name: 'Gender')
75
77
  GetAutoMergingPreviewRequest = Shapes::StructureShape.new(name: 'GetAutoMergingPreviewRequest')
76
78
  GetAutoMergingPreviewResponse = Shapes::StructureShape.new(name: 'GetAutoMergingPreviewResponse')
@@ -213,9 +215,12 @@ module Aws::CustomerProfiles
213
215
  WorkflowType = Shapes::StringShape.new(name: 'WorkflowType')
214
216
  ZendeskConnectorOperator = Shapes::StringShape.new(name: 'ZendeskConnectorOperator')
215
217
  ZendeskSourceProperties = Shapes::StructureShape.new(name: 'ZendeskSourceProperties')
218
+ additionalSearchKeysList = Shapes::ListShape.new(name: 'additionalSearchKeysList')
216
219
  boolean = Shapes::BooleanShape.new(name: 'boolean')
217
220
  encryptionKey = Shapes::StringShape.new(name: 'encryptionKey')
218
221
  expirationDaysInteger = Shapes::IntegerShape.new(name: 'expirationDaysInteger')
222
+ foundByList = Shapes::ListShape.new(name: 'foundByList')
223
+ logicalOperator = Shapes::StringShape.new(name: 'logicalOperator')
219
224
  long = Shapes::IntegerShape.new(name: 'long')
220
225
  matchesNumber = Shapes::IntegerShape.new(name: 'matchesNumber')
221
226
  maxSize100 = Shapes::IntegerShape.new(name: 'maxSize100')
@@ -252,6 +257,10 @@ module Aws::CustomerProfiles
252
257
  AddProfileKeyResponse.add_member(:values, Shapes::ShapeRef.new(shape: requestValueList, location_name: "Values"))
253
258
  AddProfileKeyResponse.struct_class = Types::AddProfileKeyResponse
254
259
 
260
+ AdditionalSearchKey.add_member(:key_name, Shapes::ShapeRef.new(shape: name, required: true, location_name: "KeyName"))
261
+ AdditionalSearchKey.add_member(:values, Shapes::ShapeRef.new(shape: requestValueList, required: true, location_name: "Values"))
262
+ AdditionalSearchKey.struct_class = Types::AdditionalSearchKey
263
+
255
264
  Address.add_member(:address_1, Shapes::ShapeRef.new(shape: string1To255, location_name: "Address1"))
256
265
  Address.add_member(:address_2, Shapes::ShapeRef.new(shape: string1To255, location_name: "Address2"))
257
266
  Address.add_member(:address_3, Shapes::ShapeRef.new(shape: string1To255, location_name: "Address3"))
@@ -481,6 +490,10 @@ module Aws::CustomerProfiles
481
490
  FlowDefinition.add_member(:trigger_config, Shapes::ShapeRef.new(shape: TriggerConfig, required: true, location_name: "TriggerConfig"))
482
491
  FlowDefinition.struct_class = Types::FlowDefinition
483
492
 
493
+ FoundByKeyValue.add_member(:key_name, Shapes::ShapeRef.new(shape: name, location_name: "KeyName"))
494
+ FoundByKeyValue.add_member(:values, Shapes::ShapeRef.new(shape: requestValueList, location_name: "Values"))
495
+ FoundByKeyValue.struct_class = Types::FoundByKeyValue
496
+
484
497
  GetAutoMergingPreviewRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: name, required: true, location: "uri", location_name: "DomainName"))
485
498
  GetAutoMergingPreviewRequest.add_member(:consolidation, Shapes::ShapeRef.new(shape: Consolidation, required: true, location_name: "Consolidation"))
486
499
  GetAutoMergingPreviewRequest.add_member(:conflict_resolution, Shapes::ShapeRef.new(shape: ConflictResolution, required: true, location_name: "ConflictResolution"))
@@ -843,6 +856,7 @@ module Aws::CustomerProfiles
843
856
  Profile.add_member(:mailing_address, Shapes::ShapeRef.new(shape: Address, location_name: "MailingAddress"))
844
857
  Profile.add_member(:billing_address, Shapes::ShapeRef.new(shape: Address, location_name: "BillingAddress"))
845
858
  Profile.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "Attributes"))
859
+ Profile.add_member(:found_by_items, Shapes::ShapeRef.new(shape: foundByList, location_name: "FoundByItems"))
846
860
  Profile.struct_class = Types::Profile
847
861
 
848
862
  ProfileIdList.member = Shapes::ShapeRef.new(shape: uuid)
@@ -945,6 +959,8 @@ module Aws::CustomerProfiles
945
959
  SearchProfilesRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: name, required: true, location: "uri", location_name: "DomainName"))
946
960
  SearchProfilesRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: name, required: true, location_name: "KeyName"))
947
961
  SearchProfilesRequest.add_member(:values, Shapes::ShapeRef.new(shape: requestValueList, required: true, location_name: "Values"))
962
+ SearchProfilesRequest.add_member(:additional_search_keys, Shapes::ShapeRef.new(shape: additionalSearchKeysList, location_name: "AdditionalSearchKeys"))
963
+ SearchProfilesRequest.add_member(:logical_operator, Shapes::ShapeRef.new(shape: logicalOperator, location_name: "LogicalOperator"))
948
964
  SearchProfilesRequest.struct_class = Types::SearchProfilesRequest
949
965
 
950
966
  SearchProfilesResponse.add_member(:items, Shapes::ShapeRef.new(shape: ProfileList, location_name: "Items"))
@@ -1087,6 +1103,10 @@ module Aws::CustomerProfiles
1087
1103
  ZendeskSourceProperties.add_member(:object, Shapes::ShapeRef.new(shape: Object, required: true, location_name: "Object"))
1088
1104
  ZendeskSourceProperties.struct_class = Types::ZendeskSourceProperties
1089
1105
 
1106
+ additionalSearchKeysList.member = Shapes::ShapeRef.new(shape: AdditionalSearchKey)
1107
+
1108
+ foundByList.member = Shapes::ShapeRef.new(shape: FoundByKeyValue)
1109
+
1090
1110
  requestValueList.member = Shapes::ShapeRef.new(shape: string1To255)
1091
1111
 
1092
1112
 
@@ -83,6 +83,41 @@ module Aws::CustomerProfiles
83
83
  include Aws::Structure
84
84
  end
85
85
 
86
+ # A data type pair that consists of a `KeyName` and `Values` list that
87
+ # is used in conjunction with the [KeyName][1] and [Values][2]
88
+ # parameters to search for profiles using the [SearchProfiles][3] API.
89
+ #
90
+ #
91
+ #
92
+ # [1]: https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html#customerprofiles-SearchProfiles-request-KeyName
93
+ # [2]: https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html#customerprofiles-SearchProfiles-request-Values
94
+ # [3]: https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html
95
+ #
96
+ # @note When making an API call, you may pass AdditionalSearchKey
97
+ # data as a hash:
98
+ #
99
+ # {
100
+ # key_name: "name", # required
101
+ # values: ["string1To255"], # required
102
+ # }
103
+ #
104
+ # @!attribute [rw] key_name
105
+ # A searchable identifier of a customer profile.
106
+ # @return [String]
107
+ #
108
+ # @!attribute [rw] values
109
+ # A list of key values.
110
+ # @return [Array<String>]
111
+ #
112
+ # @see http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/AdditionalSearchKey AWS API Documentation
113
+ #
114
+ class AdditionalSearchKey < Struct.new(
115
+ :key_name,
116
+ :values)
117
+ SENSITIVE = []
118
+ include Aws::Structure
119
+ end
120
+
86
121
  # A generic address associated with the customer that is not mailing,
87
122
  # shipping, or billing.
88
123
  #
@@ -1693,6 +1728,31 @@ module Aws::CustomerProfiles
1693
1728
  include Aws::Structure
1694
1729
  end
1695
1730
 
1731
+ # A data type pair that consists of a `KeyName` and `Values` list that
1732
+ # were used to find a profile returned in response to a
1733
+ # [SearchProfiles][1] request.
1734
+ #
1735
+ #
1736
+ #
1737
+ # [1]: https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html
1738
+ #
1739
+ # @!attribute [rw] key_name
1740
+ # A searchable identifier of a customer profile.
1741
+ # @return [String]
1742
+ #
1743
+ # @!attribute [rw] values
1744
+ # A list of key values.
1745
+ # @return [Array<String>]
1746
+ #
1747
+ # @see http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/FoundByKeyValue AWS API Documentation
1748
+ #
1749
+ class FoundByKeyValue < Struct.new(
1750
+ :key_name,
1751
+ :values)
1752
+ SENSITIVE = []
1753
+ include Aws::Structure
1754
+ end
1755
+
1696
1756
  # @note When making an API call, you may pass GetAutoMergingPreviewRequest
1697
1757
  # data as a hash:
1698
1758
  #
@@ -3796,6 +3856,34 @@ module Aws::CustomerProfiles
3796
3856
  # A key value pair of attributes of a customer profile.
3797
3857
  # @return [Hash<String,String>]
3798
3858
  #
3859
+ # @!attribute [rw] found_by_items
3860
+ # A list of items used to find a profile returned in a
3861
+ # [SearchProfiles][1] response. An item is a key-value(s) pair that
3862
+ # matches an attribute in the profile.
3863
+ #
3864
+ # If the optional `AdditionalSearchKeys` parameter was included in the
3865
+ # [SearchProfiles][1] request, the `FoundByItems` list should be
3866
+ # interpreted based on the `LogicalOperator` used in the request:
3867
+ #
3868
+ # * `AND` - The profile included in the response matched all of the
3869
+ # search keys specified in the request. The `FoundByItems` will
3870
+ # include all of the key-value(s) pairs that were specified in the
3871
+ # request (as this is a requirement of `AND` search logic).
3872
+ #
3873
+ # * `OR` - The profile included in the response matched at least one
3874
+ # of the search keys specified in the request. The `FoundByItems`
3875
+ # will include each of the key-value(s) pairs that the profile was
3876
+ # found by.
3877
+ #
3878
+ # The `OR` relationship is the default behavior if the
3879
+ # `LogicalOperator` parameter is not included in the
3880
+ # [SearchProfiles][1] request.
3881
+ #
3882
+ #
3883
+ #
3884
+ # [1]: https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html
3885
+ # @return [Array<Types::FoundByKeyValue>]
3886
+ #
3799
3887
  # @see http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/Profile AWS API Documentation
3800
3888
  #
3801
3889
  class Profile < Struct.new(
@@ -3820,7 +3908,8 @@ module Aws::CustomerProfiles
3820
3908
  :shipping_address,
3821
3909
  :mailing_address,
3822
3910
  :billing_address,
3823
- :attributes)
3911
+ :attributes,
3912
+ :found_by_items)
3824
3913
  SENSITIVE = []
3825
3914
  include Aws::Structure
3826
3915
  end
@@ -4445,6 +4534,13 @@ module Aws::CustomerProfiles
4445
4534
  # domain_name: "name", # required
4446
4535
  # key_name: "name", # required
4447
4536
  # values: ["string1To255"], # required
4537
+ # additional_search_keys: [
4538
+ # {
4539
+ # key_name: "name", # required
4540
+ # values: ["string1To255"], # required
4541
+ # },
4542
+ # ],
4543
+ # logical_operator: "AND", # accepts AND, OR
4448
4544
  # }
4449
4545
  #
4450
4546
  # @!attribute [rw] next_token
@@ -4453,6 +4549,8 @@ module Aws::CustomerProfiles
4453
4549
  #
4454
4550
  # @!attribute [rw] max_results
4455
4551
  # The maximum number of objects returned per page.
4552
+ #
4553
+ # The default is 20 if this parameter is not included in the request.
4456
4554
  # @return [Integer]
4457
4555
  #
4458
4556
  # @!attribute [rw] domain_name
@@ -4473,6 +4571,35 @@ module Aws::CustomerProfiles
4473
4571
  # A list of key values.
4474
4572
  # @return [Array<String>]
4475
4573
  #
4574
+ # @!attribute [rw] additional_search_keys
4575
+ # A list of `AdditionalSearchKey` objects that are each searchable
4576
+ # identifiers of a profile. Each `AdditionalSearchKey` object contains
4577
+ # a `KeyName` and a list of `Values` associated with that specific key
4578
+ # (i.e., a key-value(s) pair). These additional search keys will be
4579
+ # used in conjunction with the `LogicalOperator` and the required
4580
+ # `KeyName` and `Values` parameters to search for profiles that
4581
+ # satisfy the search criteria.
4582
+ # @return [Array<Types::AdditionalSearchKey>]
4583
+ #
4584
+ # @!attribute [rw] logical_operator
4585
+ # Relationship between all specified search keys that will be used to
4586
+ # search for profiles. This includes the required `KeyName` and
4587
+ # `Values` parameters as well as any key-value(s) pairs specified in
4588
+ # the `AdditionalSearchKeys` list.
4589
+ #
4590
+ # This parameter influences which profiles will be returned in the
4591
+ # response in the following manner:
4592
+ #
4593
+ # * `AND` - The response only includes profiles that match all of the
4594
+ # search keys.
4595
+ #
4596
+ # * `OR` - The response includes profiles that match at least one of
4597
+ # the search keys.
4598
+ #
4599
+ # The `OR` relationship is the default behavior if this parameter is
4600
+ # not included in the request.
4601
+ # @return [String]
4602
+ #
4476
4603
  # @see http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/SearchProfilesRequest AWS API Documentation
4477
4604
  #
4478
4605
  class SearchProfilesRequest < Struct.new(
@@ -4480,13 +4607,15 @@ module Aws::CustomerProfiles
4480
4607
  :max_results,
4481
4608
  :domain_name,
4482
4609
  :key_name,
4483
- :values)
4610
+ :values,
4611
+ :additional_search_keys,
4612
+ :logical_operator)
4484
4613
  SENSITIVE = []
4485
4614
  include Aws::Structure
4486
4615
  end
4487
4616
 
4488
4617
  # @!attribute [rw] items
4489
- # The list of SearchProfiles instances.
4618
+ # The list of Profiles matching the search criteria.
4490
4619
  # @return [Array<Types::Profile>]
4491
4620
  #
4492
4621
  # @!attribute [rw] next_token
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-customerprofiles/customizations'
52
52
  # @!group service
53
53
  module Aws::CustomerProfiles
54
54
 
55
- GEM_VERSION = '1.23.0'
55
+ GEM_VERSION = '1.24.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-customerprofiles
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.0
4
+ version: 1.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-25 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core