@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.
@@ -14,13 +14,9 @@ export var serializeAws_restJson1CreateConnectorProfileCommand = function (input
14
14
  "content-type": "application/json",
15
15
  };
16
16
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/create-connector-profile";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.connectionMode !== undefined &&
18
- input.connectionMode !== null && { connectionMode: input.connectionMode })), (input.connectorLabel !== undefined &&
19
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.connectorProfileConfig !== undefined &&
20
- input.connectorProfileConfig !== null && {
17
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.connectionMode != null && { connectionMode: input.connectionMode })), (input.connectorLabel != null && { connectorLabel: input.connectorLabel })), (input.connectorProfileConfig != null && {
21
18
  connectorProfileConfig: serializeAws_restJson1ConnectorProfileConfig(input.connectorProfileConfig, context),
22
- })), (input.connectorProfileName !== undefined &&
23
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.kmsArn !== undefined && input.kmsArn !== null && { kmsArn: input.kmsArn })));
19
+ })), (input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName })), (input.connectorType != null && { connectorType: input.connectorType })), (input.kmsArn != null && { kmsArn: input.kmsArn })));
24
20
  return [2, new __HttpRequest({
25
21
  protocol: protocol,
26
22
  hostname: hostname,
@@ -44,15 +40,11 @@ export var serializeAws_restJson1CreateFlowCommand = function (input, context) {
44
40
  "content-type": "application/json",
45
41
  };
46
42
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/create-flow";
47
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.destinationFlowConfigList !== undefined &&
48
- input.destinationFlowConfigList !== null && {
43
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.destinationFlowConfigList != null && {
49
44
  destinationFlowConfigList: serializeAws_restJson1DestinationFlowConfigList(input.destinationFlowConfigList, context),
50
- })), (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })), (input.kmsArn !== undefined && input.kmsArn !== null && { kmsArn: input.kmsArn })), (input.sourceFlowConfig !== undefined &&
51
- input.sourceFlowConfig !== null && {
45
+ })), (input.flowName != null && { flowName: input.flowName })), (input.kmsArn != null && { kmsArn: input.kmsArn })), (input.sourceFlowConfig != null && {
52
46
  sourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.sourceFlowConfig, context),
53
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.tasks !== undefined &&
54
- input.tasks !== null && { tasks: serializeAws_restJson1Tasks(input.tasks, context) })), (input.triggerConfig !== undefined &&
55
- input.triggerConfig !== null && {
47
+ })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.tasks != null && { tasks: serializeAws_restJson1Tasks(input.tasks, context) })), (input.triggerConfig != null && {
56
48
  triggerConfig: serializeAws_restJson1TriggerConfig(input.triggerConfig, context),
57
49
  })));
58
50
  return [2, new __HttpRequest({
@@ -78,8 +70,7 @@ export var serializeAws_restJson1DeleteConnectorProfileCommand = function (input
78
70
  "content-type": "application/json",
79
71
  };
80
72
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-connector-profile";
81
- body = JSON.stringify(__assign(__assign({}, (input.connectorProfileName !== undefined &&
82
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete })));
73
+ body = JSON.stringify(__assign(__assign({}, (input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName })), (input.forceDelete != null && { forceDelete: input.forceDelete })));
83
74
  return [2, new __HttpRequest({
84
75
  protocol: protocol,
85
76
  hostname: hostname,
@@ -103,7 +94,7 @@ export var serializeAws_restJson1DeleteFlowCommand = function (input, context) {
103
94
  "content-type": "application/json",
104
95
  };
105
96
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-flow";
106
- body = JSON.stringify(__assign(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })), (input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete })));
97
+ body = JSON.stringify(__assign(__assign({}, (input.flowName != null && { flowName: input.flowName })), (input.forceDelete != null && { forceDelete: input.forceDelete })));
107
98
  return [2, new __HttpRequest({
108
99
  protocol: protocol,
109
100
  hostname: hostname,
@@ -127,8 +118,7 @@ export var serializeAws_restJson1DescribeConnectorCommand = function (input, con
127
118
  "content-type": "application/json",
128
119
  };
129
120
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-connector";
130
- body = JSON.stringify(__assign(__assign({}, (input.connectorLabel !== undefined &&
131
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })));
121
+ body = JSON.stringify(__assign(__assign({}, (input.connectorLabel != null && { connectorLabel: input.connectorLabel })), (input.connectorType != null && { connectorType: input.connectorType })));
132
122
  return [2, new __HttpRequest({
133
123
  protocol: protocol,
134
124
  hostname: hostname,
@@ -152,9 +142,7 @@ export var serializeAws_restJson1DescribeConnectorEntityCommand = function (inpu
152
142
  "content-type": "application/json",
153
143
  };
154
144
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-connector-entity";
155
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorEntityName !== undefined &&
156
- input.connectorEntityName !== null && { connectorEntityName: input.connectorEntityName })), (input.connectorProfileName !== undefined &&
157
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })));
145
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.apiVersion != null && { apiVersion: input.apiVersion })), (input.connectorEntityName != null && { connectorEntityName: input.connectorEntityName })), (input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName })), (input.connectorType != null && { connectorType: input.connectorType })));
158
146
  return [2, new __HttpRequest({
159
147
  protocol: protocol,
160
148
  hostname: hostname,
@@ -178,11 +166,9 @@ export var serializeAws_restJson1DescribeConnectorProfilesCommand = function (in
178
166
  "content-type": "application/json",
179
167
  };
180
168
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-connector-profiles";
181
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.connectorLabel !== undefined &&
182
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.connectorProfileNames !== undefined &&
183
- input.connectorProfileNames !== null && {
169
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.connectorLabel != null && { connectorLabel: input.connectorLabel })), (input.connectorProfileNames != null && {
184
170
  connectorProfileNames: serializeAws_restJson1ConnectorProfileNameList(input.connectorProfileNames, context),
185
- })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
171
+ })), (input.connectorType != null && { connectorType: input.connectorType })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
186
172
  return [2, new __HttpRequest({
187
173
  protocol: protocol,
188
174
  hostname: hostname,
@@ -206,10 +192,9 @@ export var serializeAws_restJson1DescribeConnectorsCommand = function (input, co
206
192
  "content-type": "application/json",
207
193
  };
208
194
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-connectors";
209
- body = JSON.stringify(__assign(__assign(__assign({}, (input.connectorTypes !== undefined &&
210
- input.connectorTypes !== null && {
195
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.connectorTypes != null && {
211
196
  connectorTypes: serializeAws_restJson1ConnectorTypeList(input.connectorTypes, context),
212
- })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
197
+ })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
213
198
  return [2, new __HttpRequest({
214
199
  protocol: protocol,
215
200
  hostname: hostname,
@@ -233,7 +218,7 @@ export var serializeAws_restJson1DescribeFlowCommand = function (input, context)
233
218
  "content-type": "application/json",
234
219
  };
235
220
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-flow";
236
- body = JSON.stringify(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })));
221
+ body = JSON.stringify(__assign({}, (input.flowName != null && { flowName: input.flowName })));
237
222
  return [2, new __HttpRequest({
238
223
  protocol: protocol,
239
224
  hostname: hostname,
@@ -257,7 +242,7 @@ export var serializeAws_restJson1DescribeFlowExecutionRecordsCommand = function
257
242
  "content-type": "application/json",
258
243
  };
259
244
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describe-flow-execution-records";
260
- body = JSON.stringify(__assign(__assign(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
245
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.flowName != null && { flowName: input.flowName })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
261
246
  return [2, new __HttpRequest({
262
247
  protocol: protocol,
263
248
  hostname: hostname,
@@ -281,8 +266,7 @@ export var serializeAws_restJson1ListConnectorEntitiesCommand = function (input,
281
266
  "content-type": "application/json",
282
267
  };
283
268
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-connector-entities";
284
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorProfileName !== undefined &&
285
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.entitiesPath !== undefined && input.entitiesPath !== null && { entitiesPath: input.entitiesPath })));
269
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.apiVersion != null && { apiVersion: input.apiVersion })), (input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName })), (input.connectorType != null && { connectorType: input.connectorType })), (input.entitiesPath != null && { entitiesPath: input.entitiesPath })));
286
270
  return [2, new __HttpRequest({
287
271
  protocol: protocol,
288
272
  hostname: hostname,
@@ -306,7 +290,7 @@ export var serializeAws_restJson1ListConnectorsCommand = function (input, contex
306
290
  "content-type": "application/json",
307
291
  };
308
292
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-connectors";
309
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
293
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
310
294
  return [2, new __HttpRequest({
311
295
  protocol: protocol,
312
296
  hostname: hostname,
@@ -330,7 +314,7 @@ export var serializeAws_restJson1ListFlowsCommand = function (input, context) {
330
314
  "content-type": "application/json",
331
315
  };
332
316
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-flows";
333
- body = JSON.stringify(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
317
+ body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
334
318
  return [2, new __HttpRequest({
335
319
  protocol: protocol,
336
320
  hostname: hostname,
@@ -385,12 +369,9 @@ export var serializeAws_restJson1RegisterConnectorCommand = function (input, con
385
369
  "content-type": "application/json",
386
370
  };
387
371
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/register-connector";
388
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.connectorLabel !== undefined &&
389
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.connectorProvisioningConfig !== undefined &&
390
- input.connectorProvisioningConfig !== null && {
372
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.connectorLabel != null && { connectorLabel: input.connectorLabel })), (input.connectorProvisioningConfig != null && {
391
373
  connectorProvisioningConfig: serializeAws_restJson1ConnectorProvisioningConfig(input.connectorProvisioningConfig, context),
392
- })), (input.connectorProvisioningType !== undefined &&
393
- input.connectorProvisioningType !== null && { connectorProvisioningType: input.connectorProvisioningType })), (input.description !== undefined && input.description !== null && { description: input.description })));
374
+ })), (input.connectorProvisioningType != null && { connectorProvisioningType: input.connectorProvisioningType })), (input.description != null && { description: input.description })));
394
375
  return [2, new __HttpRequest({
395
376
  protocol: protocol,
396
377
  hostname: hostname,
@@ -414,7 +395,7 @@ export var serializeAws_restJson1StartFlowCommand = function (input, context) {
414
395
  "content-type": "application/json",
415
396
  };
416
397
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-flow";
417
- body = JSON.stringify(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })));
398
+ body = JSON.stringify(__assign({}, (input.flowName != null && { flowName: input.flowName })));
418
399
  return [2, new __HttpRequest({
419
400
  protocol: protocol,
420
401
  hostname: hostname,
@@ -438,7 +419,7 @@ export var serializeAws_restJson1StopFlowCommand = function (input, context) { r
438
419
  "content-type": "application/json",
439
420
  };
440
421
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stop-flow";
441
- body = JSON.stringify(__assign({}, (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })));
422
+ body = JSON.stringify(__assign({}, (input.flowName != null && { flowName: input.flowName })));
442
423
  return [2, new __HttpRequest({
443
424
  protocol: protocol,
444
425
  hostname: hostname,
@@ -472,7 +453,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
472
453
  else {
473
454
  throw new Error("No value provided for input HTTP label: resourceArn.");
474
455
  }
475
- body = JSON.stringify(__assign({}, (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
456
+ body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
476
457
  return [2, new __HttpRequest({
477
458
  protocol: protocol,
478
459
  hostname: hostname,
@@ -496,8 +477,7 @@ export var serializeAws_restJson1UnregisterConnectorCommand = function (input, c
496
477
  "content-type": "application/json",
497
478
  };
498
479
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/unregister-connector";
499
- body = JSON.stringify(__assign(__assign({}, (input.connectorLabel !== undefined &&
500
- input.connectorLabel !== null && { connectorLabel: input.connectorLabel })), (input.forceDelete !== undefined && input.forceDelete !== null && { forceDelete: input.forceDelete })));
480
+ body = JSON.stringify(__assign(__assign({}, (input.connectorLabel != null && { connectorLabel: input.connectorLabel })), (input.forceDelete != null && { forceDelete: input.forceDelete })));
501
481
  return [2, new __HttpRequest({
502
482
  protocol: protocol,
503
483
  hostname: hostname,
@@ -554,12 +534,9 @@ export var serializeAws_restJson1UpdateConnectorProfileCommand = function (input
554
534
  "content-type": "application/json",
555
535
  };
556
536
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-connector-profile";
557
- body = JSON.stringify(__assign(__assign(__assign({}, (input.connectionMode !== undefined &&
558
- input.connectionMode !== null && { connectionMode: input.connectionMode })), (input.connectorProfileConfig !== undefined &&
559
- input.connectorProfileConfig !== null && {
537
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.connectionMode != null && { connectionMode: input.connectionMode })), (input.connectorProfileConfig != null && {
560
538
  connectorProfileConfig: serializeAws_restJson1ConnectorProfileConfig(input.connectorProfileConfig, context),
561
- })), (input.connectorProfileName !== undefined &&
562
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })));
539
+ })), (input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName })));
563
540
  return [2, new __HttpRequest({
564
541
  protocol: protocol,
565
542
  hostname: hostname,
@@ -583,15 +560,11 @@ export var serializeAws_restJson1UpdateFlowCommand = function (input, context) {
583
560
  "content-type": "application/json",
584
561
  };
585
562
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-flow";
586
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.destinationFlowConfigList !== undefined &&
587
- input.destinationFlowConfigList !== null && {
563
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.destinationFlowConfigList != null && {
588
564
  destinationFlowConfigList: serializeAws_restJson1DestinationFlowConfigList(input.destinationFlowConfigList, context),
589
- })), (input.flowName !== undefined && input.flowName !== null && { flowName: input.flowName })), (input.sourceFlowConfig !== undefined &&
590
- input.sourceFlowConfig !== null && {
565
+ })), (input.flowName != null && { flowName: input.flowName })), (input.sourceFlowConfig != null && {
591
566
  sourceFlowConfig: serializeAws_restJson1SourceFlowConfig(input.sourceFlowConfig, context),
592
- })), (input.tasks !== undefined &&
593
- input.tasks !== null && { tasks: serializeAws_restJson1Tasks(input.tasks, context) })), (input.triggerConfig !== undefined &&
594
- input.triggerConfig !== null && {
567
+ })), (input.tasks != null && { tasks: serializeAws_restJson1Tasks(input.tasks, context) })), (input.triggerConfig != null && {
595
568
  triggerConfig: serializeAws_restJson1TriggerConfig(input.triggerConfig, context),
596
569
  })));
597
570
  return [2, new __HttpRequest({
@@ -631,7 +604,7 @@ export var deserializeAws_restJson1CreateConnectorProfileCommand = function (out
631
604
  });
632
605
  }); };
633
606
  var deserializeAws_restJson1CreateConnectorProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
634
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
607
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
635
608
  var _c;
636
609
  return __generator(this, function (_d) {
637
610
  switch (_d.label) {
@@ -641,7 +614,6 @@ var deserializeAws_restJson1CreateConnectorProfileCommandError = function (outpu
641
614
  return [4, parseBody(output.body, context)];
642
615
  case 1:
643
616
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
644
- errorCode = "UnknownError";
645
617
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
646
618
  _b = errorCode;
647
619
  switch (_b) {
@@ -669,10 +641,12 @@ var deserializeAws_restJson1CreateConnectorProfileCommandError = function (outpu
669
641
  case 11: throw _d.sent();
670
642
  case 12:
671
643
  parsedBody = parsedOutput.body;
644
+ $metadata = deserializeMetadata(output);
645
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
672
646
  response = new __BaseException({
673
- name: parsedBody.code || parsedBody.Code || errorCode,
647
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
674
648
  $fault: "client",
675
- $metadata: deserializeMetadata(output),
649
+ $metadata: $metadata,
676
650
  });
677
651
  throw __decorateServiceException(response, parsedBody);
678
652
  }
@@ -707,7 +681,7 @@ export var deserializeAws_restJson1CreateFlowCommand = function (output, context
707
681
  });
708
682
  }); };
709
683
  var deserializeAws_restJson1CreateFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
710
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
684
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
711
685
  var _c;
712
686
  return __generator(this, function (_d) {
713
687
  switch (_d.label) {
@@ -717,7 +691,6 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
717
691
  return [4, parseBody(output.body, context)];
718
692
  case 1:
719
693
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
720
- errorCode = "UnknownError";
721
694
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
722
695
  _b = errorCode;
723
696
  switch (_b) {
@@ -753,10 +726,12 @@ var deserializeAws_restJson1CreateFlowCommandError = function (output, context)
753
726
  case 15: throw _d.sent();
754
727
  case 16:
755
728
  parsedBody = parsedOutput.body;
729
+ $metadata = deserializeMetadata(output);
730
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
756
731
  response = new __BaseException({
757
- name: parsedBody.code || parsedBody.Code || errorCode,
732
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
758
733
  $fault: "client",
759
- $metadata: deserializeMetadata(output),
734
+ $metadata: $metadata,
760
735
  });
761
736
  throw __decorateServiceException(response, parsedBody);
762
737
  }
@@ -781,7 +756,7 @@ export var deserializeAws_restJson1DeleteConnectorProfileCommand = function (out
781
756
  });
782
757
  }); };
783
758
  var deserializeAws_restJson1DeleteConnectorProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
784
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
759
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
785
760
  var _c;
786
761
  return __generator(this, function (_d) {
787
762
  switch (_d.label) {
@@ -791,7 +766,6 @@ var deserializeAws_restJson1DeleteConnectorProfileCommandError = function (outpu
791
766
  return [4, parseBody(output.body, context)];
792
767
  case 1:
793
768
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
794
- errorCode = "UnknownError";
795
769
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
796
770
  _b = errorCode;
797
771
  switch (_b) {
@@ -811,10 +785,12 @@ var deserializeAws_restJson1DeleteConnectorProfileCommandError = function (outpu
811
785
  case 7: throw _d.sent();
812
786
  case 8:
813
787
  parsedBody = parsedOutput.body;
788
+ $metadata = deserializeMetadata(output);
789
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
814
790
  response = new __BaseException({
815
- name: parsedBody.code || parsedBody.Code || errorCode,
791
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
816
792
  $fault: "client",
817
- $metadata: deserializeMetadata(output),
793
+ $metadata: $metadata,
818
794
  });
819
795
  throw __decorateServiceException(response, parsedBody);
820
796
  }
@@ -839,7 +815,7 @@ export var deserializeAws_restJson1DeleteFlowCommand = function (output, context
839
815
  });
840
816
  }); };
841
817
  var deserializeAws_restJson1DeleteFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
842
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
818
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
843
819
  var _c;
844
820
  return __generator(this, function (_d) {
845
821
  switch (_d.label) {
@@ -849,7 +825,6 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
849
825
  return [4, parseBody(output.body, context)];
850
826
  case 1:
851
827
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
852
- errorCode = "UnknownError";
853
828
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
854
829
  _b = errorCode;
855
830
  switch (_b) {
@@ -869,10 +844,12 @@ var deserializeAws_restJson1DeleteFlowCommandError = function (output, context)
869
844
  case 7: throw _d.sent();
870
845
  case 8:
871
846
  parsedBody = parsedOutput.body;
847
+ $metadata = deserializeMetadata(output);
848
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
872
849
  response = new __BaseException({
873
- name: parsedBody.code || parsedBody.Code || errorCode,
850
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
874
851
  $fault: "client",
875
- $metadata: deserializeMetadata(output),
852
+ $metadata: $metadata,
876
853
  });
877
854
  throw __decorateServiceException(response, parsedBody);
878
855
  }
@@ -903,7 +880,7 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
903
880
  });
904
881
  }); };
905
882
  var deserializeAws_restJson1DescribeConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
906
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
883
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
907
884
  var _c;
