aws-sdk-customerprofiles 1.39.0 → 1.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35d9777d55c852c9d1cd31a09e782670226656eb95c64ea20bf460ab878f6f89
4
- data.tar.gz: 7e3e2846a25c8d0e70318be54768835f41d4ffc47eecdcecad152bec39c8088b
3
+ metadata.gz: db462ce417d25ded1c13f1b470f62c05a9a8146abe7da9691eb3fa2e49ce33b4
4
+ data.tar.gz: b872b4157c14cd93b8bd1b9af200c9d3472cbf15908b3b8d5316f776ee5ddf2a
5
5
  SHA512:
6
- metadata.gz: b2e0ba1b55f78191121c76ddc414b76994515b631ce30e1f23a19090da86f6b2df4c16f1d4cc7c56c35f60c8954f4e510501c1bb6fb4f0fe804c0c8d028ea3ec
7
- data.tar.gz: 91588be806dbfb36d33ce7a98402e7256fbc9cadd3c77aafc4b1cb3b11b325b2eb3b6711ecb54c8b9ca2d4d1b7c919482c5c0a84c056c5416693a2dd5d73c6bb
6
+ metadata.gz: 498c8ce0055453e84f9f7f56507d7342f0d014583dd2f124885eb2851610a1e7f02ba13359a346bde08a97b116cd9ececa88b62b8725b57c5e59b692b89248c3
7
+ data.tar.gz: 0e9d2272c4c1c4633dd1dfcbd5a937f1829443f503f55513c5ed71af193e8249d8ac374510f8e8c32fca9f362cfc16c2af2a2d8a0a7a942953710ed5d4b6927c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.41.0 (2024-01-26)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.40.0 (2023-11-28)
10
+ ------------------
11
+
12
+ * Feature - This release introduces DetectProfileObjectType API to auto generate object type mapping.
13
+
4
14
  1.39.0 (2023-11-22)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.41.0
@@ -1393,6 +1393,50 @@ module Aws::CustomerProfiles
1393
1393
  req.send_request(options)
1394
1394
  end
1395
1395
 
1396
+ # The process of detecting profile object type mapping by using given
1397
+ # objects.
1398
+ #
1399
+ # @option params [required, Array<String>] :objects
1400
+ # A string that is serialized from a JSON object.
1401
+ #
1402
+ # @option params [required, String] :domain_name
1403
+ # The unique name of the domain.
1404
+ #
1405
+ # @return [Types::DetectProfileObjectTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1406
+ #
1407
+ # * {Types::DetectProfileObjectTypeResponse#detected_profile_object_types #detected_profile_object_types} => Array&lt;Types::DetectedProfileObjectType&gt;
1408
+ #
1409
+ # @example Request syntax with placeholder values
1410
+ #
1411
+ # resp = client.detect_profile_object_type({
1412
+ # objects: ["stringifiedJson"], # required
1413
+ # domain_name: "name", # required
1414
+ # })
1415
+ #
1416
+ # @example Response structure
1417
+ #
1418
+ # resp.detected_profile_object_types #=> Array
1419
+ # resp.detected_profile_object_types[0].source_last_updated_timestamp_format #=> String
1420
+ # resp.detected_profile_object_types[0].fields #=> Hash
1421
+ # resp.detected_profile_object_types[0].fields["name"].source #=> String
1422
+ # resp.detected_profile_object_types[0].fields["name"].target #=> String
1423
+ # resp.detected_profile_object_types[0].fields["name"].content_type #=> String, one of "STRING", "NUMBER", "PHONE_NUMBER", "EMAIL_ADDRESS", "NAME"
1424
+ # resp.detected_profile_object_types[0].keys #=> Hash
1425
+ # resp.detected_profile_object_types[0].keys["name"] #=> Array
1426
+ # resp.detected_profile_object_types[0].keys["name"][0].standard_identifiers #=> Array
1427
+ # resp.detected_profile_object_types[0].keys["name"][0].standard_identifiers[0] #=> String, one of "PROFILE", "ASSET", "CASE", "UNIQUE", "SECONDARY", "LOOKUP_ONLY", "NEW_ONLY", "ORDER"
1428
+ # resp.detected_profile_object_types[0].keys["name"][0].field_names #=> Array
1429
+ # resp.detected_profile_object_types[0].keys["name"][0].field_names[0] #=> String
1430
+ #
1431
+ # @see http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/DetectProfileObjectType AWS API Documentation
1432
+ #
1433
+ # @overload detect_profile_object_type(params = {})
1434
+ # @param [Hash] params ({})
1435
+ def detect_profile_object_type(params = {}, options = {})
1436
+ req = build_request(:detect_profile_object_type, params)
1437
+ req.send_request(options)
1438
+ end
1439
+
1396
1440
  # Tests the auto-merging settings of your Identity Resolution Job
