@aws-sdk/client-kafkaconnect 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,24 +14,15 @@ export var serializeAws_restJson1CreateConnectorCommand = function (input, conte
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 || "") + "/v1/connectors";
17
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacity !== undefined &&
18
- input.capacity !== null && { capacity: serializeAws_restJson1Capacity(input.capacity, context) })), (input.connectorConfiguration !== undefined &&
19
- input.connectorConfiguration !== null && {
17
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacity != null && { capacity: serializeAws_restJson1Capacity(input.capacity, context) })), (input.connectorConfiguration != null && {
20
18
  connectorConfiguration: serializeAws_restJson1__mapOf__string(input.connectorConfiguration, context),
21
- })), (input.connectorDescription !== undefined &&
22
- input.connectorDescription !== null && { connectorDescription: input.connectorDescription })), (input.connectorName !== undefined && input.connectorName !== null && { connectorName: input.connectorName })), (input.kafkaCluster !== undefined &&
23
- input.kafkaCluster !== null && { kafkaCluster: serializeAws_restJson1KafkaCluster(input.kafkaCluster, context) })), (input.kafkaClusterClientAuthentication !== undefined &&
24
- input.kafkaClusterClientAuthentication !== null && {
19
+ })), (input.connectorDescription != null && { connectorDescription: input.connectorDescription })), (input.connectorName != null && { connectorName: input.connectorName })), (input.kafkaCluster != null && {
20
+ kafkaCluster: serializeAws_restJson1KafkaCluster(input.kafkaCluster, context),
21
+ })), (input.kafkaClusterClientAuthentication != null && {
25
22
  kafkaClusterClientAuthentication: serializeAws_restJson1KafkaClusterClientAuthentication(input.kafkaClusterClientAuthentication, context),
26
- })), (input.kafkaClusterEncryptionInTransit !== undefined &&
27
- input.kafkaClusterEncryptionInTransit !== null && {
23
+ })), (input.kafkaClusterEncryptionInTransit != null && {
28
24
  kafkaClusterEncryptionInTransit: serializeAws_restJson1KafkaClusterEncryptionInTransit(input.kafkaClusterEncryptionInTransit, context),
29
- })), (input.kafkaConnectVersion !== undefined &&
30
- input.kafkaConnectVersion !== null && { kafkaConnectVersion: input.kafkaConnectVersion })), (input.logDelivery !== undefined &&
31
- input.logDelivery !== null && { logDelivery: serializeAws_restJson1LogDelivery(input.logDelivery, context) })), (input.plugins !== undefined &&
32
- input.plugins !== null && { plugins: serializeAws_restJson1__listOfPlugin(input.plugins, context) })), (input.serviceExecutionRoleArn !== undefined &&
33
- input.serviceExecutionRoleArn !== null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn })), (input.workerConfiguration !== undefined &&
34
- input.workerConfiguration !== null && {
25
+ })), (input.kafkaConnectVersion != null && { kafkaConnectVersion: input.kafkaConnectVersion })), (input.logDelivery != null && { logDelivery: serializeAws_restJson1LogDelivery(input.logDelivery, context) })), (input.plugins != null && { plugins: serializeAws_restJson1__listOfPlugin(input.plugins, context) })), (input.serviceExecutionRoleArn != null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn })), (input.workerConfiguration != null && {
35
26
  workerConfiguration: serializeAws_restJson1WorkerConfiguration(input.workerConfiguration, context),
36
27
  })));
37
28
  return [2, new __HttpRequest({
@@ -57,8 +48,7 @@ export var serializeAws_restJson1CreateCustomPluginCommand = function (input, co
57
48
  "content-type": "application/json",
58
49
  };
59
50
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins";
60
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.location !== undefined &&
61
- input.location !== null && { location: serializeAws_restJson1CustomPluginLocation(input.location, context) })), (input.name !== undefined && input.name !== null && { name: input.name })));
51
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentType != null && { contentType: input.contentType })), (input.description != null && { description: input.description })), (input.location != null && { location: serializeAws_restJson1CustomPluginLocation(input.location, context) })), (input.name != null && { name: input.name })));
62
52
  return [2, new __HttpRequest({
63
53
  protocol: protocol,
64
54
  hostname: hostname,
@@ -82,8 +72,7 @@ export var serializeAws_restJson1CreateWorkerConfigurationCommand = function (in
82
72
  "content-type": "application/json",
83
73
  };
84
74
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/worker-configurations";
85
- body = JSON.stringify(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.propertiesFileContent !== undefined &&
86
- input.propertiesFileContent !== null && { propertiesFileContent: input.propertiesFileContent })));
75
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.propertiesFileContent != null && { propertiesFileContent: input.propertiesFileContent })));
87
76
  return [2, new __HttpRequest({
88
77
  protocol: protocol,
89
78
  hostname: hostname,
@@ -345,8 +334,7 @@ export var serializeAws_restJson1UpdateConnectorCommand = function (input, conte
345
334
  throw new Error("No value provided for input HTTP label: connectorArn.");
346
335
  }
347
336
  query = __assign({}, (input.currentVersion !== undefined && { currentVersion: input.currentVersion }));
348
- body = JSON.stringify(__assign({}, (input.capacity !== undefined &&
349
- input.capacity !== null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) })));
337
+ body = JSON.stringify(__assign({}, (input.capacity != null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) })));
350
338
  return [2, new __HttpRequest({
351
339
  protocol: protocol,
352
340
  hostname: hostname,
@@ -393,7 +381,7 @@ export var deserializeAws_restJson1CreateConnectorCommand = function (output, co
393
381
  });
394
382
  }); };
395
383
  var deserializeAws_restJson1CreateConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
396
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
384
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
397
385
  var _c;
