@aws-sdk/client-customer-profiles 3.347.1 → 3.348.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.
Files changed (52) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/CustomerProfiles.js +8 -0
  3. package/dist-cjs/commands/CreateEventStreamCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteEventStreamCommand.js +46 -0
  5. package/dist-cjs/commands/GetEventStreamCommand.js +46 -0
  6. package/dist-cjs/commands/ListEventStreamsCommand.js +46 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/index.js +1 -0
  9. package/dist-cjs/models/models_0.js +9 -1
  10. package/dist-cjs/pagination/Interfaces.js +2 -0
  11. package/dist-cjs/pagination/ListEventStreamsPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +5 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +309 -2
  14. package/dist-es/CustomerProfiles.js +8 -0
  15. package/dist-es/commands/CreateEventStreamCommand.js +42 -0
  16. package/dist-es/commands/DeleteEventStreamCommand.js +42 -0
  17. package/dist-es/commands/GetEventStreamCommand.js +42 -0
  18. package/dist-es/commands/ListEventStreamsCommand.js +42 -0
  19. package/dist-es/commands/index.js +4 -0
  20. package/dist-es/index.js +1 -0
  21. package/dist-es/models/models_0.js +8 -0
  22. package/dist-es/pagination/Interfaces.js +1 -0
  23. package/dist-es/pagination/ListEventStreamsPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +2 -0
  25. package/dist-es/protocols/Aws_restJson1.js +299 -0
  26. package/dist-types/CustomerProfiles.d.ts +28 -0
  27. package/dist-types/CustomerProfilesClient.d.ts +6 -2
  28. package/dist-types/commands/CreateEventStreamCommand.d.ts +99 -0
  29. package/dist-types/commands/DeleteEventStreamCommand.d.ts +87 -0
  30. package/dist-types/commands/GetEventStreamCommand.d.ts +102 -0
  31. package/dist-types/commands/ListEventStreamsCommand.d.ts +107 -0
  32. package/dist-types/commands/index.d.ts +4 -0
  33. package/dist-types/index.d.ts +1 -0
  34. package/dist-types/models/models_0.d.ts +229 -0
  35. package/dist-types/pagination/Interfaces.d.ts +8 -0
  36. package/dist-types/pagination/ListEventStreamsPaginator.d.ts +7 -0
  37. package/dist-types/pagination/index.d.ts +2 -0
  38. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  39. package/dist-types/ts3.4/CustomerProfiles.d.ts +68 -0
  40. package/dist-types/ts3.4/CustomerProfilesClient.d.ts +24 -0
  41. package/dist-types/ts3.4/commands/CreateEventStreamCommand.d.ts +39 -0
  42. package/dist-types/ts3.4/commands/DeleteEventStreamCommand.d.ts +39 -0
  43. package/dist-types/ts3.4/commands/GetEventStreamCommand.d.ts +38 -0
  44. package/dist-types/ts3.4/commands/ListEventStreamsCommand.d.ts +38 -0
  45. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  46. package/dist-types/ts3.4/index.d.ts +1 -0
  47. package/dist-types/ts3.4/models/models_0.d.ts +69 -0
  48. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  49. package/dist-types/ts3.4/pagination/ListEventStreamsPaginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  51. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  52. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_CreateProfileCommand = exports.de_CreateIntegrationWorkflowCommand = exports.de_CreateDomainCommand = exports.de_CreateCalculatedAttributeDefinitionCommand = exports.de_AddProfileKeyCommand = exports.se_UpdateProfileCommand = 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_ListProfileObjectTypeTemplatesCommand = exports.se_ListProfileObjectTypesCommand = exports.se_ListProfileObjectsCommand = exports.se_ListIntegrationsCommand = exports.se_ListIdentityResolutionJobsCommand = exports.se_ListDomainsCommand = exports.se_ListCalculatedAttributesForProfileCommand = exports.se_ListCalculatedAttributeDefinitionsCommand = exports.se_ListAccountIntegrationsCommand = exports.se_GetWorkflowStepsCommand = exports.se_GetWorkflowCommand = exports.se_GetProfileObjectTypeTemplateCommand = exports.se_GetProfileObjectTypeCommand = exports.se_GetMatchesCommand = exports.se_GetIntegrationCommand = exports.se_GetIdentityResolutionJobCommand = 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_DeleteDomainCommand = exports.se_DeleteCalculatedAttributeDefinitionCommand = exports.se_CreateProfileCommand = exports.se_CreateIntegrationWorkflowCommand = exports.se_CreateDomainCommand = exports.se_CreateCalculatedAttributeDefinitionCommand = exports.se_AddProfileKeyCommand = void 0;