1397
1441
  # without merging your data. It randomly selects a sample of matching
1398
1442
  # groups from the existing matching results, and applies the automerging
@@ -3944,7 +3988,7 @@ module Aws::CustomerProfiles
3944
3988
  params: params,
3945
3989
  config: config)
3946
3990
  context[:gem_name] = 'aws-sdk-customerprofiles'
3947
- context[:gem_version] = '1.39.0'
3991
+ context[:gem_version] = '1.41.0'
3948
3992
  Seahorse::Client::Request.new(handlers, context)
3949
3993
  end
3950
3994
 
@@ -77,6 +77,10 @@ module Aws::CustomerProfiles
77
77
  DeleteWorkflowResponse = Shapes::StructureShape.new(name: 'DeleteWorkflowResponse')
78
78
  DestinationField = Shapes::StringShape.new(name: 'DestinationField')
79
79
  DestinationSummary = Shapes::StructureShape.new(name: 'DestinationSummary')
80
+ DetectProfileObjectTypeRequest = Shapes::StructureShape.new(name: 'DetectProfileObjectTypeRequest')
81
+ DetectProfileObjectTypeResponse = Shapes::StructureShape.new(name: 'DetectProfileObjectTypeResponse')
82
+ DetectedProfileObjectType = Shapes::StructureShape.new(name: 'DetectedProfileObjectType')
83
+ DetectedProfileObjectTypes = Shapes::ListShape.new(name: 'DetectedProfileObjectTypes')
80
84
  DomainList = Shapes::ListShape.new(name: 'DomainList')
81
85
  DomainStats = Shapes::StructureShape.new(name: 'DomainStats')
82
86
  Double = Shapes::FloatShape.new(name: 'Double')
@@ -195,6 +199,7 @@ module Aws::CustomerProfiles
195
199
  ObjectTypeKey = Shapes::StructureShape.new(name: 'ObjectTypeKey')
196
200
  ObjectTypeKeyList = Shapes::ListShape.new(name: 'ObjectTypeKeyList')
197
201
  ObjectTypeNames = Shapes::MapShape.new(name: 'ObjectTypeNames')
202
+ Objects = Shapes::ListShape.new(name: 'Objects')
198
203
  Operator = Shapes::StringShape.new(name: 'Operator')
199
204
  OperatorPropertiesKeys = Shapes::StringShape.new(name: 'OperatorPropertiesKeys')
200
205
  PartyType = Shapes::StringShape.new(name: 'PartyType')
@@ -587,6 +592,20 @@ module Aws::CustomerProfiles
587
592
  DestinationSummary.add_member(:unhealthy_since, Shapes::ShapeRef.new(shape: timestamp, location_name: "UnhealthySince"))
588
593
  DestinationSummary.struct_class = Types::DestinationSummary
589
594
 
