@aws-sdk/client-kafkaconnect 3.118.0 → 3.127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,35 +13,26 @@ const serializeAws_restJson1CreateConnectorCommand = async (input, context) => {
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.capacity !== undefined &&
17
- input.capacity !== null && { capacity: serializeAws_restJson1Capacity(input.capacity, context) }),
18
- ...(input.connectorConfiguration !== undefined &&
19
- input.connectorConfiguration !== null && {
16
+ ...(input.capacity != null && { capacity: serializeAws_restJson1Capacity(input.capacity, context) }),
17
+ ...(input.connectorConfiguration != null && {
20
18
  connectorConfiguration: serializeAws_restJson1__mapOf__string(input.connectorConfiguration, context),
21
19
  }),
22
- ...(input.connectorDescription !== undefined &&
23
- input.connectorDescription !== null && { connectorDescription: input.connectorDescription }),
24
- ...(input.connectorName !== undefined && input.connectorName !== null && { connectorName: input.connectorName }),
25
- ...(input.kafkaCluster !== undefined &&
26
- input.kafkaCluster !== null && { kafkaCluster: serializeAws_restJson1KafkaCluster(input.kafkaCluster, context) }),
27
- ...(input.kafkaClusterClientAuthentication !== undefined &&
28
- input.kafkaClusterClientAuthentication !== null && {
20
+ ...(input.connectorDescription != null && { connectorDescription: input.connectorDescription }),
21
+ ...(input.connectorName != null && { connectorName: input.connectorName }),
22
+ ...(input.kafkaCluster != null && {
23
+ kafkaCluster: serializeAws_restJson1KafkaCluster(input.kafkaCluster, context),
24
+ }),
25
+ ...(input.kafkaClusterClientAuthentication != null && {
29
26
  kafkaClusterClientAuthentication: serializeAws_restJson1KafkaClusterClientAuthentication(input.kafkaClusterClientAuthentication, context),
30
27
  }),
31
- ...(input.kafkaClusterEncryptionInTransit !== undefined &&
32
- input.kafkaClusterEncryptionInTransit !== null && {
28
+ ...(input.kafkaClusterEncryptionInTransit != null && {
33
29
  kafkaClusterEncryptionInTransit: serializeAws_restJson1KafkaClusterEncryptionInTransit(input.kafkaClusterEncryptionInTransit, context),
34
30
  }),
35
- ...(input.kafkaConnectVersion !== undefined &&
36
- input.kafkaConnectVersion !== null && { kafkaConnectVersion: input.kafkaConnectVersion }),
37
- ...(input.logDelivery !== undefined &&
38
- input.logDelivery !== null && { logDelivery: serializeAws_restJson1LogDelivery(input.logDelivery, context) }),
39
- ...(input.plugins !== undefined &&
40
- input.plugins !== null && { plugins: serializeAws_restJson1__listOfPlugin(input.plugins, context) }),
41
- ...(input.serviceExecutionRoleArn !== undefined &&
42
- input.serviceExecutionRoleArn !== null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn }),
43
- ...(input.workerConfiguration !== undefined &&
44
- input.workerConfiguration !== null && {
31
+ ...(input.kafkaConnectVersion != null && { kafkaConnectVersion: input.kafkaConnectVersion }),
32
+ ...(input.logDelivery != null && { logDelivery: serializeAws_restJson1LogDelivery(input.logDelivery, context) }),
33
+ ...(input.plugins != null && { plugins: serializeAws_restJson1__listOfPlugin(input.plugins, context) }),
34
+ ...(input.serviceExecutionRoleArn != null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn }),
35
+ ...(input.workerConfiguration != null && {
45
36
  workerConfiguration: serializeAws_restJson1WorkerConfiguration(input.workerConfiguration, context),
46
37
  }),
47
38
  });
@@ -64,11 +55,10 @@ const serializeAws_restJson1CreateCustomPluginCommand = async (input, context) =
64
55
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins";
65
56
  let body;
66
57
  body = JSON.stringify({
67
- ...(input.contentType !== undefined && input.contentType !== null && { contentType: input.contentType }),
68
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
69
- ...(input.location !== undefined &&
70
- input.location !== null && { location: serializeAws_restJson1CustomPluginLocation(input.location, context) }),
71
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
58
+ ...(input.contentType != null && { contentType: input.contentType }),
59
+ ...(input.description != null && { description: input.description }),
60
+ ...(input.location != null && { location: serializeAws_restJson1CustomPluginLocation(input.location, context) }),
61
+ ...(input.name != null && { name: input.name }),
72
62
  });
73
63
  return new protocol_http_1.HttpRequest({
74
64
  protocol,
@@ -89,10 +79,9 @@ const serializeAws_restJson1CreateWorkerConfigurationCommand = async (input, con
89
79
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/worker-configurations";
90
80
  let body;
91
81
  body = JSON.stringify({
92
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
93
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
94
- ...(input.propertiesFileContent !== undefined &&
95
- input.propertiesFileContent !== null && { propertiesFileContent: input.propertiesFileContent }),
82
+ ...(input.description != null && { description: input.description }),
83
+ ...(input.name != null && { name: input.name }),
84
+ ...(input.propertiesFileContent != null && { propertiesFileContent: input.propertiesFileContent }),
96
85
  });
97
86
  return new protocol_http_1.HttpRequest({
98
87
  protocol,
@@ -325,8 +314,7 @@ const serializeAws_restJson1UpdateConnectorCommand = async (input, context) => {
325
314
  };
326
315
  let body;
327
316
  body = JSON.stringify({
328
- ...(input.capacity !== undefined &&
329
- input.capacity !== null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) }),
317
+ ...(input.capacity != null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) }),
330
318
  });
331
319
  return new protocol_http_1.HttpRequest({
332
320
  protocol,
@@ -369,8 +357,7 @@ const deserializeAws_restJson1CreateConnectorCommandError = async (output, conte
369
357
  body: await parseBody(output.body, context),
370
358
  };
371
359
  let response;
372
- let errorCode = "UnknownError";
373
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
360
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
374
361
  switch (errorCode) {
375
362
  case "BadRequestException":
376
363
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -398,10 +385,12 @@ const deserializeAws_restJson1CreateConnectorCommandError = async (output, conte
398
385
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
399
386
  default:
400
387
  const parsedBody = parsedOutput.body;
388
+ const $metadata = deserializeMetadata(output);
389
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
401
390
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
402
- name: parsedBody.code || parsedBody.Code || errorCode,
391
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
403
392
  $fault: "client",
404
- $metadata: deserializeMetadata(output),
393
+ $metadata,
405
394
  });
406
395
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
407
396
  }
@@ -439,8 +428,7 @@ const deserializeAws_restJson1CreateCustomPluginCommandError = async (output, co
439
428
  body: await parseBody(output.body, context),
440
429
  };
441
430
  let response;
442
- let errorCode = "UnknownError";
443
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
431
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
444
432
  switch (errorCode) {
445
433
  case "BadRequestException":
446
434
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -468,10 +456,12 @@ const deserializeAws_restJson1CreateCustomPluginCommandError = async (output, co
468
456
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
469
457
  default:
470
458
  const parsedBody = parsedOutput.body;
459
+ const $metadata = deserializeMetadata(output);
460
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
471
461
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
472
- name: parsedBody.code || parsedBody.Code || errorCode,
462
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
473
463
  $fault: "client",
474
- $metadata: deserializeMetadata(output),
464
+ $metadata,
475
465
  });
476
466
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
477
467
  }
@@ -509,8 +499,7 @@ const deserializeAws_restJson1CreateWorkerConfigurationCommandError = async (out
509
499
  body: await parseBody(output.body, context),
510
500
  };
511
501
  let response;
512
- let errorCode = "UnknownError";
513
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
502
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
514
503
  switch (errorCode) {
515
504
  case "BadRequestException":
516
505
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -538,10 +527,12 @@ const deserializeAws_restJson1CreateWorkerConfigurationCommandError = async (out
538
527
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
539
528
  default:
540
529
  const parsedBody = parsedOutput.body;
530
+ const $metadata = deserializeMetadata(output);
531
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
541
532
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
542
- name: parsedBody.code || parsedBody.Code || errorCode,
533
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
543
534
  $fault: "client",
544
- $metadata: deserializeMetadata(output),
535
+ $metadata,
545
536
  });
546
537
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
547
538
  }
@@ -571,8 +562,7 @@ const deserializeAws_restJson1DeleteConnectorCommandError = async (output, conte
571
562
  body: await parseBody(output.body, context),
572
563
  };
573
564
  let response;
574
- let errorCode = "UnknownError";
575
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
565
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
576
566
  switch (errorCode) {
577
567
  case "BadRequestException":
578
568
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -597,10 +587,12 @@ const deserializeAws_restJson1DeleteConnectorCommandError = async (output, conte
597
587
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
598
588
  default:
599
589
  const parsedBody = parsedOutput.body;
590
+ const $metadata = deserializeMetadata(output);
591
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
600
592
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
601
- name: parsedBody.code || parsedBody.Code || errorCode,
593
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
602
594
  $fault: "client",
603
- $metadata: deserializeMetadata(output),
595
+ $metadata,
604
596
  });
605
597
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
606
598
  }
@@ -630,8 +622,7 @@ const deserializeAws_restJson1DeleteCustomPluginCommandError = async (output, co
630
622
  body: await parseBody(output.body, context),
631
623
  };
632
624
  let response;
633
- let errorCode = "UnknownError";
634
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
625
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
635
626
  switch (errorCode) {
636
627
  case "BadRequestException":
637
628
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -656,10 +647,12 @@ const deserializeAws_restJson1DeleteCustomPluginCommandError = async (output, co
656
647
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
657
648
  default:
658
649
  const parsedBody = parsedOutput.body;
650
+ const $metadata = deserializeMetadata(output);
651
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
659
652
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
660
- name: parsedBody.code || parsedBody.Code || errorCode,
653
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
661
654
  $fault: "client",
662
- $metadata: deserializeMetadata(output),
655
+ $metadata,
663
656
  });
664
657
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
665
658
  }
@@ -749,8 +742,7 @@ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, con
749
742
  body: await parseBody(output.body, context),
750
743
  };
751
744
  let response;
752
- let errorCode = "UnknownError";
753
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
745
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
754
746
  switch (errorCode) {
755
747
  case "BadRequestException":
756
748
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -775,10 +767,12 @@ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, con
775
767
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
776
768
  default:
777
769
  const parsedBody = parsedOutput.body;
770
+ const $metadata = deserializeMetadata(output);
771
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
778
772
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
779
- name: parsedBody.code || parsedBody.Code || errorCode,
773
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
780
774
  $fault: "client",
781
- $metadata: deserializeMetadata(output),
775
+ $metadata,
782
776
  });
