@aws-sdk/client-customer-profiles 3.840.0 → 3.844.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 (59) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/index.js +393 -67
  3. package/dist-es/CustomerProfiles.js +12 -0
  4. package/dist-es/commands/CreateUploadJobCommand.js +23 -0
  5. package/dist-es/commands/GetUploadJobCommand.js +23 -0
  6. package/dist-es/commands/GetUploadJobPathCommand.js +22 -0
  7. package/dist-es/commands/ListUploadJobsCommand.js +22 -0
  8. package/dist-es/commands/StartUploadJobCommand.js +22 -0
  9. package/dist-es/commands/StopUploadJobCommand.js +22 -0
  10. package/dist-es/commands/UpdateCalculatedAttributeDefinitionCommand.js +1 -1
  11. package/dist-es/commands/UpdateDomainLayoutCommand.js +1 -1
  12. package/dist-es/commands/UpdateEventTriggerCommand.js +1 -1
  13. package/dist-es/commands/index.js +6 -0
  14. package/dist-es/models/models_0.js +20 -35
  15. package/dist-es/models/models_1.js +35 -0
  16. package/dist-es/pagination/ListUploadJobsPaginator.js +4 -0
  17. package/dist-es/pagination/index.js +1 -0
  18. package/dist-es/protocols/Aws_restJson1.js +184 -0
  19. package/dist-types/CustomerProfiles.d.ts +42 -0
  20. package/dist-types/CustomerProfilesClient.d.ts +8 -2
  21. package/dist-types/commands/CreateUploadJobCommand.d.ts +98 -0
  22. package/dist-types/commands/GetUploadJobCommand.d.ts +107 -0
  23. package/dist-types/commands/GetUploadJobPathCommand.d.ts +91 -0
  24. package/dist-types/commands/ListUploadJobsCommand.d.ts +100 -0
  25. package/dist-types/commands/StartUploadJobCommand.d.ts +87 -0
  26. package/dist-types/commands/StopUploadJobCommand.d.ts +86 -0
  27. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  28. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateCalculatedAttributeDefinitionCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdateDomainCommand.d.ts +1 -1
  31. package/dist-types/commands/UpdateDomainLayoutCommand.d.ts +1 -1
  32. package/dist-types/commands/UpdateEventTriggerCommand.d.ts +1 -1
  33. package/dist-types/commands/index.d.ts +6 -0
  34. package/dist-types/models/models_0.d.ts +480 -660
  35. package/dist-types/models/models_1.d.ts +569 -1
  36. package/dist-types/pagination/ListUploadJobsPaginator.d.ts +7 -0
  37. package/dist-types/pagination/index.d.ts +1 -0
  38. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  39. package/dist-types/ts3.4/CustomerProfiles.d.ts +102 -0
  40. package/dist-types/ts3.4/CustomerProfilesClient.d.ts +36 -0
  41. package/dist-types/ts3.4/commands/CreateUploadJobCommand.d.ts +50 -0
  42. package/dist-types/ts3.4/commands/GetUploadJobCommand.d.ts +47 -0
  43. package/dist-types/ts3.4/commands/GetUploadJobPathCommand.d.ts +50 -0
  44. package/dist-types/ts3.4/commands/ListUploadJobsCommand.d.ts +50 -0
  45. package/dist-types/ts3.4/commands/StartUploadJobCommand.d.ts +48 -0
  46. package/dist-types/ts3.4/commands/StopUploadJobCommand.d.ts +50 -0
  47. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/UpdateCalculatedAttributeDefinitionCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/UpdateDomainCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/UpdateDomainLayoutCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/UpdateEventTriggerCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +95 -137
  55. package/dist-types/ts3.4/models/models_1.d.ts +147 -1
  56. package/dist-types/ts3.4/pagination/ListUploadJobsPaginator.d.ts +11 -0
  57. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  58. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  59. package/package.json +14 -14
@@ -12,6 +12,7 @@ import { CreateProfileCommand, } from "./commands/CreateProfileCommand";
12
12
  import { CreateSegmentDefinitionCommand, } from "./commands/CreateSegmentDefinitionCommand";
13
13
  import { CreateSegmentEstimateCommand, } from "./commands/CreateSegmentEstimateCommand";
