@aws-sdk/client-customer-profiles 3.118.0 → 3.127.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.
@@ -24,10 +24,9 @@ const serializeAws_restJson1AddProfileKeyCommand = async (input, context) => {
24
24
  }
25
25
  let body;
26
26
  body = JSON.stringify({
27
- ...(input.KeyName !== undefined && input.KeyName !== null && { KeyName: input.KeyName }),
28
- ...(input.ProfileId !== undefined && input.ProfileId !== null && { ProfileId: input.ProfileId }),
29
- ...(input.Values !== undefined &&
30
- input.Values !== null && { Values: serializeAws_restJson1requestValueList(input.Values, context) }),
27
+ ...(input.KeyName != null && { KeyName: input.KeyName }),
28
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
29
+ ...(input.Values != null && { Values: serializeAws_restJson1requestValueList(input.Values, context) }),
31
30
  });
32
31
  return new protocol_http_1.HttpRequest({
33
32
  protocol,
@@ -58,15 +57,11 @@ const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
58
57
  }
59
58
  let body;
60
59
  body = JSON.stringify({
61
- ...(input.DeadLetterQueueUrl !== undefined &&
62
- input.DeadLetterQueueUrl !== null && { DeadLetterQueueUrl: input.DeadLetterQueueUrl }),
63
- ...(input.DefaultEncryptionKey !== undefined &&
64
- input.DefaultEncryptionKey !== null && { DefaultEncryptionKey: input.DefaultEncryptionKey }),
65
- ...(input.DefaultExpirationDays !== undefined &&
66
- input.DefaultExpirationDays !== null && { DefaultExpirationDays: input.DefaultExpirationDays }),
67
- ...(input.Matching !== undefined &&
68
- input.Matching !== null && { Matching: serializeAws_restJson1MatchingRequest(input.Matching, context) }),
69
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
60
+ ...(input.DeadLetterQueueUrl != null && { DeadLetterQueueUrl: input.DeadLetterQueueUrl }),
61
+ ...(input.DefaultEncryptionKey != null && { DefaultEncryptionKey: input.DefaultEncryptionKey }),
62
+ ...(input.DefaultExpirationDays != null && { DefaultExpirationDays: input.DefaultExpirationDays }),
63
+ ...(input.Matching != null && { Matching: serializeAws_restJson1MatchingRequest(input.Matching, context) }),
64
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
70
65
  });
71
66
  return new protocol_http_1.HttpRequest({
72
67
  protocol,
@@ -98,15 +93,13 @@ const serializeAws_restJson1CreateIntegrationWorkflowCommand = async (input, con
98
93
  }
99
94
  let body;
100
95
  body = JSON.stringify({
101
- ...(input.IntegrationConfig !== undefined &&
102
- input.IntegrationConfig !== null && {
96
+ ...(input.IntegrationConfig != null && {
103
97
  IntegrationConfig: serializeAws_restJson1IntegrationConfig(input.IntegrationConfig, context),
104
98
  }),
105
- ...(input.ObjectTypeName !== undefined &&
106
- input.ObjectTypeName !== null && { ObjectTypeName: input.ObjectTypeName }),
107
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
108
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
109
- ...(input.WorkflowType !== undefined && input.WorkflowType !== null && { WorkflowType: input.WorkflowType }),
99
+ ...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
100
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
101
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
102
+ ...(input.WorkflowType != null && { WorkflowType: input.WorkflowType }),
110
103
  });
111
104
  return new protocol_http_1.HttpRequest({
112
105
  protocol,
@@ -137,42 +130,31 @@ const serializeAws_restJson1CreateProfileCommand = async (input, context) => {
137
130
  }
138
131
  let body;
139
132
  body = JSON.stringify({
140
- ...(input.AccountNumber !== undefined && input.AccountNumber !== null && { AccountNumber: input.AccountNumber }),
141
- ...(input.AdditionalInformation !== undefined &&
142
- input.AdditionalInformation !== null && { AdditionalInformation: input.AdditionalInformation }),
143
- ...(input.Address !== undefined &&
144
- input.Address !== null && { Address: serializeAws_restJson1Address(input.Address, context) }),
145
- ...(input.Attributes !== undefined &&
146
- input.Attributes !== null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
147
- ...(input.BillingAddress !== undefined &&
148
- input.BillingAddress !== null && {
133
+ ...(input.AccountNumber != null && { AccountNumber: input.AccountNumber }),
134
+ ...(input.AdditionalInformation != null && { AdditionalInformation: input.AdditionalInformation }),
135
+ ...(input.Address != null && { Address: serializeAws_restJson1Address(input.Address, context) }),
136
+ ...(input.Attributes != null && { Attributes: serializeAws_restJson1Attributes(input.Attributes, context) }),
137
+ ...(input.BillingAddress != null && {
149
138
  BillingAddress: serializeAws_restJson1Address(input.BillingAddress, context),
150
139
  }),
151
- ...(input.BirthDate !== undefined && input.BirthDate !== null && { BirthDate: input.BirthDate }),
152
- ...(input.BusinessEmailAddress !== undefined &&
153
- input.BusinessEmailAddress !== null && { BusinessEmailAddress: input.BusinessEmailAddress }),
154
- ...(input.BusinessName !== undefined && input.BusinessName !== null && { BusinessName: input.BusinessName }),
155
- ...(input.BusinessPhoneNumber !== undefined &&
156
- input.BusinessPhoneNumber !== null && { BusinessPhoneNumber: input.BusinessPhoneNumber }),
157
- ...(input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress }),
158
- ...(input.FirstName !== undefined && input.FirstName !== null && { FirstName: input.FirstName }),
159
- ...(input.Gender !== undefined && input.Gender !== null && { Gender: input.Gender }),
160
- ...(input.HomePhoneNumber !== undefined &&
161
- input.HomePhoneNumber !== null && { HomePhoneNumber: input.HomePhoneNumber }),
162
- ...(input.LastName !== undefined && input.LastName !== null && { LastName: input.LastName }),
163
- ...(input.MailingAddress !== undefined &&
164
- input.MailingAddress !== null && {
140
+ ...(input.BirthDate != null && { BirthDate: input.BirthDate }),
141
+ ...(input.BusinessEmailAddress != null && { BusinessEmailAddress: input.BusinessEmailAddress }),
142
+ ...(input.BusinessName != null && { BusinessName: input.BusinessName }),
143
+ ...(input.BusinessPhoneNumber != null && { BusinessPhoneNumber: input.BusinessPhoneNumber }),
144
+ ...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
145
+ ...(input.FirstName != null && { FirstName: input.FirstName }),
146
+ ...(input.Gender != null && { Gender: input.Gender }),
147
+ ...(input.HomePhoneNumber != null && { HomePhoneNumber: input.HomePhoneNumber }),
148
+ ...(input.LastName != null && { LastName: input.LastName }),
149
+ ...(input.MailingAddress != null && {
165
150
  MailingAddress: serializeAws_restJson1Address(input.MailingAddress, context),
166
151
  }),
167
- ...(input.MiddleName !== undefined && input.MiddleName !== null && { MiddleName: input.MiddleName }),
168
- ...(input.MobilePhoneNumber !== undefined &&
169
- input.MobilePhoneNumber !== null && { MobilePhoneNumber: input.MobilePhoneNumber }),
170
- ...(input.PartyType !== undefined && input.PartyType !== null && { PartyType: input.PartyType }),
171
- ...(input.PersonalEmailAddress !== undefined &&
172
- input.PersonalEmailAddress !== null && { PersonalEmailAddress: input.PersonalEmailAddress }),
173
- ...(input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }),
174
- ...(input.ShippingAddress !== undefined &&
175
- input.ShippingAddress !== null && {
152
+ ...(input.MiddleName != null && { MiddleName: input.MiddleName }),
153
+ ...(input.MobilePhoneNumber != null && { MobilePhoneNumber: input.MobilePhoneNumber }),
154
+ ...(input.PartyType != null && { PartyType: input.PartyType }),
155
+ ...(input.PersonalEmailAddress != null && { PersonalEmailAddress: input.PersonalEmailAddress }),
156
+ ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
157
+ ...(input.ShippingAddress != null && {
176
158
  ShippingAddress: serializeAws_restJson1Address(input.ShippingAddress, context),
177
159
  }),
178
160
  });
@@ -231,7 +213,7 @@ const serializeAws_restJson1DeleteIntegrationCommand = async (input, context) =>
231
213
  }
232
214
  let body;
233
215
  body = JSON.stringify({
234
- ...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
216
+ ...(input.Uri != null && { Uri: input.Uri }),
235
217
  });
236
218
  return new protocol_http_1.HttpRequest({
237
219
  protocol,
@@ -262,7 +244,7 @@ const serializeAws_restJson1DeleteProfileCommand = async (input, context) => {
262
244
  }
263
245
  let body;
264
246
  body = JSON.stringify({
265
- ...(input.ProfileId !== undefined && input.ProfileId !== null && { ProfileId: input.ProfileId }),
247
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
266
248
  });
267
249
  return new protocol_http_1.HttpRequest({
268
250
  protocol,
@@ -294,10 +276,9 @@ const serializeAws_restJson1DeleteProfileKeyCommand = async (input, context) =>
294
276
  }
295
277
  let body;
296
278
  body = JSON.stringify({
297
- ...(input.KeyName !== undefined && input.KeyName !== null && { KeyName: input.KeyName }),
298
- ...(input.ProfileId !== undefined && input.ProfileId !== null && { ProfileId: input.ProfileId }),
299
- ...(input.Values !== undefined &&
300
- input.Values !== null && { Values: serializeAws_restJson1requestValueList(input.Values, context) }),
279
+ ...(input.KeyName != null && { KeyName: input.KeyName }),
280
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
281
+ ...(input.Values != null && { Values: serializeAws_restJson1requestValueList(input.Values, context) }),
301
282
  });
302
283
  return new protocol_http_1.HttpRequest({
303
284
  protocol,
@@ -329,11 +310,9 @@ const serializeAws_restJson1DeleteProfileObjectCommand = async (input, context)
329
310
  }
330
311
  let body;
331
312
  body = JSON.stringify({
332
- ...(input.ObjectTypeName !== undefined &&
333
- input.ObjectTypeName !== null && { ObjectTypeName: input.ObjectTypeName }),
334
- ...(input.ProfileId !== undefined && input.ProfileId !== null && { ProfileId: input.ProfileId }),
335
- ...(input.ProfileObjectUniqueKey !== undefined &&
336
- input.ProfileObjectUniqueKey !== null && { ProfileObjectUniqueKey: input.ProfileObjectUniqueKey }),
313
+ ...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
314
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
315
+ ...(input.ProfileObjectUniqueKey != null && { ProfileObjectUniqueKey: input.ProfileObjectUniqueKey }),
337
316
  });
338
317
  return new protocol_http_1.HttpRequest({
339
318
  protocol,
@@ -439,14 +418,15 @@ const serializeAws_restJson1GetAutoMergingPreviewCommand = async (input, context
439
418
  }
440
419
  let body;
441
420
  body = JSON.stringify({
442
- ...(input.ConflictResolution !== undefined &&
443
- input.ConflictResolution !== null && {
421
+ ...(input.ConflictResolution != null && {
444
422
  ConflictResolution: serializeAws_restJson1ConflictResolution(input.ConflictResolution, context),
445
423
  }),
446
- ...(input.Consolidation !== undefined &&
447
- input.Consolidation !== null && {
424
+ ...(input.Consolidation != null && {
448
425
  Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
449
426
  }),
427
+ ...(input.MinAllowedConfidenceScoreForMerging != null && {
428
+ MinAllowedConfidenceScoreForMerging: (0, smithy_client_1.serializeFloat)(input.MinAllowedConfidenceScoreForMerging),
429
+ }),
450
430
  });
451
431
  return new protocol_http_1.HttpRequest({
452
432
  protocol,
@@ -540,7 +520,7 @@ const serializeAws_restJson1GetIntegrationCommand = async (input, context) => {
540
520
  }
541
521
  let body;
542
522
  body = JSON.stringify({
543
- ...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
523
+ ...(input.Uri != null && { Uri: input.Uri }),
544
524
  });
545
525
  return new protocol_http_1.HttpRequest({
546
526
  protocol,
@@ -739,7 +719,7 @@ const serializeAws_restJson1ListAccountIntegrationsCommand = async (input, conte
739
719
  };
740
720
  let body;
741
721
  body = JSON.stringify({
742
- ...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
722
+ ...(input.Uri != null && { Uri: input.Uri }),
743
723
  });
744
724
  return new protocol_http_1.HttpRequest({
745
725
  protocol,
@@ -860,11 +840,11 @@ const serializeAws_restJson1ListProfileObjectsCommand = async (input, context) =
860
840
  };
861
841
  let body;
862
842
  body = JSON.stringify({
863
- ...(input.ObjectFilter !== undefined &&
864
- input.ObjectFilter !== null && { ObjectFilter: serializeAws_restJson1ObjectFilter(input.ObjectFilter, context) }),
865
- ...(input.ObjectTypeName !== undefined &&
866
- input.ObjectTypeName !== null && { ObjectTypeName: input.ObjectTypeName }),
867
- ...(input.ProfileId !== undefined && input.ProfileId !== null && { ProfileId: input.ProfileId }),
843
+ ...(input.ObjectFilter != null && {
844
+ ObjectFilter: serializeAws_restJson1ObjectFilter(input.ObjectFilter, context),
845
+ }),
846
+ ...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
847
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
868
848
  });
869
849
  return new protocol_http_1.HttpRequest({
870
850
  protocol,
@@ -978,12 +958,10 @@ const serializeAws_restJson1ListWorkflowsCommand = async (input, context) => {
978
958
  };
979
959
  let body;
980
960
  body = JSON.stringify({
981
- ...(input.QueryEndDate !== undefined &&
982
- input.QueryEndDate !== null && { QueryEndDate: Math.round(input.QueryEndDate.getTime() / 1000) }),
983
- ...(input.QueryStartDate !== undefined &&
984
- input.QueryStartDate !== null && { QueryStartDate: Math.round(input.QueryStartDate.getTime() / 1000) }),
985
- ...(input.Status !== undefined && input.Status !== null && { Status: input.Status }),
986
- ...(input.WorkflowType !== undefined && input.WorkflowType !== null && { WorkflowType: input.WorkflowType }),
961
+ ...(input.QueryEndDate != null && { QueryEndDate: Math.round(input.QueryEndDate.getTime() / 1000) }),
962
+ ...(input.QueryStartDate != null && { QueryStartDate: Math.round(input.QueryStartDate.getTime() / 1000) }),
963
+ ...(input.Status != null && { Status: input.Status }),
964
+ ...(input.WorkflowType != null && { WorkflowType: input.WorkflowType }),
987
965
  });
988
966
  return new protocol_http_1.HttpRequest({
989
967
  protocol,
@@ -1016,13 +994,11 @@ const serializeAws_restJson1MergeProfilesCommand = async (input, context) => {
1016
994
  }
1017
995
  let body;
1018
996
  body = JSON.stringify({
1019
- ...(input.FieldSourceProfileIds !== undefined &&
1020
- input.FieldSourceProfileIds !== null && {
997
+ ...(input.FieldSourceProfileIds != null && {
1021
998
  FieldSourceProfileIds: serializeAws_restJson1FieldSourceProfileIds(input.FieldSourceProfileIds, context),
1022
999
  }),
1023
- ...(input.MainProfileId !== undefined && input.MainProfileId !== null && { MainProfileId: input.MainProfileId }),
1024
- ...(input.ProfileIdsToBeMerged !== undefined &&
1025
- input.ProfileIdsToBeMerged !== null && {
1000
+ ...(input.MainProfileId != null && { MainProfileId: input.MainProfileId }),
1001
+ ...(input.ProfileIdsToBeMerged != null && {
1026
1002
  ProfileIdsToBeMerged: serializeAws_restJson1ProfileIdToBeMergedList(input.ProfileIdsToBeMerged, context),
1027
1003
  }),
1028
1004
  });
@@ -1055,18 +1031,15 @@ const serializeAws_restJson1PutIntegrationCommand = async (input, context) => {
1055
1031
  }
1056
1032
  let body;
1057
1033
  body = JSON.stringify({
1058
- ...(input.FlowDefinition !== undefined &&
1059
- input.FlowDefinition !== null && {
1034
+ ...(input.FlowDefinition != null && {
1060
1035
  FlowDefinition: serializeAws_restJson1FlowDefinition(input.FlowDefinition, context),
1061
1036
  }),
1062
- ...(input.ObjectTypeName !== undefined &&
1063
- input.ObjectTypeName !== null && { ObjectTypeName: input.ObjectTypeName }),
1064
- ...(input.ObjectTypeNames !== undefined &&
1065
- input.ObjectTypeNames !== null && {
1037
+ ...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
1038
+ ...(input.ObjectTypeNames != null && {
1066
1039
  ObjectTypeNames: serializeAws_restJson1ObjectTypeNames(input.ObjectTypeNames, context),
1067
1040
  }),
1068
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1069
- ...(input.Uri !== undefined && input.Uri !== null && { Uri: input.Uri }),
1041
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1042
+ ...(input.Uri != null && { Uri: input.Uri }),
1070
1043
  });
1071
1044
  return new protocol_http_1.HttpRequest({
1072
1045
  protocol,
@@ -1097,9 +1070,8 @@ const serializeAws_restJson1PutProfileObjectCommand = async (input, context) =>
1097
1070
  }
1098
1071
  let body;
1099
1072
  body = JSON.stringify({
1100
- ...(input.Object !== undefined && input.Object !== null && { Object: input.Object }),
1101
- ...(input.ObjectTypeName !== undefined &&
1102
- input.ObjectTypeName !== null && { ObjectTypeName: input.ObjectTypeName }),
1073
+ ...(input.Object != null && { Object: input.Object }),
1074
+ ...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
1103
1075
  });
1104
1076
  return new protocol_http_1.HttpRequest({
1105
1077
  protocol,
@@ -1141,21 +1113,17 @@ const serializeAws_restJson1PutProfileObjectTypeCommand = async (input, context)
1141
1113
  }
1142
1114
  let body;
1143
1115
  body = JSON.stringify({
1144
- ...(input.AllowProfileCreation !== undefined &&
1145
- input.AllowProfileCreation !== null && { AllowProfileCreation: input.AllowProfileCreation }),
1146
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1147
- ...(input.EncryptionKey !== undefined && input.EncryptionKey !== null && { EncryptionKey: input.EncryptionKey }),
1148
- ...(input.ExpirationDays !== undefined &&
1149
- input.ExpirationDays !== null && { ExpirationDays: input.ExpirationDays }),
1150
- ...(input.Fields !== undefined &&
1151
- input.Fields !== null && { Fields: serializeAws_restJson1FieldMap(input.Fields, context) }),
1152
- ...(input.Keys !== undefined && input.Keys !== null && { Keys: serializeAws_restJson1KeyMap(input.Keys, context) }),
1153
- ...(input.SourceLastUpdatedTimestampFormat !== undefined &&
1154
- input.SourceLastUpdatedTimestampFormat !== null && {
1116
+ ...(input.AllowProfileCreation != null && { AllowProfileCreation: input.AllowProfileCreation }),
1117
+ ...(input.Description != null && { Description: input.Description }),
1118
+ ...(input.EncryptionKey != null && { EncryptionKey: input.EncryptionKey }),
1119
+ ...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
1120
+ ...(input.Fields != null && { Fields: serializeAws_restJson1FieldMap(input.Fields, context) }),
1121
+ ...(input.Keys != null && { Keys: serializeAws_restJson1KeyMap(input.Keys, context) }),
1122
+ ...(input.SourceLastUpdatedTimestampFormat != null && {
1155
1123
  SourceLastUpdatedTimestampFormat: input.SourceLastUpdatedTimestampFormat,
1156
1124
  }),
1157
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1158
- ...(input.TemplateId !== undefined && input.TemplateId !== null && { TemplateId: input.TemplateId }),
1125
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1126
+ ...(input.TemplateId != null && { TemplateId: input.TemplateId }),
1159
1127
  });
1160
1128
  return new protocol_http_1.HttpRequest({
1161
1129
  protocol,
@@ -1190,9 +1158,8 @@ const serializeAws_restJson1SearchProfilesCommand = async (input, context) => {
1190
1158
  };
1191
1159
  let body;
1192
1160
  body = JSON.stringify({
1193
- ...(input.KeyName !== undefined && input.KeyName !== null && { KeyName: input.KeyName }),
1194
- ...(input.Values !== undefined &&
1195
- input.Values !== null && { Values: serializeAws_restJson1requestValueList(input.Values, context) }),
1161
+ ...(input.KeyName != null && { KeyName: input.KeyName }),
1162
+ ...(input.Values != null && { Values: serializeAws_restJson1requestValueList(input.Values, context) }),
1196
1163
  });
1197
1164
  return new protocol_http_1.HttpRequest({
1198
1165
  protocol,
@@ -1224,7 +1191,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1224
1191
  }
1225
1192
  let body;
1226
1193
  body = JSON.stringify({
1227
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
1194
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
1228
1195
  });
1229
1196
  return new protocol_http_1.HttpRequest({
1230
1197
  protocol,
@@ -1285,15 +1252,11 @@ const serializeAws_restJson1UpdateDomainCommand = async (input, context) => {
1285
1252
  }
1286
1253
  let body;
1287
1254
  body = JSON.stringify({
1288
- ...(input.DeadLetterQueueUrl !== undefined &&
1289
- input.DeadLetterQueueUrl !== null && { DeadLetterQueueUrl: input.DeadLetterQueueUrl }),
1290
- ...(input.DefaultEncryptionKey !== undefined &&
1291
- input.DefaultEncryptionKey !== null && { DefaultEncryptionKey: input.DefaultEncryptionKey }),
1292
- ...(input.DefaultExpirationDays !== undefined &&
1293
- input.DefaultExpirationDays !== null && { DefaultExpirationDays: input.DefaultExpirationDays }),
1294
- ...(input.Matching !== undefined &&
1295
- input.Matching !== null && { Matching: serializeAws_restJson1MatchingRequest(input.Matching, context) }),
1296
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1255
+ ...(input.DeadLetterQueueUrl != null && { DeadLetterQueueUrl: input.DeadLetterQueueUrl }),
1256
+ ...(input.DefaultEncryptionKey != null && { DefaultEncryptionKey: input.DefaultEncryptionKey }),
1257
+ ...(input.DefaultExpirationDays != null && { DefaultExpirationDays: input.DefaultExpirationDays }),
1258
+ ...(input.Matching != null && { Matching: serializeAws_restJson1MatchingRequest(input.Matching, context) }),
1259
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1297
1260
  });
1298
1261
  return new protocol_http_1.HttpRequest({
1299
1262
  protocol,
@@ -1324,43 +1287,32 @@ const serializeAws_restJson1UpdateProfileCommand = async (input, context) => {
1324
1287
  }
1325
1288
  let body;
1326
1289
  body = JSON.stringify({
1327
- ...(input.AccountNumber !== undefined && input.AccountNumber !== null && { AccountNumber: input.AccountNumber }),
1328
- ...(input.AdditionalInformation !== undefined &&
1329
- input.AdditionalInformation !== null && { AdditionalInformation: input.AdditionalInformation }),
1330
- ...(input.Address !== undefined &&
1331
- input.Address !== null && { Address: serializeAws_restJson1UpdateAddress(input.Address, context) }),
1332
- ...(input.Attributes !== undefined &&
1333
- input.Attributes !== null && { Attributes: serializeAws_restJson1UpdateAttributes(input.Attributes, context) }),
1334
- ...(input.BillingAddress !== undefined &&
1335
- input.BillingAddress !== null && {
1290
+ ...(input.AccountNumber != null && { AccountNumber: input.AccountNumber }),
1291
+ ...(input.AdditionalInformation != null && { AdditionalInformation: input.AdditionalInformation }),
1292
+ ...(input.Address != null && { Address: serializeAws_restJson1UpdateAddress(input.Address, context) }),
1293
+ ...(input.Attributes != null && { Attributes: serializeAws_restJson1UpdateAttributes(input.Attributes, context) }),
1294
+ ...(input.BillingAddress != null && {
1336
1295
  BillingAddress: serializeAws_restJson1UpdateAddress(input.BillingAddress, context),
1337
1296
  }),
1338
- ...(input.BirthDate !== undefined && input.BirthDate !== null && { BirthDate: input.BirthDate }),
1339
- ...(input.BusinessEmailAddress !== undefined &&
1340
- input.BusinessEmailAddress !== null && { BusinessEmailAddress: input.BusinessEmailAddress }),
1341
- ...(input.BusinessName !== undefined && input.BusinessName !== null && { BusinessName: input.BusinessName }),
1342
- ...(input.BusinessPhoneNumber !== undefined &&
1343
- input.BusinessPhoneNumber !== null && { BusinessPhoneNumber: input.BusinessPhoneNumber }),
1344
- ...(input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress }),
1345
- ...(input.FirstName !== undefined && input.FirstName !== null && { FirstName: input.FirstName }),
1346
- ...(input.Gender !== undefined && input.Gender !== null && { Gender: input.Gender }),
1347
- ...(input.HomePhoneNumber !== undefined &&
1348
- input.HomePhoneNumber !== null && { HomePhoneNumber: input.HomePhoneNumber }),
1349
- ...(input.LastName !== undefined && input.LastName !== null && { LastName: input.LastName }),
1350
- ...(input.MailingAddress !== undefined &&
1351
- input.MailingAddress !== null && {
1297
+ ...(input.BirthDate != null && { BirthDate: input.BirthDate }),
1298
+ ...(input.BusinessEmailAddress != null && { BusinessEmailAddress: input.BusinessEmailAddress }),
1299
+ ...(input.BusinessName != null && { BusinessName: input.BusinessName }),
1300
+ ...(input.BusinessPhoneNumber != null && { BusinessPhoneNumber: input.BusinessPhoneNumber }),
1301
+ ...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
1302
+ ...(input.FirstName != null && { FirstName: input.FirstName }),
1303
+ ...(input.Gender != null && { Gender: input.Gender }),
1304
+ ...(input.HomePhoneNumber != null && { HomePhoneNumber: input.HomePhoneNumber }),
1305
+ ...(input.LastName != null && { LastName: input.LastName }),
1306
+ ...(input.MailingAddress != null && {
1352
1307
  MailingAddress: serializeAws_restJson1UpdateAddress(input.MailingAddress, context),
1353
1308
  }),
1354
- ...(input.MiddleName !== undefined && input.MiddleName !== null && { MiddleName: input.MiddleName }),
1355
- ...(input.MobilePhoneNumber !== undefined &&
1356
- input.MobilePhoneNumber !== null && { MobilePhoneNumber: input.MobilePhoneNumber }),
1357
- ...(input.PartyType !== undefined && input.PartyType !== null && { PartyType: input.PartyType }),
1358
- ...(input.PersonalEmailAddress !== undefined &&
1359
- input.PersonalEmailAddress !== null && { PersonalEmailAddress: input.PersonalEmailAddress }),
1360
- ...(input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }),
1361
- ...(input.ProfileId !== undefined && input.ProfileId !== null && { ProfileId: input.ProfileId }),
1362
- ...(input.ShippingAddress !== undefined &&
1363
- input.ShippingAddress !== null && {
1309
+ ...(input.MiddleName != null && { MiddleName: input.MiddleName }),
1310
+ ...(input.MobilePhoneNumber != null && { MobilePhoneNumber: input.MobilePhoneNumber }),
1311
+ ...(input.PartyType != null && { PartyType: input.PartyType }),
1312
+ ...(input.PersonalEmailAddress != null && { PersonalEmailAddress: input.PersonalEmailAddress }),
1313
+ ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
1314
+ ...(input.ProfileId != null && { ProfileId: input.ProfileId }),
1315
+ ...(input.ShippingAddress != null && {
1364
1316
  ShippingAddress: serializeAws_restJson1UpdateAddress(input.ShippingAddress, context),
1365
1317
  }),
1366
1318
  });
@@ -1400,8 +1352,7 @@ const deserializeAws_restJson1AddProfileKeyCommandError = async (output, context
1400
1352
  body: await parseBody(output.body, context),
1401
1353
  };
1402
1354
  let response;
1403
- let errorCode = "UnknownError";
1404
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1355
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1405
1356
  switch (errorCode) {
1406
1357
  case "AccessDeniedException":
1407
1358
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1420,10 +1371,12 @@ const deserializeAws_restJson1AddProfileKeyCommandError = async (output, context
1420
1371
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1421
1372
  default:
1422
1373
  const parsedBody = parsedOutput.body;
1374
+ const $metadata = deserializeMetadata(output);
1375
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1423
1376
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1424
- name: parsedBody.code || parsedBody.Code || errorCode,
1377
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1425
1378
  $fault: "client",
1426
- $metadata: deserializeMetadata(output),
1379
+ $metadata,
1427
1380
  });
1428
1381
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1429
1382
  }
@@ -1477,8 +1430,7 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
1477
1430
  body: await parseBody(output.body, context),
1478
1431
  };
1479
1432
  let response;
1480
- let errorCode = "UnknownError";
1481
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1433
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1482
1434
  switch (errorCode) {
1483
1435
  case "AccessDeniedException":
1484
1436
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1497,10 +1449,12 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
1497
1449
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1498
1450
  default:
1499
1451
  const parsedBody = parsedOutput.body;
1452
+ const $metadata = deserializeMetadata(output);
1453
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1500
1454
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1501
- name: parsedBody.code || parsedBody.Code || errorCode,
1455
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1502
1456
  $fault: "client",
1503
- $metadata: deserializeMetadata(output),
1457
+ $metadata,
1504
1458
  });
1505
1459
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1506
1460
  }
@@ -1530,8 +1484,7 @@ const deserializeAws_restJson1CreateIntegrationWorkflowCommandError = async (out
1530
1484
  body: await parseBody(output.body, context),
1531
1485
  };
1532
1486
  let response;
1533
- let errorCode = "UnknownError";
1534
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1487
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1535
1488
  switch (errorCode) {
1536
1489
  case "AccessDeniedException":
1537
1490
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1550,10 +1503,12 @@ const deserializeAws_restJson1CreateIntegrationWorkflowCommandError = async (out
1550
1503
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1551
1504
  default:
1552
1505
  const parsedBody = parsedOutput.body;
1506
+ const $metadata = deserializeMetadata(output);
1507
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1553
1508
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1554
- name: parsedBody.code || parsedBody.Code || errorCode,
1509
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1555
1510
  $fault: "client",
1556
- $metadata: deserializeMetadata(output),
1511
+ $metadata,
1557
1512
  });
1558
1513
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1559
1514
  }
@@ -1579,8 +1534,7 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
1579
1534
  body: await parseBody(output.body, context),
1580
1535
  };
1581
1536
  let response;
1582
- let errorCode = "UnknownError";
1583
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1537
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1584
1538
  switch (errorCode) {
1585
1539
  case "AccessDeniedException":
1586
1540
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1599,10 +1553,12 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
1599
1553
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1600
1554
  default:
1601
1555
  const parsedBody = parsedOutput.body;
1556
+ const $metadata = deserializeMetadata(output);
1557
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1602
1558
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1603
- name: parsedBody.code || parsedBody.Code || errorCode,
1559
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1604
1560
  $fault: "client",
1605
- $metadata: deserializeMetadata(output),
1561
+ $metadata,
1606
1562
  });
1607
1563
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1608
1564
  }
@@ -1628,8 +1584,7 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
1628
1584
  body: await parseBody(output.body, context),
1629
1585
  };
1630
1586
  let response;
1631
- let errorCode = "UnknownError";
1632
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1587
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1633
1588
  switch (errorCode) {
1634
1589
  case "AccessDeniedException":
1635
1590
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1648,10 +1603,12 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
1648
1603
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1649
1604
  default:
1650
1605
  const parsedBody = parsedOutput.body;
1606
+ const $metadata = deserializeMetadata(output);
1607
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1651
1608
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1652
- name: parsedBody.code || parsedBody.Code || errorCode,
1609
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1653
1610
  $fault: "client",
1654
- $metadata: deserializeMetadata(output),
1611
+ $metadata,
1655
1612
  });
1656
1613
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1657
1614
  }
@@ -1677,8 +1634,7 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
1677
1634
  body: await parseBody(output.body, context),
1678
1635
  };
1679
1636
  let response;
1680
- let errorCode = "UnknownError";
1681
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1637
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1682
1638
  switch (errorCode) {
1683
1639
  case "AccessDeniedException":
1684
1640
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1697,10 +1653,12 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
1697
1653
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1698
1654
  default:
1699
1655
  const parsedBody = parsedOutput.body;
1656
+ const $metadata = deserializeMetadata(output);
1657
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1700
1658
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1701
- name: parsedBody.code || parsedBody.Code || errorCode,
1659
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1702
1660
  $fault: "client",
1703
- $metadata: deserializeMetadata(output),
1661
+ $metadata,
1704
1662
  });
1705
1663
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1706
1664
  }
@@ -1726,8 +1684,7 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
1726
1684
  body: await parseBody(output.body, context),
1727
1685
  };
1728
1686
  let response;
1729
- let errorCode = "UnknownError";
1730
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1687
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1731
1688
  switch (errorCode) {
1732
1689
  case "AccessDeniedException":
1733
1690
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1746,10 +1703,12 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
1746
1703
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1747
1704
  default:
1748
1705
  const parsedBody = parsedOutput.body;
1706
+ const $metadata = deserializeMetadata(output);
1707
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1749
1708
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1750
- name: parsedBody.code || parsedBody.Code || errorCode,
1709
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1751
1710
  $fault: "client",
1752
- $metadata: deserializeMetadata(output),
1711
+ $metadata,
1753
1712
  });
1754
1713
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1755
1714
  }
@@ -1775,8 +1734,7 @@ const deserializeAws_restJson1DeleteProfileKeyCommandError = async (output, cont
1775
1734
  body: await parseBody(output.body, context),
1776
1735
  };
1777
1736
  let response;
1778
- let errorCode = "UnknownError";
1779
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1737
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1780
1738
  switch (errorCode) {
1781
1739
  case "AccessDeniedException":
1782
1740
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1795,10 +1753,12 @@ const deserializeAws_restJson1DeleteProfileKeyCommandError = async (output, cont
1795
1753
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1796
1754
  default:
1797
1755
  const parsedBody = parsedOutput.body;
1756
+ const $metadata = deserializeMetadata(output);
1757
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1798
1758
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1799
- name: parsedBody.code || parsedBody.Code || errorCode,
1759
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1800
1760
  $fault: "client",
1801
- $metadata: deserializeMetadata(output),
1761
+ $metadata,
1802
1762
  });
1803
1763
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1804
1764
  }
@@ -1824,8 +1784,7 @@ const deserializeAws_restJson1DeleteProfileObjectCommandError = async (output, c
1824
1784
  body: await parseBody(output.body, context),
1825
1785
  };
1826
1786
  let response;
1827
- let errorCode = "UnknownError";
1828
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1787
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1829
1788
  switch (errorCode) {
1830
1789
  case "AccessDeniedException":
1831
1790
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1844,10 +1803,12 @@ const deserializeAws_restJson1DeleteProfileObjectCommandError = async (output, c
1844
1803
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1845
1804
  default:
1846
1805
  const parsedBody = parsedOutput.body;
1806
+ const $metadata = deserializeMetadata(output);
1807
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1847
1808
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1848
- name: parsedBody.code || parsedBody.Code || errorCode,
1809
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1849
1810
  $fault: "client",
1850
- $metadata: deserializeMetadata(output),
1811
+ $metadata,
1851
1812
  });
1852
1813
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1853
1814
  }
@@ -1873,8 +1834,7 @@ const deserializeAws_restJson1DeleteProfileObjectTypeCommandError = async (outpu
1873
1834
  body: await parseBody(output.body, context),
1874
1835
  };
1875
1836
  let response;
1876
- let errorCode = "UnknownError";
1877
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1837
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1878
1838
  switch (errorCode) {
1879
1839
  case "AccessDeniedException":
1880
1840
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1893,10 +1853,12 @@ const deserializeAws_restJson1DeleteProfileObjectTypeCommandError = async (outpu
1893
1853
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1894
1854
  default:
1895
1855
  const parsedBody = parsedOutput.body;
1856
+ const $metadata = deserializeMetadata(output);
1857
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1896
1858
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1897
- name: parsedBody.code || parsedBody.Code || errorCode,
1859
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1898
1860
  $fault: "client",
1899
- $metadata: deserializeMetadata(output),
1861
+ $metadata,
1900
1862
  });
1901
1863
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1902
1864
  }
@@ -1918,8 +1880,7 @@ const deserializeAws_restJson1DeleteWorkflowCommandError = async (output, contex
1918
1880
  body: await parseBody(output.body, context),
1919
1881
  };
1920
1882
  let response;
1921
- let errorCode = "UnknownError";
1922
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1883
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1923
1884
  switch (errorCode) {
1924
1885
  case "AccessDeniedException":
1925
1886
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1938,10 +1899,12 @@ const deserializeAws_restJson1DeleteWorkflowCommandError = async (output, contex
1938
1899
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1939
1900
  default:
1940
1901
  const parsedBody = parsedOutput.body;
1902
+ const $metadata = deserializeMetadata(output);
1903
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1941
1904
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
1942
- name: parsedBody.code || parsedBody.Code || errorCode,
1905
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1943
1906
  $fault: "client",
1944
- $metadata: deserializeMetadata(output),
1907
+ $metadata,
1945
1908
  });
1946
1909
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1947
1910
  }
@@ -1979,8 +1942,7 @@ const deserializeAws_restJson1GetAutoMergingPreviewCommandError = async (output,
1979
1942
  body: await parseBody(output.body, context),
1980
1943
  };
1981
1944
  let response;
1982
- let errorCode = "UnknownError";
1983
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1945
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1984
1946
  switch (errorCode) {
1985
1947
  case "AccessDeniedException":
1986
1948
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -1999,10 +1961,12 @@ const deserializeAws_restJson1GetAutoMergingPreviewCommandError = async (output,
1999
1961
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2000
1962
  default:
2001
1963
  const parsedBody = parsedOutput.body;
1964
+ const $metadata = deserializeMetadata(output);
1965
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2002
1966
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2003
- name: parsedBody.code || parsedBody.Code || errorCode,
1967
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2004
1968
  $fault: "client",
2005
- $metadata: deserializeMetadata(output),
1969
+ $metadata,
2006
1970
  });
2007
1971
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2008
1972
  }
@@ -2060,8 +2024,7 @@ const deserializeAws_restJson1GetDomainCommandError = async (output, context) =>
2060
2024
  body: await parseBody(output.body, context),
2061
2025
  };
2062
2026
  let response;
2063
- let errorCode = "UnknownError";
2064
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2027
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2065
2028
  switch (errorCode) {
2066
2029
  case "AccessDeniedException":
2067
2030
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2080,10 +2043,12 @@ const deserializeAws_restJson1GetDomainCommandError = async (output, context) =>
2080
2043
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2081
2044
  default:
2082
2045
  const parsedBody = parsedOutput.body;
2046
+ const $metadata = deserializeMetadata(output);
2047
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2083
2048
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2084
- name: parsedBody.code || parsedBody.Code || errorCode,
2049
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2085
2050
  $fault: "client",
2086
- $metadata: deserializeMetadata(output),
2051
+ $metadata,
2087
2052
  });
2088
2053
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2089
2054
  }
@@ -2149,8 +2114,7 @@ const deserializeAws_restJson1GetIdentityResolutionJobCommandError = async (outp
2149
2114
  body: await parseBody(output.body, context),
2150
2115
  };
2151
2116
  let response;
2152
- let errorCode = "UnknownError";
2153
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2117
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2154
2118
  switch (errorCode) {
2155
2119
  case "AccessDeniedException":
2156
2120
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2169,10 +2133,12 @@ const deserializeAws_restJson1GetIdentityResolutionJobCommandError = async (outp
2169
2133
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2170
2134
  default:
2171
2135
  const parsedBody = parsedOutput.body;
2136
+ const $metadata = deserializeMetadata(output);
2137
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2172
2138
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2173
- name: parsedBody.code || parsedBody.Code || errorCode,
2139
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2174
2140
  $fault: "client",
2175
- $metadata: deserializeMetadata(output),
2141
+ $metadata,
2176
2142
  });
2177
2143
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2178
2144
  }
@@ -2226,8 +2192,7 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
2226
2192
  body: await parseBody(output.body, context),
2227
2193
  };
2228
2194
  let response;
2229
- let errorCode = "UnknownError";
2230
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2195
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2231
2196
  switch (errorCode) {
2232
2197
  case "AccessDeniedException":
2233
2198
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2246,10 +2211,12 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
2246
2211
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2247
2212
  default:
2248
2213
  const parsedBody = parsedOutput.body;
2214
+ const $metadata = deserializeMetadata(output);
2215
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2249
2216
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2250
- name: parsedBody.code || parsedBody.Code || errorCode,
2217
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2251
2218
  $fault: "client",
2252
- $metadata: deserializeMetadata(output),
2219
+ $metadata,
2253
2220
  });
2254
2221
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2255
2222
  }
@@ -2287,8 +2254,7 @@ const deserializeAws_restJson1GetMatchesCommandError = async (output, context) =
2287
2254
  body: await parseBody(output.body, context),
2288
2255
  };
2289
2256
  let response;
2290
- let errorCode = "UnknownError";
2291
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2257
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2292
2258
  switch (errorCode) {
2293
2259
  case "AccessDeniedException":
2294
2260
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2307,10 +2273,12 @@ const deserializeAws_restJson1GetMatchesCommandError = async (output, context) =
2307
2273
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2308
2274
  default:
2309
2275
  const parsedBody = parsedOutput.body;
2276
+ const $metadata = deserializeMetadata(output);
2277
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2310
2278
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2311
- name: parsedBody.code || parsedBody.Code || errorCode,
2279
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2312
2280
  $fault: "client",
2313
- $metadata: deserializeMetadata(output),
2281
+ $metadata,
2314
2282
  });
2315
2283
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2316
2284
  }
@@ -2380,8 +2348,7 @@ const deserializeAws_restJson1GetProfileObjectTypeCommandError = async (output,
2380
2348
  body: await parseBody(output.body, context),
2381
2349
  };
2382
2350
  let response;
2383
- let errorCode = "UnknownError";
2384
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2351
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2385
2352
  switch (errorCode) {
2386
2353
  case "AccessDeniedException":
2387
2354
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2400,10 +2367,12 @@ const deserializeAws_restJson1GetProfileObjectTypeCommandError = async (output,
2400
2367
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2401
2368
  default:
2402
2369
  const parsedBody = parsedOutput.body;
2370
+ const $metadata = deserializeMetadata(output);
2371
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2403
2372
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2404
- name: parsedBody.code || parsedBody.Code || errorCode,
2373
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2405
2374
  $fault: "client",
2406
- $metadata: deserializeMetadata(output),
2375
+ $metadata,
2407
2376
  });
2408
2377
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2409
2378
  }
@@ -2453,8 +2422,7 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError = async (
2453
2422
  body: await parseBody(output.body, context),
2454
2423
  };
2455
2424
  let response;
2456
- let errorCode = "UnknownError";
2457
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2425
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2458
2426
  switch (errorCode) {
2459
2427
  case "AccessDeniedException":
2460
2428
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2473,10 +2441,12 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError = async (
2473
2441
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2474
2442
  default:
2475
2443
  const parsedBody = parsedOutput.body;
2444
+ const $metadata = deserializeMetadata(output);
2445
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2476
2446
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2477
- name: parsedBody.code || parsedBody.Code || errorCode,
2447
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2478
2448
  $fault: "client",
2479
- $metadata: deserializeMetadata(output),
2449
+ $metadata,
2480
2450
  });
2481
2451
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2482
2452
  }
@@ -2530,8 +2500,7 @@ const deserializeAws_restJson1GetWorkflowCommandError = async (output, context)
2530
2500
  body: await parseBody(output.body, context),
2531
2501
  };
2532
2502
  let response;
2533
- let errorCode = "UnknownError";
2534
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2503
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2535
2504
  switch (errorCode) {
2536
2505
  case "AccessDeniedException":
2537
2506
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2550,10 +2519,12 @@ const deserializeAws_restJson1GetWorkflowCommandError = async (output, context)
2550
2519
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2551
2520
  default:
2552
2521
  const parsedBody = parsedOutput.body;
2522
+ const $metadata = deserializeMetadata(output);
2523
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2553
2524
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2554
- name: parsedBody.code || parsedBody.Code || errorCode,
2525
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2555
2526
  $fault: "client",
2556
- $metadata: deserializeMetadata(output),
2527
+ $metadata,
2557
2528
  });
2558
2529
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2559
2530
  }
@@ -2591,8 +2562,7 @@ const deserializeAws_restJson1GetWorkflowStepsCommandError = async (output, cont
2591
2562
  body: await parseBody(output.body, context),
2592
2563
  };
2593
2564
  let response;
2594
- let errorCode = "UnknownError";
2595
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2565
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2596
2566
  switch (errorCode) {
2597
2567
  case "AccessDeniedException":
2598
2568
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2611,10 +2581,12 @@ const deserializeAws_restJson1GetWorkflowStepsCommandError = async (output, cont
2611
2581
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2612
2582
  default:
2613
2583
  const parsedBody = parsedOutput.body;
2584
+ const $metadata = deserializeMetadata(output);
2585
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2614
2586
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2615
- name: parsedBody.code || parsedBody.Code || errorCode,
2587
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2616
2588
  $fault: "client",
2617
- $metadata: deserializeMetadata(output),
2589
+ $metadata,
2618
2590
  });
2619
2591
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2620
2592
  }
@@ -2644,8 +2616,7 @@ const deserializeAws_restJson1ListAccountIntegrationsCommandError = async (outpu
2644
2616
  body: await parseBody(output.body, context),
2645
2617
  };
2646
2618
  let response;
2647
- let errorCode = "UnknownError";
2648
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2619
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2649
2620
  switch (errorCode) {
2650
2621
  case "AccessDeniedException":
2651
2622
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2664,10 +2635,12 @@ const deserializeAws_restJson1ListAccountIntegrationsCommandError = async (outpu
2664
2635
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2665
2636
  default:
2666
2637
  const parsedBody = parsedOutput.body;
2638
+ const $metadata = deserializeMetadata(output);
2639
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2667
2640
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2668
- name: parsedBody.code || parsedBody.Code || errorCode,
2641
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2669
2642
  $fault: "client",
2670
- $metadata: deserializeMetadata(output),
2643
+ $metadata,
2671
2644
  });
2672
2645
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2673
2646
  }
@@ -2697,8 +2670,7 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
2697
2670
  body: await parseBody(output.body, context),
2698
2671
  };
2699
2672
  let response;
2700
- let errorCode = "UnknownError";
2701
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2673
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2702
2674
  switch (errorCode) {
2703
2675
  case "AccessDeniedException":
2704
2676
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2717,10 +2689,12 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
2717
2689
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2718
2690
  default:
2719
2691
  const parsedBody = parsedOutput.body;
2692
+ const $metadata = deserializeMetadata(output);
2693
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2720
2694
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2721
- name: parsedBody.code || parsedBody.Code || errorCode,
2695
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2722
2696
  $fault: "client",
2723
- $metadata: deserializeMetadata(output),
2697
+ $metadata,
2724
2698
  });
2725
2699
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2726
2700
  }
@@ -2750,8 +2724,7 @@ const deserializeAws_restJson1ListIdentityResolutionJobsCommandError = async (ou
2750
2724
  body: await parseBody(output.body, context),
2751
2725
  };
2752
2726
  let response;
2753
- let errorCode = "UnknownError";
2754
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2727
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2755
2728
  switch (errorCode) {
2756
2729
  case "AccessDeniedException":
2757
2730
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2770,10 +2743,12 @@ const deserializeAws_restJson1ListIdentityResolutionJobsCommandError = async (ou
2770
2743
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2771
2744
  default:
2772
2745
  const parsedBody = parsedOutput.body;
2746
+ const $metadata = deserializeMetadata(output);
2747
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2773
2748
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2774
- name: parsedBody.code || parsedBody.Code || errorCode,
2749
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2775
2750
  $fault: "client",
2776
- $metadata: deserializeMetadata(output),
2751
+ $metadata,
2777
2752
  });
2778
2753
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2779
2754
  }
@@ -2803,8 +2778,7 @@ const deserializeAws_restJson1ListIntegrationsCommandError = async (output, cont
2803
2778
  body: await parseBody(output.body, context),
2804
2779
  };
2805
2780
  let response;
2806
- let errorCode = "UnknownError";
2807
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2781
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2808
2782
  switch (errorCode) {
2809
2783
  case "AccessDeniedException":
2810
2784
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2823,10 +2797,12 @@ const deserializeAws_restJson1ListIntegrationsCommandError = async (output, cont
2823
2797
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2824
2798
  default:
2825
2799
  const parsedBody = parsedOutput.body;
2800
+ const $metadata = deserializeMetadata(output);
2801
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2826
2802
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2827
- name: parsedBody.code || parsedBody.Code || errorCode,
2803
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2828
2804
  $fault: "client",
2829
- $metadata: deserializeMetadata(output),
2805
+ $metadata,
2830
2806
  });
2831
2807
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2832
2808
  }
@@ -2856,8 +2832,7 @@ const deserializeAws_restJson1ListProfileObjectsCommandError = async (output, co
2856
2832
  body: await parseBody(output.body, context),
2857
2833
  };
2858
2834
  let response;
2859
- let errorCode = "UnknownError";
2860
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2835
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2861
2836
  switch (errorCode) {
2862
2837
  case "AccessDeniedException":
2863
2838
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2876,10 +2851,12 @@ const deserializeAws_restJson1ListProfileObjectsCommandError = async (output, co
2876
2851
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2877
2852
  default:
2878
2853
  const parsedBody = parsedOutput.body;
2854
+ const $metadata = deserializeMetadata(output);
2855
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2879
2856
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2880
- name: parsedBody.code || parsedBody.Code || errorCode,
2857
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2881
2858
  $fault: "client",
2882
- $metadata: deserializeMetadata(output),
2859
+ $metadata,
2883
2860
  });
2884
2861
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2885
2862
  }
@@ -2909,8 +2886,7 @@ const deserializeAws_restJson1ListProfileObjectTypesCommandError = async (output
2909
2886
  body: await parseBody(output.body, context),
2910
2887
  };
2911
2888
  let response;
2912
- let errorCode = "UnknownError";
2913
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2889
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2914
2890
  switch (errorCode) {
2915
2891
  case "AccessDeniedException":
2916
2892
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2929,10 +2905,12 @@ const deserializeAws_restJson1ListProfileObjectTypesCommandError = async (output
2929
2905
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2930
2906
  default:
2931
2907
  const parsedBody = parsedOutput.body;
2908
+ const $metadata = deserializeMetadata(output);
2909
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2932
2910
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2933
- name: parsedBody.code || parsedBody.Code || errorCode,
2911
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2934
2912
  $fault: "client",
2935
- $metadata: deserializeMetadata(output),
2913
+ $metadata,
2936
2914
  });
2937
2915
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2938
2916
  }
@@ -2962,8 +2940,7 @@ const deserializeAws_restJson1ListProfileObjectTypeTemplatesCommandError = async
2962
2940
  body: await parseBody(output.body, context),
2963
2941
  };
2964
2942
  let response;
2965
- let errorCode = "UnknownError";
2966
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2943
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2967
2944
  switch (errorCode) {
2968
2945
  case "AccessDeniedException":
2969
2946
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -2982,10 +2959,12 @@ const deserializeAws_restJson1ListProfileObjectTypeTemplatesCommandError = async
2982
2959
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2983
2960
  default:
2984
2961
  const parsedBody = parsedOutput.body;
2962
+ const $metadata = deserializeMetadata(output);
2963
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2985
2964
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
2986
- name: parsedBody.code || parsedBody.Code || errorCode,
2965
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2987
2966
  $fault: "client",
2988
- $metadata: deserializeMetadata(output),
2967
+ $metadata,
2989
2968
  });
2990
2969
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2991
2970
  }
@@ -3011,8 +2990,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3011
2990
  body: await parseBody(output.body, context),
3012
2991
  };
3013
2992
  let response;
3014
- let errorCode = "UnknownError";
3015
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2993
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3016
2994
  switch (errorCode) {
3017
2995
  case "BadRequestException":
3018
2996
  case "com.amazonaws.customerprofiles#BadRequestException":
@@ -3025,10 +3003,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3025
3003
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3026
3004
  default:
3027
3005
  const parsedBody = parsedOutput.body;
3006
+ const $metadata = deserializeMetadata(output);
3007
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3028
3008
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3029
- name: parsedBody.code || parsedBody.Code || errorCode,
3009
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3030
3010
  $fault: "client",
3031
- $metadata: deserializeMetadata(output),
3011
+ $metadata,
3032
3012
  });
3033
3013
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3034
3014
  }
@@ -3058,8 +3038,7 @@ const deserializeAws_restJson1ListWorkflowsCommandError = async (output, context
3058
3038
  body: await parseBody(output.body, context),
3059
3039
  };
3060
3040
  let response;
3061
- let errorCode = "UnknownError";
3062
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3041
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3063
3042
  switch (errorCode) {
3064
3043
  case "AccessDeniedException":
3065
3044
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -3078,10 +3057,12 @@ const deserializeAws_restJson1ListWorkflowsCommandError = async (output, context
3078
3057
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3079
3058
  default:
3080
3059
  const parsedBody = parsedOutput.body;
3060
+ const $metadata = deserializeMetadata(output);
3061
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3081
3062
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3082
- name: parsedBody.code || parsedBody.Code || errorCode,
3063
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3083
3064
  $fault: "client",
3084
- $metadata: deserializeMetadata(output),
3065
+ $metadata,
3085
3066
  });
3086
3067
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3087
3068
  }