783
777
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
784
778
  }
@@ -828,8 +822,7 @@ const deserializeAws_restJson1DescribeCustomPluginCommandError = async (output,
828
822
  body: await parseBody(output.body, context),
829
823
  };
830
824
  let response;
831
- let errorCode = "UnknownError";
832
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
825
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
833
826
  switch (errorCode) {
834
827
  case "BadRequestException":
835
828
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -854,10 +847,12 @@ const deserializeAws_restJson1DescribeCustomPluginCommandError = async (output,
854
847
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
855
848
  default:
856
849
  const parsedBody = parsedOutput.body;
850
+ const $metadata = deserializeMetadata(output);
851
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
857
852
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
858
- name: parsedBody.code || parsedBody.Code || errorCode,
853
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
859
854
  $fault: "client",
860
- $metadata: deserializeMetadata(output),
855
+ $metadata,
861
856
  });
862
857
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
863
858
  }
@@ -899,8 +894,7 @@ const deserializeAws_restJson1DescribeWorkerConfigurationCommandError = async (o
899
894
  body: await parseBody(output.body, context),
900
895
  };
901
896
  let response;
902
- let errorCode = "UnknownError";
903
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
897
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
904
898
  switch (errorCode) {
905
899
  case "BadRequestException":
906
900
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -925,10 +919,12 @@ const deserializeAws_restJson1DescribeWorkerConfigurationCommandError = async (o
925
919
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
926
920
  default:
927
921
  const parsedBody = parsedOutput.body;
922
+ const $metadata = deserializeMetadata(output);
923
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
928
924
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
929
- name: parsedBody.code || parsedBody.Code || errorCode,
925
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
930
926
  $fault: "client",
931
- $metadata: deserializeMetadata(output),
927
+ $metadata,
932
928
  });
