@aws-sdk/client-customer-profiles 3.458.0 → 3.461.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.
package/README.md CHANGED
@@ -328,6 +328,14 @@ DeleteWorkflow
328
328
 
329
329
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/customer-profiles/command/DeleteWorkflowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-customer-profiles/Interface/DeleteWorkflowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-customer-profiles/Interface/DeleteWorkflowCommandOutput/)
330
330
 
331
+ </details>
332
+ <details>
333
+ <summary>
334
+ DetectProfileObjectType
335
+ </summary>
336
+
337
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/customer-profiles/command/DetectProfileObjectTypeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-customer-profiles/Interface/DetectProfileObjectTypeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-customer-profiles/Interface/DetectProfileObjectTypeCommandOutput/)
338
+
331
339
  </details>
332
340
  <details>
333
341
  <summary>
@@ -17,6 +17,7 @@ const DeleteProfileKeyCommand_1 = require("./commands/DeleteProfileKeyCommand");
17
17
  const DeleteProfileObjectCommand_1 = require("./commands/DeleteProfileObjectCommand");
18
18
  const DeleteProfileObjectTypeCommand_1 = require("./commands/DeleteProfileObjectTypeCommand");
19
19
  const DeleteWorkflowCommand_1 = require("./commands/DeleteWorkflowCommand");
20
+ const DetectProfileObjectTypeCommand_1 = require("./commands/DetectProfileObjectTypeCommand");
20
21
  const GetAutoMergingPreviewCommand_1 = require("./commands/GetAutoMergingPreviewCommand");
21
22
  const GetCalculatedAttributeDefinitionCommand_1 = require("./commands/GetCalculatedAttributeDefinitionCommand");
22
23
  const GetCalculatedAttributeForProfileCommand_1 = require("./commands/GetCalculatedAttributeForProfileCommand");
@@ -70,6 +71,7 @@ const commands = {
70
71
  DeleteProfileObjectCommand: DeleteProfileObjectCommand_1.DeleteProfileObjectCommand,
71
72
  DeleteProfileObjectTypeCommand: DeleteProfileObjectTypeCommand_1.DeleteProfileObjectTypeCommand,
72
73
  DeleteWorkflowCommand: DeleteWorkflowCommand_1.DeleteWorkflowCommand,
74
+ DetectProfileObjectTypeCommand: DetectProfileObjectTypeCommand_1.DetectProfileObjectTypeCommand,
73
75
  GetAutoMergingPreviewCommand: GetAutoMergingPreviewCommand_1.GetAutoMergingPreviewCommand,
74
76
  GetCalculatedAttributeDefinitionCommand: GetCalculatedAttributeDefinitionCommand_1.GetCalculatedAttributeDefinitionCommand,
75
77
  GetCalculatedAttributeForProfileCommand: GetCalculatedAttributeForProfileCommand_1.GetCalculatedAttributeForProfileCommand,
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DetectProfileObjectTypeCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
+ class DetectProfileObjectTypeCommand extends smithy_client_1.Command {
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
20
+ constructor(input) {
21
+ super();
22
+ this.input = input;
23
+ }
24
+ resolveMiddleware(clientStack, configuration, options) {
25
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DetectProfileObjectTypeCommand.getEndpointParameterInstructions()));
27
+ const stack = clientStack.concat(this.middlewareStack);
28
+ const { logger } = configuration;
29
+ const clientName = "CustomerProfilesClient";
30
+ const commandName = "DetectProfileObjectTypeCommand";
31
+ const handlerExecutionContext = {
32
+ logger,
33
+ clientName,
34
+ commandName,
35
+ inputFilterSensitiveLog: models_0_1.DetectProfileObjectTypeRequestFilterSensitiveLog,
36
+ outputFilterSensitiveLog: models_0_1.DetectProfileObjectTypeResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "CustomerProfiles_20200815",
39
+ operation: "DetectProfileObjectType",
40
+ },
41
+ };
42
+ const { requestHandler } = configuration;
43
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
+ }
45
+ serialize(input, context) {
46
+ return (0, Aws_restJson1_1.se_DetectProfileObjectTypeCommand)(input, context);
47
+ }
48
+ deserialize(output, context) {
49
+ return (0, Aws_restJson1_1.de_DetectProfileObjectTypeCommand)(output, context);
50
+ }
51
+ }
52
+ exports.DetectProfileObjectTypeCommand = DetectProfileObjectTypeCommand;
@@ -16,6 +16,7 @@ tslib_1.__exportStar(require("./DeleteProfileKeyCommand"), exports);
16
16
  tslib_1.__exportStar(require("./DeleteProfileObjectCommand"), exports);
17
17
  tslib_1.__exportStar(require("./DeleteProfileObjectTypeCommand"), exports);
18
18
  tslib_1.__exportStar(require("./DeleteWorkflowCommand"), exports);
19
+ tslib_1.__exportStar(require("./DetectProfileObjectTypeCommand"), exports);
19
20
  tslib_1.__exportStar(require("./GetAutoMergingPreviewCommand"), exports);
20
21
  tslib_1.__exportStar(require("./GetCalculatedAttributeDefinitionCommand"), exports);