595
+ DetectProfileObjectTypeRequest.add_member(:objects, Shapes::ShapeRef.new(shape: Objects, required: true, location_name: "Objects"))
596
+ DetectProfileObjectTypeRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: name, required: true, location: "uri", location_name: "DomainName"))
597
+ DetectProfileObjectTypeRequest.struct_class = Types::DetectProfileObjectTypeRequest
598
+
599
+ DetectProfileObjectTypeResponse.add_member(:detected_profile_object_types, Shapes::ShapeRef.new(shape: DetectedProfileObjectTypes, location_name: "DetectedProfileObjectTypes"))
600
+ DetectProfileObjectTypeResponse.struct_class = Types::DetectProfileObjectTypeResponse
601
+
602
+ DetectedProfileObjectType.add_member(:source_last_updated_timestamp_format, Shapes::ShapeRef.new(shape: string1To255, location_name: "SourceLastUpdatedTimestampFormat"))
603
+ DetectedProfileObjectType.add_member(:fields, Shapes::ShapeRef.new(shape: FieldMap, location_name: "Fields"))
604
+ DetectedProfileObjectType.add_member(:keys, Shapes::ShapeRef.new(shape: KeyMap, location_name: "Keys"))
605
+ DetectedProfileObjectType.struct_class = Types::DetectedProfileObjectType
606
+
607
+ DetectedProfileObjectTypes.member = Shapes::ShapeRef.new(shape: DetectedProfileObjectType)
608
+
590
609
  DomainList.member = Shapes::ShapeRef.new(shape: ListDomainItem)
591
610
 
592
611
  DomainStats.add_member(:profile_count, Shapes::ShapeRef.new(shape: long, location_name: "ProfileCount"))
@@ -1116,6 +1135,8 @@ module Aws::CustomerProfiles
1116
1135
  ObjectTypeNames.key = Shapes::ShapeRef.new(shape: string1To255)
1117
1136
  ObjectTypeNames.value = Shapes::ShapeRef.new(shape: typeName)
1118
1137
 
1138
+ Objects.member = Shapes::ShapeRef.new(shape: stringifiedJson)
1139
+
1119
1140
  PhoneNumberList.member = Shapes::ShapeRef.new(shape: string1To255)
1120
1141
 
1121
1142
  Profile.add_member(:profile_id, Shapes::ShapeRef.new(shape: uuid, location_name: "ProfileId"))
@@ -1658,6 +1679,19 @@ module Aws::CustomerProfiles
1658
1679
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1659
1680
  end)
1660
1681
 