933
929
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
934
930
  }
@@ -958,8 +954,7 @@ const deserializeAws_restJson1ListConnectorsCommandError = async (output, contex
958
954
  body: await parseBody(output.body, context),
959
955
  };
960
956
  let response;
961
- let errorCode = "UnknownError";
962
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
957
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
963
958
  switch (errorCode) {
964
959
  case "BadRequestException":
965
960
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -984,10 +979,12 @@ const deserializeAws_restJson1ListConnectorsCommandError = async (output, contex
984
979
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
985
980
  default:
986
981
  const parsedBody = parsedOutput.body;
982
+ const $metadata = deserializeMetadata(output);
983
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
987
984
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
988
- name: parsedBody.code || parsedBody.Code || errorCode,
985
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
989
986
  $fault: "client",
990
- $metadata: deserializeMetadata(output),
987
+ $metadata,
991
988
  });
992
989
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
993
990
  }
@@ -1017,8 +1014,7 @@ const deserializeAws_restJson1ListCustomPluginsCommandError = async (output, con
1017
1014
  body: await parseBody(output.body, context),
1018
1015
  };
1019
1016
  let response;
1020
- let errorCode = "UnknownError";
1021
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1017
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1022
1018
  switch (errorCode) {
1023
1019
  case "BadRequestException":
1024
1020
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -1043,10 +1039,12 @@ const deserializeAws_restJson1ListCustomPluginsCommandError = async (output, con
1043
1039
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1044
1040
  default:
1045
1041
  const parsedBody = parsedOutput.body;
1042
+ const $metadata = deserializeMetadata(output);
1043
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1046
1044
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
1047
- name: parsedBody.code || parsedBody.Code || errorCode,
1045
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1048
1046
  $fault: "client",
1049
- $metadata: deserializeMetadata(output),
1047
+ $metadata,
1050
1048
  });
1051
1049
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1052
1050
  }
@@ -1076,8 +1074,7 @@ const deserializeAws_restJson1ListWorkerConfigurationsCommandError = async (outp
1076
1074
  body: await parseBody(output.body, context),
1077
1075
  };
1078
1076
  let response;
1079
- let errorCode = "UnknownError";
1080
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1077
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1081
1078
  switch (errorCode) {
1082
1079
  case "BadRequestException":
1083
1080
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -1102,10 +1099,12 @@ const deserializeAws_restJson1ListWorkerConfigurationsCommandError = async (outp
1102
1099
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1103
1100
  default:
1104
1101
  const parsedBody = parsedOutput.body;
1102
+ const $metadata = deserializeMetadata(output);
1103
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1105
1104
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
1106
- name: parsedBody.code || parsedBody.Code || errorCode,
1105
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1107
1106
  $fault: "client",
1108
- $metadata: deserializeMetadata(output),
1107
+ $metadata,
1109
1108
  });
1110
1109
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1111
1110
  }
@@ -1135,8 +1134,7 @@ const deserializeAws_restJson1UpdateConnectorCommandError = async (output, conte
1135
1134
  body: await parseBody(output.body, context),
1136
1135
  };
1137
1136
  let response;
1138
- let errorCode = "UnknownError";
1139
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1137
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1140
1138
  switch (errorCode) {
1141
1139
  case "BadRequestException":
1142
1140
  case "com.amazonaws.kafkaconnect#BadRequestException":
@@ -1161,10 +1159,12 @@ const deserializeAws_restJson1UpdateConnectorCommandError = async (output, conte
1161
1159
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1162
1160
  default:
1163
1161
  const parsedBody = parsedOutput.body;
1162
+ const $metadata = deserializeMetadata(output);
1163
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1164
1164
  response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
1165
- name: parsedBody.code || parsedBody.Code || errorCode,
1165
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1166
1166
  $fault: "client",
1167
- $metadata: deserializeMetadata(output),
1167
+ $metadata,
1168
1168
  });
1169
1169
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1170
1170
  }
@@ -1298,203 +1298,175 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
1298
1298
  };
1299
1299
  const serializeAws_restJson1ApacheKafkaCluster = (input, context) => {
1300
1300
  return {
1301
- ...(input.bootstrapServers !== undefined &&
1302
- input.bootstrapServers !== null && { bootstrapServers: input.bootstrapServers }),
1303
- ...(input.vpc !== undefined && input.vpc !== null && { vpc: serializeAws_restJson1Vpc(input.vpc, context) }),
1301
+ ...(input.bootstrapServers != null && { bootstrapServers: input.bootstrapServers }),
1302
+ ...(input.vpc != null && { vpc: serializeAws_restJson1Vpc(input.vpc, context) }),
1304
1303
  };
1305
1304
  };