14
14
  import { CreateSegmentSnapshotCommand, } from "./commands/CreateSegmentSnapshotCommand";
15
+ import { CreateUploadJobCommand, } from "./commands/CreateUploadJobCommand";
15
16
  import { DeleteCalculatedAttributeDefinitionCommand, } from "./commands/DeleteCalculatedAttributeDefinitionCommand";
16
17
  import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
17
18
  import { DeleteDomainLayoutCommand, } from "./commands/DeleteDomainLayoutCommand";
@@ -42,6 +43,8 @@ import { GetSegmentEstimateCommand, } from "./commands/GetSegmentEstimateCommand
42
43
  import { GetSegmentMembershipCommand, } from "./commands/GetSegmentMembershipCommand";
43
44
  import { GetSegmentSnapshotCommand, } from "./commands/GetSegmentSnapshotCommand";
44
45
  import { GetSimilarProfilesCommand, } from "./commands/GetSimilarProfilesCommand";
46
+ import { GetUploadJobCommand, } from "./commands/GetUploadJobCommand";
47
+ import { GetUploadJobPathCommand, } from "./commands/GetUploadJobPathCommand";
45
48
  import { GetWorkflowCommand } from "./commands/GetWorkflowCommand";
46
49
  import { GetWorkflowStepsCommand, } from "./commands/GetWorkflowStepsCommand";
47
50
  import { ListAccountIntegrationsCommand, } from "./commands/ListAccountIntegrationsCommand";
@@ -61,12 +64,15 @@ import { ListProfileObjectTypeTemplatesCommand, } from "./commands/ListProfileOb
61
64
  import { ListRuleBasedMatchesCommand, } from "./commands/ListRuleBasedMatchesCommand";
62
65
  import { ListSegmentDefinitionsCommand, } from "./commands/ListSegmentDefinitionsCommand";
63
66
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
67
+ import { ListUploadJobsCommand, } from "./commands/ListUploadJobsCommand";
64
68
  import { ListWorkflowsCommand, } from "./commands/ListWorkflowsCommand";
65
69
  import { MergeProfilesCommand, } from "./commands/MergeProfilesCommand";
66
70
  import { PutIntegrationCommand, } from "./commands/PutIntegrationCommand";
67
71
  import { PutProfileObjectCommand, } from "./commands/PutProfileObjectCommand";
68
72
  import { PutProfileObjectTypeCommand, } from "./commands/PutProfileObjectTypeCommand";
69
73
  import { SearchProfilesCommand, } from "./commands/SearchProfilesCommand";
74
+ import { StartUploadJobCommand, } from "./commands/StartUploadJobCommand";
75
+ import { StopUploadJobCommand, } from "./commands/StopUploadJobCommand";
70
76
  import { TagResourceCommand } from "./commands/TagResourceCommand";
71
77
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
72
78
  import { UpdateCalculatedAttributeDefinitionCommand, } from "./commands/UpdateCalculatedAttributeDefinitionCommand";