@@ -3107,8 +3088,7 @@ const deserializeAws_restJson1MergeProfilesCommandError = async (output, context
3107
3088
  body: await parseBody(output.body, context),
3108
3089
  };
3109
3090
  let response;
3110
- let errorCode = "UnknownError";
3111
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3091
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3112
3092
  switch (errorCode) {
3113
3093
  case "BadRequestException":
3114
3094
  case "com.amazonaws.customerprofiles#BadRequestException":
@@ -3124,10 +3104,12 @@ const deserializeAws_restJson1MergeProfilesCommandError = async (output, context
3124
3104
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3125
3105
  default:
3126
3106
  const parsedBody = parsedOutput.body;
3107
+ const $metadata = deserializeMetadata(output);
3108
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3127
3109
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3128
- name: parsedBody.code || parsedBody.Code || errorCode,
3110
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3129
3111
  $fault: "client",
3130
- $metadata: deserializeMetadata(output),
3112
+ $metadata,
3131
3113
  });
3132
3114
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3133
3115
  }
@@ -3181,8 +3163,7 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
3181
3163
  body: await parseBody(output.body, context),
3182
3164
  };
3183
3165
  let response;
3184
- let errorCode = "UnknownError";
3185
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3166
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3186
3167
  switch (errorCode) {
3187
3168
  case "AccessDeniedException":
3188
3169
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -3201,10 +3182,12 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
3201
3182
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3202
3183
  default:
3203
3184
  const parsedBody = parsedOutput.body;
3185
+ const $metadata = deserializeMetadata(output);
3186
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3204
3187
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3205
- name: parsedBody.code || parsedBody.Code || errorCode,
3188
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3206
3189
  $fault: "client",
3207
- $metadata: deserializeMetadata(output),
3190
+ $metadata,
3208
3191
  });