1306
1305
  const serializeAws_restJson1AutoScaling = (input, context) => {
1307
1306
  return {
1308
- ...(input.maxWorkerCount !== undefined &&
1309
- input.maxWorkerCount !== null && { maxWorkerCount: input.maxWorkerCount }),
1310
- ...(input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount }),
1311
- ...(input.minWorkerCount !== undefined &&
1312
- input.minWorkerCount !== null && { minWorkerCount: input.minWorkerCount }),
1313
- ...(input.scaleInPolicy !== undefined &&
1314
- input.scaleInPolicy !== null && {
1307
+ ...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
1308
+ ...(input.mcuCount != null && { mcuCount: input.mcuCount }),
1309
+ ...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
1310
+ ...(input.scaleInPolicy != null && {
1315
1311
  scaleInPolicy: serializeAws_restJson1ScaleInPolicy(input.scaleInPolicy, context),
1316
1312
  }),
1317
- ...(input.scaleOutPolicy !== undefined &&
1318
- input.scaleOutPolicy !== null && {
1313
+ ...(input.scaleOutPolicy != null && {
1319
1314
  scaleOutPolicy: serializeAws_restJson1ScaleOutPolicy(input.scaleOutPolicy, context),
1320
1315
  }),
1321
1316
  };
1322
1317
  };
1323
1318
  const serializeAws_restJson1AutoScalingUpdate = (input, context) => {
1324
1319
  return {
1325
- ...(input.maxWorkerCount !== undefined &&
1326
- input.maxWorkerCount !== null && { maxWorkerCount: input.maxWorkerCount }),
1327
- ...(input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount }),
1328
- ...(input.minWorkerCount !== undefined &&
1329
- input.minWorkerCount !== null && { minWorkerCount: input.minWorkerCount }),
1330
- ...(input.scaleInPolicy !== undefined &&
1331
- input.scaleInPolicy !== null && {
1320
+ ...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
1321
+ ...(input.mcuCount != null && { mcuCount: input.mcuCount }),
1322
+ ...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
1323
+ ...(input.scaleInPolicy != null && {
1332
1324
  scaleInPolicy: serializeAws_restJson1ScaleInPolicyUpdate(input.scaleInPolicy, context),
1333
1325
  }),
1334
- ...(input.scaleOutPolicy !== undefined &&
1335
- input.scaleOutPolicy !== null && {
1326
+ ...(input.scaleOutPolicy != null && {
1336
1327
  scaleOutPolicy: serializeAws_restJson1ScaleOutPolicyUpdate(input.scaleOutPolicy, context),
1337
1328
  }),
1338
1329
  };
1339
1330
  };
1340
1331
  const serializeAws_restJson1Capacity = (input, context) => {
1341
1332
  return {
1342
- ...(input.autoScaling !== undefined &&
1343
- input.autoScaling !== null && { autoScaling: serializeAws_restJson1AutoScaling(input.autoScaling, context) }),
1344
- ...(input.provisionedCapacity !== undefined &&
1345
- input.provisionedCapacity !== null && {
1333
+ ...(input.autoScaling != null && { autoScaling: serializeAws_restJson1AutoScaling(input.autoScaling, context) }),
1334
+ ...(input.provisionedCapacity != null && {
1346
1335
  provisionedCapacity: serializeAws_restJson1ProvisionedCapacity(input.provisionedCapacity, context),
1347
1336
  }),
1348
1337
  };
1349
1338
  };
1350
1339
  const serializeAws_restJson1CapacityUpdate = (input, context) => {
1351
1340
  return {
1352
- ...(input.autoScaling !== undefined &&
1353
- input.autoScaling !== null && {
1341
+ ...(input.autoScaling != null && {
1354
1342
  autoScaling: serializeAws_restJson1AutoScalingUpdate(input.autoScaling, context),
1355
1343
  }),
1356
- ...(input.provisionedCapacity !== undefined &&
1357
- input.provisionedCapacity !== null && {
1344
+ ...(input.provisionedCapacity != null && {
1358
1345
  provisionedCapacity: serializeAws_restJson1ProvisionedCapacityUpdate(input.provisionedCapacity, context),
1359
1346
  }),
1360
1347
  };
1361
1348
  };
1362
1349
  const serializeAws_restJson1CloudWatchLogsLogDelivery = (input, context) => {
1363
1350
  return {
1364
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
1365
- ...(input.logGroup !== undefined && input.logGroup !== null && { logGroup: input.logGroup }),
1351
+ ...(input.enabled != null && { enabled: input.enabled }),
1352
+ ...(input.logGroup != null && { logGroup: input.logGroup }),
1366
1353
  };
1367
1354
  };
1368
1355
  const serializeAws_restJson1CustomPlugin = (input, context) => {
1369
1356
  return {
1370
- ...(input.customPluginArn !== undefined &&
1371
- input.customPluginArn !== null && { customPluginArn: input.customPluginArn }),
1372
- ...(input.revision !== undefined && input.revision !== null && { revision: input.revision }),
1357
+ ...(input.customPluginArn != null && { customPluginArn: input.customPluginArn }),
1358
+ ...(input.revision != null && { revision: input.revision }),
1373
1359
  };
1374
1360
  };
1375
1361
  const serializeAws_restJson1CustomPluginLocation = (input, context) => {
1376
1362
  return {
1377
- ...(input.s3Location !== undefined &&
1378
- input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }),
1363
+ ...(input.s3Location != null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }),
1379
1364
  };
1380
1365
  };
1381
1366
  const serializeAws_restJson1FirehoseLogDelivery = (input, context) => {
1382
1367
  return {
1383
- ...(input.deliveryStream !== undefined &&
1384
- input.deliveryStream !== null && { deliveryStream: input.deliveryStream }),
1385
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
1368
+ ...(input.deliveryStream != null && { deliveryStream: input.deliveryStream }),
1369
+ ...(input.enabled != null && { enabled: input.enabled }),
1386
1370
  };
1387
1371
  };
1388
1372
  const serializeAws_restJson1KafkaCluster = (input, context) => {
1389
1373
  return {
1390
- ...(input.apacheKafkaCluster !== undefined &&
1391
- input.apacheKafkaCluster !== null && {
1374
+ ...(input.apacheKafkaCluster != null && {
1392
1375
  apacheKafkaCluster: serializeAws_restJson1ApacheKafkaCluster(input.apacheKafkaCluster, context),
1393
1376
  }),
1394
1377
  };
1395
1378
  };
1396
1379
  const serializeAws_restJson1KafkaClusterClientAuthentication = (input, context) => {
1397
1380
  return {
1398
- ...(input.authenticationType !== undefined &&
1399
- input.authenticationType !== null && { authenticationType: input.authenticationType }),
1381
+ ...(input.authenticationType != null && { authenticationType: input.authenticationType }),
1400
1382
  };
1401
1383
  };
1402
1384
  const serializeAws_restJson1KafkaClusterEncryptionInTransit = (input, context) => {
1403
1385
  return {
1404
- ...(input.encryptionType !== undefined &&
1405
- input.encryptionType !== null && { encryptionType: input.encryptionType }),
1386
+ ...(input.encryptionType != null && { encryptionType: input.encryptionType }),
1406
1387
  };
1407
1388
  };
1408
1389
  const serializeAws_restJson1LogDelivery = (input, context) => {
1409
1390
  return {
1410
- ...(input.workerLogDelivery !== undefined &&
1411
- input.workerLogDelivery !== null && {
1391
+ ...(input.workerLogDelivery != null && {
1412
1392
  workerLogDelivery: serializeAws_restJson1WorkerLogDelivery(input.workerLogDelivery, context),
1413
1393
  }),
1414
1394
  };
1415
1395
  };
1416
1396
  const serializeAws_restJson1Plugin = (input, context) => {
1417
1397
  return {
1418
- ...(input.customPlugin !== undefined &&
1419
- input.customPlugin !== null && { customPlugin: serializeAws_restJson1CustomPlugin(input.customPlugin, context) }),
1398
+ ...(input.customPlugin != null && {
1399
+ customPlugin: serializeAws_restJson1CustomPlugin(input.customPlugin, context),
1400
+ }),
1420
1401
  };
1421
1402
  };
1422
1403
  const serializeAws_restJson1ProvisionedCapacity = (input, context) => {
1423
1404
  return {
1424
- ...(input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount }),
1425
- ...(input.workerCount !== undefined && input.workerCount !== null && { workerCount: input.workerCount }),
1405
+ ...(input.mcuCount != null && { mcuCount: input.mcuCount }),
1406
+ ...(input.workerCount != null && { workerCount: input.workerCount }),
1426
1407
  };
1427
1408
  };
1428
1409
  const serializeAws_restJson1ProvisionedCapacityUpdate = (input, context) => {
1429
1410
  return {
1430
- ...(input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount }),
1431
- ...(input.workerCount !== undefined && input.workerCount !== null && { workerCount: input.workerCount }),
1411
+ ...(input.mcuCount != null && { mcuCount: input.mcuCount }),
1412
+ ...(input.workerCount != null && { workerCount: input.workerCount }),
1432
1413
  };
1433
1414
  };
1434
1415
  const serializeAws_restJson1S3Location = (input, context) => {
1435
1416
  return {
1436
- ...(input.bucketArn !== undefined && input.bucketArn !== null && { bucketArn: input.bucketArn }),
1437
- ...(input.fileKey !== undefined && input.fileKey !== null && { fileKey: input.fileKey }),
1438
- ...(input.objectVersion !== undefined && input.objectVersion !== null && { objectVersion: input.objectVersion }),
1417
+ ...(input.bucketArn != null && { bucketArn: input.bucketArn }),
1418
+ ...(input.fileKey != null && { fileKey: input.fileKey }),
1419
+ ...(input.objectVersion != null && { objectVersion: input.objectVersion }),
1439
1420
  };
1440
1421
  };
1441
1422
  const serializeAws_restJson1S3LogDelivery = (input, context) => {
1442
1423
  return {
1443
- ...(input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket }),
1444
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
1445
- ...(input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }),
1424
+ ...(input.bucket != null && { bucket: input.bucket }),
1425
+ ...(input.enabled != null && { enabled: input.enabled }),
1426
+ ...(input.prefix != null && { prefix: input.prefix }),
1446
1427
  };
1447
1428
  };
1448
1429
  const serializeAws_restJson1ScaleInPolicy = (input, context) => {
1449
1430
  return {
1450
- ...(input.cpuUtilizationPercentage !== undefined &&
1451
- input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
1431
+ ...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
1452
1432
  };
1453
1433
  };
1454
1434
  const serializeAws_restJson1ScaleInPolicyUpdate = (input, context) => {
1455
1435
  return {
1456
- ...(input.cpuUtilizationPercentage !== undefined &&
1457
- input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
1436
+ ...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
1458
1437
  };
1459
1438
  };
1460
1439
  const serializeAws_restJson1ScaleOutPolicy = (input, context) => {
1461
1440
  return {
1462
- ...(input.cpuUtilizationPercentage !== undefined &&
1463
- input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
1441
+ ...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
1464
1442
  };
1465
1443
  };
1466
1444
  const serializeAws_restJson1ScaleOutPolicyUpdate = (input, context) => {
1467
1445
  return {
1468
- ...(input.cpuUtilizationPercentage !== undefined &&
1469
- input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
1446
+ ...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
1470
1447
  };
1471
1448
  };
1472
1449
  const serializeAws_restJson1Vpc = (input, context) => {
1473
1450
  return {
1474
- ...(input.securityGroups !== undefined &&
1475
- input.securityGroups !== null && {
1451
+ ...(input.securityGroups != null && {
1476
1452
  securityGroups: serializeAws_restJson1__listOf__string(input.securityGroups, context),
1477
1453
  }),
1478
- ...(input.subnets !== undefined &&
1479
- input.subnets !== null && { subnets: serializeAws_restJson1__listOf__string(input.subnets, context) }),
1454
+ ...(input.subnets != null && { subnets: serializeAws_restJson1__listOf__string(input.subnets, context) }),
1480
1455
  };
1481
1456
  };
1482
1457
  const serializeAws_restJson1WorkerConfiguration = (input, context) => {
1483
1458
  return {
1484
- ...(input.revision !== undefined && input.revision !== null && { revision: input.revision }),
1485
- ...(input.workerConfigurationArn !== undefined &&
1486
- input.workerConfigurationArn !== null && { workerConfigurationArn: input.workerConfigurationArn }),
1459
+ ...(input.revision != null && { revision: input.revision }),
1460
+ ...(input.workerConfigurationArn != null && { workerConfigurationArn: input.workerConfigurationArn }),
1487
1461
  };
1488
1462
  };
1489
1463
  const serializeAws_restJson1WorkerLogDelivery = (input, context) => {
1490
1464
  return {
1491
- ...(input.cloudWatchLogs !== undefined &&
1492
- input.cloudWatchLogs !== null && {
1465
+ ...(input.cloudWatchLogs != null && {
1493
1466
  cloudWatchLogs: serializeAws_restJson1CloudWatchLogsLogDelivery(input.cloudWatchLogs, context),
1494
1467
  }),
1495
- ...(input.firehose !== undefined &&
1496
- input.firehose !== null && { firehose: serializeAws_restJson1FirehoseLogDelivery(input.firehose, context) }),
1497
- ...(input.s3 !== undefined && input.s3 !== null && { s3: serializeAws_restJson1S3LogDelivery(input.s3, context) }),
1468
+ ...(input.firehose != null && { firehose: serializeAws_restJson1FirehoseLogDelivery(input.firehose, context) }),
1469
+ ...(input.s3 != null && { s3: serializeAws_restJson1S3LogDelivery(input.s3, context) }),
1498
1470
  };
1499
1471
  };
1500
1472
  const deserializeAws_restJson1__listOf__string = (output, context) => {
@@ -1566,9 +1538,7 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
1566
1538
  const deserializeAws_restJson1ApacheKafkaClusterDescription = (output, context) => {
1567
1539
  return {
1568
1540
  bootstrapServers: (0, smithy_client_1.expectString)(output.bootstrapServers),
1569
- vpc: output.vpc !== undefined && output.vpc !== null
1570
- ? deserializeAws_restJson1VpcDescription(output.vpc, context)
1571
- : undefined,
1541
+ vpc: output.vpc != null ? deserializeAws_restJson1VpcDescription(output.vpc, context) : undefined,
1572
1542
  };
1573
1543
  };
1574
1544
  const deserializeAws_restJson1AutoScalingDescription = (output, context) => {
@@ -1576,20 +1546,20 @@ const deserializeAws_restJson1AutoScalingDescription = (output, context) => {
1576
1546
  maxWorkerCount: (0, smithy_client_1.expectInt32)(output.maxWorkerCount),
1577
1547
  mcuCount: (0, smithy_client_1.expectInt32)(output.mcuCount),
1578
1548
  minWorkerCount: (0, smithy_client_1.expectInt32)(output.minWorkerCount),
1579
- scaleInPolicy: output.scaleInPolicy !== undefined && output.scaleInPolicy !== null
1549
+ scaleInPolicy: output.scaleInPolicy != null
1580
1550
  ? deserializeAws_restJson1ScaleInPolicyDescription(output.scaleInPolicy, context)
1581
1551
  : undefined,
1582
- scaleOutPolicy: output.scaleOutPolicy !== undefined && output.scaleOutPolicy !== null
1552
+ scaleOutPolicy: output.scaleOutPolicy != null
1583
1553
  ? deserializeAws_restJson1ScaleOutPolicyDescription(output.scaleOutPolicy, context)
1584
1554
  : undefined,
1585
1555
  };
1586
1556
  };
1587
1557
  const deserializeAws_restJson1CapacityDescription = (output, context) => {
1588
1558
  return {
1589
- autoScaling: output.autoScaling !== undefined && output.autoScaling !== null
1559
+ autoScaling: output.autoScaling != null
1590
1560
  ? deserializeAws_restJson1AutoScalingDescription(output.autoScaling, context)
1591
1561
  : undefined,
1592
- provisionedCapacity: output.provisionedCapacity !== undefined && output.provisionedCapacity !== null
1562
+ provisionedCapacity: output.provisionedCapacity != null
1593
1563
  ? deserializeAws_restJson1ProvisionedCapacityDescription(output.provisionedCapacity, context)
1594
1564
  : undefined,
1595
1565
  };
@@ -1602,35 +1572,29 @@ const deserializeAws_restJson1CloudWatchLogsLogDeliveryDescription = (output, co
1602
1572
  };
1603
1573
  const deserializeAws_restJson1ConnectorSummary = (output, context) => {
1604
1574
  return {
1605
- capacity: output.capacity !== undefined && output.capacity !== null
1606
- ? deserializeAws_restJson1CapacityDescription(output.capacity, context)
1607
- : undefined,
1575
+ capacity: output.capacity != null ? deserializeAws_restJson1CapacityDescription(output.capacity, context) : undefined,
1608
1576
  connectorArn: (0, smithy_client_1.expectString)(output.connectorArn),
1609
1577
  connectorDescription: (0, smithy_client_1.expectString)(output.connectorDescription),
1610
1578
  connectorName: (0, smithy_client_1.expectString)(output.connectorName),
1611
1579
  connectorState: (0, smithy_client_1.expectString)(output.connectorState),
1612
- creationTime: output.creationTime !== undefined && output.creationTime !== null
1613
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
1614
- : undefined,
1580
+ creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
1615
1581
  currentVersion: (0, smithy_client_1.expectString)(output.currentVersion),
1616
- kafkaCluster: output.kafkaCluster !== undefined && output.kafkaCluster !== null
1582
+ kafkaCluster: output.kafkaCluster != null
1617
1583
  ? deserializeAws_restJson1KafkaClusterDescription(output.kafkaCluster, context)
1618
1584
  : undefined,
1619
- kafkaClusterClientAuthentication: output.kafkaClusterClientAuthentication !== undefined && output.kafkaClusterClientAuthentication !== null
1585
+ kafkaClusterClientAuthentication: output.kafkaClusterClientAuthentication != null
1620
1586
  ? deserializeAws_restJson1KafkaClusterClientAuthenticationDescription(output.kafkaClusterClientAuthentication, context)
1621
1587
  : undefined,
1622
- kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit !== undefined && output.kafkaClusterEncryptionInTransit !== null
1588
+ kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit != null
1623
1589
  ? deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription(output.kafkaClusterEncryptionInTransit, context)
1624
1590
  : undefined,
1625
1591
  kafkaConnectVersion: (0, smithy_client_1.expectString)(output.kafkaConnectVersion),
1626
- logDelivery: output.logDelivery !== undefined && output.logDelivery !== null
1592
+ logDelivery: output.logDelivery != null
1627
1593
  ? deserializeAws_restJson1LogDeliveryDescription(output.logDelivery, context)
1628
1594
  : undefined,
1629
- plugins: output.plugins !== undefined && output.plugins !== null
1630
- ? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context)
1631
- : undefined,
1595
+ plugins: output.plugins != null ? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context) : undefined,
1632
1596
  serviceExecutionRoleArn: (0, smithy_client_1.expectString)(output.serviceExecutionRoleArn),
1633
- workerConfiguration: output.workerConfiguration !== undefined && output.workerConfiguration !== null
1597
+ workerConfiguration: output.workerConfiguration != null
1634
1598
  ? deserializeAws_restJson1WorkerConfigurationDescription(output.workerConfiguration, context)
1635
1599
  : undefined,
1636
1600
  };
@@ -1649,22 +1613,18 @@ const deserializeAws_restJson1CustomPluginFileDescription = (output, context) =>
1649
1613
  };
1650
1614
  const deserializeAws_restJson1CustomPluginLocationDescription = (output, context) => {
1651
1615
  return {
1652
- s3Location: output.s3Location !== undefined && output.s3Location !== null
1653
- ? deserializeAws_restJson1S3LocationDescription(output.s3Location, context)
1654
- : undefined,
1616
+ s3Location: output.s3Location != null ? deserializeAws_restJson1S3LocationDescription(output.s3Location, context) : undefined,
1655
1617
  };
1656
1618
  };
1657
1619
  const deserializeAws_restJson1CustomPluginRevisionSummary = (output, context) => {
1658
1620
  return {
1659
1621
  contentType: (0, smithy_client_1.expectString)(output.contentType),
1660
- creationTime: output.creationTime !== undefined && output.creationTime !== null
1661
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
1662
- : undefined,
1622
+ creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
1663
1623
  description: (0, smithy_client_1.expectString)(output.description),
1664
- fileDescription: output.fileDescription !== undefined && output.fileDescription !== null
1624
+ fileDescription: output.fileDescription != null
1665
1625
  ? deserializeAws_restJson1CustomPluginFileDescription(output.fileDescription, context)
1666
1626
  : undefined,
1667
- location: output.location !== undefined && output.location !== null
1627
+ location: output.location != null
1668
1628
  ? deserializeAws_restJson1CustomPluginLocationDescription(output.location, context)
1669
1629
  : undefined,
1670
1630
  revision: (0, smithy_client_1.expectLong)(output.revision),
@@ -1672,13 +1632,11 @@ const deserializeAws_restJson1CustomPluginRevisionSummary = (output, context) =>
1672
1632
  };
1673
1633
  const deserializeAws_restJson1CustomPluginSummary = (output, context) => {
1674
1634
  return {
1675
- creationTime: output.creationTime !== undefined && output.creationTime !== null
1676
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
1677
- : undefined,
1635
+ creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
1678
1636
  customPluginArn: (0, smithy_client_1.expectString)(output.customPluginArn),
1679
1637
  customPluginState: (0, smithy_client_1.expectString)(output.customPluginState),
1680
1638
  description: (0, smithy_client_1.expectString)(output.description),
1681
- latestRevision: output.latestRevision !== undefined && output.latestRevision !== null
1639
+ latestRevision: output.latestRevision != null
1682
1640
  ? deserializeAws_restJson1CustomPluginRevisionSummary(output.latestRevision, context)
1683
1641
  : undefined,
1684
1642
  name: (0, smithy_client_1.expectString)(output.name),
@@ -1697,7 +1655,7 @@ const deserializeAws_restJson1KafkaClusterClientAuthenticationDescription = (out
1697
1655
  };
1698
1656
  const deserializeAws_restJson1KafkaClusterDescription = (output, context) => {
1699
1657
  return {
1700
- apacheKafkaCluster: output.apacheKafkaCluster !== undefined && output.apacheKafkaCluster !== null
1658
+ apacheKafkaCluster: output.apacheKafkaCluster != null
1701
1659
  ? deserializeAws_restJson1ApacheKafkaClusterDescription(output.apacheKafkaCluster, context)
1702
1660
  : undefined,
1703
1661
  };
@@ -1709,14 +1667,14 @@ const deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription = (outp
1709
1667
  };
1710
1668
  const deserializeAws_restJson1LogDeliveryDescription = (output, context) => {
1711
1669
  return {
1712
- workerLogDelivery: output.workerLogDelivery !== undefined && output.workerLogDelivery !== null
1670
+ workerLogDelivery: output.workerLogDelivery != null
1713
1671
  ? deserializeAws_restJson1WorkerLogDeliveryDescription(output.workerLogDelivery, context)
1714
1672
  : undefined,
1715
1673
  };
1716
1674
  };
1717
1675
  const deserializeAws_restJson1PluginDescription = (output, context) => {
1718
1676
  return {
1719
- customPlugin: output.customPlugin !== undefined && output.customPlugin !== null
1677
+ customPlugin: output.customPlugin != null
1720
1678
  ? deserializeAws_restJson1CustomPluginDescription(output.customPlugin, context)
1721
1679
  : undefined,
1722
1680
  };
@@ -1759,12 +1717,10 @@ const deserializeAws_restJson1StateDescription = (output, context) => {
1759
1717
  };
1760
1718
  const deserializeAws_restJson1VpcDescription = (output, context) => {
1761
1719
  return {
1762
- securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
1720
+ securityGroups: output.securityGroups != null
1763
1721
  ? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
1764
1722
  : undefined,
1765
- subnets: output.subnets !== undefined && output.subnets !== null
1766
- ? deserializeAws_restJson1__listOf__string(output.subnets, context)
1767
- : undefined,
1723
+ subnets: output.subnets != null ? deserializeAws_restJson1__listOf__string(output.subnets, context) : undefined,
1768
1724
  };
1769
1725
  };
1770
1726
  const deserializeAws_restJson1WorkerConfigurationDescription = (output, context) => {
@@ -1775,9 +1731,7 @@ const deserializeAws_restJson1WorkerConfigurationDescription = (output, context)
1775
1731
  };
1776
1732
  const deserializeAws_restJson1WorkerConfigurationRevisionDescription = (output, context) => {
1777
1733
  return {
1778
- creationTime: output.creationTime !== undefined && output.creationTime !== null
1779
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
1780
- : undefined,
1734
+ creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
1781
1735
  description: (0, smithy_client_1.expectString)(output.description),
1782
1736
  propertiesFileContent: (0, smithy_client_1.expectString)(output.propertiesFileContent),
1783
1737
  revision: (0, smithy_client_1.expectLong)(output.revision),
@@ -1785,20 +1739,16 @@ const deserializeAws_restJson1WorkerConfigurationRevisionDescription = (output,
1785
1739
  };
1786
1740
  const deserializeAws_restJson1WorkerConfigurationRevisionSummary = (output, context) => {
1787
1741
  return {
1788
- creationTime: output.creationTime !== undefined && output.creationTime !== null
1789
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
1790
- : undefined,
1742
+ creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
1791
1743
  description: (0, smithy_client_1.expectString)(output.description),
1792
1744
  revision: (0, smithy_client_1.expectLong)(output.revision),
1793
1745
  };
1794
1746
  };
1795
1747
  const deserializeAws_restJson1WorkerConfigurationSummary = (output, context) => {
1796
1748
  return {
1797
- creationTime: output.creationTime !== undefined && output.creationTime !== null
1798
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
1799
- : undefined,
1749
+ creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
1800
1750
  description: (0, smithy_client_1.expectString)(output.description),
1801
- latestRevision: output.latestRevision !== undefined && output.latestRevision !== null
1751
+ latestRevision: output.latestRevision != null
1802
1752
  ? deserializeAws_restJson1WorkerConfigurationRevisionSummary(output.latestRevision, context)
1803
1753
  : undefined,
1804
1754
  name: (0, smithy_client_1.expectString)(output.name),
@@ -1807,15 +1757,13 @@ const deserializeAws_restJson1WorkerConfigurationSummary = (output, context) =>
1807
1757
  };
1808
1758
  const deserializeAws_restJson1WorkerLogDeliveryDescription = (output, context) => {
1809
1759
  return {
1810
- cloudWatchLogs: output.cloudWatchLogs !== undefined && output.cloudWatchLogs !== null
1760
+ cloudWatchLogs: output.cloudWatchLogs != null
1811
1761
  ? deserializeAws_restJson1CloudWatchLogsLogDeliveryDescription(output.cloudWatchLogs, context)
1812
1762
  : undefined,
1813
- firehose: output.firehose !== undefined && output.firehose !== null
1763
+ firehose: output.firehose != null
1814
1764
  ? deserializeAws_restJson1FirehoseLogDeliveryDescription(output.firehose, context)
1815
1765
  : undefined,
1816
- s3: output.s3 !== undefined && output.s3 !== null
1817
- ? deserializeAws_restJson1S3LogDeliveryDescription(output.s3, context)
1818
- : undefined,
1766
+ s3: output.s3 != null ? deserializeAws_restJson1S3LogDeliveryDescription(output.s3, context) : undefined,
1819
1767
  };
1820
1768
  };
1821
1769
  const deserializeMetadata = (output) => {
@@ -1867,5 +1815,4 @@ const loadRestJsonErrorCode = (output, data) => {
1867
1815
  if (data["__type"] !== undefined) {
1868
1816
  return sanitizeErrorCode(data["__type"]);
1869
1817
  }
1870
- return "";
1871
1818
  };