21
22
  tslib_1.__exportStar(require("./GetCalculatedAttributeForProfileCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListProfileObjectsResponseFilterSensitiveLog = exports.ListProfileObjectsItemFilterSensitiveLog = exports.ListCalculatedAttributeDefinitionsResponseFilterSensitiveLog = exports.GetProfileObjectTypeTemplateResponseFilterSensitiveLog = exports.GetProfileObjectTypeResponseFilterSensitiveLog = exports.GetCalculatedAttributeDefinitionResponseFilterSensitiveLog = exports.CreateProfileRequestFilterSensitiveLog = exports.CreateIntegrationWorkflowRequestFilterSensitiveLog = exports.IntegrationConfigFilterSensitiveLog = exports.CreateCalculatedAttributeDefinitionResponseFilterSensitiveLog = exports.CreateCalculatedAttributeDefinitionRequestFilterSensitiveLog = exports.ConditionsFilterSensitiveLog = exports.ListCalculatedAttributeDefinitionItemFilterSensitiveLog = exports.AttributeDetailsFilterSensitiveLog = exports.AppflowIntegrationFilterSensitiveLog = exports.FlowDefinitionFilterSensitiveLog = exports.AddressFilterSensitiveLog = exports.LogicalOperator = exports.MatchType = exports.StandardIdentifier = exports.FieldContentType = exports.IdentityResolutionJobStatus = exports.EventStreamState = exports.EventStreamDestinationStatus = exports.PartyType = exports.Gender = exports.WorkflowType = exports.RuleBasedMatchingStatus = exports.JobScheduleDayOfTheWeek = exports.Statistic = exports.Operator = exports.Unit = exports.ConflictResolvingModel = exports.AttributeMatchingModel = exports.Status = exports.TriggerType = exports.DataPullMode = exports.TaskType = exports.OperatorPropertiesKeys = exports.ZendeskConnectorOperator = exports.ServiceNowConnectorOperator = exports.SalesforceConnectorOperator = exports.S3ConnectorOperator = exports.MarketoConnectorOperator = exports.SourceConnectorType = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.BadRequestException = exports.AccessDeniedException = void 0;
4
- exports.UpdateProfileRequestFilterSensitiveLog = exports.UpdateAddressFilterSensitiveLog = exports.UpdateCalculatedAttributeDefinitionResponseFilterSensitiveLog = exports.UpdateCalculatedAttributeDefinitionRequestFilterSensitiveLog = exports.SearchProfilesResponseFilterSensitiveLog = exports.ProfileFilterSensitiveLog = exports.PutProfileObjectTypeResponseFilterSensitiveLog = exports.PutProfileObjectTypeRequestFilterSensitiveLog = exports.PutProfileObjectRequestFilterSensitiveLog = exports.PutIntegrationRequestFilterSensitiveLog = exports.ListProfileObjectTypesResponseFilterSensitiveLog = void 0;
3
+ exports.GetProfileObjectTypeTemplateResponseFilterSensitiveLog = exports.GetProfileObjectTypeResponseFilterSensitiveLog = exports.GetCalculatedAttributeDefinitionResponseFilterSensitiveLog = exports.DetectProfileObjectTypeResponseFilterSensitiveLog = exports.DetectedProfileObjectTypeFilterSensitiveLog = exports.DetectProfileObjectTypeRequestFilterSensitiveLog = exports.CreateProfileRequestFilterSensitiveLog = exports.CreateIntegrationWorkflowRequestFilterSensitiveLog = exports.IntegrationConfigFilterSensitiveLog = exports.CreateCalculatedAttributeDefinitionResponseFilterSensitiveLog = exports.CreateCalculatedAttributeDefinitionRequestFilterSensitiveLog = exports.ConditionsFilterSensitiveLog = exports.ListCalculatedAttributeDefinitionItemFilterSensitiveLog = exports.AttributeDetailsFilterSensitiveLog = exports.AppflowIntegrationFilterSensitiveLog = exports.FlowDefinitionFilterSensitiveLog = exports.AddressFilterSensitiveLog = exports.LogicalOperator = exports.MatchType = exports.IdentityResolutionJobStatus = exports.EventStreamState = exports.EventStreamDestinationStatus = exports.StandardIdentifier = exports.FieldContentType = exports.PartyType = exports.Gender = exports.WorkflowType = exports.RuleBasedMatchingStatus = exports.JobScheduleDayOfTheWeek = exports.Statistic = exports.Operator = exports.Unit = exports.ConflictResolvingModel = exports.AttributeMatchingModel = exports.Status = exports.TriggerType = exports.DataPullMode = exports.TaskType = exports.OperatorPropertiesKeys = exports.ZendeskConnectorOperator = exports.ServiceNowConnectorOperator = exports.SalesforceConnectorOperator = exports.S3ConnectorOperator = exports.MarketoConnectorOperator = exports.SourceConnectorType = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.BadRequestException = exports.AccessDeniedException = void 0;
4
+ exports.UpdateProfileRequestFilterSensitiveLog = exports.UpdateAddressFilterSensitiveLog = exports.UpdateCalculatedAttributeDefinitionResponseFilterSensitiveLog = exports.UpdateCalculatedAttributeDefinitionRequestFilterSensitiveLog = exports.SearchProfilesResponseFilterSensitiveLog = exports.ProfileFilterSensitiveLog = exports.PutProfileObjectTypeResponseFilterSensitiveLog = exports.PutProfileObjectTypeRequestFilterSensitiveLog = exports.PutProfileObjectRequestFilterSensitiveLog = exports.PutIntegrationRequestFilterSensitiveLog = exports.ListProfileObjectTypesResponseFilterSensitiveLog = exports.ListProfileObjectsResponseFilterSensitiveLog = exports.ListProfileObjectsItemFilterSensitiveLog = exports.ListCalculatedAttributeDefinitionsResponseFilterSensitiveLog = void 0;
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const CustomerProfilesServiceException_1 = require("./CustomerProfilesServiceException");
7
7
  class AccessDeniedException extends CustomerProfilesServiceException_1.CustomerProfilesServiceException {
@@ -280,23 +280,6 @@ exports.PartyType = {
280
280
  INDIVIDUAL: "INDIVIDUAL",
281
281
  OTHER: "OTHER",
282
282
  };
283
- exports.EventStreamDestinationStatus = {
284
- HEALTHY: "HEALTHY",
285
- UNHEALTHY: "UNHEALTHY",
286
- };
287
- exports.EventStreamState = {
288
- RUNNING: "RUNNING",
289
- STOPPED: "STOPPED",
290
- };
291
- exports.IdentityResolutionJobStatus = {
292
- COMPLETED: "COMPLETED",
293
- FAILED: "FAILED",
294
- FIND_MATCHING: "FIND_MATCHING",
295
- MERGING: "MERGING",
296
- PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
297
- PENDING: "PENDING",
298
- PREPROCESSING: "PREPROCESSING",
299
- };
300
283
  exports.FieldContentType = {
301
284
  EMAIL_ADDRESS: "EMAIL_ADDRESS",
302
285
  NAME: "NAME",
@@ -314,6 +297,23 @@ exports.StandardIdentifier = {
314
297
  SECONDARY: "SECONDARY",
315
298
  UNIQUE: "UNIQUE",
316
299
  };
300
+ exports.EventStreamDestinationStatus = {
301
+ HEALTHY: "HEALTHY",
302
+ UNHEALTHY: "UNHEALTHY",
303
+ };
304
+ exports.EventStreamState = {
305
+ RUNNING: "RUNNING",
306
+ STOPPED: "STOPPED",
307
+ };
308
+ exports.IdentityResolutionJobStatus = {
309
+ COMPLETED: "COMPLETED",
310
+ FAILED: "FAILED",
311
+ FIND_MATCHING: "FIND_MATCHING",
312
+ MERGING: "MERGING",
313
+ PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
314
+ PENDING: "PENDING",
315
+ PREPROCESSING: "PREPROCESSING",
316
+ };
317
317
  exports.MatchType = {
318
318
  ML_BASED_MATCHING: "ML_BASED_MATCHING",
319
319
  RULE_BASED_MATCHING: "RULE_BASED_MATCHING",
@@ -401,6 +401,24 @@ const CreateProfileRequestFilterSensitiveLog = (obj) => ({
401
401
  ...(obj.GenderString && { GenderString: smithy_client_1.SENSITIVE_STRING }),
402
402
  });
403
403
  exports.CreateProfileRequestFilterSensitiveLog = CreateProfileRequestFilterSensitiveLog;
404
+ const DetectProfileObjectTypeRequestFilterSensitiveLog = (obj) => ({
405
+ ...obj,
406
+ ...(obj.Objects && { Objects: smithy_client_1.SENSITIVE_STRING }),
407
+ });
408
+ exports.DetectProfileObjectTypeRequestFilterSensitiveLog = DetectProfileObjectTypeRequestFilterSensitiveLog;
409
+ const DetectedProfileObjectTypeFilterSensitiveLog = (obj) => ({
410
+ ...obj,
411
+ ...(obj.Fields && { Fields: smithy_client_1.SENSITIVE_STRING }),
412
+ ...(obj.Keys && { Keys: smithy_client_1.SENSITIVE_STRING }),
413
+ });
414
+ exports.DetectedProfileObjectTypeFilterSensitiveLog = DetectedProfileObjectTypeFilterSensitiveLog;
415
+ const DetectProfileObjectTypeResponseFilterSensitiveLog = (obj) => ({
416
+ ...obj,
417
+ ...(obj.DetectedProfileObjectTypes && {
418
+ DetectedProfileObjectTypes: obj.DetectedProfileObjectTypes.map((item) => (0, exports.DetectedProfileObjectTypeFilterSensitiveLog)(item)),
419
+ }),
420
+ });
421
+ exports.DetectProfileObjectTypeResponseFilterSensitiveLog = DetectProfileObjectTypeResponseFilterSensitiveLog;
404
422
  const GetCalculatedAttributeDefinitionResponseFilterSensitiveLog = (obj) => ({
405
423
  ...obj,
406
424
  ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateDomainCommand = exports.se_UpdateCalculatedAttributeDefinitionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchProfilesCommand = exports.se_PutProfileObjectTypeCommand = exports.se_PutProfileObjectCommand = exports.se_PutIntegrationCommand = exports.se_MergeProfilesCommand = exports.se_ListWorkflowsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRuleBasedMatchesCommand = exports.se_ListProfileObjectTypeTemplatesCommand = exports.se_ListProfileObjectTypesCommand = exports.se_ListProfileObjectsCommand = exports.se_ListIntegrationsCommand = exports.se_ListIdentityResolutionJobsCommand = exports.se_ListEventStreamsCommand = exports.se_ListDomainsCommand = exports.se_ListCalculatedAttributesForProfileCommand = exports.se_ListCalculatedAttributeDefinitionsCommand = exports.se_ListAccountIntegrationsCommand = exports.se_GetWorkflowStepsCommand = exports.se_GetWorkflowCommand = exports.se_GetSimilarProfilesCommand = exports.se_GetProfileObjectTypeTemplateCommand = exports.se_GetProfileObjectTypeCommand = exports.se_GetMatchesCommand = exports.se_GetIntegrationCommand = exports.se_GetIdentityResolutionJobCommand = exports.se_GetEventStreamCommand = exports.se_GetDomainCommand = exports.se_GetCalculatedAttributeForProfileCommand = exports.se_GetCalculatedAttributeDefinitionCommand = exports.se_GetAutoMergingPreviewCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteProfileObjectTypeCommand = exports.se_DeleteProfileObjectCommand = exports.se_DeleteProfileKeyCommand = exports.se_DeleteProfileCommand = exports.se_DeleteIntegrationCommand = exports.se_DeleteEventStreamCommand = exports.se_DeleteDomainCommand = exports.se_DeleteCalculatedAttributeDefinitionCommand = exports.se_CreateProfileCommand = exports.se_CreateIntegrationWorkflowCommand = exports.se_CreateEventStreamCommand = exports.se_CreateDomainCommand = exports.se_CreateCalculatedAttributeDefinitionCommand = exports.se_AddProfileKeyCommand = void 0;
4
- exports.de_UpdateCalculatedAttributeDefinitionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchProfilesCommand = exports.de_PutProfileObjectTypeCommand = exports.de_PutProfileObjectCommand = exports.de_PutIntegrationCommand = exports.de_MergeProfilesCommand = exports.de_ListWorkflowsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRuleBasedMatchesCommand = exports.de_ListProfileObjectTypeTemplatesCommand = exports.de_ListProfileObjectTypesCommand = exports.de_ListProfileObjectsCommand = exports.de_ListIntegrationsCommand = exports.de_ListIdentityResolutionJobsCommand = exports.de_ListEventStreamsCommand = exports.de_ListDomainsCommand = exports.de_ListCalculatedAttributesForProfileCommand = exports.de_ListCalculatedAttributeDefinitionsCommand = exports.de_ListAccountIntegrationsCommand = exports.de_GetWorkflowStepsCommand = exports.de_GetWorkflowCommand = exports.de_GetSimilarProfilesCommand = exports.de_GetProfileObjectTypeTemplateCommand = exports.de_GetProfileObjectTypeCommand = exports.de_GetMatchesCommand = exports.de_GetIntegrationCommand = exports.de_GetIdentityResolutionJobCommand = exports.de_GetEventStreamCommand = exports.de_GetDomainCommand = exports.de_GetCalculatedAttributeForProfileCommand = exports.de_GetCalculatedAttributeDefinitionCommand = exports.de_GetAutoMergingPreviewCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteProfileObjectTypeCommand = exports.de_DeleteProfileObjectCommand = exports.de_DeleteProfileKeyCommand = exports.de_DeleteProfileCommand = exports.de_DeleteIntegrationCommand = exports.de_DeleteEventStreamCommand = exports.de_DeleteDomainCommand = exports.de_DeleteCalculatedAttributeDefinitionCommand = exports.de_CreateProfileCommand = exports.de_CreateIntegrationWorkflowCommand = exports.de_CreateEventStreamCommand = exports.de_CreateDomainCommand = exports.de_CreateCalculatedAttributeDefinitionCommand = exports.de_AddProfileKeyCommand = exports.se_UpdateProfileCommand = void 0;
5
- exports.de_UpdateProfileCommand = exports.de_UpdateDomainCommand = void 0;
3
+ exports.se_UpdateCalculatedAttributeDefinitionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchProfilesCommand = exports.se_PutProfileObjectTypeCommand = exports.se_PutProfileObjectCommand = exports.se_PutIntegrationCommand = exports.se_MergeProfilesCommand = exports.se_ListWorkflowsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListRuleBasedMatchesCommand = exports.se_ListProfileObjectTypeTemplatesCommand = exports.se_ListProfileObjectTypesCommand = exports.se_ListProfileObjectsCommand = exports.se_ListIntegrationsCommand = exports.se_ListIdentityResolutionJobsCommand = exports.se_ListEventStreamsCommand = exports.se_ListDomainsCommand = exports.se_ListCalculatedAttributesForProfileCommand = exports.se_ListCalculatedAttributeDefinitionsCommand = exports.se_ListAccountIntegrationsCommand = exports.se_GetWorkflowStepsCommand = exports.se_GetWorkflowCommand = exports.se_GetSimilarProfilesCommand = exports.se_GetProfileObjectTypeTemplateCommand = exports.se_GetProfileObjectTypeCommand = exports.se_GetMatchesCommand = exports.se_GetIntegrationCommand = exports.se_GetIdentityResolutionJobCommand = exports.se_GetEventStreamCommand = exports.se_GetDomainCommand = exports.se_GetCalculatedAttributeForProfileCommand = exports.se_GetCalculatedAttributeDefinitionCommand = exports.se_GetAutoMergingPreviewCommand = exports.se_DetectProfileObjectTypeCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteProfileObjectTypeCommand = exports.se_DeleteProfileObjectCommand = exports.se_DeleteProfileKeyCommand = exports.se_DeleteProfileCommand = exports.se_DeleteIntegrationCommand = exports.se_DeleteEventStreamCommand = exports.se_DeleteDomainCommand = exports.se_DeleteCalculatedAttributeDefinitionCommand = exports.se_CreateProfileCommand = exports.se_CreateIntegrationWorkflowCommand = exports.se_CreateEventStreamCommand = exports.se_CreateDomainCommand = exports.se_CreateCalculatedAttributeDefinitionCommand = exports.se_AddProfileKeyCommand = void 0;
4
+ exports.de_TagResourceCommand = exports.de_SearchProfilesCommand = exports.de_PutProfileObjectTypeCommand = exports.de_PutProfileObjectCommand = exports.de_PutIntegrationCommand = exports.de_MergeProfilesCommand = exports.de_ListWorkflowsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListRuleBasedMatchesCommand = exports.de_ListProfileObjectTypeTemplatesCommand = exports.de_ListProfileObjectTypesCommand = exports.de_ListProfileObjectsCommand = exports.de_ListIntegrationsCommand = exports.de_ListIdentityResolutionJobsCommand = exports.de_ListEventStreamsCommand = exports.de_ListDomainsCommand = exports.de_ListCalculatedAttributesForProfileCommand = exports.de_ListCalculatedAttributeDefinitionsCommand = exports.de_ListAccountIntegrationsCommand = exports.de_GetWorkflowStepsCommand = exports.de_GetWorkflowCommand = exports.de_GetSimilarProfilesCommand = exports.de_GetProfileObjectTypeTemplateCommand = exports.de_GetProfileObjectTypeCommand = exports.de_GetMatchesCommand = exports.de_GetIntegrationCommand = exports.de_GetIdentityResolutionJobCommand = exports.de_GetEventStreamCommand = exports.de_GetDomainCommand = exports.de_GetCalculatedAttributeForProfileCommand = exports.de_GetCalculatedAttributeDefinitionCommand = exports.de_GetAutoMergingPreviewCommand = exports.de_DetectProfileObjectTypeCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteProfileObjectTypeCommand = exports.de_DeleteProfileObjectCommand = exports.de_DeleteProfileKeyCommand = exports.de_DeleteProfileCommand = exports.de_DeleteIntegrationCommand = exports.de_DeleteEventStreamCommand = exports.de_DeleteDomainCommand = exports.de_DeleteCalculatedAttributeDefinitionCommand = exports.de_CreateProfileCommand = exports.de_CreateIntegrationWorkflowCommand = exports.de_CreateEventStreamCommand = exports.de_CreateDomainCommand = exports.de_CreateCalculatedAttributeDefinitionCommand = exports.de_AddProfileKeyCommand = exports.se_UpdateProfileCommand = exports.se_UpdateDomainCommand = void 0;
5
+ exports.de_UpdateProfileCommand = exports.de_UpdateDomainCommand = exports.de_UpdateCalculatedAttributeDefinitionCommand = exports.de_UntagResourceCommand = void 0;
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const CustomerProfilesServiceException_1 = require("../models/CustomerProfilesServiceException");
@@ -370,6 +370,28 @@ const se_DeleteWorkflowCommand = async (input, context) => {
370
370
  });
371
371
  };
372
372
  exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
373
+ const se_DetectProfileObjectTypeCommand = async (input, context) => {
374
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
375
+ const headers = {
376
+ "content-type": "application/json",
377
+ };
378
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/detect/object-types";
379
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
380
+ let body;
381
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
382
+ Objects: (_) => (0, smithy_client_1._json)(_),
383
+ }));
384
+ return new protocol_http_1.HttpRequest({
385
+ protocol,
386
+ hostname,
387
+ port,
388
+ method: "POST",
389
+ headers,
390
+ path: resolvedPath,
391
+ body,
392
+ });
393
+ };
394
+ exports.se_DetectProfileObjectTypeCommand = se_DetectProfileObjectTypeCommand;
373
395
  const se_GetAutoMergingPreviewCommand = async (input, context) => {
374
396
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
375
397
  const headers = {
@@ -1923,6 +1945,52 @@ const de_DeleteWorkflowCommandError = async (output, context) => {
1923
1945
  });
1924
1946
  }
1925
1947
  };
1948
+ const de_DetectProfileObjectTypeCommand = async (output, context) => {
1949
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1950
+ return de_DetectProfileObjectTypeCommandError(output, context);
1951
+ }
1952
+ const contents = (0, smithy_client_1.map)({
1953
+ $metadata: deserializeMetadata(output),
1954
+ });
1955
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1956
+ const doc = (0, smithy_client_1.take)(data, {
1957
+ DetectedProfileObjectTypes: smithy_client_1._json,
1958
+ });
1959
+ Object.assign(contents, doc);
1960
+ return contents;
1961
+ };
1962
+ exports.de_DetectProfileObjectTypeCommand = de_DetectProfileObjectTypeCommand;
1963
+ const de_DetectProfileObjectTypeCommandError = async (output, context) => {
1964
+ const parsedOutput = {
1965
+ ...output,
1966
+ body: await parseErrorBody(output.body, context),
1967
+ };
1968
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1969
+ switch (errorCode) {
1970
+ case "AccessDeniedException":
1971
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
1972
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1973
+ case "BadRequestException":
1974
+ case "com.amazonaws.customerprofiles#BadRequestException":
1975
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1976
+ case "InternalServerException":
1977
+ case "com.amazonaws.customerprofiles#InternalServerException":
1978
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1979
+ case "ResourceNotFoundException":
1980
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1981
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1982
+ case "ThrottlingException":
1983
+ case "com.amazonaws.customerprofiles#ThrottlingException":
1984
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1985
+ default:
1986
+ const parsedBody = parsedOutput.body;
1987
+ return throwDefaultError({
1988
+ output,
1989
+ parsedBody,
1990
+ errorCode,
1991
+ });
1992
+ }
1993
+ };
1926
1994
  const de_GetAutoMergingPreviewCommand = async (output, context) => {
1927
1995
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1928
1996
  return de_GetAutoMergingPreviewCommandError(output, context);
@@ -14,6 +14,7 @@ import { DeleteProfileKeyCommand, } from "./commands/DeleteProfileKeyCommand";
14
14
  import { DeleteProfileObjectCommand, } from "./commands/DeleteProfileObjectCommand";
15
15
  import { DeleteProfileObjectTypeCommand, } from "./commands/DeleteProfileObjectTypeCommand";
16
16
  import { DeleteWorkflowCommand, } from "./commands/DeleteWorkflowCommand";
17
+ import { DetectProfileObjectTypeCommand, } from "./commands/DetectProfileObjectTypeCommand";
17
18
  import { GetAutoMergingPreviewCommand, } from "./commands/GetAutoMergingPreviewCommand";
18
19
  import { GetCalculatedAttributeDefinitionCommand, } from "./commands/GetCalculatedAttributeDefinitionCommand";
19
20
  import { GetCalculatedAttributeForProfileCommand, } from "./commands/GetCalculatedAttributeForProfileCommand";
@@ -67,6 +68,7 @@ const commands = {
67
68
  DeleteProfileObjectCommand,
68
69
  DeleteProfileObjectTypeCommand,
69
70
  DeleteWorkflowCommand,
71
+ DetectProfileObjectTypeCommand,
70
72
  GetAutoMergingPreviewCommand,
71
73
  GetCalculatedAttributeDefinitionCommand,
72
74
  GetCalculatedAttributeForProfileCommand,
@@ -0,0 +1,48 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { DetectProfileObjectTypeRequestFilterSensitiveLog, DetectProfileObjectTypeResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_DetectProfileObjectTypeCommand, se_DetectProfileObjectTypeCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class DetectProfileObjectTypeCommand extends $Command {
9
+ static getEndpointParameterInstructions() {
10
+ return {
11
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
+ Endpoint: { type: "builtInParams", name: "endpoint" },
13
+ Region: { type: "builtInParams", name: "region" },
14
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
+ };
16
+ }
17
+ constructor(input) {
18
+ super();
19
+ this.input = input;
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use(getEndpointPlugin(configuration, DetectProfileObjectTypeCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "CustomerProfilesClient";
27
+ const commandName = "DetectProfileObjectTypeCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: DetectProfileObjectTypeRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: DetectProfileObjectTypeResponseFilterSensitiveLog,
34
+ [SMITHY_CONTEXT_KEY]: {
35
+ service: "CustomerProfiles_20200815",
36
+ operation: "DetectProfileObjectType",
37
+ },
38
+ };
39
+ const { requestHandler } = configuration;
40
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
+ }
42
+ serialize(input, context) {
43
+ return se_DetectProfileObjectTypeCommand(input, context);
44
+ }
45
+ deserialize(output, context) {
46
+ return de_DetectProfileObjectTypeCommand(output, context);
47
+ }
48
+ }
@@ -13,6 +13,7 @@ export * from "./DeleteProfileKeyCommand";
13
13
  export * from "./DeleteProfileObjectCommand";
14
14
  export * from "./DeleteProfileObjectTypeCommand";
15
15
  export * from "./DeleteWorkflowCommand";
16
+ export * from "./DetectProfileObjectTypeCommand";
16
17
  export * from "./GetAutoMergingPreviewCommand";
17
18
  export * from "./GetCalculatedAttributeDefinitionCommand";
18
19
  export * from "./GetCalculatedAttributeForProfileCommand";
@@ -271,23 +271,6 @@ export const PartyType = {
271
271
  INDIVIDUAL: "INDIVIDUAL",
272
272
  OTHER: "OTHER",
273
273
  };
274
- export const EventStreamDestinationStatus = {
275
- HEALTHY: "HEALTHY",
276
- UNHEALTHY: "UNHEALTHY",
277
- };
278
- export const EventStreamState = {
279
- RUNNING: "RUNNING",
280
- STOPPED: "STOPPED",
281
- };
282
- export const IdentityResolutionJobStatus = {
283
- COMPLETED: "COMPLETED",
284
- FAILED: "FAILED",
285
- FIND_MATCHING: "FIND_MATCHING",
286
- MERGING: "MERGING",
287
- PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
288
- PENDING: "PENDING",
289
- PREPROCESSING: "PREPROCESSING",
290
- };
291
274
  export const FieldContentType = {
292
275
  EMAIL_ADDRESS: "EMAIL_ADDRESS",
293
276
  NAME: "NAME",
@@ -305,6 +288,23 @@ export const StandardIdentifier = {
305
288
  SECONDARY: "SECONDARY",
306
289
  UNIQUE: "UNIQUE",
307
290
  };
291
+ export const EventStreamDestinationStatus = {
292
+ HEALTHY: "HEALTHY",
293
+ UNHEALTHY: "UNHEALTHY",
294
+ };
295
+ export const EventStreamState = {
296
+ RUNNING: "RUNNING",
297
+ STOPPED: "STOPPED",
298
+ };
299
+ export const IdentityResolutionJobStatus = {
300
+ COMPLETED: "COMPLETED",
301
+ FAILED: "FAILED",
302
+ FIND_MATCHING: "FIND_MATCHING",
303
+ MERGING: "MERGING",
304
+ PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
305
+ PENDING: "PENDING",
306
+ PREPROCESSING: "PREPROCESSING",
307
+ };
308
308
  export const MatchType = {
309
309
  ML_BASED_MATCHING: "ML_BASED_MATCHING",
310
310
  RULE_BASED_MATCHING: "RULE_BASED_MATCHING",
@@ -381,6 +381,21 @@ export const CreateProfileRequestFilterSensitiveLog = (obj) => ({
381
381
  ...(obj.PartyTypeString && { PartyTypeString: SENSITIVE_STRING }),
382
382
  ...(obj.GenderString && { GenderString: SENSITIVE_STRING }),
383
383
  });
384
+ export const DetectProfileObjectTypeRequestFilterSensitiveLog = (obj) => ({
385
+ ...obj,
386
+ ...(obj.Objects && { Objects: SENSITIVE_STRING }),
387
+ });
388
+ export const DetectedProfileObjectTypeFilterSensitiveLog = (obj) => ({
389
+ ...obj,
390
+ ...(obj.Fields && { Fields: SENSITIVE_STRING }),
391
+ ...(obj.Keys && { Keys: SENSITIVE_STRING }),
392
+ });
393
+ export const DetectProfileObjectTypeResponseFilterSensitiveLog = (obj) => ({
394
+ ...obj,
395
+ ...(obj.DetectedProfileObjectTypes && {
396
+ DetectedProfileObjectTypes: obj.DetectedProfileObjectTypes.map((item) => DetectedProfileObjectTypeFilterSensitiveLog(item)),
397
+ }),
398
+ });
384
399
  export const GetCalculatedAttributeDefinitionResponseFilterSensitiveLog = (obj) => ({
385
400
  ...obj,
386
401
  ...(obj.Description && { Description: SENSITIVE_STRING }),
@@ -350,6 +350,27 @@ export const se_DeleteWorkflowCommand = async (input, context) => {
350
350
  body,
351
351
  });
352
352
  };
353
+ export const se_DetectProfileObjectTypeCommand = async (input, context) => {
354
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
355
+ const headers = {
356
+ "content-type": "application/json",
357
+ };
358
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/detect/object-types";
359
+ resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
360
+ let body;
361
+ body = JSON.stringify(take(input, {
362
+ Objects: (_) => _json(_),
363
+ }));
364
+ return new __HttpRequest({
365
+ protocol,
366
+ hostname,
367
+ port,
368
+ method: "POST",
369
+ headers,
370
+ path: resolvedPath,
371
+ body,
372
+ });
373
+ };
353
374
  export const se_GetAutoMergingPreviewCommand = async (input, context) => {
354
375
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
355
376
  const headers = {
@@ -1852,6 +1873,51 @@ const de_DeleteWorkflowCommandError = async (output, context) => {
1852
1873
  });
1853
1874
  }
1854
1875
  };
1876
+ export const de_DetectProfileObjectTypeCommand = async (output, context) => {
1877
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1878
+ return de_DetectProfileObjectTypeCommandError(output, context);
1879
+ }
1880
+ const contents = map({
1881
+ $metadata: deserializeMetadata(output),
1882
+ });
1883
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1884
+ const doc = take(data, {
1885
+ DetectedProfileObjectTypes: _json,
1886
+ });
1887
+ Object.assign(contents, doc);
1888
+ return contents;
1889
+ };
1890
+ const de_DetectProfileObjectTypeCommandError = async (output, context) => {
1891
+ const parsedOutput = {
1892
+ ...output,
1893
+ body: await parseErrorBody(output.body, context),
1894
+ };
1895
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1896
+ switch (errorCode) {
1897
+ case "AccessDeniedException":
1898
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
1899
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1900
+ case "BadRequestException":
1901
+ case "com.amazonaws.customerprofiles#BadRequestException":
1902
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1903
+ case "InternalServerException":
1904
+ case "com.amazonaws.customerprofiles#InternalServerException":
1905
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1906
+ case "ResourceNotFoundException":
1907
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1908
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1909
+ case "ThrottlingException":
1910
+ case "com.amazonaws.customerprofiles#ThrottlingException":
1911
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1912
+ default:
1913
+ const parsedBody = parsedOutput.body;
1914
+ return throwDefaultError({
1915
+ output,
1916
+ parsedBody,
1917
+ errorCode,
1918
+ });
1919
+ }
1920
+ };
1855
1921
  export const de_GetAutoMergingPreviewCommand = async (output, context) => {
1856
1922
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1857
1923
  return de_GetAutoMergingPreviewCommandError(output, context);
@@ -14,6 +14,7 @@ import { DeleteProfileKeyCommandInput, DeleteProfileKeyCommandOutput } from "./c
14
14
  import { DeleteProfileObjectCommandInput, DeleteProfileObjectCommandOutput } from "./commands/DeleteProfileObjectCommand";
15
15
  import { DeleteProfileObjectTypeCommandInput, DeleteProfileObjectTypeCommandOutput } from "./commands/DeleteProfileObjectTypeCommand";
16
16
  import { DeleteWorkflowCommandInput, DeleteWorkflowCommandOutput } from "./commands/DeleteWorkflowCommand";
17
+ import { DetectProfileObjectTypeCommandInput, DetectProfileObjectTypeCommandOutput } from "./commands/DetectProfileObjectTypeCommand";
17
18
  import { GetAutoMergingPreviewCommandInput, GetAutoMergingPreviewCommandOutput } from "./commands/GetAutoMergingPreviewCommand";
18
19
  import { GetCalculatedAttributeDefinitionCommandInput, GetCalculatedAttributeDefinitionCommandOutput } from "./commands/GetCalculatedAttributeDefinitionCommand";
19
20
  import { GetCalculatedAttributeForProfileCommandInput, GetCalculatedAttributeForProfileCommandOutput } from "./commands/GetCalculatedAttributeForProfileCommand";
@@ -142,6 +143,12 @@ export interface CustomerProfiles {
142
143
  deleteWorkflow(args: DeleteWorkflowCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWorkflowCommandOutput>;
143
144
  deleteWorkflow(args: DeleteWorkflowCommandInput, cb: (err: any, data?: DeleteWorkflowCommandOutput) => void): void;
144
145
  deleteWorkflow(args: DeleteWorkflowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWorkflowCommandOutput) => void): void;
146
+ /**
147
+ * @see {@link DetectProfileObjectTypeCommand}
148
+ */
149
+ detectProfileObjectType(args: DetectProfileObjectTypeCommandInput, options?: __HttpHandlerOptions): Promise<DetectProfileObjectTypeCommandOutput>;
150
+ detectProfileObjectType(args: DetectProfileObjectTypeCommandInput, cb: (err: any, data?: DetectProfileObjectTypeCommandOutput) => void): void;
151
+ detectProfileObjectType(args: DetectProfileObjectTypeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectProfileObjectTypeCommandOutput) => void): void;
145
152
  /**
146
153
  * @see {@link GetAutoMergingPreviewCommand}
147
154
  */
@@ -23,6 +23,7 @@ import { DeleteProfileKeyCommandInput, DeleteProfileKeyCommandOutput } from "./c
23
23
  import { DeleteProfileObjectCommandInput, DeleteProfileObjectCommandOutput } from "./commands/DeleteProfileObjectCommand";
24
24
  import { DeleteProfileObjectTypeCommandInput, DeleteProfileObjectTypeCommandOutput } from "./commands/DeleteProfileObjectTypeCommand";
25
25
  import { DeleteWorkflowCommandInput, DeleteWorkflowCommandOutput } from "./commands/DeleteWorkflowCommand";
26
+ import { DetectProfileObjectTypeCommandInput, DetectProfileObjectTypeCommandOutput } from "./commands/DetectProfileObjectTypeCommand";
26
27
  import { GetAutoMergingPreviewCommandInput, GetAutoMergingPreviewCommandOutput } from "./commands/GetAutoMergingPreviewCommand";
27
28
  import { GetCalculatedAttributeDefinitionCommandInput, GetCalculatedAttributeDefinitionCommandOutput } from "./commands/GetCalculatedAttributeDefinitionCommand";
28
29
  import { GetCalculatedAttributeForProfileCommandInput, GetCalculatedAttributeForProfileCommandOutput } from "./commands/GetCalculatedAttributeForProfileCommand";
@@ -65,11 +66,11 @@ export { __Client };
65
66
  /**
66
67
  * @public
67
68
  */
68
- export type ServiceInputTypes = AddProfileKeyCommandInput | CreateCalculatedAttributeDefinitionCommandInput | CreateDomainCommandInput | CreateEventStreamCommandInput | CreateIntegrationWorkflowCommandInput | CreateProfileCommandInput | DeleteCalculatedAttributeDefinitionCommandInput | DeleteDomainCommandInput | DeleteEventStreamCommandInput | DeleteIntegrationCommandInput | DeleteProfileCommandInput | DeleteProfileKeyCommandInput | DeleteProfileObjectCommandInput | DeleteProfileObjectTypeCommandInput | DeleteWorkflowCommandInput | GetAutoMergingPreviewCommandInput | GetCalculatedAttributeDefinitionCommandInput | GetCalculatedAttributeForProfileCommandInput | GetDomainCommandInput | GetEventStreamCommandInput | GetIdentityResolutionJobCommandInput | GetIntegrationCommandInput | GetMatchesCommandInput | GetProfileObjectTypeCommandInput | GetProfileObjectTypeTemplateCommandInput | GetSimilarProfilesCommandInput | GetWorkflowCommandInput | GetWorkflowStepsCommandInput | ListAccountIntegrationsCommandInput | ListCalculatedAttributeDefinitionsCommandInput | ListCalculatedAttributesForProfileCommandInput | ListDomainsCommandInput | ListEventStreamsCommandInput | ListIdentityResolutionJobsCommandInput | ListIntegrationsCommandInput | ListProfileObjectTypeTemplatesCommandInput | ListProfileObjectTypesCommandInput | ListProfileObjectsCommandInput | ListRuleBasedMatchesCommandInput | ListTagsForResourceCommandInput | ListWorkflowsCommandInput | MergeProfilesCommandInput | PutIntegrationCommandInput | PutProfileObjectCommandInput | PutProfileObjectTypeCommandInput | SearchProfilesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCalculatedAttributeDefinitionCommandInput | UpdateDomainCommandInput | UpdateProfileCommandInput;
69
+ export type ServiceInputTypes = AddProfileKeyCommandInput | CreateCalculatedAttributeDefinitionCommandInput | CreateDomainCommandInput | CreateEventStreamCommandInput | CreateIntegrationWorkflowCommandInput | CreateProfileCommandInput | DeleteCalculatedAttributeDefinitionCommandInput | DeleteDomainCommandInput | DeleteEventStreamCommandInput | DeleteIntegrationCommandInput | DeleteProfileCommandInput | DeleteProfileKeyCommandInput | DeleteProfileObjectCommandInput | DeleteProfileObjectTypeCommandInput | DeleteWorkflowCommandInput | DetectProfileObjectTypeCommandInput | GetAutoMergingPreviewCommandInput | GetCalculatedAttributeDefinitionCommandInput | GetCalculatedAttributeForProfileCommandInput | GetDomainCommandInput | GetEventStreamCommandInput | GetIdentityResolutionJobCommandInput | GetIntegrationCommandInput | GetMatchesCommandInput | GetProfileObjectTypeCommandInput | GetProfileObjectTypeTemplateCommandInput | GetSimilarProfilesCommandInput | GetWorkflowCommandInput | GetWorkflowStepsCommandInput | ListAccountIntegrationsCommandInput | ListCalculatedAttributeDefinitionsCommandInput | ListCalculatedAttributesForProfileCommandInput | ListDomainsCommandInput | ListEventStreamsCommandInput | ListIdentityResolutionJobsCommandInput | ListIntegrationsCommandInput | ListProfileObjectTypeTemplatesCommandInput | ListProfileObjectTypesCommandInput | ListProfileObjectsCommandInput | ListRuleBasedMatchesCommandInput | ListTagsForResourceCommandInput | ListWorkflowsCommandInput | MergeProfilesCommandInput | PutIntegrationCommandInput | PutProfileObjectCommandInput | PutProfileObjectTypeCommandInput | SearchProfilesCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCalculatedAttributeDefinitionCommandInput | UpdateDomainCommandInput | UpdateProfileCommandInput;
69
70
  /**
70
71
  * @public
71
72
  */
72
- export type ServiceOutputTypes = AddProfileKeyCommandOutput | CreateCalculatedAttributeDefinitionCommandOutput | CreateDomainCommandOutput | CreateEventStreamCommandOutput | CreateIntegrationWorkflowCommandOutput | CreateProfileCommandOutput | DeleteCalculatedAttributeDefinitionCommandOutput | DeleteDomainCommandOutput | DeleteEventStreamCommandOutput | DeleteIntegrationCommandOutput | DeleteProfileCommandOutput | DeleteProfileKeyCommandOutput | DeleteProfileObjectCommandOutput | DeleteProfileObjectTypeCommandOutput | DeleteWorkflowCommandOutput | GetAutoMergingPreviewCommandOutput | GetCalculatedAttributeDefinitionCommandOutput | GetCalculatedAttributeForProfileCommandOutput | GetDomainCommandOutput | GetEventStreamCommandOutput | GetIdentityResolutionJobCommandOutput | GetIntegrationCommandOutput | GetMatchesCommandOutput | GetProfileObjectTypeCommandOutput | GetProfileObjectTypeTemplateCommandOutput | GetSimilarProfilesCommandOutput | GetWorkflowCommandOutput | GetWorkflowStepsCommandOutput | ListAccountIntegrationsCommandOutput | ListCalculatedAttributeDefinitionsCommandOutput | ListCalculatedAttributesForProfileCommandOutput | ListDomainsCommandOutput | ListEventStreamsCommandOutput | ListIdentityResolutionJobsCommandOutput | ListIntegrationsCommandOutput | ListProfileObjectTypeTemplatesCommandOutput | ListProfileObjectTypesCommandOutput | ListProfileObjectsCommandOutput | ListRuleBasedMatchesCommandOutput | ListTagsForResourceCommandOutput | ListWorkflowsCommandOutput | MergeProfilesCommandOutput | PutIntegrationCommandOutput | PutProfileObjectCommandOutput | PutProfileObjectTypeCommandOutput | SearchProfilesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCalculatedAttributeDefinitionCommandOutput | UpdateDomainCommandOutput | UpdateProfileCommandOutput;
73
+ export type ServiceOutputTypes = AddProfileKeyCommandOutput | CreateCalculatedAttributeDefinitionCommandOutput | CreateDomainCommandOutput | CreateEventStreamCommandOutput | CreateIntegrationWorkflowCommandOutput | CreateProfileCommandOutput | DeleteCalculatedAttributeDefinitionCommandOutput | DeleteDomainCommandOutput | DeleteEventStreamCommandOutput | DeleteIntegrationCommandOutput | DeleteProfileCommandOutput | DeleteProfileKeyCommandOutput | DeleteProfileObjectCommandOutput | DeleteProfileObjectTypeCommandOutput | DeleteWorkflowCommandOutput | DetectProfileObjectTypeCommandOutput | GetAutoMergingPreviewCommandOutput | GetCalculatedAttributeDefinitionCommandOutput | GetCalculatedAttributeForProfileCommandOutput | GetDomainCommandOutput | GetEventStreamCommandOutput | GetIdentityResolutionJobCommandOutput | GetIntegrationCommandOutput | GetMatchesCommandOutput | GetProfileObjectTypeCommandOutput | GetProfileObjectTypeTemplateCommandOutput | GetSimilarProfilesCommandOutput | GetWorkflowCommandOutput | GetWorkflowStepsCommandOutput | ListAccountIntegrationsCommandOutput | ListCalculatedAttributeDefinitionsCommandOutput | ListCalculatedAttributesForProfileCommandOutput | ListDomainsCommandOutput | ListEventStreamsCommandOutput | ListIdentityResolutionJobsCommandOutput | ListIntegrationsCommandOutput | ListProfileObjectTypeTemplatesCommandOutput | ListProfileObjectTypesCommandOutput | ListProfileObjectsCommandOutput | ListRuleBasedMatchesCommandOutput | ListTagsForResourceCommandOutput | ListWorkflowsCommandOutput | MergeProfilesCommandOutput | PutIntegrationCommandOutput | PutProfileObjectCommandOutput | PutProfileObjectTypeCommandOutput | SearchProfilesCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCalculatedAttributeDefinitionCommandOutput | UpdateDomainCommandOutput | UpdateProfileCommandOutput;
73
74
  /**
74
75
  * @public
75
76
  */
@@ -0,0 +1,114 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CustomerProfilesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CustomerProfilesClient";
5
+ import { DetectProfileObjectTypeRequest, DetectProfileObjectTypeResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DetectProfileObjectTypeCommand}.
14
+ */
15
+ export interface DetectProfileObjectTypeCommandInput extends DetectProfileObjectTypeRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DetectProfileObjectTypeCommand}.
21
+ */
22
+ export interface DetectProfileObjectTypeCommandOutput extends DetectProfileObjectTypeResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>The process of detecting profile object type mapping by using given objects.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CustomerProfilesClient, DetectProfileObjectTypeCommand } from "@aws-sdk/client-customer-profiles"; // ES Modules import
31
+ * // const { CustomerProfilesClient, DetectProfileObjectTypeCommand } = require("@aws-sdk/client-customer-profiles"); // CommonJS import
32
+ * const client = new CustomerProfilesClient(config);
33
+ * const input = { // DetectProfileObjectTypeRequest
34
+ * Objects: [ // Objects // required
35
+ * "STRING_VALUE",
36
+ * ],
37
+ * DomainName: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new DetectProfileObjectTypeCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // DetectProfileObjectTypeResponse
42
+ * // DetectedProfileObjectTypes: [ // DetectedProfileObjectTypes
43
+ * // { // DetectedProfileObjectType
44
+ * // SourceLastUpdatedTimestampFormat: "STRING_VALUE",
45
+ * // Fields: { // FieldMap
46
+ * // "<keys>": { // ObjectTypeField
47
+ * // Source: "STRING_VALUE",
48
+ * // Target: "STRING_VALUE",
49
+ * // ContentType: "STRING" || "NUMBER" || "PHONE_NUMBER" || "EMAIL_ADDRESS" || "NAME",
50
+ * // },
51
+ * // },
52
+ * // Keys: { // KeyMap
53
+ * // "<keys>": [ // ObjectTypeKeyList
54
+ * // { // ObjectTypeKey
55
+ * // StandardIdentifiers: [ // StandardIdentifierList
56
+ * // "PROFILE" || "ASSET" || "CASE" || "UNIQUE" || "SECONDARY" || "LOOKUP_ONLY" || "NEW_ONLY" || "ORDER",
57
+ * // ],
58
+ * // FieldNames: [ // FieldNameList
59
+ * // "STRING_VALUE",
60
+ * // ],
61
+ * // },
62
+ * // ],
63
+ * // },
64
+ * // },
65
+ * // ],
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param DetectProfileObjectTypeCommandInput - {@link DetectProfileObjectTypeCommandInput}
71
+ * @returns {@link DetectProfileObjectTypeCommandOutput}
72
+ * @see {@link DetectProfileObjectTypeCommandInput} for command's `input` shape.
73
+ * @see {@link DetectProfileObjectTypeCommandOutput} for command's `response` shape.
74
+ * @see {@link CustomerProfilesClientResolvedConfig | config} for CustomerProfilesClient's `config` shape.
75
+ *
76
+ * @throws {@link AccessDeniedException} (client fault)
77
+ * <p>You do not have sufficient access to perform this action.</p>
78
+ *
79
+ * @throws {@link BadRequestException} (client fault)
80
+ * <p>The input you provided is invalid.</p>
81
+ *
82
+ * @throws {@link InternalServerException} (server fault)
83
+ * <p>An internal service error occurred.</p>
84
+ *
85
+ * @throws {@link ResourceNotFoundException} (client fault)
86
+ * <p>The requested resource does not exist, or access was denied.</p>
87
+ *
88
+ * @throws {@link ThrottlingException} (client fault)
89
+ * <p>You exceeded the maximum number of requests.</p>
90
+ *
91
+ * @throws {@link CustomerProfilesServiceException}
92
+ * <p>Base exception class for all service exceptions from CustomerProfiles service.</p>
93
+ *
94
+ */
95
+ export declare class DetectProfileObjectTypeCommand extends $Command<DetectProfileObjectTypeCommandInput, DetectProfileObjectTypeCommandOutput, CustomerProfilesClientResolvedConfig> {
96
+ readonly input: DetectProfileObjectTypeCommandInput;
97
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
98
+ /**
99
+ * @public
100
+ */
101
+ constructor(input: DetectProfileObjectTypeCommandInput);
102
+ /**
103
+ * @internal
104
+ */
105
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CustomerProfilesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectProfileObjectTypeCommandInput, DetectProfileObjectTypeCommandOutput>;
106
+ /**
107
+ * @internal
108
+ */
109
+ private serialize;
110
+ /**
111
+ * @internal
112
+ */
113
+ private deserialize;
114
+ }
@@ -13,6 +13,7 @@ export * from "./DeleteProfileKeyCommand";
13
13
  export * from "./DeleteProfileObjectCommand";
14
14
  export * from "./DeleteProfileObjectTypeCommand";
15
15
  export * from "./DeleteWorkflowCommand";
16
+ export * from "./DetectProfileObjectTypeCommand";
16
17
  export * from "./GetAutoMergingPreviewCommand";
17
18
  export * from "./GetCalculatedAttributeDefinitionCommand";
18
19
  export * from "./GetCalculatedAttributeForProfileCommand";
@@ -2299,6 +2299,132 @@ export interface DeleteWorkflowRequest {
2299
2299
  */
2300
2300
  export interface DeleteWorkflowResponse {
2301
2301
  }
2302
+ /**
2303
+ * @public
2304
+ */
2305
+ export interface DetectProfileObjectTypeRequest {
2306
+ /**
2307
+ * @public
2308
+ * <p>A string that is serialized from a JSON object.</p>
2309
+ */
2310
+ Objects: string[] | undefined;
2311
+ /**
2312
+ * @public
2313
+ * <p>The unique name of the domain.</p>
2314
+ */
2315
+ DomainName: string | undefined;
2316
+ }
2317
+ /**
2318
+ * @public
2319
+ * @enum
2320
+ */
2321
+ export declare const FieldContentType: {
2322
+ readonly EMAIL_ADDRESS: "EMAIL_ADDRESS";
2323
+ readonly NAME: "NAME";
2324
+ readonly NUMBER: "NUMBER";
2325
+ readonly PHONE_NUMBER: "PHONE_NUMBER";
2326
+ readonly STRING: "STRING";
2327
+ };
2328
+ /**
2329
+ * @public
2330
+ */
2331
+ export type FieldContentType = (typeof FieldContentType)[keyof typeof FieldContentType];
2332
+ /**
2333
+ * @public
2334
+ * <p>Represents a field in a ProfileObjectType.</p>
2335
+ */
2336
+ export interface ObjectTypeField {
2337
+ /**
2338
+ * @public
2339
+ * <p>A field of a ProfileObject. For example: _source.FirstName, where “_source” is a
2340
+ * ProfileObjectType of a Zendesk user and “FirstName” is a field in that ObjectType.</p>
2341
+ */
2342
+ Source?: string;
2343
+ /**
2344
+ * @public
2345
+ * <p>The location of the data in the standard ProfileObject model. For example:
2346
+ * _profile.Address.PostalCode.</p>
2347
+ */
2348
+ Target?: string;
2349
+ /**
2350
+ * @public
2351
+ * <p>The content type of the field. Used for determining equality when searching.</p>
2352
+ */
2353
+ ContentType?: FieldContentType;
2354
+ }
2355
+ /**
2356
+ * @public
2357
+ * @enum
2358
+ */
2359
+ export declare const StandardIdentifier: {
2360
+ readonly ASSET: "ASSET";
2361
+ readonly CASE: "CASE";
2362
+ readonly LOOKUP_ONLY: "LOOKUP_ONLY";
2363
+ readonly NEW_ONLY: "NEW_ONLY";
2364
+ readonly ORDER: "ORDER";
2365
+ readonly PROFILE: "PROFILE";
2366
+ readonly SECONDARY: "SECONDARY";
2367
+ readonly UNIQUE: "UNIQUE";
2368
+ };
2369
+ /**
2370
+ * @public
2371
+ */
2372
+ export type StandardIdentifier = (typeof StandardIdentifier)[keyof typeof StandardIdentifier];
2373
+ /**
2374
+ * @public
2375
+ * <p>An object that defines the Key element of a ProfileObject. A Key is a special element
2376
+ * that can be used to search for a customer profile.</p>
2377
+ */
2378
+ export interface ObjectTypeKey {
2379
+ /**
2380
+ * @public
2381
+ * <p>The types of keys that a ProfileObject can have. Each ProfileObject can have only 1
2382
+ * UNIQUE key but multiple PROFILE keys. PROFILE, ASSET, CASE, or ORDER means that this key can be
2383
+ * used to tie an object to a PROFILE, ASSET, CASE, or ORDER respectively. UNIQUE means that it can be
2384
+ * used to uniquely identify an object. If a key a is marked as SECONDARY, it will be used to
2385
+ * search for profiles after all other PROFILE keys have been searched. A LOOKUP_ONLY key is
2386
+ * only used to match a profile but is not persisted to be used for searching of the profile.
2387
+ * A NEW_ONLY key is only used if the profile does not already exist before the object is
2388
+ * ingested, otherwise it is only used for matching objects to profiles.</p>
2389
+ */
2390
+ StandardIdentifiers?: StandardIdentifier[];
2391
+ /**
2392
+ * @public
2393
+ * <p>The reference for the key name of the fields map.</p>
2394
+ */
2395
+ FieldNames?: string[];
2396
+ }
2397
+ /**
2398
+ * @public
2399
+ * <p>Contains <code>ProfileObjectType</code> mapping information from the model.</p>
2400
+ */
2401
+ export interface DetectedProfileObjectType {
2402
+ /**
2403
+ * @public
2404
+ * <p>The format of <code>sourceLastUpdatedTimestamp</code> that was detected in fields.</p>
2405
+ */
2406
+ SourceLastUpdatedTimestampFormat?: string;
2407
+ /**
2408
+ * @public
2409
+ * <p>A map of the name and the <code>ObjectType</code> field.</p>
2410
+ */
2411
+ Fields?: Record<string, ObjectTypeField>;
2412
+ /**
2413
+ * @public
2414
+ * <p>A list of unique keys that can be used to map data to a profile.</p>
2415
+ */
2416
+ Keys?: Record<string, ObjectTypeKey[]>;
2417
+ }
2418
+ /**
2419
+ * @public
2420
+ */
2421
+ export interface DetectProfileObjectTypeResponse {
2422
+ /**
2423
+ * @public
2424
+ * <p>Detected <code>ProfileObjectType</code> mappings from given objects. A maximum of one mapping is supported.</p>
2425
+ */
2426
+ DetectedProfileObjectTypes?: DetectedProfileObjectType[];
2427
+ }
2302
2428
  /**
2303
2429
  * @public
2304
2430
  */
@@ -3003,86 +3129,6 @@ export interface GetProfileObjectTypeRequest {
3003
3129
  */
3004
3130
  ObjectTypeName: string | undefined;
3005
3131
  }
3006
- /**
3007
- * @public
3008
- * @enum
3009
- */
3010
- export declare const FieldContentType: {
3011
- readonly EMAIL_ADDRESS: "EMAIL_ADDRESS";
3012
- readonly NAME: "NAME";
3013
- readonly NUMBER: "NUMBER";
3014
- readonly PHONE_NUMBER: "PHONE_NUMBER";
3015
- readonly STRING: "STRING";
3016
- };
3017
- /**
3018
- * @public
3019
- */
3020
- export type FieldContentType = (typeof FieldContentType)[keyof typeof FieldContentType];
3021
- /**
3022
- * @public
3023
- * <p>Represents a field in a ProfileObjectType.</p>
3024
- */
3025
- export interface ObjectTypeField {
3026
- /**
3027
- * @public
3028
- * <p>A field of a ProfileObject. For example: _source.FirstName, where “_source” is a
3029
- * ProfileObjectType of a Zendesk user and “FirstName” is a field in that ObjectType.</p>
3030
- */
3031
- Source?: string;
3032
- /**
3033
- * @public
3034
- * <p>The location of the data in the standard ProfileObject model. For example:
3035
- * _profile.Address.PostalCode.</p>
3036
- */
3037
- Target?: string;
3038
- /**
3039
- * @public
3040
- * <p>The content type of the field. Used for determining equality when searching.</p>
3041
- */
3042
- ContentType?: FieldContentType;
3043
- }
3044
- /**
3045
- * @public
3046
- * @enum
3047
- */
3048
- export declare const StandardIdentifier: {
3049
- readonly ASSET: "ASSET";
3050
- readonly CASE: "CASE";
3051
- readonly LOOKUP_ONLY: "LOOKUP_ONLY";
3052
- readonly NEW_ONLY: "NEW_ONLY";
3053
- readonly ORDER: "ORDER";
3054
- readonly PROFILE: "PROFILE";
3055
- readonly SECONDARY: "SECONDARY";
3056
- readonly UNIQUE: "UNIQUE";
3057
- };
3058
- /**
3059
- * @public
3060
- */
3061
- export type StandardIdentifier = (typeof StandardIdentifier)[keyof typeof StandardIdentifier];
3062
- /**
3063
- * @public
3064
- * <p>An object that defines the Key element of a ProfileObject. A Key is a special element
3065
- * that can be used to search for a customer profile.</p>
3066
- */
3067
- export interface ObjectTypeKey {
3068
- /**
3069
- * @public
3070
- * <p>The types of keys that a ProfileObject can have. Each ProfileObject can have only 1
3071
- * UNIQUE key but multiple PROFILE keys. PROFILE, ASSET, CASE, or ORDER means that this key can be
3072
- * used to tie an object to a PROFILE, ASSET, CASE, or ORDER respectively. UNIQUE means that it can be
3073
- * used to uniquely identify an object. If a key a is marked as SECONDARY, it will be used to
3074
- * search for profiles after all other PROFILE keys have been searched. A LOOKUP_ONLY key is
3075
- * only used to match a profile but is not persisted to be used for searching of the profile.
3076
- * A NEW_ONLY key is only used if the profile does not already exist before the object is
3077
- * ingested, otherwise it is only used for matching objects to profiles.</p>
3078
- */
3079
- StandardIdentifiers?: StandardIdentifier[];
3080
- /**
3081
- * @public
3082
- * <p>The reference for the key name of the fields map.</p>
3083
- */
3084
- FieldNames?: string[];
3085
- }
3086
3132
  /**
3087
3133
  * @public
3088
3134
  */
@@ -5452,6 +5498,18 @@ export declare const CreateIntegrationWorkflowRequestFilterSensitiveLog: (obj: C
5452
5498
  * @internal
5453
5499
  */
5454
5500
  export declare const CreateProfileRequestFilterSensitiveLog: (obj: CreateProfileRequest) => any;
5501
+ /**
5502
+ * @internal
5503
+ */
5504
+ export declare const DetectProfileObjectTypeRequestFilterSensitiveLog: (obj: DetectProfileObjectTypeRequest) => any;
5505
+ /**
5506
+ * @internal
5507
+ */
5508
+ export declare const DetectedProfileObjectTypeFilterSensitiveLog: (obj: DetectedProfileObjectType) => any;
5509
+ /**
5510
+ * @internal
5511
+ */
5512
+ export declare const DetectProfileObjectTypeResponseFilterSensitiveLog: (obj: DetectProfileObjectTypeResponse) => any;
5455
5513
  /**
5456
5514
  * @internal
5457
5515
  */
@@ -15,6 +15,7 @@ import { DeleteProfileKeyCommandInput, DeleteProfileKeyCommandOutput } from "../
15
15
  import { DeleteProfileObjectCommandInput, DeleteProfileObjectCommandOutput } from "../commands/DeleteProfileObjectCommand";
16
16
  import { DeleteProfileObjectTypeCommandInput, DeleteProfileObjectTypeCommandOutput } from "../commands/DeleteProfileObjectTypeCommand";
17
17
  import { DeleteWorkflowCommandInput, DeleteWorkflowCommandOutput } from "../commands/DeleteWorkflowCommand";
18
+ import { DetectProfileObjectTypeCommandInput, DetectProfileObjectTypeCommandOutput } from "../commands/DetectProfileObjectTypeCommand";
18
19
  import { GetAutoMergingPreviewCommandInput, GetAutoMergingPreviewCommandOutput } from "../commands/GetAutoMergingPreviewCommand";
19
20
  import { GetCalculatedAttributeDefinitionCommandInput, GetCalculatedAttributeDefinitionCommandOutput } from "../commands/GetCalculatedAttributeDefinitionCommand";
20
21
  import { GetCalculatedAttributeForProfileCommandInput, GetCalculatedAttributeForProfileCommandOutput } from "../commands/GetCalculatedAttributeForProfileCommand";
@@ -111,6 +112,10 @@ export declare const se_DeleteProfileObjectTypeCommand: (input: DeleteProfileObj
111
112
  * serializeAws_restJson1DeleteWorkflowCommand
112
113
  */
113
114
  export declare const se_DeleteWorkflowCommand: (input: DeleteWorkflowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
115
+ /**
116
+ * serializeAws_restJson1DetectProfileObjectTypeCommand
117
+ */
118
+ export declare const se_DetectProfileObjectTypeCommand: (input: DetectProfileObjectTypeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
114
119
  /**
115
120
  * serializeAws_restJson1GetAutoMergingPreviewCommand
116
121
  */
@@ -315,6 +320,10 @@ export declare const de_DeleteProfileObjectTypeCommand: (output: __HttpResponse,
315
320
  * deserializeAws_restJson1DeleteWorkflowCommand
316
321
  */
317
322
  export declare const de_DeleteWorkflowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteWorkflowCommandOutput>;
323
+ /**
324
+ * deserializeAws_restJson1DetectProfileObjectTypeCommand
325
+ */
326
+ export declare const de_DetectProfileObjectTypeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectProfileObjectTypeCommandOutput>;
318
327
  /**
319
328
  * deserializeAws_restJson1GetAutoMergingPreviewCommand
320
329
  */
@@ -59,6 +59,10 @@ import {
59
59
  DeleteWorkflowCommandInput,
60
60
  DeleteWorkflowCommandOutput,
61
61
  } from "./commands/DeleteWorkflowCommand";
62
+ import {
63
+ DetectProfileObjectTypeCommandInput,
64
+ DetectProfileObjectTypeCommandOutput,
65
+ } from "./commands/DetectProfileObjectTypeCommand";
62
66
  import {
63
67
  GetAutoMergingPreviewCommandInput,
64
68
  GetAutoMergingPreviewCommandOutput,
@@ -412,6 +416,19 @@ export interface CustomerProfiles {
412
416
  options: __HttpHandlerOptions,
413
417
  cb: (err: any, data?: DeleteWorkflowCommandOutput) => void
414
418
  ): void;
419
+ detectProfileObjectType(
420
+ args: DetectProfileObjectTypeCommandInput,
421
+ options?: __HttpHandlerOptions
422
+ ): Promise<DetectProfileObjectTypeCommandOutput>;
423
+ detectProfileObjectType(
424
+ args: DetectProfileObjectTypeCommandInput,
425
+ cb: (err: any, data?: DetectProfileObjectTypeCommandOutput) => void
426
+ ): void;
427
+ detectProfileObjectType(
428
+ args: DetectProfileObjectTypeCommandInput,
429
+ options: __HttpHandlerOptions,
430
+ cb: (err: any, data?: DetectProfileObjectTypeCommandOutput) => void
431
+ ): void;
415
432
  getAutoMergingPreview(
416
433
  args: GetAutoMergingPreviewCommandInput,
417
434
  options?: __HttpHandlerOptions
@@ -105,6 +105,10 @@ import {
105
105
  DeleteWorkflowCommandInput,
106
106
  DeleteWorkflowCommandOutput,
107
107
  } from "./commands/DeleteWorkflowCommand";
108
+ import {
109
+ DetectProfileObjectTypeCommandInput,
110
+ DetectProfileObjectTypeCommandOutput,
111
+ } from "./commands/DetectProfileObjectTypeCommand";
108
112
  import {
109
113
  GetAutoMergingPreviewCommandInput,
110
114
  GetAutoMergingPreviewCommandOutput,
@@ -272,6 +276,7 @@ export type ServiceInputTypes =
272
276
  | DeleteProfileObjectCommandInput
273
277
  | DeleteProfileObjectTypeCommandInput
274
278
  | DeleteWorkflowCommandInput
279
+ | DetectProfileObjectTypeCommandInput
275
280
  | GetAutoMergingPreviewCommandInput
276
281
  | GetCalculatedAttributeDefinitionCommandInput
277
282
  | GetCalculatedAttributeForProfileCommandInput
@@ -324,6 +329,7 @@ export type ServiceOutputTypes =
324
329
  | DeleteProfileObjectCommandOutput
325
330
  | DeleteProfileObjectTypeCommandOutput
326
331
  | DeleteWorkflowCommandOutput
332
+ | DetectProfileObjectTypeCommandOutput
327
333
  | GetAutoMergingPreviewCommandOutput
328
334
  | GetCalculatedAttributeDefinitionCommandOutput
329
335
  | GetCalculatedAttributeForProfileCommandOutput
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CustomerProfilesClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CustomerProfilesClient";
14
+ import {
15
+ DetectProfileObjectTypeRequest,
16
+ DetectProfileObjectTypeResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface DetectProfileObjectTypeCommandInput
20
+ extends DetectProfileObjectTypeRequest {}
21
+ export interface DetectProfileObjectTypeCommandOutput
22
+ extends DetectProfileObjectTypeResponse,
23
+ __MetadataBearer {}
24
+ export declare class DetectProfileObjectTypeCommand extends $Command<
25
+ DetectProfileObjectTypeCommandInput,
26
+ DetectProfileObjectTypeCommandOutput,
27
+ CustomerProfilesClientResolvedConfig
28
+ > {
29
+ readonly input: DetectProfileObjectTypeCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: DetectProfileObjectTypeCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: CustomerProfilesClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ DetectProfileObjectTypeCommandInput,
38
+ DetectProfileObjectTypeCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -13,6 +13,7 @@ export * from "./DeleteProfileKeyCommand";
13
13
  export * from "./DeleteProfileObjectCommand";
14
14
  export * from "./DeleteProfileObjectTypeCommand";
15
15
  export * from "./DeleteWorkflowCommand";
16
+ export * from "./DetectProfileObjectTypeCommand";
16
17
  export * from "./GetAutoMergingPreviewCommand";
17
18
  export * from "./GetCalculatedAttributeDefinitionCommand";
18
19
  export * from "./GetCalculatedAttributeForProfileCommand";
@@ -657,6 +657,48 @@ export interface DeleteWorkflowRequest {
657
657
  WorkflowId: string | undefined;
658
658
  }
659
659
  export interface DeleteWorkflowResponse {}
660
+ export interface DetectProfileObjectTypeRequest {
661
+ Objects: string[] | undefined;
662
+ DomainName: string | undefined;
663
+ }
664
+ export declare const FieldContentType: {
665
+ readonly EMAIL_ADDRESS: "EMAIL_ADDRESS";
666
+ readonly NAME: "NAME";
667
+ readonly NUMBER: "NUMBER";
668
+ readonly PHONE_NUMBER: "PHONE_NUMBER";
669
+ readonly STRING: "STRING";
670
+ };
671
+ export type FieldContentType =
672
+ (typeof FieldContentType)[keyof typeof FieldContentType];
673
+ export interface ObjectTypeField {
674
+ Source?: string;
675
+ Target?: string;
676
+ ContentType?: FieldContentType;
677
+ }
678
+ export declare const StandardIdentifier: {
679
+ readonly ASSET: "ASSET";
680
+ readonly CASE: "CASE";
681
+ readonly LOOKUP_ONLY: "LOOKUP_ONLY";
682
+ readonly NEW_ONLY: "NEW_ONLY";
683
+ readonly ORDER: "ORDER";
684
+ readonly PROFILE: "PROFILE";
685
+ readonly SECONDARY: "SECONDARY";
686
+ readonly UNIQUE: "UNIQUE";
687
+ };
688
+ export type StandardIdentifier =
689
+ (typeof StandardIdentifier)[keyof typeof StandardIdentifier];
690
+ export interface ObjectTypeKey {
691
+ StandardIdentifiers?: StandardIdentifier[];
692
+ FieldNames?: string[];
693
+ }
694
+ export interface DetectedProfileObjectType {
695
+ SourceLastUpdatedTimestampFormat?: string;
696
+ Fields?: Record<string, ObjectTypeField>;
697
+ Keys?: Record<string, ObjectTypeKey[]>;
698
+ }
699
+ export interface DetectProfileObjectTypeResponse {
700
+ DetectedProfileObjectTypes?: DetectedProfileObjectType[];
701
+ }
660
702
  export interface GetAutoMergingPreviewRequest {
661
703
  DomainName: string | undefined;
662
704
  Consolidation: Consolidation | undefined;
@@ -822,36 +864,6 @@ export interface GetProfileObjectTypeRequest {
822
864
  DomainName: string | undefined;
823
865
  ObjectTypeName: string | undefined;
824
866
  }
825
- export declare const FieldContentType: {
826
- readonly EMAIL_ADDRESS: "EMAIL_ADDRESS";
827
- readonly NAME: "NAME";
828
- readonly NUMBER: "NUMBER";
829
- readonly PHONE_NUMBER: "PHONE_NUMBER";
830
- readonly STRING: "STRING";
831
- };
832
- export type FieldContentType =
833
- (typeof FieldContentType)[keyof typeof FieldContentType];
834
- export interface ObjectTypeField {
835
- Source?: string;
836
- Target?: string;
837
- ContentType?: FieldContentType;
838
- }
839
- export declare const StandardIdentifier: {
840
- readonly ASSET: "ASSET";
841
- readonly CASE: "CASE";
842
- readonly LOOKUP_ONLY: "LOOKUP_ONLY";
843
- readonly NEW_ONLY: "NEW_ONLY";
844
- readonly ORDER: "ORDER";
845
- readonly PROFILE: "PROFILE";
846
- readonly SECONDARY: "SECONDARY";
847
- readonly UNIQUE: "UNIQUE";
848
- };
849
- export type StandardIdentifier =
850
- (typeof StandardIdentifier)[keyof typeof StandardIdentifier];
851
- export interface ObjectTypeKey {
852
- StandardIdentifiers?: StandardIdentifier[];
853
- FieldNames?: string[];
854
- }
855
867
  export interface GetProfileObjectTypeResponse {
856
868
  ObjectTypeName: string | undefined;
857
869
  Description: string | undefined;
@@ -1381,6 +1393,15 @@ export declare const CreateIntegrationWorkflowRequestFilterSensitiveLog: (
1381
1393
  export declare const CreateProfileRequestFilterSensitiveLog: (
1382
1394
  obj: CreateProfileRequest
1383
1395
  ) => any;
1396
+ export declare const DetectProfileObjectTypeRequestFilterSensitiveLog: (
1397
+ obj: DetectProfileObjectTypeRequest
1398
+ ) => any;
1399
+ export declare const DetectedProfileObjectTypeFilterSensitiveLog: (
1400
+ obj: DetectedProfileObjectType
1401
+ ) => any;
1402
+ export declare const DetectProfileObjectTypeResponseFilterSensitiveLog: (
1403
+ obj: DetectProfileObjectTypeResponse
1404
+ ) => any;
1384
1405
  export declare const GetCalculatedAttributeDefinitionResponseFilterSensitiveLog: (
1385
1406
  obj: GetCalculatedAttributeDefinitionResponse
1386
1407
  ) => any;
@@ -63,6 +63,10 @@ import {
63
63
  DeleteWorkflowCommandInput,
64
64
  DeleteWorkflowCommandOutput,
65
65
  } from "../commands/DeleteWorkflowCommand";
66
+ import {
67
+ DetectProfileObjectTypeCommandInput,
68
+ DetectProfileObjectTypeCommandOutput,
69
+ } from "../commands/DetectProfileObjectTypeCommand";
66
70
  import {
67
71
  GetAutoMergingPreviewCommandInput,
68
72
  GetAutoMergingPreviewCommandOutput,
@@ -267,6 +271,10 @@ export declare const se_DeleteWorkflowCommand: (
267
271
  input: DeleteWorkflowCommandInput,
268
272
  context: __SerdeContext
269
273
  ) => Promise<__HttpRequest>;
274
+ export declare const se_DetectProfileObjectTypeCommand: (
275
+ input: DetectProfileObjectTypeCommandInput,
276
+ context: __SerdeContext
277
+ ) => Promise<__HttpRequest>;
270
278
  export declare const se_GetAutoMergingPreviewCommand: (
271
279
  input: GetAutoMergingPreviewCommandInput,
272
280
  context: __SerdeContext
@@ -471,6 +479,10 @@ export declare const de_DeleteWorkflowCommand: (
471
479
  output: __HttpResponse,
472
480
  context: __SerdeContext
473
481
  ) => Promise<DeleteWorkflowCommandOutput>;
482
+ export declare const de_DetectProfileObjectTypeCommand: (
483
+ output: __HttpResponse,
484
+ context: __SerdeContext
485
+ ) => Promise<DetectProfileObjectTypeCommandOutput>;
474
486
  export declare const de_GetAutoMergingPreviewCommand: (
475
487
  output: __HttpResponse,
476
488
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-customer-profiles",
3
3
  "description": "AWS SDK for JavaScript Customer Profiles Client for Node.js, Browser and React Native",
4
- "version": "3.458.0",
4
+ "version": "3.461.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,19 +21,19 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.458.0",
24
+ "@aws-sdk/client-sts": "3.461.0",
25
25
  "@aws-sdk/core": "3.451.0",
26
- "@aws-sdk/credential-provider-node": "3.458.0",
27
- "@aws-sdk/middleware-host-header": "3.451.0",
28
- "@aws-sdk/middleware-logger": "3.451.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.451.0",
30
- "@aws-sdk/middleware-signing": "3.451.0",
31
- "@aws-sdk/middleware-user-agent": "3.451.0",
26
+ "@aws-sdk/credential-provider-node": "3.460.0",
27
+ "@aws-sdk/middleware-host-header": "3.460.0",
28
+ "@aws-sdk/middleware-logger": "3.460.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.460.0",
30
+ "@aws-sdk/middleware-signing": "3.461.0",
31
+ "@aws-sdk/middleware-user-agent": "3.460.0",
32
32
  "@aws-sdk/region-config-resolver": "3.451.0",
33
- "@aws-sdk/types": "3.451.0",
34
- "@aws-sdk/util-endpoints": "3.451.0",
35
- "@aws-sdk/util-user-agent-browser": "3.451.0",
36
- "@aws-sdk/util-user-agent-node": "3.451.0",
33
+ "@aws-sdk/types": "3.460.0",
34
+ "@aws-sdk/util-endpoints": "3.460.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.460.0",
36
+ "@aws-sdk/util-user-agent-node": "3.460.0",
37
37
  "@smithy/config-resolver": "^2.0.18",
38
38
  "@smithy/fetch-http-handler": "^2.2.6",
39
39
  "@smithy/hash-node": "^2.0.15",