908
885
  return __generator(this, function (_d) {
909
886
  switch (_d.label) {
@@ -913,7 +890,6 @@ var deserializeAws_restJson1DescribeConnectorCommandError = function (output, co
913
890
  return [4, parseBody(output.body, context)];
914
891
  case 1:
915
892
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
916
- errorCode = "UnknownError";
917
893
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
918
894
  _b = errorCode;
919
895
  switch (_b) {
@@ -933,10 +909,12 @@ var deserializeAws_restJson1DescribeConnectorCommandError = function (output, co
933
909
  case 7: throw _d.sent();
934
910
  case 8:
935
911
  parsedBody = parsedOutput.body;
912
+ $metadata = deserializeMetadata(output);
913
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
936
914
  response = new __BaseException({
937
- name: parsedBody.code || parsedBody.Code || errorCode,
915
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
938
916
  $fault: "client",
939
- $metadata: deserializeMetadata(output),
917
+ $metadata: $metadata,
940
918
  });
941
919
  throw __decorateServiceException(response, parsedBody);
942
920
  }
@@ -967,7 +945,7 @@ export var deserializeAws_restJson1DescribeConnectorEntityCommand = function (ou
967
945
  });
968
946
  }); };
969
947
  var deserializeAws_restJson1DescribeConnectorEntityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
970
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
948
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
971
949
  var _c;
972
950
  return __generator(this, function (_d) {
973
951
  switch (_d.label) {
@@ -977,7 +955,6 @@ var deserializeAws_restJson1DescribeConnectorEntityCommandError = function (outp
977
955
  return [4, parseBody(output.body, context)];
978
956
  case 1:
979
957
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
980
- errorCode = "UnknownError";
981
958
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
982
959
  _b = errorCode;
983
960
  switch (_b) {
@@ -1005,10 +982,12 @@ var deserializeAws_restJson1DescribeConnectorEntityCommandError = function (outp
1005
982
  case 11: throw _d.sent();
1006
983
  case 12:
1007
984
  parsedBody = parsedOutput.body;
985
+ $metadata = deserializeMetadata(output);
986
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1008
987
  response = new __BaseException({
1009
- name: parsedBody.code || parsedBody.Code || errorCode,
988
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1010
989
  $fault: "client",
1011
- $metadata: deserializeMetadata(output),
990
+ $metadata: $metadata,
1012
991
  });
1013
992
  throw __decorateServiceException(response, parsedBody);
1014
993
  }
@@ -1043,7 +1022,7 @@ export var deserializeAws_restJson1DescribeConnectorProfilesCommand = function (
1043
1022
  });
1044
1023
  }); };
1045
1024
  var deserializeAws_restJson1DescribeConnectorProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1046
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1025
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1047
1026
  var _c;
1048
1027
  return __generator(this, function (_d) {
1049
1028
  switch (_d.label) {
@@ -1053,7 +1032,6 @@ var deserializeAws_restJson1DescribeConnectorProfilesCommandError = function (ou
1053
1032
  return [4, parseBody(output.body, context)];
1054
1033
  case 1:
1055
1034
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1056
- errorCode = "UnknownError";
1057
1035
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1058
1036
  _b = errorCode;
1059
1037
  switch (_b) {
@@ -1069,10 +1047,12 @@ var deserializeAws_restJson1DescribeConnectorProfilesCommandError = function (ou
1069
1047
  case 5: throw _d.sent();
1070
1048
  case 6:
1071
1049
  parsedBody = parsedOutput.body;
1050
+ $metadata = deserializeMetadata(output);
1051
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1072
1052
  response = new __BaseException({
1073
- name: parsedBody.code || parsedBody.Code || errorCode,
1053
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1074
1054
  $fault: "client",
1075
- $metadata: deserializeMetadata(output),
1055
+ $metadata: $metadata,
1076
1056
  });
1077
1057
  throw __decorateServiceException(response, parsedBody);
1078
1058
  }
@@ -1111,7 +1091,7 @@ export var deserializeAws_restJson1DescribeConnectorsCommand = function (output,
1111
1091
  });
1112
1092
  }); };
1113
1093
  var deserializeAws_restJson1DescribeConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1114
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1094
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1115
1095
  var _c;
1116
1096
  return __generator(this, function (_d) {
1117
1097
  switch (_d.label) {
@@ -1121,7 +1101,6 @@ var deserializeAws_restJson1DescribeConnectorsCommandError = function (output, c
1121
1101
  return [4, parseBody(output.body, context)];
1122
1102
  case 1:
1123
1103
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1124
- errorCode = "UnknownError";
1125
1104
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1126
1105
  _b = errorCode;
1127
1106
  switch (_b) {
@@ -1137,10 +1116,12 @@ var deserializeAws_restJson1DescribeConnectorsCommandError = function (output, c
1137
1116
  case 5: throw _d.sent();
1138
1117
  case 6:
1139
1118
  parsedBody = parsedOutput.body;
1119
+ $metadata = deserializeMetadata(output);
1120
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1140
1121
  response = new __BaseException({
1141
- name: parsedBody.code || parsedBody.Code || errorCode,
1122
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1142
1123
  $fault: "client",
1143
- $metadata: deserializeMetadata(output),
1124
+ $metadata: $metadata,
1144
1125
  });
1145
1126
  throw __decorateServiceException(response, parsedBody);
1146
1127
  }
@@ -1231,7 +1212,7 @@ export var deserializeAws_restJson1DescribeFlowCommand = function (output, conte
1231
1212
  });
1232
1213
  }); };
1233
1214
  var deserializeAws_restJson1DescribeFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1234
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1215
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1235
1216
  var _c;
1236
1217
  return __generator(this, function (_d) {
1237
1218
  switch (_d.label) {
@@ -1241,7 +1222,6 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
1241
1222
  return [4, parseBody(output.body, context)];
1242
1223
  case 1:
1243
1224
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1244
- errorCode = "UnknownError";
1245
1225
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1246
1226
  _b = errorCode;
1247
1227
  switch (_b) {
@@ -1257,10 +1237,12 @@ var deserializeAws_restJson1DescribeFlowCommandError = function (output, context
1257
1237
  case 5: throw _d.sent();
1258
1238
  case 6:
1259
1239
  parsedBody = parsedOutput.body;
1240
+ $metadata = deserializeMetadata(output);
1241
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1260
1242
  response = new __BaseException({
1261
- name: parsedBody.code || parsedBody.Code || errorCode,
1243
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1262
1244
  $fault: "client",
1263
- $metadata: deserializeMetadata(output),
1245
+ $metadata: $metadata,
1264
1246
  });
1265
1247
  throw __decorateServiceException(response, parsedBody);
1266
1248
  }
@@ -1295,7 +1277,7 @@ export var deserializeAws_restJson1DescribeFlowExecutionRecordsCommand = functio
1295
1277
  });
1296
1278
  }); };
1297
1279
  var deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1298
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1280
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1299
1281
  var _c;
1300
1282
  return __generator(this, function (_d) {
1301
1283
  switch (_d.label) {
@@ -1305,7 +1287,6 @@ var deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = function
1305
1287
  return [4, parseBody(output.body, context)];
1306
1288
  case 1:
1307
1289
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1308
- errorCode = "UnknownError";
1309
1290
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1310
1291
  _b = errorCode;
1311
1292
  switch (_b) {
@@ -1325,10 +1306,12 @@ var deserializeAws_restJson1DescribeFlowExecutionRecordsCommandError = function
1325
1306
  case 7: throw _d.sent();
1326
1307
  case 8:
1327
1308
  parsedBody = parsedOutput.body;
1309
+ $metadata = deserializeMetadata(output);
1310
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1328
1311
  response = new __BaseException({
1329
- name: parsedBody.code || parsedBody.Code || errorCode,
1312
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1330
1313
  $fault: "client",
1331
- $metadata: deserializeMetadata(output),
1314
+ $metadata: $metadata,
1332
1315
  });
1333
1316
  throw __decorateServiceException(response, parsedBody);
1334
1317
  }
@@ -1359,7 +1342,7 @@ export var deserializeAws_restJson1ListConnectorEntitiesCommand = function (outp
1359
1342
  });
1360
1343
  }); };
1361
1344
  var deserializeAws_restJson1ListConnectorEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1362
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1345
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1363
1346
  var _c;
1364
1347
  return __generator(this, function (_d) {
1365
1348
  switch (_d.label) {
@@ -1369,7 +1352,6 @@ var deserializeAws_restJson1ListConnectorEntitiesCommandError = function (output
1369
1352
  return [4, parseBody(output.body, context)];
1370
1353
  case 1:
1371
1354
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1372
- errorCode = "UnknownError";
1373
1355
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1374
1356
  _b = errorCode;
1375
1357
  switch (_b) {
@@ -1397,10 +1379,12 @@ var deserializeAws_restJson1ListConnectorEntitiesCommandError = function (output
1397
1379
  case 11: throw _d.sent();
1398
1380
  case 12:
1399
1381
  parsedBody = parsedOutput.body;
1382
+ $metadata = deserializeMetadata(output);
1383
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1400
1384
  response = new __BaseException({
1401
- name: parsedBody.code || parsedBody.Code || errorCode,
1385
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1402
1386
  $fault: "client",
1403
- $metadata: deserializeMetadata(output),
1387
+ $metadata: $metadata,
1404
1388
  });
1405
1389
  throw __decorateServiceException(response, parsedBody);
1406
1390
  }
@@ -1435,7 +1419,7 @@ export var deserializeAws_restJson1ListConnectorsCommand = function (output, con
1435
1419
  });
1436
1420
  }); };
1437
1421
  var deserializeAws_restJson1ListConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1438
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1422
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1439
1423
  var _c;
1440
1424
  return __generator(this, function (_d) {
1441
1425
  switch (_d.label) {
@@ -1445,7 +1429,6 @@ var deserializeAws_restJson1ListConnectorsCommandError = function (output, conte
1445
1429
  return [4, parseBody(output.body, context)];
1446
1430
  case 1:
1447
1431
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1448
- errorCode = "UnknownError";
1449
1432
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1450
1433
  _b = errorCode;
1451
1434
  switch (_b) {
@@ -1461,10 +1444,12 @@ var deserializeAws_restJson1ListConnectorsCommandError = function (output, conte
1461
1444
  case 5: throw _d.sent();
1462
1445
  case 6:
1463
1446
  parsedBody = parsedOutput.body;
1447
+ $metadata = deserializeMetadata(output);
1448
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1464
1449
  response = new __BaseException({
1465
- name: parsedBody.code || parsedBody.Code || errorCode,
1450
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1466
1451
  $fault: "client",
1467
- $metadata: deserializeMetadata(output),
1452
+ $metadata: $metadata,
1468
1453
  });
1469
1454
  throw __decorateServiceException(response, parsedBody);
1470
1455
  }
@@ -1499,7 +1484,7 @@ export var deserializeAws_restJson1ListFlowsCommand = function (output, context)
1499
1484
  });
1500
1485
  }); };
1501
1486
  var deserializeAws_restJson1ListFlowsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1502
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1487
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1503
1488
  var _c;
1504
1489
  return __generator(this, function (_d) {
1505
1490
  switch (_d.label) {
@@ -1509,7 +1494,6 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
1509
1494
  return [4, parseBody(output.body, context)];
1510
1495
  case 1:
1511
1496
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1512
- errorCode = "UnknownError";
1513
1497
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1514
1498
  _b = errorCode;
1515
1499
  switch (_b) {
@@ -1525,10 +1509,12 @@ var deserializeAws_restJson1ListFlowsCommandError = function (output, context) {
1525
1509
  case 5: throw _d.sent();
1526
1510
  case 6:
1527
1511
  parsedBody = parsedOutput.body;
1512
+ $metadata = deserializeMetadata(output);
1513
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1528
1514
  response = new __BaseException({
1529
- name: parsedBody.code || parsedBody.Code || errorCode,
1515
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1530
1516
  $fault: "client",
1531
- $metadata: deserializeMetadata(output),
1517
+ $metadata: $metadata,
1532
1518
  });
1533
1519
  throw __decorateServiceException(response, parsedBody);
1534
1520
  }
@@ -1559,7 +1545,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
1559
1545
  });
1560
1546
  }); };
1561
1547
  var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1562
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1548
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1563
1549
  var _c;
1564
1550
  return __generator(this, function (_d) {
1565
1551
  switch (_d.label) {
@@ -1569,7 +1555,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
1569
1555
  return [4, parseBody(output.body, context)];
1570
1556
  case 1:
1571
1557
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1572
- errorCode = "UnknownError";
1573
1558
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1574
1559
  _b = errorCode;
1575
1560
  switch (_b) {
@@ -1589,10 +1574,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
1589
1574
  case 7: throw _d.sent();
1590
1575
  case 8:
1591
1576
  parsedBody = parsedOutput.body;
1577
+ $metadata = deserializeMetadata(output);
1578
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1592
1579
  response = new __BaseException({
1593
- name: parsedBody.code || parsedBody.Code || errorCode,
1580
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1594
1581
  $fault: "client",
1595
- $metadata: deserializeMetadata(output),
1582
+ $metadata: $metadata,
1596
1583
  });
1597
1584
  throw __decorateServiceException(response, parsedBody);
1598
1585
  }
@@ -1623,7 +1610,7 @@ export var deserializeAws_restJson1RegisterConnectorCommand = function (output,
1623
1610
  });
1624
1611
  }); };
1625
1612
  var deserializeAws_restJson1RegisterConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1626
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1613
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1627
1614
  var _c;
1628
1615
  return __generator(this, function (_d) {
1629
1616
  switch (_d.label) {
@@ -1633,7 +1620,6 @@ var deserializeAws_restJson1RegisterConnectorCommandError = function (output, co
1633
1620
  return [4, parseBody(output.body, context)];
1634
1621
  case 1:
1635
1622
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1636
- errorCode = "UnknownError";
1637
1623
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1638
1624
  _b = errorCode;
1639
1625
  switch (_b) {
@@ -1677,10 +1663,12 @@ var deserializeAws_restJson1RegisterConnectorCommandError = function (output, co
1677
1663
  case 19: throw _d.sent();
1678
1664
  case 20:
1679
1665
  parsedBody = parsedOutput.body;
1666
+ $metadata = deserializeMetadata(output);
1667
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1680
1668
  response = new __BaseException({
1681
- name: parsedBody.code || parsedBody.Code || errorCode,
1669
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1682
1670
  $fault: "client",
1683
- $metadata: deserializeMetadata(output),
1671
+ $metadata: $metadata,
1684
1672
  });
1685
1673
  throw __decorateServiceException(response, parsedBody);
1686
1674
  }
@@ -1719,7 +1707,7 @@ export var deserializeAws_restJson1StartFlowCommand = function (output, context)
1719
1707
  });
1720
1708
  }); };
1721
1709
  var deserializeAws_restJson1StartFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1722
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1710
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1723
1711
  var _c;
1724
1712
  return __generator(this, function (_d) {
1725
1713
  switch (_d.label) {
@@ -1729,7 +1717,6 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
1729
1717
  return [4, parseBody(output.body, context)];
1730
1718
  case 1:
1731
1719
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1732
- errorCode = "UnknownError";
1733
1720
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1734
1721
  _b = errorCode;
1735
1722
  switch (_b) {
@@ -1753,10 +1740,12 @@ var deserializeAws_restJson1StartFlowCommandError = function (output, context) {
1753
1740
  case 9: throw _d.sent();
1754
1741
  case 10:
1755
1742
  parsedBody = parsedOutput.body;
1743
+ $metadata = deserializeMetadata(output);
1744
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1756
1745
  response = new __BaseException({
1757
- name: parsedBody.code || parsedBody.Code || errorCode,
1746
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1758
1747
  $fault: "client",
1759
- $metadata: deserializeMetadata(output),
1748
+ $metadata: $metadata,
1760
1749
  });
1761
1750
  throw __decorateServiceException(response, parsedBody);
1762
1751
  }
@@ -1791,7 +1780,7 @@ export var deserializeAws_restJson1StopFlowCommand = function (output, context)
1791
1780
  });
1792
1781
  }); };
1793
1782
  var deserializeAws_restJson1StopFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1794
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1783
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1795
1784
  var _c;
1796
1785
  return __generator(this, function (_d) {
1797
1786
  switch (_d.label) {
@@ -1801,7 +1790,6 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
1801
1790
  return [4, parseBody(output.body, context)];
1802
1791
  case 1:
1803
1792
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1804
- errorCode = "UnknownError";
1805
1793
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1806
1794
  _b = errorCode;
1807
1795
  switch (_b) {
@@ -1825,10 +1813,12 @@ var deserializeAws_restJson1StopFlowCommandError = function (output, context) {
1825
1813
  case 9: throw _d.sent();
1826
1814
  case 10:
1827
1815
  parsedBody = parsedOutput.body;
1816
+ $metadata = deserializeMetadata(output);
1817
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1828
1818
  response = new __BaseException({
1829
- name: parsedBody.code || parsedBody.Code || errorCode,
1819
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1830
1820
  $fault: "client",
1831
- $metadata: deserializeMetadata(output),
1821
+ $metadata: $metadata,
1832
1822
  });
1833
1823
  throw __decorateServiceException(response, parsedBody);
1834
1824
  }
@@ -1853,7 +1843,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
1853
1843
  });
1854
1844
  }); };
1855
1845
  var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1856
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1846
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1857
1847
  var _c;
1858
1848
  return __generator(this, function (_d) {
1859
1849
  switch (_d.label) {
@@ -1863,7 +1853,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
1863
1853
  return [4, parseBody(output.body, context)];
1864
1854
  case 1:
1865
1855
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1866
- errorCode = "UnknownError";
1867
1856
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1868
1857
  _b = errorCode;
1869
1858
  switch (_b) {
@@ -1883,10 +1872,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
1883
1872
  case 7: throw _d.sent();
1884
1873
  case 8:
1885
1874
  parsedBody = parsedOutput.body;
1875
+ $metadata = deserializeMetadata(output);
1876
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1886
1877
  response = new __BaseException({
1887
- name: parsedBody.code || parsedBody.Code || errorCode,
1878
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1888
1879
  $fault: "client",
1889
- $metadata: deserializeMetadata(output),
1880
+ $metadata: $metadata,
1890
1881
  });
1891
1882
  throw __decorateServiceException(response, parsedBody);
1892
1883
  }
@@ -1911,7 +1902,7 @@ export var deserializeAws_restJson1UnregisterConnectorCommand = function (output
1911
1902
  });
1912
1903
  }); };
1913
1904
  var deserializeAws_restJson1UnregisterConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1914
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1905
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1915
1906
  var _c;
1916
1907
  return __generator(this, function (_d) {
1917
1908
  switch (_d.label) {
@@ -1921,7 +1912,6 @@ var deserializeAws_restJson1UnregisterConnectorCommandError = function (output,
1921
1912
  return [4, parseBody(output.body, context)];
1922
1913
  case 1:
1923
1914
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1924
- errorCode = "UnknownError";
1925
1915
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1926
1916
  _b = errorCode;
1927
1917
  switch (_b) {
@@ -1941,10 +1931,12 @@ var deserializeAws_restJson1UnregisterConnectorCommandError = function (output,
1941
1931
  case 7: throw _d.sent();
1942
1932
  case 8:
1943
1933
  parsedBody = parsedOutput.body;
1934
+ $metadata = deserializeMetadata(output);
1935
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1944
1936
  response = new __BaseException({
1945
- name: parsedBody.code || parsedBody.Code || errorCode,
1937
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1946
1938
  $fault: "client",
1947
- $metadata: deserializeMetadata(output),
1939
+ $metadata: $metadata,
1948
1940
  });
1949
1941
  throw __decorateServiceException(response, parsedBody);
1950
1942
  }
@@ -1969,7 +1961,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
1969
1961
  });
1970
1962
  }); };
1971
1963
  var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1972
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1964
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1973
1965
  var _c;
1974
1966
  return __generator(this, function (_d) {
1975
1967
  switch (_d.label) {
@@ -1979,7 +1971,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
1979
1971
  return [4, parseBody(output.body, context)];
1980
1972
  case 1:
1981
1973
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1982
- errorCode = "UnknownError";
1983
1974
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1984
1975
  _b = errorCode;
1985
1976
  switch (_b) {
@@ -1999,10 +1990,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
1999
1990
  case 7: throw _d.sent();
2000
1991
  case 8:
2001
1992
  parsedBody = parsedOutput.body;
1993
+ $metadata = deserializeMetadata(output);
1994
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2002
1995
  response = new __BaseException({
2003
- name: parsedBody.code || parsedBody.Code || errorCode,
1996
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2004
1997
  $fault: "client",
2005
- $metadata: deserializeMetadata(output),
1998
+ $metadata: $metadata,
2006
1999
  });
2007
2000
  throw __decorateServiceException(response, parsedBody);
2008
2001
  }
@@ -2033,7 +2026,7 @@ export var deserializeAws_restJson1UpdateConnectorProfileCommand = function (out
2033
2026
  });
2034
2027
  }); };
2035
2028
  var deserializeAws_restJson1UpdateConnectorProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2036
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2029
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2037
2030
  var _c;
2038
2031
  return __generator(this, function (_d) {
2039
2032
  switch (_d.label) {
@@ -2043,7 +2036,6 @@ var deserializeAws_restJson1UpdateConnectorProfileCommandError = function (outpu
2043
2036
  return [4, parseBody(output.body, context)];
2044
2037
  case 1:
2045
2038
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2046
- errorCode = "UnknownError";
2047
2039
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2048
2040
  _b = errorCode;
2049
2041
  switch (_b) {
@@ -2071,10 +2063,12 @@ var deserializeAws_restJson1UpdateConnectorProfileCommandError = function (outpu
2071
2063
  case 11: throw _d.sent();
2072
2064
  case 12:
2073
2065
  parsedBody = parsedOutput.body;
2066
+ $metadata = deserializeMetadata(output);
2067
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2074
2068
  response = new __BaseException({
2075
- name: parsedBody.code || parsedBody.Code || errorCode,
2069
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2076
2070
  $fault: "client",
2077
- $metadata: deserializeMetadata(output),
2071
+ $metadata: $metadata,
2078
2072
  });
2079
2073
  throw __decorateServiceException(response, parsedBody);
2080
2074
  }
@@ -2105,7 +2099,7 @@ export var deserializeAws_restJson1UpdateFlowCommand = function (output, context
2105
2099
  });
2106
2100
  }); };
2107
2101
  var deserializeAws_restJson1UpdateFlowCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2108
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2102
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2109
2103
  var _c;
2110
2104
  return __generator(this, function (_d) {
2111
2105
  switch (_d.label) {
@@ -2115,7 +2109,6 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
2115
2109
  return [4, parseBody(output.body, context)];
2116
2110
  case 1:
2117
2111
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2118
- errorCode = "UnknownError";
2119
2112
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2120
2113
  _b = errorCode;
2121
2114
  switch (_b) {
@@ -2151,10 +2144,12 @@ var deserializeAws_restJson1UpdateFlowCommandError = function (output, context)
2151
2144
  case 15: throw _d.sent();
2152
2145
  case 16:
2153
2146
  parsedBody = parsedOutput.body;
2147
+ $metadata = deserializeMetadata(output);
2148
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2154
2149
  response = new __BaseException({
2155
- name: parsedBody.code || parsedBody.Code || errorCode,
2150
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2156
2151
  $fault: "client",
2157
- $metadata: deserializeMetadata(output),
2152
+ $metadata: $metadata,
2158
2153
  });
2159
2154
  throw __decorateServiceException(response, parsedBody);
2160
2155
  }
@@ -2281,91 +2276,68 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
2281
2276
  });
2282
2277
  }); };
2283
2278
  var serializeAws_restJson1AggregationConfig = function (input, context) {
2284
- return __assign({}, (input.aggregationType !== undefined &&
2285
- input.aggregationType !== null && { aggregationType: input.aggregationType }));
2279
+ return __assign({}, (input.aggregationType != null && { aggregationType: input.aggregationType }));
2286
2280
  };
2287
2281
  var serializeAws_restJson1AmplitudeConnectorProfileCredentials = function (input, context) {
2288
- return __assign(__assign({}, (input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey })), (input.secretKey !== undefined && input.secretKey !== null && { secretKey: input.secretKey }));
2282
+ return __assign(__assign({}, (input.apiKey != null && { apiKey: input.apiKey })), (input.secretKey != null && { secretKey: input.secretKey }));
2289
2283
  };
2290
2284
  var serializeAws_restJson1AmplitudeConnectorProfileProperties = function (input, context) {
2291
2285
  return {};
2292
2286
  };
2293
2287
  var serializeAws_restJson1AmplitudeSourceProperties = function (input, context) {
2294
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2288
+ return __assign({}, (input.object != null && { object: input.object }));
2295
2289
  };
2296
2290
  var serializeAws_restJson1ApiKeyCredentials = function (input, context) {
2297
- return __assign(__assign({}, (input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey })), (input.apiSecretKey !== undefined && input.apiSecretKey !== null && { apiSecretKey: input.apiSecretKey }));
2291
+ return __assign(__assign({}, (input.apiKey != null && { apiKey: input.apiKey })), (input.apiSecretKey != null && { apiSecretKey: input.apiSecretKey }));
2298
2292
  };
2299
2293
  var serializeAws_restJson1BasicAuthCredentials = function (input, context) {
2300
- return __assign(__assign({}, (input.password !== undefined && input.password !== null && { password: input.password })), (input.username !== undefined && input.username !== null && { username: input.username }));
2294
+ return __assign(__assign({}, (input.password != null && { password: input.password })), (input.username != null && { username: input.username }));
2301
2295
  };