398
386
  return __generator(this, function (_d) {
399
387
  switch (_d.label) {
@@ -403,7 +391,6 @@ var deserializeAws_restJson1CreateConnectorCommandError = function (output, cont
403
391
  return [4, parseBody(output.body, context)];
404
392
  case 1:
405
393
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
406
- errorCode = "UnknownError";
407
394
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
408
395
  _b = errorCode;
409
396
  switch (_b) {
@@ -443,10 +430,12 @@ var deserializeAws_restJson1CreateConnectorCommandError = function (output, cont
443
430
  case 17: throw _d.sent();
444
431
  case 18:
445
432
  parsedBody = parsedOutput.body;
433
+ $metadata = deserializeMetadata(output);
434
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
446
435
  response = new __BaseException({
447
- name: parsedBody.code || parsedBody.Code || errorCode,
436
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
448
437
  $fault: "client",
449
- $metadata: deserializeMetadata(output),
438
+ $metadata: $metadata,
450
439
  });
451
440
  throw __decorateServiceException(response, parsedBody);
452
441
  }
@@ -489,7 +478,7 @@ export var deserializeAws_restJson1CreateCustomPluginCommand = function (output,
489
478
  });
490
479
  }); };
491
480
  var deserializeAws_restJson1CreateCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
492
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
481
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
493
482
  var _c;
494
483
  return __generator(this, function (_d) {
495
484
  switch (_d.label) {
@@ -499,7 +488,6 @@ var deserializeAws_restJson1CreateCustomPluginCommandError = function (output, c
499
488
  return [4, parseBody(output.body, context)];
500
489
  case 1:
501
490
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
502
- errorCode = "UnknownError";
503
491
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
504
492
  _b = errorCode;
505
493
  switch (_b) {
@@ -539,10 +527,12 @@ var deserializeAws_restJson1CreateCustomPluginCommandError = function (output, c
539
527
  case 17: throw _d.sent();
540
528
  case 18:
541
529
  parsedBody = parsedOutput.body;
530
+ $metadata = deserializeMetadata(output);
531
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
542
532
  response = new __BaseException({
543
- name: parsedBody.code || parsedBody.Code || errorCode,
533
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
544
534
  $fault: "client",
545
- $metadata: deserializeMetadata(output),
535
+ $metadata: $metadata,
546
536
  });
547
537
  throw __decorateServiceException(response, parsedBody);
548
538
  }
@@ -585,7 +575,7 @@ export var deserializeAws_restJson1CreateWorkerConfigurationCommand = function (
585
575
  });
586
576
  }); };
587
577
  var deserializeAws_restJson1CreateWorkerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
588
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
578
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
589
579
  var _c;
590
580
  return __generator(this, function (_d) {
591
581
  switch (_d.label) {
@@ -595,7 +585,6 @@ var deserializeAws_restJson1CreateWorkerConfigurationCommandError = function (ou
595
585
  return [4, parseBody(output.body, context)];
596
586
  case 1:
597
587
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
598
- errorCode = "UnknownError";
599
588
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
600
589
  _b = errorCode;
601
590
  switch (_b) {
@@ -635,10 +624,12 @@ var deserializeAws_restJson1CreateWorkerConfigurationCommandError = function (ou
635
624
  case 17: throw _d.sent();
636
625
  case 18:
637
626
  parsedBody = parsedOutput.body;
627
+ $metadata = deserializeMetadata(output);
628
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
638
629
  response = new __BaseException({
639
- name: parsedBody.code || parsedBody.Code || errorCode,
630
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
640
631
  $fault: "client",
641
- $metadata: deserializeMetadata(output),
632
+ $metadata: $metadata,
642
633
  });
643
634
  throw __decorateServiceException(response, parsedBody);
644
635
  }
@@ -673,7 +664,7 @@ export var deserializeAws_restJson1DeleteConnectorCommand = function (output, co
673
664
  });
674
665
  }); };
675
666
  var deserializeAws_restJson1DeleteConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
676
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
667
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
677
668
  var _c;
678
669
  return __generator(this, function (_d) {
679
670
  switch (_d.label) {
@@ -683,7 +674,6 @@ var deserializeAws_restJson1DeleteConnectorCommandError = function (output, cont
683
674
  return [4, parseBody(output.body, context)];
684
675
  case 1:
685
676
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
686
- errorCode = "UnknownError";
687
677
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
688
678
  _b = errorCode;
689
679
  switch (_b) {
@@ -719,10 +709,12 @@ var deserializeAws_restJson1DeleteConnectorCommandError = function (output, cont
719
709
  case 15: throw _d.sent();
720
710
  case 16:
721
711
  parsedBody = parsedOutput.body;
712
+ $metadata = deserializeMetadata(output);
713
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
722
714
  response = new __BaseException({
723
- name: parsedBody.code || parsedBody.Code || errorCode,
715
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
724
716
  $fault: "client",
725
- $metadata: deserializeMetadata(output),
717
+ $metadata: $metadata,
726
718
  });
727
719
  throw __decorateServiceException(response, parsedBody);
728
720
  }
@@ -757,7 +749,7 @@ export var deserializeAws_restJson1DeleteCustomPluginCommand = function (output,
757
749
  });
758
750
  }); };
759
751
  var deserializeAws_restJson1DeleteCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
760
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
752
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
761
753
  var _c;
762
754
  return __generator(this, function (_d) {
763
755
  switch (_d.label) {
@@ -767,7 +759,6 @@ var deserializeAws_restJson1DeleteCustomPluginCommandError = function (output, c
767
759
  return [4, parseBody(output.body, context)];
768
760
  case 1:
769
761
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
770
- errorCode = "UnknownError";
771
762
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
772
763
  _b = errorCode;
773
764
  switch (_b) {
@@ -803,10 +794,12 @@ var deserializeAws_restJson1DeleteCustomPluginCommandError = function (output, c
803
794
  case 15: throw _d.sent();
804
795
  case 16:
805
796
  parsedBody = parsedOutput.body;
797
+ $metadata = deserializeMetadata(output);
798
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
806
799
  response = new __BaseException({
807
- name: parsedBody.code || parsedBody.Code || errorCode,
800
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
808
801
  $fault: "client",
809
- $metadata: deserializeMetadata(output),
802
+ $metadata: $metadata,
810
803
  });
811
804
  throw __decorateServiceException(response, parsedBody);
812
805
  }
@@ -901,7 +894,7 @@ export var deserializeAws_restJson1DescribeConnectorCommand = function (output,
901
894
  });
902
895
  }); };
903
896
  var deserializeAws_restJson1DescribeConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
904
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
897
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
905
898
  var _c;
906
899
  return __generator(this, function (_d) {
907
900
  switch (_d.label) {
@@ -911,7 +904,6 @@ var deserializeAws_restJson1DescribeConnectorCommandError = function (output, co
911
904
  return [4, parseBody(output.body, context)];
912
905
  case 1:
913
906
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
914
- errorCode = "UnknownError";
915
907
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
916
908
  _b = errorCode;
917
909
  switch (_b) {
@@ -947,10 +939,12 @@ var deserializeAws_restJson1DescribeConnectorCommandError = function (output, co
947
939
  case 15: throw _d.sent();
948
940
  case 16:
949
941
  parsedBody = parsedOutput.body;
942
+ $metadata = deserializeMetadata(output);
943
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
950
944
  response = new __BaseException({
951
- name: parsedBody.code || parsedBody.Code || errorCode,
945
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
952
946
  $fault: "client",
953
- $metadata: deserializeMetadata(output),
947
+ $metadata: $metadata,
954
948
  });
955
949
  throw __decorateServiceException(response, parsedBody);
956
950
  }
@@ -1005,7 +999,7 @@ export var deserializeAws_restJson1DescribeCustomPluginCommand = function (outpu
1005
999
  });
1006
1000
  }); };
1007
1001
  var deserializeAws_restJson1DescribeCustomPluginCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1008
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1002
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1009
1003
  var _c;
1010
1004
  return __generator(this, function (_d) {
1011
1005
  switch (_d.label) {
@@ -1015,7 +1009,6 @@ var deserializeAws_restJson1DescribeCustomPluginCommandError = function (output,
1015
1009
  return [4, parseBody(output.body, context)];
1016
1010
  case 1:
1017
1011
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1018
- errorCode = "UnknownError";
1019
1012
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1020
1013
  _b = errorCode;
1021
1014
  switch (_b) {
@@ -1051,10 +1044,12 @@ var deserializeAws_restJson1DescribeCustomPluginCommandError = function (output,
1051
1044
  case 15: throw _d.sent();
1052
1045
  case 16:
1053
1046
  parsedBody = parsedOutput.body;
1047
+ $metadata = deserializeMetadata(output);
1048
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1054
1049
  response = new __BaseException({
1055
- name: parsedBody.code || parsedBody.Code || errorCode,
1050
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1056
1051
  $fault: "client",
1057
- $metadata: deserializeMetadata(output),
1052
+ $metadata: $metadata,
1058
1053
  });
1059
1054
  throw __decorateServiceException(response, parsedBody);
1060
1055
  }
@@ -1101,7 +1096,7 @@ export var deserializeAws_restJson1DescribeWorkerConfigurationCommand = function
1101
1096
  });
1102
1097
  }); };
1103
1098
  var deserializeAws_restJson1DescribeWorkerConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1104
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1099
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1105
1100
  var _c;
1106
1101
  return __generator(this, function (_d) {
1107
1102
  switch (_d.label) {
@@ -1111,7 +1106,6 @@ var deserializeAws_restJson1DescribeWorkerConfigurationCommandError = function (
1111
1106
  return [4, parseBody(output.body, context)];
1112
1107
  case 1:
1113
1108
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1114
- errorCode = "UnknownError";
1115
1109
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1116
1110
  _b = errorCode;
1117
1111
  switch (_b) {
@@ -1147,10 +1141,12 @@ var deserializeAws_restJson1DescribeWorkerConfigurationCommandError = function (
1147
1141
  case 15: throw _d.sent();
1148
1142
  case 16:
1149
1143
  parsedBody = parsedOutput.body;
1144
+ $metadata = deserializeMetadata(output);
1145
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1150
1146
  response = new __BaseException({
1151
- name: parsedBody.code || parsedBody.Code || errorCode,
1147
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1152
1148
  $fault: "client",
1153
- $metadata: deserializeMetadata(output),
1149
+ $metadata: $metadata,
1154
1150
  });
1155
1151
  throw __decorateServiceException(response, parsedBody);
1156
1152
  }
@@ -1185,7 +1181,7 @@ export var deserializeAws_restJson1ListConnectorsCommand = function (output, con
1185
1181
  });
1186
1182
  }); };
1187
1183
  var deserializeAws_restJson1ListConnectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1188
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1184
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1189
1185
  var _c;
1190
1186
  return __generator(this, function (_d) {
1191
1187
  switch (_d.label) {
@@ -1195,7 +1191,6 @@ var deserializeAws_restJson1ListConnectorsCommandError = function (output, conte
1195
1191
  return [4, parseBody(output.body, context)];
1196
1192
  case 1:
1197
1193
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1198
- errorCode = "UnknownError";
1199
1194
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1200
1195
  _b = errorCode;
1201
1196
  switch (_b) {
@@ -1231,10 +1226,12 @@ var deserializeAws_restJson1ListConnectorsCommandError = function (output, conte
1231
1226
  case 15: throw _d.sent();
1232
1227
  case 16:
1233
1228
  parsedBody = parsedOutput.body;
1229
+ $metadata = deserializeMetadata(output);
1230
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1234
1231
  response = new __BaseException({
1235
- name: parsedBody.code || parsedBody.Code || errorCode,
1232
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1236
1233
  $fault: "client",
1237
- $metadata: deserializeMetadata(output),
1234
+ $metadata: $metadata,
1238
1235
  });
1239
1236
  throw __decorateServiceException(response, parsedBody);
1240
1237
  }
@@ -1269,7 +1266,7 @@ export var deserializeAws_restJson1ListCustomPluginsCommand = function (output,
1269
1266
  });
1270
1267
  }); };
1271
1268
  var deserializeAws_restJson1ListCustomPluginsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1272
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1269
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1273
1270
  var _c;
1274
1271
  return __generator(this, function (_d) {
1275
1272
  switch (_d.label) {
@@ -1279,7 +1276,6 @@ var deserializeAws_restJson1ListCustomPluginsCommandError = function (output, co
1279
1276
  return [4, parseBody(output.body, context)];
1280
1277
  case 1:
1281
1278
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1282
- errorCode = "UnknownError";
1283
1279
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1284
1280
  _b = errorCode;
1285
1281
  switch (_b) {
@@ -1315,10 +1311,12 @@ var deserializeAws_restJson1ListCustomPluginsCommandError = function (output, co
1315
1311
  case 15: throw _d.sent();
1316
1312
  case 16:
1317
1313
  parsedBody = parsedOutput.body;
1314
+ $metadata = deserializeMetadata(output);
1315
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1318
1316
  response = new __BaseException({
1319
- name: parsedBody.code || parsedBody.Code || errorCode,
1317
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1320
1318
  $fault: "client",
1321
- $metadata: deserializeMetadata(output),
1319
+ $metadata: $metadata,
1322
1320
  });
1323
1321
  throw __decorateServiceException(response, parsedBody);
1324
1322
  }
@@ -1353,7 +1351,7 @@ export var deserializeAws_restJson1ListWorkerConfigurationsCommand = function (o
1353
1351
  });
1354
1352
  }); };
1355
1353
  var deserializeAws_restJson1ListWorkerConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1356
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1354
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1357
1355
  var _c;
1358
1356
  return __generator(this, function (_d) {
1359
1357
  switch (_d.label) {
@@ -1363,7 +1361,6 @@ var deserializeAws_restJson1ListWorkerConfigurationsCommandError = function (out
1363
1361
  return [4, parseBody(output.body, context)];
1364
1362
  case 1:
1365
1363
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1366
- errorCode = "UnknownError";
1367
1364
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1368
1365
  _b = errorCode;
1369
1366
  switch (_b) {
@@ -1399,10 +1396,12 @@ var deserializeAws_restJson1ListWorkerConfigurationsCommandError = function (out
1399
1396
  case 15: throw _d.sent();
1400
1397
  case 16:
1401
1398
  parsedBody = parsedOutput.body;
1399
+ $metadata = deserializeMetadata(output);
1400
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1402
1401
  response = new __BaseException({
1403
- name: parsedBody.code || parsedBody.Code || errorCode,
1402
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1404
1403
  $fault: "client",
1405
- $metadata: deserializeMetadata(output),
1404
+ $metadata: $metadata,
1406
1405
  });
1407
1406
  throw __decorateServiceException(response, parsedBody);
1408
1407
  }
@@ -1437,7 +1436,7 @@ export var deserializeAws_restJson1UpdateConnectorCommand = function (output, co
1437
1436
  });
1438
1437
  }); };
1439
1438
  var deserializeAws_restJson1UpdateConnectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1440
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1439
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1441
1440
  var _c;
1442
1441
  return __generator(this, function (_d) {
1443
1442
  switch (_d.label) {
@@ -1447,7 +1446,6 @@ var deserializeAws_restJson1UpdateConnectorCommandError = function (output, cont
1447
1446
  return [4, parseBody(output.body, context)];
1448
1447
  case 1:
1449
1448
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1450
- errorCode = "UnknownError";
1451
1449
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1452
1450
  _b = errorCode;
1453
1451
  switch (_b) {
@@ -1483,10 +1481,12 @@ var deserializeAws_restJson1UpdateConnectorCommandError = function (output, cont
1483
1481
  case 15: throw _d.sent();
1484
1482
  case 16:
1485
1483
  parsedBody = parsedOutput.body;
1484
+ $metadata = deserializeMetadata(output);
1485
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1486
1486
  response = new __BaseException({
1487
- name: parsedBody.code || parsedBody.Code || errorCode,
1487
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1488
1488
  $fault: "client",
1489
- $metadata: deserializeMetadata(output),
1489
+ $metadata: $metadata,
1490
1490
  });
1491
1491
  throw __decorateServiceException(response, parsedBody);
1492
1492
  }
@@ -1619,131 +1619,103 @@ var serializeAws_restJson1__mapOf__string = function (input, context) {
1619
1619
  }, {});
1620
1620
  };
1621
1621
  var serializeAws_restJson1ApacheKafkaCluster = function (input, context) {
1622
- return __assign(__assign({}, (input.bootstrapServers !== undefined &&
1623
- input.bootstrapServers !== null && { bootstrapServers: input.bootstrapServers })), (input.vpc !== undefined && input.vpc !== null && { vpc: serializeAws_restJson1Vpc(input.vpc, context) }));
1622
+ return __assign(__assign({}, (input.bootstrapServers != null && { bootstrapServers: input.bootstrapServers })), (input.vpc != null && { vpc: serializeAws_restJson1Vpc(input.vpc, context) }));
1624
1623
  };
1625
1624
  var serializeAws_restJson1AutoScaling = function (input, context) {
1626
- return __assign(__assign(__assign(__assign(__assign({}, (input.maxWorkerCount !== undefined &&
1627
- input.maxWorkerCount !== null && { maxWorkerCount: input.maxWorkerCount })), (input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount })), (input.minWorkerCount !== undefined &&
1628
- input.minWorkerCount !== null && { minWorkerCount: input.minWorkerCount })), (input.scaleInPolicy !== undefined &&
1629
- input.scaleInPolicy !== null && {
1625
+ return __assign(__assign(__assign(__assign(__assign({}, (input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount })), (input.mcuCount != null && { mcuCount: input.mcuCount })), (input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount })), (input.scaleInPolicy != null && {
1630
1626
  scaleInPolicy: serializeAws_restJson1ScaleInPolicy(input.scaleInPolicy, context),
1631
- })), (input.scaleOutPolicy !== undefined &&
1632
- input.scaleOutPolicy !== null && {
1627
+ })), (input.scaleOutPolicy != null && {
1633
1628
  scaleOutPolicy: serializeAws_restJson1ScaleOutPolicy(input.scaleOutPolicy, context),
1634
1629
  }));
1635
1630
  };
1636
1631
  var serializeAws_restJson1AutoScalingUpdate = function (input, context) {
1637
- return __assign(__assign(__assign(__assign(__assign({}, (input.maxWorkerCount !== undefined &&
1638
- input.maxWorkerCount !== null && { maxWorkerCount: input.maxWorkerCount })), (input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount })), (input.minWorkerCount !== undefined &&
1639
- input.minWorkerCount !== null && { minWorkerCount: input.minWorkerCount })), (input.scaleInPolicy !== undefined &&
1640
- input.scaleInPolicy !== null && {
1632
+ return __assign(__assign(__assign(__assign(__assign({}, (input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount })), (input.mcuCount != null && { mcuCount: input.mcuCount })), (input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount })), (input.scaleInPolicy != null && {
1641
1633
  scaleInPolicy: serializeAws_restJson1ScaleInPolicyUpdate(input.scaleInPolicy, context),
1642
- })), (input.scaleOutPolicy !== undefined &&
1643
- input.scaleOutPolicy !== null && {
1634
+ })), (input.scaleOutPolicy != null && {
1644
1635
  scaleOutPolicy: serializeAws_restJson1ScaleOutPolicyUpdate(input.scaleOutPolicy, context),
1645
1636
  }));
1646
1637
  };
1647
1638
  var serializeAws_restJson1Capacity = function (input, context) {
1648
- return __assign(__assign({}, (input.autoScaling !== undefined &&
1649
- input.autoScaling !== null && { autoScaling: serializeAws_restJson1AutoScaling(input.autoScaling, context) })), (input.provisionedCapacity !== undefined &&
1650
- input.provisionedCapacity !== null && {
1639
+ return __assign(__assign({}, (input.autoScaling != null && { autoScaling: serializeAws_restJson1AutoScaling(input.autoScaling, context) })), (input.provisionedCapacity != null && {
1651
1640
  provisionedCapacity: serializeAws_restJson1ProvisionedCapacity(input.provisionedCapacity, context),
1652
1641
  }));
1653
1642
  };
1654
1643
  var serializeAws_restJson1CapacityUpdate = function (input, context) {
1655
- return __assign(__assign({}, (input.autoScaling !== undefined &&
1656
- input.autoScaling !== null && {
1644
+ return __assign(__assign({}, (input.autoScaling != null && {
1657
1645
  autoScaling: serializeAws_restJson1AutoScalingUpdate(input.autoScaling, context),
1658
- })), (input.provisionedCapacity !== undefined &&
1659
- input.provisionedCapacity !== null && {
1646
+ })), (input.provisionedCapacity != null && {
1660
1647
  provisionedCapacity: serializeAws_restJson1ProvisionedCapacityUpdate(input.provisionedCapacity, context),
1661
1648
  }));
1662
1649
  };
1663
1650
  var serializeAws_restJson1CloudWatchLogsLogDelivery = function (input, context) {
1664
- return __assign(__assign({}, (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.logGroup !== undefined && input.logGroup !== null && { logGroup: input.logGroup }));
1651
+ return __assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.logGroup != null && { logGroup: input.logGroup }));
1665
1652
  };
1666
1653
  var serializeAws_restJson1CustomPlugin = function (input, context) {
1667
- return __assign(__assign({}, (input.customPluginArn !== undefined &&
1668
- input.customPluginArn !== null && { customPluginArn: input.customPluginArn })), (input.revision !== undefined && input.revision !== null && { revision: input.revision }));
1654
+ return __assign(__assign({}, (input.customPluginArn != null && { customPluginArn: input.customPluginArn })), (input.revision != null && { revision: input.revision }));
1669
1655
  };
1670
1656
  var serializeAws_restJson1CustomPluginLocation = function (input, context) {
1671
- return __assign({}, (input.s3Location !== undefined &&
1672
- input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }));
1657
+ return __assign({}, (input.s3Location != null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }));
1673
1658
  };
1674
1659
  var serializeAws_restJson1FirehoseLogDelivery = function (input, context) {
1675
- return __assign(__assign({}, (input.deliveryStream !== undefined &&
1676
- input.deliveryStream !== null && { deliveryStream: input.deliveryStream })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }));
1660
+ return __assign(__assign({}, (input.deliveryStream != null && { deliveryStream: input.deliveryStream })), (input.enabled != null && { enabled: input.enabled }));
1677
1661
  };
1678
1662
  var serializeAws_restJson1KafkaCluster = function (input, context) {
1679
- return __assign({}, (input.apacheKafkaCluster !== undefined &&
1680
- input.apacheKafkaCluster !== null && {
1663
+ return __assign({}, (input.apacheKafkaCluster != null && {
1681
1664
  apacheKafkaCluster: serializeAws_restJson1ApacheKafkaCluster(input.apacheKafkaCluster, context),
1682
1665
  }));
1683
1666
  };
1684
1667
  var serializeAws_restJson1KafkaClusterClientAuthentication = function (input, context) {
1685
- return __assign({}, (input.authenticationType !== undefined &&
1686
- input.authenticationType !== null && { authenticationType: input.authenticationType }));
1668
+ return __assign({}, (input.authenticationType != null && { authenticationType: input.authenticationType }));
1687
1669
  };
1688
1670
  var serializeAws_restJson1KafkaClusterEncryptionInTransit = function (input, context) {
1689
- return __assign({}, (input.encryptionType !== undefined &&
1690
- input.encryptionType !== null && { encryptionType: input.encryptionType }));
1671
+ return __assign({}, (input.encryptionType != null && { encryptionType: input.encryptionType }));
1691
1672
  };
1692
1673
  var serializeAws_restJson1LogDelivery = function (input, context) {
1693
- return __assign({}, (input.workerLogDelivery !== undefined &&
1694
- input.workerLogDelivery !== null && {
1674
+ return __assign({}, (input.workerLogDelivery != null && {
1695
1675
  workerLogDelivery: serializeAws_restJson1WorkerLogDelivery(input.workerLogDelivery, context),
1696
1676
  }));
1697
1677
  };
1698
1678
  var serializeAws_restJson1Plugin = function (input, context) {
1699
- return __assign({}, (input.customPlugin !== undefined &&
1700
- input.customPlugin !== null && { customPlugin: serializeAws_restJson1CustomPlugin(input.customPlugin, context) }));
1679
+ return __assign({}, (input.customPlugin != null && {
1680
+ customPlugin: serializeAws_restJson1CustomPlugin(input.customPlugin, context),
1681
+ }));
1701
1682
  };
1702
1683
  var serializeAws_restJson1ProvisionedCapacity = function (input, context) {
1703
- return __assign(__assign({}, (input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount })), (input.workerCount !== undefined && input.workerCount !== null && { workerCount: input.workerCount }));
1684
+ return __assign(__assign({}, (input.mcuCount != null && { mcuCount: input.mcuCount })), (input.workerCount != null && { workerCount: input.workerCount }));
1704
1685
  };
1705
1686
  var serializeAws_restJson1ProvisionedCapacityUpdate = function (input, context) {
1706
- return __assign(__assign({}, (input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount })), (input.workerCount !== undefined && input.workerCount !== null && { workerCount: input.workerCount }));
1687
+ return __assign(__assign({}, (input.mcuCount != null && { mcuCount: input.mcuCount })), (input.workerCount != null && { workerCount: input.workerCount }));
1707
1688
  };
1708
1689
  var serializeAws_restJson1S3Location = function (input, context) {
1709
- return __assign(__assign(__assign({}, (input.bucketArn !== undefined && input.bucketArn !== null && { bucketArn: input.bucketArn })), (input.fileKey !== undefined && input.fileKey !== null && { fileKey: input.fileKey })), (input.objectVersion !== undefined && input.objectVersion !== null && { objectVersion: input.objectVersion }));
1690
+ return __assign(__assign(__assign({}, (input.bucketArn != null && { bucketArn: input.bucketArn })), (input.fileKey != null && { fileKey: input.fileKey })), (input.objectVersion != null && { objectVersion: input.objectVersion }));
1710
1691
  };
1711
1692
  var serializeAws_restJson1S3LogDelivery = function (input, context) {
1712
- return __assign(__assign(__assign({}, (input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }));
1693
+ return __assign(__assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.enabled != null && { enabled: input.enabled })), (input.prefix != null && { prefix: input.prefix }));
1713
1694
  };
1714
1695
  var serializeAws_restJson1ScaleInPolicy = function (input, context) {
1715
- return __assign({}, (input.cpuUtilizationPercentage !== undefined &&
1716
- input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
1696
+ return __assign({}, (input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
1717
1697
  };
1718
1698
  var serializeAws_restJson1ScaleInPolicyUpdate = function (input, context) {
1719
- return __assign({}, (input.cpuUtilizationPercentage !== undefined &&
1720
- input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
1699
+ return __assign({}, (input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
1721
1700
  };
1722
1701
  var serializeAws_restJson1ScaleOutPolicy = function (input, context) {
1723
- return __assign({}, (input.cpuUtilizationPercentage !== undefined &&
1724
- input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
1702
+ return __assign({}, (input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
1725
1703
  };
1726
1704
  var serializeAws_restJson1ScaleOutPolicyUpdate = function (input, context) {
1727
- return __assign({}, (input.cpuUtilizationPercentage !== undefined &&
1728
- input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
1705
+ return __assign({}, (input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
1729
1706
  };
1730
1707
  var serializeAws_restJson1Vpc = function (input, context) {
1731
- return __assign(__assign({}, (input.securityGroups !== undefined &&
1732
- input.securityGroups !== null && {
1708
+ return __assign(__assign({}, (input.securityGroups != null && {
1733
1709
  securityGroups: serializeAws_restJson1__listOf__string(input.securityGroups, context),
1734
- })), (input.subnets !== undefined &&
1735
- input.subnets !== null && { subnets: serializeAws_restJson1__listOf__string(input.subnets, context) }));
1710
+ })), (input.subnets != null && { subnets: serializeAws_restJson1__listOf__string(input.subnets, context) }));
1736
1711
  };
1737
1712
  var serializeAws_restJson1WorkerConfiguration = function (input, context) {
1738
- return __assign(__assign({}, (input.revision !== undefined && input.revision !== null && { revision: input.revision })), (input.workerConfigurationArn !== undefined &&
1739
- input.workerConfigurationArn !== null && { workerConfigurationArn: input.workerConfigurationArn }));
1713
+ return __assign(__assign({}, (input.revision != null && { revision: input.revision })), (input.workerConfigurationArn != null && { workerConfigurationArn: input.workerConfigurationArn }));
1740
1714
  };
1741
1715
  var serializeAws_restJson1WorkerLogDelivery = function (input, context) {
1742
- return __assign(__assign(__assign({}, (input.cloudWatchLogs !== undefined &&
1743
- input.cloudWatchLogs !== null && {
1716
+ return __assign(__assign(__assign({}, (input.cloudWatchLogs != null && {
1744
1717
  cloudWatchLogs: serializeAws_restJson1CloudWatchLogsLogDelivery(input.cloudWatchLogs, context),
1745
- })), (input.firehose !== undefined &&
1746
- input.firehose !== null && { firehose: serializeAws_restJson1FirehoseLogDelivery(input.firehose, context) })), (input.s3 !== undefined && input.s3 !== null && { s3: serializeAws_restJson1S3LogDelivery(input.s3, context) }));
1718
+ })), (input.firehose != null && { firehose: serializeAws_restJson1FirehoseLogDelivery(input.firehose, context) })), (input.s3 != null && { s3: serializeAws_restJson1S3LogDelivery(input.s3, context) }));
1747
1719
  };
1748
1720
  var deserializeAws_restJson1__listOf__string = function (output, context) {
1749
1721
  var retVal = (output || [])
@@ -1813,9 +1785,7 @@ var deserializeAws_restJson1__mapOf__string = function (output, context) {
1813
1785
  var deserializeAws_restJson1ApacheKafkaClusterDescription = function (output, context) {
1814
1786
  return {
1815
1787
  bootstrapServers: __expectString(output.bootstrapServers),
1816
- vpc: output.vpc !== undefined && output.vpc !== null
1817
- ? deserializeAws_restJson1VpcDescription(output.vpc, context)
1818
- : undefined,
1788
+ vpc: output.vpc != null ? deserializeAws_restJson1VpcDescription(output.vpc, context) : undefined,
1819
1789
  };
1820
1790
  };
1821
1791
  var deserializeAws_restJson1AutoScalingDescription = function (output, context) {
@@ -1823,20 +1793,20 @@ var deserializeAws_restJson1AutoScalingDescription = function (output, context)
1823
1793
  maxWorkerCount: __expectInt32(output.maxWorkerCount),
1824
1794
  mcuCount: __expectInt32(output.mcuCount),
1825
1795
  minWorkerCount: __expectInt32(output.minWorkerCount),
1826
- scaleInPolicy: output.scaleInPolicy !== undefined && output.scaleInPolicy !== null
1796
+ scaleInPolicy: output.scaleInPolicy != null
1827
1797
  ? deserializeAws_restJson1ScaleInPolicyDescription(output.scaleInPolicy, context)
1828
1798
  : undefined,
1829
- scaleOutPolicy: output.scaleOutPolicy !== undefined && output.scaleOutPolicy !== null
1799
+ scaleOutPolicy: output.scaleOutPolicy != null
1830
1800
  ? deserializeAws_restJson1ScaleOutPolicyDescription(output.scaleOutPolicy, context)
1831
1801
  : undefined,
1832
1802
  };
1833
1803
  };
1834
1804
  var deserializeAws_restJson1CapacityDescription = function (output, context) {
1835
1805
  return {
1836
- autoScaling: output.autoScaling !== undefined && output.autoScaling !== null
1806
+ autoScaling: output.autoScaling != null
1837
1807
  ? deserializeAws_restJson1AutoScalingDescription(output.autoScaling, context)
1838
1808
  : undefined,
1839
- provisionedCapacity: output.provisionedCapacity !== undefined && output.provisionedCapacity !== null
1809
+ provisionedCapacity: output.provisionedCapacity != null
1840
1810
  ? deserializeAws_restJson1ProvisionedCapacityDescription(output.provisionedCapacity, context)
1841
1811
  : undefined,
1842
1812
  };
@@ -1849,35 +1819,29 @@ var deserializeAws_restJson1CloudWatchLogsLogDeliveryDescription = function (out
1849
1819
  };
1850
1820
  var deserializeAws_restJson1ConnectorSummary = function (output, context) {
1851
1821
  return {
1852
- capacity: output.capacity !== undefined && output.capacity !== null
1853
- ? deserializeAws_restJson1CapacityDescription(output.capacity, context)
1854
- : undefined,
1822
+ capacity: output.capacity != null ? deserializeAws_restJson1CapacityDescription(output.capacity, context) : undefined,
1855
1823
  connectorArn: __expectString(output.connectorArn),
1856
1824
  connectorDescription: __expectString(output.connectorDescription),
1857
1825
  connectorName: __expectString(output.connectorName),
1858
1826
  connectorState: __expectString(output.connectorState),
1859
- creationTime: output.creationTime !== undefined && output.creationTime !== null
1860
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
1861
- : undefined,
1827
+ creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
1862
1828
  currentVersion: __expectString(output.currentVersion),
1863
- kafkaCluster: output.kafkaCluster !== undefined && output.kafkaCluster !== null
1829
+ kafkaCluster: output.kafkaCluster != null
1864
1830
  ? deserializeAws_restJson1KafkaClusterDescription(output.kafkaCluster, context)
1865
1831
  : undefined,
1866
- kafkaClusterClientAuthentication: output.kafkaClusterClientAuthentication !== undefined && output.kafkaClusterClientAuthentication !== null
1832
+ kafkaClusterClientAuthentication: output.kafkaClusterClientAuthentication != null
1867
1833
  ? deserializeAws_restJson1KafkaClusterClientAuthenticationDescription(output.kafkaClusterClientAuthentication, context)
1868
1834
  : undefined,
1869
- kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit !== undefined && output.kafkaClusterEncryptionInTransit !== null
1835
+ kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit != null
1870
1836
  ? deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription(output.kafkaClusterEncryptionInTransit, context)
1871
1837
  : undefined,
1872
1838
  kafkaConnectVersion: __expectString(output.kafkaConnectVersion),
1873
- logDelivery: output.logDelivery !== undefined && output.logDelivery !== null
1839
+ logDelivery: output.logDelivery != null
1874
1840
  ? deserializeAws_restJson1LogDeliveryDescription(output.logDelivery, context)
1875
1841
  : undefined,
1876
- plugins: output.plugins !== undefined && output.plugins !== null
1877
- ? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context)
1878
- : undefined,
1842
+ plugins: output.plugins != null ? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context) : undefined,
1879
1843
  serviceExecutionRoleArn: __expectString(output.serviceExecutionRoleArn),
1880
- workerConfiguration: output.workerConfiguration !== undefined && output.workerConfiguration !== null
1844
+ workerConfiguration: output.workerConfiguration != null
1881
1845
  ? deserializeAws_restJson1WorkerConfigurationDescription(output.workerConfiguration, context)
1882
1846
  : undefined,
1883
1847
  };
@@ -1896,22 +1860,18 @@ var deserializeAws_restJson1CustomPluginFileDescription = function (output, cont
1896
1860
  };
1897
1861
  var deserializeAws_restJson1CustomPluginLocationDescription = function (output, context) {
1898
1862
  return {
1899
- s3Location: output.s3Location !== undefined && output.s3Location !== null
1900
- ? deserializeAws_restJson1S3LocationDescription(output.s3Location, context)
1901
- : undefined,
1863
+ s3Location: output.s3Location != null ? deserializeAws_restJson1S3LocationDescription(output.s3Location, context) : undefined,
1902
1864
  };
1903
1865
  };
1904
1866
  var deserializeAws_restJson1CustomPluginRevisionSummary = function (output, context) {
1905
1867
  return {
1906
1868
  contentType: __expectString(output.contentType),
1907
- creationTime: output.creationTime !== undefined && output.creationTime !== null
1908
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
1909
- : undefined,
1869
+ creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
1910
1870
  description: __expectString(output.description),
1911
- fileDescription: output.fileDescription !== undefined && output.fileDescription !== null
1871
+ fileDescription: output.fileDescription != null
1912
1872
  ? deserializeAws_restJson1CustomPluginFileDescription(output.fileDescription, context)
1913
1873
  : undefined,
1914
- location: output.location !== undefined && output.location !== null
1874
+ location: output.location != null
1915
1875
  ? deserializeAws_restJson1CustomPluginLocationDescription(output.location, context)
1916
1876
  : undefined,
1917
1877
  revision: __expectLong(output.revision),
@@ -1919,13 +1879,11 @@ var deserializeAws_restJson1CustomPluginRevisionSummary = function (output, cont
1919
1879
  };
1920
1880
  var deserializeAws_restJson1CustomPluginSummary = function (output, context) {
1921
1881
  return {
1922
- creationTime: output.creationTime !== undefined && output.creationTime !== null
1923
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
1924
- : undefined,
1882
+ creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
1925
1883
  customPluginArn: __expectString(output.customPluginArn),
1926
1884
  customPluginState: __expectString(output.customPluginState),
1927
1885
  description: __expectString(output.description),
1928
- latestRevision: output.latestRevision !== undefined && output.latestRevision !== null
1886
+ latestRevision: output.latestRevision != null
1929
1887
  ? deserializeAws_restJson1CustomPluginRevisionSummary(output.latestRevision, context)
1930
1888
  : undefined,
1931
1889
  name: __expectString(output.name),
@@ -1944,7 +1902,7 @@ var deserializeAws_restJson1KafkaClusterClientAuthenticationDescription = functi
1944
1902
  };
1945
1903
  var deserializeAws_restJson1KafkaClusterDescription = function (output, context) {
1946
1904
  return {
1947
- apacheKafkaCluster: output.apacheKafkaCluster !== undefined && output.apacheKafkaCluster !== null
1905
+ apacheKafkaCluster: output.apacheKafkaCluster != null
1948
1906
  ? deserializeAws_restJson1ApacheKafkaClusterDescription(output.apacheKafkaCluster, context)
1949
1907
  : undefined,
1950
1908
  };
@@ -1956,14 +1914,14 @@ var deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription = functio
1956
1914
  };
1957
1915
  var deserializeAws_restJson1LogDeliveryDescription = function (output, context) {
1958
1916
  return {
1959
- workerLogDelivery: output.workerLogDelivery !== undefined && output.workerLogDelivery !== null
1917
+ workerLogDelivery: output.workerLogDelivery != null
1960
1918
  ? deserializeAws_restJson1WorkerLogDeliveryDescription(output.workerLogDelivery, context)
1961
1919
  : undefined,
1962
1920
  };
1963
1921
  };
1964
1922
  var deserializeAws_restJson1PluginDescription = function (output, context) {
1965
1923
  return {
1966
- customPlugin: output.customPlugin !== undefined && output.customPlugin !== null
1924
+ customPlugin: output.customPlugin != null
1967
1925
  ? deserializeAws_restJson1CustomPluginDescription(output.customPlugin, context)
1968
1926
  : undefined,
1969
1927
  };
@@ -2006,12 +1964,10 @@ var deserializeAws_restJson1StateDescription = function (output, context) {
2006
1964
  };
2007
1965
  var deserializeAws_restJson1VpcDescription = function (output, context) {
2008
1966
  return {
2009
- securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
1967
+ securityGroups: output.securityGroups != null
2010
1968
  ? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
2011
1969
  : undefined,
2012
- subnets: output.subnets !== undefined && output.subnets !== null
2013
- ? deserializeAws_restJson1__listOf__string(output.subnets, context)
2014
- : undefined,
1970
+ subnets: output.subnets != null ? deserializeAws_restJson1__listOf__string(output.subnets, context) : undefined,
2015
1971
  };
2016
1972
  };
2017
1973
  var deserializeAws_restJson1WorkerConfigurationDescription = function (output, context) {
@@ -2022,9 +1978,7 @@ var deserializeAws_restJson1WorkerConfigurationDescription = function (output, c
2022
1978
  };
2023
1979
  var deserializeAws_restJson1WorkerConfigurationRevisionDescription = function (output, context) {
2024
1980
  return {
2025
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2026
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
2027
- : undefined,
1981
+ creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
2028
1982
  description: __expectString(output.description),
2029
1983
  propertiesFileContent: __expectString(output.propertiesFileContent),
2030
1984
  revision: __expectLong(output.revision),
@@ -2032,20 +1986,16 @@ var deserializeAws_restJson1WorkerConfigurationRevisionDescription = function (o
2032
1986
  };
2033
1987
  var deserializeAws_restJson1WorkerConfigurationRevisionSummary = function (output, context) {
2034
1988
  return {
2035
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2036
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
2037
- : undefined,
1989
+ creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
2038
1990
  description: __expectString(output.description),
2039
1991
  revision: __expectLong(output.revision),
2040
1992
  };
2041
1993
  };
2042
1994
  var deserializeAws_restJson1WorkerConfigurationSummary = function (output, context) {
2043
1995
  return {
2044
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2045
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
2046
- : undefined,
1996
+ creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
2047
1997
  description: __expectString(output.description),
2048
- latestRevision: output.latestRevision !== undefined && output.latestRevision !== null
1998
+ latestRevision: output.latestRevision != null
2049
1999
  ? deserializeAws_restJson1WorkerConfigurationRevisionSummary(output.latestRevision, context)
2050
2000
  : undefined,
2051
2001
  name: __expectString(output.name),
@@ -2054,15 +2004,13 @@ var deserializeAws_restJson1WorkerConfigurationSummary = function (output, conte
2054
2004
  };
2055
2005
  var deserializeAws_restJson1WorkerLogDeliveryDescription = function (output, context) {
2056
2006
  return {
2057
- cloudWatchLogs: output.cloudWatchLogs !== undefined && output.cloudWatchLogs !== null
2007
+ cloudWatchLogs: output.cloudWatchLogs != null
2058
2008
  ? deserializeAws_restJson1CloudWatchLogsLogDeliveryDescription(output.cloudWatchLogs, context)
2059
2009
  : undefined,
2060
- firehose: output.firehose !== undefined && output.firehose !== null
2010
+ firehose: output.firehose != null
2061
2011
  ? deserializeAws_restJson1FirehoseLogDeliveryDescription(output.firehose, context)
2062
2012
  : undefined,
2063
- s3: output.s3 !== undefined && output.s3 !== null
2064
- ? deserializeAws_restJson1S3LogDeliveryDescription(output.s3, context)
2065
- : undefined,
2013
+ s3: output.s3 != null ? deserializeAws_restJson1S3LogDeliveryDescription(output.s3, context) : undefined,
2066
2014
  };
2067
2015
  };
2068
2016
  var deserializeMetadata = function (output) {
@@ -2121,5 +2069,4 @@ var loadRestJsonErrorCode = function (output, data) {
2121
2069
  if (data["__type"] !== undefined) {
2122
2070
  return sanitizeErrorCode(data["__type"]);
2123
2071
  }
2124
- return "";
2125
2072
  };