3209
3192
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3210
3193
  }
@@ -3230,8 +3213,7 @@ const deserializeAws_restJson1PutProfileObjectCommandError = async (output, cont
3230
3213
  body: await parseBody(output.body, context),
3231
3214
  };
3232
3215
  let response;
3233
- let errorCode = "UnknownError";
3234
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3216
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3235
3217
  switch (errorCode) {
3236
3218
  case "AccessDeniedException":
3237
3219
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -3250,10 +3232,12 @@ const deserializeAws_restJson1PutProfileObjectCommandError = async (output, cont
3250
3232
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3251
3233
  default:
3252
3234
  const parsedBody = parsedOutput.body;
3235
+ const $metadata = deserializeMetadata(output);
3236
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3253
3237
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3254
- name: parsedBody.code || parsedBody.Code || errorCode,
3238
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3255
3239
  $fault: "client",
3256
- $metadata: deserializeMetadata(output),
3240
+ $metadata,
3257
3241
  });
3258
3242
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3259
3243
  }
@@ -3323,8 +3307,7 @@ const deserializeAws_restJson1PutProfileObjectTypeCommandError = async (output,
3323
3307
  body: await parseBody(output.body, context),
3324
3308
  };
3325
3309
  let response;
3326
- let errorCode = "UnknownError";
3327
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3310
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3328
3311
  switch (errorCode) {
3329
3312
  case "AccessDeniedException":
3330
3313
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -3343,10 +3326,12 @@ const deserializeAws_restJson1PutProfileObjectTypeCommandError = async (output,
3343
3326
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3344
3327
  default:
3345
3328
  const parsedBody = parsedOutput.body;
3329
+ const $metadata = deserializeMetadata(output);
3330
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3346
3331
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3347
- name: parsedBody.code || parsedBody.Code || errorCode,
3332
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3348
3333
  $fault: "client",
3349
- $metadata: deserializeMetadata(output),
3334
+ $metadata,
3350
3335
  });