2302
2296
  var serializeAws_restJson1ConnectorOAuthRequest = function (input, context) {
2303
- return __assign(__assign({}, (input.authCode !== undefined && input.authCode !== null && { authCode: input.authCode })), (input.redirectUri !== undefined && input.redirectUri !== null && { redirectUri: input.redirectUri }));
2297
+ return __assign(__assign({}, (input.authCode != null && { authCode: input.authCode })), (input.redirectUri != null && { redirectUri: input.redirectUri }));
2304
2298
  };
2305
2299
  var serializeAws_restJson1ConnectorOperator = function (input, context) {
2306
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined && input.Amplitude !== null && { Amplitude: input.Amplitude })), (input.CustomConnector !== undefined &&
2307
- input.CustomConnector !== null && { CustomConnector: input.CustomConnector })), (input.Datadog !== undefined && input.Datadog !== null && { Datadog: input.Datadog })), (input.Dynatrace !== undefined && input.Dynatrace !== null && { Dynatrace: input.Dynatrace })), (input.GoogleAnalytics !== undefined &&
2308
- input.GoogleAnalytics !== null && { GoogleAnalytics: input.GoogleAnalytics })), (input.InforNexus !== undefined && input.InforNexus !== null && { InforNexus: input.InforNexus })), (input.Marketo !== undefined && input.Marketo !== null && { Marketo: input.Marketo })), (input.S3 !== undefined && input.S3 !== null && { S3: input.S3 })), (input.SAPOData !== undefined && input.SAPOData !== null && { SAPOData: input.SAPOData })), (input.Salesforce !== undefined && input.Salesforce !== null && { Salesforce: input.Salesforce })), (input.ServiceNow !== undefined && input.ServiceNow !== null && { ServiceNow: input.ServiceNow })), (input.Singular !== undefined && input.Singular !== null && { Singular: input.Singular })), (input.Slack !== undefined && input.Slack !== null && { Slack: input.Slack })), (input.Trendmicro !== undefined && input.Trendmicro !== null && { Trendmicro: input.Trendmicro })), (input.Veeva !== undefined && input.Veeva !== null && { Veeva: input.Veeva })), (input.Zendesk !== undefined && input.Zendesk !== null && { Zendesk: input.Zendesk }));
2300
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude != null && { Amplitude: input.Amplitude })), (input.CustomConnector != null && { CustomConnector: input.CustomConnector })), (input.Datadog != null && { Datadog: input.Datadog })), (input.Dynatrace != null && { Dynatrace: input.Dynatrace })), (input.GoogleAnalytics != null && { GoogleAnalytics: input.GoogleAnalytics })), (input.InforNexus != null && { InforNexus: input.InforNexus })), (input.Marketo != null && { Marketo: input.Marketo })), (input.S3 != null && { S3: input.S3 })), (input.SAPOData != null && { SAPOData: input.SAPOData })), (input.Salesforce != null && { Salesforce: input.Salesforce })), (input.ServiceNow != null && { ServiceNow: input.ServiceNow })), (input.Singular != null && { Singular: input.Singular })), (input.Slack != null && { Slack: input.Slack })), (input.Trendmicro != null && { Trendmicro: input.Trendmicro })), (input.Veeva != null && { Veeva: input.Veeva })), (input.Zendesk != null && { Zendesk: input.Zendesk }));
2309
2301
  };
2310
2302
  var serializeAws_restJson1ConnectorProfileConfig = function (input, context) {
2311
- return __assign(__assign({}, (input.connectorProfileCredentials !== undefined &&
2312
- input.connectorProfileCredentials !== null && {
2303
+ return __assign(__assign({}, (input.connectorProfileCredentials != null && {
2313
2304
  connectorProfileCredentials: serializeAws_restJson1ConnectorProfileCredentials(input.connectorProfileCredentials, context),
2314
- })), (input.connectorProfileProperties !== undefined &&
2315
- input.connectorProfileProperties !== null && {
2305
+ })), (input.connectorProfileProperties != null && {
2316
2306
  connectorProfileProperties: serializeAws_restJson1ConnectorProfileProperties(input.connectorProfileProperties, context),
2317
2307
  }));
2318
2308
  };
2319
2309
  var serializeAws_restJson1ConnectorProfileCredentials = function (input, context) {
2320
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
2321
- input.Amplitude !== null && {
2310
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude != null && {
2322
2311
  Amplitude: serializeAws_restJson1AmplitudeConnectorProfileCredentials(input.Amplitude, context),
2323
- })), (input.CustomConnector !== undefined &&
2324
- input.CustomConnector !== null && {
2312
+ })), (input.CustomConnector != null && {
2325
2313
  CustomConnector: serializeAws_restJson1CustomConnectorProfileCredentials(input.CustomConnector, context),
2326
- })), (input.Datadog !== undefined &&
2327
- input.Datadog !== null && {
2314
+ })), (input.Datadog != null && {
2328
2315
  Datadog: serializeAws_restJson1DatadogConnectorProfileCredentials(input.Datadog, context),
2329
- })), (input.Dynatrace !== undefined &&
2330
- input.Dynatrace !== null && {
2316
+ })), (input.Dynatrace != null && {
2331
2317
  Dynatrace: serializeAws_restJson1DynatraceConnectorProfileCredentials(input.Dynatrace, context),
2332
- })), (input.GoogleAnalytics !== undefined &&
2333
- input.GoogleAnalytics !== null && {
2318
+ })), (input.GoogleAnalytics != null && {
2334
2319
  GoogleAnalytics: serializeAws_restJson1GoogleAnalyticsConnectorProfileCredentials(input.GoogleAnalytics, context),
2335
- })), (input.Honeycode !== undefined &&
2336
- input.Honeycode !== null && {
2320
+ })), (input.Honeycode != null && {
2337
2321
  Honeycode: serializeAws_restJson1HoneycodeConnectorProfileCredentials(input.Honeycode, context),
2338
- })), (input.InforNexus !== undefined &&
2339
- input.InforNexus !== null && {
2322
+ })), (input.InforNexus != null && {
2340
2323
  InforNexus: serializeAws_restJson1InforNexusConnectorProfileCredentials(input.InforNexus, context),
2341
- })), (input.Marketo !== undefined &&
2342
- input.Marketo !== null && {
2324
+ })), (input.Marketo != null && {
2343
2325
  Marketo: serializeAws_restJson1MarketoConnectorProfileCredentials(input.Marketo, context),
2344
- })), (input.Redshift !== undefined &&
2345
- input.Redshift !== null && {
2326
+ })), (input.Redshift != null && {
2346
2327
  Redshift: serializeAws_restJson1RedshiftConnectorProfileCredentials(input.Redshift, context),
2347
- })), (input.SAPOData !== undefined &&
2348
- input.SAPOData !== null && {
2328
+ })), (input.SAPOData != null && {
2349
2329
  SAPOData: serializeAws_restJson1SAPODataConnectorProfileCredentials(input.SAPOData, context),
2350
- })), (input.Salesforce !== undefined &&
2351
- input.Salesforce !== null && {
2330
+ })), (input.Salesforce != null && {
2352
2331
  Salesforce: serializeAws_restJson1SalesforceConnectorProfileCredentials(input.Salesforce, context),
2353
- })), (input.ServiceNow !== undefined &&
2354
- input.ServiceNow !== null && {
2332
+ })), (input.ServiceNow != null && {
2355
2333
  ServiceNow: serializeAws_restJson1ServiceNowConnectorProfileCredentials(input.ServiceNow, context),
2356
- })), (input.Singular !== undefined &&
2357
- input.Singular !== null && {
2334
+ })), (input.Singular != null && {
2358
2335
  Singular: serializeAws_restJson1SingularConnectorProfileCredentials(input.Singular, context),
2359
- })), (input.Slack !== undefined &&
2360
- input.Slack !== null && { Slack: serializeAws_restJson1SlackConnectorProfileCredentials(input.Slack, context) })), (input.Snowflake !== undefined &&
2361
- input.Snowflake !== null && {
2336
+ })), (input.Slack != null && { Slack: serializeAws_restJson1SlackConnectorProfileCredentials(input.Slack, context) })), (input.Snowflake != null && {
2362
2337
  Snowflake: serializeAws_restJson1SnowflakeConnectorProfileCredentials(input.Snowflake, context),
2363
- })), (input.Trendmicro !== undefined &&
2364
- input.Trendmicro !== null && {
2338
+ })), (input.Trendmicro != null && {
2365
2339
  Trendmicro: serializeAws_restJson1TrendmicroConnectorProfileCredentials(input.Trendmicro, context),
2366
- })), (input.Veeva !== undefined &&
2367
- input.Veeva !== null && { Veeva: serializeAws_restJson1VeevaConnectorProfileCredentials(input.Veeva, context) })), (input.Zendesk !== undefined &&
2368
- input.Zendesk !== null && {
2340
+ })), (input.Veeva != null && { Veeva: serializeAws_restJson1VeevaConnectorProfileCredentials(input.Veeva, context) })), (input.Zendesk != null && {
2369
2341
  Zendesk: serializeAws_restJson1ZendeskConnectorProfileCredentials(input.Zendesk, context),
2370
2342
  }));
2371
2343
  };
@@ -2380,61 +2352,42 @@ var serializeAws_restJson1ConnectorProfileNameList = function (input, context) {
2380
2352
  });
2381
2353
  };
2382
2354
  var serializeAws_restJson1ConnectorProfileProperties = function (input, context) {
2383
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
2384
- input.Amplitude !== null && {
2355
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude != null && {
2385
2356
  Amplitude: serializeAws_restJson1AmplitudeConnectorProfileProperties(input.Amplitude, context),
2386
- })), (input.CustomConnector !== undefined &&
2387
- input.CustomConnector !== null && {
2357
+ })), (input.CustomConnector != null && {
2388
2358
  CustomConnector: serializeAws_restJson1CustomConnectorProfileProperties(input.CustomConnector, context),
2389
- })), (input.Datadog !== undefined &&
2390
- input.Datadog !== null && {
2359
+ })), (input.Datadog != null && {
2391
2360
  Datadog: serializeAws_restJson1DatadogConnectorProfileProperties(input.Datadog, context),
2392
- })), (input.Dynatrace !== undefined &&
2393
- input.Dynatrace !== null && {
2361
+ })), (input.Dynatrace != null && {
2394
2362
  Dynatrace: serializeAws_restJson1DynatraceConnectorProfileProperties(input.Dynatrace, context),
2395
- })), (input.GoogleAnalytics !== undefined &&
2396
- input.GoogleAnalytics !== null && {
2363
+ })), (input.GoogleAnalytics != null && {
2397
2364
  GoogleAnalytics: serializeAws_restJson1GoogleAnalyticsConnectorProfileProperties(input.GoogleAnalytics, context),
2398
- })), (input.Honeycode !== undefined &&
2399
- input.Honeycode !== null && {
2365
+ })), (input.Honeycode != null && {
2400
2366
  Honeycode: serializeAws_restJson1HoneycodeConnectorProfileProperties(input.Honeycode, context),
2401
- })), (input.InforNexus !== undefined &&
2402
- input.InforNexus !== null && {
2367
+ })), (input.InforNexus != null && {
2403
2368
  InforNexus: serializeAws_restJson1InforNexusConnectorProfileProperties(input.InforNexus, context),
2404
- })), (input.Marketo !== undefined &&
2405
- input.Marketo !== null && {
2369
+ })), (input.Marketo != null && {
2406
2370
  Marketo: serializeAws_restJson1MarketoConnectorProfileProperties(input.Marketo, context),
2407
- })), (input.Redshift !== undefined &&
2408
- input.Redshift !== null && {
2371
+ })), (input.Redshift != null && {
2409
2372
  Redshift: serializeAws_restJson1RedshiftConnectorProfileProperties(input.Redshift, context),
2410
- })), (input.SAPOData !== undefined &&
2411
- input.SAPOData !== null && {
2373
+ })), (input.SAPOData != null && {
2412
2374
  SAPOData: serializeAws_restJson1SAPODataConnectorProfileProperties(input.SAPOData, context),
2413
- })), (input.Salesforce !== undefined &&
2414
- input.Salesforce !== null && {
2375
+ })), (input.Salesforce != null && {
2415
2376
  Salesforce: serializeAws_restJson1SalesforceConnectorProfileProperties(input.Salesforce, context),
2416
- })), (input.ServiceNow !== undefined &&
2417
- input.ServiceNow !== null && {
2377
+ })), (input.ServiceNow != null && {
2418
2378
  ServiceNow: serializeAws_restJson1ServiceNowConnectorProfileProperties(input.ServiceNow, context),
2419
- })), (input.Singular !== undefined &&
2420
- input.Singular !== null && {
2379
+ })), (input.Singular != null && {
2421
2380
  Singular: serializeAws_restJson1SingularConnectorProfileProperties(input.Singular, context),
2422
- })), (input.Slack !== undefined &&
2423
- input.Slack !== null && { Slack: serializeAws_restJson1SlackConnectorProfileProperties(input.Slack, context) })), (input.Snowflake !== undefined &&
2424
- input.Snowflake !== null && {
2381
+ })), (input.Slack != null && { Slack: serializeAws_restJson1SlackConnectorProfileProperties(input.Slack, context) })), (input.Snowflake != null && {
2425
2382
  Snowflake: serializeAws_restJson1SnowflakeConnectorProfileProperties(input.Snowflake, context),
2426
- })), (input.Trendmicro !== undefined &&
2427
- input.Trendmicro !== null && {
2383
+ })), (input.Trendmicro != null && {
2428
2384
  Trendmicro: serializeAws_restJson1TrendmicroConnectorProfileProperties(input.Trendmicro, context),
2429
- })), (input.Veeva !== undefined &&
2430
- input.Veeva !== null && { Veeva: serializeAws_restJson1VeevaConnectorProfileProperties(input.Veeva, context) })), (input.Zendesk !== undefined &&
2431
- input.Zendesk !== null && {
2385
+ })), (input.Veeva != null && { Veeva: serializeAws_restJson1VeevaConnectorProfileProperties(input.Veeva, context) })), (input.Zendesk != null && {
2432
2386
  Zendesk: serializeAws_restJson1ZendeskConnectorProfileProperties(input.Zendesk, context),
2433
2387
  }));
2434
2388
  };
2435
2389
  var serializeAws_restJson1ConnectorProvisioningConfig = function (input, context) {
2436
- return __assign({}, (input.lambda !== undefined &&
2437
- input.lambda !== null && {
2390
+ return __assign({}, (input.lambda != null && {
2438
2391
  lambda: serializeAws_restJson1LambdaConnectorProvisioningConfig(input.lambda, context),
2439
2392
  }));
2440
2393
  };
@@ -2459,51 +2412,36 @@ var serializeAws_restJson1CredentialsMap = function (input, context) {
2459
2412
  }, {});
2460
2413
  };
2461
2414
  var serializeAws_restJson1CustomAuthCredentials = function (input, context) {
2462
- return __assign(__assign({}, (input.credentialsMap !== undefined &&
2463
- input.credentialsMap !== null && {
2415
+ return __assign(__assign({}, (input.credentialsMap != null && {
2464
2416
  credentialsMap: serializeAws_restJson1CredentialsMap(input.credentialsMap, context),
2465
- })), (input.customAuthenticationType !== undefined &&
2466
- input.customAuthenticationType !== null && { customAuthenticationType: input.customAuthenticationType }));
2417
+ })), (input.customAuthenticationType != null && { customAuthenticationType: input.customAuthenticationType }));
2467
2418
  };
2468
2419
  var serializeAws_restJson1CustomConnectorDestinationProperties = function (input, context) {
2469
- return __assign(__assign(__assign(__assign(__assign({}, (input.customProperties !== undefined &&
2470
- input.customProperties !== null && {
2420
+ return __assign(__assign(__assign(__assign(__assign({}, (input.customProperties != null && {
2471
2421
  customProperties: serializeAws_restJson1CustomProperties(input.customProperties, context),
2472
- })), (input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName })), (input.errorHandlingConfig !== undefined &&
2473
- input.errorHandlingConfig !== null && {
2422
+ })), (input.entityName != null && { entityName: input.entityName })), (input.errorHandlingConfig != null && {
2474
2423
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2475
- })), (input.idFieldNames !== undefined &&
2476
- input.idFieldNames !== null && {
2424
+ })), (input.idFieldNames != null && {
2477
2425
  idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
2478
- })), (input.writeOperationType !== undefined &&
2479
- input.writeOperationType !== null && { writeOperationType: input.writeOperationType }));
2426
+ })), (input.writeOperationType != null && { writeOperationType: input.writeOperationType }));
2480
2427
  };
2481
2428
  var serializeAws_restJson1CustomConnectorProfileCredentials = function (input, context) {
2482
- return __assign(__assign(__assign(__assign(__assign({}, (input.apiKey !== undefined &&
2483
- input.apiKey !== null && { apiKey: serializeAws_restJson1ApiKeyCredentials(input.apiKey, context) })), (input.authenticationType !== undefined &&
2484
- input.authenticationType !== null && { authenticationType: input.authenticationType })), (input.basic !== undefined &&
2485
- input.basic !== null && { basic: serializeAws_restJson1BasicAuthCredentials(input.basic, context) })), (input.custom !== undefined &&
2486
- input.custom !== null && { custom: serializeAws_restJson1CustomAuthCredentials(input.custom, context) })), (input.oauth2 !== undefined &&
2487
- input.oauth2 !== null && { oauth2: serializeAws_restJson1OAuth2Credentials(input.oauth2, context) }));
2429
+ return __assign(__assign(__assign(__assign(__assign({}, (input.apiKey != null && { apiKey: serializeAws_restJson1ApiKeyCredentials(input.apiKey, context) })), (input.authenticationType != null && { authenticationType: input.authenticationType })), (input.basic != null && { basic: serializeAws_restJson1BasicAuthCredentials(input.basic, context) })), (input.custom != null && { custom: serializeAws_restJson1CustomAuthCredentials(input.custom, context) })), (input.oauth2 != null && { oauth2: serializeAws_restJson1OAuth2Credentials(input.oauth2, context) }));
2488
2430
  };
2489
2431
  var serializeAws_restJson1CustomConnectorProfileProperties = function (input, context) {
2490
- return __assign(__assign({}, (input.oAuth2Properties !== undefined &&
2491
- input.oAuth2Properties !== null && {
2432
+ return __assign(__assign({}, (input.oAuth2Properties != null && {
2492
2433
  oAuth2Properties: serializeAws_restJson1OAuth2Properties(input.oAuth2Properties, context),
2493
- })), (input.profileProperties !== undefined &&
2494
- input.profileProperties !== null && {
2434
+ })), (input.profileProperties != null && {
2495
2435
  profileProperties: serializeAws_restJson1ProfilePropertiesMap(input.profileProperties, context),
2496
2436
  }));
2497
2437
  };
2498
2438
  var serializeAws_restJson1CustomConnectorSourceProperties = function (input, context) {
2499
- return __assign(__assign({}, (input.customProperties !== undefined &&
2500
- input.customProperties !== null && {
2439
+ return __assign(__assign({}, (input.customProperties != null && {
2501
2440
  customProperties: serializeAws_restJson1CustomProperties(input.customProperties, context),
2502
- })), (input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName }));
2441
+ })), (input.entityName != null && { entityName: input.entityName }));
2503
2442
  };
2504
2443
  var serializeAws_restJson1CustomerProfilesDestinationProperties = function (input, context) {
2505
- return __assign(__assign({}, (input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName })), (input.objectTypeName !== undefined &&
2506
- input.objectTypeName !== null && { objectTypeName: input.objectTypeName }));
2444
+ return __assign(__assign({}, (input.domainName != null && { domainName: input.domainName })), (input.objectTypeName != null && { objectTypeName: input.objectTypeName }));
2507
2445
  };
2508
2446
  var serializeAws_restJson1CustomProperties = function (input, context) {
2509
2447
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2516,59 +2454,43 @@ var serializeAws_restJson1CustomProperties = function (input, context) {
2516
2454
  }, {});
2517
2455
  };
2518
2456
  var serializeAws_restJson1DatadogConnectorProfileCredentials = function (input, context) {
2519
- return __assign(__assign({}, (input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey })), (input.applicationKey !== undefined &&
2520
- input.applicationKey !== null && { applicationKey: input.applicationKey }));
2457
+ return __assign(__assign({}, (input.apiKey != null && { apiKey: input.apiKey })), (input.applicationKey != null && { applicationKey: input.applicationKey }));
2521
2458
  };
2522
2459
  var serializeAws_restJson1DatadogConnectorProfileProperties = function (input, context) {
2523
- return __assign({}, (input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }));
2460
+ return __assign({}, (input.instanceUrl != null && { instanceUrl: input.instanceUrl }));
2524
2461
  };
2525
2462
  var serializeAws_restJson1DatadogSourceProperties = function (input, context) {
2526
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2463
+ return __assign({}, (input.object != null && { object: input.object }));
2527
2464
  };
2528
2465
  var serializeAws_restJson1DestinationConnectorProperties = function (input, context) {
2529
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CustomConnector !== undefined &&
2530
- input.CustomConnector !== null && {
2466
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CustomConnector != null && {
2531
2467
  CustomConnector: serializeAws_restJson1CustomConnectorDestinationProperties(input.CustomConnector, context),
2532
- })), (input.CustomerProfiles !== undefined &&
2533
- input.CustomerProfiles !== null && {
2468
+ })), (input.CustomerProfiles != null && {
2534
2469
  CustomerProfiles: serializeAws_restJson1CustomerProfilesDestinationProperties(input.CustomerProfiles, context),
2535
- })), (input.EventBridge !== undefined &&
2536
- input.EventBridge !== null && {
2470
+ })), (input.EventBridge != null && {
2537
2471
  EventBridge: serializeAws_restJson1EventBridgeDestinationProperties(input.EventBridge, context),
2538
- })), (input.Honeycode !== undefined &&
2539
- input.Honeycode !== null && {
2472
+ })), (input.Honeycode != null && {
2540
2473
  Honeycode: serializeAws_restJson1HoneycodeDestinationProperties(input.Honeycode, context),
2541
- })), (input.LookoutMetrics !== undefined &&
2542
- input.LookoutMetrics !== null && {
2474
+ })), (input.LookoutMetrics != null && {
2543
2475
  LookoutMetrics: serializeAws_restJson1LookoutMetricsDestinationProperties(input.LookoutMetrics, context),
2544
- })), (input.Marketo !== undefined &&
2545
- input.Marketo !== null && {
2476
+ })), (input.Marketo != null && {
2546
2477
  Marketo: serializeAws_restJson1MarketoDestinationProperties(input.Marketo, context),
2547
- })), (input.Redshift !== undefined &&
2548
- input.Redshift !== null && {
2478
+ })), (input.Redshift != null && {
2549
2479
  Redshift: serializeAws_restJson1RedshiftDestinationProperties(input.Redshift, context),
2550
- })), (input.S3 !== undefined &&
2551
- input.S3 !== null && { S3: serializeAws_restJson1S3DestinationProperties(input.S3, context) })), (input.SAPOData !== undefined &&
2552
- input.SAPOData !== null && {
2480
+ })), (input.S3 != null && { S3: serializeAws_restJson1S3DestinationProperties(input.S3, context) })), (input.SAPOData != null && {
2553
2481
  SAPOData: serializeAws_restJson1SAPODataDestinationProperties(input.SAPOData, context),
2554
- })), (input.Salesforce !== undefined &&
2555
- input.Salesforce !== null && {
2482
+ })), (input.Salesforce != null && {
2556
2483
  Salesforce: serializeAws_restJson1SalesforceDestinationProperties(input.Salesforce, context),
2557
- })), (input.Snowflake !== undefined &&
2558
- input.Snowflake !== null && {
2484
+ })), (input.Snowflake != null && {
2559
2485
  Snowflake: serializeAws_restJson1SnowflakeDestinationProperties(input.Snowflake, context),
2560
- })), (input.Upsolver !== undefined &&
2561
- input.Upsolver !== null && {
2486
+ })), (input.Upsolver != null && {
2562
2487
  Upsolver: serializeAws_restJson1UpsolverDestinationProperties(input.Upsolver, context),
2563
- })), (input.Zendesk !== undefined &&
2564
- input.Zendesk !== null && {
2488
+ })), (input.Zendesk != null && {
2565
2489
  Zendesk: serializeAws_restJson1ZendeskDestinationProperties(input.Zendesk, context),
2566
2490
  }));
