@aws-sdk/client-appflow 3.118.1 → 3.128.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.
@@ -13,18 +13,14 @@ const serializeAws_restJson1CreateConnectorProfileCommand = async (input, contex
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/create-connector-profile";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.connectionMode !== undefined &&
17
- input.connectionMode !== null && { connectionMode: input.connectionMode }),
18
- ...(input.connectorLabel !== undefined &&
19
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
20
- ...(input.connectorProfileConfig !== undefined &&
21
- input.connectorProfileConfig !== null && {
16
+ ...(input.connectionMode != null && { connectionMode: input.connectionMode }),
17
+ ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
18
+ ...(input.connectorProfileConfig != null && {
22
19
  connectorProfileConfig: serializeAws_restJson1ConnectorProfileConfig(input.connectorProfileConfig, context),
23
20
  }),
24
- ...(input.connectorProfileName !== undefined &&
25
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
26
- ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
27
- ...(input.kmsArn !== undefined && input.kmsArn !== null && { kmsArn: input.kmsArn }),
21
+ ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
22
+ ...(input.connectorType != null && { connectorType: input.connectorType }),
23
+ ...(input.kmsArn != null && { kmsArn: input.kmsArn }),
28
24
  });
29
25
  return new protocol_http_1.HttpRequest({
30
26
  protocol,
@@ -45,22 +41,18 @@ const serializeAws_restJson1CreateFlowCommand = async (input, context) => {
45
41
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/create-flow";
46
42
  let body;
47
43
  body = JSON.stringify({
48
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
49
- ...(input.destinationFlowConfigList !== undefined &&
50
- input.destinationFlowConfigList !== null && {
44
+ ...(input.description != null && { description: input.description }),
45
+ ...(input.destinationFlowConfigList != null && {
51
46
  destinationFlowConfigList: serializeAws_restJson1DestinationFlowConfigList(input.destinationFlowConfigList, context),
52
47
  }),
53
- ...(input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName }),
54
- ...(input.kmsArn !== undefined && input.kmsArn !== null && { kmsArn: input.kmsArn }),
55
- ...(input.sourceFlowConfig !== undefined &&
56
- input.sourceFlowConfig !== null && {
48
+ ...(input.flowName != null && { flowName: input.flowName }),
49
+ ...(input.kmsArn != null && { kmsArn: input.kmsArn }),
50
+ ...(input.sourceFlowConfig != null && {
57
51
  sourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.sourceFlowConfig, context),
58
52
  }),
59
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
60
- ...(input.tasks !== undefined &&
61
- input.tasks !== null && { tasks: serializeAws_restJson1Tasks(input.tasks, context) }),
62
- ...(input.triggerConfig !== undefined &&
63
- input.triggerConfig !== null && {
53
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
54
+ ...(input.tasks != null && { tasks: serializeAws_restJson1Tasks(input.tasks, context) }),
55
+ ...(input.triggerConfig != null && {
64
56
  triggerConfig: serializeAws_restJson1TriggerConfig(input.triggerConfig, context),
65
57
  }),
66
58
  });
@@ -83,9 +75,8 @@ const serializeAws_restJson1DeleteConnectorProfileCommand = async (input, contex
83
75
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delete-connector-profile";
84
76
  let body;
85
77
  body = JSON.stringify({
86
- ...(input.connectorProfileName !== undefined &&
87
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
88
- ...(input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete }),
78
+ ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
79
+ ...(input.forceDelete != null && { forceDelete: input.forceDelete }),
89
80
  });
90
81
  return new protocol_http_1.HttpRequest({
91
82
  protocol,
@@ -106,8 +97,8 @@ const serializeAws_restJson1DeleteFlowCommand = async (input, context) => {
106
97
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/delete-flow";
107
98
  let body;
108
99
  body = JSON.stringify({
109
- ...(input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName }),
110
- ...(input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete }),
100
+ ...(input.flowName != null && { flowName: input.flowName }),
101
+ ...(input.forceDelete != null && { forceDelete: input.forceDelete }),
111
102
  });
112
103
  return new protocol_http_1.HttpRequest({
113
104
  protocol,
@@ -128,9 +119,8 @@ const serializeAws_restJson1DescribeConnectorCommand = async (input, context) =>
128
119
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector";
129
120
  let body;
130
121
  body = JSON.stringify({
131
- ...(input.connectorLabel !== undefined &&
132
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
133
- ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
122
+ ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
123
+ ...(input.connectorType != null && { connectorType: input.connectorType }),
134
124
  });
135
125
  return new protocol_http_1.HttpRequest({
136
126
  protocol,
@@ -151,12 +141,10 @@ const serializeAws_restJson1DescribeConnectorEntityCommand = async (input, conte
151
141
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-entity";
152
142
  let body;
153
143
  body = JSON.stringify({
154
- ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
155
- ...(input.connectorEntityName !== undefined &&
156
- input.connectorEntityName !== null && { connectorEntityName: input.connectorEntityName }),
157
- ...(input.connectorProfileName !== undefined &&
158
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
159
- ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
144
+ ...(input.apiVersion != null && { apiVersion: input.apiVersion }),
145
+ ...(input.connectorEntityName != null && { connectorEntityName: input.connectorEntityName }),
146
+ ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
147
+ ...(input.connectorType != null && { connectorType: input.connectorType }),
160
148
  });
161
149
  return new protocol_http_1.HttpRequest({
162
150
  protocol,
@@ -177,15 +165,13 @@ const serializeAws_restJson1DescribeConnectorProfilesCommand = async (input, con
177
165
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-profiles";
178
166
  let body;
179
167
  body = JSON.stringify({
180
- ...(input.connectorLabel !== undefined &&
181
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
182
- ...(input.connectorProfileNames !== undefined &&
183
- input.connectorProfileNames !== null && {
168
+ ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
169
+ ...(input.connectorProfileNames != null && {
184
170
  connectorProfileNames: serializeAws_restJson1ConnectorProfileNameList(input.connectorProfileNames, context),
185
171
  }),
186
- ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
187
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
188
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
172
+ ...(input.connectorType != null && { connectorType: input.connectorType }),
173
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
174
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
189
175
  });
190
176
  return new protocol_http_1.HttpRequest({
191
177
  protocol,
@@ -206,12 +192,11 @@ const serializeAws_restJson1DescribeConnectorsCommand = async (input, context) =
206
192
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connectors";
207
193
  let body;
208
194
  body = JSON.stringify({
209
- ...(input.connectorTypes !== undefined &&
210
- input.connectorTypes !== null && {
195
+ ...(input.connectorTypes != null && {
211
196
  connectorTypes: serializeAws_restJson1ConnectorTypeList(input.connectorTypes, context),
212
197
  }),
213
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
214
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
198
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
199
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
215
200
  });
216
201
  return new protocol_http_1.HttpRequest({
217
202
  protocol,
@@ -232,7 +217,7 @@ const serializeAws_restJson1DescribeFlowCommand = async (input, context) => {
232
217
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describe-flow";
233
218
  let body;
234
219
  body = JSON.stringify({
235
- ...(input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName }),
220
+ ...(input.flowName != null && { flowName: input.flowName }),
236
221
  });
237
222
  return new protocol_http_1.HttpRequest({
238
223
  protocol,
@@ -253,9 +238,9 @@ const serializeAws_restJson1DescribeFlowExecutionRecordsCommand = async (input,
253
238
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describe-flow-execution-records";
254
239
  let body;
255
240
  body = JSON.stringify({
256
- ...(input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName }),
257
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
258
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
241
+ ...(input.flowName != null && { flowName: input.flowName }),
242
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
243
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
259
244
  });
260
245
  return new protocol_http_1.HttpRequest({
261
246
  protocol,
@@ -276,11 +261,10 @@ const serializeAws_restJson1ListConnectorEntitiesCommand = async (input, context
276
261
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-connector-entities";
277
262
  let body;
278
263
  body = JSON.stringify({
279
- ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
280
- ...(input.connectorProfileName !== undefined &&
281
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
282
- ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
283
- ...(input.entitiesPath !== undefined && input.entitiesPath !== null && { entitiesPath: input.entitiesPath }),
264
+ ...(input.apiVersion != null && { apiVersion: input.apiVersion }),
265
+ ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
266
+ ...(input.connectorType != null && { connectorType: input.connectorType }),
267
+ ...(input.entitiesPath != null && { entitiesPath: input.entitiesPath }),
284
268
  });
285
269
  return new protocol_http_1.HttpRequest({
286
270
  protocol,
@@ -301,8 +285,8 @@ const serializeAws_restJson1ListConnectorsCommand = async (input, context) => {
301
285
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-connectors";
302
286
  let body;
303
287
  body = JSON.stringify({
304
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
305
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
288
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
289
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
306
290
  });
307
291
  return new protocol_http_1.HttpRequest({
308
292
  protocol,
@@ -323,8 +307,8 @@ const serializeAws_restJson1ListFlowsCommand = async (input, context) => {
323
307
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/list-flows";
324
308
  let body;
325
309
  body = JSON.stringify({
326
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
327
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
310
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
311
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
328
312
  });
329
313
  return new protocol_http_1.HttpRequest({
330
314
  protocol,
@@ -371,15 +355,12 @@ const serializeAws_restJson1RegisterConnectorCommand = async (input, context) =>
371
355
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/register-connector";
372
356
  let body;
373
357
  body = JSON.stringify({
374
- ...(input.connectorLabel !== undefined &&
375
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
376
- ...(input.connectorProvisioningConfig !== undefined &&
377
- input.connectorProvisioningConfig !== null && {
358
+ ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
359
+ ...(input.connectorProvisioningConfig != null && {
378
360
  connectorProvisioningConfig: serializeAws_restJson1ConnectorProvisioningConfig(input.connectorProvisioningConfig, context),
379
361
  }),
380
- ...(input.connectorProvisioningType !== undefined &&
381
- input.connectorProvisioningType !== null && { connectorProvisioningType: input.connectorProvisioningType }),
382
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
362
+ ...(input.connectorProvisioningType != null && { connectorProvisioningType: input.connectorProvisioningType }),
363
+ ...(input.description != null && { description: input.description }),
383
364
  });
384
365
  return new protocol_http_1.HttpRequest({
385
366
  protocol,
@@ -400,7 +381,7 @@ const serializeAws_restJson1StartFlowCommand = async (input, context) => {
400
381
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/start-flow";
401
382
  let body;
402
383
  body = JSON.stringify({
403
- ...(input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName }),
384
+ ...(input.flowName != null && { flowName: input.flowName }),
404
385
  });
405
386
  return new protocol_http_1.HttpRequest({
406
387
  protocol,
@@ -421,7 +402,7 @@ const serializeAws_restJson1StopFlowCommand = async (input, context) => {
421
402
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/stop-flow";
422
403
  let body;
423
404
  body = JSON.stringify({
424
- ...(input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName }),
405
+ ...(input.flowName != null && { flowName: input.flowName }),
425
406
  });
426
407
  return new protocol_http_1.HttpRequest({
427
408
  protocol,
@@ -452,7 +433,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
452
433
  }
453
434
  let body;
454
435
  body = JSON.stringify({
455
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
436
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
456
437
  });
457
438
  return new protocol_http_1.HttpRequest({
458
439
  protocol,
@@ -473,9 +454,8 @@ const serializeAws_restJson1UnregisterConnectorCommand = async (input, context)
473
454
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/unregister-connector";
474
455
  let body;
475
456
  body = JSON.stringify({
476
- ...(input.connectorLabel !== undefined &&
477
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel }),
478
- ...(input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete }),
457
+ ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
458
+ ...(input.forceDelete != null && { forceDelete: input.forceDelete }),
479
459
  });
480
460
  return new protocol_http_1.HttpRequest({
481
461
  protocol,
@@ -526,14 +506,11 @@ const serializeAws_restJson1UpdateConnectorProfileCommand = async (input, contex
526
506
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-profile";
527
507
  let body;
528
508
  body = JSON.stringify({
529
- ...(input.connectionMode !== undefined &&
530
- input.connectionMode !== null && { connectionMode: input.connectionMode }),
531
- ...(input.connectorProfileConfig !== undefined &&
532
- input.connectorProfileConfig !== null && {
509
+ ...(input.connectionMode != null && { connectionMode: input.connectionMode }),
510
+ ...(input.connectorProfileConfig != null && {
533
511
  connectorProfileConfig: serializeAws_restJson1ConnectorProfileConfig(input.connectorProfileConfig, context),
534
512
  }),
535
- ...(input.connectorProfileName !== undefined &&
536
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
513
+ ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
537
514
  });
538
515
  return new protocol_http_1.HttpRequest({
539
516
  protocol,
@@ -554,20 +531,16 @@ const serializeAws_restJson1UpdateFlowCommand = async (input, context) => {
554
531
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/update-flow";
555
532
  let body;
556
533
  body = JSON.stringify({
557
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
558
- ...(input.destinationFlowConfigList !== undefined &&
559
- input.destinationFlowConfigList !== null && {
534
+ ...(input.description != null && { description: input.description }),
535
+ ...(input.destinationFlowConfigList != null && {
560
536
  destinationFlowConfigList: serializeAws_restJson1DestinationFlowConfigList(input.destinationFlowConfigList, context),
561
537
  }),
562
- ...(input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName }),
563
- ...(input.sourceFlowConfig !== undefined &&
564
- input.sourceFlowConfig !== null && {
538
+ ...(input.flowName != null && { flowName: input.flowName }),
539
+ ...(input.sourceFlowConfig != null && {
565
540
  sourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.sourceFlowConfig, context),
566
541
  }),
567
- ...(input.tasks !== undefined &&
568
- input.tasks !== null && { tasks: serializeAws_restJson1Tasks(input.tasks, context) }),
569
- ...(input.triggerConfig !== undefined &&
570
- input.triggerConfig !== null && {
542
+ ...(input.tasks != null && { tasks: serializeAws_restJson1Tasks(input.tasks, context) }),
543
+ ...(input.triggerConfig != null && {
571
544
  triggerConfig: serializeAws_restJson1TriggerConfig(input.triggerConfig, context),
572
545
  }),
573
546
  });
@@ -603,8 +576,7 @@ const deserializeAws_restJson1CreateConnectorProfileCommandError = async (output
603
576
  body: await parseBody(output.body, context),
604
577
  };
605
578
  let response;
606
- let errorCode = "UnknownError";
607
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
579
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
608
580
  switch (errorCode) {
609
581
  case "ConflictException":
610
582
  case "com.amazonaws.appflow#ConflictException":
@@ -623,10 +595,12 @@ const deserializeAws_restJson1CreateConnectorProfileCommandError = async (output
623
595
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
624
596
  default:
625
597
  const parsedBody = parsedOutput.body;
598
+ const $metadata = deserializeMetadata(output);
599
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
626
600
  response = new AppflowServiceException_1.AppflowServiceException({
627
- name: parsedBody.code || parsedBody.Code || errorCode,
601
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
628
602
  $fault: "client",
629
- $metadata: deserializeMetadata(output),
603
+ $metadata,
630
604
  });
631
605
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
632
606
  }
@@ -656,8 +630,7 @@ const deserializeAws_restJson1CreateFlowCommandError = async (output, context) =
656
630
  body: await parseBody(output.body, context),
657
631
  };
658
632
  let response;
659
- let errorCode = "UnknownError";
660
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
633
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
661
634
  switch (errorCode) {
662
635
  case "ConflictException":
663
636
  case "com.amazonaws.appflow#ConflictException":
@@ -682,10 +655,12 @@ const deserializeAws_restJson1CreateFlowCommandError = async (output, context) =
682
655
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
683
656
  default:
684
657
  const parsedBody = parsedOutput.body;
658
+ const $metadata = deserializeMetadata(output);
659
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
685
660
  response = new AppflowServiceException_1.AppflowServiceException({
686
- name: parsedBody.code || parsedBody.Code || errorCode,
661
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
687
662
  $fault: "client",
688
- $metadata: deserializeMetadata(output),
663
+ $metadata,
689
664
  });
690
665
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
691
666
  }
@@ -707,8 +682,7 @@ const deserializeAws_restJson1DeleteConnectorProfileCommandError = async (output
707
682
  body: await parseBody(output.body, context),
708
683
  };
709
684
  let response;
710
- let errorCode = "UnknownError";
711
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
685
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
712
686
  switch (errorCode) {
713
687
  case "ConflictException":
714
688
  case "com.amazonaws.appflow#ConflictException":
@@ -721,10 +695,12 @@ const deserializeAws_restJson1DeleteConnectorProfileCommandError = async (output
721
695
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
722
696
  default:
723
697
  const parsedBody = parsedOutput.body;
698
+ const $metadata = deserializeMetadata(output);
699
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
724
700
  response = new AppflowServiceException_1.AppflowServiceException({
725
- name: parsedBody.code || parsedBody.Code || errorCode,
701
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
726
702
  $fault: "client",
727
- $metadata: deserializeMetadata(output),
703
+ $metadata,
728
704
  });
729
705
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
730
706
  }
@@ -746,8 +722,7 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
746
722
  body: await parseBody(output.body, context),
747
723
  };
748
724
  let response;
749
- let errorCode = "UnknownError";
750
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
725
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
751
726
  switch (errorCode) {
752
727
  case "ConflictException":
753
728
  case "com.amazonaws.appflow#ConflictException":
@@ -760,10 +735,12 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
760
735
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
761
736
  default:
762
737
  const parsedBody = parsedOutput.body;
738
+ const $metadata = deserializeMetadata(output);
739
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
763
740
  response = new AppflowServiceException_1.AppflowServiceException({
764
- name: parsedBody.code || parsedBody.Code || errorCode,
741
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
765
742
  $fault: "client",
766
- $metadata: deserializeMetadata(output),
743
+ $metadata,
767
744
  });
768
745
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
769
746
  }
@@ -789,8 +766,7 @@ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, con
789
766
  body: await parseBody(output.body, context),
790
767
  };
791
768
  let response;
792
- let errorCode = "UnknownError";
793
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
769
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
794
770
  switch (errorCode) {
795
771
  case "InternalServerException":
796
772
  case "com.amazonaws.appflow#InternalServerException":
@@ -803,10 +779,12 @@ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, con
803
779
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
804
780
  default:
805
781
  const parsedBody = parsedOutput.body;
782
+ const $metadata = deserializeMetadata(output);
783
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
806
784
  response = new AppflowServiceException_1.AppflowServiceException({
807
- name: parsedBody.code || parsedBody.Code || errorCode,
785
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
808
786
  $fault: "client",
809
- $metadata: deserializeMetadata(output),
787
+ $metadata,
810
788
  });
811
789
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
812
790
  }
@@ -832,8 +810,7 @@ const deserializeAws_restJson1DescribeConnectorEntityCommandError = async (outpu
832
810
  body: await parseBody(output.body, context),
833
811
  };
834
812
  let response;
835
- let errorCode = "UnknownError";
836
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
813
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
837
814
  switch (errorCode) {
838
815
  case "ConnectorAuthenticationException":
839
816
  case "com.amazonaws.appflow#ConnectorAuthenticationException":
@@ -852,10 +829,12 @@ const deserializeAws_restJson1DescribeConnectorEntityCommandError = async (outpu
852
829
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
853
830
  default:
854
831
  const parsedBody = parsedOutput.body;
832
+ const $metadata = deserializeMetadata(output);
833
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
855
834
  response = new AppflowServiceException_1.AppflowServiceException({
856
- name: parsedBody.code || parsedBody.Code || errorCode,
835
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
857
836
  $fault: "client",
858
- $metadata: deserializeMetadata(output),
837
+ $metadata,
859
838
  });
860
839
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
861
840
  }
@@ -885,8 +864,7 @@ const deserializeAws_restJson1DescribeConnectorProfilesCommandError = async (out
885
864
  body: await parseBody(output.body, context),
886
865
  };
887
866
  let response;
888
- let errorCode = "UnknownError";
889
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
867
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
868
  switch (errorCode) {
891
869
  case "InternalServerException":
892
870
  case "com.amazonaws.appflow#InternalServerException":
@@ -896,10 +874,12 @@ const deserializeAws_restJson1DescribeConnectorProfilesCommandError = async (out
896
874
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
897
875
  default:
898
876
  const parsedBody = parsedOutput.body;
877
+ const $metadata = deserializeMetadata(output);
878
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
899
879
  response = new AppflowServiceException_1.AppflowServiceException({
900
- name: parsedBody.code || parsedBody.Code || errorCode,
880
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
901
881
  $fault: "client",
902
- $metadata: deserializeMetadata(output),
882
+ $metadata,
903
883
  });
904
884
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
905
885
  }
@@ -933,8 +913,7 @@ const deserializeAws_restJson1DescribeConnectorsCommandError = async (output, co
933
913
  body: await parseBody(output.body, context),
934
914
  };
935
915
  let response;
936
- let errorCode = "UnknownError";
937
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
916
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
938
917
  switch (errorCode) {
939
918
  case "InternalServerException":
940
919
  case "com.amazonaws.appflow#InternalServerException":
@@ -944,10 +923,12 @@ const deserializeAws_restJson1DescribeConnectorsCommandError = async (output, co
944
923
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
945
924
  default:
946
925
  const parsedBody = parsedOutput.body;
926
+ const $metadata = deserializeMetadata(output);
927
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
947
928
  response = new AppflowServiceException_1.AppflowServiceException({
948
- name: parsedBody.code || parsedBody.Code || errorCode,
929
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
949
930
  $fault: "client",
950
- $metadata: deserializeMetadata(output),
931
+ $metadata,
951
932
  });
952
933
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
953
934
  }
@@ -1033,8 +1014,7 @@ const deserializeAws_restJson1DescribeFlowCommandError = async (output, context)
1033
1014
  body: await parseBody(output.body, context),
1034
1015
  };
1035
1016
  let response;
1036
- let errorCode = "UnknownError";
1037
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1017
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1038
1018
  switch (errorCode) {
1039
1019
  case "InternalServerException":
1040
1020
  case "com.amazonaws.appflow#InternalServerException":
@@ -1044,10 +1024,12 @@ const deserializeAws_restJson1DescribeFlowCommandError = async (output, context)
1044
1024
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1045
1025
  default:
1046
1026
  const parsedBody = parsedOutput.body;
1027
+ const $metadata = deserializeMetadata(output);
1028
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1047
1029
  response = new AppflowServiceException_1.AppflowServiceException({
1048
- name: parsedBody.code || parsedBody.Code || errorCode,
1030
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1049
1031
  $fault: "client",
1050
- $metadata: deserializeMetadata(output),
1032
+ $metadata,
1051
1033
  });
1052
1034
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1053
1035
  }
@@ -1077,8 +1059,7 @@ const deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = async (
1077
1059
  body: await parseBody(output.body, context),
1078
1060
  };
1079
1061
  let response;
1080
- let errorCode = "UnknownError";
1081
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1062
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1082
1063
  switch (errorCode) {
1083
1064
  case "InternalServerException":
1084
1065
  case "com.amazonaws.appflow#InternalServerException":
@@ -1091,10 +1072,12 @@ const deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = async (
1091
1072
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1092
1073
  default:
1093
1074
  const parsedBody = parsedOutput.body;
1075
+ const $metadata = deserializeMetadata(output);
1076
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1094
1077
  response = new AppflowServiceException_1.AppflowServiceException({
1095
- name: parsedBody.code || parsedBody.Code || errorCode,
1078
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1096
1079
  $fault: "client",
1097
- $metadata: deserializeMetadata(output),
1080
+ $metadata,
1098
1081
  });
1099
1082
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1100
1083
  }
@@ -1120,8 +1103,7 @@ const deserializeAws_restJson1ListConnectorEntitiesCommandError = async (output,
1120
1103
  body: await parseBody(output.body, context),
1121
1104
  };
1122
1105
  let response;
1123
- let errorCode = "UnknownError";
1124
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1106
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1125
1107
  switch (errorCode) {
1126
1108
  case "ConnectorAuthenticationException":
1127
1109
  case "com.amazonaws.appflow#ConnectorAuthenticationException":
@@ -1140,10 +1122,12 @@ const deserializeAws_restJson1ListConnectorEntitiesCommandError = async (output,
1140
1122
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1141
1123
  default:
1142
1124
  const parsedBody = parsedOutput.body;
1125
+ const $metadata = deserializeMetadata(output);
1126
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1143
1127
  response = new AppflowServiceException_1.AppflowServiceException({
1144
- name: parsedBody.code || parsedBody.Code || errorCode,
1128
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1145
1129
  $fault: "client",
1146
- $metadata: deserializeMetadata(output),
1130
+ $metadata,
1147
1131
  });
1148
1132
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1149
1133
  }
@@ -1173,8 +1157,7 @@ const deserializeAws_restJson1ListConnectorsCommandError = async (output, contex
1173
1157
  body: await parseBody(output.body, context),
1174
1158
  };
1175
1159
  let response;
1176
- let errorCode = "UnknownError";
1177
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1160
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1178
1161
  switch (errorCode) {
1179
1162
  case "InternalServerException":
1180
1163
  case "com.amazonaws.appflow#InternalServerException":
@@ -1184,10 +1167,12 @@ const deserializeAws_restJson1ListConnectorsCommandError = async (output, contex
1184
1167
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1185
1168
  default:
1186
1169
  const parsedBody = parsedOutput.body;
1170
+ const $metadata = deserializeMetadata(output);
1171
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1187
1172
  response = new AppflowServiceException_1.AppflowServiceException({
1188
- name: parsedBody.code || parsedBody.Code || errorCode,
1173
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1189
1174
  $fault: "client",
1190
- $metadata: deserializeMetadata(output),
1175
+ $metadata,
1191
1176
  });
1192
1177
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1193
1178
  }
@@ -1217,8 +1202,7 @@ const deserializeAws_restJson1ListFlowsCommandError = async (output, context) =>
1217
1202
  body: await parseBody(output.body, context),
1218
1203
  };
1219
1204
  let response;
1220
- let errorCode = "UnknownError";
1221
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1205
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1222
1206
  switch (errorCode) {
1223
1207
  case "InternalServerException":
1224
1208
  case "com.amazonaws.appflow#InternalServerException":
@@ -1228,10 +1212,12 @@ const deserializeAws_restJson1ListFlowsCommandError = async (output, context) =>
1228
1212
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1229
1213
  default:
1230
1214
  const parsedBody = parsedOutput.body;
1215
+ const $metadata = deserializeMetadata(output);
1216
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1231
1217
  response = new AppflowServiceException_1.AppflowServiceException({
1232
- name: parsedBody.code || parsedBody.Code || errorCode,
1218
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1233
1219
  $fault: "client",
1234
- $metadata: deserializeMetadata(output),
1220
+ $metadata,
1235
1221
  });
1236
1222
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1237
1223
  }
@@ -1257,8 +1243,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1257
1243
  body: await parseBody(output.body, context),
1258
1244
  };
1259
1245
  let response;
1260
- let errorCode = "UnknownError";
1261
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1246
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1262
1247
  switch (errorCode) {
1263
1248
  case "InternalServerException":
1264
1249
  case "com.amazonaws.appflow#InternalServerException":
@@ -1271,10 +1256,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1271
1256
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1272
1257
  default:
1273
1258
  const parsedBody = parsedOutput.body;
1259
+ const $metadata = deserializeMetadata(output);
1260
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1274
1261
  response = new AppflowServiceException_1.AppflowServiceException({
1275
- name: parsedBody.code || parsedBody.Code || errorCode,
1262
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1276
1263
  $fault: "client",
1277
- $metadata: deserializeMetadata(output),
1264
+ $metadata,
1278
1265
  });
1279
1266
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1280
1267
  }
@@ -1300,8 +1287,7 @@ const deserializeAws_restJson1RegisterConnectorCommandError = async (output, con
1300
1287
  body: await parseBody(output.body, context),
1301
1288
  };
1302
1289
  let response;
1303
- let errorCode = "UnknownError";
1304
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1290
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1305
1291
  switch (errorCode) {
1306
1292
  case "AccessDeniedException":
1307
1293
  case "com.amazonaws.appflow#AccessDeniedException":
@@ -1332,10 +1318,12 @@ const deserializeAws_restJson1RegisterConnectorCommandError = async (output, con
1332
1318
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1333
1319
  default:
1334
1320
  const parsedBody = parsedOutput.body;
1321
+ const $metadata = deserializeMetadata(output);
1322
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1335
1323
  response = new AppflowServiceException_1.AppflowServiceException({
1336
- name: parsedBody.code || parsedBody.Code || errorCode,
1324
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1337
1325
  $fault: "client",
1338
- $metadata: deserializeMetadata(output),
1326
+ $metadata,
1339
1327
  });
1340
1328
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1341
1329
  }
@@ -1369,8 +1357,7 @@ const deserializeAws_restJson1StartFlowCommandError = async (output, context) =>
1369
1357
  body: await parseBody(output.body, context),
1370
1358
  };
1371
1359
  let response;
1372
- let errorCode = "UnknownError";
1373
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1360
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1374
1361
  switch (errorCode) {
1375
1362
  case "ConflictException":
1376
1363
  case "com.amazonaws.appflow#ConflictException":
@@ -1386,10 +1373,12 @@ const deserializeAws_restJson1StartFlowCommandError = async (output, context) =>
1386
1373
  throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1387
1374
  default:
1388
1375
  const parsedBody = parsedOutput.body;
1376
+ const $metadata = deserializeMetadata(output);
1377
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1389
1378
  response = new AppflowServiceException_1.AppflowServiceException({
1390
- name: parsedBody.code || parsedBody.Code || errorCode,
1379
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1391
1380
  $fault: "client",
1392
- $metadata: deserializeMetadata(output),
1381
+ $metadata,
1393
1382
  });
1394
1383
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1395
1384
  }
@@ -1419,8 +1408,7 @@ const deserializeAws_restJson1StopFlowCommandError = async (output, context) =>
1419
1408
  body: await parseBody(output.body, context),
1420
1409
  };
1421
1410
  let response;
1422
- let errorCode = "UnknownError";
1423
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1411
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1424
1412
  switch (errorCode) {
1425
1413
  case "ConflictException":
1426
1414
  case "com.amazonaws.appflow#ConflictException":
@@ -1436,10 +1424,12 @@ const deserializeAws_restJson1StopFlowCommandError = async (output, context) =>
1436
1424
  throw await deserializeAws_restJson1UnsupportedOperationExceptionResponse(parsedOutput, context);
1437
1425
  default:
1438
1426
  const parsedBody = parsedOutput.body;
1427
+ const $metadata = deserializeMetadata(output);
1428
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1439
1429
  response = new AppflowServiceException_1.AppflowServiceException({
1440
- name: parsedBody.code || parsedBody.Code || errorCode,
1430
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1441
1431
  $fault: "client",
1442
- $metadata: deserializeMetadata(output),
1432
+ $metadata,
1443
1433
  });
1444
1434
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1445
1435
  }
@@ -1461,8 +1451,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1461
1451
  body: await parseBody(output.body, context),
1462
1452
  };
1463
1453
  let response;
1464
- let errorCode = "UnknownError";
1465
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1454
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1466
1455
  switch (errorCode) {
1467
1456
  case "InternalServerException":
1468
1457
  case "com.amazonaws.appflow#InternalServerException":
@@ -1475,10 +1464,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1475
1464
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1476
1465
  default:
1477
1466
  const parsedBody = parsedOutput.body;
1467
+ const $metadata = deserializeMetadata(output);
1468
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1478
1469
  response = new AppflowServiceException_1.AppflowServiceException({
1479
- name: parsedBody.code || parsedBody.Code || errorCode,
1470
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1480
1471
  $fault: "client",
1481
- $metadata: deserializeMetadata(output),
1472
+ $metadata,
1482
1473
  });
1483
1474
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1484
1475
  }
@@ -1500,8 +1491,7 @@ const deserializeAws_restJson1UnregisterConnectorCommandError = async (output, c
1500
1491
  body: await parseBody(output.body, context),
1501
1492
  };
1502
1493
  let response;
1503
- let errorCode = "UnknownError";
1504
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1494
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1505
1495
  switch (errorCode) {
1506
1496
  case "ConflictException":
1507
1497
  case "com.amazonaws.appflow#ConflictException":
@@ -1514,10 +1504,12 @@ const deserializeAws_restJson1UnregisterConnectorCommandError = async (output, c
1514
1504
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1515
1505
  default:
1516
1506
  const parsedBody = parsedOutput.body;
1507
+ const $metadata = deserializeMetadata(output);
1508
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1517
1509
  response = new AppflowServiceException_1.AppflowServiceException({
1518
- name: parsedBody.code || parsedBody.Code || errorCode,
1510
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1519
1511
  $fault: "client",
1520
- $metadata: deserializeMetadata(output),
1512
+ $metadata,
1521
1513
  });
1522
1514
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1523
1515
  }
@@ -1539,8 +1531,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1539
1531
  body: await parseBody(output.body, context),
1540
1532
  };
1541
1533
  let response;
1542
- let errorCode = "UnknownError";
1543
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1534
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1544
1535
  switch (errorCode) {
1545
1536
  case "InternalServerException":
1546
1537
  case "com.amazonaws.appflow#InternalServerException":
@@ -1553,10 +1544,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1553
1544
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1554
1545
  default:
1555
1546
  const parsedBody = parsedOutput.body;
1547
+ const $metadata = deserializeMetadata(output);
1548
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1556
1549
  response = new AppflowServiceException_1.AppflowServiceException({
1557
- name: parsedBody.code || parsedBody.Code || errorCode,
1550
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1558
1551
  $fault: "client",
1559
- $metadata: deserializeMetadata(output),
1552
+ $metadata,
1560
1553
  });
1561
1554
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1562
1555
  }
@@ -1582,8 +1575,7 @@ const deserializeAws_restJson1UpdateConnectorProfileCommandError = async (output
1582
1575
  body: await parseBody(output.body, context),
1583
1576
  };
1584
1577
  let response;
1585
- let errorCode = "UnknownError";
1586
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1578
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1587
1579
  switch (errorCode) {
1588
1580
  case "ConflictException":
1589
1581
  case "com.amazonaws.appflow#ConflictException":
@@ -1602,10 +1594,12 @@ const deserializeAws_restJson1UpdateConnectorProfileCommandError = async (output
1602
1594
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1603
1595
  default:
1604
1596
  const parsedBody = parsedOutput.body;
1597
+ const $metadata = deserializeMetadata(output);
1598
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1605
1599
  response = new AppflowServiceException_1.AppflowServiceException({
1606
- name: parsedBody.code || parsedBody.Code || errorCode,
1600
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1607
1601
  $fault: "client",
1608
- $metadata: deserializeMetadata(output),
1602
+ $metadata,
1609
1603
  });
1610
1604
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1611
1605
  }
@@ -1631,8 +1625,7 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
1631
1625
  body: await parseBody(output.body, context),
1632
1626
  };
1633
1627
  let response;
1634
- let errorCode = "UnknownError";
1635
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1628
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1636
1629
  switch (errorCode) {
1637
1630
  case "ConflictException":
1638
1631
  case "com.amazonaws.appflow#ConflictException":
@@ -1657,10 +1650,12 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
1657
1650
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1658
1651
  default:
1659
1652
  const parsedBody = parsedOutput.body;
1653
+ const $metadata = deserializeMetadata(output);
1654
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1660
1655
  response = new AppflowServiceException_1.AppflowServiceException({
1661
- name: parsedBody.code || parsedBody.Code || errorCode,
1656
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1662
1657
  $fault: "client",
1663
- $metadata: deserializeMetadata(output),
1658
+ $metadata,
1664
1659
  });
1665
1660
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1666
1661
  }
@@ -1787,14 +1782,13 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
1787
1782
  };
1788
1783
  const serializeAws_restJson1AggregationConfig = (input, context) => {
1789
1784
  return {
1790
- ...(input.aggregationType !== undefined &&
1791
- input.aggregationType !== null && { aggregationType: input.aggregationType }),
1785
+ ...(input.aggregationType != null && { aggregationType: input.aggregationType }),
1792
1786
  };
1793
1787
  };
1794
1788
  const serializeAws_restJson1AmplitudeConnectorProfileCredentials = (input, context) => {
1795
1789
  return {
1796
- ...(input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey }),
1797
- ...(input.secretKey !== undefined && input.secretKey !== null && { secretKey: input.secretKey }),
1790
+ ...(input.apiKey != null && { apiKey: input.apiKey }),
1791
+ ...(input.secretKey != null && { secretKey: input.secretKey }),
1798
1792
  };
1799
1793
  };
1800
1794
  const serializeAws_restJson1AmplitudeConnectorProfileProperties = (input, context) => {
@@ -1802,129 +1796,107 @@ const serializeAws_restJson1AmplitudeConnectorProfileProperties = (input, contex
1802
1796
  };
1803
1797
  const serializeAws_restJson1AmplitudeSourceProperties = (input, context) => {
1804
1798
  return {
1805
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
1799
+ ...(input.object != null && { object: input.object }),
1806
1800
  };
1807
1801
  };
1808
1802
  const serializeAws_restJson1ApiKeyCredentials = (input, context) => {
1809
1803
  return {
1810
- ...(input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey }),
1811
- ...(input.apiSecretKey !== undefined && input.apiSecretKey !== null && { apiSecretKey: input.apiSecretKey }),
1804
+ ...(input.apiKey != null && { apiKey: input.apiKey }),
1805
+ ...(input.apiSecretKey != null && { apiSecretKey: input.apiSecretKey }),
1812
1806
  };
1813
1807
  };
1814
1808
  const serializeAws_restJson1BasicAuthCredentials = (input, context) => {
1815
1809
  return {
1816
- ...(input.password !== undefined && input.password !== null && { password: input.password }),
1817
- ...(input.username !== undefined && input.username !== null && { username: input.username }),
1810
+ ...(input.password != null && { password: input.password }),
1811
+ ...(input.username != null && { username: input.username }),
1818
1812
  };
1819
1813
  };
1820
1814
  const serializeAws_restJson1ConnectorOAuthRequest = (input, context) => {
1821
1815
  return {
1822
- ...(input.authCode !== undefined && input.authCode !== null && { authCode: input.authCode }),
1823
- ...(input.redirectUri !== undefined && input.redirectUri !== null && { redirectUri: input.redirectUri }),
1816
+ ...(input.authCode != null && { authCode: input.authCode }),
1817
+ ...(input.redirectUri != null && { redirectUri: input.redirectUri }),
1824
1818
  };
1825
1819
  };
1826
1820
  const serializeAws_restJson1ConnectorOperator = (input, context) => {
1827
1821
  return {
1828
- ...(input.Amplitude !== undefined && input.Amplitude !== null && { Amplitude: input.Amplitude }),
1829
- ...(input.CustomConnector !== undefined &&
1830
- input.CustomConnector !== null && { CustomConnector: input.CustomConnector }),
1831
- ...(input.Datadog !== undefined && input.Datadog !== null && { Datadog: input.Datadog }),
1832
- ...(input.Dynatrace !== undefined && input.Dynatrace !== null && { Dynatrace: input.Dynatrace }),
1833
- ...(input.GoogleAnalytics !== undefined &&
1834
- input.GoogleAnalytics !== null && { GoogleAnalytics: input.GoogleAnalytics }),
1835
- ...(input.InforNexus !== undefined && input.InforNexus !== null && { InforNexus: input.InforNexus }),
1836
- ...(input.Marketo !== undefined && input.Marketo !== null && { Marketo: input.Marketo }),
1837
- ...(input.S3 !== undefined && input.S3 !== null && { S3: input.S3 }),
1838
- ...(input.SAPOData !== undefined && input.SAPOData !== null && { SAPOData: input.SAPOData }),
1839
- ...(input.Salesforce !== undefined && input.Salesforce !== null && { Salesforce: input.Salesforce }),
1840
- ...(input.ServiceNow !== undefined && input.ServiceNow !== null && { ServiceNow: input.ServiceNow }),
1841
- ...(input.Singular !== undefined && input.Singular !== null && { Singular: input.Singular }),
1842
- ...(input.Slack !== undefined && input.Slack !== null && { Slack: input.Slack }),
1843
- ...(input.Trendmicro !== undefined && input.Trendmicro !== null && { Trendmicro: input.Trendmicro }),
1844
- ...(input.Veeva !== undefined && input.Veeva !== null && { Veeva: input.Veeva }),
1845
- ...(input.Zendesk !== undefined && input.Zendesk !== null && { Zendesk: input.Zendesk }),
1822
+ ...(input.Amplitude != null && { Amplitude: input.Amplitude }),
1823
+ ...(input.CustomConnector != null && { CustomConnector: input.CustomConnector }),
1824
+ ...(input.Datadog != null && { Datadog: input.Datadog }),
1825
+ ...(input.Dynatrace != null && { Dynatrace: input.Dynatrace }),
1826
+ ...(input.GoogleAnalytics != null && { GoogleAnalytics: input.GoogleAnalytics }),
1827
+ ...(input.InforNexus != null && { InforNexus: input.InforNexus }),
1828
+ ...(input.Marketo != null && { Marketo: input.Marketo }),
1829
+ ...(input.S3 != null && { S3: input.S3 }),
1830
+ ...(input.SAPOData != null && { SAPOData: input.SAPOData }),
1831
+ ...(input.Salesforce != null && { Salesforce: input.Salesforce }),
1832
+ ...(input.ServiceNow != null && { ServiceNow: input.ServiceNow }),
1833
+ ...(input.Singular != null && { Singular: input.Singular }),
1834
+ ...(input.Slack != null && { Slack: input.Slack }),
1835
+ ...(input.Trendmicro != null && { Trendmicro: input.Trendmicro }),
1836
+ ...(input.Veeva != null && { Veeva: input.Veeva }),
1837
+ ...(input.Zendesk != null && { Zendesk: input.Zendesk }),
1846
1838
  };
1847
1839
  };
1848
1840
  const serializeAws_restJson1ConnectorProfileConfig = (input, context) => {
1849
1841
  return {
1850
- ...(input.connectorProfileCredentials !== undefined &&
1851
- input.connectorProfileCredentials !== null && {
1842
+ ...(input.connectorProfileCredentials != null && {
1852
1843
  connectorProfileCredentials: serializeAws_restJson1ConnectorProfileCredentials(input.connectorProfileCredentials, context),
1853
1844
  }),
1854
- ...(input.connectorProfileProperties !== undefined &&
1855
- input.connectorProfileProperties !== null && {
1845
+ ...(input.connectorProfileProperties != null && {
1856
1846
  connectorProfileProperties: serializeAws_restJson1ConnectorProfileProperties(input.connectorProfileProperties, context),
1857
1847
  }),
1858
1848
  };
1859
1849
  };
1860
1850
  const serializeAws_restJson1ConnectorProfileCredentials = (input, context) => {
1861
1851
  return {
1862
- ...(input.Amplitude !== undefined &&
1863
- input.Amplitude !== null && {
1852
+ ...(input.Amplitude != null && {
1864
1853
  Amplitude: serializeAws_restJson1AmplitudeConnectorProfileCredentials(input.Amplitude, context),
1865
1854
  }),
1866
- ...(input.CustomConnector !== undefined &&
1867
- input.CustomConnector !== null && {
1855
+ ...(input.CustomConnector != null && {
1868
1856
  CustomConnector: serializeAws_restJson1CustomConnectorProfileCredentials(input.CustomConnector, context),
1869
1857
  }),
1870
- ...(input.Datadog !== undefined &&
1871
- input.Datadog !== null && {
1858
+ ...(input.Datadog != null && {
1872
1859
  Datadog: serializeAws_restJson1DatadogConnectorProfileCredentials(input.Datadog, context),
1873
1860
  }),
1874
- ...(input.Dynatrace !== undefined &&
1875
- input.Dynatrace !== null && {
1861
+ ...(input.Dynatrace != null && {
1876
1862
  Dynatrace: serializeAws_restJson1DynatraceConnectorProfileCredentials(input.Dynatrace, context),
1877
1863
  }),
1878
- ...(input.GoogleAnalytics !== undefined &&
1879
- input.GoogleAnalytics !== null && {
1864
+ ...(input.GoogleAnalytics != null && {
1880
1865
  GoogleAnalytics: serializeAws_restJson1GoogleAnalyticsConnectorProfileCredentials(input.GoogleAnalytics, context),
1881
1866
  }),
1882
- ...(input.Honeycode !== undefined &&
1883
- input.Honeycode !== null && {
1867
+ ...(input.Honeycode != null && {
1884
1868
  Honeycode: serializeAws_restJson1HoneycodeConnectorProfileCredentials(input.Honeycode, context),
1885
1869
  }),
1886
- ...(input.InforNexus !== undefined &&
1887
- input.InforNexus !== null && {
1870
+ ...(input.InforNexus != null && {
1888
1871
  InforNexus: serializeAws_restJson1InforNexusConnectorProfileCredentials(input.InforNexus, context),
1889
1872
  }),
1890
- ...(input.Marketo !== undefined &&
1891
- input.Marketo !== null && {
1873
+ ...(input.Marketo != null && {
1892
1874
  Marketo: serializeAws_restJson1MarketoConnectorProfileCredentials(input.Marketo, context),
1893
1875
  }),
1894
- ...(input.Redshift !== undefined &&
1895
- input.Redshift !== null && {
1876
+ ...(input.Redshift != null && {
1896
1877
  Redshift: serializeAws_restJson1RedshiftConnectorProfileCredentials(input.Redshift, context),
1897
1878
  }),
1898
- ...(input.SAPOData !== undefined &&
1899
- input.SAPOData !== null && {
1879
+ ...(input.SAPOData != null && {
1900
1880
  SAPOData: serializeAws_restJson1SAPODataConnectorProfileCredentials(input.SAPOData, context),
1901
1881
  }),
1902
- ...(input.Salesforce !== undefined &&
1903
- input.Salesforce !== null && {
1882
+ ...(input.Salesforce != null && {
1904
1883
  Salesforce: serializeAws_restJson1SalesforceConnectorProfileCredentials(input.Salesforce, context),
1905
1884
  }),
1906
- ...(input.ServiceNow !== undefined &&
1907
- input.ServiceNow !== null && {
1885
+ ...(input.ServiceNow != null && {
1908
1886
  ServiceNow: serializeAws_restJson1ServiceNowConnectorProfileCredentials(input.ServiceNow, context),
1909
1887
  }),
1910
- ...(input.Singular !== undefined &&
1911
- input.Singular !== null && {
1888
+ ...(input.Singular != null && {
1912
1889
  Singular: serializeAws_restJson1SingularConnectorProfileCredentials(input.Singular, context),
1913
1890
  }),
1914
- ...(input.Slack !== undefined &&
1915
- input.Slack !== null && { Slack: serializeAws_restJson1SlackConnectorProfileCredentials(input.Slack, context) }),
1916
- ...(input.Snowflake !== undefined &&
1917
- input.Snowflake !== null && {
1891
+ ...(input.Slack != null && { Slack: serializeAws_restJson1SlackConnectorProfileCredentials(input.Slack, context) }),
1892
+ ...(input.Snowflake != null && {
1918
1893
  Snowflake: serializeAws_restJson1SnowflakeConnectorProfileCredentials(input.Snowflake, context),
1919
1894
  }),
1920
- ...(input.Trendmicro !== undefined &&
1921
- input.Trendmicro !== null && {
1895
+ ...(input.Trendmicro != null && {
1922
1896
  Trendmicro: serializeAws_restJson1TrendmicroConnectorProfileCredentials(input.Trendmicro, context),
1923
1897
  }),
1924
- ...(input.Veeva !== undefined &&
1925
- input.Veeva !== null && { Veeva: serializeAws_restJson1VeevaConnectorProfileCredentials(input.Veeva, context) }),
1926
- ...(input.Zendesk !== undefined &&
1927
- input.Zendesk !== null && {
1898
+ ...(input.Veeva != null && { Veeva: serializeAws_restJson1VeevaConnectorProfileCredentials(input.Veeva, context) }),
1899
+ ...(input.Zendesk != null && {
1928
1900
  Zendesk: serializeAws_restJson1ZendeskConnectorProfileCredentials(input.Zendesk, context),
1929
1901
  }),
1930
1902
  };
@@ -1941,80 +1913,61 @@ const serializeAws_restJson1ConnectorProfileNameList = (input, context) => {
1941
1913
  };
1942
1914
  const serializeAws_restJson1ConnectorProfileProperties = (input, context) => {
1943
1915
  return {
1944
- ...(input.Amplitude !== undefined &&
1945
- input.Amplitude !== null && {
1916
+ ...(input.Amplitude != null && {
1946
1917
  Amplitude: serializeAws_restJson1AmplitudeConnectorProfileProperties(input.Amplitude, context),
1947
1918
  }),
1948
- ...(input.CustomConnector !== undefined &&
1949
- input.CustomConnector !== null && {
1919
+ ...(input.CustomConnector != null && {
1950
1920
  CustomConnector: serializeAws_restJson1CustomConnectorProfileProperties(input.CustomConnector, context),
1951
1921
  }),
1952
- ...(input.Datadog !== undefined &&
1953
- input.Datadog !== null && {
1922
+ ...(input.Datadog != null && {
1954
1923
  Datadog: serializeAws_restJson1DatadogConnectorProfileProperties(input.Datadog, context),
1955
1924
  }),
1956
- ...(input.Dynatrace !== undefined &&
1957
- input.Dynatrace !== null && {
1925
+ ...(input.Dynatrace != null && {
1958
1926
  Dynatrace: serializeAws_restJson1DynatraceConnectorProfileProperties(input.Dynatrace, context),
1959
1927
  }),
1960
- ...(input.GoogleAnalytics !== undefined &&
1961
- input.GoogleAnalytics !== null && {
1928
+ ...(input.GoogleAnalytics != null && {
1962
1929
  GoogleAnalytics: serializeAws_restJson1GoogleAnalyticsConnectorProfileProperties(input.GoogleAnalytics, context),
1963
1930
  }),
1964
- ...(input.Honeycode !== undefined &&
1965
- input.Honeycode !== null && {
1931
+ ...(input.Honeycode != null && {
1966
1932
  Honeycode: serializeAws_restJson1HoneycodeConnectorProfileProperties(input.Honeycode, context),
1967
1933
  }),
1968
- ...(input.InforNexus !== undefined &&
1969
- input.InforNexus !== null && {
1934
+ ...(input.InforNexus != null && {
1970
1935
  InforNexus: serializeAws_restJson1InforNexusConnectorProfileProperties(input.InforNexus, context),
1971
1936
  }),
1972
- ...(input.Marketo !== undefined &&
1973
- input.Marketo !== null && {
1937
+ ...(input.Marketo != null && {
1974
1938
  Marketo: serializeAws_restJson1MarketoConnectorProfileProperties(input.Marketo, context),
1975
1939
  }),
1976
- ...(input.Redshift !== undefined &&
1977
- input.Redshift !== null && {
1940
+ ...(input.Redshift != null && {
1978
1941
  Redshift: serializeAws_restJson1RedshiftConnectorProfileProperties(input.Redshift, context),
1979
1942
  }),
1980
- ...(input.SAPOData !== undefined &&
1981
- input.SAPOData !== null && {
1943
+ ...(input.SAPOData != null && {
1982
1944
  SAPOData: serializeAws_restJson1SAPODataConnectorProfileProperties(input.SAPOData, context),
1983
1945
  }),
1984
- ...(input.Salesforce !== undefined &&
1985
- input.Salesforce !== null && {
1946
+ ...(input.Salesforce != null && {
1986
1947
  Salesforce: serializeAws_restJson1SalesforceConnectorProfileProperties(input.Salesforce, context),
1987
1948
  }),
1988
- ...(input.ServiceNow !== undefined &&
1989
- input.ServiceNow !== null && {
1949
+ ...(input.ServiceNow != null && {
1990
1950
  ServiceNow: serializeAws_restJson1ServiceNowConnectorProfileProperties(input.ServiceNow, context),
1991
1951
  }),
1992
- ...(input.Singular !== undefined &&
1993
- input.Singular !== null && {
1952
+ ...(input.Singular != null && {
1994
1953
  Singular: serializeAws_restJson1SingularConnectorProfileProperties(input.Singular, context),
1995
1954
  }),
1996
- ...(input.Slack !== undefined &&
1997
- input.Slack !== null && { Slack: serializeAws_restJson1SlackConnectorProfileProperties(input.Slack, context) }),
1998
- ...(input.Snowflake !== undefined &&
1999
- input.Snowflake !== null && {
1955
+ ...(input.Slack != null && { Slack: serializeAws_restJson1SlackConnectorProfileProperties(input.Slack, context) }),
1956
+ ...(input.Snowflake != null && {
2000
1957
  Snowflake: serializeAws_restJson1SnowflakeConnectorProfileProperties(input.Snowflake, context),
2001
1958
  }),
2002
- ...(input.Trendmicro !== undefined &&
2003
- input.Trendmicro !== null && {
1959
+ ...(input.Trendmicro != null && {
2004
1960
  Trendmicro: serializeAws_restJson1TrendmicroConnectorProfileProperties(input.Trendmicro, context),
2005
1961
  }),
2006
- ...(input.Veeva !== undefined &&
2007
- input.Veeva !== null && { Veeva: serializeAws_restJson1VeevaConnectorProfileProperties(input.Veeva, context) }),
2008
- ...(input.Zendesk !== undefined &&
2009
- input.Zendesk !== null && {
1962
+ ...(input.Veeva != null && { Veeva: serializeAws_restJson1VeevaConnectorProfileProperties(input.Veeva, context) }),
1963
+ ...(input.Zendesk != null && {
2010
1964
  Zendesk: serializeAws_restJson1ZendeskConnectorProfileProperties(input.Zendesk, context),
2011
1965
  }),
2012
1966
  };
2013
1967
  };
2014
1968
  const serializeAws_restJson1ConnectorProvisioningConfig = (input, context) => {
2015
1969
  return {
2016
- ...(input.lambda !== undefined &&
2017
- input.lambda !== null && {
1970
+ ...(input.lambda != null && {
2018
1971
  lambda: serializeAws_restJson1LambdaConnectorProvisioningConfig(input.lambda, context),
2019
1972
  }),
2020
1973
  };
@@ -2042,73 +1995,58 @@ const serializeAws_restJson1CredentialsMap = (input, context) => {
2042
1995
  };
2043
1996
  const serializeAws_restJson1CustomAuthCredentials = (input, context) => {
2044
1997
  return {
2045
- ...(input.credentialsMap !== undefined &&
2046
- input.credentialsMap !== null && {
1998
+ ...(input.credentialsMap != null && {
2047
1999
  credentialsMap: serializeAws_restJson1CredentialsMap(input.credentialsMap, context),
2048
2000
  }),
2049
- ...(input.customAuthenticationType !== undefined &&
2050
- input.customAuthenticationType !== null && { customAuthenticationType: input.customAuthenticationType }),
2001
+ ...(input.customAuthenticationType != null && { customAuthenticationType: input.customAuthenticationType }),
2051
2002
  };
2052
2003
  };
2053
2004
  const serializeAws_restJson1CustomConnectorDestinationProperties = (input, context) => {
2054
2005
  return {
2055
- ...(input.customProperties !== undefined &&
2056
- input.customProperties !== null && {
2006
+ ...(input.customProperties != null && {
2057
2007
  customProperties: serializeAws_restJson1CustomProperties(input.customProperties, context),
2058
2008
  }),
2059
- ...(input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName }),
2060
- ...(input.errorHandlingConfig !== undefined &&
2061
- input.errorHandlingConfig !== null && {
2009
+ ...(input.entityName != null && { entityName: input.entityName }),
2010
+ ...(input.errorHandlingConfig != null && {
2062
2011
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2063
2012
  }),
2064
- ...(input.idFieldNames !== undefined &&
2065
- input.idFieldNames !== null && {
2013
+ ...(input.idFieldNames != null && {
2066
2014
  idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
2067
2015
  }),
2068
- ...(input.writeOperationType !== undefined &&
2069
- input.writeOperationType !== null && { writeOperationType: input.writeOperationType }),
2016
+ ...(input.writeOperationType != null && { writeOperationType: input.writeOperationType }),
2070
2017
  };
2071
2018
  };
2072
2019
  const serializeAws_restJson1CustomConnectorProfileCredentials = (input, context) => {
2073
2020
  return {
2074
- ...(input.apiKey !== undefined &&
2075
- input.apiKey !== null && { apiKey: serializeAws_restJson1ApiKeyCredentials(input.apiKey, context) }),
2076
- ...(input.authenticationType !== undefined &&
2077
- input.authenticationType !== null && { authenticationType: input.authenticationType }),
2078
- ...(input.basic !== undefined &&
2079
- input.basic !== null && { basic: serializeAws_restJson1BasicAuthCredentials(input.basic, context) }),
2080
- ...(input.custom !== undefined &&
2081
- input.custom !== null && { custom: serializeAws_restJson1CustomAuthCredentials(input.custom, context) }),
2082
- ...(input.oauth2 !== undefined &&
2083
- input.oauth2 !== null && { oauth2: serializeAws_restJson1OAuth2Credentials(input.oauth2, context) }),
2021
+ ...(input.apiKey != null && { apiKey: serializeAws_restJson1ApiKeyCredentials(input.apiKey, context) }),
2022
+ ...(input.authenticationType != null && { authenticationType: input.authenticationType }),
2023
+ ...(input.basic != null && { basic: serializeAws_restJson1BasicAuthCredentials(input.basic, context) }),
2024
+ ...(input.custom != null && { custom: serializeAws_restJson1CustomAuthCredentials(input.custom, context) }),
2025
+ ...(input.oauth2 != null && { oauth2: serializeAws_restJson1OAuth2Credentials(input.oauth2, context) }),
2084
2026
  };
2085
2027
  };
2086
2028
  const serializeAws_restJson1CustomConnectorProfileProperties = (input, context) => {
2087
2029
  return {
2088
- ...(input.oAuth2Properties !== undefined &&
2089
- input.oAuth2Properties !== null && {
2030
+ ...(input.oAuth2Properties != null && {
2090
2031
  oAuth2Properties: serializeAws_restJson1OAuth2Properties(input.oAuth2Properties, context),
2091
2032
  }),
2092
- ...(input.profileProperties !== undefined &&
2093
- input.profileProperties !== null && {
2033
+ ...(input.profileProperties != null && {
2094
2034
  profileProperties: serializeAws_restJson1ProfilePropertiesMap(input.profileProperties, context),
2095
2035
  }),
2096
2036
  };
2097
2037
  };
2098
2038
  const serializeAws_restJson1CustomConnectorSourceProperties = (input, context) => {
2099
2039
  return {
2100
- ...(input.customProperties !== undefined &&
2101
- input.customProperties !== null && {
2040
+ ...(input.customProperties != null && {
2102
2041
  customProperties: serializeAws_restJson1CustomProperties(input.customProperties, context),
2103
2042
  }),
2104
- ...(input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName }),
2043
+ ...(input.entityName != null && { entityName: input.entityName }),
2105
2044
  };
2106
2045
  };
2107
2046
  const serializeAws_restJson1CustomerProfilesDestinationProperties = (input, context) => {
2108
2047
  return {
2109
- ...(input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName }),
2110
- ...(input.objectTypeName !== undefined &&
2111
- input.objectTypeName !== null && { objectTypeName: input.objectTypeName }),
2048
+ ...(input.domainName != null && { domainName: input.domainName }),
2049
+ ...(input.objectTypeName != null && { objectTypeName: input.objectTypeName }),
2112
2050
  };
2113
2051
  };
2114
2052
  const serializeAws_restJson1CustomProperties = (input, context) => {
@@ -2124,83 +2062,67 @@ const serializeAws_restJson1CustomProperties = (input, context) => {
2124
2062
  };
2125
2063
  const serializeAws_restJson1DatadogConnectorProfileCredentials = (input, context) => {
2126
2064
  return {
2127
- ...(input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey }),
2128
- ...(input.applicationKey !== undefined &&
2129
- input.applicationKey !== null && { applicationKey: input.applicationKey }),
2065
+ ...(input.apiKey != null && { apiKey: input.apiKey }),
2066
+ ...(input.applicationKey != null && { applicationKey: input.applicationKey }),
2130
2067
  };
2131
2068
  };
2132
2069
  const serializeAws_restJson1DatadogConnectorProfileProperties = (input, context) => {
2133
2070
  return {
2134
- ...(input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }),
2071
+ ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2135
2072
  };
2136
2073
  };
2137
2074
  const serializeAws_restJson1DatadogSourceProperties = (input, context) => {
2138
2075
  return {
2139
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2076
+ ...(input.object != null && { object: input.object }),
2140
2077
  };
2141
2078
  };
2142
2079
  const serializeAws_restJson1DestinationConnectorProperties = (input, context) => {
2143
2080
  return {
2144
- ...(input.CustomConnector !== undefined &&
2145
- input.CustomConnector !== null && {
2081
+ ...(input.CustomConnector != null && {
2146
2082
  CustomConnector: serializeAws_restJson1CustomConnectorDestinationProperties(input.CustomConnector, context),
2147
2083
  }),
2148
- ...(input.CustomerProfiles !== undefined &&
2149
- input.CustomerProfiles !== null && {
2084
+ ...(input.CustomerProfiles != null && {
2150
2085
  CustomerProfiles: serializeAws_restJson1CustomerProfilesDestinationProperties(input.CustomerProfiles, context),
2151
2086
  }),
2152
- ...(input.EventBridge !== undefined &&
2153
- input.EventBridge !== null && {
2087
+ ...(input.EventBridge != null && {
2154
2088
  EventBridge: serializeAws_restJson1EventBridgeDestinationProperties(input.EventBridge, context),
2155
2089
  }),
2156
- ...(input.Honeycode !== undefined &&
2157
- input.Honeycode !== null && {
2090
+ ...(input.Honeycode != null && {
2158
2091
  Honeycode: serializeAws_restJson1HoneycodeDestinationProperties(input.Honeycode, context),
2159
2092
  }),
2160
- ...(input.LookoutMetrics !== undefined &&
2161
- input.LookoutMetrics !== null && {
2093
+ ...(input.LookoutMetrics != null && {
2162
2094
  LookoutMetrics: serializeAws_restJson1LookoutMetricsDestinationProperties(input.LookoutMetrics, context),
2163
2095
  }),
2164
- ...(input.Marketo !== undefined &&
2165
- input.Marketo !== null && {
2096
+ ...(input.Marketo != null && {
2166
2097
  Marketo: serializeAws_restJson1MarketoDestinationProperties(input.Marketo, context),
2167
2098
  }),
2168
- ...(input.Redshift !== undefined &&
2169
- input.Redshift !== null && {
2099
+ ...(input.Redshift != null && {
2170
2100
  Redshift: serializeAws_restJson1RedshiftDestinationProperties(input.Redshift, context),
2171
2101
  }),
2172
- ...(input.S3 !== undefined &&
2173
- input.S3 !== null && { S3: serializeAws_restJson1S3DestinationProperties(input.S3, context) }),
2174
- ...(input.SAPOData !== undefined &&
2175
- input.SAPOData !== null && {
2102
+ ...(input.S3 != null && { S3: serializeAws_restJson1S3DestinationProperties(input.S3, context) }),
2103
+ ...(input.SAPOData != null && {
2176
2104
  SAPOData: serializeAws_restJson1SAPODataDestinationProperties(input.SAPOData, context),
2177
2105
  }),
2178
- ...(input.Salesforce !== undefined &&
2179
- input.Salesforce !== null && {
2106
+ ...(input.Salesforce != null && {
2180
2107
  Salesforce: serializeAws_restJson1SalesforceDestinationProperties(input.Salesforce, context),
2181
2108
  }),
2182
- ...(input.Snowflake !== undefined &&
2183
- input.Snowflake !== null && {
2109
+ ...(input.Snowflake != null && {
2184
2110
  Snowflake: serializeAws_restJson1SnowflakeDestinationProperties(input.Snowflake, context),
2185
2111
  }),
2186
- ...(input.Upsolver !== undefined &&
2187
- input.Upsolver !== null && {
2112
+ ...(input.Upsolver != null && {
2188
2113
  Upsolver: serializeAws_restJson1UpsolverDestinationProperties(input.Upsolver, context),
2189
2114
  }),
2190
- ...(input.Zendesk !== undefined &&
2191
- input.Zendesk !== null && {
2115
+ ...(input.Zendesk != null && {
2192
2116
  Zendesk: serializeAws_restJson1ZendeskDestinationProperties(input.Zendesk, context),
2193
2117
  }),
2194
2118
  };
2195
2119
  };
2196
2120
  const serializeAws_restJson1DestinationFlowConfig = (input, context) => {
2197
2121
  return {
2198
- ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
2199
- ...(input.connectorProfileName !== undefined &&
2200
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
2201
- ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
2202
- ...(input.destinationConnectorProperties !== undefined &&
2203
- input.destinationConnectorProperties !== null && {
2122
+ ...(input.apiVersion != null && { apiVersion: input.apiVersion }),
2123
+ ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
2124
+ ...(input.connectorType != null && { connectorType: input.connectorType }),
2125
+ ...(input.destinationConnectorProperties != null && {
2204
2126
  destinationConnectorProperties: serializeAws_restJson1DestinationConnectorProperties(input.destinationConnectorProperties, context),
2205
2127
  }),
2206
2128
  };
@@ -2217,46 +2139,45 @@ const serializeAws_restJson1DestinationFlowConfigList = (input, context) => {
2217
2139
  };
2218
2140
  const serializeAws_restJson1DynatraceConnectorProfileCredentials = (input, context) => {
2219
2141
  return {
2220
- ...(input.apiToken !== undefined && input.apiToken !== null && { apiToken: input.apiToken }),
2142
+ ...(input.apiToken != null && { apiToken: input.apiToken }),
2221
2143
  };
2222
2144
  };
2223
2145
  const serializeAws_restJson1DynatraceConnectorProfileProperties = (input, context) => {
2224
2146
  return {
2225
- ...(input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }),
2147
+ ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2226
2148
  };
2227
2149
  };
2228
2150
  const serializeAws_restJson1DynatraceSourceProperties = (input, context) => {
2229
2151
  return {
2230
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2152
+ ...(input.object != null && { object: input.object }),
2231
2153
  };
2232
2154
  };
2233
2155
  const serializeAws_restJson1ErrorHandlingConfig = (input, context) => {
2234
2156
  return {
2235
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
2236
- ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
2237
- ...(input.failOnFirstDestinationError !== undefined &&
2238
- input.failOnFirstDestinationError !== null && { failOnFirstDestinationError: input.failOnFirstDestinationError }),
2157
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
2158
+ ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2159
+ ...(input.failOnFirstDestinationError != null && {
2160
+ failOnFirstDestinationError: input.failOnFirstDestinationError,
2161
+ }),
2239
2162
  };
2240
2163
  };
2241
2164
  const serializeAws_restJson1EventBridgeDestinationProperties = (input, context) => {
2242
2165
  return {
2243
- ...(input.errorHandlingConfig !== undefined &&
2244
- input.errorHandlingConfig !== null && {
2166
+ ...(input.errorHandlingConfig != null && {
2245
2167
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2246
2168
  }),
2247
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2169
+ ...(input.object != null && { object: input.object }),
2248
2170
  };
2249
2171
  };
2250
2172
  const serializeAws_restJson1GoogleAnalyticsConnectorProfileCredentials = (input, context) => {
2251
2173
  return {
2252
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2253
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
2254
- ...(input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret }),
2255
- ...(input.oAuthRequest !== undefined &&
2256
- input.oAuthRequest !== null && {
2174
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
2175
+ ...(input.clientId != null && { clientId: input.clientId }),
2176
+ ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2177
+ ...(input.oAuthRequest != null && {
2257
2178
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2258
2179
  }),
2259
- ...(input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }),
2180
+ ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2260
2181
  };
2261
2182
  };
2262
2183
  const serializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = (input, context) => {
@@ -2264,17 +2185,16 @@ const serializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = (input,
2264
2185
  };
2265
2186
  const serializeAws_restJson1GoogleAnalyticsSourceProperties = (input, context) => {
2266
2187
  return {
2267
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2188
+ ...(input.object != null && { object: input.object }),
2268
2189
  };
2269
2190
  };
2270
2191
  const serializeAws_restJson1HoneycodeConnectorProfileCredentials = (input, context) => {
2271
2192
  return {
2272
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2273
- ...(input.oAuthRequest !== undefined &&
2274
- input.oAuthRequest !== null && {
2193
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
2194
+ ...(input.oAuthRequest != null && {
2275
2195
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2276
2196
  }),
2277
- ...(input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }),
2197
+ ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2278
2198
  };
2279
2199
  };
2280
2200
  const serializeAws_restJson1HoneycodeConnectorProfileProperties = (input, context) => {
@@ -2282,11 +2202,10 @@ const serializeAws_restJson1HoneycodeConnectorProfileProperties = (input, contex
2282
2202
  };
2283
2203
  const serializeAws_restJson1HoneycodeDestinationProperties = (input, context) => {
2284
2204
  return {
2285
- ...(input.errorHandlingConfig !== undefined &&
2286
- input.errorHandlingConfig !== null && {
2205
+ ...(input.errorHandlingConfig != null && {
2287
2206
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2288
2207
  }),
2289
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2208
+ ...(input.object != null && { object: input.object }),
2290
2209
  };
2291
2210
  };
2292
2211
  const serializeAws_restJson1IdFieldNameList = (input, context) => {
@@ -2301,32 +2220,30 @@ const serializeAws_restJson1IdFieldNameList = (input, context) => {
2301
2220
  };
2302
2221
  const serializeAws_restJson1IncrementalPullConfig = (input, context) => {
2303
2222
  return {
2304
- ...(input.datetimeTypeFieldName !== undefined &&
2305
- input.datetimeTypeFieldName !== null && { datetimeTypeFieldName: input.datetimeTypeFieldName }),
2223
+ ...(input.datetimeTypeFieldName != null && { datetimeTypeFieldName: input.datetimeTypeFieldName }),
2306
2224
  };
2307
2225
  };
2308
2226
  const serializeAws_restJson1InforNexusConnectorProfileCredentials = (input, context) => {
2309
2227
  return {
2310
- ...(input.accessKeyId !== undefined && input.accessKeyId !== null && { accessKeyId: input.accessKeyId }),
2311
- ...(input.datakey !== undefined && input.datakey !== null && { datakey: input.datakey }),
2312
- ...(input.secretAccessKey !== undefined &&
2313
- input.secretAccessKey !== null && { secretAccessKey: input.secretAccessKey }),
2314
- ...(input.userId !== undefined && input.userId !== null && { userId: input.userId }),
2228
+ ...(input.accessKeyId != null && { accessKeyId: input.accessKeyId }),
2229
+ ...(input.datakey != null && { datakey: input.datakey }),
2230
+ ...(input.secretAccessKey != null && { secretAccessKey: input.secretAccessKey }),
2231
+ ...(input.userId != null && { userId: input.userId }),
2315
2232
  };
2316
2233
  };
2317
2234
  const serializeAws_restJson1InforNexusConnectorProfileProperties = (input, context) => {
2318
2235
  return {
2319
- ...(input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }),
2236
+ ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2320
2237
  };
2321
2238
  };
2322
2239
  const serializeAws_restJson1InforNexusSourceProperties = (input, context) => {
2323
2240
  return {
2324
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2241
+ ...(input.object != null && { object: input.object }),
2325
2242
  };
2326
2243
  };
2327
2244
  const serializeAws_restJson1LambdaConnectorProvisioningConfig = (input, context) => {
2328
2245
  return {
2329
- ...(input.lambdaArn !== undefined && input.lambdaArn !== null && { lambdaArn: input.lambdaArn }),
2246
+ ...(input.lambdaArn != null && { lambdaArn: input.lambdaArn }),
2330
2247
  };
2331
2248
  };
2332
2249
  const serializeAws_restJson1LookoutMetricsDestinationProperties = (input, context) => {
@@ -2334,75 +2251,68 @@ const serializeAws_restJson1LookoutMetricsDestinationProperties = (input, contex
2334
2251
  };
2335
2252
  const serializeAws_restJson1MarketoConnectorProfileCredentials = (input, context) => {
2336
2253
  return {
2337
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2338
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
2339
- ...(input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret }),
2340
- ...(input.oAuthRequest !== undefined &&
2341
- input.oAuthRequest !== null && {
2254
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
2255
+ ...(input.clientId != null && { clientId: input.clientId }),
2256
+ ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2257
+ ...(input.oAuthRequest != null && {
2342
2258
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2343
2259
  }),
2344
2260
  };
2345
2261
  };
2346
2262
  const serializeAws_restJson1MarketoConnectorProfileProperties = (input, context) => {
2347
2263
  return {
2348
- ...(input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }),
2264
+ ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2349
2265
  };
2350
2266
  };
2351
2267
  const serializeAws_restJson1MarketoDestinationProperties = (input, context) => {
2352
2268
  return {
2353
- ...(input.errorHandlingConfig !== undefined &&
2354
- input.errorHandlingConfig !== null && {
2269
+ ...(input.errorHandlingConfig != null && {
2355
2270
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2356
2271
  }),
2357
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2272
+ ...(input.object != null && { object: input.object }),
2358
2273
  };
2359
2274
  };
2360
2275
  const serializeAws_restJson1MarketoSourceProperties = (input, context) => {
2361
2276
  return {
2362
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2277
+ ...(input.object != null && { object: input.object }),
2363
2278
  };
2364
2279
  };
2365
2280
  const serializeAws_restJson1OAuth2Credentials = (input, context) => {
2366
2281
  return {
2367
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2368
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
2369
- ...(input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret }),
2370
- ...(input.oAuthRequest !== undefined &&
2371
- input.oAuthRequest !== null && {
2282
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
2283
+ ...(input.clientId != null && { clientId: input.clientId }),
2284
+ ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2285
+ ...(input.oAuthRequest != null && {
2372
2286
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2373
2287
  }),
2374
- ...(input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }),
2288
+ ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2375
2289
  };
2376
2290
  };
2377
2291
  const serializeAws_restJson1OAuth2Properties = (input, context) => {
2378
2292
  return {
2379
- ...(input.oAuth2GrantType !== undefined &&
2380
- input.oAuth2GrantType !== null && { oAuth2GrantType: input.oAuth2GrantType }),
2381
- ...(input.tokenUrl !== undefined && input.tokenUrl !== null && { tokenUrl: input.tokenUrl }),
2382
- ...(input.tokenUrlCustomProperties !== undefined &&
2383
- input.tokenUrlCustomProperties !== null && {
2293
+ ...(input.oAuth2GrantType != null && { oAuth2GrantType: input.oAuth2GrantType }),
2294
+ ...(input.tokenUrl != null && { tokenUrl: input.tokenUrl }),
2295
+ ...(input.tokenUrlCustomProperties != null && {
2384
2296
  tokenUrlCustomProperties: serializeAws_restJson1TokenUrlCustomProperties(input.tokenUrlCustomProperties, context),
2385
2297
  }),
2386
2298
  };
2387
2299
  };
2388
2300
  const serializeAws_restJson1OAuthCredentials = (input, context) => {
2389
2301
  return {
2390
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2391
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
2392
- ...(input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret }),
2393
- ...(input.oAuthRequest !== undefined &&
2394
- input.oAuthRequest !== null && {
2302
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
2303
+ ...(input.clientId != null && { clientId: input.clientId }),
2304
+ ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2305
+ ...(input.oAuthRequest != null && {
2395
2306
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2396
2307
  }),
2397
- ...(input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }),
2308
+ ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2398
2309
  };
2399
2310
  };
2400
2311
  const serializeAws_restJson1OAuthProperties = (input, context) => {
2401
2312
  return {
2402
- ...(input.authCodeUrl !== undefined && input.authCodeUrl !== null && { authCodeUrl: input.authCodeUrl }),
2403
- ...(input.oAuthScopes !== undefined &&
2404
- input.oAuthScopes !== null && { oAuthScopes: serializeAws_restJson1OAuthScopeList(input.oAuthScopes, context) }),
2405
- ...(input.tokenUrl !== undefined && input.tokenUrl !== null && { tokenUrl: input.tokenUrl }),
2313
+ ...(input.authCodeUrl != null && { authCodeUrl: input.authCodeUrl }),
2314
+ ...(input.oAuthScopes != null && { oAuthScopes: serializeAws_restJson1OAuthScopeList(input.oAuthScopes, context) }),
2315
+ ...(input.tokenUrl != null && { tokenUrl: input.tokenUrl }),
2406
2316
  };
2407
2317
  };
2408
2318
  const serializeAws_restJson1OAuthScopeList = (input, context) => {
@@ -2417,8 +2327,8 @@ const serializeAws_restJson1OAuthScopeList = (input, context) => {
2417
2327
  };
2418
2328
  const serializeAws_restJson1PrefixConfig = (input, context) => {
2419
2329
  return {
2420
- ...(input.prefixFormat !== undefined && input.prefixFormat !== null && { prefixFormat: input.prefixFormat }),
2421
- ...(input.prefixType !== undefined && input.prefixType !== null && { prefixType: input.prefixType }),
2330
+ ...(input.prefixFormat != null && { prefixFormat: input.prefixFormat }),
2331
+ ...(input.prefixType != null && { prefixType: input.prefixType }),
2422
2332
  };
2423
2333
  };
2424
2334
  const serializeAws_restJson1ProfilePropertiesMap = (input, context) => {
@@ -2434,206 +2344,176 @@ const serializeAws_restJson1ProfilePropertiesMap = (input, context) => {
2434
2344
  };
2435
2345
  const serializeAws_restJson1RedshiftConnectorProfileCredentials = (input, context) => {
2436
2346
  return {
2437
- ...(input.password !== undefined && input.password !== null && { password: input.password }),
2438
- ...(input.username !== undefined && input.username !== null && { username: input.username }),
2347
+ ...(input.password != null && { password: input.password }),
2348
+ ...(input.username != null && { username: input.username }),
2439
2349
  };
2440
2350
  };
2441
2351
  const serializeAws_restJson1RedshiftConnectorProfileProperties = (input, context) => {
2442
2352
  return {
2443
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
2444
- ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
2445
- ...(input.databaseUrl !== undefined && input.databaseUrl !== null && { databaseUrl: input.databaseUrl }),
2446
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
2353
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
2354
+ ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2355
+ ...(input.databaseUrl != null && { databaseUrl: input.databaseUrl }),
2356
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
2447
2357
  };
2448
2358
  };
2449
2359
  const serializeAws_restJson1RedshiftDestinationProperties = (input, context) => {
2450
2360
  return {
2451
- ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
2452
- ...(input.errorHandlingConfig !== undefined &&
2453
- input.errorHandlingConfig !== null && {
2361
+ ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2362
+ ...(input.errorHandlingConfig != null && {
2454
2363
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2455
2364
  }),
2456
- ...(input.intermediateBucketName !== undefined &&
2457
- input.intermediateBucketName !== null && { intermediateBucketName: input.intermediateBucketName }),
2458
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2365
+ ...(input.intermediateBucketName != null && { intermediateBucketName: input.intermediateBucketName }),
2366
+ ...(input.object != null && { object: input.object }),
2459
2367
  };
2460
2368
  };
2461
2369
  const serializeAws_restJson1S3DestinationProperties = (input, context) => {
2462
2370
  return {
2463
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
2464
- ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
2465
- ...(input.s3OutputFormatConfig !== undefined &&
2466
- input.s3OutputFormatConfig !== null && {
2371
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
2372
+ ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2373
+ ...(input.s3OutputFormatConfig != null && {
2467
2374
  s3OutputFormatConfig: serializeAws_restJson1S3OutputFormatConfig(input.s3OutputFormatConfig, context),
2468
2375
  }),
2469
2376
  };
2470
2377
  };
2471
2378
  const serializeAws_restJson1S3InputFormatConfig = (input, context) => {
2472
2379
  return {
2473
- ...(input.s3InputFileType !== undefined &&
2474
- input.s3InputFileType !== null && { s3InputFileType: input.s3InputFileType }),
2380
+ ...(input.s3InputFileType != null && { s3InputFileType: input.s3InputFileType }),
2475
2381
  };
2476
2382
  };
2477
2383
  const serializeAws_restJson1S3OutputFormatConfig = (input, context) => {
2478
2384
  return {
2479
- ...(input.aggregationConfig !== undefined &&
2480
- input.aggregationConfig !== null && {
2385
+ ...(input.aggregationConfig != null && {
2481
2386
  aggregationConfig: serializeAws_restJson1AggregationConfig(input.aggregationConfig, context),
2482
2387
  }),
2483
- ...(input.fileType !== undefined && input.fileType !== null && { fileType: input.fileType }),
2484
- ...(input.prefixConfig !== undefined &&
2485
- input.prefixConfig !== null && { prefixConfig: serializeAws_restJson1PrefixConfig(input.prefixConfig, context) }),
2486
- ...(input.preserveSourceDataTyping !== undefined &&
2487
- input.preserveSourceDataTyping !== null && { preserveSourceDataTyping: input.preserveSourceDataTyping }),
2388
+ ...(input.fileType != null && { fileType: input.fileType }),
2389
+ ...(input.prefixConfig != null && {
2390
+ prefixConfig: serializeAws_restJson1PrefixConfig(input.prefixConfig, context),
2391
+ }),
2392
+ ...(input.preserveSourceDataTyping != null && { preserveSourceDataTyping: input.preserveSourceDataTyping }),
2488
2393
  };
2489
2394
  };
2490
2395
  const serializeAws_restJson1S3SourceProperties = (input, context) => {
2491
2396
  return {
2492
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
2493
- ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
2494
- ...(input.s3InputFormatConfig !== undefined &&
2495
- input.s3InputFormatConfig !== null && {
2397
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
2398
+ ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2399
+ ...(input.s3InputFormatConfig != null && {
2496
2400
  s3InputFormatConfig: serializeAws_restJson1S3InputFormatConfig(input.s3InputFormatConfig, context),
2497
2401
  }),
2498
2402
  };
2499
2403
  };
2500
2404
  const serializeAws_restJson1SalesforceConnectorProfileCredentials = (input, context) => {
2501
2405
  return {
2502
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2503
- ...(input.clientCredentialsArn !== undefined &&
2504
- input.clientCredentialsArn !== null && { clientCredentialsArn: input.clientCredentialsArn }),
2505
- ...(input.oAuthRequest !== undefined &&
2506
- input.oAuthRequest !== null && {
2406
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
2407
+ ...(input.clientCredentialsArn != null && { clientCredentialsArn: input.clientCredentialsArn }),
2408
+ ...(input.oAuthRequest != null && {
2507
2409
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2508
2410
  }),
2509
- ...(input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }),
2411
+ ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2510
2412
  };
2511
2413
  };
2512
2414
  const serializeAws_restJson1SalesforceConnectorProfileProperties = (input, context) => {
2513
2415
  return {
2514
- ...(input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }),
2515
- ...(input.isSandboxEnvironment !== undefined &&
2516
- input.isSandboxEnvironment !== null && { isSandboxEnvironment: input.isSandboxEnvironment }),
2416
+ ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2417
+ ...(input.isSandboxEnvironment != null && { isSandboxEnvironment: input.isSandboxEnvironment }),
2517
2418
  };
2518
2419
  };
2519
2420
  const serializeAws_restJson1SalesforceDestinationProperties = (input, context) => {
2520
2421
  return {
2521
- ...(input.errorHandlingConfig !== undefined &&
2522
- input.errorHandlingConfig !== null && {
2422
+ ...(input.errorHandlingConfig != null && {
2523
2423
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2524
2424
  }),
2525
- ...(input.idFieldNames !== undefined &&
2526
- input.idFieldNames !== null && {
2425
+ ...(input.idFieldNames != null && {
2527
2426
  idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
2528
2427
  }),
2529
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2530
- ...(input.writeOperationType !== undefined &&
2531
- input.writeOperationType !== null && { writeOperationType: input.writeOperationType }),
2428
+ ...(input.object != null && { object: input.object }),
2429
+ ...(input.writeOperationType != null && { writeOperationType: input.writeOperationType }),
2532
2430
  };
2533
2431
  };
2534
2432
  const serializeAws_restJson1SalesforceSourceProperties = (input, context) => {
2535
2433
  return {
2536
- ...(input.enableDynamicFieldUpdate !== undefined &&
2537
- input.enableDynamicFieldUpdate !== null && { enableDynamicFieldUpdate: input.enableDynamicFieldUpdate }),
2538
- ...(input.includeDeletedRecords !== undefined &&
2539
- input.includeDeletedRecords !== null && { includeDeletedRecords: input.includeDeletedRecords }),
2540
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2434
+ ...(input.enableDynamicFieldUpdate != null && { enableDynamicFieldUpdate: input.enableDynamicFieldUpdate }),
2435
+ ...(input.includeDeletedRecords != null && { includeDeletedRecords: input.includeDeletedRecords }),
2436
+ ...(input.object != null && { object: input.object }),
2541
2437
  };
2542
2438
  };
2543
2439
  const serializeAws_restJson1SAPODataConnectorProfileCredentials = (input, context) => {
2544
2440
  return {
2545
- ...(input.basicAuthCredentials !== undefined &&
2546
- input.basicAuthCredentials !== null && {
2441
+ ...(input.basicAuthCredentials != null && {
2547
2442
  basicAuthCredentials: serializeAws_restJson1BasicAuthCredentials(input.basicAuthCredentials, context),
2548
2443
  }),
2549
- ...(input.oAuthCredentials !== undefined &&
2550
- input.oAuthCredentials !== null && {
2444
+ ...(input.oAuthCredentials != null && {
2551
2445
  oAuthCredentials: serializeAws_restJson1OAuthCredentials(input.oAuthCredentials, context),
2552
2446
  }),
2553
2447
  };
2554
2448
  };
2555
2449
  const serializeAws_restJson1SAPODataConnectorProfileProperties = (input, context) => {
2556
2450
  return {
2557
- ...(input.applicationHostUrl !== undefined &&
2558
- input.applicationHostUrl !== null && { applicationHostUrl: input.applicationHostUrl }),
2559
- ...(input.applicationServicePath !== undefined &&
2560
- input.applicationServicePath !== null && { applicationServicePath: input.applicationServicePath }),
2561
- ...(input.clientNumber !== undefined && input.clientNumber !== null && { clientNumber: input.clientNumber }),
2562
- ...(input.logonLanguage !== undefined && input.logonLanguage !== null && { logonLanguage: input.logonLanguage }),
2563
- ...(input.oAuthProperties !== undefined &&
2564
- input.oAuthProperties !== null && {
2451
+ ...(input.applicationHostUrl != null && { applicationHostUrl: input.applicationHostUrl }),
2452
+ ...(input.applicationServicePath != null && { applicationServicePath: input.applicationServicePath }),
2453
+ ...(input.clientNumber != null && { clientNumber: input.clientNumber }),
2454
+ ...(input.logonLanguage != null && { logonLanguage: input.logonLanguage }),
2455
+ ...(input.oAuthProperties != null && {
2565
2456
  oAuthProperties: serializeAws_restJson1OAuthProperties(input.oAuthProperties, context),
2566
2457
  }),
2567
- ...(input.portNumber !== undefined && input.portNumber !== null && { portNumber: input.portNumber }),
2568
- ...(input.privateLinkServiceName !== undefined &&
2569
- input.privateLinkServiceName !== null && { privateLinkServiceName: input.privateLinkServiceName }),
2458
+ ...(input.portNumber != null && { portNumber: input.portNumber }),
2459
+ ...(input.privateLinkServiceName != null && { privateLinkServiceName: input.privateLinkServiceName }),
2570
2460
  };
2571
2461
  };
2572
2462
  const serializeAws_restJson1SAPODataDestinationProperties = (input, context) => {
2573
2463
  return {
2574
- ...(input.errorHandlingConfig !== undefined &&
2575
- input.errorHandlingConfig !== null && {
2464
+ ...(input.errorHandlingConfig != null && {
2576
2465
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2577
2466
  }),
2578
- ...(input.idFieldNames !== undefined &&
2579
- input.idFieldNames !== null && {
2467
+ ...(input.idFieldNames != null && {
2580
2468
  idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
2581
2469
  }),
2582
- ...(input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath }),
2583
- ...(input.successResponseHandlingConfig !== undefined &&
2584
- input.successResponseHandlingConfig !== null && {
2470
+ ...(input.objectPath != null && { objectPath: input.objectPath }),
2471
+ ...(input.successResponseHandlingConfig != null && {
2585
2472
  successResponseHandlingConfig: serializeAws_restJson1SuccessResponseHandlingConfig(input.successResponseHandlingConfig, context),
2586
2473
  }),
2587
- ...(input.writeOperationType !== undefined &&
2588
- input.writeOperationType !== null && { writeOperationType: input.writeOperationType }),
2474
+ ...(input.writeOperationType != null && { writeOperationType: input.writeOperationType }),
2589
2475
  };
2590
2476
  };
2591
2477
  const serializeAws_restJson1SAPODataSourceProperties = (input, context) => {
2592
2478
  return {
2593
- ...(input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath }),
2479
+ ...(input.objectPath != null && { objectPath: input.objectPath }),
2594
2480
  };
2595
2481
  };
2596
2482
  const serializeAws_restJson1ScheduledTriggerProperties = (input, context) => {
2597
2483
  return {
2598
- ...(input.dataPullMode !== undefined && input.dataPullMode !== null && { dataPullMode: input.dataPullMode }),
2599
- ...(input.firstExecutionFrom !== undefined &&
2600
- input.firstExecutionFrom !== null && {
2484
+ ...(input.dataPullMode != null && { dataPullMode: input.dataPullMode }),
2485
+ ...(input.firstExecutionFrom != null && {
2601
2486
  firstExecutionFrom: Math.round(input.firstExecutionFrom.getTime() / 1000),
2602
2487
  }),
2603
- ...(input.flowErrorDeactivationThreshold !== undefined &&
2604
- input.flowErrorDeactivationThreshold !== null && {
2488
+ ...(input.flowErrorDeactivationThreshold != null && {
2605
2489
  flowErrorDeactivationThreshold: input.flowErrorDeactivationThreshold,
2606
2490
  }),
2607
- ...(input.scheduleEndTime !== undefined &&
2608
- input.scheduleEndTime !== null && { scheduleEndTime: Math.round(input.scheduleEndTime.getTime() / 1000) }),
2609
- ...(input.scheduleExpression !== undefined &&
2610
- input.scheduleExpression !== null && { scheduleExpression: input.scheduleExpression }),
2611
- ...(input.scheduleOffset !== undefined &&
2612
- input.scheduleOffset !== null && { scheduleOffset: input.scheduleOffset }),
2613
- ...(input.scheduleStartTime !== undefined &&
2614
- input.scheduleStartTime !== null && { scheduleStartTime: Math.round(input.scheduleStartTime.getTime() / 1000) }),
2615
- ...(input.timezone !== undefined && input.timezone !== null && { timezone: input.timezone }),
2491
+ ...(input.scheduleEndTime != null && { scheduleEndTime: Math.round(input.scheduleEndTime.getTime() / 1000) }),
2492
+ ...(input.scheduleExpression != null && { scheduleExpression: input.scheduleExpression }),
2493
+ ...(input.scheduleOffset != null && { scheduleOffset: input.scheduleOffset }),
2494
+ ...(input.scheduleStartTime != null && { scheduleStartTime: Math.round(input.scheduleStartTime.getTime() / 1000) }),
2495
+ ...(input.timezone != null && { timezone: input.timezone }),
2616
2496
  };
2617
2497
  };
2618
2498
  const serializeAws_restJson1ServiceNowConnectorProfileCredentials = (input, context) => {
2619
2499
  return {
2620
- ...(input.password !== undefined && input.password !== null && { password: input.password }),
2621
- ...(input.username !== undefined && input.username !== null && { username: input.username }),
2500
+ ...(input.password != null && { password: input.password }),
2501
+ ...(input.username != null && { username: input.username }),
2622
2502
  };
2623
2503
  };
2624
2504
  const serializeAws_restJson1ServiceNowConnectorProfileProperties = (input, context) => {
2625
2505
  return {
2626
- ...(input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }),
2506
+ ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2627
2507
  };
2628
2508
  };
2629
2509
  const serializeAws_restJson1ServiceNowSourceProperties = (input, context) => {
2630
2510
  return {
2631
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2511
+ ...(input.object != null && { object: input.object }),
2632
2512
  };
2633
2513
  };
2634
2514
  const serializeAws_restJson1SingularConnectorProfileCredentials = (input, context) => {
2635
2515
  return {
2636
- ...(input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey }),
2516
+ ...(input.apiKey != null && { apiKey: input.apiKey }),
2637
2517
  };
2638
2518
  };
2639
2519
  const serializeAws_restJson1SingularConnectorProfileProperties = (input, context) => {
@@ -2641,110 +2521,94 @@ const serializeAws_restJson1SingularConnectorProfileProperties = (input, context
2641
2521
  };
2642
2522
  const serializeAws_restJson1SingularSourceProperties = (input, context) => {
2643
2523
  return {
2644
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2524
+ ...(input.object != null && { object: input.object }),
2645
2525
  };
2646
2526
  };
2647
2527
  const serializeAws_restJson1SlackConnectorProfileCredentials = (input, context) => {
2648
2528
  return {
2649
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2650
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
2651
- ...(input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret }),
2652
- ...(input.oAuthRequest !== undefined &&
2653
- input.oAuthRequest !== null && {
2529
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
2530
+ ...(input.clientId != null && { clientId: input.clientId }),
2531
+ ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2532
+ ...(input.oAuthRequest != null && {
2654
2533
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2655
2534
  }),
2656
2535
  };
2657
2536
  };
2658
2537
  const serializeAws_restJson1SlackConnectorProfileProperties = (input, context) => {
2659
2538
  return {
2660
- ...(input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }),
2539
+ ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2661
2540
  };
2662
2541
  };
2663
2542
  const serializeAws_restJson1SlackSourceProperties = (input, context) => {
2664
2543
  return {
2665
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2544
+ ...(input.object != null && { object: input.object }),
2666
2545
  };
2667
2546
  };
2668
2547
  const serializeAws_restJson1SnowflakeConnectorProfileCredentials = (input, context) => {
2669
2548
  return {
2670
- ...(input.password !== undefined && input.password !== null && { password: input.password }),
2671
- ...(input.username !== undefined && input.username !== null && { username: input.username }),
2549
+ ...(input.password != null && { password: input.password }),
2550
+ ...(input.username != null && { username: input.username }),
2672
2551
  };
2673
2552
  };
2674
2553
  const serializeAws_restJson1SnowflakeConnectorProfileProperties = (input, context) => {
2675
2554
  return {
2676
- ...(input.accountName !== undefined && input.accountName !== null && { accountName: input.accountName }),
2677
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
2678
- ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
2679
- ...(input.privateLinkServiceName !== undefined &&
2680
- input.privateLinkServiceName !== null && { privateLinkServiceName: input.privateLinkServiceName }),
2681
- ...(input.region !== undefined && input.region !== null && { region: input.region }),
2682
- ...(input.stage !== undefined && input.stage !== null && { stage: input.stage }),
2683
- ...(input.warehouse !== undefined && input.warehouse !== null && { warehouse: input.warehouse }),
2555
+ ...(input.accountName != null && { accountName: input.accountName }),
2556
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
2557
+ ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2558
+ ...(input.privateLinkServiceName != null && { privateLinkServiceName: input.privateLinkServiceName }),
2559
+ ...(input.region != null && { region: input.region }),
2560
+ ...(input.stage != null && { stage: input.stage }),
2561
+ ...(input.warehouse != null && { warehouse: input.warehouse }),
2684
2562
  };
2685
2563
  };
2686
2564
  const serializeAws_restJson1SnowflakeDestinationProperties = (input, context) => {
2687
2565
  return {
2688
- ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
2689
- ...(input.errorHandlingConfig !== undefined &&
2690
- input.errorHandlingConfig !== null && {
2566
+ ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2567
+ ...(input.errorHandlingConfig != null && {
2691
2568
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2692
2569
  }),
2693
- ...(input.intermediateBucketName !== undefined &&
2694
- input.intermediateBucketName !== null && { intermediateBucketName: input.intermediateBucketName }),
2695
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2570
+ ...(input.intermediateBucketName != null && { intermediateBucketName: input.intermediateBucketName }),
2571
+ ...(input.object != null && { object: input.object }),
2696
2572
  };
2697
2573
  };
2698
2574
  const serializeAws_restJson1SourceConnectorProperties = (input, context) => {
2699
2575
  return {
2700
- ...(input.Amplitude !== undefined &&
2701
- input.Amplitude !== null && {
2576
+ ...(input.Amplitude != null && {
2702
2577
  Amplitude: serializeAws_restJson1AmplitudeSourceProperties(input.Amplitude, context),
2703
2578
  }),
2704
- ...(input.CustomConnector !== undefined &&
2705
- input.CustomConnector !== null && {
2579
+ ...(input.CustomConnector != null && {
2706
2580
  CustomConnector: serializeAws_restJson1CustomConnectorSourceProperties(input.CustomConnector, context),
2707
2581
  }),
2708
- ...(input.Datadog !== undefined &&
2709
- input.Datadog !== null && { Datadog: serializeAws_restJson1DatadogSourceProperties(input.Datadog, context) }),
2710
- ...(input.Dynatrace !== undefined &&
2711
- input.Dynatrace !== null && {
2582
+ ...(input.Datadog != null && { Datadog: serializeAws_restJson1DatadogSourceProperties(input.Datadog, context) }),
2583
+ ...(input.Dynatrace != null && {
2712
2584
  Dynatrace: serializeAws_restJson1DynatraceSourceProperties(input.Dynatrace, context),
2713
2585
  }),
2714
- ...(input.GoogleAnalytics !== undefined &&
2715
- input.GoogleAnalytics !== null && {
2586
+ ...(input.GoogleAnalytics != null && {
2716
2587
  GoogleAnalytics: serializeAws_restJson1GoogleAnalyticsSourceProperties(input.GoogleAnalytics, context),
2717
2588
  }),
2718
- ...(input.InforNexus !== undefined &&
2719
- input.InforNexus !== null && {
2589
+ ...(input.InforNexus != null && {
2720
2590
  InforNexus: serializeAws_restJson1InforNexusSourceProperties(input.InforNexus, context),
2721
2591
  }),
2722
- ...(input.Marketo !== undefined &&
2723
- input.Marketo !== null && { Marketo: serializeAws_restJson1MarketoSourceProperties(input.Marketo, context) }),
2724
- ...(input.S3 !== undefined &&
2725
- input.S3 !== null && { S3: serializeAws_restJson1S3SourceProperties(input.S3, context) }),
2726
- ...(input.SAPOData !== undefined &&
2727
- input.SAPOData !== null && { SAPOData: serializeAws_restJson1SAPODataSourceProperties(input.SAPOData, context) }),
2728
- ...(input.Salesforce !== undefined &&
2729
- input.Salesforce !== null && {
2592
+ ...(input.Marketo != null && { Marketo: serializeAws_restJson1MarketoSourceProperties(input.Marketo, context) }),
2593
+ ...(input.S3 != null && { S3: serializeAws_restJson1S3SourceProperties(input.S3, context) }),
2594
+ ...(input.SAPOData != null && {
2595
+ SAPOData: serializeAws_restJson1SAPODataSourceProperties(input.SAPOData, context),
2596
+ }),
2597
+ ...(input.Salesforce != null && {
2730
2598
  Salesforce: serializeAws_restJson1SalesforceSourceProperties(input.Salesforce, context),
2731
2599
  }),
2732
- ...(input.ServiceNow !== undefined &&
2733
- input.ServiceNow !== null && {
2600
+ ...(input.ServiceNow != null && {
2734
2601
  ServiceNow: serializeAws_restJson1ServiceNowSourceProperties(input.ServiceNow, context),
2735
2602
  }),
2736
- ...(input.Singular !== undefined &&
2737
- input.Singular !== null && { Singular: serializeAws_restJson1SingularSourceProperties(input.Singular, context) }),
2738
- ...(input.Slack !== undefined &&
2739
- input.Slack !== null && { Slack: serializeAws_restJson1SlackSourceProperties(input.Slack, context) }),
2740
- ...(input.Trendmicro !== undefined &&
2741
- input.Trendmicro !== null && {
2603
+ ...(input.Singular != null && {
2604
+ Singular: serializeAws_restJson1SingularSourceProperties(input.Singular, context),
2605
+ }),
2606
+ ...(input.Slack != null && { Slack: serializeAws_restJson1SlackSourceProperties(input.Slack, context) }),
2607
+ ...(input.Trendmicro != null && {
2742
2608
  Trendmicro: serializeAws_restJson1TrendmicroSourceProperties(input.Trendmicro, context),
2743
2609
  }),
2744
- ...(input.Veeva !== undefined &&
2745
- input.Veeva !== null && { Veeva: serializeAws_restJson1VeevaSourceProperties(input.Veeva, context) }),
2746
- ...(input.Zendesk !== undefined &&
2747
- input.Zendesk !== null && { Zendesk: serializeAws_restJson1ZendeskSourceProperties(input.Zendesk, context) }),
2610
+ ...(input.Veeva != null && { Veeva: serializeAws_restJson1VeevaSourceProperties(input.Veeva, context) }),
2611
+ ...(input.Zendesk != null && { Zendesk: serializeAws_restJson1ZendeskSourceProperties(input.Zendesk, context) }),
2748
2612
  };
2749
2613
  };
2750
2614
  const serializeAws_restJson1SourceFields = (input, context) => {
@@ -2759,24 +2623,21 @@ const serializeAws_restJson1SourceFields = (input, context) => {
2759
2623
  };
2760
2624
  const serializeAws_restJson1SourceFlowConfig = (input, context) => {
2761
2625
  return {
2762
- ...(input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion }),
2763
- ...(input.connectorProfileName !== undefined &&
2764
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName }),
2765
- ...(input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType }),
2766
- ...(input.incrementalPullConfig !== undefined &&
2767
- input.incrementalPullConfig !== null && {
2626
+ ...(input.apiVersion != null && { apiVersion: input.apiVersion }),
2627
+ ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
2628
+ ...(input.connectorType != null && { connectorType: input.connectorType }),
2629
+ ...(input.incrementalPullConfig != null && {
2768
2630
  incrementalPullConfig: serializeAws_restJson1IncrementalPullConfig(input.incrementalPullConfig, context),
2769
2631
  }),
2770
- ...(input.sourceConnectorProperties !== undefined &&
2771
- input.sourceConnectorProperties !== null && {
2632
+ ...(input.sourceConnectorProperties != null && {
2772
2633
  sourceConnectorProperties: serializeAws_restJson1SourceConnectorProperties(input.sourceConnectorProperties, context),
2773
2634
  }),
2774
2635
  };
2775
2636
  };
2776
2637
  const serializeAws_restJson1SuccessResponseHandlingConfig = (input, context) => {
2777
2638
  return {
2778
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
2779
- ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
2639
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
2640
+ ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2780
2641
  };
2781
2642
  };
2782
2643
  const serializeAws_restJson1TagMap = (input, context) => {
@@ -2792,19 +2653,17 @@ const serializeAws_restJson1TagMap = (input, context) => {
2792
2653
  };
2793
2654
  const serializeAws_restJson1Task = (input, context) => {
2794
2655
  return {
2795
- ...(input.connectorOperator !== undefined &&
2796
- input.connectorOperator !== null && {
2656
+ ...(input.connectorOperator != null && {
2797
2657
  connectorOperator: serializeAws_restJson1ConnectorOperator(input.connectorOperator, context),
2798
2658
  }),
2799
- ...(input.destinationField !== undefined &&
2800
- input.destinationField !== null && { destinationField: input.destinationField }),
2801
- ...(input.sourceFields !== undefined &&
2802
- input.sourceFields !== null && { sourceFields: serializeAws_restJson1SourceFields(input.sourceFields, context) }),
2803
- ...(input.taskProperties !== undefined &&
2804
- input.taskProperties !== null && {
2659
+ ...(input.destinationField != null && { destinationField: input.destinationField }),
2660
+ ...(input.sourceFields != null && {
2661
+ sourceFields: serializeAws_restJson1SourceFields(input.sourceFields, context),
2662
+ }),
2663
+ ...(input.taskProperties != null && {
2805
2664
  taskProperties: serializeAws_restJson1TaskPropertiesMap(input.taskProperties, context),
2806
2665
  }),
2807
- ...(input.taskType !== undefined && input.taskType !== null && { taskType: input.taskType }),
2666
+ ...(input.taskType != null && { taskType: input.taskType }),
2808
2667
  };
2809
2668
  };
2810
2669
  const serializeAws_restJson1TaskPropertiesMap = (input, context) => {
@@ -2841,7 +2700,7 @@ const serializeAws_restJson1TokenUrlCustomProperties = (input, context) => {
2841
2700
  };
2842
2701
  const serializeAws_restJson1TrendmicroConnectorProfileCredentials = (input, context) => {
2843
2702
  return {
2844
- ...(input.apiSecretKey !== undefined && input.apiSecretKey !== null && { apiSecretKey: input.apiSecretKey }),
2703
+ ...(input.apiSecretKey != null && { apiSecretKey: input.apiSecretKey }),
2845
2704
  };
2846
2705
  };
2847
2706
  const serializeAws_restJson1TrendmicroConnectorProfileProperties = (input, context) => {
@@ -2849,104 +2708,94 @@ const serializeAws_restJson1TrendmicroConnectorProfileProperties = (input, conte
2849
2708
  };
2850
2709
  const serializeAws_restJson1TrendmicroSourceProperties = (input, context) => {
2851
2710
  return {
2852
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2711
+ ...(input.object != null && { object: input.object }),
2853
2712
  };
2854
2713
  };
2855
2714
  const serializeAws_restJson1TriggerConfig = (input, context) => {
2856
2715
  return {
2857
- ...(input.triggerProperties !== undefined &&
2858
- input.triggerProperties !== null && {
2716
+ ...(input.triggerProperties != null && {
2859
2717
  triggerProperties: serializeAws_restJson1TriggerProperties(input.triggerProperties, context),
2860
2718
  }),
2861
- ...(input.triggerType !== undefined && input.triggerType !== null && { triggerType: input.triggerType }),
2719
+ ...(input.triggerType != null && { triggerType: input.triggerType }),
2862
2720
  };
2863
2721
  };
2864
2722
  const serializeAws_restJson1TriggerProperties = (input, context) => {
2865
2723
  return {
2866
- ...(input.Scheduled !== undefined &&
2867
- input.Scheduled !== null && {
2724
+ ...(input.Scheduled != null && {
2868
2725
  Scheduled: serializeAws_restJson1ScheduledTriggerProperties(input.Scheduled, context),
2869
2726
  }),
2870
2727
  };
2871
2728
  };
2872
2729
  const serializeAws_restJson1UpsolverDestinationProperties = (input, context) => {
2873
2730
  return {
2874
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
2875
- ...(input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }),
2876
- ...(input.s3OutputFormatConfig !== undefined &&
2877
- input.s3OutputFormatConfig !== null && {
2731
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
2732
+ ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2733
+ ...(input.s3OutputFormatConfig != null && {
2878
2734
  s3OutputFormatConfig: serializeAws_restJson1UpsolverS3OutputFormatConfig(input.s3OutputFormatConfig, context),
2879
2735
  }),
2880
2736
  };
2881
2737
  };
2882
2738
  const serializeAws_restJson1UpsolverS3OutputFormatConfig = (input, context) => {
2883
2739
  return {
2884
- ...(input.aggregationConfig !== undefined &&
2885
- input.aggregationConfig !== null && {
2740
+ ...(input.aggregationConfig != null && {
2886
2741
  aggregationConfig: serializeAws_restJson1AggregationConfig(input.aggregationConfig, context),
2887
2742
  }),
2888
- ...(input.fileType !== undefined && input.fileType !== null && { fileType: input.fileType }),
2889
- ...(input.prefixConfig !== undefined &&
2890
- input.prefixConfig !== null && { prefixConfig: serializeAws_restJson1PrefixConfig(input.prefixConfig, context) }),
2743
+ ...(input.fileType != null && { fileType: input.fileType }),
2744
+ ...(input.prefixConfig != null && {
2745
+ prefixConfig: serializeAws_restJson1PrefixConfig(input.prefixConfig, context),
2746
+ }),
2891
2747
  };
2892
2748
  };
2893
2749
  const serializeAws_restJson1VeevaConnectorProfileCredentials = (input, context) => {
2894
2750
  return {
2895
- ...(input.password !== undefined && input.password !== null && { password: input.password }),
2896
- ...(input.username !== undefined && input.username !== null && { username: input.username }),
2751
+ ...(input.password != null && { password: input.password }),
2752
+ ...(input.username != null && { username: input.username }),
2897
2753
  };
2898
2754
  };
2899
2755
  const serializeAws_restJson1VeevaConnectorProfileProperties = (input, context) => {
2900
2756
  return {
2901
- ...(input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }),
2757
+ ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2902
2758
  };
2903
2759
  };
2904
2760
  const serializeAws_restJson1VeevaSourceProperties = (input, context) => {
2905
2761
  return {
2906
- ...(input.documentType !== undefined && input.documentType !== null && { documentType: input.documentType }),
2907
- ...(input.includeAllVersions !== undefined &&
2908
- input.includeAllVersions !== null && { includeAllVersions: input.includeAllVersions }),
2909
- ...(input.includeRenditions !== undefined &&
2910
- input.includeRenditions !== null && { includeRenditions: input.includeRenditions }),
2911
- ...(input.includeSourceFiles !== undefined &&
2912
- input.includeSourceFiles !== null && { includeSourceFiles: input.includeSourceFiles }),
2913
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2762
+ ...(input.documentType != null && { documentType: input.documentType }),
2763
+ ...(input.includeAllVersions != null && { includeAllVersions: input.includeAllVersions }),
2764
+ ...(input.includeRenditions != null && { includeRenditions: input.includeRenditions }),
2765
+ ...(input.includeSourceFiles != null && { includeSourceFiles: input.includeSourceFiles }),
2766
+ ...(input.object != null && { object: input.object }),
2914
2767
  };
2915
2768
  };
2916
2769
  const serializeAws_restJson1ZendeskConnectorProfileCredentials = (input, context) => {
2917
2770
  return {
2918
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
2919
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
2920
- ...(input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret }),
2921
- ...(input.oAuthRequest !== undefined &&
2922
- input.oAuthRequest !== null && {
2771
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
2772
+ ...(input.clientId != null && { clientId: input.clientId }),
2773
+ ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2774
+ ...(input.oAuthRequest != null && {
2923
2775
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2924
2776
  }),
2925
2777
  };
2926
2778
  };
2927
2779
  const serializeAws_restJson1ZendeskConnectorProfileProperties = (input, context) => {
2928
2780
  return {
2929
- ...(input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }),
2781
+ ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2930
2782
  };
2931
2783
  };
2932
2784
  const serializeAws_restJson1ZendeskDestinationProperties = (input, context) => {
2933
2785
  return {
2934
- ...(input.errorHandlingConfig !== undefined &&
2935
- input.errorHandlingConfig !== null && {
2786
+ ...(input.errorHandlingConfig != null && {
2936
2787
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2937
2788
  }),
2938
- ...(input.idFieldNames !== undefined &&
2939
- input.idFieldNames !== null && {
2789
+ ...(input.idFieldNames != null && {
2940
2790
  idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
2941
2791
  }),
2942
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2943
- ...(input.writeOperationType !== undefined &&
2944
- input.writeOperationType !== null && { writeOperationType: input.writeOperationType }),
2792
+ ...(input.object != null && { object: input.object }),
2793
+ ...(input.writeOperationType != null && { writeOperationType: input.writeOperationType }),
2945
2794
  };
2946
2795
  };
2947
2796
  const serializeAws_restJson1ZendeskSourceProperties = (input, context) => {
2948
2797
  return {
2949
- ...(input.object !== undefined && input.object !== null && { object: input.object }),
2798
+ ...(input.object != null && { object: input.object }),
2950
2799
  };
2951
2800
  };
2952
2801
  const deserializeAws_restJson1AggregationConfig = (output, context) => {
@@ -2978,21 +2827,21 @@ const deserializeAws_restJson1AuthCodeUrlList = (output, context) => {
2978
2827
  };
2979
2828
  const deserializeAws_restJson1AuthenticationConfig = (output, context) => {
2980
2829
  return {
2981
- customAuthConfigs: output.customAuthConfigs !== undefined && output.customAuthConfigs !== null
2830
+ customAuthConfigs: output.customAuthConfigs != null
2982
2831
  ? deserializeAws_restJson1CustomAuthConfigList(output.customAuthConfigs, context)
2983
2832
  : undefined,
2984
2833
  isApiKeyAuthSupported: (0, smithy_client_1.expectBoolean)(output.isApiKeyAuthSupported),
2985
2834
  isBasicAuthSupported: (0, smithy_client_1.expectBoolean)(output.isBasicAuthSupported),
2986
2835
  isCustomAuthSupported: (0, smithy_client_1.expectBoolean)(output.isCustomAuthSupported),
2987
2836
  isOAuth2Supported: (0, smithy_client_1.expectBoolean)(output.isOAuth2Supported),
2988
- oAuth2Defaults: output.oAuth2Defaults !== undefined && output.oAuth2Defaults !== null
2837
+ oAuth2Defaults: output.oAuth2Defaults != null
2989
2838
  ? deserializeAws_restJson1OAuth2Defaults(output.oAuth2Defaults, context)
2990
2839
  : undefined,
2991
2840
  };
2992
2841
  };
2993
2842
  const deserializeAws_restJson1AuthParameter = (output, context) => {
2994
2843
  return {
2995
- connectorSuppliedValues: output.connectorSuppliedValues !== undefined && output.connectorSuppliedValues !== null
2844
+ connectorSuppliedValues: output.connectorSuppliedValues != null
2996
2845
  ? deserializeAws_restJson1ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
2997
2846
  : undefined,
2998
2847
  description: (0, smithy_client_1.expectString)(output.description),
@@ -3015,7 +2864,7 @@ const deserializeAws_restJson1AuthParameterList = (output, context) => {
3015
2864
  };
3016
2865
  const deserializeAws_restJson1ConnectorConfiguration = (output, context) => {
3017
2866
  return {
3018
- authenticationConfig: output.authenticationConfig !== undefined && output.authenticationConfig !== null
2867
+ authenticationConfig: output.authenticationConfig != null
3019
2868
  ? deserializeAws_restJson1AuthenticationConfig(output.authenticationConfig, context)
3020
2869
  : undefined,
3021
2870
  canUseAsDestination: (0, smithy_client_1.expectBoolean)(output.canUseAsDestination),
@@ -3023,19 +2872,19 @@ const deserializeAws_restJson1ConnectorConfiguration = (output, context) => {
3023
2872
  connectorArn: (0, smithy_client_1.expectString)(output.connectorArn),
3024
2873
  connectorDescription: (0, smithy_client_1.expectString)(output.connectorDescription),
3025
2874
  connectorLabel: (0, smithy_client_1.expectString)(output.connectorLabel),
3026
- connectorMetadata: output.connectorMetadata !== undefined && output.connectorMetadata !== null
2875
+ connectorMetadata: output.connectorMetadata != null
3027
2876
  ? deserializeAws_restJson1ConnectorMetadata(output.connectorMetadata, context)
3028
2877
  : undefined,
3029
- connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
2878
+ connectorModes: output.connectorModes != null
3030
2879
  ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3031
2880
  : undefined,
3032
2881
  connectorName: (0, smithy_client_1.expectString)(output.connectorName),
3033
2882
  connectorOwner: (0, smithy_client_1.expectString)(output.connectorOwner),
3034
- connectorProvisioningConfig: output.connectorProvisioningConfig !== undefined && output.connectorProvisioningConfig !== null
2883
+ connectorProvisioningConfig: output.connectorProvisioningConfig != null
3035
2884
  ? deserializeAws_restJson1ConnectorProvisioningConfig(output.connectorProvisioningConfig, context)
3036
2885
  : undefined,
3037
2886
  connectorProvisioningType: (0, smithy_client_1.expectString)(output.connectorProvisioningType),
3038
- connectorRuntimeSettings: output.connectorRuntimeSettings !== undefined && output.connectorRuntimeSettings !== null
2887
+ connectorRuntimeSettings: output.connectorRuntimeSettings != null
3039
2888
  ? deserializeAws_restJson1ConnectorRuntimeSettingList(output.connectorRuntimeSettings, context)
3040
2889
  : undefined,
3041
2890
  connectorType: (0, smithy_client_1.expectString)(output.connectorType),
@@ -3043,26 +2892,26 @@ const deserializeAws_restJson1ConnectorConfiguration = (output, context) => {
3043
2892
  isPrivateLinkEnabled: (0, smithy_client_1.expectBoolean)(output.isPrivateLinkEnabled),
3044
2893
  isPrivateLinkEndpointUrlRequired: (0, smithy_client_1.expectBoolean)(output.isPrivateLinkEndpointUrlRequired),
3045
2894
  logoURL: (0, smithy_client_1.expectString)(output.logoURL),
3046
- registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
2895
+ registeredAt: output.registeredAt != null
3047
2896
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registeredAt)))
3048
2897
  : undefined,
3049
2898
  registeredBy: (0, smithy_client_1.expectString)(output.registeredBy),
3050
- supportedApiVersions: output.supportedApiVersions !== undefined && output.supportedApiVersions !== null
2899
+ supportedApiVersions: output.supportedApiVersions != null
3051
2900
  ? deserializeAws_restJson1SupportedApiVersionList(output.supportedApiVersions, context)
3052
2901
  : undefined,
3053
- supportedDestinationConnectors: output.supportedDestinationConnectors !== undefined && output.supportedDestinationConnectors !== null
2902
+ supportedDestinationConnectors: output.supportedDestinationConnectors != null
3054
2903
  ? deserializeAws_restJson1ConnectorTypeList(output.supportedDestinationConnectors, context)
3055
2904
  : undefined,
3056
- supportedOperators: output.supportedOperators !== undefined && output.supportedOperators !== null
2905
+ supportedOperators: output.supportedOperators != null
3057
2906
  ? deserializeAws_restJson1SupportedOperatorList(output.supportedOperators, context)
3058
2907
  : undefined,
3059
- supportedSchedulingFrequencies: output.supportedSchedulingFrequencies !== undefined && output.supportedSchedulingFrequencies !== null
2908
+ supportedSchedulingFrequencies: output.supportedSchedulingFrequencies != null
3060
2909
  ? deserializeAws_restJson1SchedulingFrequencyTypeList(output.supportedSchedulingFrequencies, context)
3061
2910
  : undefined,
3062
- supportedTriggerTypes: output.supportedTriggerTypes !== undefined && output.supportedTriggerTypes !== null
2911
+ supportedTriggerTypes: output.supportedTriggerTypes != null
3063
2912
  ? deserializeAws_restJson1TriggerTypeList(output.supportedTriggerTypes, context)
3064
2913
  : undefined,
3065
- supportedWriteOperations: output.supportedWriteOperations !== undefined && output.supportedWriteOperations !== null
2914
+ supportedWriteOperations: output.supportedWriteOperations != null
3066
2915
  ? deserializeAws_restJson1SupportedWriteOperationList(output.supportedWriteOperations, context)
3067
2916
  : undefined,
3068
2917
  };
@@ -3083,7 +2932,7 @@ const deserializeAws_restJson1ConnectorDetail = (output, context) => {
3083
2932
  applicationType: (0, smithy_client_1.expectString)(output.applicationType),
3084
2933
  connectorDescription: (0, smithy_client_1.expectString)(output.connectorDescription),
3085
2934
  connectorLabel: (0, smithy_client_1.expectString)(output.connectorLabel),
3086
- connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
2935
+ connectorModes: output.connectorModes != null
3087
2936
  ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3088
2937
  : undefined,
3089
2938
  connectorName: (0, smithy_client_1.expectString)(output.connectorName),
@@ -3091,7 +2940,7 @@ const deserializeAws_restJson1ConnectorDetail = (output, context) => {
3091
2940
  connectorProvisioningType: (0, smithy_client_1.expectString)(output.connectorProvisioningType),
3092
2941
  connectorType: (0, smithy_client_1.expectString)(output.connectorType),
3093
2942
  connectorVersion: (0, smithy_client_1.expectString)(output.connectorVersion),
3094
- registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
2943
+ registeredAt: output.registeredAt != null
3095
2944
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.registeredAt)))
3096
2945
  : undefined,
3097
2946
  registeredBy: (0, smithy_client_1.expectString)(output.registeredBy),
@@ -3106,12 +2955,12 @@ const deserializeAws_restJson1ConnectorEntity = (output, context) => {
3106
2955
  };
3107
2956
  const deserializeAws_restJson1ConnectorEntityField = (output, context) => {
3108
2957
  return {
3109
- customProperties: output.customProperties !== undefined && output.customProperties !== null
2958
+ customProperties: output.customProperties != null
3110
2959
  ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3111
2960
  : undefined,
3112
2961
  defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
3113
2962
  description: (0, smithy_client_1.expectString)(output.description),
3114
- destinationProperties: output.destinationProperties !== undefined && output.destinationProperties !== null
2963
+ destinationProperties: output.destinationProperties != null
3115
2964
  ? deserializeAws_restJson1DestinationFieldProperties(output.destinationProperties, context)
3116
2965
  : undefined,
3117
2966
  identifier: (0, smithy_client_1.expectString)(output.identifier),
@@ -3119,10 +2968,10 @@ const deserializeAws_restJson1ConnectorEntityField = (output, context) => {
3119
2968
  isPrimaryKey: (0, smithy_client_1.expectBoolean)(output.isPrimaryKey),
3120
2969
  label: (0, smithy_client_1.expectString)(output.label),
3121
2970
  parentIdentifier: (0, smithy_client_1.expectString)(output.parentIdentifier),
3122
- sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
2971
+ sourceProperties: output.sourceProperties != null
3123
2972
  ? deserializeAws_restJson1SourceFieldProperties(output.sourceProperties, context)
3124
2973
  : undefined,
3125
- supportedFieldTypeDetails: output.supportedFieldTypeDetails !== undefined && output.supportedFieldTypeDetails !== null
2974
+ supportedFieldTypeDetails: output.supportedFieldTypeDetails != null
3126
2975
  ? deserializeAws_restJson1SupportedFieldTypeDetails(output.supportedFieldTypeDetails, context)
3127
2976
  : undefined,
3128
2977
  };
@@ -3173,69 +3022,31 @@ const deserializeAws_restJson1ConnectorList = (output, context) => {
3173
3022
  };
3174
3023
  const deserializeAws_restJson1ConnectorMetadata = (output, context) => {
3175
3024
  return {
3176
- Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3177
- ? deserializeAws_restJson1AmplitudeMetadata(output.Amplitude, context)
3178
- : undefined,
3179
- CustomerProfiles: output.CustomerProfiles !== undefined && output.CustomerProfiles !== null
3025
+ Amplitude: output.Amplitude != null ? deserializeAws_restJson1AmplitudeMetadata(output.Amplitude, context) : undefined,
3026
+ CustomerProfiles: output.CustomerProfiles != null
3180
3027
  ? deserializeAws_restJson1CustomerProfilesMetadata(output.CustomerProfiles, context)
3181
3028
  : undefined,
3182
- Datadog: output.Datadog !== undefined && output.Datadog !== null
3183
- ? deserializeAws_restJson1DatadogMetadata(output.Datadog, context)
3184
- : undefined,
3185
- Dynatrace: output.Dynatrace !== undefined && output.Dynatrace !== null
3186
- ? deserializeAws_restJson1DynatraceMetadata(output.Dynatrace, context)
3187
- : undefined,
3188
- EventBridge: output.EventBridge !== undefined && output.EventBridge !== null
3189
- ? deserializeAws_restJson1EventBridgeMetadata(output.EventBridge, context)
3190
- : undefined,
3191
- GoogleAnalytics: output.GoogleAnalytics !== undefined && output.GoogleAnalytics !== null
3029
+ Datadog: output.Datadog != null ? deserializeAws_restJson1DatadogMetadata(output.Datadog, context) : undefined,
3030
+ Dynatrace: output.Dynatrace != null ? deserializeAws_restJson1DynatraceMetadata(output.Dynatrace, context) : undefined,
3031
+ EventBridge: output.EventBridge != null ? deserializeAws_restJson1EventBridgeMetadata(output.EventBridge, context) : undefined,
3032
+ GoogleAnalytics: output.GoogleAnalytics != null
3192
3033
  ? deserializeAws_restJson1GoogleAnalyticsMetadata(output.GoogleAnalytics, context)
3193
3034
  : undefined,
3194
- Honeycode: output.Honeycode !== undefined && output.Honeycode !== null
3195
- ? deserializeAws_restJson1HoneycodeMetadata(output.Honeycode, context)
3196
- : undefined,
3197
- InforNexus: output.InforNexus !== undefined && output.InforNexus !== null
3198
- ? deserializeAws_restJson1InforNexusMetadata(output.InforNexus, context)
3199
- : undefined,
3200
- Marketo: output.Marketo !== undefined && output.Marketo !== null
3201
- ? deserializeAws_restJson1MarketoMetadata(output.Marketo, context)
3202
- : undefined,
3203
- Redshift: output.Redshift !== undefined && output.Redshift !== null
3204
- ? deserializeAws_restJson1RedshiftMetadata(output.Redshift, context)
3205
- : undefined,
3206
- S3: output.S3 !== undefined && output.S3 !== null
3207
- ? deserializeAws_restJson1S3Metadata(output.S3, context)
3208
- : undefined,
3209
- SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
3210
- ? deserializeAws_restJson1SAPODataMetadata(output.SAPOData, context)
3211
- : undefined,
3212
- Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
3213
- ? deserializeAws_restJson1SalesforceMetadata(output.Salesforce, context)
3214
- : undefined,
3215
- ServiceNow: output.ServiceNow !== undefined && output.ServiceNow !== null
3216
- ? deserializeAws_restJson1ServiceNowMetadata(output.ServiceNow, context)
3217
- : undefined,
3218
- Singular: output.Singular !== undefined && output.Singular !== null
3219
- ? deserializeAws_restJson1SingularMetadata(output.Singular, context)
3220
- : undefined,
3221
- Slack: output.Slack !== undefined && output.Slack !== null
3222
- ? deserializeAws_restJson1SlackMetadata(output.Slack, context)
3223
- : undefined,
3224
- Snowflake: output.Snowflake !== undefined && output.Snowflake !== null
3225
- ? deserializeAws_restJson1SnowflakeMetadata(output.Snowflake, context)
3226
- : undefined,
3227
- Trendmicro: output.Trendmicro !== undefined && output.Trendmicro !== null
3228
- ? deserializeAws_restJson1TrendmicroMetadata(output.Trendmicro, context)
3229
- : undefined,
3230
- Upsolver: output.Upsolver !== undefined && output.Upsolver !== null
3231
- ? deserializeAws_restJson1UpsolverMetadata(output.Upsolver, context)
3232
- : undefined,
3233
- Veeva: output.Veeva !== undefined && output.Veeva !== null
3234
- ? deserializeAws_restJson1VeevaMetadata(output.Veeva, context)
3235
- : undefined,
3236
- Zendesk: output.Zendesk !== undefined && output.Zendesk !== null
3237
- ? deserializeAws_restJson1ZendeskMetadata(output.Zendesk, context)
3238
- : undefined,
3035
+ Honeycode: output.Honeycode != null ? deserializeAws_restJson1HoneycodeMetadata(output.Honeycode, context) : undefined,
3036
+ InforNexus: output.InforNexus != null ? deserializeAws_restJson1InforNexusMetadata(output.InforNexus, context) : undefined,
3037
+ Marketo: output.Marketo != null ? deserializeAws_restJson1MarketoMetadata(output.Marketo, context) : undefined,
3038
+ Redshift: output.Redshift != null ? deserializeAws_restJson1RedshiftMetadata(output.Redshift, context) : undefined,
3039
+ S3: output.S3 != null ? deserializeAws_restJson1S3Metadata(output.S3, context) : undefined,
3040
+ SAPOData: output.SAPOData != null ? deserializeAws_restJson1SAPODataMetadata(output.SAPOData, context) : undefined,
3041
+ Salesforce: output.Salesforce != null ? deserializeAws_restJson1SalesforceMetadata(output.Salesforce, context) : undefined,
3042
+ ServiceNow: output.ServiceNow != null ? deserializeAws_restJson1ServiceNowMetadata(output.ServiceNow, context) : undefined,
3043
+ Singular: output.Singular != null ? deserializeAws_restJson1SingularMetadata(output.Singular, context) : undefined,
3044
+ Slack: output.Slack != null ? deserializeAws_restJson1SlackMetadata(output.Slack, context) : undefined,
3045
+ Snowflake: output.Snowflake != null ? deserializeAws_restJson1SnowflakeMetadata(output.Snowflake, context) : undefined,
3046
+ Trendmicro: output.Trendmicro != null ? deserializeAws_restJson1TrendmicroMetadata(output.Trendmicro, context) : undefined,
3047
+ Upsolver: output.Upsolver != null ? deserializeAws_restJson1UpsolverMetadata(output.Upsolver, context) : undefined,
3048
+ Veeva: output.Veeva != null ? deserializeAws_restJson1VeevaMetadata(output.Veeva, context) : undefined,
3049
+ Zendesk: output.Zendesk != null ? deserializeAws_restJson1ZendeskMetadata(output.Zendesk, context) : undefined,
3239
3050
  };
3240
3051
  };
3241
3052
  const deserializeAws_restJson1ConnectorModeList = (output, context) => {
@@ -3275,18 +3086,16 @@ const deserializeAws_restJson1ConnectorProfile = (output, context) => {
3275
3086
  connectorLabel: (0, smithy_client_1.expectString)(output.connectorLabel),
3276
3087
  connectorProfileArn: (0, smithy_client_1.expectString)(output.connectorProfileArn),
3277
3088
  connectorProfileName: (0, smithy_client_1.expectString)(output.connectorProfileName),
3278
- connectorProfileProperties: output.connectorProfileProperties !== undefined && output.connectorProfileProperties !== null
3089
+ connectorProfileProperties: output.connectorProfileProperties != null
3279
3090
  ? deserializeAws_restJson1ConnectorProfileProperties(output.connectorProfileProperties, context)
3280
3091
  : undefined,
3281
3092
  connectorType: (0, smithy_client_1.expectString)(output.connectorType),
3282
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3283
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3284
- : undefined,
3093
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3285
3094
  credentialsArn: (0, smithy_client_1.expectString)(output.credentialsArn),
3286
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
3095
+ lastUpdatedAt: output.lastUpdatedAt != null
3287
3096
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
3288
3097
  : undefined,
3289
- privateConnectionProvisioningState: output.privateConnectionProvisioningState !== undefined && output.privateConnectionProvisioningState !== null
3098
+ privateConnectionProvisioningState: output.privateConnectionProvisioningState != null
3290
3099
  ? deserializeAws_restJson1PrivateConnectionProvisioningState(output.privateConnectionProvisioningState, context)
3291
3100
  : undefined,
3292
3101
  };
@@ -3304,72 +3113,68 @@ const deserializeAws_restJson1ConnectorProfileDetailList = (output, context) =>
3304
3113
  };
3305
3114
  const deserializeAws_restJson1ConnectorProfileProperties = (output, context) => {
3306
3115
  return {
3307
- Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3116
+ Amplitude: output.Amplitude != null
3308
3117
  ? deserializeAws_restJson1AmplitudeConnectorProfileProperties(output.Amplitude, context)
3309
3118
  : undefined,
3310
- CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
3119
+ CustomConnector: output.CustomConnector != null
3311
3120
  ? deserializeAws_restJson1CustomConnectorProfileProperties(output.CustomConnector, context)
3312
3121
  : undefined,
3313
- Datadog: output.Datadog !== undefined && output.Datadog !== null
3122
+ Datadog: output.Datadog != null
3314
3123
  ? deserializeAws_restJson1DatadogConnectorProfileProperties(output.Datadog, context)
3315
3124
  : undefined,
3316
- Dynatrace: output.Dynatrace !== undefined && output.Dynatrace !== null
3125
+ Dynatrace: output.Dynatrace != null
3317
3126
  ? deserializeAws_restJson1DynatraceConnectorProfileProperties(output.Dynatrace, context)
3318
3127
  : undefined,
3319
- GoogleAnalytics: output.GoogleAnalytics !== undefined && output.GoogleAnalytics !== null
3128
+ GoogleAnalytics: output.GoogleAnalytics != null
3320
3129
  ? deserializeAws_restJson1GoogleAnalyticsConnectorProfileProperties(output.GoogleAnalytics, context)
3321
3130
  : undefined,
3322
- Honeycode: output.Honeycode !== undefined && output.Honeycode !== null
3131
+ Honeycode: output.Honeycode != null
3323
3132
  ? deserializeAws_restJson1HoneycodeConnectorProfileProperties(output.Honeycode, context)
3324
3133
  : undefined,
3325
- InforNexus: output.InforNexus !== undefined && output.InforNexus !== null
3134
+ InforNexus: output.InforNexus != null
3326
3135
  ? deserializeAws_restJson1InforNexusConnectorProfileProperties(output.InforNexus, context)
3327
3136
  : undefined,
3328
- Marketo: output.Marketo !== undefined && output.Marketo !== null
3137
+ Marketo: output.Marketo != null
3329
3138
  ? deserializeAws_restJson1MarketoConnectorProfileProperties(output.Marketo, context)
3330
3139
  : undefined,
3331
- Redshift: output.Redshift !== undefined && output.Redshift !== null
3140
+ Redshift: output.Redshift != null
3332
3141
  ? deserializeAws_restJson1RedshiftConnectorProfileProperties(output.Redshift, context)
3333
3142
  : undefined,
3334
- SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
3143
+ SAPOData: output.SAPOData != null
3335
3144
  ? deserializeAws_restJson1SAPODataConnectorProfileProperties(output.SAPOData, context)
3336
3145
  : undefined,
3337
- Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
3146
+ Salesforce: output.Salesforce != null
3338
3147
  ? deserializeAws_restJson1SalesforceConnectorProfileProperties(output.Salesforce, context)
3339
3148
  : undefined,
3340
- ServiceNow: output.ServiceNow !== undefined && output.ServiceNow !== null
3149
+ ServiceNow: output.ServiceNow != null
3341
3150
  ? deserializeAws_restJson1ServiceNowConnectorProfileProperties(output.ServiceNow, context)
3342
3151
  : undefined,
3343
- Singular: output.Singular !== undefined && output.Singular !== null
3152
+ Singular: output.Singular != null
3344
3153
  ? deserializeAws_restJson1SingularConnectorProfileProperties(output.Singular, context)
3345
3154
  : undefined,
3346
- Slack: output.Slack !== undefined && output.Slack !== null
3347
- ? deserializeAws_restJson1SlackConnectorProfileProperties(output.Slack, context)
3348
- : undefined,
3349
- Snowflake: output.Snowflake !== undefined && output.Snowflake !== null
3155
+ Slack: output.Slack != null ? deserializeAws_restJson1SlackConnectorProfileProperties(output.Slack, context) : undefined,
3156
+ Snowflake: output.Snowflake != null
3350
3157
  ? deserializeAws_restJson1SnowflakeConnectorProfileProperties(output.Snowflake, context)
3351
3158
  : undefined,
3352
- Trendmicro: output.Trendmicro !== undefined && output.Trendmicro !== null
3159
+ Trendmicro: output.Trendmicro != null
3353
3160
  ? deserializeAws_restJson1TrendmicroConnectorProfileProperties(output.Trendmicro, context)
3354
3161
  : undefined,
3355
- Veeva: output.Veeva !== undefined && output.Veeva !== null
3356
- ? deserializeAws_restJson1VeevaConnectorProfileProperties(output.Veeva, context)
3357
- : undefined,
3358
- Zendesk: output.Zendesk !== undefined && output.Zendesk !== null
3162
+ Veeva: output.Veeva != null ? deserializeAws_restJson1VeevaConnectorProfileProperties(output.Veeva, context) : undefined,
3163
+ Zendesk: output.Zendesk != null
3359
3164
  ? deserializeAws_restJson1ZendeskConnectorProfileProperties(output.Zendesk, context)
3360
3165
  : undefined,
3361
3166
  };
3362
3167
  };
3363
3168
  const deserializeAws_restJson1ConnectorProvisioningConfig = (output, context) => {
3364
3169
  return {
3365
- lambda: output.lambda !== undefined && output.lambda !== null
3170
+ lambda: output.lambda != null
3366
3171
  ? deserializeAws_restJson1LambdaConnectorProvisioningConfig(output.lambda, context)
3367
3172
  : undefined,
3368
3173
  };
3369
3174
  };
3370
3175
  const deserializeAws_restJson1ConnectorRuntimeSetting = (output, context) => {
3371
3176
  return {
3372
- connectorSuppliedValueOptions: output.connectorSuppliedValueOptions !== undefined && output.connectorSuppliedValueOptions !== null
3177
+ connectorSuppliedValueOptions: output.connectorSuppliedValueOptions != null
3373
3178
  ? deserializeAws_restJson1ConnectorSuppliedValueOptionList(output.connectorSuppliedValueOptions, context)
3374
3179
  : undefined,
3375
3180
  dataType: (0, smithy_client_1.expectString)(output.dataType),
@@ -3426,7 +3231,7 @@ const deserializeAws_restJson1ConnectorTypeList = (output, context) => {
3426
3231
  };
3427
3232
  const deserializeAws_restJson1CustomAuthConfig = (output, context) => {
3428
3233
  return {
3429
- authParameters: output.authParameters !== undefined && output.authParameters !== null
3234
+ authParameters: output.authParameters != null
3430
3235
  ? deserializeAws_restJson1AuthParameterList(output.authParameters, context)
3431
3236
  : undefined,
3432
3237
  customAuthenticationType: (0, smithy_client_1.expectString)(output.customAuthenticationType),
@@ -3445,32 +3250,30 @@ const deserializeAws_restJson1CustomAuthConfigList = (output, context) => {
3445
3250
  };
3446
3251
  const deserializeAws_restJson1CustomConnectorDestinationProperties = (output, context) => {
3447
3252
  return {
3448
- customProperties: output.customProperties !== undefined && output.customProperties !== null
3253
+ customProperties: output.customProperties != null
3449
3254
  ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3450
3255
  : undefined,
3451
3256
  entityName: (0, smithy_client_1.expectString)(output.entityName),
3452
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3257
+ errorHandlingConfig: output.errorHandlingConfig != null
3453
3258
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3454
3259
  : undefined,
3455
- idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
3456
- ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
3457
- : undefined,
3260
+ idFieldNames: output.idFieldNames != null ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context) : undefined,
3458
3261
  writeOperationType: (0, smithy_client_1.expectString)(output.writeOperationType),
3459
3262
  };
3460
3263
  };
3461
3264
  const deserializeAws_restJson1CustomConnectorProfileProperties = (output, context) => {
3462
3265
  return {
3463
- oAuth2Properties: output.oAuth2Properties !== undefined && output.oAuth2Properties !== null
3266
+ oAuth2Properties: output.oAuth2Properties != null
3464
3267
  ? deserializeAws_restJson1OAuth2Properties(output.oAuth2Properties, context)
3465
3268
  : undefined,
3466
- profileProperties: output.profileProperties !== undefined && output.profileProperties !== null
3269
+ profileProperties: output.profileProperties != null
3467
3270
  ? deserializeAws_restJson1ProfilePropertiesMap(output.profileProperties, context)
3468
3271
  : undefined,
3469
3272
  };
3470
3273
  };
3471
3274
  const deserializeAws_restJson1CustomConnectorSourceProperties = (output, context) => {
3472
3275
  return {
3473
- customProperties: output.customProperties !== undefined && output.customProperties !== null
3276
+ customProperties: output.customProperties != null
3474
3277
  ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3475
3278
  : undefined,
3476
3279
  entityName: (0, smithy_client_1.expectString)(output.entityName),
@@ -3511,43 +3314,41 @@ const deserializeAws_restJson1DatadogSourceProperties = (output, context) => {
3511
3314
  };
3512
3315
  const deserializeAws_restJson1DestinationConnectorProperties = (output, context) => {
3513
3316
  return {
3514
- CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
3317
+ CustomConnector: output.CustomConnector != null
3515
3318
  ? deserializeAws_restJson1CustomConnectorDestinationProperties(output.CustomConnector, context)
3516
3319
  : undefined,
3517
- CustomerProfiles: output.CustomerProfiles !== undefined && output.CustomerProfiles !== null
3320
+ CustomerProfiles: output.CustomerProfiles != null
3518
3321
  ? deserializeAws_restJson1CustomerProfilesDestinationProperties(output.CustomerProfiles, context)
3519
3322
  : undefined,
3520
- EventBridge: output.EventBridge !== undefined && output.EventBridge !== null
3323
+ EventBridge: output.EventBridge != null
3521
3324
  ? deserializeAws_restJson1EventBridgeDestinationProperties(output.EventBridge, context)
3522
3325
  : undefined,
3523
- Honeycode: output.Honeycode !== undefined && output.Honeycode !== null
3326
+ Honeycode: output.Honeycode != null
3524
3327
  ? deserializeAws_restJson1HoneycodeDestinationProperties(output.Honeycode, context)
3525
3328
  : undefined,
3526
- LookoutMetrics: output.LookoutMetrics !== undefined && output.LookoutMetrics !== null
3329
+ LookoutMetrics: output.LookoutMetrics != null
3527
3330
  ? deserializeAws_restJson1LookoutMetricsDestinationProperties(output.LookoutMetrics, context)
3528
3331
  : undefined,
3529
- Marketo: output.Marketo !== undefined && output.Marketo !== null
3332
+ Marketo: output.Marketo != null
3530
3333
  ? deserializeAws_restJson1MarketoDestinationProperties(output.Marketo, context)
3531
3334
  : undefined,
3532
- Redshift: output.Redshift !== undefined && output.Redshift !== null
3335
+ Redshift: output.Redshift != null
3533
3336
  ? deserializeAws_restJson1RedshiftDestinationProperties(output.Redshift, context)
3534
3337
  : undefined,
3535
- S3: output.S3 !== undefined && output.S3 !== null
3536
- ? deserializeAws_restJson1S3DestinationProperties(output.S3, context)
3537
- : undefined,
3538
- SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
3338
+ S3: output.S3 != null ? deserializeAws_restJson1S3DestinationProperties(output.S3, context) : undefined,
3339
+ SAPOData: output.SAPOData != null
3539
3340
  ? deserializeAws_restJson1SAPODataDestinationProperties(output.SAPOData, context)
3540
3341
  : undefined,
3541
- Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
3342
+ Salesforce: output.Salesforce != null
3542
3343
  ? deserializeAws_restJson1SalesforceDestinationProperties(output.Salesforce, context)
3543
3344
  : undefined,
3544
- Snowflake: output.Snowflake !== undefined && output.Snowflake !== null
3345
+ Snowflake: output.Snowflake != null
3545
3346
  ? deserializeAws_restJson1SnowflakeDestinationProperties(output.Snowflake, context)
3546
3347
  : undefined,
3547
- Upsolver: output.Upsolver !== undefined && output.Upsolver !== null
3348
+ Upsolver: output.Upsolver != null
3548
3349
  ? deserializeAws_restJson1UpsolverDestinationProperties(output.Upsolver, context)
3549
3350
  : undefined,
3550
- Zendesk: output.Zendesk !== undefined && output.Zendesk !== null
3351
+ Zendesk: output.Zendesk != null
3551
3352
  ? deserializeAws_restJson1ZendeskDestinationProperties(output.Zendesk, context)
3552
3353
  : undefined,
3553
3354
  };
@@ -3559,7 +3360,7 @@ const deserializeAws_restJson1DestinationFieldProperties = (output, context) =>
3559
3360
  isNullable: (0, smithy_client_1.expectBoolean)(output.isNullable),
3560
3361
  isUpdatable: (0, smithy_client_1.expectBoolean)(output.isUpdatable),
3561
3362
  isUpsertable: (0, smithy_client_1.expectBoolean)(output.isUpsertable),
3562
- supportedWriteOperations: output.supportedWriteOperations !== undefined && output.supportedWriteOperations !== null
3363
+ supportedWriteOperations: output.supportedWriteOperations != null
3563
3364
  ? deserializeAws_restJson1SupportedWriteOperationList(output.supportedWriteOperations, context)
3564
3365
  : undefined,
3565
3366
  };
@@ -3569,7 +3370,7 @@ const deserializeAws_restJson1DestinationFlowConfig = (output, context) => {
3569
3370
  apiVersion: (0, smithy_client_1.expectString)(output.apiVersion),
3570
3371
  connectorProfileName: (0, smithy_client_1.expectString)(output.connectorProfileName),
3571
3372
  connectorType: (0, smithy_client_1.expectString)(output.connectorType),
3572
- destinationConnectorProperties: output.destinationConnectorProperties !== undefined && output.destinationConnectorProperties !== null
3373
+ destinationConnectorProperties: output.destinationConnectorProperties != null
3573
3374
  ? deserializeAws_restJson1DestinationConnectorProperties(output.destinationConnectorProperties, context)
3574
3375
  : undefined,
3575
3376
  };
@@ -3613,7 +3414,7 @@ const deserializeAws_restJson1ErrorInfo = (output, context) => {
3613
3414
  };
3614
3415
  const deserializeAws_restJson1EventBridgeDestinationProperties = (output, context) => {
3615
3416
  return {
3616
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3417
+ errorHandlingConfig: output.errorHandlingConfig != null
3617
3418
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3618
3419
  : undefined,
3619
3420
  object: (0, smithy_client_1.expectString)(output.object),
@@ -3626,56 +3427,48 @@ const deserializeAws_restJson1ExecutionDetails = (output, context) => {
3626
3427
  return {
3627
3428
  mostRecentExecutionMessage: (0, smithy_client_1.expectString)(output.mostRecentExecutionMessage),
3628
3429
  mostRecentExecutionStatus: (0, smithy_client_1.expectString)(output.mostRecentExecutionStatus),
3629
- mostRecentExecutionTime: output.mostRecentExecutionTime !== undefined && output.mostRecentExecutionTime !== null
3430
+ mostRecentExecutionTime: output.mostRecentExecutionTime != null
3630
3431
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.mostRecentExecutionTime)))
3631
3432
  : undefined,
3632
3433
  };
3633
3434
  };
3634
3435
  const deserializeAws_restJson1ExecutionRecord = (output, context) => {
3635
3436
  return {
3636
- dataPullEndTime: output.dataPullEndTime !== undefined && output.dataPullEndTime !== null
3437
+ dataPullEndTime: output.dataPullEndTime != null
3637
3438
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.dataPullEndTime)))
3638
3439
  : undefined,
3639
- dataPullStartTime: output.dataPullStartTime !== undefined && output.dataPullStartTime !== null
3440
+ dataPullStartTime: output.dataPullStartTime != null
3640
3441
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.dataPullStartTime)))
3641
3442
  : undefined,
3642
3443
  executionId: (0, smithy_client_1.expectString)(output.executionId),
3643
- executionResult: output.executionResult !== undefined && output.executionResult !== null
3444
+ executionResult: output.executionResult != null
3644
3445
  ? deserializeAws_restJson1ExecutionResult(output.executionResult, context)
3645
3446
  : undefined,
3646
3447
  executionStatus: (0, smithy_client_1.expectString)(output.executionStatus),
3647
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
3448
+ lastUpdatedAt: output.lastUpdatedAt != null
3648
3449
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
3649
3450
  : undefined,
3650
- startedAt: output.startedAt !== undefined && output.startedAt !== null
3651
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
3652
- : undefined,
3451
+ startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
3653
3452
  };
3654
3453
  };
3655
3454
  const deserializeAws_restJson1ExecutionResult = (output, context) => {
3656
3455
  return {
3657
3456
  bytesProcessed: (0, smithy_client_1.expectLong)(output.bytesProcessed),
3658
3457
  bytesWritten: (0, smithy_client_1.expectLong)(output.bytesWritten),
3659
- errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
3660
- ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context)
3661
- : undefined,
3458
+ errorInfo: output.errorInfo != null ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context) : undefined,
3662
3459
  recordsProcessed: (0, smithy_client_1.expectLong)(output.recordsProcessed),
3663
3460
  };
3664
3461
  };
3665
3462
  const deserializeAws_restJson1FieldTypeDetails = (output, context) => {
3666
3463
  return {
3667
- fieldLengthRange: output.fieldLengthRange !== undefined && output.fieldLengthRange !== null
3668
- ? deserializeAws_restJson1Range(output.fieldLengthRange, context)
3669
- : undefined,
3464
+ fieldLengthRange: output.fieldLengthRange != null ? deserializeAws_restJson1Range(output.fieldLengthRange, context) : undefined,
3670
3465
  fieldType: (0, smithy_client_1.expectString)(output.fieldType),
3671
- fieldValueRange: output.fieldValueRange !== undefined && output.fieldValueRange !== null
3672
- ? deserializeAws_restJson1Range(output.fieldValueRange, context)
3673
- : undefined,
3674
- filterOperators: output.filterOperators !== undefined && output.filterOperators !== null
3466
+ fieldValueRange: output.fieldValueRange != null ? deserializeAws_restJson1Range(output.fieldValueRange, context) : undefined,
3467
+ filterOperators: output.filterOperators != null
3675
3468
  ? deserializeAws_restJson1FilterOperatorList(output.filterOperators, context)
3676
3469
  : undefined,
3677
3470
  supportedDateFormat: (0, smithy_client_1.expectString)(output.supportedDateFormat),
3678
- supportedValues: output.supportedValues !== undefined && output.supportedValues !== null
3471
+ supportedValues: output.supportedValues != null
3679
3472
  ? deserializeAws_restJson1SupportedValueList(output.supportedValues, context)
3680
3473
  : undefined,
3681
3474
  valueRegexPattern: (0, smithy_client_1.expectString)(output.valueRegexPattern),
@@ -3694,9 +3487,7 @@ const deserializeAws_restJson1FilterOperatorList = (output, context) => {
3694
3487
  };
3695
3488
  const deserializeAws_restJson1FlowDefinition = (output, context) => {
3696
3489
  return {
3697
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3698
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
3699
- : undefined,
3490
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
3700
3491
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
3701
3492
  description: (0, smithy_client_1.expectString)(output.description),
3702
3493
  destinationConnectorLabel: (0, smithy_client_1.expectString)(output.destinationConnectorLabel),
@@ -3704,18 +3495,16 @@ const deserializeAws_restJson1FlowDefinition = (output, context) => {
3704
3495
  flowArn: (0, smithy_client_1.expectString)(output.flowArn),
3705
3496
  flowName: (0, smithy_client_1.expectString)(output.flowName),
3706
3497
  flowStatus: (0, smithy_client_1.expectString)(output.flowStatus),
3707
- lastRunExecutionDetails: output.lastRunExecutionDetails !== undefined && output.lastRunExecutionDetails !== null
3498
+ lastRunExecutionDetails: output.lastRunExecutionDetails != null
3708
3499
  ? deserializeAws_restJson1ExecutionDetails(output.lastRunExecutionDetails, context)
3709
3500
  : undefined,
3710
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
3501
+ lastUpdatedAt: output.lastUpdatedAt != null
3711
3502
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
3712
3503
  : undefined,
3713
3504
  lastUpdatedBy: (0, smithy_client_1.expectString)(output.lastUpdatedBy),
3714
3505
  sourceConnectorLabel: (0, smithy_client_1.expectString)(output.sourceConnectorLabel),
3715
3506
  sourceConnectorType: (0, smithy_client_1.expectString)(output.sourceConnectorType),
3716
- tags: output.tags !== undefined && output.tags !== null
3717
- ? deserializeAws_restJson1TagMap(output.tags, context)
3718
- : undefined,
3507
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3719
3508
  triggerType: (0, smithy_client_1.expectString)(output.triggerType),
3720
3509
  };
3721
3510
  };
@@ -3746,9 +3535,7 @@ const deserializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = (outpu
3746
3535
  };
3747
3536
  const deserializeAws_restJson1GoogleAnalyticsMetadata = (output, context) => {
3748
3537
  return {
3749
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
3750
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
3751
- : undefined,
3538
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
3752
3539
  };
3753
3540
  };
3754
3541
  const deserializeAws_restJson1GoogleAnalyticsSourceProperties = (output, context) => {
@@ -3761,7 +3548,7 @@ const deserializeAws_restJson1HoneycodeConnectorProfileProperties = (output, con
3761
3548
  };
3762
3549
  const deserializeAws_restJson1HoneycodeDestinationProperties = (output, context) => {
3763
3550
  return {
3764
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3551
+ errorHandlingConfig: output.errorHandlingConfig != null
3765
3552
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3766
3553
  : undefined,
3767
3554
  object: (0, smithy_client_1.expectString)(output.object),
@@ -3769,9 +3556,7 @@ const deserializeAws_restJson1HoneycodeDestinationProperties = (output, context)
3769
3556
  };
3770
3557
  const deserializeAws_restJson1HoneycodeMetadata = (output, context) => {
3771
3558
  return {
3772
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
3773
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
3774
- : undefined,
3559
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
3775
3560
  };
3776
3561
  };
3777
3562
  const deserializeAws_restJson1IdFieldNameList = (output, context) => {
@@ -3818,7 +3603,7 @@ const deserializeAws_restJson1MarketoConnectorProfileProperties = (output, conte
3818
3603
  };
3819
3604
  const deserializeAws_restJson1MarketoDestinationProperties = (output, context) => {
3820
3605
  return {
3821
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3606
+ errorHandlingConfig: output.errorHandlingConfig != null
3822
3607
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3823
3608
  : undefined,
3824
3609
  object: (0, smithy_client_1.expectString)(output.object),
@@ -3834,7 +3619,7 @@ const deserializeAws_restJson1MarketoSourceProperties = (output, context) => {
3834
3619
  };
3835
3620
  const deserializeAws_restJson1OAuth2CustomParameter = (output, context) => {
3836
3621
  return {
3837
- connectorSuppliedValues: output.connectorSuppliedValues !== undefined && output.connectorSuppliedValues !== null
3622
+ connectorSuppliedValues: output.connectorSuppliedValues != null
3838
3623
  ? deserializeAws_restJson1ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
3839
3624
  : undefined,
3840
3625
  description: (0, smithy_client_1.expectString)(output.description),
@@ -3858,21 +3643,15 @@ const deserializeAws_restJson1OAuth2CustomPropertiesList = (output, context) =>
3858
3643
  };
3859
3644
  const deserializeAws_restJson1OAuth2Defaults = (output, context) => {
3860
3645
  return {
3861
- authCodeUrls: output.authCodeUrls !== undefined && output.authCodeUrls !== null
3862
- ? deserializeAws_restJson1AuthCodeUrlList(output.authCodeUrls, context)
3863
- : undefined,
3864
- oauth2CustomProperties: output.oauth2CustomProperties !== undefined && output.oauth2CustomProperties !== null
3646
+ authCodeUrls: output.authCodeUrls != null ? deserializeAws_restJson1AuthCodeUrlList(output.authCodeUrls, context) : undefined,
3647
+ oauth2CustomProperties: output.oauth2CustomProperties != null
3865
3648
  ? deserializeAws_restJson1OAuth2CustomPropertiesList(output.oauth2CustomProperties, context)
3866
3649
  : undefined,
3867
- oauth2GrantTypesSupported: output.oauth2GrantTypesSupported !== undefined && output.oauth2GrantTypesSupported !== null
3650
+ oauth2GrantTypesSupported: output.oauth2GrantTypesSupported != null
3868
3651
  ? deserializeAws_restJson1OAuth2GrantTypeSupportedList(output.oauth2GrantTypesSupported, context)
3869
3652
  : undefined,
3870
- oauthScopes: output.oauthScopes !== undefined && output.oauthScopes !== null
3871
- ? deserializeAws_restJson1OAuthScopeList(output.oauthScopes, context)
3872
- : undefined,
3873
- tokenUrls: output.tokenUrls !== undefined && output.tokenUrls !== null
3874
- ? deserializeAws_restJson1TokenUrlList(output.tokenUrls, context)
3875
- : undefined,
3653
+ oauthScopes: output.oauthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oauthScopes, context) : undefined,
3654
+ tokenUrls: output.tokenUrls != null ? deserializeAws_restJson1TokenUrlList(output.tokenUrls, context) : undefined,
3876
3655
  };
3877
3656
  };
3878
3657
  const deserializeAws_restJson1OAuth2GrantTypeSupportedList = (output, context) => {
@@ -3890,7 +3669,7 @@ const deserializeAws_restJson1OAuth2Properties = (output, context) => {
3890
3669
  return {
3891
3670
  oAuth2GrantType: (0, smithy_client_1.expectString)(output.oAuth2GrantType),
3892
3671
  tokenUrl: (0, smithy_client_1.expectString)(output.tokenUrl),
3893
- tokenUrlCustomProperties: output.tokenUrlCustomProperties !== undefined && output.tokenUrlCustomProperties !== null
3672
+ tokenUrlCustomProperties: output.tokenUrlCustomProperties != null
3894
3673
  ? deserializeAws_restJson1TokenUrlCustomProperties(output.tokenUrlCustomProperties, context)
3895
3674
  : undefined,
3896
3675
  };
@@ -3898,9 +3677,7 @@ const deserializeAws_restJson1OAuth2Properties = (output, context) => {
3898
3677
  const deserializeAws_restJson1OAuthProperties = (output, context) => {
3899
3678
  return {
3900
3679
  authCodeUrl: (0, smithy_client_1.expectString)(output.authCodeUrl),
3901
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
3902
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
3903
- : undefined,
3680
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
3904
3681
  tokenUrl: (0, smithy_client_1.expectString)(output.tokenUrl),
3905
3682
  };
3906
3683
  };
@@ -3956,7 +3733,7 @@ const deserializeAws_restJson1RedshiftConnectorProfileProperties = (output, cont
3956
3733
  const deserializeAws_restJson1RedshiftDestinationProperties = (output, context) => {
3957
3734
  return {
3958
3735
  bucketPrefix: (0, smithy_client_1.expectString)(output.bucketPrefix),
3959
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3736
+ errorHandlingConfig: output.errorHandlingConfig != null
3960
3737
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3961
3738
  : undefined,
3962
3739
  intermediateBucketName: (0, smithy_client_1.expectString)(output.intermediateBucketName),
@@ -3981,7 +3758,7 @@ const deserializeAws_restJson1S3DestinationProperties = (output, context) => {
3981
3758
  return {
3982
3759
  bucketName: (0, smithy_client_1.expectString)(output.bucketName),
3983
3760
  bucketPrefix: (0, smithy_client_1.expectString)(output.bucketPrefix),
3984
- s3OutputFormatConfig: output.s3OutputFormatConfig !== undefined && output.s3OutputFormatConfig !== null
3761
+ s3OutputFormatConfig: output.s3OutputFormatConfig != null
3985
3762
  ? deserializeAws_restJson1S3OutputFormatConfig(output.s3OutputFormatConfig, context)
3986
3763
  : undefined,
3987
3764
  };
@@ -3996,13 +3773,11 @@ const deserializeAws_restJson1S3Metadata = (output, context) => {
3996
3773
  };
3997
3774
  const deserializeAws_restJson1S3OutputFormatConfig = (output, context) => {
3998
3775
  return {
3999
- aggregationConfig: output.aggregationConfig !== undefined && output.aggregationConfig !== null
3776
+ aggregationConfig: output.aggregationConfig != null
4000
3777
  ? deserializeAws_restJson1AggregationConfig(output.aggregationConfig, context)
4001
3778
  : undefined,
4002
3779
  fileType: (0, smithy_client_1.expectString)(output.fileType),
4003
- prefixConfig: output.prefixConfig !== undefined && output.prefixConfig !== null
4004
- ? deserializeAws_restJson1PrefixConfig(output.prefixConfig, context)
4005
- : undefined,
3780
+ prefixConfig: output.prefixConfig != null ? deserializeAws_restJson1PrefixConfig(output.prefixConfig, context) : undefined,
4006
3781
  preserveSourceDataTyping: (0, smithy_client_1.expectBoolean)(output.preserveSourceDataTyping),
4007
3782
  };
4008
3783
  };
@@ -4010,7 +3785,7 @@ const deserializeAws_restJson1S3SourceProperties = (output, context) => {
4010
3785
  return {
4011
3786
  bucketName: (0, smithy_client_1.expectString)(output.bucketName),
4012
3787
  bucketPrefix: (0, smithy_client_1.expectString)(output.bucketPrefix),
4013
- s3InputFormatConfig: output.s3InputFormatConfig !== undefined && output.s3InputFormatConfig !== null
3788
+ s3InputFormatConfig: output.s3InputFormatConfig != null
4014
3789
  ? deserializeAws_restJson1S3InputFormatConfig(output.s3InputFormatConfig, context)
4015
3790
  : undefined,
4016
3791
  };
@@ -4023,21 +3798,17 @@ const deserializeAws_restJson1SalesforceConnectorProfileProperties = (output, co
4023
3798
  };
4024
3799
  const deserializeAws_restJson1SalesforceDestinationProperties = (output, context) => {
4025
3800
  return {
4026
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3801
+ errorHandlingConfig: output.errorHandlingConfig != null
4027
3802
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4028
3803
  : undefined,
4029
- idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
4030
- ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
4031
- : undefined,
3804
+ idFieldNames: output.idFieldNames != null ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context) : undefined,
4032
3805
  object: (0, smithy_client_1.expectString)(output.object),
4033
3806
  writeOperationType: (0, smithy_client_1.expectString)(output.writeOperationType),
4034
3807
  };
4035
3808
  };
4036
3809
  const deserializeAws_restJson1SalesforceMetadata = (output, context) => {
4037
3810
  return {
4038
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
4039
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
4040
- : undefined,
3811
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
4041
3812
  };
4042
3813
  };
4043
3814
  const deserializeAws_restJson1SalesforceSourceProperties = (output, context) => {
@@ -4053,7 +3824,7 @@ const deserializeAws_restJson1SAPODataConnectorProfileProperties = (output, cont
4053
3824
  applicationServicePath: (0, smithy_client_1.expectString)(output.applicationServicePath),
4054
3825
  clientNumber: (0, smithy_client_1.expectString)(output.clientNumber),
4055
3826
  logonLanguage: (0, smithy_client_1.expectString)(output.logonLanguage),
4056
- oAuthProperties: output.oAuthProperties !== undefined && output.oAuthProperties !== null
3827
+ oAuthProperties: output.oAuthProperties != null
4057
3828
  ? deserializeAws_restJson1OAuthProperties(output.oAuthProperties, context)
4058
3829
  : undefined,
4059
3830
  portNumber: (0, smithy_client_1.expectInt32)(output.portNumber),
@@ -4062,14 +3833,12 @@ const deserializeAws_restJson1SAPODataConnectorProfileProperties = (output, cont
4062
3833
  };
4063
3834
  const deserializeAws_restJson1SAPODataDestinationProperties = (output, context) => {
4064
3835
  return {
4065
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3836
+ errorHandlingConfig: output.errorHandlingConfig != null
4066
3837
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4067
3838
  : undefined,
4068
- idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
4069
- ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
4070
- : undefined,
3839
+ idFieldNames: output.idFieldNames != null ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context) : undefined,
4071
3840
  objectPath: (0, smithy_client_1.expectString)(output.objectPath),
4072
- successResponseHandlingConfig: output.successResponseHandlingConfig !== undefined && output.successResponseHandlingConfig !== null
3841
+ successResponseHandlingConfig: output.successResponseHandlingConfig != null
4073
3842
  ? deserializeAws_restJson1SuccessResponseHandlingConfig(output.successResponseHandlingConfig, context)
4074
3843
  : undefined,
4075
3844
  writeOperationType: (0, smithy_client_1.expectString)(output.writeOperationType),
@@ -4086,16 +3855,16 @@ const deserializeAws_restJson1SAPODataSourceProperties = (output, context) => {
4086
3855
  const deserializeAws_restJson1ScheduledTriggerProperties = (output, context) => {
4087
3856
  return {
4088
3857
  dataPullMode: (0, smithy_client_1.expectString)(output.dataPullMode),
4089
- firstExecutionFrom: output.firstExecutionFrom !== undefined && output.firstExecutionFrom !== null
3858
+ firstExecutionFrom: output.firstExecutionFrom != null
4090
3859
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.firstExecutionFrom)))
4091
3860
  : undefined,
4092
3861
  flowErrorDeactivationThreshold: (0, smithy_client_1.expectInt32)(output.flowErrorDeactivationThreshold),
4093
- scheduleEndTime: output.scheduleEndTime !== undefined && output.scheduleEndTime !== null
3862
+ scheduleEndTime: output.scheduleEndTime != null
4094
3863
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.scheduleEndTime)))
4095
3864
  : undefined,
4096
3865
  scheduleExpression: (0, smithy_client_1.expectString)(output.scheduleExpression),
4097
3866
  scheduleOffset: (0, smithy_client_1.expectLong)(output.scheduleOffset),
4098
- scheduleStartTime: output.scheduleStartTime !== undefined && output.scheduleStartTime !== null
3867
+ scheduleStartTime: output.scheduleStartTime != null
4099
3868
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.scheduleStartTime)))
4100
3869
  : undefined,
4101
3870
  timezone: (0, smithy_client_1.expectString)(output.timezone),
@@ -4143,9 +3912,7 @@ const deserializeAws_restJson1SlackConnectorProfileProperties = (output, context
4143
3912
  };
4144
3913
  const deserializeAws_restJson1SlackMetadata = (output, context) => {
4145
3914
  return {
4146
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
4147
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
4148
- : undefined,
3915
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
4149
3916
  };
4150
3917
  };
4151
3918
  const deserializeAws_restJson1SlackSourceProperties = (output, context) => {
@@ -4167,7 +3934,7 @@ const deserializeAws_restJson1SnowflakeConnectorProfileProperties = (output, con
4167
3934
  const deserializeAws_restJson1SnowflakeDestinationProperties = (output, context) => {
4168
3935
  return {
4169
3936
  bucketPrefix: (0, smithy_client_1.expectString)(output.bucketPrefix),
4170
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3937
+ errorHandlingConfig: output.errorHandlingConfig != null
4171
3938
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4172
3939
  : undefined,
4173
3940
  intermediateBucketName: (0, smithy_client_1.expectString)(output.intermediateBucketName),
@@ -4176,61 +3943,45 @@ const deserializeAws_restJson1SnowflakeDestinationProperties = (output, context)
4176
3943
  };
4177
3944
  const deserializeAws_restJson1SnowflakeMetadata = (output, context) => {
4178
3945
  return {
4179
- supportedRegions: output.supportedRegions !== undefined && output.supportedRegions !== null
3946
+ supportedRegions: output.supportedRegions != null
4180
3947
  ? deserializeAws_restJson1RegionList(output.supportedRegions, context)
4181
3948
  : undefined,
4182
3949
  };
4183
3950
  };
4184
3951
  const deserializeAws_restJson1SourceConnectorProperties = (output, context) => {
4185
3952
  return {
4186
- Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3953
+ Amplitude: output.Amplitude != null
4187
3954
  ? deserializeAws_restJson1AmplitudeSourceProperties(output.Amplitude, context)
4188
3955
  : undefined,
4189
- CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
3956
+ CustomConnector: output.CustomConnector != null
4190
3957
  ? deserializeAws_restJson1CustomConnectorSourceProperties(output.CustomConnector, context)
4191
3958
  : undefined,
4192
- Datadog: output.Datadog !== undefined && output.Datadog !== null
4193
- ? deserializeAws_restJson1DatadogSourceProperties(output.Datadog, context)
4194
- : undefined,
4195
- Dynatrace: output.Dynatrace !== undefined && output.Dynatrace !== null
3959
+ Datadog: output.Datadog != null ? deserializeAws_restJson1DatadogSourceProperties(output.Datadog, context) : undefined,
3960
+ Dynatrace: output.Dynatrace != null
4196
3961
  ? deserializeAws_restJson1DynatraceSourceProperties(output.Dynatrace, context)
4197
3962
  : undefined,
4198
- GoogleAnalytics: output.GoogleAnalytics !== undefined && output.GoogleAnalytics !== null
3963
+ GoogleAnalytics: output.GoogleAnalytics != null
4199
3964
  ? deserializeAws_restJson1GoogleAnalyticsSourceProperties(output.GoogleAnalytics, context)
4200
3965
  : undefined,
4201
- InforNexus: output.InforNexus !== undefined && output.InforNexus !== null
3966
+ InforNexus: output.InforNexus != null
4202
3967
  ? deserializeAws_restJson1InforNexusSourceProperties(output.InforNexus, context)
4203
3968
  : undefined,
4204
- Marketo: output.Marketo !== undefined && output.Marketo !== null
4205
- ? deserializeAws_restJson1MarketoSourceProperties(output.Marketo, context)
4206
- : undefined,
4207
- S3: output.S3 !== undefined && output.S3 !== null
4208
- ? deserializeAws_restJson1S3SourceProperties(output.S3, context)
4209
- : undefined,
4210
- SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
4211
- ? deserializeAws_restJson1SAPODataSourceProperties(output.SAPOData, context)
4212
- : undefined,
4213
- Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
3969
+ Marketo: output.Marketo != null ? deserializeAws_restJson1MarketoSourceProperties(output.Marketo, context) : undefined,
3970
+ S3: output.S3 != null ? deserializeAws_restJson1S3SourceProperties(output.S3, context) : undefined,
3971
+ SAPOData: output.SAPOData != null ? deserializeAws_restJson1SAPODataSourceProperties(output.SAPOData, context) : undefined,
3972
+ Salesforce: output.Salesforce != null
4214
3973
  ? deserializeAws_restJson1SalesforceSourceProperties(output.Salesforce, context)
4215
3974
  : undefined,
4216
- ServiceNow: output.ServiceNow !== undefined && output.ServiceNow !== null
3975
+ ServiceNow: output.ServiceNow != null
4217
3976
  ? deserializeAws_restJson1ServiceNowSourceProperties(output.ServiceNow, context)
4218
3977
  : undefined,
4219
- Singular: output.Singular !== undefined && output.Singular !== null
4220
- ? deserializeAws_restJson1SingularSourceProperties(output.Singular, context)
4221
- : undefined,
4222
- Slack: output.Slack !== undefined && output.Slack !== null
4223
- ? deserializeAws_restJson1SlackSourceProperties(output.Slack, context)
4224
- : undefined,
4225
- Trendmicro: output.Trendmicro !== undefined && output.Trendmicro !== null
3978
+ Singular: output.Singular != null ? deserializeAws_restJson1SingularSourceProperties(output.Singular, context) : undefined,
3979
+ Slack: output.Slack != null ? deserializeAws_restJson1SlackSourceProperties(output.Slack, context) : undefined,
3980
+ Trendmicro: output.Trendmicro != null
4226
3981
  ? deserializeAws_restJson1TrendmicroSourceProperties(output.Trendmicro, context)
4227
3982
  : undefined,
4228
- Veeva: output.Veeva !== undefined && output.Veeva !== null
4229
- ? deserializeAws_restJson1VeevaSourceProperties(output.Veeva, context)
4230
- : undefined,
4231
- Zendesk: output.Zendesk !== undefined && output.Zendesk !== null
4232
- ? deserializeAws_restJson1ZendeskSourceProperties(output.Zendesk, context)
4233
- : undefined,
3983
+ Veeva: output.Veeva != null ? deserializeAws_restJson1VeevaSourceProperties(output.Veeva, context) : undefined,
3984
+ Zendesk: output.Zendesk != null ? deserializeAws_restJson1ZendeskSourceProperties(output.Zendesk, context) : undefined,
4234
3985
  };
4235
3986
  };
4236
3987
  const deserializeAws_restJson1SourceFieldProperties = (output, context) => {
@@ -4256,10 +4007,10 @@ const deserializeAws_restJson1SourceFlowConfig = (output, context) => {
4256
4007
  apiVersion: (0, smithy_client_1.expectString)(output.apiVersion),
4257
4008
  connectorProfileName: (0, smithy_client_1.expectString)(output.connectorProfileName),
4258
4009
  connectorType: (0, smithy_client_1.expectString)(output.connectorType),
4259
- incrementalPullConfig: output.incrementalPullConfig !== undefined && output.incrementalPullConfig !== null
4010
+ incrementalPullConfig: output.incrementalPullConfig != null
4260
4011
  ? deserializeAws_restJson1IncrementalPullConfig(output.incrementalPullConfig, context)
4261
4012
  : undefined,
4262
- sourceConnectorProperties: output.sourceConnectorProperties !== undefined && output.sourceConnectorProperties !== null
4013
+ sourceConnectorProperties: output.sourceConnectorProperties != null
4263
4014
  ? deserializeAws_restJson1SourceConnectorProperties(output.sourceConnectorProperties, context)
4264
4015
  : undefined,
4265
4016
  };
@@ -4283,9 +4034,7 @@ const deserializeAws_restJson1SupportedApiVersionList = (output, context) => {
4283
4034
  };
4284
4035
  const deserializeAws_restJson1SupportedFieldTypeDetails = (output, context) => {
4285
4036
  return {
4286
- v1: output.v1 !== undefined && output.v1 !== null
4287
- ? deserializeAws_restJson1FieldTypeDetails(output.v1, context)
4288
- : undefined,
4037
+ v1: output.v1 != null ? deserializeAws_restJson1FieldTypeDetails(output.v1, context) : undefined,
4289
4038
  };
4290
4039
  };
4291
4040
  const deserializeAws_restJson1SupportedOperatorList = (output, context) => {
@@ -4334,14 +4083,12 @@ const deserializeAws_restJson1TagMap = (output, context) => {
4334
4083
  };
4335
4084
  const deserializeAws_restJson1Task = (output, context) => {
4336
4085
  return {
4337
- connectorOperator: output.connectorOperator !== undefined && output.connectorOperator !== null
4086
+ connectorOperator: output.connectorOperator != null
4338
4087
  ? deserializeAws_restJson1ConnectorOperator(output.connectorOperator, context)
4339
4088
  : undefined,
4340
4089
  destinationField: (0, smithy_client_1.expectString)(output.destinationField),
4341
- sourceFields: output.sourceFields !== undefined && output.sourceFields !== null
4342
- ? deserializeAws_restJson1SourceFields(output.sourceFields, context)
4343
- : undefined,
4344
- taskProperties: output.taskProperties !== undefined && output.taskProperties !== null
4090
+ sourceFields: output.sourceFields != null ? deserializeAws_restJson1SourceFields(output.sourceFields, context) : undefined,
4091
+ taskProperties: output.taskProperties != null
4345
4092
  ? deserializeAws_restJson1TaskPropertiesMap(output.taskProperties, context)
4346
4093
  : undefined,
4347
4094
  taskType: (0, smithy_client_1.expectString)(output.taskType),
@@ -4404,7 +4151,7 @@ const deserializeAws_restJson1TrendmicroSourceProperties = (output, context) =>
4404
4151
  };
4405
4152
  const deserializeAws_restJson1TriggerConfig = (output, context) => {
4406
4153
  return {
4407
- triggerProperties: output.triggerProperties !== undefined && output.triggerProperties !== null
4154
+ triggerProperties: output.triggerProperties != null
4408
4155
  ? deserializeAws_restJson1TriggerProperties(output.triggerProperties, context)
4409
4156
  : undefined,
4410
4157
  triggerType: (0, smithy_client_1.expectString)(output.triggerType),
@@ -4412,7 +4159,7 @@ const deserializeAws_restJson1TriggerConfig = (output, context) => {
4412
4159
  };
4413
4160
  const deserializeAws_restJson1TriggerProperties = (output, context) => {
4414
4161
  return {
4415
- Scheduled: output.Scheduled !== undefined && output.Scheduled !== null
4162
+ Scheduled: output.Scheduled != null
4416
4163
  ? deserializeAws_restJson1ScheduledTriggerProperties(output.Scheduled, context)
4417
4164
  : undefined,
4418
4165
  };
@@ -4432,7 +4179,7 @@ const deserializeAws_restJson1UpsolverDestinationProperties = (output, context)
4432
4179
  return {
4433
4180
  bucketName: (0, smithy_client_1.expectString)(output.bucketName),
4434
4181
  bucketPrefix: (0, smithy_client_1.expectString)(output.bucketPrefix),
4435
- s3OutputFormatConfig: output.s3OutputFormatConfig !== undefined && output.s3OutputFormatConfig !== null
4182
+ s3OutputFormatConfig: output.s3OutputFormatConfig != null
4436
4183
  ? deserializeAws_restJson1UpsolverS3OutputFormatConfig(output.s3OutputFormatConfig, context)
4437
4184
  : undefined,
4438
4185
  };
@@ -4442,13 +4189,11 @@ const deserializeAws_restJson1UpsolverMetadata = (output, context) => {
4442
4189
  };
4443
4190
  const deserializeAws_restJson1UpsolverS3OutputFormatConfig = (output, context) => {
4444
4191
  return {
4445
- aggregationConfig: output.aggregationConfig !== undefined && output.aggregationConfig !== null
4192
+ aggregationConfig: output.aggregationConfig != null
4446
4193
  ? deserializeAws_restJson1AggregationConfig(output.aggregationConfig, context)
4447
4194
  : undefined,
4448
4195
  fileType: (0, smithy_client_1.expectString)(output.fileType),
4449
- prefixConfig: output.prefixConfig !== undefined && output.prefixConfig !== null
4450
- ? deserializeAws_restJson1PrefixConfig(output.prefixConfig, context)
4451
- : undefined,
4196
+ prefixConfig: output.prefixConfig != null ? deserializeAws_restJson1PrefixConfig(output.prefixConfig, context) : undefined,
4452
4197
  };
4453
4198
  };
4454
4199
  const deserializeAws_restJson1VeevaConnectorProfileProperties = (output, context) => {
@@ -4475,21 +4220,17 @@ const deserializeAws_restJson1ZendeskConnectorProfileProperties = (output, conte
4475
4220
  };
4476
4221
  const deserializeAws_restJson1ZendeskDestinationProperties = (output, context) => {
4477
4222
  return {
4478
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
4223
+ errorHandlingConfig: output.errorHandlingConfig != null
4479
4224
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4480
4225
  : undefined,
4481
- idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
4482
- ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
4483
- : undefined,
4226
+ idFieldNames: output.idFieldNames != null ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context) : undefined,
4484
4227
  object: (0, smithy_client_1.expectString)(output.object),
4485
4228
  writeOperationType: (0, smithy_client_1.expectString)(output.writeOperationType),
4486
4229
  };
4487
4230
  };
4488
4231
  const deserializeAws_restJson1ZendeskMetadata = (output, context) => {
4489
4232
  return {
4490
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
4491
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
4492
- : undefined,
4233
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
4493
4234
  };
4494
4235
  };
4495
4236
  const deserializeAws_restJson1ZendeskSourceProperties = (output, context) => {
@@ -4546,5 +4287,4 @@ const loadRestJsonErrorCode = (output, data) => {
4546
4287
  if (data["__type"] !== undefined) {
4547
4288
  return sanitizeErrorCode(data["__type"]);
4548
4289
  }
4549
- return "";
4550
4290
  };