1682
+ api.add_operation(:detect_profile_object_type, Seahorse::Model::Operation.new.tap do |o|
1683
+ o.name = "DetectProfileObjectType"
1684
+ o.http_method = "POST"
1685
+ o.http_request_uri = "/domains/{DomainName}/detect/object-types"
1686
+ o.input = Shapes::ShapeRef.new(shape: DetectProfileObjectTypeRequest)
1687
+ o.output = Shapes::ShapeRef.new(shape: DetectProfileObjectTypeResponse)
1688
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1689
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1690
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1691
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1692
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1693
+ end)
1694
+
1661
1695
  api.add_operation(:get_auto_merging_preview, Seahorse::Model::Operation.new.tap do |o|
1662
1696
  o.name = "GetAutoMergingPreview"
1663
1697
  o.http_method = "POST"
@@ -32,7 +32,7 @@ module Aws::CustomerProfiles
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://profile-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -222,6 +222,20 @@ module Aws::CustomerProfiles
222
222
  end
223
223
  end
224
224
 
225
+ class DetectProfileObjectType
226
+ def self.build(context)
227
+ unless context.config.regional_endpoint
228
+ endpoint = context.config.endpoint.to_s
229
+ end
230
+ Aws::CustomerProfiles::EndpointParameters.new(
231
+ region: context.config.region,
232
+ use_dual_stack: context.config.use_dualstack_endpoint,
233
+ use_fips: context.config.use_fips_endpoint,
234
+ endpoint: endpoint,
235
+ )
236
+ end
237
+ end
238
+
225
239
  class GetAutoMergingPreview
226
240
  def self.build(context)
227
241
  unless context.config.regional_endpoint
@@ -14,6 +14,7 @@ module Aws::CustomerProfiles
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::CustomerProfiles::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -25,16 +26,17 @@ module Aws::CustomerProfiles
25
26
  # @api private
26
27
  class Handler < Seahorse::Client::Handler
27
28
  def call(context)
28
- # If endpoint was discovered, do not resolve or apply the endpoint.
29
29
  unless context[:discovered_endpoint]
30
30
  params = parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
34
34
  apply_endpoint_headers(context, endpoint.headers)
35
+
36
+ context[:endpoint_params] = params
37
+ context[:endpoint_properties] = endpoint.properties
35
38
  end
36
39
 
37
- context[:endpoint_params] = params
38
40
  context[:auth_scheme] =
39
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
42
 
@@ -86,6 +88,8 @@ module Aws::CustomerProfiles
86
88
  Aws::CustomerProfiles::Endpoints::DeleteProfileObjectType.build(context)
87
89
  when :delete_workflow
88
90
  Aws::CustomerProfiles::Endpoints::DeleteWorkflow.build(context)
91
+ when :detect_profile_object_type
92
+ Aws::CustomerProfiles::Endpoints::DetectProfileObjectType.build(context)
89
93
  when :get_auto_merging_preview
90
94
  Aws::CustomerProfiles::Endpoints::GetAutoMergingPreview.build(context)
91
95
  when :get_calculated_attribute_definition
@@ -1373,6 +1373,61 @@ module Aws::CustomerProfiles
1373
1373
  include Aws::Structure
1374
1374
  end
1375
1375
 
1376
+ # @!attribute [rw] objects
1377
+ # A string that is serialized from a JSON object.
1378
+ # @return [Array<String>]
1379
+ #
1380
+ # @!attribute [rw] domain_name
1381
+ # The unique name of the domain.
1382
+ # @return [String]
1383
+ #
1384
+ # @see http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/DetectProfileObjectTypeRequest AWS API Documentation
1385
+ #
1386
+ class DetectProfileObjectTypeRequest < Struct.new(
1387
+ :objects,
1388
+ :domain_name)
1389
+ SENSITIVE = [:objects]
1390
+ include Aws::Structure
1391
+ end
1392
+
1393
+ # @!attribute [rw] detected_profile_object_types
1394
+ # Detected `ProfileObjectType` mappings from given objects. A maximum
1395
+ # of one mapping is supported.
1396
+ # @return [Array<Types::DetectedProfileObjectType>]
1397
+ #
1398
+ # @see http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/DetectProfileObjectTypeResponse AWS API Documentation
1399
+ #
1400
+ class DetectProfileObjectTypeResponse < Struct.new(
1401
+ :detected_profile_object_types)
1402
+ SENSITIVE = []
1403
+ include Aws::Structure
1404
+ end
1405
+
1406
+ # Contains `ProfileObjectType` mapping information from the model.
1407
+ #
1408
+ # @!attribute [rw] source_last_updated_timestamp_format
1409
+ # The format of `sourceLastUpdatedTimestamp` that was detected in
1410
+ # fields.
1411
+ # @return [String]
1412
+ #
1413
+ # @!attribute [rw] fields
1414
+ # A map of the name and the `ObjectType` field.
1415
+ # @return [Hash<String,Types::ObjectTypeField>]
1416
+ #
1417
+ # @!attribute [rw] keys
1418
+ # A list of unique keys that can be used to map data to a profile.
1419
+ # @return [Hash<String,Array<Types::ObjectTypeKey>>]
1420
+ #
1421
+ # @see http://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/DetectedProfileObjectType AWS API Documentation
1422
+ #
1423
+ class DetectedProfileObjectType < Struct.new(
1424
+ :source_last_updated_timestamp_format,
1425
+ :fields,
1426
+ :keys)
1427
+ SENSITIVE = [:fields, :keys]
1428
+ include Aws::Structure
1429
+ end
1430
+
1376
1431
  # Usage-specific statistics about the domain.
1377
1432
  #
1378
1433
  # @!attribute [rw] profile_count
@@ -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.39.0'
55
+ GEM_VERSION = '1.41.0'
56
56
 
57
57
  end