2567
2491
  };
2568
2492
  var serializeAws_restJson1DestinationFlowConfig = function (input, context) {
2569
- return __assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorProfileName !== undefined &&
2570
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.destinationConnectorProperties !== undefined &&
2571
- input.destinationConnectorProperties !== null && {
2493
+ return __assign(__assign(__assign(__assign({}, (input.apiVersion != null && { apiVersion: input.apiVersion })), (input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName })), (input.connectorType != null && { connectorType: input.connectorType })), (input.destinationConnectorProperties != null && {
2572
2494
  destinationConnectorProperties: serializeAws_restJson1DestinationConnectorProperties(input.destinationConnectorProperties, context),
2573
2495
  }));
2574
2496
  };
@@ -2583,50 +2505,47 @@ var serializeAws_restJson1DestinationFlowConfigList = function (input, context)
2583
2505
  });
2584
2506
  };
2585
2507
  var serializeAws_restJson1DynatraceConnectorProfileCredentials = function (input, context) {
2586
- return __assign({}, (input.apiToken !== undefined && input.apiToken !== null && { apiToken: input.apiToken }));
2508
+ return __assign({}, (input.apiToken != null && { apiToken: input.apiToken }));
2587
2509
  };
2588
2510
  var serializeAws_restJson1DynatraceConnectorProfileProperties = function (input, context) {
2589
- return __assign({}, (input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }));
2511
+ return __assign({}, (input.instanceUrl != null && { instanceUrl: input.instanceUrl }));
2590
2512
  };
2591
2513
  var serializeAws_restJson1DynatraceSourceProperties = function (input, context) {
2592
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2514
+ return __assign({}, (input.object != null && { object: input.object }));
2593
2515
  };
2594
2516
  var serializeAws_restJson1ErrorHandlingConfig = function (input, context) {
2595
- return __assign(__assign(__assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix })), (input.failOnFirstDestinationError !== undefined &&
2596
- input.failOnFirstDestinationError !== null && { failOnFirstDestinationError: input.failOnFirstDestinationError }));
2517
+ return __assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix })), (input.failOnFirstDestinationError != null && {
2518
+ failOnFirstDestinationError: input.failOnFirstDestinationError,
2519
+ }));
2597
2520
  };
2598
2521
  var serializeAws_restJson1EventBridgeDestinationProperties = function (input, context) {
2599
- return __assign(__assign({}, (input.errorHandlingConfig !== undefined &&
2600
- input.errorHandlingConfig !== null && {
2522
+ return __assign(__assign({}, (input.errorHandlingConfig != null && {
2601
2523
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2602
- })), (input.object !== undefined && input.object !== null && { object: input.object }));
2524
+ })), (input.object != null && { object: input.object }));
2603
2525
  };
2604
2526
  var serializeAws_restJson1GoogleAnalyticsConnectorProfileCredentials = function (input, context) {
2605
- return __assign(__assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.oAuthRequest !== undefined &&
2606
- input.oAuthRequest !== null && {
2527
+ return __assign(__assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.oAuthRequest != null && {
2607
2528
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2608
- })), (input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }));
2529
+ })), (input.refreshToken != null && { refreshToken: input.refreshToken }));
2609
2530
  };
2610
2531
  var serializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = function (input, context) {
2611
2532
  return {};
2612
2533
  };
2613
2534
  var serializeAws_restJson1GoogleAnalyticsSourceProperties = function (input, context) {
2614
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2535
+ return __assign({}, (input.object != null && { object: input.object }));
2615
2536
  };
2616
2537
  var serializeAws_restJson1HoneycodeConnectorProfileCredentials = function (input, context) {
2617
- return __assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.oAuthRequest !== undefined &&
2618
- input.oAuthRequest !== null && {
2538
+ return __assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.oAuthRequest != null && {
2619
2539
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2620
- })), (input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }));
2540
+ })), (input.refreshToken != null && { refreshToken: input.refreshToken }));
2621
2541
  };
2622
2542
  var serializeAws_restJson1HoneycodeConnectorProfileProperties = function (input, context) {
2623
2543
  return {};
2624
2544
  };
2625
2545
  var serializeAws_restJson1HoneycodeDestinationProperties = function (input, context) {
2626
- return __assign(__assign({}, (input.errorHandlingConfig !== undefined &&
2627
- input.errorHandlingConfig !== null && {
2546
+ return __assign(__assign({}, (input.errorHandlingConfig != null && {
2628
2547
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2629
- })), (input.object !== undefined && input.object !== null && { object: input.object }));
2548
+ })), (input.object != null && { object: input.object }));
2630
2549
  };
2631
2550
  var serializeAws_restJson1IdFieldNameList = function (input, context) {
2632
2551
  return input
@@ -2639,65 +2558,56 @@ var serializeAws_restJson1IdFieldNameList = function (input, context) {
2639
2558
  });
2640
2559
  };
2641
2560
  var serializeAws_restJson1IncrementalPullConfig = function (input, context) {
2642
- return __assign({}, (input.datetimeTypeFieldName !== undefined &&
2643
- input.datetimeTypeFieldName !== null && { datetimeTypeFieldName: input.datetimeTypeFieldName }));
2561
+ return __assign({}, (input.datetimeTypeFieldName != null && { datetimeTypeFieldName: input.datetimeTypeFieldName }));
2644
2562
  };
2645
2563
  var serializeAws_restJson1InforNexusConnectorProfileCredentials = function (input, context) {
2646
- return __assign(__assign(__assign(__assign({}, (input.accessKeyId !== undefined && input.accessKeyId !== null && { accessKeyId: input.accessKeyId })), (input.datakey !== undefined && input.datakey !== null && { datakey: input.datakey })), (input.secretAccessKey !== undefined &&
2647
- input.secretAccessKey !== null && { secretAccessKey: input.secretAccessKey })), (input.userId !== undefined && input.userId !== null && { userId: input.userId }));
2564
+ return __assign(__assign(__assign(__assign({}, (input.accessKeyId != null && { accessKeyId: input.accessKeyId })), (input.datakey != null && { datakey: input.datakey })), (input.secretAccessKey != null && { secretAccessKey: input.secretAccessKey })), (input.userId != null && { userId: input.userId }));
2648
2565
  };
2649
2566
  var serializeAws_restJson1InforNexusConnectorProfileProperties = function (input, context) {
2650
- return __assign({}, (input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }));
2567
+ return __assign({}, (input.instanceUrl != null && { instanceUrl: input.instanceUrl }));
2651
2568
  };
2652
2569
  var serializeAws_restJson1InforNexusSourceProperties = function (input, context) {
2653
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2570
+ return __assign({}, (input.object != null && { object: input.object }));
2654
2571
  };
2655
2572
  var serializeAws_restJson1LambdaConnectorProvisioningConfig = function (input, context) {
2656
- return __assign({}, (input.lambdaArn !== undefined && input.lambdaArn !== null && { lambdaArn: input.lambdaArn }));
2573
+ return __assign({}, (input.lambdaArn != null && { lambdaArn: input.lambdaArn }));
2657
2574
  };
2658
2575
  var serializeAws_restJson1LookoutMetricsDestinationProperties = function (input, context) {
2659
2576
  return {};
2660
2577
  };
2661
2578
  var serializeAws_restJson1MarketoConnectorProfileCredentials = function (input, context) {
2662
- return __assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.oAuthRequest !== undefined &&
2663
- input.oAuthRequest !== null && {
2579
+ return __assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.oAuthRequest != null && {
2664
2580
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2665
2581
  }));
2666
2582
  };
2667
2583
  var serializeAws_restJson1MarketoConnectorProfileProperties = function (input, context) {
2668
- return __assign({}, (input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }));
2584
+ return __assign({}, (input.instanceUrl != null && { instanceUrl: input.instanceUrl }));
2669
2585
  };
2670
2586
  var serializeAws_restJson1MarketoDestinationProperties = function (input, context) {
2671
- return __assign(__assign({}, (input.errorHandlingConfig !== undefined &&
2672
- input.errorHandlingConfig !== null && {
2587
+ return __assign(__assign({}, (input.errorHandlingConfig != null && {
2673
2588
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2674
- })), (input.object !== undefined && input.object !== null && { object: input.object }));
2589
+ })), (input.object != null && { object: input.object }));
2675
2590
  };
2676
2591
  var serializeAws_restJson1MarketoSourceProperties = function (input, context) {
2677
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2592
+ return __assign({}, (input.object != null && { object: input.object }));
2678
2593
  };
2679
2594
  var serializeAws_restJson1OAuth2Credentials = function (input, context) {
2680
- return __assign(__assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.oAuthRequest !== undefined &&
2681
- input.oAuthRequest !== null && {
2595
+ return __assign(__assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.oAuthRequest != null && {
2682
2596
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2683
- })), (input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }));
2597
+ })), (input.refreshToken != null && { refreshToken: input.refreshToken }));
2684
2598
  };
2685
2599
  var serializeAws_restJson1OAuth2Properties = function (input, context) {
2686
- return __assign(__assign(__assign({}, (input.oAuth2GrantType !== undefined &&
2687
- input.oAuth2GrantType !== null && { oAuth2GrantType: input.oAuth2GrantType })), (input.tokenUrl !== undefined && input.tokenUrl !== null && { tokenUrl: input.tokenUrl })), (input.tokenUrlCustomProperties !== undefined &&
2688
- input.tokenUrlCustomProperties !== null && {
2600
+ return __assign(__assign(__assign({}, (input.oAuth2GrantType != null && { oAuth2GrantType: input.oAuth2GrantType })), (input.tokenUrl != null && { tokenUrl: input.tokenUrl })), (input.tokenUrlCustomProperties != null && {
2689
2601
  tokenUrlCustomProperties: serializeAws_restJson1TokenUrlCustomProperties(input.tokenUrlCustomProperties, context),
2690
2602
  }));
2691
2603
  };
2692
2604
  var serializeAws_restJson1OAuthCredentials = function (input, context) {
2693
- return __assign(__assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.oAuthRequest !== undefined &&
2694
- input.oAuthRequest !== null && {
2605
+ return __assign(__assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.oAuthRequest != null && {
2695
2606
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2696
- })), (input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }));
2607
+ })), (input.refreshToken != null && { refreshToken: input.refreshToken }));
2697
2608
  };
2698
2609
  var serializeAws_restJson1OAuthProperties = function (input, context) {
2699
- return __assign(__assign(__assign({}, (input.authCodeUrl !== undefined && input.authCodeUrl !== null && { authCodeUrl: input.authCodeUrl })), (input.oAuthScopes !== undefined &&
2700
- input.oAuthScopes !== null && { oAuthScopes: serializeAws_restJson1OAuthScopeList(input.oAuthScopes, context) })), (input.tokenUrl !== undefined && input.tokenUrl !== null && { tokenUrl: input.tokenUrl }));
2610
+ return __assign(__assign(__assign({}, (input.authCodeUrl != null && { authCodeUrl: input.authCodeUrl })), (input.oAuthScopes != null && { oAuthScopes: serializeAws_restJson1OAuthScopeList(input.oAuthScopes, context) })), (input.tokenUrl != null && { tokenUrl: input.tokenUrl }));
2701
2611
  };
2702
2612
  var serializeAws_restJson1OAuthScopeList = function (input, context) {
2703
2613
  return input
@@ -2710,7 +2620,7 @@ var serializeAws_restJson1OAuthScopeList = function (input, context) {
2710
2620
  });
2711
2621
  };
2712
2622
  var serializeAws_restJson1PrefixConfig = function (input, context) {
2713
- return __assign(__assign({}, (input.prefixFormat !== undefined && input.prefixFormat !== null && { prefixFormat: input.prefixFormat })), (input.prefixType !== undefined && input.prefixType !== null && { prefixType: input.prefixType }));
2623
+ return __assign(__assign({}, (input.prefixFormat != null && { prefixFormat: input.prefixFormat })), (input.prefixType != null && { prefixType: input.prefixType }));
2714
2624
  };
2715
2625
  var serializeAws_restJson1ProfilePropertiesMap = function (input, context) {
2716
2626
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2723,193 +2633,147 @@ var serializeAws_restJson1ProfilePropertiesMap = function (input, context) {
2723
2633
  }, {});
2724
2634
  };
2725
2635
  var serializeAws_restJson1RedshiftConnectorProfileCredentials = function (input, context) {
2726
- return __assign(__assign({}, (input.password !== undefined && input.password !== null && { password: input.password })), (input.username !== undefined && input.username !== null && { username: input.username }));
2636
+ return __assign(__assign({}, (input.password != null && { password: input.password })), (input.username != null && { username: input.username }));
2727
2637
  };
2728
2638
  var serializeAws_restJson1RedshiftConnectorProfileProperties = function (input, context) {
2729
- return __assign(__assign(__assign(__assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix })), (input.databaseUrl !== undefined && input.databaseUrl !== null && { databaseUrl: input.databaseUrl })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
2639
+ return __assign(__assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix })), (input.databaseUrl != null && { databaseUrl: input.databaseUrl })), (input.roleArn != null && { roleArn: input.roleArn }));
2730
2640
  };
2731
2641
  var serializeAws_restJson1RedshiftDestinationProperties = function (input, context) {
2732
- return __assign(__assign(__assign(__assign({}, (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix })), (input.errorHandlingConfig !== undefined &&
2733
- input.errorHandlingConfig !== null && {
2642
+ return __assign(__assign(__assign(__assign({}, (input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix })), (input.errorHandlingConfig != null && {
2734
2643
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2735
- })), (input.intermediateBucketName !== undefined &&
2736
- input.intermediateBucketName !== null && { intermediateBucketName: input.intermediateBucketName })), (input.object !== undefined && input.object !== null && { object: input.object }));
2644
+ })), (input.intermediateBucketName != null && { intermediateBucketName: input.intermediateBucketName })), (input.object != null && { object: input.object }));
2737
2645
  };
2738
2646
  var serializeAws_restJson1S3DestinationProperties = function (input, context) {
2739
- return __assign(__assign(__assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix })), (input.s3OutputFormatConfig !== undefined &&
2740
- input.s3OutputFormatConfig !== null && {
2647
+ return __assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix })), (input.s3OutputFormatConfig != null && {
2741
2648
  s3OutputFormatConfig: serializeAws_restJson1S3OutputFormatConfig(input.s3OutputFormatConfig, context),
2742
2649
  }));
2743
2650
  };
2744
2651
  var serializeAws_restJson1S3InputFormatConfig = function (input, context) {
2745
- return __assign({}, (input.s3InputFileType !== undefined &&
2746
- input.s3InputFileType !== null && { s3InputFileType: input.s3InputFileType }));
2652
+ return __assign({}, (input.s3InputFileType != null && { s3InputFileType: input.s3InputFileType }));
2747
2653
  };
2748
2654
  var serializeAws_restJson1S3OutputFormatConfig = function (input, context) {
2749
- return __assign(__assign(__assign(__assign({}, (input.aggregationConfig !== undefined &&
2750
- input.aggregationConfig !== null && {
2655
+ return __assign(__assign(__assign(__assign({}, (input.aggregationConfig != null && {
2751
2656
  aggregationConfig: serializeAws_restJson1AggregationConfig(input.aggregationConfig, context),
2752
- })), (input.fileType !== undefined && input.fileType !== null && { fileType: input.fileType })), (input.prefixConfig !== undefined &&
2753
- input.prefixConfig !== null && { prefixConfig: serializeAws_restJson1PrefixConfig(input.prefixConfig, context) })), (input.preserveSourceDataTyping !== undefined &&
2754
- input.preserveSourceDataTyping !== null && { preserveSourceDataTyping: input.preserveSourceDataTyping }));
2657
+ })), (input.fileType != null && { fileType: input.fileType })), (input.prefixConfig != null && {
2658
+ prefixConfig: serializeAws_restJson1PrefixConfig(input.prefixConfig, context),
2659
+ })), (input.preserveSourceDataTyping != null && { preserveSourceDataTyping: input.preserveSourceDataTyping }));
2755
2660
  };
2756
2661
  var serializeAws_restJson1S3SourceProperties = function (input, context) {
2757
- return __assign(__assign(__assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix })), (input.s3InputFormatConfig !== undefined &&
2758
- input.s3InputFormatConfig !== null && {
2662
+ return __assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix })), (input.s3InputFormatConfig != null && {
2759
2663
  s3InputFormatConfig: serializeAws_restJson1S3InputFormatConfig(input.s3InputFormatConfig, context),
2760
2664
  }));
2761
2665
  };
2762
2666
  var serializeAws_restJson1SalesforceConnectorProfileCredentials = function (input, context) {
2763
- return __assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.clientCredentialsArn !== undefined &&
2764
- input.clientCredentialsArn !== null && { clientCredentialsArn: input.clientCredentialsArn })), (input.oAuthRequest !== undefined &&
2765
- input.oAuthRequest !== null && {
2667
+ return __assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.clientCredentialsArn != null && { clientCredentialsArn: input.clientCredentialsArn })), (input.oAuthRequest != null && {
2766
2668
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2767
- })), (input.refreshToken !== undefined && input.refreshToken !== null && { refreshToken: input.refreshToken }));
2669
+ })), (input.refreshToken != null && { refreshToken: input.refreshToken }));
2768
2670
  };
2769
2671
  var serializeAws_restJson1SalesforceConnectorProfileProperties = function (input, context) {
2770
- return __assign(__assign({}, (input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl })), (input.isSandboxEnvironment !== undefined &&
2771
- input.isSandboxEnvironment !== null && { isSandboxEnvironment: input.isSandboxEnvironment }));
2672
+ return __assign(__assign({}, (input.instanceUrl != null && { instanceUrl: input.instanceUrl })), (input.isSandboxEnvironment != null && { isSandboxEnvironment: input.isSandboxEnvironment }));
2772
2673
  };
2773
2674
  var serializeAws_restJson1SalesforceDestinationProperties = function (input, context) {
2774
- return __assign(__assign(__assign(__assign({}, (input.errorHandlingConfig !== undefined &&
2775
- input.errorHandlingConfig !== null && {
2675
+ return __assign(__assign(__assign(__assign({}, (input.errorHandlingConfig != null && {
2776
2676
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2777
- })), (input.idFieldNames !== undefined &&
2778
- input.idFieldNames !== null && {
2677
+ })), (input.idFieldNames != null && {
2779
2678
  idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
2780
- })), (input.object !== undefined && input.object !== null && { object: input.object })), (input.writeOperationType !== undefined &&
2781
- input.writeOperationType !== null && { writeOperationType: input.writeOperationType }));
2679
+ })), (input.object != null && { object: input.object })), (input.writeOperationType != null && { writeOperationType: input.writeOperationType }));
2782
2680
  };
2783
2681
  var serializeAws_restJson1SalesforceSourceProperties = function (input, context) {
2784
- return __assign(__assign(__assign({}, (input.enableDynamicFieldUpdate !== undefined &&
2785
- input.enableDynamicFieldUpdate !== null && { enableDynamicFieldUpdate: input.enableDynamicFieldUpdate })), (input.includeDeletedRecords !== undefined &&
2786
- input.includeDeletedRecords !== null && { includeDeletedRecords: input.includeDeletedRecords })), (input.object !== undefined && input.object !== null && { object: input.object }));
2682
+ return __assign(__assign(__assign({}, (input.enableDynamicFieldUpdate != null && { enableDynamicFieldUpdate: input.enableDynamicFieldUpdate })), (input.includeDeletedRecords != null && { includeDeletedRecords: input.includeDeletedRecords })), (input.object != null && { object: input.object }));
2787
2683
  };
2788
2684
  var serializeAws_restJson1SAPODataConnectorProfileCredentials = function (input, context) {
2789
- return __assign(__assign({}, (input.basicAuthCredentials !== undefined &&
2790
- input.basicAuthCredentials !== null && {
2685
+ return __assign(__assign({}, (input.basicAuthCredentials != null && {
2791
2686
  basicAuthCredentials: serializeAws_restJson1BasicAuthCredentials(input.basicAuthCredentials, context),
2792
- })), (input.oAuthCredentials !== undefined &&
2793
- input.oAuthCredentials !== null && {
2687
+ })), (input.oAuthCredentials != null && {
2794
2688
  oAuthCredentials: serializeAws_restJson1OAuthCredentials(input.oAuthCredentials, context),
2795
2689
  }));
2796
2690
  };
2797
2691
  var serializeAws_restJson1SAPODataConnectorProfileProperties = function (input, context) {
2798
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.applicationHostUrl !== undefined &&
2799
- input.applicationHostUrl !== null && { applicationHostUrl: input.applicationHostUrl })), (input.applicationServicePath !== undefined &&
2800
- input.applicationServicePath !== null && { applicationServicePath: input.applicationServicePath })), (input.clientNumber !== undefined && input.clientNumber !== null && { clientNumber: input.clientNumber })), (input.logonLanguage !== undefined && input.logonLanguage !== null && { logonLanguage: input.logonLanguage })), (input.oAuthProperties !== undefined &&
2801
- input.oAuthProperties !== null && {
2692
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.applicationHostUrl != null && { applicationHostUrl: input.applicationHostUrl })), (input.applicationServicePath != null && { applicationServicePath: input.applicationServicePath })), (input.clientNumber != null && { clientNumber: input.clientNumber })), (input.logonLanguage != null && { logonLanguage: input.logonLanguage })), (input.oAuthProperties != null && {
2802
2693
  oAuthProperties: serializeAws_restJson1OAuthProperties(input.oAuthProperties, context),
2803
- })), (input.portNumber !== undefined && input.portNumber !== null && { portNumber: input.portNumber })), (input.privateLinkServiceName !== undefined &&
2804
- input.privateLinkServiceName !== null && { privateLinkServiceName: input.privateLinkServiceName }));
2694
+ })), (input.portNumber != null && { portNumber: input.portNumber })), (input.privateLinkServiceName != null && { privateLinkServiceName: input.privateLinkServiceName }));
2805
2695
  };