4
- exports.de_UpdateProfileCommand = exports.de_UpdateDomainCommand = 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_ListProfileObjectTypeTemplatesCommand = exports.de_ListProfileObjectTypesCommand = exports.de_ListProfileObjectsCommand = exports.de_ListIntegrationsCommand = exports.de_ListIdentityResolutionJobsCommand = exports.de_ListDomainsCommand = exports.de_ListCalculatedAttributesForProfileCommand = exports.de_ListCalculatedAttributeDefinitionsCommand = exports.de_ListAccountIntegrationsCommand = exports.de_GetWorkflowStepsCommand = exports.de_GetWorkflowCommand = exports.de_GetProfileObjectTypeTemplateCommand = exports.de_GetProfileObjectTypeCommand = exports.de_GetMatchesCommand = exports.de_GetIntegrationCommand = exports.de_GetIdentityResolutionJobCommand = 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_DeleteDomainCommand = exports.de_DeleteCalculatedAttributeDefinitionCommand = void 0;
3
+ exports.de_AddProfileKeyCommand = exports.se_UpdateProfileCommand = 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_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_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_UpdateProfileCommand = exports.de_UpdateDomainCommand = 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_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_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 = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const CustomerProfilesServiceException_1 = require("../models/CustomerProfilesServiceException");
@@ -85,6 +85,31 @@ const se_CreateDomainCommand = async (input, context) => {
85
85
  });
86
86
  };
87
87
  exports.se_CreateDomainCommand = se_CreateDomainCommand;
88
+ const se_CreateEventStreamCommand = async (input, context) => {
89
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const headers = {
91
+ "content-type": "application/json",
92
+ };
93
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
94
+ "/domains/{DomainName}/event-streams/{EventStreamName}";
95
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
96
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventStreamName", () => input.EventStreamName, "{EventStreamName}", false);
97
+ let body;
98
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
99
+ Tags: (_) => (0, smithy_client_1._json)(_),
100
+ Uri: [],
101
+ }));
102
+ return new protocol_http_1.HttpRequest({
103
+ protocol,
104
+ hostname,
105
+ port,
106
+ method: "POST",
107
+ headers,
108
+ path: resolvedPath,
109
+ body,
110
+ });
111
+ };
112
+ exports.se_CreateEventStreamCommand = se_CreateEventStreamCommand;
88
113
  const se_CreateIntegrationWorkflowCommand = async (input, context) => {
89
114
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
115
  const headers = {
@@ -192,6 +217,25 @@ const se_DeleteDomainCommand = async (input, context) => {
192
217
  });
193
218
  };
194
219
  exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
220
+ const se_DeleteEventStreamCommand = async (input, context) => {
221
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
222
+ const headers = {};
223
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
224
+ "/domains/{DomainName}/event-streams/{EventStreamName}";
225
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
226
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventStreamName", () => input.EventStreamName, "{EventStreamName}", false);
227
+ let body;
228
+ return new protocol_http_1.HttpRequest({
229
+ protocol,
230
+ hostname,
231
+ port,
232
+ method: "DELETE",
233
+ headers,
234
+ path: resolvedPath,
235
+ body,
236
+ });
237
+ };
238
+ exports.se_DeleteEventStreamCommand = se_DeleteEventStreamCommand;
195
239
  const se_DeleteIntegrationCommand = async (input, context) => {
196
240
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
197
241
  const headers = {
@@ -405,6 +449,25 @@ const se_GetDomainCommand = async (input, context) => {
405
449
  });
406
450
  };