@@ -89,6 +95,7 @@ const commands = {
89
95
  CreateSegmentDefinitionCommand,
90
96
  CreateSegmentEstimateCommand,
91
97
  CreateSegmentSnapshotCommand,
98
+ CreateUploadJobCommand,
92
99
  DeleteCalculatedAttributeDefinitionCommand,
93
100
  DeleteDomainCommand,
94
101
  DeleteDomainLayoutCommand,
@@ -119,6 +126,8 @@ const commands = {
119
126
  GetSegmentMembershipCommand,
120
127
  GetSegmentSnapshotCommand,
121
128
  GetSimilarProfilesCommand,
129
+ GetUploadJobCommand,
130
+ GetUploadJobPathCommand,
122
131
  GetWorkflowCommand,
123
132
  GetWorkflowStepsCommand,
124
133
  ListAccountIntegrationsCommand,
@@ -138,12 +147,15 @@ const commands = {
138
147
  ListRuleBasedMatchesCommand,
139
148
  ListSegmentDefinitionsCommand,
140
149
  ListTagsForResourceCommand,
150
+ ListUploadJobsCommand,
141
151
  ListWorkflowsCommand,
142
152
  MergeProfilesCommand,
143
153
  PutIntegrationCommand,
144
154
  PutProfileObjectCommand,
145
155
  PutProfileObjectTypeCommand,
146
156
  SearchProfilesCommand,
157
+ StartUploadJobCommand,
158
+ StopUploadJobCommand,
147
159
  TagResourceCommand,
148
160
  UntagResourceCommand,
149
161
  UpdateCalculatedAttributeDefinitionCommand,
@@ -0,0 +1,23 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { CreateUploadJobRequestFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_CreateUploadJobCommand, se_CreateUploadJobCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class CreateUploadJobCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("CustomerProfiles_20200815", "CreateUploadJob", {})
18
+ .n("CustomerProfilesClient", "CreateUploadJobCommand")
19
+ .f(CreateUploadJobRequestFilterSensitiveLog, void 0)
20
+ .ser(se_CreateUploadJobCommand)
21
+ .de(de_CreateUploadJobCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,23 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { GetUploadJobResponseFilterSensitiveLog } from "../models/models_0";
6
+ import { de_GetUploadJobCommand, se_GetUploadJobCommand } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class GetUploadJobCommand extends $Command
9
+ .classBuilder()
10
+ .ep(commonParams)
11
+ .m(function (Command, cs, config, o) {
12
+ return [
13
+ getSerdePlugin(config, this.serialize, this.deserialize),
14
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
15
+ ];
16
+ })
17
+ .s("CustomerProfiles_20200815", "GetUploadJob", {})
18
+ .n("CustomerProfilesClient", "GetUploadJobCommand")
19
+ .f(void 0, GetUploadJobResponseFilterSensitiveLog)
20
+ .ser(se_GetUploadJobCommand)
21
+ .de(de_GetUploadJobCommand)
22
+ .build() {
23
+ }
@@ -0,0 +1,22 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetUploadJobPathCommand, se_GetUploadJobPathCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetUploadJobPathCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("CustomerProfiles_20200815", "GetUploadJobPath", {})
17
+ .n("CustomerProfilesClient", "GetUploadJobPathCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetUploadJobPathCommand)
20
+ .de(de_GetUploadJobPathCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListUploadJobsCommand, se_ListUploadJobsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListUploadJobsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("CustomerProfiles_20200815", "ListUploadJobs", {})
17
+ .n("CustomerProfilesClient", "ListUploadJobsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListUploadJobsCommand)
20
+ .de(de_ListUploadJobsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_StartUploadJobCommand, se_StartUploadJobCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StartUploadJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("CustomerProfiles_20200815", "StartUploadJob", {})
17
+ .n("CustomerProfilesClient", "StartUploadJobCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_StartUploadJobCommand)
20
+ .de(de_StartUploadJobCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
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 { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_StopUploadJobCommand, se_StopUploadJobCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StopUploadJobCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("CustomerProfiles_20200815", "StopUploadJob", {})
17
+ .n("CustomerProfilesClient", "StopUploadJobCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_StopUploadJobCommand)
20
+ .de(de_StopUploadJobCommand)
21
+ .build() {
22
+ }
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UpdateCalculatedAttributeDefinitionRequestFilterSensitiveLog, UpdateCalculatedAttributeDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { UpdateCalculatedAttributeDefinitionRequestFilterSensitiveLog, UpdateCalculatedAttributeDefinitionResponseFilterSensitiveLog, } from "../models/models_1";
6
6
  import { de_UpdateCalculatedAttributeDefinitionCommand, se_UpdateCalculatedAttributeDefinitionCommand, } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class UpdateCalculatedAttributeDefinitionCommand extends $Command
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UpdateDomainLayoutRequestFilterSensitiveLog, UpdateDomainLayoutResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { UpdateDomainLayoutRequestFilterSensitiveLog, UpdateDomainLayoutResponseFilterSensitiveLog, } from "../models/models_1";
6
6
  import { de_UpdateDomainLayoutCommand, se_UpdateDomainLayoutCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class UpdateDomainLayoutCommand extends $Command
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { UpdateEventTriggerRequestFilterSensitiveLog, UpdateEventTriggerResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { UpdateEventTriggerRequestFilterSensitiveLog, UpdateEventTriggerResponseFilterSensitiveLog, } from "../models/models_1";
6
6
  import { de_UpdateEventTriggerCommand, se_UpdateEventTriggerCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class UpdateEventTriggerCommand extends $Command
@@ -11,6 +11,7 @@ export * from "./CreateProfileCommand";
11
11
  export * from "./CreateSegmentDefinitionCommand";
12
12
  export * from "./CreateSegmentEstimateCommand";
13
13
  export * from "./CreateSegmentSnapshotCommand";
14
+ export * from "./CreateUploadJobCommand";
14
15
  export * from "./DeleteCalculatedAttributeDefinitionCommand";
15
16
  export * from "./DeleteDomainCommand";
16
17
  export * from "./DeleteDomainLayoutCommand";
@@ -41,6 +42,8 @@ export * from "./GetSegmentEstimateCommand";
41
42
  export * from "./GetSegmentMembershipCommand";
42
43
  export * from "./GetSegmentSnapshotCommand";
43
44
  export * from "./GetSimilarProfilesCommand";
45
+ export * from "./GetUploadJobCommand";
46
+ export * from "./GetUploadJobPathCommand";
44
47
  export * from "./GetWorkflowCommand";
45
48
  export * from "./GetWorkflowStepsCommand";
46
49
  export * from "./ListAccountIntegrationsCommand";
@@ -60,12 +63,15 @@ export * from "./ListProfileObjectsCommand";
60
63
  export * from "./ListRuleBasedMatchesCommand";
61
64
  export * from "./ListSegmentDefinitionsCommand";
62
65
  export * from "./ListTagsForResourceCommand";
66
+ export * from "./ListUploadJobsCommand";
63
67
  export * from "./ListWorkflowsCommand";
64
68
  export * from "./MergeProfilesCommand";
65
69
  export * from "./PutIntegrationCommand";
66
70
  export * from "./PutProfileObjectCommand";
67
71
  export * from "./PutProfileObjectTypeCommand";
68
72
  export * from "./SearchProfilesCommand";
73
+ export * from "./StartUploadJobCommand";
74
+ export * from "./StopUploadJobCommand";
69
75
  export * from "./TagResourceCommand";
70
76
  export * from "./UntagResourceCommand";
71
77
  export * from "./UpdateCalculatedAttributeDefinitionCommand";
@@ -456,6 +456,18 @@ export const MatchType = {
456
456
  ML_BASED_MATCHING: "ML_BASED_MATCHING",
457
457
  RULE_BASED_MATCHING: "RULE_BASED_MATCHING",
458
458
  };
459
+ export const UploadJobStatus = {
460
+ CREATED: "CREATED",
461
+ FAILED: "FAILED",
462
+ IN_PROGRESS: "IN_PROGRESS",
463
+ PARTIALLY_SUCCEEDED: "PARTIALLY_SUCCEEDED",
464
+ STOPPED: "STOPPED",
465
+ SUCCEEDED: "SUCCEEDED",
466
+ };
467
+ export const StatusReason = {
468
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
469
+ VALIDATION_FAILURE: "VALIDATION_FAILURE",
470
+ };
459
471
  export const LogicalOperator = {
460
472
  AND: "AND",
461
473
  OR: "OR",
@@ -631,6 +643,10 @@ export const CreateSegmentEstimateRequestFilterSensitiveLog = (obj) => ({
631
643
  ...obj,
632
644
  ...(obj.SegmentQuery && { SegmentQuery: SegmentGroupStructureFilterSensitiveLog(obj.SegmentQuery) }),
633
645
  });
646
+ export const CreateUploadJobRequestFilterSensitiveLog = (obj) => ({
647
+ ...obj,
648
+ ...(obj.Fields && { Fields: SENSITIVE_STRING }),
649
+ });
634
650
  export const DetectProfileObjectTypeRequestFilterSensitiveLog = (obj) => ({
635
651
  ...obj,
636
652
  ...(obj.Objects && { Objects: SENSITIVE_STRING }),
@@ -687,6 +703,10 @@ export const GetSegmentMembershipResponseFilterSensitiveLog = (obj) => ({
687
703
  ...obj,
688
704
  ...(obj.Profiles && { Profiles: obj.Profiles.map((item) => ProfileQueryResultFilterSensitiveLog(item)) }),
689
705
  });
706
+ export const GetUploadJobResponseFilterSensitiveLog = (obj) => ({
707
+ ...obj,
708
+ ...(obj.Fields && { Fields: SENSITIVE_STRING }),
709
+ });
690
710
  export const ListCalculatedAttributeDefinitionsResponseFilterSensitiveLog = (obj) => ({
691
711
  ...obj,
692
712
  ...(obj.Items && { Items: SENSITIVE_STRING }),
@@ -747,38 +767,3 @@ export const SearchProfilesResponseFilterSensitiveLog = (obj) => ({
747
767
  ...obj,
748
768
  ...(obj.Items && { Items: obj.Items.map((item) => ProfileFilterSensitiveLog(item)) }),
749
769
  });
750
- export const UpdateCalculatedAttributeDefinitionRequestFilterSensitiveLog = (obj) => ({
751
- ...obj,
752
- ...(obj.Description && { Description: SENSITIVE_STRING }),
753
- ...(obj.Conditions && { Conditions: SENSITIVE_STRING }),
754
- });
755
- export const UpdateCalculatedAttributeDefinitionResponseFilterSensitiveLog = (obj) => ({
756
- ...obj,
757
- ...(obj.Description && { Description: SENSITIVE_STRING }),
758
- ...(obj.Statistic && { Statistic: SENSITIVE_STRING }),
759
- ...(obj.Conditions && { Conditions: SENSITIVE_STRING }),
760
- ...(obj.AttributeDetails && { AttributeDetails: SENSITIVE_STRING }),
761
- });
762
- export const UpdateDomainLayoutRequestFilterSensitiveLog = (obj) => ({
763
- ...obj,
764
- ...(obj.Description && { Description: SENSITIVE_STRING }),
765
- ...(obj.Layout && { Layout: SENSITIVE_STRING }),
766
- });
767
- export const UpdateDomainLayoutResponseFilterSensitiveLog = (obj) => ({
768
- ...obj,
769
- ...(obj.Description && { Description: SENSITIVE_STRING }),
770
- ...(obj.Layout && { Layout: SENSITIVE_STRING }),
771
- });
772
- export const UpdateEventTriggerRequestFilterSensitiveLog = (obj) => ({
773
- ...obj,
774
- ...(obj.Description && { Description: SENSITIVE_STRING }),
775
- ...(obj.EventTriggerConditions && { EventTriggerConditions: SENSITIVE_STRING }),
776
- });
777
- export const UpdateEventTriggerResponseFilterSensitiveLog = (obj) => ({
778
- ...obj,
779
- ...(obj.Description && { Description: SENSITIVE_STRING }),
780
- ...(obj.EventTriggerConditions && { EventTriggerConditions: SENSITIVE_STRING }),
781
- });
782
- export const UpdateAddressFilterSensitiveLog = (obj) => ({
783
- ...obj,
784
- });
@@ -1,4 +1,39 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ export const UpdateCalculatedAttributeDefinitionRequestFilterSensitiveLog = (obj) => ({
3
+ ...obj,
4
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
5
+ ...(obj.Conditions && { Conditions: SENSITIVE_STRING }),
6
+ });
7
+ export const UpdateCalculatedAttributeDefinitionResponseFilterSensitiveLog = (obj) => ({
8
+ ...obj,
9
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
10
+ ...(obj.Statistic && { Statistic: SENSITIVE_STRING }),
11
+ ...(obj.Conditions && { Conditions: SENSITIVE_STRING }),
12
+ ...(obj.AttributeDetails && { AttributeDetails: SENSITIVE_STRING }),
13
+ });
14
+ export const UpdateDomainLayoutRequestFilterSensitiveLog = (obj) => ({
15
+ ...obj,
16
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
17
+ ...(obj.Layout && { Layout: SENSITIVE_STRING }),
18
+ });
19
+ export const UpdateDomainLayoutResponseFilterSensitiveLog = (obj) => ({
20
+ ...obj,
21
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
22
+ ...(obj.Layout && { Layout: SENSITIVE_STRING }),
23
+ });
24
+ export const UpdateEventTriggerRequestFilterSensitiveLog = (obj) => ({
25
+ ...obj,
26
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
27
+ ...(obj.EventTriggerConditions && { EventTriggerConditions: SENSITIVE_STRING }),
28
+ });
29
+ export const UpdateEventTriggerResponseFilterSensitiveLog = (obj) => ({
30
+ ...obj,
31
+ ...(obj.Description && { Description: SENSITIVE_STRING }),
32
+ ...(obj.EventTriggerConditions && { EventTriggerConditions: SENSITIVE_STRING }),
33
+ });
34
+ export const UpdateAddressFilterSensitiveLog = (obj) => ({
35
+ ...obj,
36
+ });
2
37
  export const UpdateProfileRequestFilterSensitiveLog = (obj) => ({
3
38
  ...obj,
4
39
  ...(obj.AdditionalInformation && { AdditionalInformation: SENSITIVE_STRING }),
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListUploadJobsCommand, } from "../commands/ListUploadJobsCommand";
3
+ import { CustomerProfilesClient } from "../CustomerProfilesClient";
4
+ export const paginateListUploadJobs = createPaginator(CustomerProfilesClient, ListUploadJobsCommand, "NextToken", "NextToken", "MaxResults");
@@ -6,3 +6,4 @@ export * from "./ListEventTriggersPaginator";
6
6
  export * from "./ListObjectTypeAttributesPaginator";
7
7
  export * from "./ListRuleBasedMatchesPaginator";
8
8
  export * from "./ListSegmentDefinitionsPaginator";
9
+ export * from "./ListUploadJobsPaginator";
@@ -250,6 +250,23 @@ export const se_CreateSegmentSnapshotCommand = async (input, context) => {
250
250
  b.m("POST").h(headers).b(body);
251
251
  return b.build();
252
252
  };
253
+ export const se_CreateUploadJobCommand = async (input, context) => {
254
+ const b = rb(input, context);
255
+ const headers = {
256
+ "content-type": "application/json",
257
+ };
258
+ b.bp("/domains/{DomainName}/upload-jobs");
259
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
260
+ let body;
261
+ body = JSON.stringify(take(input, {
262
+ DataExpiry: [],
263
+ DisplayName: [],
264
+ Fields: (_) => _json(_),
265
+ UniqueKey: [],
266
+ }));
267
+ b.m("POST").h(headers).b(body);
268
+ return b.build();
269
+ };
253
270
  export const se_DeleteCalculatedAttributeDefinitionCommand = async (input, context) => {
254
271
  const b = rb(input, context);
255
272
  const headers = {};
@@ -601,6 +618,26 @@ export const se_GetSimilarProfilesCommand = async (input, context) => {
601
618
  b.m("POST").h(headers).q(query).b(body);
602
619
  return b.build();
603
620
  };
621
+ export const se_GetUploadJobCommand = async (input, context) => {
622
+ const b = rb(input, context);
623
+ const headers = {};
624
+ b.bp("/domains/{DomainName}/upload-jobs/{JobId}");
625
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
626
+ b.p("JobId", () => input.JobId, "{JobId}", false);
627
+ let body;
628
+ b.m("GET").h(headers).b(body);
629
+ return b.build();
630
+ };
631
+ export const se_GetUploadJobPathCommand = async (input, context) => {
632
+ const b = rb(input, context);
633
+ const headers = {};
634
+ b.bp("/domains/{DomainName}/upload-jobs/{JobId}/path");
635
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
636
+ b.p("JobId", () => input.JobId, "{JobId}", false);
637
+ let body;
638
+ b.m("GET").h(headers).b(body);
639
+ return b.build();
640
+ };
604
641
  export const se_GetWorkflowCommand = async (input, context) => {
605
642
  const b = rb(input, context);
606
643
  const headers = {};
@@ -852,6 +889,19 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
852
889
  b.m("GET").h(headers).b(body);
853
890
  return b.build();
854
891
  };
892
+ export const se_ListUploadJobsCommand = async (input, context) => {
893
+ const b = rb(input, context);
894
+ const headers = {};
895
+ b.bp("/domains/{DomainName}/upload-jobs");
896
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
897
+ const query = map({
898
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
899
+ [_nt]: [, input[_NT]],
900
+ });
901
+ let body;
902
+ b.m("GET").h(headers).q(query).b(body);
903
+ return b.build();
904
+ };
855
905
  export const se_ListWorkflowsCommand = async (input, context) => {
856
906
  const b = rb(input, context);
857
907
  const headers = {
@@ -969,6 +1019,26 @@ export const se_SearchProfilesCommand = async (input, context) => {
969
1019
  b.m("POST").h(headers).q(query).b(body);
970
1020
  return b.build();
971
1021
  };
1022
+ export const se_StartUploadJobCommand = async (input, context) => {
1023
+ const b = rb(input, context);
1024
+ const headers = {};
1025
+ b.bp("/domains/{DomainName}/upload-jobs/{JobId}");
1026
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
1027
+ b.p("JobId", () => input.JobId, "{JobId}", false);
1028
+ let body;
1029
+ b.m("PUT").h(headers).b(body);
1030
+ return b.build();
1031
+ };
1032
+ export const se_StopUploadJobCommand = async (input, context) => {
1033
+ const b = rb(input, context);
1034
+ const headers = {};
1035
+ b.bp("/domains/{DomainName}/upload-jobs/{JobId}/stop");
1036
+ b.p("DomainName", () => input.DomainName, "{DomainName}", false);
1037
+ b.p("JobId", () => input.JobId, "{JobId}", false);
1038
+ let body;
1039
+ b.m("PUT").h(headers).b(body);
1040
+ return b.build();
1041
+ };
972
1042
  export const se_TagResourceCommand = async (input, context) => {
973
1043
  const b = rb(input, context);
974
1044
  const headers = {
@@ -1340,6 +1410,20 @@ export const de_CreateSegmentSnapshotCommand = async (output, context) => {
1340
1410
  Object.assign(contents, doc);
1341
1411
  return contents;
1342
1412
  };
1413
+ export const de_CreateUploadJobCommand = async (output, context) => {
1414
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
+ return de_CommandError(output, context);
1416
+ }
1417
+ const contents = map({
1418
+ $metadata: deserializeMetadata(output),
1419
+ });
1420
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1421
+ const doc = take(data, {
1422
+ JobId: [, __expectString, `JobId`],
1423
+ });
1424
+ Object.assign(contents, doc);
1425
+ return contents;
1426
+ };
1343
1427
  export const de_DeleteCalculatedAttributeDefinitionCommand = async (output, context) => {
1344
1428
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1345
1429
  return de_CommandError(output, context);
@@ -1867,6 +1951,45 @@ export const de_GetSimilarProfilesCommand = async (output, context) => {
1867
1951
  Object.assign(contents, doc);
1868
1952
  return contents;
1869
1953
  };
1954
+ export const de_GetUploadJobCommand = async (output, context) => {
1955
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1956
+ return de_CommandError(output, context);
1957
+ }
1958
+ const contents = map({
1959
+ $metadata: deserializeMetadata(output),
1960
+ });
1961
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1962
+ const doc = take(data, {
1963
+ CompletedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `CompletedAt`],
1964
+ CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `CreatedAt`],
1965
+ DataExpiry: [, __expectInt32, `DataExpiry`],
1966
+ DisplayName: [, __expectString, `DisplayName`],
1967
+ Fields: [, _json, `Fields`],
1968
+ JobId: [, __expectString, `JobId`],
1969
+ ResultsSummary: [, (_) => de_ResultsSummary(_, context), `ResultsSummary`],
1970
+ Status: [, __expectString, `Status`],
1971
+ StatusReason: [, __expectString, `StatusReason`],
1972
+ UniqueKey: [, __expectString, `UniqueKey`],
1973
+ });
1974
+ Object.assign(contents, doc);
1975
+ return contents;
1976
+ };
1977
+ export const de_GetUploadJobPathCommand = async (output, context) => {
1978
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1979
+ return de_CommandError(output, context);
1980
+ }
1981
+ const contents = map({
1982
+ $metadata: deserializeMetadata(output),
1983
+ });
1984
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1985
+ const doc = take(data, {
1986
+ ClientToken: [, __expectString, `ClientToken`],
1987
+ Url: [, __expectString, `Url`],
1988
+ ValidUntil: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `ValidUntil`],
1989
+ });
1990
+ Object.assign(contents, doc);
1991
+ return contents;
1992
+ };
1870
1993
  export const de_GetWorkflowCommand = async (output, context) => {
1871
1994
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1872
1995
  return de_CommandError(output, context);
@@ -2163,6 +2286,21 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
2163
2286
  Object.assign(contents, doc);
2164
2287
  return contents;
2165
2288
  };
2289
+ export const de_ListUploadJobsCommand = async (output, context) => {
2290
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2291
+ return de_CommandError(output, context);
2292
+ }
2293
+ const contents = map({
2294
+ $metadata: deserializeMetadata(output),
2295
+ });
2296
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2297
+ const doc = take(data, {
2298
+ Items: [, (_) => de_UploadJobsList(_, context), `Items`],
2299
+ NextToken: [, __expectString, `NextToken`],
2300
+ });
2301
+ Object.assign(contents, doc);
2302
+ return contents;
2303
+ };
2166
2304
  export const de_ListWorkflowsCommand = async (output, context) => {
2167
2305
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2168
2306
  return de_CommandError(output, context);
@@ -2272,6 +2410,26 @@ export const de_SearchProfilesCommand = async (output, context) => {
2272
2410
  Object.assign(contents, doc);
2273
2411
  return contents;
2274
2412
  };
2413
+ export const de_StartUploadJobCommand = async (output, context) => {
2414
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2415
+ return de_CommandError(output, context);
2416
+ }
2417
+ const contents = map({
2418
+ $metadata: deserializeMetadata(output),
2419
+ });
2420
+ await collectBody(output.body, context);
2421
+ return contents;
2422
+ };
2423
+ export const de_StopUploadJobCommand = async (output, context) => {
2424
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2425
+ return de_CommandError(output, context);
2426
+ }
2427
+ const contents = map({
2428
+ $metadata: deserializeMetadata(output),
2429
+ });
2430
+ await collectBody(output.body, context);
2431
+ return contents;
2432
+ };
2275
2433
  export const de_TagResourceCommand = async (output, context) => {
2276
2434
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2277
2435
  return de_CommandError(output, context);
@@ -3119,6 +3277,13 @@ const de_Profiles = (output, context) => {
3119
3277
  });
3120
3278
  return retVal;
3121
3279
  };
3280
+ const de_ResultsSummary = (output, context) => {
3281
+ return take(output, {
3282
+ CreatedRecords: [, __expectLong, `CreatedRecords`],
3283
+ FailedRecords: [, __expectLong, `FailedRecords`],
3284
+ UpdatedRecords: [, __expectLong, `UpdatedRecords`],
3285
+ });
3286
+ };
3122
3287
  const de_SegmentDefinitionItem = (output, context) => {
3123
3288
  return take(output, {
3124
3289
  CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `CreatedAt`],
@@ -3164,6 +3329,25 @@ const de_SourceSegmentList = (output, context) => {
3164
3329
  });
3165
3330
  return retVal;
3166
3331
  };
3332
+ const de_UploadJobItem = (output, context) => {
3333
+ return take(output, {
3334
+ CompletedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `CompletedAt`],
3335
+ CreatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `CreatedAt`],
3336
+ DataExpiry: [, __expectInt32, `DataExpiry`],
3337
+ DisplayName: [, __expectString, `DisplayName`],
3338
+ JobId: [, __expectString, `JobId`],
3339
+ Status: [, __expectString, `Status`],
3340
+ StatusReason: [, __expectString, `StatusReason`],
3341
+ });
3342
+ };
3343
+ const de_UploadJobsList = (output, context) => {
3344
+ const retVal = (output || [])
3345
+ .filter((e) => e != null)
3346
+ .map((entry) => {
3347
+ return de_UploadJobItem(entry, context);
3348
+ });
3349
+ return retVal;
3350
+ };
3167
3351
  const de_WorkflowList = (output, context) => {
3168
3352
  const retVal = (output || [])
3169
3353
  .filter((e) => e != null)