2806
2696
  var serializeAws_restJson1SAPODataDestinationProperties = function (input, context) {
2807
- return __assign(__assign(__assign(__assign(__assign({}, (input.errorHandlingConfig !== undefined &&
2808
- input.errorHandlingConfig !== null && {
2697
+ return __assign(__assign(__assign(__assign(__assign({}, (input.errorHandlingConfig != null && {
2809
2698
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2810
- })), (input.idFieldNames !== undefined &&
2811
- input.idFieldNames !== null && {
2699
+ })), (input.idFieldNames != null && {
2812
2700
  idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
2813
- })), (input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath })), (input.successResponseHandlingConfig !== undefined &&
2814
- input.successResponseHandlingConfig !== null && {
2701
+ })), (input.objectPath != null && { objectPath: input.objectPath })), (input.successResponseHandlingConfig != null && {
2815
2702
  successResponseHandlingConfig: serializeAws_restJson1SuccessResponseHandlingConfig(input.successResponseHandlingConfig, context),
2816
- })), (input.writeOperationType !== undefined &&
2817
- input.writeOperationType !== null && { writeOperationType: input.writeOperationType }));
2703
+ })), (input.writeOperationType != null && { writeOperationType: input.writeOperationType }));
2818
2704
  };
2819
2705
  var serializeAws_restJson1SAPODataSourceProperties = function (input, context) {
2820
- return __assign({}, (input.objectPath !== undefined && input.objectPath !== null && { objectPath: input.objectPath }));
2706
+ return __assign({}, (input.objectPath != null && { objectPath: input.objectPath }));
2821
2707
  };
2822
2708
  var serializeAws_restJson1ScheduledTriggerProperties = function (input, context) {
2823
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataPullMode !== undefined && input.dataPullMode !== null && { dataPullMode: input.dataPullMode })), (input.firstExecutionFrom !== undefined &&
2824
- input.firstExecutionFrom !== null && {
2709
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dataPullMode != null && { dataPullMode: input.dataPullMode })), (input.firstExecutionFrom != null && {
2825
2710
  firstExecutionFrom: Math.round(input.firstExecutionFrom.getTime() / 1000),
2826
- })), (input.flowErrorDeactivationThreshold !== undefined &&
2827
- input.flowErrorDeactivationThreshold !== null && {
2711
+ })), (input.flowErrorDeactivationThreshold != null && {
2828
2712
  flowErrorDeactivationThreshold: input.flowErrorDeactivationThreshold,
2829
- })), (input.scheduleEndTime !== undefined &&
2830
- input.scheduleEndTime !== null && { scheduleEndTime: Math.round(input.scheduleEndTime.getTime() / 1000) })), (input.scheduleExpression !== undefined &&
2831
- input.scheduleExpression !== null && { scheduleExpression: input.scheduleExpression })), (input.scheduleOffset !== undefined &&
2832
- input.scheduleOffset !== null && { scheduleOffset: input.scheduleOffset })), (input.scheduleStartTime !== undefined &&
2833
- input.scheduleStartTime !== null && { scheduleStartTime: Math.round(input.scheduleStartTime.getTime() / 1000) })), (input.timezone !== undefined && input.timezone !== null && { timezone: input.timezone }));
2713
+ })), (input.scheduleEndTime != null && { scheduleEndTime: Math.round(input.scheduleEndTime.getTime() / 1000) })), (input.scheduleExpression != null && { scheduleExpression: input.scheduleExpression })), (input.scheduleOffset != null && { scheduleOffset: input.scheduleOffset })), (input.scheduleStartTime != null && { scheduleStartTime: Math.round(input.scheduleStartTime.getTime() / 1000) })), (input.timezone != null && { timezone: input.timezone }));
2834
2714
  };
2835
2715
  var serializeAws_restJson1ServiceNowConnectorProfileCredentials = function (input, context) {
2836
- return __assign(__assign({}, (input.password !== undefined && input.password !== null && { password: input.password })), (input.username !== undefined && input.username !== null && { username: input.username }));
2716
+ return __assign(__assign({}, (input.password != null && { password: input.password })), (input.username != null && { username: input.username }));
2837
2717
  };
2838
2718
  var serializeAws_restJson1ServiceNowConnectorProfileProperties = function (input, context) {
2839
- return __assign({}, (input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }));
2719
+ return __assign({}, (input.instanceUrl != null && { instanceUrl: input.instanceUrl }));
2840
2720
  };
2841
2721
  var serializeAws_restJson1ServiceNowSourceProperties = function (input, context) {
2842
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2722
+ return __assign({}, (input.object != null && { object: input.object }));
2843
2723
  };
2844
2724
  var serializeAws_restJson1SingularConnectorProfileCredentials = function (input, context) {
2845
- return __assign({}, (input.apiKey !== undefined && input.apiKey !== null && { apiKey: input.apiKey }));
2725
+ return __assign({}, (input.apiKey != null && { apiKey: input.apiKey }));
2846
2726
  };
2847
2727
  var serializeAws_restJson1SingularConnectorProfileProperties = function (input, context) {
2848
2728
  return {};
2849
2729
  };
2850
2730
  var serializeAws_restJson1SingularSourceProperties = function (input, context) {
2851
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2731
+ return __assign({}, (input.object != null && { object: input.object }));
2852
2732
  };
2853
2733
  var serializeAws_restJson1SlackConnectorProfileCredentials = function (input, context) {
2854
- return __assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.oAuthRequest !== undefined &&
2855
- input.oAuthRequest !== null && {
2734
+ return __assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.oAuthRequest != null && {
2856
2735
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
2857
2736
  }));
2858
2737
  };
2859
2738
  var serializeAws_restJson1SlackConnectorProfileProperties = function (input, context) {
2860
- return __assign({}, (input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }));
2739
+ return __assign({}, (input.instanceUrl != null && { instanceUrl: input.instanceUrl }));
2861
2740
  };
2862
2741
  var serializeAws_restJson1SlackSourceProperties = function (input, context) {
2863
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2742
+ return __assign({}, (input.object != null && { object: input.object }));
2864
2743
  };
2865
2744
  var serializeAws_restJson1SnowflakeConnectorProfileCredentials = function (input, context) {
2866
- return __assign(__assign({}, (input.password !== undefined && input.password !== null && { password: input.password })), (input.username !== undefined && input.username !== null && { username: input.username }));
2745
+ return __assign(__assign({}, (input.password != null && { password: input.password })), (input.username != null && { username: input.username }));
2867
2746
  };
2868
2747
  var serializeAws_restJson1SnowflakeConnectorProfileProperties = function (input, context) {
2869
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountName !== undefined && input.accountName !== null && { accountName: input.accountName })), (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix })), (input.privateLinkServiceName !== undefined &&
2870
- input.privateLinkServiceName !== null && { privateLinkServiceName: input.privateLinkServiceName })), (input.region !== undefined && input.region !== null && { region: input.region })), (input.stage !== undefined && input.stage !== null && { stage: input.stage })), (input.warehouse !== undefined && input.warehouse !== null && { warehouse: input.warehouse }));
2748
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountName != null && { accountName: input.accountName })), (input.bucketName != null && { bucketName: input.bucketName })), (input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix })), (input.privateLinkServiceName != null && { privateLinkServiceName: input.privateLinkServiceName })), (input.region != null && { region: input.region })), (input.stage != null && { stage: input.stage })), (input.warehouse != null && { warehouse: input.warehouse }));
2871
2749
  };
2872
2750
  var serializeAws_restJson1SnowflakeDestinationProperties = function (input, context) {
2873
- return __assign(__assign(__assign(__assign({}, (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix })), (input.errorHandlingConfig !== undefined &&
2874
- input.errorHandlingConfig !== null && {
2751
+ return __assign(__assign(__assign(__assign({}, (input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix })), (input.errorHandlingConfig != null && {
2875
2752
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
2876
- })), (input.intermediateBucketName !== undefined &&
2877
- input.intermediateBucketName !== null && { intermediateBucketName: input.intermediateBucketName })), (input.object !== undefined && input.object !== null && { object: input.object }));
2753
+ })), (input.intermediateBucketName != null && { intermediateBucketName: input.intermediateBucketName })), (input.object != null && { object: input.object }));
2878
2754
  };
2879
2755
  var serializeAws_restJson1SourceConnectorProperties = function (input, context) {
2880
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude !== undefined &&
2881
- input.Amplitude !== null && {
2756
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Amplitude != null && {
2882
2757
  Amplitude: serializeAws_restJson1AmplitudeSourceProperties(input.Amplitude, context),
2883
- })), (input.CustomConnector !== undefined &&
2884
- input.CustomConnector !== null && {
2758
+ })), (input.CustomConnector != null && {
2885
2759
  CustomConnector: serializeAws_restJson1CustomConnectorSourceProperties(input.CustomConnector, context),
2886
- })), (input.Datadog !== undefined &&
2887
- input.Datadog !== null && { Datadog: serializeAws_restJson1DatadogSourceProperties(input.Datadog, context) })), (input.Dynatrace !== undefined &&
2888
- input.Dynatrace !== null && {
2760
+ })), (input.Datadog != null && { Datadog: serializeAws_restJson1DatadogSourceProperties(input.Datadog, context) })), (input.Dynatrace != null && {
2889
2761
  Dynatrace: serializeAws_restJson1DynatraceSourceProperties(input.Dynatrace, context),
2890
- })), (input.GoogleAnalytics !== undefined &&
2891
- input.GoogleAnalytics !== null && {
2762
+ })), (input.GoogleAnalytics != null && {
2892
2763
  GoogleAnalytics: serializeAws_restJson1GoogleAnalyticsSourceProperties(input.GoogleAnalytics, context),
2893
- })), (input.InforNexus !== undefined &&
2894
- input.InforNexus !== null && {
2764
+ })), (input.InforNexus != null && {
2895
2765
  InforNexus: serializeAws_restJson1InforNexusSourceProperties(input.InforNexus, context),
2896
- })), (input.Marketo !== undefined &&
2897
- input.Marketo !== null && { Marketo: serializeAws_restJson1MarketoSourceProperties(input.Marketo, context) })), (input.S3 !== undefined &&
2898
- input.S3 !== null && { S3: serializeAws_restJson1S3SourceProperties(input.S3, context) })), (input.SAPOData !== undefined &&
2899
- input.SAPOData !== null && { SAPOData: serializeAws_restJson1SAPODataSourceProperties(input.SAPOData, context) })), (input.Salesforce !== undefined &&
2900
- input.Salesforce !== null && {
2766
+ })), (input.Marketo != null && { Marketo: serializeAws_restJson1MarketoSourceProperties(input.Marketo, context) })), (input.S3 != null && { S3: serializeAws_restJson1S3SourceProperties(input.S3, context) })), (input.SAPOData != null && {
2767
+ SAPOData: serializeAws_restJson1SAPODataSourceProperties(input.SAPOData, context),
2768
+ })), (input.Salesforce != null && {
2901
2769
  Salesforce: serializeAws_restJson1SalesforceSourceProperties(input.Salesforce, context),
2902
- })), (input.ServiceNow !== undefined &&
2903
- input.ServiceNow !== null && {
2770
+ })), (input.ServiceNow != null && {
2904
2771
  ServiceNow: serializeAws_restJson1ServiceNowSourceProperties(input.ServiceNow, context),
2905
- })), (input.Singular !== undefined &&
2906
- input.Singular !== null && { Singular: serializeAws_restJson1SingularSourceProperties(input.Singular, context) })), (input.Slack !== undefined &&
2907
- input.Slack !== null && { Slack: serializeAws_restJson1SlackSourceProperties(input.Slack, context) })), (input.Trendmicro !== undefined &&
2908
- input.Trendmicro !== null && {
2772
+ })), (input.Singular != null && {
2773
+ Singular: serializeAws_restJson1SingularSourceProperties(input.Singular, context),
2774
+ })), (input.Slack != null && { Slack: serializeAws_restJson1SlackSourceProperties(input.Slack, context) })), (input.Trendmicro != null && {
2909
2775
  Trendmicro: serializeAws_restJson1TrendmicroSourceProperties(input.Trendmicro, context),
2910
- })), (input.Veeva !== undefined &&
2911
- input.Veeva !== null && { Veeva: serializeAws_restJson1VeevaSourceProperties(input.Veeva, context) })), (input.Zendesk !== undefined &&
2912
- input.Zendesk !== null && { Zendesk: serializeAws_restJson1ZendeskSourceProperties(input.Zendesk, context) }));
2776
+ })), (input.Veeva != null && { Veeva: serializeAws_restJson1VeevaSourceProperties(input.Veeva, context) })), (input.Zendesk != null && { Zendesk: serializeAws_restJson1ZendeskSourceProperties(input.Zendesk, context) }));
2913
2777
  };
2914
2778
  var serializeAws_restJson1SourceFields = function (input, context) {
2915
2779
  return input
@@ -2922,17 +2786,14 @@ var serializeAws_restJson1SourceFields = function (input, context) {
2922
2786
  });
2923
2787
  };
2924
2788
  var serializeAws_restJson1SourceFlowConfig = function (input, context) {
2925
- return __assign(__assign(__assign(__assign(__assign({}, (input.apiVersion !== undefined && input.apiVersion !== null && { apiVersion: input.apiVersion })), (input.connectorProfileName !== undefined &&
2926
- input.connectorProfileName !== null && { connectorProfileName: input.connectorProfileName })), (input.connectorType !== undefined && input.connectorType !== null && { connectorType: input.connectorType })), (input.incrementalPullConfig !== undefined &&
2927
- input.incrementalPullConfig !== null && {
2789
+ return __assign(__assign(__assign(__assign(__assign({}, (input.apiVersion != null && { apiVersion: input.apiVersion })), (input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName })), (input.connectorType != null && { connectorType: input.connectorType })), (input.incrementalPullConfig != null && {
2928
2790
  incrementalPullConfig: serializeAws_restJson1IncrementalPullConfig(input.incrementalPullConfig, context),
2929
- })), (input.sourceConnectorProperties !== undefined &&
2930
- input.sourceConnectorProperties !== null && {
2791
+ })), (input.sourceConnectorProperties != null && {
2931
2792
  sourceConnectorProperties: serializeAws_restJson1SourceConnectorProperties(input.sourceConnectorProperties, context),
2932
2793
  }));
2933
2794
  };
2934
2795
  var serializeAws_restJson1SuccessResponseHandlingConfig = function (input, context) {
2935
- return __assign(__assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix }));
2796
+ return __assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }));
2936
2797
  };
2937
2798
  var serializeAws_restJson1TagMap = function (input, context) {
2938
2799
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2945,15 +2806,13 @@ var serializeAws_restJson1TagMap = function (input, context) {
2945
2806
  }, {});
2946
2807
  };
2947
2808
  var serializeAws_restJson1Task = function (input, context) {
2948
- return __assign(__assign(__assign(__assign(__assign({}, (input.connectorOperator !== undefined &&
2949
- input.connectorOperator !== null && {
2809
+ return __assign(__assign(__assign(__assign(__assign({}, (input.connectorOperator != null && {
2950
2810
  connectorOperator: serializeAws_restJson1ConnectorOperator(input.connectorOperator, context),
2951
- })), (input.destinationField !== undefined &&
2952
- input.destinationField !== null && { destinationField: input.destinationField })), (input.sourceFields !== undefined &&
2953
- input.sourceFields !== null && { sourceFields: serializeAws_restJson1SourceFields(input.sourceFields, context) })), (input.taskProperties !== undefined &&
2954
- input.taskProperties !== null && {
2811
+ })), (input.destinationField != null && { destinationField: input.destinationField })), (input.sourceFields != null && {
2812
+ sourceFields: serializeAws_restJson1SourceFields(input.sourceFields, context),
2813
+ })), (input.taskProperties != null && {
2955
2814
  taskProperties: serializeAws_restJson1TaskPropertiesMap(input.taskProperties, context),
2956
- })), (input.taskType !== undefined && input.taskType !== null && { taskType: input.taskType }));
2815
+ })), (input.taskType != null && { taskType: input.taskType }));
2957
2816
  };
2958
2817
  var serializeAws_restJson1TaskPropertiesMap = function (input, context) {
2959
2818
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2986,72 +2845,62 @@ var serializeAws_restJson1TokenUrlCustomProperties = function (input, context) {
2986
2845
  }, {});
2987
2846
  };
2988
2847
  var serializeAws_restJson1TrendmicroConnectorProfileCredentials = function (input, context) {
2989
- return __assign({}, (input.apiSecretKey !== undefined && input.apiSecretKey !== null && { apiSecretKey: input.apiSecretKey }));
2848
+ return __assign({}, (input.apiSecretKey != null && { apiSecretKey: input.apiSecretKey }));
2990
2849
  };
2991
2850
  var serializeAws_restJson1TrendmicroConnectorProfileProperties = function (input, context) {
2992
2851
  return {};
2993
2852
  };
2994
2853
  var serializeAws_restJson1TrendmicroSourceProperties = function (input, context) {
2995
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2854
+ return __assign({}, (input.object != null && { object: input.object }));
2996
2855
  };
2997
2856
  var serializeAws_restJson1TriggerConfig = function (input, context) {
2998
- return __assign(__assign({}, (input.triggerProperties !== undefined &&
2999
- input.triggerProperties !== null && {
2857
+ return __assign(__assign({}, (input.triggerProperties != null && {
3000
2858
  triggerProperties: serializeAws_restJson1TriggerProperties(input.triggerProperties, context),
3001
- })), (input.triggerType !== undefined && input.triggerType !== null && { triggerType: input.triggerType }));
2859
+ })), (input.triggerType != null && { triggerType: input.triggerType }));
3002
2860
  };
3003
2861
  var serializeAws_restJson1TriggerProperties = function (input, context) {
3004
- return __assign({}, (input.Scheduled !== undefined &&
3005
- input.Scheduled !== null && {
2862
+ return __assign({}, (input.Scheduled != null && {
3006
2863
  Scheduled: serializeAws_restJson1ScheduledTriggerProperties(input.Scheduled, context),
3007
2864
  }));
3008
2865
  };
3009
2866
  var serializeAws_restJson1UpsolverDestinationProperties = function (input, context) {
3010
- return __assign(__assign(__assign({}, (input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName })), (input.bucketPrefix !== undefined && input.bucketPrefix !== null && { bucketPrefix: input.bucketPrefix })), (input.s3OutputFormatConfig !== undefined &&
3011
- input.s3OutputFormatConfig !== null && {
2867
+ return __assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix })), (input.s3OutputFormatConfig != null && {
3012
2868
  s3OutputFormatConfig: serializeAws_restJson1UpsolverS3OutputFormatConfig(input.s3OutputFormatConfig, context),
3013
2869
  }));
3014
2870
  };
3015
2871
  var serializeAws_restJson1UpsolverS3OutputFormatConfig = function (input, context) {
3016
- return __assign(__assign(__assign({}, (input.aggregationConfig !== undefined &&
3017
- input.aggregationConfig !== null && {
2872
+ return __assign(__assign(__assign({}, (input.aggregationConfig != null && {
3018
2873
  aggregationConfig: serializeAws_restJson1AggregationConfig(input.aggregationConfig, context),
3019
- })), (input.fileType !== undefined && input.fileType !== null && { fileType: input.fileType })), (input.prefixConfig !== undefined &&
3020
- input.prefixConfig !== null && { prefixConfig: serializeAws_restJson1PrefixConfig(input.prefixConfig, context) }));
2874
+ })), (input.fileType != null && { fileType: input.fileType })), (input.prefixConfig != null && {
2875
+ prefixConfig: serializeAws_restJson1PrefixConfig(input.prefixConfig, context),
2876
+ }));
3021
2877
  };
3022
2878
  var serializeAws_restJson1VeevaConnectorProfileCredentials = function (input, context) {
3023
- return __assign(__assign({}, (input.password !== undefined && input.password !== null && { password: input.password })), (input.username !== undefined && input.username !== null && { username: input.username }));
2879
+ return __assign(__assign({}, (input.password != null && { password: input.password })), (input.username != null && { username: input.username }));
3024
2880
  };
3025
2881
  var serializeAws_restJson1VeevaConnectorProfileProperties = function (input, context) {
3026
- return __assign({}, (input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }));
2882
+ return __assign({}, (input.instanceUrl != null && { instanceUrl: input.instanceUrl }));
3027
2883
  };
3028
2884
  var serializeAws_restJson1VeevaSourceProperties = function (input, context) {
3029
- return __assign(__assign(__assign(__assign(__assign({}, (input.documentType !== undefined && input.documentType !== null && { documentType: input.documentType })), (input.includeAllVersions !== undefined &&
3030
- input.includeAllVersions !== null && { includeAllVersions: input.includeAllVersions })), (input.includeRenditions !== undefined &&
3031
- input.includeRenditions !== null && { includeRenditions: input.includeRenditions })), (input.includeSourceFiles !== undefined &&
3032
- input.includeSourceFiles !== null && { includeSourceFiles: input.includeSourceFiles })), (input.object !== undefined && input.object !== null && { object: input.object }));
2885
+ return __assign(__assign(__assign(__assign(__assign({}, (input.documentType != null && { documentType: input.documentType })), (input.includeAllVersions != null && { includeAllVersions: input.includeAllVersions })), (input.includeRenditions != null && { includeRenditions: input.includeRenditions })), (input.includeSourceFiles != null && { includeSourceFiles: input.includeSourceFiles })), (input.object != null && { object: input.object }));
3033
2886
  };
3034
2887
  var serializeAws_restJson1ZendeskConnectorProfileCredentials = function (input, context) {
3035
- return __assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.clientSecret !== undefined && input.clientSecret !== null && { clientSecret: input.clientSecret })), (input.oAuthRequest !== undefined &&
3036
- input.oAuthRequest !== null && {
2888
+ return __assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.clientId != null && { clientId: input.clientId })), (input.clientSecret != null && { clientSecret: input.clientSecret })), (input.oAuthRequest != null && {
3037
2889
  oAuthRequest: serializeAws_restJson1ConnectorOAuthRequest(input.oAuthRequest, context),
3038
2890
  }));