407
451
  exports.se_GetDomainCommand = se_GetDomainCommand;
452
+ const se_GetEventStreamCommand = async (input, context) => {
453
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
+ const headers = {};
455
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
456
+ "/domains/{DomainName}/event-streams/{EventStreamName}";
457
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
458
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventStreamName", () => input.EventStreamName, "{EventStreamName}", false);
459
+ let body;
460
+ return new protocol_http_1.HttpRequest({
461
+ protocol,
462
+ hostname,
463
+ port,
464
+ method: "GET",
465
+ headers,
466
+ path: resolvedPath,
467
+ body,
468
+ });
469
+ };
470
+ exports.se_GetEventStreamCommand = se_GetEventStreamCommand;
408
471
  const se_GetIdentityResolutionJobCommand = async (input, context) => {
409
472
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
410
473
  const headers = {};
@@ -642,6 +705,28 @@ const se_ListDomainsCommand = async (input, context) => {
642
705
  });
643
706
  };
644
707
  exports.se_ListDomainsCommand = se_ListDomainsCommand;
708
+ const se_ListEventStreamsCommand = async (input, context) => {
709
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
710
+ const headers = {};
711
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/event-streams";
712
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
713
+ const query = (0, smithy_client_1.map)({
714
+ "next-token": [, input.NextToken],
715
+ "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
716
+ });
717
+ let body;
718
+ return new protocol_http_1.HttpRequest({
719
+ protocol,
720
+ hostname,
721
+ port,
722
+ method: "GET",
723
+ headers,
724
+ path: resolvedPath,
725
+ query,
726
+ body,
727
+ });
728
+ };
729
+ exports.se_ListEventStreamsCommand = se_ListEventStreamsCommand;
645
730
  const se_ListIdentityResolutionJobsCommand = async (input, context) => {
646
731
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
647
732
  const headers = {};
@@ -1240,6 +1325,53 @@ const de_CreateDomainCommandError = async (output, context) => {
1240
1325
  });
1241
1326
  }
1242
1327
  };
1328
+ const de_CreateEventStreamCommand = async (output, context) => {
1329
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1330
+ return de_CreateEventStreamCommandError(output, context);
1331
+ }
1332
+ const contents = (0, smithy_client_1.map)({
1333
+ $metadata: deserializeMetadata(output),
1334
+ });
1335
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1336
+ const doc = (0, smithy_client_1.take)(data, {
1337
+ EventStreamArn: smithy_client_1.expectString,
1338
+ Tags: smithy_client_1._json,
1339
+ });
1340
+ Object.assign(contents, doc);
1341
+ return contents;
1342
+ };
1343
+ exports.de_CreateEventStreamCommand = de_CreateEventStreamCommand;
1344
+ const de_CreateEventStreamCommandError = async (output, context) => {
1345
+ const parsedOutput = {
1346
+ ...output,
1347
+ body: await parseErrorBody(output.body, context),
1348
+ };
1349
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1350
+ switch (errorCode) {
1351
+ case "AccessDeniedException":
1352
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
1353
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1354
+ case "BadRequestException":
1355
+ case "com.amazonaws.customerprofiles#BadRequestException":
1356
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1357
+ case "InternalServerException":
1358
+ case "com.amazonaws.customerprofiles#InternalServerException":
1359
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1360
+ case "ResourceNotFoundException":
1361
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1362
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1363
+ case "ThrottlingException":
1364
+ case "com.amazonaws.customerprofiles#ThrottlingException":
1365
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1366
+ default:
1367
+ const parsedBody = parsedOutput.body;
1368
+ return throwDefaultError({
1369
+ output,
1370
+ parsedBody,
1371
+ errorCode,
1372
+ });
1373
+ }
1374
+ };
1243
1375
  const de_CreateIntegrationWorkflowCommand = async (output, context) => {
1244
1376
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1245
1377
  return de_CreateIntegrationWorkflowCommandError(output, context);
@@ -1421,6 +1553,48 @@ const de_DeleteDomainCommandError = async (output, context) => {
1421
1553
  });