3351
3336
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3352
3337
  }
@@ -3376,8 +3361,7 @@ const deserializeAws_restJson1SearchProfilesCommandError = async (output, contex
3376
3361
  body: await parseBody(output.body, context),
3377
3362
  };
3378
3363
  let response;
3379
- let errorCode = "UnknownError";
3380
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3364
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3381
3365
  switch (errorCode) {
3382
3366
  case "AccessDeniedException":
3383
3367
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -3396,10 +3380,12 @@ const deserializeAws_restJson1SearchProfilesCommandError = async (output, contex
3396
3380
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3397
3381
  default:
3398
3382
  const parsedBody = parsedOutput.body;
3383
+ const $metadata = deserializeMetadata(output);
3384
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3399
3385
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3400
- name: parsedBody.code || parsedBody.Code || errorCode,
3386
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3401
3387
  $fault: "client",
3402
- $metadata: deserializeMetadata(output),
3388
+ $metadata,
3403
3389
  });
3404
3390
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3405
3391
  }
@@ -3421,8 +3407,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
3421
3407
  body: await parseBody(output.body, context),
3422
3408
  };
3423
3409
  let response;
3424
- let errorCode = "UnknownError";
3425
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3410
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3426
3411
  switch (errorCode) {
3427
3412
  case "BadRequestException":
3428
3413
  case "com.amazonaws.customerprofiles#BadRequestException":
@@ -3435,10 +3420,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
3435
3420
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3436
3421
  default:
3437
3422
  const parsedBody = parsedOutput.body;
3423
+ const $metadata = deserializeMetadata(output);
3424
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3438
3425
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3439
- name: parsedBody.code || parsedBody.Code || errorCode,
3426
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3440
3427
  $fault: "client",
3441
- $metadata: deserializeMetadata(output),
3428
+ $metadata,
3442
3429
  });