3039
2891
  };
3040
2892
  var serializeAws_restJson1ZendeskConnectorProfileProperties = function (input, context) {
3041
- return __assign({}, (input.instanceUrl !== undefined && input.instanceUrl !== null && { instanceUrl: input.instanceUrl }));
2893
+ return __assign({}, (input.instanceUrl != null && { instanceUrl: input.instanceUrl }));
3042
2894
  };
3043
2895
  var serializeAws_restJson1ZendeskDestinationProperties = function (input, context) {
3044
- return __assign(__assign(__assign(__assign({}, (input.errorHandlingConfig !== undefined &&
3045
- input.errorHandlingConfig !== null && {
2896
+ return __assign(__assign(__assign(__assign({}, (input.errorHandlingConfig != null && {
3046
2897
  errorHandlingConfig: serializeAws_restJson1ErrorHandlingConfig(input.errorHandlingConfig, context),
3047
- })), (input.idFieldNames !== undefined &&
3048
- input.idFieldNames !== null && {
2898
+ })), (input.idFieldNames != null && {
3049
2899
  idFieldNames: serializeAws_restJson1IdFieldNameList(input.idFieldNames, context),
3050
- })), (input.object !== undefined && input.object !== null && { object: input.object })), (input.writeOperationType !== undefined &&
3051
- input.writeOperationType !== null && { writeOperationType: input.writeOperationType }));
2900
+ })), (input.object != null && { object: input.object })), (input.writeOperationType != null && { writeOperationType: input.writeOperationType }));
3052
2901
  };
3053
2902
  var serializeAws_restJson1ZendeskSourceProperties = function (input, context) {
3054
- return __assign({}, (input.object !== undefined && input.object !== null && { object: input.object }));
2903
+ return __assign({}, (input.object != null && { object: input.object }));
3055
2904
  };