1422
1554
  }
1423
1555
  };
1556
+ const de_DeleteEventStreamCommand = async (output, context) => {
1557
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1558
+ return de_DeleteEventStreamCommandError(output, context);
1559
+ }
1560
+ const contents = (0, smithy_client_1.map)({
1561
+ $metadata: deserializeMetadata(output),
1562
+ });
1563
+ await collectBody(output.body, context);
1564
+ return contents;
1565
+ };
1566
+ exports.de_DeleteEventStreamCommand = de_DeleteEventStreamCommand;
1567
+ const de_DeleteEventStreamCommandError = async (output, context) => {
1568
+ const parsedOutput = {
1569
+ ...output,
1570
+ body: await parseErrorBody(output.body, context),
1571
+ };
1572
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1573
+ switch (errorCode) {
1574
+ case "AccessDeniedException":
1575
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
1576
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1577
+ case "BadRequestException":
1578
+ case "com.amazonaws.customerprofiles#BadRequestException":
1579
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1580
+ case "InternalServerException":
1581
+ case "com.amazonaws.customerprofiles#InternalServerException":
1582
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1583
+ case "ResourceNotFoundException":
1584
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1585
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1586
+ case "ThrottlingException":
1587
+ case "com.amazonaws.customerprofiles#ThrottlingException":
1588
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1589
+ default:
1590
+ const parsedBody = parsedOutput.body;
1591
+ return throwDefaultError({
1592
+ output,
1593
+ parsedBody,
1594
+ errorCode,
1595
+ });
1596
+ }
1597
+ };
1424
1598
  const de_DeleteIntegrationCommand = async (output, context) => {
1425
1599
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1426
1600
  return de_DeleteIntegrationCommandError(output, context);
@@ -1899,6 +2073,58 @@ const de_GetDomainCommandError = async (output, context) => {
1899
2073
  });
1900
2074
  }
1901
2075
  };
2076
+ const de_GetEventStreamCommand = async (output, context) => {
2077
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2078
+ return de_GetEventStreamCommandError(output, context);
2079
+ }
2080
+ const contents = (0, smithy_client_1.map)({
2081
+ $metadata: deserializeMetadata(output),
2082
+ });
2083
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2084
+ const doc = (0, smithy_client_1.take)(data, {
2085
+ CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2086
+ DestinationDetails: (_) => de_EventStreamDestinationDetails(_, context),
2087
+ DomainName: smithy_client_1.expectString,
2088
+ EventStreamArn: smithy_client_1.expectString,
2089
+ State: smithy_client_1.expectString,
2090
+ StoppedSince: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2091
+ Tags: smithy_client_1._json,
2092
+ });
2093
+ Object.assign(contents, doc);
2094
+ return contents;
2095
+ };
2096
+ exports.de_GetEventStreamCommand = de_GetEventStreamCommand;
2097
+ const de_GetEventStreamCommandError = async (output, context) => {
2098
+ const parsedOutput = {
2099
+ ...output,
2100
+ body: await parseErrorBody(output.body, context),
2101
+ };
2102
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2103
+ switch (errorCode) {
2104
+ case "AccessDeniedException":
2105
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
2106
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2107
+ case "BadRequestException":
2108
+ case "com.amazonaws.customerprofiles#BadRequestException":
2109
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2110
+ case "InternalServerException":
2111
+ case "com.amazonaws.customerprofiles#InternalServerException":
2112
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2113
+ case "ResourceNotFoundException":
2114
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2115
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2116
+ case "ThrottlingException":
2117
+ case "com.amazonaws.customerprofiles#ThrottlingException":
2118
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2119
+ default:
2120
+ const parsedBody = parsedOutput.body;
2121
+ return throwDefaultError({
2122
+ output,
2123
+ parsedBody,
2124
+ errorCode,
2125
+ });
2126
+ }
2127
+ };
1902
2128
  const de_GetIdentityResolutionJobCommand = async (output, context) => {
1903
2129
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1904
2130
  return de_GetIdentityResolutionJobCommandError(output, context);
@@ -2457,6 +2683,53 @@ const de_ListDomainsCommandError = async (output, context) => {
2457
2683
  });