3443
3430
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3444
3431
  }
@@ -3460,8 +3447,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
3460
3447
  body: await parseBody(output.body, context),
3461
3448
  };
3462
3449
  let response;
3463
- let errorCode = "UnknownError";
3464
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3450
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3465
3451
  switch (errorCode) {
3466
3452
  case "BadRequestException":
3467
3453
  case "com.amazonaws.customerprofiles#BadRequestException":
@@ -3474,10 +3460,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
3474
3460
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3475
3461
  default:
3476
3462
  const parsedBody = parsedOutput.body;
3463
+ const $metadata = deserializeMetadata(output);
3464
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3477
3465
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3478
- name: parsedBody.code || parsedBody.Code || errorCode,
3466
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3479
3467
  $fault: "client",
3480
- $metadata: deserializeMetadata(output),
3468
+ $metadata,
3481
3469
  });
3482
3470
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3483
3471
  }
@@ -3531,8 +3519,7 @@ const deserializeAws_restJson1UpdateDomainCommandError = async (output, context)
3531
3519
  body: await parseBody(output.body, context),
3532
3520
  };
3533
3521
  let response;
3534
- let errorCode = "UnknownError";
3535
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3522
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3536
3523
  switch (errorCode) {
3537
3524
  case "AccessDeniedException":
3538
3525
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -3551,10 +3538,12 @@ const deserializeAws_restJson1UpdateDomainCommandError = async (output, context)
3551
3538
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3552
3539
  default:
3553
3540
  const parsedBody = parsedOutput.body;
3541
+ const $metadata = deserializeMetadata(output);
3542
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3554
3543
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3555
- name: parsedBody.code || parsedBody.Code || errorCode,
3544
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3556
3545
  $fault: "client",
3557
- $metadata: deserializeMetadata(output),
3546
+ $metadata,
3558
3547
  });
3559
3548
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3560
3549
  }
@@ -3580,8 +3569,7 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
3580
3569
  body: await parseBody(output.body, context),
3581
3570
  };
3582
3571
  let response;
3583
- let errorCode = "UnknownError";
3584
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3572
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3585
3573
  switch (errorCode) {
3586
3574
  case "AccessDeniedException":
3587
3575
  case "com.amazonaws.customerprofiles#AccessDeniedException":
@@ -3600,10 +3588,12 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
3600
3588
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3601
3589
  default:
3602
3590
  const parsedBody = parsedOutput.body;
3591
+ const $metadata = deserializeMetadata(output);
3592
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3603
3593
  response = new CustomerProfilesServiceException_1.CustomerProfilesServiceException({
3604
- name: parsedBody.code || parsedBody.Code || errorCode,
3594
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3605
3595
  $fault: "client",
3606
- $metadata: deserializeMetadata(output),
3596
+ $metadata,
3607
3597
  });
3608
3598
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3609
3599
  }
@@ -3670,24 +3660,22 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
3670
3660
  };
3671
3661
  const serializeAws_restJson1Address = (input, context) => {
3672
3662
  return {
3673
- ...(input.Address1 !== undefined && input.Address1 !== null && { Address1: input.Address1 }),
3674
- ...(input.Address2 !== undefined && input.Address2 !== null && { Address2: input.Address2 }),
3675
- ...(input.Address3 !== undefined && input.Address3 !== null && { Address3: input.Address3 }),
3676
- ...(input.Address4 !== undefined && input.Address4 !== null && { Address4: input.Address4 }),
3677
- ...(input.City !== undefined && input.City !== null && { City: input.City }),
3678
- ...(input.Country !== undefined && input.Country !== null && { Country: input.Country }),
3679
- ...(input.County !== undefined && input.County !== null && { County: input.County }),
3680
- ...(input.PostalCode !== undefined && input.PostalCode !== null && { PostalCode: input.PostalCode }),
3681
- ...(input.Province !== undefined && input.Province !== null && { Province: input.Province }),
3682
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
3663
+ ...(input.Address1 != null && { Address1: input.Address1 }),
3664
+ ...(input.Address2 != null && { Address2: input.Address2 }),
3665
+ ...(input.Address3 != null && { Address3: input.Address3 }),
3666
+ ...(input.Address4 != null && { Address4: input.Address4 }),
3667
+ ...(input.City != null && { City: input.City }),
3668
+ ...(input.Country != null && { Country: input.Country }),
3669
+ ...(input.County != null && { County: input.County }),
3670
+ ...(input.PostalCode != null && { PostalCode: input.PostalCode }),
3671
+ ...(input.Province != null && { Province: input.Province }),
3672
+ ...(input.State != null && { State: input.State }),
3683
3673
  };
3684
3674
  };