3056
2905
  var deserializeAws_restJson1AggregationConfig = function (output, context) {
3057
2906
  return {
@@ -3082,21 +2931,21 @@ var deserializeAws_restJson1AuthCodeUrlList = function (output, context) {
3082
2931
  };
3083
2932
  var deserializeAws_restJson1AuthenticationConfig = function (output, context) {
3084
2933
  return {
3085
- customAuthConfigs: output.customAuthConfigs !== undefined && output.customAuthConfigs !== null
2934
+ customAuthConfigs: output.customAuthConfigs != null
3086
2935
  ? deserializeAws_restJson1CustomAuthConfigList(output.customAuthConfigs, context)
3087
2936
  : undefined,
3088
2937
  isApiKeyAuthSupported: __expectBoolean(output.isApiKeyAuthSupported),
3089
2938
  isBasicAuthSupported: __expectBoolean(output.isBasicAuthSupported),
3090
2939
  isCustomAuthSupported: __expectBoolean(output.isCustomAuthSupported),
3091
2940
  isOAuth2Supported: __expectBoolean(output.isOAuth2Supported),
3092
- oAuth2Defaults: output.oAuth2Defaults !== undefined && output.oAuth2Defaults !== null
2941
+ oAuth2Defaults: output.oAuth2Defaults != null
3093
2942
  ? deserializeAws_restJson1OAuth2Defaults(output.oAuth2Defaults, context)
3094
2943
  : undefined,
3095
2944
  };
3096
2945
  };
3097
2946
  var deserializeAws_restJson1AuthParameter = function (output, context) {
3098
2947
  return {
3099
- connectorSuppliedValues: output.connectorSuppliedValues !== undefined && output.connectorSuppliedValues !== null
2948
+ connectorSuppliedValues: output.connectorSuppliedValues != null
3100
2949
  ? deserializeAws_restJson1ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
3101
2950
  : undefined,
3102
2951
  description: __expectString(output.description),
@@ -3119,7 +2968,7 @@ var deserializeAws_restJson1AuthParameterList = function (output, context) {
3119
2968
  };
3120
2969
  var deserializeAws_restJson1ConnectorConfiguration = function (output, context) {
3121
2970
  return {
3122
- authenticationConfig: output.authenticationConfig !== undefined && output.authenticationConfig !== null
2971
+ authenticationConfig: output.authenticationConfig != null
3123
2972
  ? deserializeAws_restJson1AuthenticationConfig(output.authenticationConfig, context)
3124
2973
  : undefined,
3125
2974
  canUseAsDestination: __expectBoolean(output.canUseAsDestination),
@@ -3127,19 +2976,19 @@ var deserializeAws_restJson1ConnectorConfiguration = function (output, context)
3127
2976
  connectorArn: __expectString(output.connectorArn),
3128
2977
  connectorDescription: __expectString(output.connectorDescription),
3129
2978
  connectorLabel: __expectString(output.connectorLabel),
3130
- connectorMetadata: output.connectorMetadata !== undefined && output.connectorMetadata !== null
2979
+ connectorMetadata: output.connectorMetadata != null
3131
2980
  ? deserializeAws_restJson1ConnectorMetadata(output.connectorMetadata, context)
3132
2981
  : undefined,
3133
- connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
2982
+ connectorModes: output.connectorModes != null
3134
2983
  ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3135
2984
  : undefined,
3136
2985
  connectorName: __expectString(output.connectorName),
3137
2986
  connectorOwner: __expectString(output.connectorOwner),
3138
- connectorProvisioningConfig: output.connectorProvisioningConfig !== undefined && output.connectorProvisioningConfig !== null
2987
+ connectorProvisioningConfig: output.connectorProvisioningConfig != null
3139
2988
  ? deserializeAws_restJson1ConnectorProvisioningConfig(output.connectorProvisioningConfig, context)
3140
2989
  : undefined,
3141
2990
  connectorProvisioningType: __expectString(output.connectorProvisioningType),
3142
- connectorRuntimeSettings: output.connectorRuntimeSettings !== undefined && output.connectorRuntimeSettings !== null
2991
+ connectorRuntimeSettings: output.connectorRuntimeSettings != null
3143
2992
  ? deserializeAws_restJson1ConnectorRuntimeSettingList(output.connectorRuntimeSettings, context)
3144
2993
  : undefined,
3145
2994
  connectorType: __expectString(output.connectorType),
@@ -3147,26 +2996,26 @@ var deserializeAws_restJson1ConnectorConfiguration = function (output, context)
3147
2996
  isPrivateLinkEnabled: __expectBoolean(output.isPrivateLinkEnabled),
3148
2997
  isPrivateLinkEndpointUrlRequired: __expectBoolean(output.isPrivateLinkEndpointUrlRequired),
3149
2998
  logoURL: __expectString(output.logoURL),
3150
- registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
2999
+ registeredAt: output.registeredAt != null
3151
3000
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
3152
3001
  : undefined,
3153
3002
  registeredBy: __expectString(output.registeredBy),
3154
- supportedApiVersions: output.supportedApiVersions !== undefined && output.supportedApiVersions !== null
3003
+ supportedApiVersions: output.supportedApiVersions != null
3155
3004
  ? deserializeAws_restJson1SupportedApiVersionList(output.supportedApiVersions, context)
3156
3005
  : undefined,
3157
- supportedDestinationConnectors: output.supportedDestinationConnectors !== undefined && output.supportedDestinationConnectors !== null
3006
+ supportedDestinationConnectors: output.supportedDestinationConnectors != null
3158
3007
  ? deserializeAws_restJson1ConnectorTypeList(output.supportedDestinationConnectors, context)
3159
3008
  : undefined,
3160
- supportedOperators: output.supportedOperators !== undefined && output.supportedOperators !== null
3009
+ supportedOperators: output.supportedOperators != null
3161
3010
  ? deserializeAws_restJson1SupportedOperatorList(output.supportedOperators, context)
3162
3011
  : undefined,
3163
- supportedSchedulingFrequencies: output.supportedSchedulingFrequencies !== undefined && output.supportedSchedulingFrequencies !== null
3012
+ supportedSchedulingFrequencies: output.supportedSchedulingFrequencies != null
3164
3013
  ? deserializeAws_restJson1SchedulingFrequencyTypeList(output.supportedSchedulingFrequencies, context)
3165
3014
  : undefined,
3166
- supportedTriggerTypes: output.supportedTriggerTypes !== undefined && output.supportedTriggerTypes !== null
3015
+ supportedTriggerTypes: output.supportedTriggerTypes != null
3167
3016
  ? deserializeAws_restJson1TriggerTypeList(output.supportedTriggerTypes, context)
3168
3017
  : undefined,
3169
- supportedWriteOperations: output.supportedWriteOperations !== undefined && output.supportedWriteOperations !== null
3018
+ supportedWriteOperations: output.supportedWriteOperations != null
3170
3019
  ? deserializeAws_restJson1SupportedWriteOperationList(output.supportedWriteOperations, context)
3171
3020
  : undefined,
3172
3021
  };
@@ -3186,7 +3035,7 @@ var deserializeAws_restJson1ConnectorDetail = function (output, context) {
3186
3035
  applicationType: __expectString(output.applicationType),
3187
3036
  connectorDescription: __expectString(output.connectorDescription),
3188
3037
  connectorLabel: __expectString(output.connectorLabel),
3189
- connectorModes: output.connectorModes !== undefined && output.connectorModes !== null
3038
+ connectorModes: output.connectorModes != null
3190
3039
  ? deserializeAws_restJson1ConnectorModeList(output.connectorModes, context)
3191
3040
  : undefined,
3192
3041
  connectorName: __expectString(output.connectorName),
@@ -3194,7 +3043,7 @@ var deserializeAws_restJson1ConnectorDetail = function (output, context) {
3194
3043
  connectorProvisioningType: __expectString(output.connectorProvisioningType),
3195
3044
  connectorType: __expectString(output.connectorType),
3196
3045
  connectorVersion: __expectString(output.connectorVersion),
3197
- registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
3046
+ registeredAt: output.registeredAt != null
3198
3047
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
3199
3048
  : undefined,
3200
3049
  registeredBy: __expectString(output.registeredBy),
@@ -3209,12 +3058,12 @@ var deserializeAws_restJson1ConnectorEntity = function (output, context) {
3209
3058
  };
3210
3059
  var deserializeAws_restJson1ConnectorEntityField = function (output, context) {
3211
3060
  return {
3212
- customProperties: output.customProperties !== undefined && output.customProperties !== null
3061
+ customProperties: output.customProperties != null
3213
3062
  ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3214
3063
  : undefined,
3215
3064
  defaultValue: __expectString(output.defaultValue),
3216
3065
  description: __expectString(output.description),
3217
- destinationProperties: output.destinationProperties !== undefined && output.destinationProperties !== null
3066
+ destinationProperties: output.destinationProperties != null
3218
3067
  ? deserializeAws_restJson1DestinationFieldProperties(output.destinationProperties, context)
3219
3068
  : undefined,
3220
3069
  identifier: __expectString(output.identifier),
@@ -3222,10 +3071,10 @@ var deserializeAws_restJson1ConnectorEntityField = function (output, context) {
3222
3071
  isPrimaryKey: __expectBoolean(output.isPrimaryKey),
3223
3072
  label: __expectString(output.label),
3224
3073
  parentIdentifier: __expectString(output.parentIdentifier),
3225
- sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
3074
+ sourceProperties: output.sourceProperties != null
3226
3075
  ? deserializeAws_restJson1SourceFieldProperties(output.sourceProperties, context)
3227
3076
  : undefined,
3228
- supportedFieldTypeDetails: output.supportedFieldTypeDetails !== undefined && output.supportedFieldTypeDetails !== null
3077
+ supportedFieldTypeDetails: output.supportedFieldTypeDetails != null
3229
3078
  ? deserializeAws_restJson1SupportedFieldTypeDetails(output.supportedFieldTypeDetails, context)
3230
3079
  : undefined,
3231
3080
  };
@@ -3275,69 +3124,31 @@ var deserializeAws_restJson1ConnectorList = function (output, context) {
3275
3124
  };
3276
3125
  var deserializeAws_restJson1ConnectorMetadata = function (output, context) {
3277
3126
  return {
3278
- Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3279
- ? deserializeAws_restJson1AmplitudeMetadata(output.Amplitude, context)
3280
- : undefined,
3281
- CustomerProfiles: output.CustomerProfiles !== undefined && output.CustomerProfiles !== null
3127
+ Amplitude: output.Amplitude != null ? deserializeAws_restJson1AmplitudeMetadata(output.Amplitude, context) : undefined,
3128
+ CustomerProfiles: output.CustomerProfiles != null
3282
3129
  ? deserializeAws_restJson1CustomerProfilesMetadata(output.CustomerProfiles, context)
3283
3130
  : undefined,
3284
- Datadog: output.Datadog !== undefined && output.Datadog !== null
3285
- ? deserializeAws_restJson1DatadogMetadata(output.Datadog, context)
3286
- : undefined,
3287
- Dynatrace: output.Dynatrace !== undefined && output.Dynatrace !== null
3288
- ? deserializeAws_restJson1DynatraceMetadata(output.Dynatrace, context)
3289
- : undefined,
3290
- EventBridge: output.EventBridge !== undefined && output.EventBridge !== null
3291
- ? deserializeAws_restJson1EventBridgeMetadata(output.EventBridge, context)
3292
- : undefined,
3293
- GoogleAnalytics: output.GoogleAnalytics !== undefined && output.GoogleAnalytics !== null
3131
+ Datadog: output.Datadog != null ? deserializeAws_restJson1DatadogMetadata(output.Datadog, context) : undefined,
3132
+ Dynatrace: output.Dynatrace != null ? deserializeAws_restJson1DynatraceMetadata(output.Dynatrace, context) : undefined,
3133
+ EventBridge: output.EventBridge != null ? deserializeAws_restJson1EventBridgeMetadata(output.EventBridge, context) : undefined,
3134
+ GoogleAnalytics: output.GoogleAnalytics != null
3294
3135
  ? deserializeAws_restJson1GoogleAnalyticsMetadata(output.GoogleAnalytics, context)
3295
3136
  : undefined,
3296
- Honeycode: output.Honeycode !== undefined && output.Honeycode !== null
3297
- ? deserializeAws_restJson1HoneycodeMetadata(output.Honeycode, context)
3298
- : undefined,
3299
- InforNexus: output.InforNexus !== undefined && output.InforNexus !== null
3300
- ? deserializeAws_restJson1InforNexusMetadata(output.InforNexus, context)
3301
- : undefined,
3302
- Marketo: output.Marketo !== undefined && output.Marketo !== null
3303
- ? deserializeAws_restJson1MarketoMetadata(output.Marketo, context)
3304
- : undefined,
3305
- Redshift: output.Redshift !== undefined && output.Redshift !== null
3306
- ? deserializeAws_restJson1RedshiftMetadata(output.Redshift, context)
3307
- : undefined,
3308
- S3: output.S3 !== undefined && output.S3 !== null
3309
- ? deserializeAws_restJson1S3Metadata(output.S3, context)
3310
- : undefined,
3311
- SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
3312
- ? deserializeAws_restJson1SAPODataMetadata(output.SAPOData, context)
3313
- : undefined,
3314
- Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
3315
- ? deserializeAws_restJson1SalesforceMetadata(output.Salesforce, context)
3316
- : undefined,
3317
- ServiceNow: output.ServiceNow !== undefined && output.ServiceNow !== null
3318
- ? deserializeAws_restJson1ServiceNowMetadata(output.ServiceNow, context)
3319
- : undefined,
3320
- Singular: output.Singular !== undefined && output.Singular !== null
3321
- ? deserializeAws_restJson1SingularMetadata(output.Singular, context)
3322
- : undefined,
3323
- Slack: output.Slack !== undefined && output.Slack !== null
3324
- ? deserializeAws_restJson1SlackMetadata(output.Slack, context)
3325
- : undefined,
3326
- Snowflake: output.Snowflake !== undefined && output.Snowflake !== null
3327
- ? deserializeAws_restJson1SnowflakeMetadata(output.Snowflake, context)
3328
- : undefined,
3329
- Trendmicro: output.Trendmicro !== undefined && output.Trendmicro !== null
3330
- ? deserializeAws_restJson1TrendmicroMetadata(output.Trendmicro, context)
3331
- : undefined,
3332
- Upsolver: output.Upsolver !== undefined && output.Upsolver !== null
3333
- ? deserializeAws_restJson1UpsolverMetadata(output.Upsolver, context)
3334
- : undefined,
3335
- Veeva: output.Veeva !== undefined && output.Veeva !== null
3336
- ? deserializeAws_restJson1VeevaMetadata(output.Veeva, context)
3337
- : undefined,
3338
- Zendesk: output.Zendesk !== undefined && output.Zendesk !== null
3339
- ? deserializeAws_restJson1ZendeskMetadata(output.Zendesk, context)
3340
- : undefined,
3137
+ Honeycode: output.Honeycode != null ? deserializeAws_restJson1HoneycodeMetadata(output.Honeycode, context) : undefined,
3138
+ InforNexus: output.InforNexus != null ? deserializeAws_restJson1InforNexusMetadata(output.InforNexus, context) : undefined,
3139
+ Marketo: output.Marketo != null ? deserializeAws_restJson1MarketoMetadata(output.Marketo, context) : undefined,
3140
+ Redshift: output.Redshift != null ? deserializeAws_restJson1RedshiftMetadata(output.Redshift, context) : undefined,
3141
+ S3: output.S3 != null ? deserializeAws_restJson1S3Metadata(output.S3, context) : undefined,
3142
+ SAPOData: output.SAPOData != null ? deserializeAws_restJson1SAPODataMetadata(output.SAPOData, context) : undefined,
3143
+ Salesforce: output.Salesforce != null ? deserializeAws_restJson1SalesforceMetadata(output.Salesforce, context) : undefined,
3144
+ ServiceNow: output.ServiceNow != null ? deserializeAws_restJson1ServiceNowMetadata(output.ServiceNow, context) : undefined,
3145
+ Singular: output.Singular != null ? deserializeAws_restJson1SingularMetadata(output.Singular, context) : undefined,
3146
+ Slack: output.Slack != null ? deserializeAws_restJson1SlackMetadata(output.Slack, context) : undefined,
3147
+ Snowflake: output.Snowflake != null ? deserializeAws_restJson1SnowflakeMetadata(output.Snowflake, context) : undefined,
3148
+ Trendmicro: output.Trendmicro != null ? deserializeAws_restJson1TrendmicroMetadata(output.Trendmicro, context) : undefined,
3149
+ Upsolver: output.Upsolver != null ? deserializeAws_restJson1UpsolverMetadata(output.Upsolver, context) : undefined,
3150
+ Veeva: output.Veeva != null ? deserializeAws_restJson1VeevaMetadata(output.Veeva, context) : undefined,
3151
+ Zendesk: output.Zendesk != null ? deserializeAws_restJson1ZendeskMetadata(output.Zendesk, context) : undefined,
3341
3152
  };
3342
3153
  };
3343
3154
  var deserializeAws_restJson1ConnectorModeList = function (output, context) {
@@ -3377,18 +3188,16 @@ var deserializeAws_restJson1ConnectorProfile = function (output, context) {
3377
3188
  connectorLabel: __expectString(output.connectorLabel),
3378
3189
  connectorProfileArn: __expectString(output.connectorProfileArn),
3379
3190
  connectorProfileName: __expectString(output.connectorProfileName),
3380
- connectorProfileProperties: output.connectorProfileProperties !== undefined && output.connectorProfileProperties !== null
3191
+ connectorProfileProperties: output.connectorProfileProperties != null
3381
3192
  ? deserializeAws_restJson1ConnectorProfileProperties(output.connectorProfileProperties, context)
3382
3193
  : undefined,
3383
3194
  connectorType: __expectString(output.connectorType),
3384
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3385
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3386
- : undefined,
3195
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3387
3196
  credentialsArn: __expectString(output.credentialsArn),
3388
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
3197
+ lastUpdatedAt: output.lastUpdatedAt != null
3389
3198
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
3390
3199
  : undefined,
3391
- privateConnectionProvisioningState: output.privateConnectionProvisioningState !== undefined && output.privateConnectionProvisioningState !== null
3200
+ privateConnectionProvisioningState: output.privateConnectionProvisioningState != null
3392
3201
  ? deserializeAws_restJson1PrivateConnectionProvisioningState(output.privateConnectionProvisioningState, context)
3393
3202
  : undefined,
3394
3203
  };
@@ -3406,72 +3215,68 @@ var deserializeAws_restJson1ConnectorProfileDetailList = function (output, conte
3406
3215
  };
3407
3216
  var deserializeAws_restJson1ConnectorProfileProperties = function (output, context) {
3408
3217
  return {
3409
- Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
3218
+ Amplitude: output.Amplitude != null
3410
3219
  ? deserializeAws_restJson1AmplitudeConnectorProfileProperties(output.Amplitude, context)
3411
3220
  : undefined,
3412
- CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
3221
+ CustomConnector: output.CustomConnector != null
3413
3222
  ? deserializeAws_restJson1CustomConnectorProfileProperties(output.CustomConnector, context)
3414
3223
  : undefined,
3415
- Datadog: output.Datadog !== undefined && output.Datadog !== null
3224
+ Datadog: output.Datadog != null
3416
3225
  ? deserializeAws_restJson1DatadogConnectorProfileProperties(output.Datadog, context)
3417
3226
  : undefined,
3418
- Dynatrace: output.Dynatrace !== undefined && output.Dynatrace !== null
3227
+ Dynatrace: output.Dynatrace != null
3419
3228
  ? deserializeAws_restJson1DynatraceConnectorProfileProperties(output.Dynatrace, context)
3420
3229
  : undefined,
3421
- GoogleAnalytics: output.GoogleAnalytics !== undefined && output.GoogleAnalytics !== null
3230
+ GoogleAnalytics: output.GoogleAnalytics != null
3422
3231
  ? deserializeAws_restJson1GoogleAnalyticsConnectorProfileProperties(output.GoogleAnalytics, context)
3423
3232
  : undefined,
3424
- Honeycode: output.Honeycode !== undefined && output.Honeycode !== null
3233
+ Honeycode: output.Honeycode != null
3425
3234
  ? deserializeAws_restJson1HoneycodeConnectorProfileProperties(output.Honeycode, context)
3426
3235
  : undefined,
3427
- InforNexus: output.InforNexus !== undefined && output.InforNexus !== null
3236
+ InforNexus: output.InforNexus != null
3428
3237
  ? deserializeAws_restJson1InforNexusConnectorProfileProperties(output.InforNexus, context)
3429
3238
  : undefined,
3430
- Marketo: output.Marketo !== undefined && output.Marketo !== null
3239
+ Marketo: output.Marketo != null
3431
3240
  ? deserializeAws_restJson1MarketoConnectorProfileProperties(output.Marketo, context)
3432
3241
  : undefined,
3433
- Redshift: output.Redshift !== undefined && output.Redshift !== null
3242
+ Redshift: output.Redshift != null
3434
3243
  ? deserializeAws_restJson1RedshiftConnectorProfileProperties(output.Redshift, context)
3435
3244
  : undefined,
3436
- SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
3245
+ SAPOData: output.SAPOData != null
3437
3246
  ? deserializeAws_restJson1SAPODataConnectorProfileProperties(output.SAPOData, context)
3438
3247
  : undefined,
3439
- Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
3248
+ Salesforce: output.Salesforce != null
3440
3249
  ? deserializeAws_restJson1SalesforceConnectorProfileProperties(output.Salesforce, context)
3441
3250
  : undefined,
3442
- ServiceNow: output.ServiceNow !== undefined && output.ServiceNow !== null
3251
+ ServiceNow: output.ServiceNow != null
3443
3252
  ? deserializeAws_restJson1ServiceNowConnectorProfileProperties(output.ServiceNow, context)
3444
3253
  : undefined,
3445
- Singular: output.Singular !== undefined && output.Singular !== null
3254
+ Singular: output.Singular != null
3446
3255
  ? deserializeAws_restJson1SingularConnectorProfileProperties(output.Singular, context)
3447
3256
  : undefined,
3448
- Slack: output.Slack !== undefined && output.Slack !== null
3449
- ? deserializeAws_restJson1SlackConnectorProfileProperties(output.Slack, context)
3450
- : undefined,
3451
- Snowflake: output.Snowflake !== undefined && output.Snowflake !== null
3257
+ Slack: output.Slack != null ? deserializeAws_restJson1SlackConnectorProfileProperties(output.Slack, context) : undefined,
3258
+ Snowflake: output.Snowflake != null
3452
3259
  ? deserializeAws_restJson1SnowflakeConnectorProfileProperties(output.Snowflake, context)
3453
3260
  : undefined,
3454
- Trendmicro: output.Trendmicro !== undefined && output.Trendmicro !== null
3261
+ Trendmicro: output.Trendmicro != null
3455
3262
  ? deserializeAws_restJson1TrendmicroConnectorProfileProperties(output.Trendmicro, context)
3456
3263
  : undefined,
3457
- Veeva: output.Veeva !== undefined && output.Veeva !== null
3458
- ? deserializeAws_restJson1VeevaConnectorProfileProperties(output.Veeva, context)
3459
- : undefined,
3460
- Zendesk: output.Zendesk !== undefined && output.Zendesk !== null
3264
+ Veeva: output.Veeva != null ? deserializeAws_restJson1VeevaConnectorProfileProperties(output.Veeva, context) : undefined,
3265
+ Zendesk: output.Zendesk != null
3461
3266
  ? deserializeAws_restJson1ZendeskConnectorProfileProperties(output.Zendesk, context)
3462
3267
  : undefined,
3463
3268
  };
3464
3269
  };
3465
3270
  var deserializeAws_restJson1ConnectorProvisioningConfig = function (output, context) {
3466
3271
  return {
3467
- lambda: output.lambda !== undefined && output.lambda !== null
3272
+ lambda: output.lambda != null
3468
3273
  ? deserializeAws_restJson1LambdaConnectorProvisioningConfig(output.lambda, context)
3469
3274
  : undefined,
3470
3275
  };
3471
3276
  };
3472
3277
  var deserializeAws_restJson1ConnectorRuntimeSetting = function (output, context) {
3473
3278
  return {
3474
- connectorSuppliedValueOptions: output.connectorSuppliedValueOptions !== undefined && output.connectorSuppliedValueOptions !== null
3279
+ connectorSuppliedValueOptions: output.connectorSuppliedValueOptions != null
3475
3280
  ? deserializeAws_restJson1ConnectorSuppliedValueOptionList(output.connectorSuppliedValueOptions, context)
3476
3281
  : undefined,
3477
3282
  dataType: __expectString(output.dataType),
@@ -3528,7 +3333,7 @@ var deserializeAws_restJson1ConnectorTypeList = function (output, context) {
3528
3333
  };
3529
3334
  var deserializeAws_restJson1CustomAuthConfig = function (output, context) {
3530
3335
  return {
3531
- authParameters: output.authParameters !== undefined && output.authParameters !== null
3336
+ authParameters: output.authParameters != null
3532
3337
  ? deserializeAws_restJson1AuthParameterList(output.authParameters, context)
3533
3338
  : undefined,
3534
3339
  customAuthenticationType: __expectString(output.customAuthenticationType),
@@ -3547,32 +3352,30 @@ var deserializeAws_restJson1CustomAuthConfigList = function (output, context) {
3547
3352
  };
3548
3353
  var deserializeAws_restJson1CustomConnectorDestinationProperties = function (output, context) {
3549
3354
  return {
3550
- customProperties: output.customProperties !== undefined && output.customProperties !== null
3355
+ customProperties: output.customProperties != null
3551
3356
  ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3552
3357
  : undefined,
3553
3358
  entityName: __expectString(output.entityName),
3554
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3359
+ errorHandlingConfig: output.errorHandlingConfig != null
3555
3360
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3556
3361
  : undefined,
3557
- idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
3558
- ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
3559
- : undefined,
3362
+ idFieldNames: output.idFieldNames != null ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context) : undefined,
3560
3363
  writeOperationType: __expectString(output.writeOperationType),
3561
3364
  };
3562
3365
  };
3563
3366
  var deserializeAws_restJson1CustomConnectorProfileProperties = function (output, context) {
3564
3367
  return {
3565
- oAuth2Properties: output.oAuth2Properties !== undefined && output.oAuth2Properties !== null
3368
+ oAuth2Properties: output.oAuth2Properties != null
3566
3369
  ? deserializeAws_restJson1OAuth2Properties(output.oAuth2Properties, context)
3567
3370
  : undefined,
3568
- profileProperties: output.profileProperties !== undefined && output.profileProperties !== null
3371
+ profileProperties: output.profileProperties != null
3569
3372
  ? deserializeAws_restJson1ProfilePropertiesMap(output.profileProperties, context)
3570
3373
  : undefined,
3571
3374
  };
3572
3375
  };
3573
3376
  var deserializeAws_restJson1CustomConnectorSourceProperties = function (output, context) {
3574
3377
  return {
3575
- customProperties: output.customProperties !== undefined && output.customProperties !== null
3378
+ customProperties: output.customProperties != null
3576
3379
  ? deserializeAws_restJson1CustomProperties(output.customProperties, context)
3577
3380
  : undefined,
3578
3381
  entityName: __expectString(output.entityName),
@@ -3612,43 +3415,41 @@ var deserializeAws_restJson1DatadogSourceProperties = function (output, context)
3612
3415
  };
3613
3416
  var deserializeAws_restJson1DestinationConnectorProperties = function (output, context) {
3614
3417
  return {
3615
- CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
3418
+ CustomConnector: output.CustomConnector != null
3616
3419
  ? deserializeAws_restJson1CustomConnectorDestinationProperties(output.CustomConnector, context)
3617
3420
  : undefined,
3618
- CustomerProfiles: output.CustomerProfiles !== undefined && output.CustomerProfiles !== null
3421
+ CustomerProfiles: output.CustomerProfiles != null
3619
3422
  ? deserializeAws_restJson1CustomerProfilesDestinationProperties(output.CustomerProfiles, context)
3620
3423
  : undefined,
3621
- EventBridge: output.EventBridge !== undefined && output.EventBridge !== null
3424
+ EventBridge: output.EventBridge != null
3622
3425
  ? deserializeAws_restJson1EventBridgeDestinationProperties(output.EventBridge, context)
3623
3426
  : undefined,
3624
- Honeycode: output.Honeycode !== undefined && output.Honeycode !== null
3427
+ Honeycode: output.Honeycode != null
3625
3428
  ? deserializeAws_restJson1HoneycodeDestinationProperties(output.Honeycode, context)
3626
3429
  : undefined,
3627
- LookoutMetrics: output.LookoutMetrics !== undefined && output.LookoutMetrics !== null
3430
+ LookoutMetrics: output.LookoutMetrics != null
3628
3431
  ? deserializeAws_restJson1LookoutMetricsDestinationProperties(output.LookoutMetrics, context)
3629
3432
  : undefined,
3630
- Marketo: output.Marketo !== undefined && output.Marketo !== null
3433
+ Marketo: output.Marketo != null
3631
3434
  ? deserializeAws_restJson1MarketoDestinationProperties(output.Marketo, context)
3632
3435
  : undefined,
3633
- Redshift: output.Redshift !== undefined && output.Redshift !== null
3436
+ Redshift: output.Redshift != null
3634
3437
  ? deserializeAws_restJson1RedshiftDestinationProperties(output.Redshift, context)
3635
3438
  : undefined,
3636
- S3: output.S3 !== undefined && output.S3 !== null
3637
- ? deserializeAws_restJson1S3DestinationProperties(output.S3, context)
3638
- : undefined,
3639
- SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
3439
+ S3: output.S3 != null ? deserializeAws_restJson1S3DestinationProperties(output.S3, context) : undefined,
3440
+ SAPOData: output.SAPOData != null
3640
3441
  ? deserializeAws_restJson1SAPODataDestinationProperties(output.SAPOData, context)
3641
3442
  : undefined,
3642
- Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
3443
+ Salesforce: output.Salesforce != null
3643
3444
  ? deserializeAws_restJson1SalesforceDestinationProperties(output.Salesforce, context)
3644
3445
  : undefined,
3645
- Snowflake: output.Snowflake !== undefined && output.Snowflake !== null
3446
+ Snowflake: output.Snowflake != null
3646
3447
  ? deserializeAws_restJson1SnowflakeDestinationProperties(output.Snowflake, context)
3647
3448
  : undefined,
3648
- Upsolver: output.Upsolver !== undefined && output.Upsolver !== null
3449
+ Upsolver: output.Upsolver != null
3649
3450
  ? deserializeAws_restJson1UpsolverDestinationProperties(output.Upsolver, context)
3650
3451
  : undefined,
3651
- Zendesk: output.Zendesk !== undefined && output.Zendesk !== null
3452
+ Zendesk: output.Zendesk != null
3652
3453
  ? deserializeAws_restJson1ZendeskDestinationProperties(output.Zendesk, context)
3653
3454
  : undefined,
3654
3455
  };
@@ -3660,7 +3461,7 @@ var deserializeAws_restJson1DestinationFieldProperties = function (output, conte
3660
3461
  isNullable: __expectBoolean(output.isNullable),
3661
3462
  isUpdatable: __expectBoolean(output.isUpdatable),
3662
3463
  isUpsertable: __expectBoolean(output.isUpsertable),
3663
- supportedWriteOperations: output.supportedWriteOperations !== undefined && output.supportedWriteOperations !== null
3464
+ supportedWriteOperations: output.supportedWriteOperations != null
3664
3465
  ? deserializeAws_restJson1SupportedWriteOperationList(output.supportedWriteOperations, context)
3665
3466
  : undefined,
3666
3467
  };
@@ -3670,7 +3471,7 @@ var deserializeAws_restJson1DestinationFlowConfig = function (output, context) {
3670
3471
  apiVersion: __expectString(output.apiVersion),
3671
3472
  connectorProfileName: __expectString(output.connectorProfileName),
3672
3473
  connectorType: __expectString(output.connectorType),
3673
- destinationConnectorProperties: output.destinationConnectorProperties !== undefined && output.destinationConnectorProperties !== null
3474
+ destinationConnectorProperties: output.destinationConnectorProperties != null
3674
3475
  ? deserializeAws_restJson1DestinationConnectorProperties(output.destinationConnectorProperties, context)
3675
3476
  : undefined,
3676
3477
  };
@@ -3714,7 +3515,7 @@ var deserializeAws_restJson1ErrorInfo = function (output, context) {
3714
3515
  };
3715
3516
  var deserializeAws_restJson1EventBridgeDestinationProperties = function (output, context) {
3716
3517
  return {
3717
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3518
+ errorHandlingConfig: output.errorHandlingConfig != null
3718
3519
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3719
3520
  : undefined,
3720
3521
  object: __expectString(output.object),
@@ -3727,56 +3528,48 @@ var deserializeAws_restJson1ExecutionDetails = function (output, context) {
3727
3528
  return {
3728
3529
  mostRecentExecutionMessage: __expectString(output.mostRecentExecutionMessage),
3729
3530
  mostRecentExecutionStatus: __expectString(output.mostRecentExecutionStatus),
3730
- mostRecentExecutionTime: output.mostRecentExecutionTime !== undefined && output.mostRecentExecutionTime !== null
3531
+ mostRecentExecutionTime: output.mostRecentExecutionTime != null
3731
3532
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.mostRecentExecutionTime)))
3732
3533
  : undefined,
3733
3534
  };
3734
3535
  };
3735
3536
  var deserializeAws_restJson1ExecutionRecord = function (output, context) {
3736
3537
  return {
3737
- dataPullEndTime: output.dataPullEndTime !== undefined && output.dataPullEndTime !== null
3538
+ dataPullEndTime: output.dataPullEndTime != null
3738
3539
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.dataPullEndTime)))
3739
3540
  : undefined,
3740
- dataPullStartTime: output.dataPullStartTime !== undefined && output.dataPullStartTime !== null
3541
+ dataPullStartTime: output.dataPullStartTime != null
3741
3542
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.dataPullStartTime)))
3742
3543
  : undefined,
3743
3544
  executionId: __expectString(output.executionId),
3744
- executionResult: output.executionResult !== undefined && output.executionResult !== null
3545
+ executionResult: output.executionResult != null
3745
3546
  ? deserializeAws_restJson1ExecutionResult(output.executionResult, context)
3746
3547
  : undefined,
3747
3548
  executionStatus: __expectString(output.executionStatus),
3748
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
3549
+ lastUpdatedAt: output.lastUpdatedAt != null
3749
3550
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
3750
3551
  : undefined,
3751
- startedAt: output.startedAt !== undefined && output.startedAt !== null
3752
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt)))
3753
- : undefined,
3552
+ startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
3754
3553
  };
3755
3554
  };
3756
3555
  var deserializeAws_restJson1ExecutionResult = function (output, context) {
3757
3556
  return {
3758
3557
  bytesProcessed: __expectLong(output.bytesProcessed),
3759
3558
  bytesWritten: __expectLong(output.bytesWritten),
3760
- errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
3761
- ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context)
3762
- : undefined,
3559
+ errorInfo: output.errorInfo != null ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context) : undefined,
3763
3560
  recordsProcessed: __expectLong(output.recordsProcessed),
3764
3561
  };
3765
3562
  };
3766
3563
  var deserializeAws_restJson1FieldTypeDetails = function (output, context) {
3767
3564
  return {
3768
- fieldLengthRange: output.fieldLengthRange !== undefined && output.fieldLengthRange !== null
3769
- ? deserializeAws_restJson1Range(output.fieldLengthRange, context)
3770
- : undefined,
3565
+ fieldLengthRange: output.fieldLengthRange != null ? deserializeAws_restJson1Range(output.fieldLengthRange, context) : undefined,
3771
3566
  fieldType: __expectString(output.fieldType),
3772
- fieldValueRange: output.fieldValueRange !== undefined && output.fieldValueRange !== null
3773
- ? deserializeAws_restJson1Range(output.fieldValueRange, context)
3774
- : undefined,
3775
- filterOperators: output.filterOperators !== undefined && output.filterOperators !== null
3567
+ fieldValueRange: output.fieldValueRange != null ? deserializeAws_restJson1Range(output.fieldValueRange, context) : undefined,
3568
+ filterOperators: output.filterOperators != null
3776
3569
  ? deserializeAws_restJson1FilterOperatorList(output.filterOperators, context)
3777
3570
  : undefined,
3778
3571
  supportedDateFormat: __expectString(output.supportedDateFormat),
3779
- supportedValues: output.supportedValues !== undefined && output.supportedValues !== null
3572
+ supportedValues: output.supportedValues != null
3780
3573
  ? deserializeAws_restJson1SupportedValueList(output.supportedValues, context)
3781
3574
  : undefined,
3782
3575
  valueRegexPattern: __expectString(output.valueRegexPattern),
@@ -3795,9 +3588,7 @@ var deserializeAws_restJson1FilterOperatorList = function (output, context) {
3795
3588
  };
3796
3589
  var deserializeAws_restJson1FlowDefinition = function (output, context) {
3797
3590
  return {
3798
- createdAt: output.createdAt !== undefined && output.createdAt !== null
3799
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
3800
- : undefined,
3591
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3801
3592
  createdBy: __expectString(output.createdBy),
3802
3593
  description: __expectString(output.description),
3803
3594
  destinationConnectorLabel: __expectString(output.destinationConnectorLabel),
@@ -3805,18 +3596,16 @@ var deserializeAws_restJson1FlowDefinition = function (output, context) {
3805
3596
  flowArn: __expectString(output.flowArn),
3806
3597
  flowName: __expectString(output.flowName),
3807
3598
  flowStatus: __expectString(output.flowStatus),
3808
- lastRunExecutionDetails: output.lastRunExecutionDetails !== undefined && output.lastRunExecutionDetails !== null
3599
+ lastRunExecutionDetails: output.lastRunExecutionDetails != null
3809
3600
  ? deserializeAws_restJson1ExecutionDetails(output.lastRunExecutionDetails, context)
3810
3601
  : undefined,
3811
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
3602
+ lastUpdatedAt: output.lastUpdatedAt != null
3812
3603
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
3813
3604
  : undefined,
3814
3605
  lastUpdatedBy: __expectString(output.lastUpdatedBy),
3815
3606
  sourceConnectorLabel: __expectString(output.sourceConnectorLabel),
3816
3607
  sourceConnectorType: __expectString(output.sourceConnectorType),
3817
- tags: output.tags !== undefined && output.tags !== null
3818
- ? deserializeAws_restJson1TagMap(output.tags, context)
3819
- : undefined,
3608
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3820
3609
  triggerType: __expectString(output.triggerType),
3821
3610
  };
3822
3611
  };
@@ -3847,9 +3636,7 @@ var deserializeAws_restJson1GoogleAnalyticsConnectorProfileProperties = function
3847
3636
  };
3848
3637
  var deserializeAws_restJson1GoogleAnalyticsMetadata = function (output, context) {
3849
3638
  return {
3850
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
3851
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
3852
- : undefined,
3639
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
3853
3640
  };
3854
3641
  };
3855
3642
  var deserializeAws_restJson1GoogleAnalyticsSourceProperties = function (output, context) {
@@ -3862,7 +3649,7 @@ var deserializeAws_restJson1HoneycodeConnectorProfileProperties = function (outp
3862
3649
  };
3863
3650
  var deserializeAws_restJson1HoneycodeDestinationProperties = function (output, context) {
3864
3651
  return {
3865
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3652
+ errorHandlingConfig: output.errorHandlingConfig != null
3866
3653
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3867
3654
  : undefined,
3868
3655
  object: __expectString(output.object),
@@ -3870,9 +3657,7 @@ var deserializeAws_restJson1HoneycodeDestinationProperties = function (output, c
3870
3657
  };
3871
3658
  var deserializeAws_restJson1HoneycodeMetadata = function (output, context) {
3872
3659
  return {
3873
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
3874
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
3875
- : undefined,
3660
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
3876
3661
  };
3877
3662
  };
3878
3663
  var deserializeAws_restJson1IdFieldNameList = function (output, context) {
@@ -3919,7 +3704,7 @@ var deserializeAws_restJson1MarketoConnectorProfileProperties = function (output
3919
3704
  };
3920
3705
  var deserializeAws_restJson1MarketoDestinationProperties = function (output, context) {
3921
3706
  return {
3922
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3707
+ errorHandlingConfig: output.errorHandlingConfig != null
3923
3708
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
3924
3709
  : undefined,
3925
3710
  object: __expectString(output.object),
@@ -3935,7 +3720,7 @@ var deserializeAws_restJson1MarketoSourceProperties = function (output, context)
3935
3720
  };
3936
3721
  var deserializeAws_restJson1OAuth2CustomParameter = function (output, context) {
3937
3722
  return {
3938
- connectorSuppliedValues: output.connectorSuppliedValues !== undefined && output.connectorSuppliedValues !== null
3723
+ connectorSuppliedValues: output.connectorSuppliedValues != null
3939
3724
  ? deserializeAws_restJson1ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
3940
3725
  : undefined,
3941
3726
  description: __expectString(output.description),
@@ -3959,21 +3744,15 @@ var deserializeAws_restJson1OAuth2CustomPropertiesList = function (output, conte
3959
3744
  };
3960
3745
  var deserializeAws_restJson1OAuth2Defaults = function (output, context) {
3961
3746
  return {
3962
- authCodeUrls: output.authCodeUrls !== undefined && output.authCodeUrls !== null
3963
- ? deserializeAws_restJson1AuthCodeUrlList(output.authCodeUrls, context)
3964
- : undefined,
3965
- oauth2CustomProperties: output.oauth2CustomProperties !== undefined && output.oauth2CustomProperties !== null
3747
+ authCodeUrls: output.authCodeUrls != null ? deserializeAws_restJson1AuthCodeUrlList(output.authCodeUrls, context) : undefined,
3748
+ oauth2CustomProperties: output.oauth2CustomProperties != null
3966
3749
  ? deserializeAws_restJson1OAuth2CustomPropertiesList(output.oauth2CustomProperties, context)
3967
3750
  : undefined,
3968
- oauth2GrantTypesSupported: output.oauth2GrantTypesSupported !== undefined && output.oauth2GrantTypesSupported !== null
3751
+ oauth2GrantTypesSupported: output.oauth2GrantTypesSupported != null
3969
3752
  ? deserializeAws_restJson1OAuth2GrantTypeSupportedList(output.oauth2GrantTypesSupported, context)
3970
3753
  : undefined,
3971
- oauthScopes: output.oauthScopes !== undefined && output.oauthScopes !== null
3972
- ? deserializeAws_restJson1OAuthScopeList(output.oauthScopes, context)
3973
- : undefined,
3974
- tokenUrls: output.tokenUrls !== undefined && output.tokenUrls !== null
3975
- ? deserializeAws_restJson1TokenUrlList(output.tokenUrls, context)
3976
- : undefined,
3754
+ oauthScopes: output.oauthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oauthScopes, context) : undefined,
3755
+ tokenUrls: output.tokenUrls != null ? deserializeAws_restJson1TokenUrlList(output.tokenUrls, context) : undefined,
3977
3756
  };
3978
3757
  };
3979
3758
  var deserializeAws_restJson1OAuth2GrantTypeSupportedList = function (output, context) {
@@ -3991,7 +3770,7 @@ var deserializeAws_restJson1OAuth2Properties = function (output, context) {
3991
3770
  return {
3992
3771
  oAuth2GrantType: __expectString(output.oAuth2GrantType),
3993
3772
  tokenUrl: __expectString(output.tokenUrl),
3994
- tokenUrlCustomProperties: output.tokenUrlCustomProperties !== undefined && output.tokenUrlCustomProperties !== null
3773
+ tokenUrlCustomProperties: output.tokenUrlCustomProperties != null
3995
3774
  ? deserializeAws_restJson1TokenUrlCustomProperties(output.tokenUrlCustomProperties, context)
3996
3775
  : undefined,
3997
3776
  };
@@ -3999,9 +3778,7 @@ var deserializeAws_restJson1OAuth2Properties = function (output, context) {
3999
3778
  var deserializeAws_restJson1OAuthProperties = function (output, context) {
4000
3779
  return {
4001
3780
  authCodeUrl: __expectString(output.authCodeUrl),
4002
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
4003
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
4004
- : undefined,
3781
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
4005
3782
  tokenUrl: __expectString(output.tokenUrl),
4006
3783
  };
4007
3784
  };
@@ -4056,7 +3833,7 @@ var deserializeAws_restJson1RedshiftConnectorProfileProperties = function (outpu
4056
3833
  var deserializeAws_restJson1RedshiftDestinationProperties = function (output, context) {
4057
3834
  return {
4058
3835
  bucketPrefix: __expectString(output.bucketPrefix),
4059
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3836
+ errorHandlingConfig: output.errorHandlingConfig != null
4060
3837
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4061
3838
  : undefined,
4062
3839
  intermediateBucketName: __expectString(output.intermediateBucketName),
@@ -4081,7 +3858,7 @@ var deserializeAws_restJson1S3DestinationProperties = function (output, context)
4081
3858
  return {
4082
3859
  bucketName: __expectString(output.bucketName),
4083
3860
  bucketPrefix: __expectString(output.bucketPrefix),
4084
- s3OutputFormatConfig: output.s3OutputFormatConfig !== undefined && output.s3OutputFormatConfig !== null
3861
+ s3OutputFormatConfig: output.s3OutputFormatConfig != null
4085
3862
  ? deserializeAws_restJson1S3OutputFormatConfig(output.s3OutputFormatConfig, context)
4086
3863
  : undefined,
4087
3864
  };
@@ -4096,13 +3873,11 @@ var deserializeAws_restJson1S3Metadata = function (output, context) {
4096
3873
  };
4097
3874
  var deserializeAws_restJson1S3OutputFormatConfig = function (output, context) {
4098
3875
  return {
4099
- aggregationConfig: output.aggregationConfig !== undefined && output.aggregationConfig !== null
3876
+ aggregationConfig: output.aggregationConfig != null
4100
3877
  ? deserializeAws_restJson1AggregationConfig(output.aggregationConfig, context)
4101
3878
  : undefined,
4102
3879
  fileType: __expectString(output.fileType),
4103
- prefixConfig: output.prefixConfig !== undefined && output.prefixConfig !== null
4104
- ? deserializeAws_restJson1PrefixConfig(output.prefixConfig, context)
4105
- : undefined,
3880
+ prefixConfig: output.prefixConfig != null ? deserializeAws_restJson1PrefixConfig(output.prefixConfig, context) : undefined,
4106
3881
  preserveSourceDataTyping: __expectBoolean(output.preserveSourceDataTyping),
4107
3882
  };
4108
3883
  };
@@ -4110,7 +3885,7 @@ var deserializeAws_restJson1S3SourceProperties = function (output, context) {
4110
3885
  return {
4111
3886
  bucketName: __expectString(output.bucketName),
4112
3887
  bucketPrefix: __expectString(output.bucketPrefix),
4113
- s3InputFormatConfig: output.s3InputFormatConfig !== undefined && output.s3InputFormatConfig !== null
3888
+ s3InputFormatConfig: output.s3InputFormatConfig != null
4114
3889
  ? deserializeAws_restJson1S3InputFormatConfig(output.s3InputFormatConfig, context)
4115
3890
  : undefined,
4116
3891
  };
@@ -4123,21 +3898,17 @@ var deserializeAws_restJson1SalesforceConnectorProfileProperties = function (out
4123
3898
  };
4124
3899
  var deserializeAws_restJson1SalesforceDestinationProperties = function (output, context) {
4125
3900
  return {
4126
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3901
+ errorHandlingConfig: output.errorHandlingConfig != null
4127
3902
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4128
3903
  : undefined,
4129
- idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
4130
- ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
4131
- : undefined,
3904
+ idFieldNames: output.idFieldNames != null ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context) : undefined,
4132
3905
  object: __expectString(output.object),
4133
3906
  writeOperationType: __expectString(output.writeOperationType),
4134
3907
  };
4135
3908
  };
4136
3909
  var deserializeAws_restJson1SalesforceMetadata = function (output, context) {
4137
3910
  return {
4138
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
4139
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
4140
- : undefined,
3911
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
4141
3912
  };
4142
3913
  };
4143
3914
  var deserializeAws_restJson1SalesforceSourceProperties = function (output, context) {
@@ -4153,7 +3924,7 @@ var deserializeAws_restJson1SAPODataConnectorProfileProperties = function (outpu
4153
3924
  applicationServicePath: __expectString(output.applicationServicePath),
4154
3925
  clientNumber: __expectString(output.clientNumber),
4155
3926
  logonLanguage: __expectString(output.logonLanguage),
4156
- oAuthProperties: output.oAuthProperties !== undefined && output.oAuthProperties !== null
3927
+ oAuthProperties: output.oAuthProperties != null
4157
3928
  ? deserializeAws_restJson1OAuthProperties(output.oAuthProperties, context)
4158
3929
  : undefined,
4159
3930
  portNumber: __expectInt32(output.portNumber),
@@ -4162,14 +3933,12 @@ var deserializeAws_restJson1SAPODataConnectorProfileProperties = function (outpu
4162
3933
  };
4163
3934
  var deserializeAws_restJson1SAPODataDestinationProperties = function (output, context) {
4164
3935
  return {
4165
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
3936
+ errorHandlingConfig: output.errorHandlingConfig != null
4166
3937
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4167
3938
  : undefined,
4168
- idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
4169
- ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
4170
- : undefined,
3939
+ idFieldNames: output.idFieldNames != null ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context) : undefined,
4171
3940
  objectPath: __expectString(output.objectPath),
4172
- successResponseHandlingConfig: output.successResponseHandlingConfig !== undefined && output.successResponseHandlingConfig !== null
3941
+ successResponseHandlingConfig: output.successResponseHandlingConfig != null
4173
3942
  ? deserializeAws_restJson1SuccessResponseHandlingConfig(output.successResponseHandlingConfig, context)
4174
3943
  : undefined,
4175
3944
  writeOperationType: __expectString(output.writeOperationType),
@@ -4186,16 +3955,16 @@ var deserializeAws_restJson1SAPODataSourceProperties = function (output, context
4186
3955
  var deserializeAws_restJson1ScheduledTriggerProperties = function (output, context) {
4187
3956
  return {
4188
3957
  dataPullMode: __expectString(output.dataPullMode),
4189
- firstExecutionFrom: output.firstExecutionFrom !== undefined && output.firstExecutionFrom !== null
3958
+ firstExecutionFrom: output.firstExecutionFrom != null
4190
3959
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstExecutionFrom)))
4191
3960
  : undefined,
4192
3961
  flowErrorDeactivationThreshold: __expectInt32(output.flowErrorDeactivationThreshold),
4193
- scheduleEndTime: output.scheduleEndTime !== undefined && output.scheduleEndTime !== null
3962
+ scheduleEndTime: output.scheduleEndTime != null
4194
3963
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.scheduleEndTime)))
4195
3964
  : undefined,
4196
3965
  scheduleExpression: __expectString(output.scheduleExpression),
4197
3966
  scheduleOffset: __expectLong(output.scheduleOffset),
4198
- scheduleStartTime: output.scheduleStartTime !== undefined && output.scheduleStartTime !== null
3967
+ scheduleStartTime: output.scheduleStartTime != null
4199
3968
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.scheduleStartTime)))
4200
3969
  : undefined,
4201
3970
  timezone: __expectString(output.timezone),
@@ -4243,9 +4012,7 @@ var deserializeAws_restJson1SlackConnectorProfileProperties = function (output,
4243
4012
  };
4244
4013
  var deserializeAws_restJson1SlackMetadata = function (output, context) {
4245
4014
  return {
4246
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
4247
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
4248
- : undefined,
4015
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
4249
4016
  };
4250
4017
  };
4251
4018
  var deserializeAws_restJson1SlackSourceProperties = function (output, context) {
@@ -4267,7 +4034,7 @@ var deserializeAws_restJson1SnowflakeConnectorProfileProperties = function (outp
4267
4034
  var deserializeAws_restJson1SnowflakeDestinationProperties = function (output, context) {
4268
4035
  return {
4269
4036
  bucketPrefix: __expectString(output.bucketPrefix),
4270
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
4037
+ errorHandlingConfig: output.errorHandlingConfig != null
4271
4038
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4272
4039
  : undefined,
4273
4040
  intermediateBucketName: __expectString(output.intermediateBucketName),
@@ -4276,61 +4043,45 @@ var deserializeAws_restJson1SnowflakeDestinationProperties = function (output, c
4276
4043
  };
4277
4044
  var deserializeAws_restJson1SnowflakeMetadata = function (output, context) {
4278
4045
  return {
4279
- supportedRegions: output.supportedRegions !== undefined && output.supportedRegions !== null
4046
+ supportedRegions: output.supportedRegions != null
4280
4047
  ? deserializeAws_restJson1RegionList(output.supportedRegions, context)
4281
4048
  : undefined,
4282
4049
  };
4283
4050
  };
4284
4051
  var deserializeAws_restJson1SourceConnectorProperties = function (output, context) {
4285
4052
  return {
4286
- Amplitude: output.Amplitude !== undefined && output.Amplitude !== null
4053
+ Amplitude: output.Amplitude != null
4287
4054
  ? deserializeAws_restJson1AmplitudeSourceProperties(output.Amplitude, context)
4288
4055
  : undefined,
4289
- CustomConnector: output.CustomConnector !== undefined && output.CustomConnector !== null
4056
+ CustomConnector: output.CustomConnector != null
4290
4057
  ? deserializeAws_restJson1CustomConnectorSourceProperties(output.CustomConnector, context)
4291
4058
  : undefined,
4292
- Datadog: output.Datadog !== undefined && output.Datadog !== null
4293
- ? deserializeAws_restJson1DatadogSourceProperties(output.Datadog, context)
4294
- : undefined,
4295
- Dynatrace: output.Dynatrace !== undefined && output.Dynatrace !== null
4059
+ Datadog: output.Datadog != null ? deserializeAws_restJson1DatadogSourceProperties(output.Datadog, context) : undefined,
4060
+ Dynatrace: output.Dynatrace != null
4296
4061
  ? deserializeAws_restJson1DynatraceSourceProperties(output.Dynatrace, context)
4297
4062
  : undefined,
4298
- GoogleAnalytics: output.GoogleAnalytics !== undefined && output.GoogleAnalytics !== null
4063
+ GoogleAnalytics: output.GoogleAnalytics != null
4299
4064
  ? deserializeAws_restJson1GoogleAnalyticsSourceProperties(output.GoogleAnalytics, context)
4300
4065
  : undefined,
4301
- InforNexus: output.InforNexus !== undefined && output.InforNexus !== null
4066
+ InforNexus: output.InforNexus != null
4302
4067
  ? deserializeAws_restJson1InforNexusSourceProperties(output.InforNexus, context)
4303
4068
  : undefined,
4304
- Marketo: output.Marketo !== undefined && output.Marketo !== null
4305
- ? deserializeAws_restJson1MarketoSourceProperties(output.Marketo, context)
4306
- : undefined,
4307
- S3: output.S3 !== undefined && output.S3 !== null
4308
- ? deserializeAws_restJson1S3SourceProperties(output.S3, context)
4309
- : undefined,
4310
- SAPOData: output.SAPOData !== undefined && output.SAPOData !== null
4311
- ? deserializeAws_restJson1SAPODataSourceProperties(output.SAPOData, context)
4312
- : undefined,
4313
- Salesforce: output.Salesforce !== undefined && output.Salesforce !== null
4069
+ Marketo: output.Marketo != null ? deserializeAws_restJson1MarketoSourceProperties(output.Marketo, context) : undefined,
4070
+ S3: output.S3 != null ? deserializeAws_restJson1S3SourceProperties(output.S3, context) : undefined,
4071
+ SAPOData: output.SAPOData != null ? deserializeAws_restJson1SAPODataSourceProperties(output.SAPOData, context) : undefined,
4072
+ Salesforce: output.Salesforce != null
4314
4073
  ? deserializeAws_restJson1SalesforceSourceProperties(output.Salesforce, context)
4315
4074
  : undefined,
4316
- ServiceNow: output.ServiceNow !== undefined && output.ServiceNow !== null
4075
+ ServiceNow: output.ServiceNow != null
4317
4076
  ? deserializeAws_restJson1ServiceNowSourceProperties(output.ServiceNow, context)
4318
4077
  : undefined,
4319
- Singular: output.Singular !== undefined && output.Singular !== null
4320
- ? deserializeAws_restJson1SingularSourceProperties(output.Singular, context)
4321
- : undefined,
4322
- Slack: output.Slack !== undefined && output.Slack !== null
4323
- ? deserializeAws_restJson1SlackSourceProperties(output.Slack, context)
4324
- : undefined,
4325
- Trendmicro: output.Trendmicro !== undefined && output.Trendmicro !== null
4078
+ Singular: output.Singular != null ? deserializeAws_restJson1SingularSourceProperties(output.Singular, context) : undefined,
4079
+ Slack: output.Slack != null ? deserializeAws_restJson1SlackSourceProperties(output.Slack, context) : undefined,
4080
+ Trendmicro: output.Trendmicro != null
4326
4081
  ? deserializeAws_restJson1TrendmicroSourceProperties(output.Trendmicro, context)
4327
4082
  : undefined,
4328
- Veeva: output.Veeva !== undefined && output.Veeva !== null
4329
- ? deserializeAws_restJson1VeevaSourceProperties(output.Veeva, context)
4330
- : undefined,
4331
- Zendesk: output.Zendesk !== undefined && output.Zendesk !== null
4332
- ? deserializeAws_restJson1ZendeskSourceProperties(output.Zendesk, context)
4333
- : undefined,
4083
+ Veeva: output.Veeva != null ? deserializeAws_restJson1VeevaSourceProperties(output.Veeva, context) : undefined,
4084
+ Zendesk: output.Zendesk != null ? deserializeAws_restJson1ZendeskSourceProperties(output.Zendesk, context) : undefined,
4334
4085
  };
4335
4086
  };
4336
4087
  var deserializeAws_restJson1SourceFieldProperties = function (output, context) {
@@ -4356,10 +4107,10 @@ var deserializeAws_restJson1SourceFlowConfig = function (output, context) {
4356
4107
  apiVersion: __expectString(output.apiVersion),
4357
4108
  connectorProfileName: __expectString(output.connectorProfileName),
4358
4109
  connectorType: __expectString(output.connectorType),
4359
- incrementalPullConfig: output.incrementalPullConfig !== undefined && output.incrementalPullConfig !== null
4110
+ incrementalPullConfig: output.incrementalPullConfig != null
4360
4111
  ? deserializeAws_restJson1IncrementalPullConfig(output.incrementalPullConfig, context)
4361
4112
  : undefined,
4362
- sourceConnectorProperties: output.sourceConnectorProperties !== undefined && output.sourceConnectorProperties !== null
4113
+ sourceConnectorProperties: output.sourceConnectorProperties != null
4363
4114
  ? deserializeAws_restJson1SourceConnectorProperties(output.sourceConnectorProperties, context)
4364
4115
  : undefined,
4365
4116
  };
@@ -4383,9 +4134,7 @@ var deserializeAws_restJson1SupportedApiVersionList = function (output, context)
4383
4134
  };
4384
4135
  var deserializeAws_restJson1SupportedFieldTypeDetails = function (output, context) {
4385
4136
  return {
4386
- v1: output.v1 !== undefined && output.v1 !== null
4387
- ? deserializeAws_restJson1FieldTypeDetails(output.v1, context)
4388
- : undefined,
4137
+ v1: output.v1 != null ? deserializeAws_restJson1FieldTypeDetails(output.v1, context) : undefined,
4389
4138
  };
4390
4139
  };
4391
4140
  var deserializeAws_restJson1SupportedOperatorList = function (output, context) {
@@ -4433,14 +4182,12 @@ var deserializeAws_restJson1TagMap = function (output, context) {
4433
4182
  };
4434
4183
  var deserializeAws_restJson1Task = function (output, context) {
4435
4184
  return {
4436
- connectorOperator: output.connectorOperator !== undefined && output.connectorOperator !== null
4185
+ connectorOperator: output.connectorOperator != null
4437
4186
  ? deserializeAws_restJson1ConnectorOperator(output.connectorOperator, context)
4438
4187
  : undefined,
4439
4188
  destinationField: __expectString(output.destinationField),
4440
- sourceFields: output.sourceFields !== undefined && output.sourceFields !== null
4441
- ? deserializeAws_restJson1SourceFields(output.sourceFields, context)
4442
- : undefined,
4443
- taskProperties: output.taskProperties !== undefined && output.taskProperties !== null
4189
+ sourceFields: output.sourceFields != null ? deserializeAws_restJson1SourceFields(output.sourceFields, context) : undefined,
4190
+ taskProperties: output.taskProperties != null
4444
4191
  ? deserializeAws_restJson1TaskPropertiesMap(output.taskProperties, context)
4445
4192
  : undefined,
4446
4193
  taskType: __expectString(output.taskType),
@@ -4501,7 +4248,7 @@ var deserializeAws_restJson1TrendmicroSourceProperties = function (output, conte
4501
4248
  };
4502
4249
  var deserializeAws_restJson1TriggerConfig = function (output, context) {
4503
4250
  return {
4504
- triggerProperties: output.triggerProperties !== undefined && output.triggerProperties !== null
4251
+ triggerProperties: output.triggerProperties != null
4505
4252
  ? deserializeAws_restJson1TriggerProperties(output.triggerProperties, context)
4506
4253
  : undefined,
4507
4254
  triggerType: __expectString(output.triggerType),
@@ -4509,7 +4256,7 @@ var deserializeAws_restJson1TriggerConfig = function (output, context) {
4509
4256
  };
4510
4257
  var deserializeAws_restJson1TriggerProperties = function (output, context) {
4511
4258
  return {
4512
- Scheduled: output.Scheduled !== undefined && output.Scheduled !== null
4259
+ Scheduled: output.Scheduled != null
4513
4260
  ? deserializeAws_restJson1ScheduledTriggerProperties(output.Scheduled, context)
4514
4261
  : undefined,
4515
4262
  };
@@ -4529,7 +4276,7 @@ var deserializeAws_restJson1UpsolverDestinationProperties = function (output, co
4529
4276
  return {
4530
4277
  bucketName: __expectString(output.bucketName),
4531
4278
  bucketPrefix: __expectString(output.bucketPrefix),
4532
- s3OutputFormatConfig: output.s3OutputFormatConfig !== undefined && output.s3OutputFormatConfig !== null
4279
+ s3OutputFormatConfig: output.s3OutputFormatConfig != null
4533
4280
  ? deserializeAws_restJson1UpsolverS3OutputFormatConfig(output.s3OutputFormatConfig, context)
4534
4281
  : undefined,
4535
4282
  };
@@ -4539,13 +4286,11 @@ var deserializeAws_restJson1UpsolverMetadata = function (output, context) {
4539
4286
  };
4540
4287
  var deserializeAws_restJson1UpsolverS3OutputFormatConfig = function (output, context) {
4541
4288
  return {
4542
- aggregationConfig: output.aggregationConfig !== undefined && output.aggregationConfig !== null
4289
+ aggregationConfig: output.aggregationConfig != null
4543
4290
  ? deserializeAws_restJson1AggregationConfig(output.aggregationConfig, context)
4544
4291
  : undefined,
4545
4292
  fileType: __expectString(output.fileType),
4546
- prefixConfig: output.prefixConfig !== undefined && output.prefixConfig !== null
4547
- ? deserializeAws_restJson1PrefixConfig(output.prefixConfig, context)
4548
- : undefined,
4293
+ prefixConfig: output.prefixConfig != null ? deserializeAws_restJson1PrefixConfig(output.prefixConfig, context) : undefined,
4549
4294
  };
4550
4295
  };
4551
4296
  var deserializeAws_restJson1VeevaConnectorProfileProperties = function (output, context) {
@@ -4572,21 +4317,17 @@ var deserializeAws_restJson1ZendeskConnectorProfileProperties = function (output
4572
4317
  };
4573
4318
  var deserializeAws_restJson1ZendeskDestinationProperties = function (output, context) {
4574
4319
  return {
4575
- errorHandlingConfig: output.errorHandlingConfig !== undefined && output.errorHandlingConfig !== null
4320
+ errorHandlingConfig: output.errorHandlingConfig != null
4576
4321
  ? deserializeAws_restJson1ErrorHandlingConfig(output.errorHandlingConfig, context)
4577
4322
  : undefined,
4578
- idFieldNames: output.idFieldNames !== undefined && output.idFieldNames !== null
4579
- ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context)
4580
- : undefined,
4323
+ idFieldNames: output.idFieldNames != null ? deserializeAws_restJson1IdFieldNameList(output.idFieldNames, context) : undefined,
4581
4324
  object: __expectString(output.object),
4582
4325
  writeOperationType: __expectString(output.writeOperationType),
4583
4326
  };
4584
4327
  };
4585
4328
  var deserializeAws_restJson1ZendeskMetadata = function (output, context) {
4586
4329
  return {
4587
- oAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
4588
- ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context)
4589
- : undefined,
4330
+ oAuthScopes: output.oAuthScopes != null ? deserializeAws_restJson1OAuthScopeList(output.oAuthScopes, context) : undefined,
4590
4331
  };
4591
4332
  };
4592
4333
  var deserializeAws_restJson1ZendeskSourceProperties = function (output, context) {
@@ -4650,5 +4391,4 @@ var loadRestJsonErrorCode = function (output, data) {
4650
4391
  if (data["__type"] !== undefined) {
4651
4392
  return sanitizeErrorCode(data["__type"]);
4652
4393
  }
4653
- return "";
4654
4394
  };