2458
2684
  }
2459
2685
  };
2686
+ const de_ListEventStreamsCommand = async (output, context) => {
2687
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2688
+ return de_ListEventStreamsCommandError(output, context);
2689
+ }
2690
+ const contents = (0, smithy_client_1.map)({
2691
+ $metadata: deserializeMetadata(output),
2692
+ });
2693
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2694
+ const doc = (0, smithy_client_1.take)(data, {
2695
+ Items: (_) => de_EventStreamSummaryList(_, context),
2696
+ NextToken: smithy_client_1.expectString,
2697
+ });
2698
+ Object.assign(contents, doc);
2699
+ return contents;
2700
+ };
2701
+ exports.de_ListEventStreamsCommand = de_ListEventStreamsCommand;
2702
+ const de_ListEventStreamsCommandError = async (output, context) => {
2703
+ const parsedOutput = {
2704
+ ...output,
2705
+ body: await parseErrorBody(output.body, context),
2706
+ };
2707
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2708
+ switch (errorCode) {
2709
+ case "AccessDeniedException":
2710
+ case "com.amazonaws.customerprofiles#AccessDeniedException":
2711
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2712
+ case "BadRequestException":
2713
+ case "com.amazonaws.customerprofiles#BadRequestException":
2714
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2715
+ case "InternalServerException":
2716
+ case "com.amazonaws.customerprofiles#InternalServerException":
2717
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2718
+ case "ResourceNotFoundException":
2719
+ case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2720
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2721
+ case "ThrottlingException":
2722
+ case "com.amazonaws.customerprofiles#ThrottlingException":
2723
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2724
+ default:
2725
+ const parsedBody = parsedOutput.body;
2726
+ return throwDefaultError({
2727
+ output,
2728
+ parsedBody,
2729
+ errorCode,
2730
+ });
2731
+ }
2732
+ };
2460
2733
  const de_ListIdentityResolutionJobsCommand = async (output, context) => {
2461
2734
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2462
2735
  return de_ListIdentityResolutionJobsCommandError(output, context);
@@ -3417,6 +3690,13 @@ const de_CalculatedAttributeDefinitionsList = (output, context) => {
3417
3690
  });
3418
3691
  return retVal;
3419
3692
  };
3693
+ const de_DestinationSummary = (output, context) => {
3694
+ return (0, smithy_client_1.take)(output, {
3695
+ Status: smithy_client_1.expectString,
3696
+ UnhealthySince: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3697
+ Uri: smithy_client_1.expectString,
3698
+ });
3699
+ };
3420
3700
  const de_DomainList = (output, context) => {
3421
3701
  const retVal = (output || [])
3422
3702
  .filter((e) => e != null)
@@ -3425,6 +3705,33 @@ const de_DomainList = (output, context) => {
3425
3705
  });
3426
3706
  return retVal;
3427
3707
  };