3685
3675
  const serializeAws_restJson1AppflowIntegration = (input, context) => {
3686
3676
  return {
3687
- ...(input.Batches !== undefined &&
3688
- input.Batches !== null && { Batches: serializeAws_restJson1Batches(input.Batches, context) }),
3689
- ...(input.FlowDefinition !== undefined &&
3690
- input.FlowDefinition !== null && {
3677
+ ...(input.Batches != null && { Batches: serializeAws_restJson1Batches(input.Batches, context) }),
3678
+ ...(input.FlowDefinition != null && {
3691
3679
  FlowDefinition: serializeAws_restJson1FlowDefinition(input.FlowDefinition, context),
3692
3680
  }),
3693
3681
  };
@@ -3716,23 +3704,22 @@ const serializeAws_restJson1AttributeSourceIdMap = (input, context) => {
3716
3704
  };
3717
3705
  const serializeAws_restJson1AutoMerging = (input, context) => {
3718
3706
  return {
3719
- ...(input.ConflictResolution !== undefined &&
3720
- input.ConflictResolution !== null && {
3707
+ ...(input.ConflictResolution != null && {
3721
3708
  ConflictResolution: serializeAws_restJson1ConflictResolution(input.ConflictResolution, context),
3722
3709
  }),
3723
- ...(input.Consolidation !== undefined &&
3724
- input.Consolidation !== null && {
3710
+ ...(input.Consolidation != null && {
3725
3711
  Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
3726
3712
  }),
3727
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
3713
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
3714
+ ...(input.MinAllowedConfidenceScoreForMerging != null && {
3715
+ MinAllowedConfidenceScoreForMerging: (0, smithy_client_1.serializeFloat)(input.MinAllowedConfidenceScoreForMerging),
3716
+ }),
3728
3717
  };
3729
3718
  };
3730
3719
  const serializeAws_restJson1Batch = (input, context) => {
3731
3720
  return {
3732
- ...(input.EndTime !== undefined &&
3733
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3734
- ...(input.StartTime !== undefined &&
3735
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3721
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3722
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3736
3723
  };
3737
3724
  };
3738
3725
  const serializeAws_restJson1Batches = (input, context) => {
@@ -3747,32 +3734,29 @@ const serializeAws_restJson1Batches = (input, context) => {
3747
3734
  };
3748
3735
  const serializeAws_restJson1ConflictResolution = (input, context) => {
3749
3736
  return {
3750
- ...(input.ConflictResolvingModel !== undefined &&
3751
- input.ConflictResolvingModel !== null && { ConflictResolvingModel: input.ConflictResolvingModel }),
3752
- ...(input.SourceName !== undefined && input.SourceName !== null && { SourceName: input.SourceName }),
3737
+ ...(input.ConflictResolvingModel != null && { ConflictResolvingModel: input.ConflictResolvingModel }),
3738
+ ...(input.SourceName != null && { SourceName: input.SourceName }),
3753
3739
  };
3754
3740
  };
3755
3741
  const serializeAws_restJson1ConnectorOperator = (input, context) => {
3756
3742
  return {
3757
- ...(input.Marketo !== undefined && input.Marketo !== null && { Marketo: input.Marketo }),
3758
- ...(input.S3 !== undefined && input.S3 !== null && { S3: input.S3 }),
3759
- ...(input.Salesforce !== undefined && input.Salesforce !== null && { Salesforce: input.Salesforce }),
3760
- ...(input.ServiceNow !== undefined && input.ServiceNow !== null && { ServiceNow: input.ServiceNow }),
3761
- ...(input.Zendesk !== undefined && input.Zendesk !== null && { Zendesk: input.Zendesk }),
3743
+ ...(input.Marketo != null && { Marketo: input.Marketo }),
3744
+ ...(input.S3 != null && { S3: input.S3 }),
3745
+ ...(input.Salesforce != null && { Salesforce: input.Salesforce }),
3746
+ ...(input.ServiceNow != null && { ServiceNow: input.ServiceNow }),
3747
+ ...(input.Zendesk != null && { Zendesk: input.Zendesk }),
3762
3748
  };
3763
3749
  };
3764
3750
  const serializeAws_restJson1Consolidation = (input, context) => {
3765
3751
  return {
3766
- ...(input.MatchingAttributesList !== undefined &&
3767
- input.MatchingAttributesList !== null && {
3752
+ ...(input.MatchingAttributesList != null && {
3768
3753
  MatchingAttributesList: serializeAws_restJson1MatchingAttributesList(input.MatchingAttributesList, context),
3769
3754
  }),
3770
3755
  };
3771
3756
  };
3772
3757
  const serializeAws_restJson1ExportingConfig = (input, context) => {
3773
3758
  return {
3774
- ...(input.S3Exporting !== undefined &&
3775
- input.S3Exporting !== null && {
3759
+ ...(input.S3Exporting != null && {
3776
3760
  S3Exporting: serializeAws_restJson1S3ExportingConfig(input.S3Exporting, context),
3777
3761
  }),
3778
3762
  };
@@ -3800,76 +3784,61 @@ const serializeAws_restJson1FieldNameList = (input, context) => {
3800
3784
  };
3801
3785
  const serializeAws_restJson1FieldSourceProfileIds = (input, context) => {
3802
3786
  return {
3803
- ...(input.AccountNumber !== undefined && input.AccountNumber !== null && { AccountNumber: input.AccountNumber }),
3804
- ...(input.AdditionalInformation !== undefined &&
3805
- input.AdditionalInformation !== null && { AdditionalInformation: input.AdditionalInformation }),
3806
- ...(input.Address !== undefined && input.Address !== null && { Address: input.Address }),
3807
- ...(input.Attributes !== undefined &&
3808
- input.Attributes !== null && {
3787
+ ...(input.AccountNumber != null && { AccountNumber: input.AccountNumber }),
3788
+ ...(input.AdditionalInformation != null && { AdditionalInformation: input.AdditionalInformation }),
3789
+ ...(input.Address != null && { Address: input.Address }),
3790
+ ...(input.Attributes != null && {
3809
3791
  Attributes: serializeAws_restJson1AttributeSourceIdMap(input.Attributes, context),
3810
3792
  }),
3811
- ...(input.BillingAddress !== undefined &&
3812
- input.BillingAddress !== null && { BillingAddress: input.BillingAddress }),
3813
- ...(input.BirthDate !== undefined && input.BirthDate !== null && { BirthDate: input.BirthDate }),
3814
- ...(input.BusinessEmailAddress !== undefined &&
3815
- input.BusinessEmailAddress !== null && { BusinessEmailAddress: input.BusinessEmailAddress }),
3816
- ...(input.BusinessName !== undefined && input.BusinessName !== null && { BusinessName: input.BusinessName }),
3817
- ...(input.BusinessPhoneNumber !== undefined &&
3818
- input.BusinessPhoneNumber !== null && { BusinessPhoneNumber: input.BusinessPhoneNumber }),
3819
- ...(input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress }),
3820
- ...(input.FirstName !== undefined && input.FirstName !== null && { FirstName: input.FirstName }),
3821
- ...(input.Gender !== undefined && input.Gender !== null && { Gender: input.Gender }),
3822
- ...(input.HomePhoneNumber !== undefined &&
3823
- input.HomePhoneNumber !== null && { HomePhoneNumber: input.HomePhoneNumber }),
3824
- ...(input.LastName !== undefined && input.LastName !== null && { LastName: input.LastName }),
3825
- ...(input.MailingAddress !== undefined &&
3826
- input.MailingAddress !== null && { MailingAddress: input.MailingAddress }),
3827
- ...(input.MiddleName !== undefined && input.MiddleName !== null && { MiddleName: input.MiddleName }),
3828
- ...(input.MobilePhoneNumber !== undefined &&
3829
- input.MobilePhoneNumber !== null && { MobilePhoneNumber: input.MobilePhoneNumber }),
3830
- ...(input.PartyType !== undefined && input.PartyType !== null && { PartyType: input.PartyType }),
3831
- ...(input.PersonalEmailAddress !== undefined &&
3832
- input.PersonalEmailAddress !== null && { PersonalEmailAddress: input.PersonalEmailAddress }),
3833
- ...(input.PhoneNumber !== undefined && input.PhoneNumber !== null && { PhoneNumber: input.PhoneNumber }),
3834
- ...(input.ShippingAddress !== undefined &&
3835
- input.ShippingAddress !== null && { ShippingAddress: input.ShippingAddress }),
3793
+ ...(input.BillingAddress != null && { BillingAddress: input.BillingAddress }),
3794
+ ...(input.BirthDate != null && { BirthDate: input.BirthDate }),
3795
+ ...(input.BusinessEmailAddress != null && { BusinessEmailAddress: input.BusinessEmailAddress }),
3796
+ ...(input.BusinessName != null && { BusinessName: input.BusinessName }),
3797
+ ...(input.BusinessPhoneNumber != null && { BusinessPhoneNumber: input.BusinessPhoneNumber }),
3798
+ ...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
3799
+ ...(input.FirstName != null && { FirstName: input.FirstName }),
3800
+ ...(input.Gender != null && { Gender: input.Gender }),
3801
+ ...(input.HomePhoneNumber != null && { HomePhoneNumber: input.HomePhoneNumber }),
3802
+ ...(input.LastName != null && { LastName: input.LastName }),
3803
+ ...(input.MailingAddress != null && { MailingAddress: input.MailingAddress }),
3804
+ ...(input.MiddleName != null && { MiddleName: input.MiddleName }),
3805
+ ...(input.MobilePhoneNumber != null && { MobilePhoneNumber: input.MobilePhoneNumber }),
3806
+ ...(input.PartyType != null && { PartyType: input.PartyType }),
3807
+ ...(input.PersonalEmailAddress != null && { PersonalEmailAddress: input.PersonalEmailAddress }),
3808
+ ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
3809
+ ...(input.ShippingAddress != null && { ShippingAddress: input.ShippingAddress }),
3836
3810
  };
3837
3811
  };
3838
3812
  const serializeAws_restJson1FlowDefinition = (input, context) => {
3839
3813
  return {
3840
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3841
- ...(input.FlowName !== undefined && input.FlowName !== null && { FlowName: input.FlowName }),
3842
- ...(input.KmsArn !== undefined && input.KmsArn !== null && { KmsArn: input.KmsArn }),
3843
- ...(input.SourceFlowConfig !== undefined &&
3844
- input.SourceFlowConfig !== null && {
3814
+ ...(input.Description != null && { Description: input.Description }),
3815
+ ...(input.FlowName != null && { FlowName: input.FlowName }),
3816
+ ...(input.KmsArn != null && { KmsArn: input.KmsArn }),
3817
+ ...(input.SourceFlowConfig != null && {
3845
3818
  SourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.SourceFlowConfig, context),
3846
3819
  }),
3847
- ...(input.Tasks !== undefined &&
3848
- input.Tasks !== null && { Tasks: serializeAws_restJson1Tasks(input.Tasks, context) }),
3849
- ...(input.TriggerConfig !== undefined &&
3850
- input.TriggerConfig !== null && {
3820
+ ...(input.Tasks != null && { Tasks: serializeAws_restJson1Tasks(input.Tasks, context) }),
3821
+ ...(input.TriggerConfig != null && {
3851
3822
  TriggerConfig: serializeAws_restJson1TriggerConfig(input.TriggerConfig, context),
3852
3823
  }),
3853
3824
  };
3854
3825
  };
3855
3826
  const serializeAws_restJson1IncrementalPullConfig = (input, context) => {
3856
3827
  return {
3857
- ...(input.DatetimeTypeFieldName !== undefined &&
3858
- input.DatetimeTypeFieldName !== null && { DatetimeTypeFieldName: input.DatetimeTypeFieldName }),
3828
+ ...(input.DatetimeTypeFieldName != null && { DatetimeTypeFieldName: input.DatetimeTypeFieldName }),
3859
3829
  };
3860
3830
  };
3861
3831
  const serializeAws_restJson1IntegrationConfig = (input, context) => {
3862
3832
  return {
3863
- ...(input.AppflowIntegration !== undefined &&
3864
- input.AppflowIntegration !== null && {
3833
+ ...(input.AppflowIntegration != null && {
3865
3834
  AppflowIntegration: serializeAws_restJson1AppflowIntegration(input.AppflowIntegration, context),
3866
3835
  }),
3867
3836
  };
3868
3837
  };
3869
3838
  const serializeAws_restJson1JobSchedule = (input, context) => {
3870
3839
  return {
3871
- ...(input.DayOfTheWeek !== undefined && input.DayOfTheWeek !== null && { DayOfTheWeek: input.DayOfTheWeek }),
3872
- ...(input.Time !== undefined && input.Time !== null && { Time: input.Time }),
3840
+ ...(input.DayOfTheWeek != null && { DayOfTheWeek: input.DayOfTheWeek }),
3841
+ ...(input.Time != null && { Time: input.Time }),
3873
3842
  };
3874
3843
  };
3875
3844
  const serializeAws_restJson1KeyMap = (input, context) => {
@@ -3885,7 +3854,7 @@ const serializeAws_restJson1KeyMap = (input, context) => {
3885
3854
  };
3886
3855
  const serializeAws_restJson1MarketoSourceProperties = (input, context) => {
3887
3856
  return {
3888
- ...(input.Object !== undefined && input.Object !== null && { Object: input.Object }),
3857
+ ...(input.Object != null && { Object: input.Object }),
3889
3858
  };
3890
3859
  };
3891
3860
  const serializeAws_restJson1MatchingAttributes = (input, context) => {
@@ -3910,37 +3879,31 @@ const serializeAws_restJson1MatchingAttributesList = (input, context) => {
3910
3879
  };
3911
3880
  const serializeAws_restJson1MatchingRequest = (input, context) => {
3912
3881
  return {
3913
- ...(input.AutoMerging !== undefined &&
3914
- input.AutoMerging !== null && { AutoMerging: serializeAws_restJson1AutoMerging(input.AutoMerging, context) }),
3915
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
3916
- ...(input.ExportingConfig !== undefined &&
3917
- input.ExportingConfig !== null && {
3882
+ ...(input.AutoMerging != null && { AutoMerging: serializeAws_restJson1AutoMerging(input.AutoMerging, context) }),
3883
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
3884
+ ...(input.ExportingConfig != null && {
3918
3885
  ExportingConfig: serializeAws_restJson1ExportingConfig(input.ExportingConfig, context),
3919
3886
  }),
3920
- ...(input.JobSchedule !== undefined &&
3921
- input.JobSchedule !== null && { JobSchedule: serializeAws_restJson1JobSchedule(input.JobSchedule, context) }),
3887
+ ...(input.JobSchedule != null && { JobSchedule: serializeAws_restJson1JobSchedule(input.JobSchedule, context) }),
3922
3888
  };
3923
3889
  };
3924
3890
  const serializeAws_restJson1ObjectFilter = (input, context) => {
3925
3891
  return {
3926
- ...(input.KeyName !== undefined && input.KeyName !== null && { KeyName: input.KeyName }),
3927
- ...(input.Values !== undefined &&
3928
- input.Values !== null && { Values: serializeAws_restJson1requestValueList(input.Values, context) }),
3892
+ ...(input.KeyName != null && { KeyName: input.KeyName }),
3893
+ ...(input.Values != null && { Values: serializeAws_restJson1requestValueList(input.Values, context) }),
3929
3894
  };
3930
3895
  };
3931
3896
  const serializeAws_restJson1ObjectTypeField = (input, context) => {
3932
3897
  return {
3933
- ...(input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType }),
3934
- ...(input.Source !== undefined && input.Source !== null && { Source: input.Source }),
3935
- ...(input.Target !== undefined && input.Target !== null && { Target: input.Target }),
3898
+ ...(input.ContentType != null && { ContentType: input.ContentType }),
3899
+ ...(input.Source != null && { Source: input.Source }),
3900
+ ...(input.Target != null && { Target: input.Target }),
3936
3901
  };
3937
3902
  };
3938
3903
  const serializeAws_restJson1ObjectTypeKey = (input, context) => {
3939
3904
  return {
3940
- ...(input.FieldNames !== undefined &&
3941
- input.FieldNames !== null && { FieldNames: serializeAws_restJson1FieldNameList(input.FieldNames, context) }),
3942
- ...(input.StandardIdentifiers !== undefined &&
3943
- input.StandardIdentifiers !== null && {
3905
+ ...(input.FieldNames != null && { FieldNames: serializeAws_restJson1FieldNameList(input.FieldNames, context) }),
3906
+ ...(input.StandardIdentifiers != null && {
3944
3907
  StandardIdentifiers: serializeAws_restJson1StandardIdentifierList(input.StandardIdentifiers, context),
3945
3908
  }),
3946
3909
  };
@@ -3988,64 +3951,52 @@ const serializeAws_restJson1requestValueList = (input, context) => {
3988
3951
  };
3989
3952
  const serializeAws_restJson1S3ExportingConfig = (input, context) => {
3990
3953
  return {
3991
- ...(input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName }),
3992
- ...(input.S3KeyName !== undefined && input.S3KeyName !== null && { S3KeyName: input.S3KeyName }),
3954
+ ...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
3955
+ ...(input.S3KeyName != null && { S3KeyName: input.S3KeyName }),
3993
3956
  };
3994
3957
  };
3995
3958
  const serializeAws_restJson1S3SourceProperties = (input, context) => {
3996
3959
  return {
3997
- ...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
3998
- ...(input.BucketPrefix !== undefined && input.BucketPrefix !== null && { BucketPrefix: input.BucketPrefix }),
3960
+ ...(input.BucketName != null && { BucketName: input.BucketName }),
3961
+ ...(input.BucketPrefix != null && { BucketPrefix: input.BucketPrefix }),
3999
3962
  };
4000
3963
  };
4001
3964
  const serializeAws_restJson1SalesforceSourceProperties = (input, context) => {
4002
3965
  return {
4003
- ...(input.EnableDynamicFieldUpdate !== undefined &&
4004
- input.EnableDynamicFieldUpdate !== null && { EnableDynamicFieldUpdate: input.EnableDynamicFieldUpdate }),
4005
- ...(input.IncludeDeletedRecords !== undefined &&
4006
- input.IncludeDeletedRecords !== null && { IncludeDeletedRecords: input.IncludeDeletedRecords }),
4007
- ...(input.Object !== undefined && input.Object !== null && { Object: input.Object }),
3966
+ ...(input.EnableDynamicFieldUpdate != null && { EnableDynamicFieldUpdate: input.EnableDynamicFieldUpdate }),
3967
+ ...(input.IncludeDeletedRecords != null && { IncludeDeletedRecords: input.IncludeDeletedRecords }),
3968
+ ...(input.Object != null && { Object: input.Object }),
4008
3969
  };
4009
3970
  };
4010
3971
  const serializeAws_restJson1ScheduledTriggerProperties = (input, context) => {
4011
3972
  return {
4012
- ...(input.DataPullMode !== undefined && input.DataPullMode !== null && { DataPullMode: input.DataPullMode }),
4013
- ...(input.FirstExecutionFrom !== undefined &&
4014
- input.FirstExecutionFrom !== null && {
3973
+ ...(input.DataPullMode != null && { DataPullMode: input.DataPullMode }),
3974
+ ...(input.FirstExecutionFrom != null && {
4015
3975
  FirstExecutionFrom: Math.round(input.FirstExecutionFrom.getTime() / 1000),
4016
3976
  }),
4017
- ...(input.ScheduleEndTime !== undefined &&
4018
- input.ScheduleEndTime !== null && { ScheduleEndTime: Math.round(input.ScheduleEndTime.getTime() / 1000) }),
4019
- ...(input.ScheduleExpression !== undefined &&
4020
- input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression }),
4021
- ...(input.ScheduleOffset !== undefined &&
4022
- input.ScheduleOffset !== null && { ScheduleOffset: input.ScheduleOffset }),
4023
- ...(input.ScheduleStartTime !== undefined &&
4024
- input.ScheduleStartTime !== null && { ScheduleStartTime: Math.round(input.ScheduleStartTime.getTime() / 1000) }),
4025
- ...(input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }),
3977
+ ...(input.ScheduleEndTime != null && { ScheduleEndTime: Math.round(input.ScheduleEndTime.getTime() / 1000) }),
3978
+ ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
3979
+ ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }),
3980
+ ...(input.ScheduleStartTime != null && { ScheduleStartTime: Math.round(input.ScheduleStartTime.getTime() / 1000) }),
3981
+ ...(input.Timezone != null && { Timezone: input.Timezone }),
4026
3982
  };
4027
3983
  };
4028
3984
  const serializeAws_restJson1ServiceNowSourceProperties = (input, context) => {
4029
3985
  return {
4030
- ...(input.Object !== undefined && input.Object !== null && { Object: input.Object }),
3986
+ ...(input.Object != null && { Object: input.Object }),
4031
3987
  };
4032
3988
  };
4033
3989
  const serializeAws_restJson1SourceConnectorProperties = (input, context) => {
4034
3990
  return {
4035
- ...(input.Marketo !== undefined &&
4036
- input.Marketo !== null && { Marketo: serializeAws_restJson1MarketoSourceProperties(input.Marketo, context) }),
4037
- ...(input.S3 !== undefined &&
4038
- input.S3 !== null && { S3: serializeAws_restJson1S3SourceProperties(input.S3, context) }),
4039
- ...(input.Salesforce !== undefined &&
4040
- input.Salesforce !== null && {
3991
+ ...(input.Marketo != null && { Marketo: serializeAws_restJson1MarketoSourceProperties(input.Marketo, context) }),
3992
+ ...(input.S3 != null && { S3: serializeAws_restJson1S3SourceProperties(input.S3, context) }),
3993
+ ...(input.Salesforce != null && {
4041
3994
  Salesforce: serializeAws_restJson1SalesforceSourceProperties(input.Salesforce, context),
4042
3995
  }),
4043
- ...(input.ServiceNow !== undefined &&
4044
- input.ServiceNow !== null && {
3996
+ ...(input.ServiceNow != null && {
4045
3997
  ServiceNow: serializeAws_restJson1ServiceNowSourceProperties(input.ServiceNow, context),
4046
3998
  }),
4047
- ...(input.Zendesk !== undefined &&
4048
- input.Zendesk !== null && { Zendesk: serializeAws_restJson1ZendeskSourceProperties(input.Zendesk, context) }),
3999
+ ...(input.Zendesk != null && { Zendesk: serializeAws_restJson1ZendeskSourceProperties(input.Zendesk, context) }),
4049
4000
  };
4050
4001
  };
4051
4002
  const serializeAws_restJson1SourceFields = (input, context) => {
@@ -4060,15 +4011,12 @@ const serializeAws_restJson1SourceFields = (input, context) => {
4060
4011
  };
4061
4012
  const serializeAws_restJson1SourceFlowConfig = (input, context) => {
4062
4013
  return {
4063
- ...(input.ConnectorProfileName !== undefined &&
4064
- input.ConnectorProfileName !== null && { ConnectorProfileName: input.ConnectorProfileName }),
4065
- ...(input.ConnectorType !== undefined && input.ConnectorType !== null && { ConnectorType: input.ConnectorType }),
4066
- ...(input.IncrementalPullConfig !== undefined &&
4067
- input.IncrementalPullConfig !== null && {
4014
+ ...(input.ConnectorProfileName != null && { ConnectorProfileName: input.ConnectorProfileName }),
4015
+ ...(input.ConnectorType != null && { ConnectorType: input.ConnectorType }),
4016
+ ...(input.IncrementalPullConfig != null && {
4068
4017
  IncrementalPullConfig: serializeAws_restJson1IncrementalPullConfig(input.IncrementalPullConfig, context),
4069
4018
  }),
4070
- ...(input.SourceConnectorProperties !== undefined &&
4071
- input.SourceConnectorProperties !== null && {
4019
+ ...(input.SourceConnectorProperties != null && {
4072
4020
  SourceConnectorProperties: serializeAws_restJson1SourceConnectorProperties(input.SourceConnectorProperties, context),
4073
4021
  }),
4074
4022
  };
@@ -4096,19 +4044,17 @@ const serializeAws_restJson1TagMap = (input, context) => {
4096
4044
  };
4097
4045
  const serializeAws_restJson1Task = (input, context) => {
4098
4046
  return {
4099
- ...(input.ConnectorOperator !== undefined &&
4100
- input.ConnectorOperator !== null && {
4047
+ ...(input.ConnectorOperator != null && {
4101
4048
  ConnectorOperator: serializeAws_restJson1ConnectorOperator(input.ConnectorOperator, context),
4102
4049
  }),
4103
- ...(input.DestinationField !== undefined &&
4104
- input.DestinationField !== null && { DestinationField: input.DestinationField }),
4105
- ...(input.SourceFields !== undefined &&
4106
- input.SourceFields !== null && { SourceFields: serializeAws_restJson1SourceFields(input.SourceFields, context) }),
4107
- ...(input.TaskProperties !== undefined &&
4108
- input.TaskProperties !== null && {
4050
+ ...(input.DestinationField != null && { DestinationField: input.DestinationField }),
4051
+ ...(input.SourceFields != null && {
4052
+ SourceFields: serializeAws_restJson1SourceFields(input.SourceFields, context),
4053
+ }),
4054
+ ...(input.TaskProperties != null && {
4109
4055
  TaskProperties: serializeAws_restJson1TaskPropertiesMap(input.TaskProperties, context),
4110
4056
  }),
4111
- ...(input.TaskType !== undefined && input.TaskType !== null && { TaskType: input.TaskType }),
4057
+ ...(input.TaskType != null && { TaskType: input.TaskType }),
4112
4058
  };
4113
4059
  };
4114
4060
  const serializeAws_restJson1TaskPropertiesMap = (input, context) => {
@@ -4134,33 +4080,31 @@ const serializeAws_restJson1Tasks = (input, context) => {
4134
4080
  };
4135
4081
  const serializeAws_restJson1TriggerConfig = (input, context) => {
4136
4082
  return {
4137
- ...(input.TriggerProperties !== undefined &&
4138
- input.TriggerProperties !== null && {
4083
+ ...(input.TriggerProperties != null && {
4139
4084
  TriggerProperties: serializeAws_restJson1TriggerProperties(input.TriggerProperties, context),
4140
4085
  }),
4141
- ...(input.TriggerType !== undefined && input.TriggerType !== null && { TriggerType: input.TriggerType }),
4086
+ ...(input.TriggerType != null && { TriggerType: input.TriggerType }),
4142
4087
  };
4143
4088
  };
4144
4089
  const serializeAws_restJson1TriggerProperties = (input, context) => {
4145
4090
  return {
4146
- ...(input.Scheduled !== undefined &&
4147
- input.Scheduled !== null && {
4091
+ ...(input.Scheduled != null && {
4148
4092
  Scheduled: serializeAws_restJson1ScheduledTriggerProperties(input.Scheduled, context),
4149
4093
  }),
4150
4094
  };
4151
4095
  };
4152
4096
  const serializeAws_restJson1UpdateAddress = (input, context) => {
4153
4097
  return {
4154
- ...(input.Address1 !== undefined && input.Address1 !== null && { Address1: input.Address1 }),
4155
- ...(input.Address2 !== undefined && input.Address2 !== null && { Address2: input.Address2 }),
4156
- ...(input.Address3 !== undefined && input.Address3 !== null && { Address3: input.Address3 }),
4157
- ...(input.Address4 !== undefined && input.Address4 !== null && { Address4: input.Address4 }),
4158
- ...(input.City !== undefined && input.City !== null && { City: input.City }),
4159
- ...(input.Country !== undefined && input.Country !== null && { Country: input.Country }),
4160
- ...(input.County !== undefined && input.County !== null && { County: input.County }),
4161
- ...(input.PostalCode !== undefined && input.PostalCode !== null && { PostalCode: input.PostalCode }),
4162
- ...(input.Province !== undefined && input.Province !== null && { Province: input.Province }),
4163
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
4098
+ ...(input.Address1 != null && { Address1: input.Address1 }),
4099
+ ...(input.Address2 != null && { Address2: input.Address2 }),
4100
+ ...(input.Address3 != null && { Address3: input.Address3 }),
4101
+ ...(input.Address4 != null && { Address4: input.Address4 }),
4102
+ ...(input.City != null && { City: input.City }),
4103
+ ...(input.Country != null && { Country: input.Country }),
4104
+ ...(input.County != null && { County: input.County }),
4105
+ ...(input.PostalCode != null && { PostalCode: input.PostalCode }),
4106
+ ...(input.Province != null && { Province: input.Province }),
4107
+ ...(input.State != null && { State: input.State }),
4164
4108
  };
4165
4109
  };
4166
4110
  const serializeAws_restJson1UpdateAttributes = (input, context) => {
@@ -4176,7 +4120,7 @@ const serializeAws_restJson1UpdateAttributes = (input, context) => {
4176
4120
  };
4177
4121
  const serializeAws_restJson1ZendeskSourceProperties = (input, context) => {
4178
4122
  return {
4179
- ...(input.Object !== undefined && input.Object !== null && { Object: input.Object }),
4123
+ ...(input.Object != null && { Object: input.Object }),
4180
4124
  };
4181
4125
  };
4182
4126
  const deserializeAws_restJson1Address = (output, context) => {
@@ -4211,12 +4155,10 @@ const deserializeAws_restJson1AppflowIntegrationWorkflowStep = (output, context)
4211
4155
  return {
4212
4156
  BatchRecordsEndTime: (0, smithy_client_1.expectString)(output.BatchRecordsEndTime),
4213
4157
  BatchRecordsStartTime: (0, smithy_client_1.expectString)(output.BatchRecordsStartTime),
4214
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
4215
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
4216
- : undefined,
4158
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
4217
4159
  ExecutionMessage: (0, smithy_client_1.expectString)(output.ExecutionMessage),
4218
4160
  FlowName: (0, smithy_client_1.expectString)(output.FlowName),
4219
- LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
4161
+ LastUpdatedAt: output.LastUpdatedAt != null
4220
4162
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
4221
4163
  : undefined,
4222
4164
  RecordsProcessed: (0, smithy_client_1.expectLong)(output.RecordsProcessed),
@@ -4236,13 +4178,12 @@ const deserializeAws_restJson1Attributes = (output, context) => {
4236
4178
  };
4237
4179
  const deserializeAws_restJson1AutoMerging = (output, context) => {
4238
4180
  return {
4239
- ConflictResolution: output.ConflictResolution !== undefined && output.ConflictResolution !== null
4181
+ ConflictResolution: output.ConflictResolution != null
4240
4182
  ? deserializeAws_restJson1ConflictResolution(output.ConflictResolution, context)
4241
4183
  : undefined,
4242
- Consolidation: output.Consolidation !== undefined && output.Consolidation !== null
4243
- ? deserializeAws_restJson1Consolidation(output.Consolidation, context)
4244
- : undefined,
4184
+ Consolidation: output.Consolidation != null ? deserializeAws_restJson1Consolidation(output.Consolidation, context) : undefined,
4245
4185
  Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4186
+ MinAllowedConfidenceScoreForMerging: (0, smithy_client_1.limitedParseDouble)(output.MinAllowedConfidenceScoreForMerging),
4246
4187
  };
4247
4188
  };
4248
4189
  const deserializeAws_restJson1ConflictResolution = (output, context) => {
@@ -4253,7 +4194,7 @@ const deserializeAws_restJson1ConflictResolution = (output, context) => {
4253
4194
  };
4254
4195
  const deserializeAws_restJson1Consolidation = (output, context) => {
4255
4196
  return {
4256
- MatchingAttributesList: output.MatchingAttributesList !== undefined && output.MatchingAttributesList !== null
4197
+ MatchingAttributesList: output.MatchingAttributesList != null
4257
4198
  ? deserializeAws_restJson1MatchingAttributesList(output.MatchingAttributesList, context)
4258
4199
  : undefined,
4259
4200
  };
@@ -4279,16 +4220,12 @@ const deserializeAws_restJson1DomainStats = (output, context) => {
4279
4220
  };
4280
4221
  const deserializeAws_restJson1ExportingConfig = (output, context) => {
4281
4222
  return {
4282
- S3Exporting: output.S3Exporting !== undefined && output.S3Exporting !== null
4283
- ? deserializeAws_restJson1S3ExportingConfig(output.S3Exporting, context)
4284
- : undefined,
4223
+ S3Exporting: output.S3Exporting != null ? deserializeAws_restJson1S3ExportingConfig(output.S3Exporting, context) : undefined,
4285
4224
  };
4286
4225
  };
4287
4226
  const deserializeAws_restJson1ExportingLocation = (output, context) => {
4288
4227
  return {
4289
- S3Exporting: output.S3Exporting !== undefined && output.S3Exporting !== null
4290
- ? deserializeAws_restJson1S3ExportingLocation(output.S3Exporting, context)
4291
- : undefined,
4228
+ S3Exporting: output.S3Exporting != null ? deserializeAws_restJson1S3ExportingLocation(output.S3Exporting, context) : undefined,
4292
4229
  };
4293
4230
  };
4294
4231
  const deserializeAws_restJson1FieldMap = (output, context) => {
@@ -4316,19 +4253,15 @@ const deserializeAws_restJson1FieldNameList = (output, context) => {
4316
4253
  const deserializeAws_restJson1IdentityResolutionJob = (output, context) => {
4317
4254
  return {
4318
4255
  DomainName: (0, smithy_client_1.expectString)(output.DomainName),
4319
- ExportingLocation: output.ExportingLocation !== undefined && output.ExportingLocation !== null
4256
+ ExportingLocation: output.ExportingLocation != null
4320
4257
  ? deserializeAws_restJson1ExportingLocation(output.ExportingLocation, context)
4321
4258
  : undefined,
4322
- JobEndTime: output.JobEndTime !== undefined && output.JobEndTime !== null
4323
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.JobEndTime)))
4324
- : undefined,
4259
+ JobEndTime: output.JobEndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.JobEndTime))) : undefined,
4325
4260
  JobId: (0, smithy_client_1.expectString)(output.JobId),
4326
- JobStartTime: output.JobStartTime !== undefined && output.JobStartTime !== null
4261
+ JobStartTime: output.JobStartTime != null
4327
4262
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.JobStartTime)))
4328
4263
  : undefined,
4329
- JobStats: output.JobStats !== undefined && output.JobStats !== null
4330
- ? deserializeAws_restJson1JobStats(output.JobStats, context)
4331
- : undefined,
4264
+ JobStats: output.JobStats != null ? deserializeAws_restJson1JobStats(output.JobStats, context) : undefined,
4332
4265
  Message: (0, smithy_client_1.expectString)(output.Message),
4333
4266
  Status: (0, smithy_client_1.expectString)(output.Status),
4334
4267
  };
@@ -4381,34 +4314,26 @@ const deserializeAws_restJson1KeyMap = (output, context) => {
4381
4314
  };
4382
4315
  const deserializeAws_restJson1ListDomainItem = (output, context) => {
4383
4316
  return {
4384
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
4385
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
4386
- : undefined,
4317
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
4387
4318
  DomainName: (0, smithy_client_1.expectString)(output.DomainName),
4388
- LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
4319
+ LastUpdatedAt: output.LastUpdatedAt != null
4389
4320
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
4390
4321
  : undefined,
4391
- Tags: output.Tags !== undefined && output.Tags !== null
4392
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4393
- : undefined,
4322
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4394
4323
  };
4395
4324
  };
4396
4325
  const deserializeAws_restJson1ListIntegrationItem = (output, context) => {
4397
4326
  return {
4398
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
4399
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
4400
- : undefined,
4327
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
4401
4328
  DomainName: (0, smithy_client_1.expectString)(output.DomainName),
4402
- LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
4329
+ LastUpdatedAt: output.LastUpdatedAt != null
4403
4330
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
4404
4331
  : undefined,
4405
4332
  ObjectTypeName: (0, smithy_client_1.expectString)(output.ObjectTypeName),
4406
- ObjectTypeNames: output.ObjectTypeNames !== undefined && output.ObjectTypeNames !== null
4333
+ ObjectTypeNames: output.ObjectTypeNames != null
4407
4334
  ? deserializeAws_restJson1ObjectTypeNames(output.ObjectTypeNames, context)
4408
4335
  : undefined,
4409
- Tags: output.Tags !== undefined && output.Tags !== null
4410
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4411
- : undefined,
4336
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4412
4337
  Uri: (0, smithy_client_1.expectString)(output.Uri),
4413
4338
  WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
4414
4339
  };
@@ -4422,17 +4347,13 @@ const deserializeAws_restJson1ListProfileObjectsItem = (output, context) => {
4422
4347
  };
4423
4348
  const deserializeAws_restJson1ListProfileObjectTypeItem = (output, context) => {
4424
4349
  return {
4425
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
4426
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
4427
- : undefined,
4350
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
4428
4351
  Description: (0, smithy_client_1.expectString)(output.Description),
4429
- LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
4352
+ LastUpdatedAt: output.LastUpdatedAt != null
4430
4353
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
4431
4354
  : undefined,
4432
4355
  ObjectTypeName: (0, smithy_client_1.expectString)(output.ObjectTypeName),
4433
- Tags: output.Tags !== undefined && output.Tags !== null
4434
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4435
- : undefined,
4356
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4436
4357
  };
4437
4358
  };
4438
4359
  const deserializeAws_restJson1ListProfileObjectTypeTemplateItem = (output, context) => {
@@ -4444,10 +4365,8 @@ const deserializeAws_restJson1ListProfileObjectTypeTemplateItem = (output, conte
4444
4365
  };
4445
4366
  const deserializeAws_restJson1ListWorkflowsItem = (output, context) => {
4446
4367
  return {
4447
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
4448
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt)))
4449
- : undefined,
4450
- LastUpdatedAt: output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
4368
+ CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
4369
+ LastUpdatedAt: output.LastUpdatedAt != null
4451
4370
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
4452
4371
  : undefined,
4453
4372
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -4491,25 +4410,19 @@ const deserializeAws_restJson1MatchingAttributesList = (output, context) => {
4491
4410
  };
4492
4411
  const deserializeAws_restJson1MatchingResponse = (output, context) => {
4493
4412
  return {
4494
- AutoMerging: output.AutoMerging !== undefined && output.AutoMerging !== null
4495
- ? deserializeAws_restJson1AutoMerging(output.AutoMerging, context)
4496
- : undefined,
4413
+ AutoMerging: output.AutoMerging != null ? deserializeAws_restJson1AutoMerging(output.AutoMerging, context) : undefined,
4497
4414
  Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4498
- ExportingConfig: output.ExportingConfig !== undefined && output.ExportingConfig !== null
4415
+ ExportingConfig: output.ExportingConfig != null
4499
4416
  ? deserializeAws_restJson1ExportingConfig(output.ExportingConfig, context)
4500
4417
  : undefined,
4501
- JobSchedule: output.JobSchedule !== undefined && output.JobSchedule !== null
4502
- ? deserializeAws_restJson1JobSchedule(output.JobSchedule, context)
4503
- : undefined,
4418
+ JobSchedule: output.JobSchedule != null ? deserializeAws_restJson1JobSchedule(output.JobSchedule, context) : undefined,
4504
4419
  };
4505
4420
  };
4506
4421
  const deserializeAws_restJson1MatchItem = (output, context) => {
4507
4422
  return {
4508
4423
  ConfidenceScore: (0, smithy_client_1.limitedParseDouble)(output.ConfidenceScore),
4509
4424
  MatchId: (0, smithy_client_1.expectString)(output.MatchId),
4510
- ProfileIds: output.ProfileIds !== undefined && output.ProfileIds !== null
4511
- ? deserializeAws_restJson1ProfileIdList(output.ProfileIds, context)
4512
- : undefined,
4425
+ ProfileIds: output.ProfileIds != null ? deserializeAws_restJson1ProfileIdList(output.ProfileIds, context) : undefined,
4513
4426
  };
4514
4427
  };
4515
4428
  const deserializeAws_restJson1ObjectTypeField = (output, context) => {
@@ -4521,10 +4434,8 @@ const deserializeAws_restJson1ObjectTypeField = (output, context) => {
4521
4434
  };
4522
4435
  const deserializeAws_restJson1ObjectTypeKey = (output, context) => {
4523
4436
  return {
4524
- FieldNames: output.FieldNames !== undefined && output.FieldNames !== null
4525
- ? deserializeAws_restJson1FieldNameList(output.FieldNames, context)
4526
- : undefined,
4527
- StandardIdentifiers: output.StandardIdentifiers !== undefined && output.StandardIdentifiers !== null
4437
+ FieldNames: output.FieldNames != null ? deserializeAws_restJson1FieldNameList(output.FieldNames, context) : undefined,
4438
+ StandardIdentifiers: output.StandardIdentifiers != null
4528
4439
  ? deserializeAws_restJson1StandardIdentifierList(output.StandardIdentifiers, context)
4529
4440
  : undefined,
4530
4441
  };
@@ -4555,15 +4466,9 @@ const deserializeAws_restJson1Profile = (output, context) => {
4555
4466
  return {
4556
4467
  AccountNumber: (0, smithy_client_1.expectString)(output.AccountNumber),
4557
4468
  AdditionalInformation: (0, smithy_client_1.expectString)(output.AdditionalInformation),
4558
- Address: output.Address !== undefined && output.Address !== null
4559
- ? deserializeAws_restJson1Address(output.Address, context)
4560
- : undefined,
4561
- Attributes: output.Attributes !== undefined && output.Attributes !== null
4562
- ? deserializeAws_restJson1Attributes(output.Attributes, context)
4563
- : undefined,
4564
- BillingAddress: output.BillingAddress !== undefined && output.BillingAddress !== null
4565
- ? deserializeAws_restJson1Address(output.BillingAddress, context)
4566
- : undefined,
4469
+ Address: output.Address != null ? deserializeAws_restJson1Address(output.Address, context) : undefined,
4470
+ Attributes: output.Attributes != null ? deserializeAws_restJson1Attributes(output.Attributes, context) : undefined,
4471
+ BillingAddress: output.BillingAddress != null ? deserializeAws_restJson1Address(output.BillingAddress, context) : undefined,
4567
4472
  BirthDate: (0, smithy_client_1.expectString)(output.BirthDate),
4568
4473
  BusinessEmailAddress: (0, smithy_client_1.expectString)(output.BusinessEmailAddress),
4569
4474
  BusinessName: (0, smithy_client_1.expectString)(output.BusinessName),
@@ -4573,18 +4478,14 @@ const deserializeAws_restJson1Profile = (output, context) => {
4573
4478
  Gender: (0, smithy_client_1.expectString)(output.Gender),
4574
4479
  HomePhoneNumber: (0, smithy_client_1.expectString)(output.HomePhoneNumber),
4575
4480
  LastName: (0, smithy_client_1.expectString)(output.LastName),
4576
- MailingAddress: output.MailingAddress !== undefined && output.MailingAddress !== null
4577
- ? deserializeAws_restJson1Address(output.MailingAddress, context)
4578
- : undefined,
4481
+ MailingAddress: output.MailingAddress != null ? deserializeAws_restJson1Address(output.MailingAddress, context) : undefined,
4579
4482
  MiddleName: (0, smithy_client_1.expectString)(output.MiddleName),
4580
4483
  MobilePhoneNumber: (0, smithy_client_1.expectString)(output.MobilePhoneNumber),
4581
4484
  PartyType: (0, smithy_client_1.expectString)(output.PartyType),
4582
4485
  PersonalEmailAddress: (0, smithy_client_1.expectString)(output.PersonalEmailAddress),
4583
4486
  PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
4584
4487
  ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
4585
- ShippingAddress: output.ShippingAddress !== undefined && output.ShippingAddress !== null
4586
- ? deserializeAws_restJson1Address(output.ShippingAddress, context)
4587
- : undefined,
4488
+ ShippingAddress: output.ShippingAddress != null ? deserializeAws_restJson1Address(output.ShippingAddress, context) : undefined,
4588
4489
  };
4589
4490
  };
4590
4491
  const deserializeAws_restJson1ProfileIdList = (output, context) => {
@@ -4689,7 +4590,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
4689
4590
  };
4690
4591
  const deserializeAws_restJson1WorkflowAttributes = (output, context) => {
4691
4592
  return {
4692
- AppflowIntegration: output.AppflowIntegration !== undefined && output.AppflowIntegration !== null
4593
+ AppflowIntegration: output.AppflowIntegration != null
4693
4594
  ? deserializeAws_restJson1AppflowIntegrationWorkflowAttributes(output.AppflowIntegration, context)
4694
4595
  : undefined,
4695
4596
  };
@@ -4707,14 +4608,14 @@ const deserializeAws_restJson1WorkflowList = (output, context) => {
4707
4608
  };
4708
4609
  const deserializeAws_restJson1WorkflowMetrics = (output, context) => {
4709
4610
  return {
4710
- AppflowIntegration: output.AppflowIntegration !== undefined && output.AppflowIntegration !== null
4611
+ AppflowIntegration: output.AppflowIntegration != null
4711
4612
  ? deserializeAws_restJson1AppflowIntegrationWorkflowMetrics(output.AppflowIntegration, context)
4712
4613
  : undefined,
4713
4614
  };
4714
4615
  };
4715
4616
  const deserializeAws_restJson1WorkflowStepItem = (output, context) => {
4716
4617
  return {
4717
- AppflowIntegration: output.AppflowIntegration !== undefined && output.AppflowIntegration !== null
4618
+ AppflowIntegration: output.AppflowIntegration != null
4718
4619
  ? deserializeAws_restJson1AppflowIntegrationWorkflowStep(output.AppflowIntegration, context)
4719
4620
  : undefined,
4720
4621
  };
@@ -4779,5 +4680,4 @@ const loadRestJsonErrorCode = (output, data) => {
4779
4680
  if (data["__type"] !== undefined) {
4780
4681
  return sanitizeErrorCode(data["__type"]);
4781
4682
  }
4782
- return "";
4783
4683
  };