aws-sdk-customerprofiles 1.39.0 → 1.40.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: 35d9777d55c852c9d1cd31a09e782670226656eb95c64ea20bf460ab878f6f89
4
- data.tar.gz: 7e3e2846a25c8d0e70318be54768835f41d4ffc47eecdcecad152bec39c8088b
3
+ metadata.gz: 0b26edfbb79b7db914e6da8698341776fba8b5f446197d170a0681f14dff126f
4
+ data.tar.gz: 8612ab08793dee8778f95707d8808fff308db81a2123ad3237468c7f60705ba6
5
5
  SHA512:
6
- metadata.gz: b2e0ba1b55f78191121c76ddc414b76994515b631ce30e1f23a19090da86f6b2df4c16f1d4cc7c56c35f60c8954f4e510501c1bb6fb4f0fe804c0c8d028ea3ec
7
- data.tar.gz: 91588be806dbfb36d33ce7a98402e7256fbc9cadd3c77aafc4b1cb3b11b325b2eb3b6711ecb54c8b9ca2d4d1b7c919482c5c0a84c056c5416693a2dd5d73c6bb
6
+ metadata.gz: 4d93aaabaa07c13070ed95920fb62dd4f4fa4086b1dbe660f5398d02a3052271ddc70a0c30ca2acacb89a3034945825fef3e22d6196d8591727e2b1963d347e9
7
+ data.tar.gz: daf20276adb55c3cb9448ce27e878b65a2e42111f16c502f528472f80e8bf6326bf1abad59d1d825cdf940200cb5d083efbeda26cbf44f75eb7614a81ab70832
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.40.0 (2023-11-28)
5
+ ------------------
6
+
7
+ * Feature - This release introduces DetectProfileObjectType API to auto generate object type mapping.
8
+
4
9
  1.39.0 (2023-11-22)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.39.0
1
+ 1.40.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.40.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
@@ -25,16 +25,17 @@ module Aws::CustomerProfiles
25
25
  # @api private
26
26
  class Handler < Seahorse::Client::Handler
27
27
  def call(context)
28
- # If endpoint was discovered, do not resolve or apply the endpoint.
29
28
  unless context[:discovered_endpoint]
30
29
  params = parameters_for_operation(context)
31
30
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
31
 
33
32
  context.http_request.endpoint = endpoint.url
34
33
  apply_endpoint_headers(context, endpoint.headers)
34
+
35
+ context[:endpoint_params] = params
36
+ context[:endpoint_properties] = endpoint.properties
35
37
  end
36
38
 
37
- context[:endpoint_params] = params
38
39
  context[:auth_scheme] =
39
40
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
41
 
@@ -86,6 +87,8 @@ module Aws::CustomerProfiles
86
87
  Aws::CustomerProfiles::Endpoints::DeleteProfileObjectType.build(context)
87
88
  when :delete_workflow
88
89
  Aws::CustomerProfiles::Endpoints::DeleteWorkflow.build(context)
90
+ when :detect_profile_object_type
91
+ Aws::CustomerProfiles::Endpoints::DetectProfileObjectType.build(context)
89
92
  when :get_auto_merging_preview
90
93
  Aws::CustomerProfiles::Endpoints::GetAutoMergingPreview.build(context)
91
94
  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.40.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.39.0
4
+ version: 1.40.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: 2023-11-22 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core