3708
+ const de_EventStreamDestinationDetails = (output, context) => {
3709
+ return (0, smithy_client_1.take)(output, {
3710
+ Message: smithy_client_1.expectString,
3711
+ Status: smithy_client_1.expectString,
3712
+ UnhealthySince: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3713
+ Uri: smithy_client_1.expectString,
3714
+ });
3715
+ };
3716
+ const de_EventStreamSummary = (output, context) => {
3717
+ return (0, smithy_client_1.take)(output, {
3718
+ DestinationSummary: (_) => de_DestinationSummary(_, context),
3719
+ DomainName: smithy_client_1.expectString,
3720
+ EventStreamArn: smithy_client_1.expectString,
3721
+ EventStreamName: smithy_client_1.expectString,
3722
+ State: smithy_client_1.expectString,
3723
+ StoppedSince: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3724
+ Tags: smithy_client_1._json,
3725
+ });
3726
+ };
3727
+ const de_EventStreamSummaryList = (output, context) => {
3728
+ const retVal = (output || [])
3729
+ .filter((e) => e != null)
3730
+ .map((entry) => {
3731
+ return de_EventStreamSummary(entry, context);
3732
+ });
3733
+ return retVal;
3734
+ };
3428
3735
  const de_IdentityResolutionJob = (output, context) => {
3429
3736
  return (0, smithy_client_1.take)(output, {
3430
3737
  DomainName: smithy_client_1.expectString,
@@ -2,10 +2,12 @@ import { createAggregatedClient } from "@aws-sdk/smithy-client";
2
2
  import { AddProfileKeyCommand, } from "./commands/AddProfileKeyCommand";
3
3
  import { CreateCalculatedAttributeDefinitionCommand, } from "./commands/CreateCalculatedAttributeDefinitionCommand";
4
4
  import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
5
+ import { CreateEventStreamCommand, } from "./commands/CreateEventStreamCommand";
5
6
  import { CreateIntegrationWorkflowCommand, } from "./commands/CreateIntegrationWorkflowCommand";
6
7
  import { CreateProfileCommand, } from "./commands/CreateProfileCommand";
7
8
  import { DeleteCalculatedAttributeDefinitionCommand, } from "./commands/DeleteCalculatedAttributeDefinitionCommand";
8
9
  import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
10
+ import { DeleteEventStreamCommand, } from "./commands/DeleteEventStreamCommand";
9
11
  import { DeleteIntegrationCommand, } from "./commands/DeleteIntegrationCommand";
10
12
  import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
11
13
  import { DeleteProfileKeyCommand, } from "./commands/DeleteProfileKeyCommand";
@@ -16,6 +18,7 @@ import { GetAutoMergingPreviewCommand, } from "./commands/GetAutoMergingPreviewC
16
18
  import { GetCalculatedAttributeDefinitionCommand, } from "./commands/GetCalculatedAttributeDefinitionCommand";
17
19
  import { GetCalculatedAttributeForProfileCommand, } from "./commands/GetCalculatedAttributeForProfileCommand";
18
20
  import { GetDomainCommand } from "./commands/GetDomainCommand";
21
+ import { GetEventStreamCommand, } from "./commands/GetEventStreamCommand";
19
22
  import { GetIdentityResolutionJobCommand, } from "./commands/GetIdentityResolutionJobCommand";
20
23
  import { GetIntegrationCommand, } from "./commands/GetIntegrationCommand";
21
24
  import { GetMatchesCommand } from "./commands/GetMatchesCommand";
@@ -27,6 +30,7 @@ import { ListAccountIntegrationsCommand, } from "./commands/ListAccountIntegrati
27
30
  import { ListCalculatedAttributeDefinitionsCommand, } from "./commands/ListCalculatedAttributeDefinitionsCommand";
28
31
  import { ListCalculatedAttributesForProfileCommand, } from "./commands/ListCalculatedAttributesForProfileCommand";
29
32
  import { ListDomainsCommand } from "./commands/ListDomainsCommand";
33
+ import { ListEventStreamsCommand, } from "./commands/ListEventStreamsCommand";
30
34
  import { ListIdentityResolutionJobsCommand, } from "./commands/ListIdentityResolutionJobsCommand";
31
35
  import { ListIntegrationsCommand, } from "./commands/ListIntegrationsCommand";
32
36
  import { ListProfileObjectsCommand, } from "./commands/ListProfileObjectsCommand";
@@ -49,10 +53,12 @@ const commands = {
49
53
  AddProfileKeyCommand,
50
54
  CreateCalculatedAttributeDefinitionCommand,
51
55
  CreateDomainCommand,
56
+ CreateEventStreamCommand,
52
57
  CreateIntegrationWorkflowCommand,
53
58
  CreateProfileCommand,
54
59
  DeleteCalculatedAttributeDefinitionCommand,
55
60
  DeleteDomainCommand,
61
+ DeleteEventStreamCommand,
56
62
  DeleteIntegrationCommand,
57
63
  DeleteProfileCommand,
58
64
  DeleteProfileKeyCommand,
@@ -63,6 +69,7 @@ const commands = {
63
69
  GetCalculatedAttributeDefinitionCommand,
64
70
  GetCalculatedAttributeForProfileCommand,
65
71
  GetDomainCommand,
72
+ GetEventStreamCommand,
66
73
  GetIdentityResolutionJobCommand,
67
74
  GetIntegrationCommand,
68
75
  GetMatchesCommand,
@@ -74,6 +81,7 @@ const commands = {
74
81
  ListCalculatedAttributeDefinitionsCommand,
75
82
  ListCalculatedAttributesForProfileCommand,
76
83
  ListDomainsCommand,
84
+ ListEventStreamsCommand,
77
85
  ListIdentityResolutionJobsCommand,
78
86
  ListIntegrationsCommand,
79
87
  ListProfileObjectsCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CreateEventStreamCommand, se_CreateEventStreamCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class CreateEventStreamCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateEventStreamCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CustomerProfilesClient";
25
+ const commandName = "CreateEventStreamCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_CreateEventStreamCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_CreateEventStreamCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeleteEventStreamCommand, se_DeleteEventStreamCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class DeleteEventStreamCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteEventStreamCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CustomerProfilesClient";
25
+ const commandName = "DeleteEventStreamCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DeleteEventStreamCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DeleteEventStreamCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_GetEventStreamCommand, se_GetEventStreamCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class GetEventStreamCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetEventStreamCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CustomerProfilesClient";
25
+ const commandName = "GetEventStreamCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_GetEventStreamCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_GetEventStreamCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ListEventStreamsCommand, se_ListEventStreamsCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class ListEventStreamsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListEventStreamsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CustomerProfilesClient";
25
+ const commandName = "ListEventStreamsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ListEventStreamsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ListEventStreamsCommand(output, context);
41
+ }
42
+ }
@@ -1,10 +1,12 @@
1
1
  export * from "./AddProfileKeyCommand";
2
2
  export * from "./CreateCalculatedAttributeDefinitionCommand";
3
3
  export * from "./CreateDomainCommand";
4
+ export * from "./CreateEventStreamCommand";
4
5
  export * from "./CreateIntegrationWorkflowCommand";
5
6
  export * from "./CreateProfileCommand";
6
7
  export * from "./DeleteCalculatedAttributeDefinitionCommand";
7
8
  export * from "./DeleteDomainCommand";
9
+ export * from "./DeleteEventStreamCommand";
8
10
  export * from "./DeleteIntegrationCommand";
9
11
  export * from "./DeleteProfileCommand";
10
12
  export * from "./DeleteProfileKeyCommand";
@@ -15,6 +17,7 @@ export * from "./GetAutoMergingPreviewCommand";
15
17
  export * from "./GetCalculatedAttributeDefinitionCommand";
16
18
  export * from "./GetCalculatedAttributeForProfileCommand";
17
19
  export * from "./GetDomainCommand";
20
+ export * from "./GetEventStreamCommand";
18
21
  export * from "./GetIdentityResolutionJobCommand";
19
22
  export * from "./GetIntegrationCommand";
20
23
  export * from "./GetMatchesCommand";
@@ -26,6 +29,7 @@ export * from "./ListAccountIntegrationsCommand";
26
29
  export * from "./ListCalculatedAttributeDefinitionsCommand";
27
30
  export * from "./ListCalculatedAttributesForProfileCommand";
28
31
  export * from "./ListDomainsCommand";
32
+ export * from "./ListEventStreamsCommand";
29
33
  export * from "./ListIdentityResolutionJobsCommand";
30
34
  export * from "./ListIntegrationsCommand";
31
35
  export * from "./ListProfileObjectTypeTemplatesCommand";
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./CustomerProfilesClient";
2
2
  export * from "./CustomerProfiles";
3
3
  export * from "./commands";
4
+ export * from "./pagination";
4
5
  export * from "./models";
5
6
  export { CustomerProfilesServiceException } from "./models/CustomerProfilesServiceException";