@aws-sdk/client-kafka 3.43.0 → 3.47.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist-cjs/Kafka.js +45 -0
  3. package/dist-cjs/commands/CreateClusterV2Command.js +36 -0
  4. package/dist-cjs/commands/DescribeClusterV2Command.js +36 -0
  5. package/dist-cjs/commands/ListClustersV2Command.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/endpoints.js +1 -0
  8. package/dist-cjs/models/models_0.js +132 -91
  9. package/dist-cjs/pagination/ListClustersV2Paginator.js +35 -0
  10. package/dist-cjs/pagination/index.js +1 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +546 -2
  12. package/dist-cjs/runtimeConfig.browser.js +7 -2
  13. package/dist-cjs/runtimeConfig.js +9 -3
  14. package/dist-es/Kafka.js +45 -0
  15. package/dist-es/commands/CreateClusterV2Command.js +39 -0
  16. package/dist-es/commands/DescribeClusterV2Command.js +39 -0
  17. package/dist-es/commands/ListClustersV2Command.js +39 -0
  18. package/dist-es/commands/index.js +3 -0
  19. package/dist-es/endpoints.js +1 -0
  20. package/dist-es/models/models_0.js +92 -63
  21. package/dist-es/pagination/ListClustersV2Paginator.js +74 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_restJson1.js +571 -0
  24. package/dist-es/runtimeConfig.browser.js +12 -3
  25. package/dist-es/runtimeConfig.js +13 -6
  26. package/dist-types/Kafka.d.ts +21 -0
  27. package/dist-types/KafkaClient.d.ts +10 -3
  28. package/dist-types/commands/CreateClusterV2Command.d.ts +35 -0
  29. package/dist-types/commands/DescribeClusterV2Command.d.ts +35 -0
  30. package/dist-types/commands/ListClustersV2Command.d.ts +35 -0
  31. package/dist-types/commands/index.d.ts +3 -0
  32. package/dist-types/models/models_0.d.ts +430 -116
  33. package/dist-types/pagination/ListClustersV2Paginator.d.ts +4 -0
  34. package/dist-types/pagination/index.d.ts +1 -0
  35. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  36. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  37. package/dist-types/runtimeConfig.d.ts +4 -3
  38. package/dist-types/runtimeConfig.native.d.ts +1 -0
  39. package/dist-types/ts3.4/Kafka.d.ts +15 -0
  40. package/dist-types/ts3.4/KafkaClient.d.ts +8 -3
  41. package/dist-types/ts3.4/commands/CreateClusterV2Command.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/DescribeClusterV2Command.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/ListClustersV2Command.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +255 -79
  46. package/dist-types/ts3.4/pagination/ListClustersV2Paginator.d.ts +4 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  49. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  50. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  51. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  52. package/package.json +38 -45
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListNodesCommand = exports.deserializeAws_restJson1ListKafkaVersionsCommand = exports.deserializeAws_restJson1ListConfigurationsCommand = exports.deserializeAws_restJson1ListConfigurationRevisionsCommand = exports.deserializeAws_restJson1ListClustersCommand = exports.deserializeAws_restJson1ListClusterOperationsCommand = exports.deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.deserializeAws_restJson1GetBootstrapBrokersCommand = exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = exports.deserializeAws_restJson1DescribeConfigurationCommand = exports.deserializeAws_restJson1DescribeClusterOperationCommand = exports.deserializeAws_restJson1DescribeClusterCommand = exports.deserializeAws_restJson1DeleteConfigurationCommand = exports.deserializeAws_restJson1DeleteClusterCommand = exports.deserializeAws_restJson1CreateConfigurationCommand = exports.deserializeAws_restJson1CreateClusterCommand = exports.deserializeAws_restJson1BatchDisassociateScramSecretCommand = exports.deserializeAws_restJson1BatchAssociateScramSecretCommand = exports.serializeAws_restJson1UpdateSecurityCommand = exports.serializeAws_restJson1UpdateMonitoringCommand = exports.serializeAws_restJson1UpdateConnectivityCommand = exports.serializeAws_restJson1UpdateConfigurationCommand = exports.serializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.serializeAws_restJson1UpdateClusterConfigurationCommand = exports.serializeAws_restJson1UpdateBrokerTypeCommand = exports.serializeAws_restJson1UpdateBrokerStorageCommand = exports.serializeAws_restJson1UpdateBrokerCountCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RebootBrokerCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListScramSecretsCommand = exports.serializeAws_restJson1ListNodesCommand = exports.serializeAws_restJson1ListKafkaVersionsCommand = exports.serializeAws_restJson1ListConfigurationsCommand = exports.serializeAws_restJson1ListConfigurationRevisionsCommand = exports.serializeAws_restJson1ListClustersCommand = exports.serializeAws_restJson1ListClusterOperationsCommand = exports.serializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.serializeAws_restJson1GetBootstrapBrokersCommand = exports.serializeAws_restJson1DescribeConfigurationRevisionCommand = exports.serializeAws_restJson1DescribeConfigurationCommand = exports.serializeAws_restJson1DescribeClusterOperationCommand = exports.serializeAws_restJson1DescribeClusterCommand = exports.serializeAws_restJson1DeleteConfigurationCommand = exports.serializeAws_restJson1DeleteClusterCommand = exports.serializeAws_restJson1CreateConfigurationCommand = exports.serializeAws_restJson1CreateClusterCommand = exports.serializeAws_restJson1BatchDisassociateScramSecretCommand = exports.serializeAws_restJson1BatchAssociateScramSecretCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateSecurityCommand = exports.deserializeAws_restJson1UpdateMonitoringCommand = exports.deserializeAws_restJson1UpdateConnectivityCommand = exports.deserializeAws_restJson1UpdateConfigurationCommand = exports.deserializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.deserializeAws_restJson1UpdateClusterConfigurationCommand = exports.deserializeAws_restJson1UpdateBrokerTypeCommand = exports.deserializeAws_restJson1UpdateBrokerStorageCommand = exports.deserializeAws_restJson1UpdateBrokerCountCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RebootBrokerCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListScramSecretsCommand = void 0;
3
+ exports.deserializeAws_restJson1ListClusterOperationsCommand = exports.deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.deserializeAws_restJson1GetBootstrapBrokersCommand = exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = exports.deserializeAws_restJson1DescribeConfigurationCommand = exports.deserializeAws_restJson1DescribeClusterV2Command = exports.deserializeAws_restJson1DescribeClusterOperationCommand = exports.deserializeAws_restJson1DescribeClusterCommand = exports.deserializeAws_restJson1DeleteConfigurationCommand = exports.deserializeAws_restJson1DeleteClusterCommand = exports.deserializeAws_restJson1CreateConfigurationCommand = exports.deserializeAws_restJson1CreateClusterV2Command = exports.deserializeAws_restJson1CreateClusterCommand = exports.deserializeAws_restJson1BatchDisassociateScramSecretCommand = exports.deserializeAws_restJson1BatchAssociateScramSecretCommand = exports.serializeAws_restJson1UpdateSecurityCommand = exports.serializeAws_restJson1UpdateMonitoringCommand = exports.serializeAws_restJson1UpdateConnectivityCommand = exports.serializeAws_restJson1UpdateConfigurationCommand = exports.serializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.serializeAws_restJson1UpdateClusterConfigurationCommand = exports.serializeAws_restJson1UpdateBrokerTypeCommand = exports.serializeAws_restJson1UpdateBrokerStorageCommand = exports.serializeAws_restJson1UpdateBrokerCountCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RebootBrokerCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListScramSecretsCommand = exports.serializeAws_restJson1ListNodesCommand = exports.serializeAws_restJson1ListKafkaVersionsCommand = exports.serializeAws_restJson1ListConfigurationsCommand = exports.serializeAws_restJson1ListConfigurationRevisionsCommand = exports.serializeAws_restJson1ListClustersV2Command = exports.serializeAws_restJson1ListClustersCommand = exports.serializeAws_restJson1ListClusterOperationsCommand = exports.serializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.serializeAws_restJson1GetBootstrapBrokersCommand = exports.serializeAws_restJson1DescribeConfigurationRevisionCommand = exports.serializeAws_restJson1DescribeConfigurationCommand = exports.serializeAws_restJson1DescribeClusterV2Command = exports.serializeAws_restJson1DescribeClusterOperationCommand = exports.serializeAws_restJson1DescribeClusterCommand = exports.serializeAws_restJson1DeleteConfigurationCommand = exports.serializeAws_restJson1DeleteClusterCommand = exports.serializeAws_restJson1CreateConfigurationCommand = exports.serializeAws_restJson1CreateClusterV2Command = exports.serializeAws_restJson1CreateClusterCommand = exports.serializeAws_restJson1BatchDisassociateScramSecretCommand = exports.serializeAws_restJson1BatchAssociateScramSecretCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateSecurityCommand = exports.deserializeAws_restJson1UpdateMonitoringCommand = exports.deserializeAws_restJson1UpdateConnectivityCommand = exports.deserializeAws_restJson1UpdateConfigurationCommand = exports.deserializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.deserializeAws_restJson1UpdateClusterConfigurationCommand = exports.deserializeAws_restJson1UpdateBrokerTypeCommand = exports.deserializeAws_restJson1UpdateBrokerStorageCommand = exports.deserializeAws_restJson1UpdateBrokerCountCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RebootBrokerCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListScramSecretsCommand = exports.deserializeAws_restJson1ListNodesCommand = exports.deserializeAws_restJson1ListKafkaVersionsCommand = exports.deserializeAws_restJson1ListConfigurationsCommand = exports.deserializeAws_restJson1ListConfigurationRevisionsCommand = exports.deserializeAws_restJson1ListClustersV2Command = exports.deserializeAws_restJson1ListClustersCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const serializeAws_restJson1BatchAssociateScramSecretCommand = async (input, context) => {
@@ -122,6 +122,35 @@ const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
122
122
  });
123
123
  };
124
124
  exports.serializeAws_restJson1CreateClusterCommand = serializeAws_restJson1CreateClusterCommand;
125
+ const serializeAws_restJson1CreateClusterV2Command = async (input, context) => {
126
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const headers = {
128
+ "content-type": "application/json",
129
+ };
130
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters";
131
+ let body;
132
+ body = JSON.stringify({
133
+ ...(input.ClusterName !== undefined && input.ClusterName !== null && { clusterName: input.ClusterName }),
134
+ ...(input.Provisioned !== undefined &&
135
+ input.Provisioned !== null && {
136
+ provisioned: serializeAws_restJson1ProvisionedRequest(input.Provisioned, context),
137
+ }),
138
+ ...(input.Serverless !== undefined &&
139
+ input.Serverless !== null && { serverless: serializeAws_restJson1ServerlessRequest(input.Serverless, context) }),
140
+ ...(input.Tags !== undefined &&
141
+ input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
142
+ });
143
+ return new protocol_http_1.HttpRequest({
144
+ protocol,
145
+ hostname,
146
+ port,
147
+ method: "POST",
148
+ headers,
149
+ path: resolvedPath,
150
+ body,
151
+ });
152
+ };
153
+ exports.serializeAws_restJson1CreateClusterV2Command = serializeAws_restJson1CreateClusterV2Command;
125
154
  const serializeAws_restJson1CreateConfigurationCommand = async (input, context) => {
126
155
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
156
  const headers = {
@@ -258,6 +287,32 @@ const serializeAws_restJson1DescribeClusterOperationCommand = async (input, cont
258
287
  });
259
288
  };
260
289
  exports.serializeAws_restJson1DescribeClusterOperationCommand = serializeAws_restJson1DescribeClusterOperationCommand;
290
+ const serializeAws_restJson1DescribeClusterV2Command = async (input, context) => {
291
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const headers = {};
293
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters/{ClusterArn}";
294
+ if (input.ClusterArn !== undefined) {
295
+ const labelValue = input.ClusterArn;
296
+ if (labelValue.length <= 0) {
297
+ throw new Error("Empty value provided for input HTTP label: ClusterArn.");
298
+ }
299
+ resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
300
+ }
301
+ else {
302
+ throw new Error("No value provided for input HTTP label: ClusterArn.");
303
+ }
304
+ let body;
305
+ return new protocol_http_1.HttpRequest({
306
+ protocol,
307
+ hostname,
308
+ port,
309
+ method: "GET",
310
+ headers,
311
+ path: resolvedPath,
312
+ body,
313
+ });
314
+ };
315
+ exports.serializeAws_restJson1DescribeClusterV2Command = serializeAws_restJson1DescribeClusterV2Command;
261
316
  const serializeAws_restJson1DescribeConfigurationCommand = async (input, context) => {
262
317
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
263
318
  const headers = {};
@@ -421,6 +476,29 @@ const serializeAws_restJson1ListClustersCommand = async (input, context) => {
421
476
  });
422
477
  };
423
478
  exports.serializeAws_restJson1ListClustersCommand = serializeAws_restJson1ListClustersCommand;
479
+ const serializeAws_restJson1ListClustersV2Command = async (input, context) => {
480
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
481
+ const headers = {};
482
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters";
483
+ const query = {
484
+ ...(input.ClusterNameFilter !== undefined && { clusterNameFilter: input.ClusterNameFilter }),
485
+ ...(input.ClusterTypeFilter !== undefined && { clusterTypeFilter: input.ClusterTypeFilter }),
486
+ ...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
487
+ ...(input.NextToken !== undefined && { nextToken: input.NextToken }),
488
+ };
489
+ let body;
490
+ return new protocol_http_1.HttpRequest({
491
+ protocol,
492
+ hostname,
493
+ port,
494
+ method: "GET",
495
+ headers,
496
+ path: resolvedPath,
497
+ query,
498
+ body,
499
+ });
500
+ };
501
+ exports.serializeAws_restJson1ListClustersV2Command = serializeAws_restJson1ListClustersV2Command;
424
502
  const serializeAws_restJson1ListConfigurationRevisionsCommand = async (input, context) => {
425
503
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
426
504
  const headers = {};
@@ -1307,6 +1385,114 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
1307
1385
  delete response.Message;
1308
1386
  return Promise.reject(Object.assign(new Error(message), response));
1309
1387
  };
1388
+ const deserializeAws_restJson1CreateClusterV2Command = async (output, context) => {
1389
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1390
+ return deserializeAws_restJson1CreateClusterV2CommandError(output, context);
1391
+ }
1392
+ const contents = {
1393
+ $metadata: deserializeMetadata(output),
1394
+ ClusterArn: undefined,
1395
+ ClusterName: undefined,
1396
+ ClusterType: undefined,
1397
+ State: undefined,
1398
+ };
1399
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1400
+ if (data.clusterArn !== undefined && data.clusterArn !== null) {
1401
+ contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
1402
+ }
1403
+ if (data.clusterName !== undefined && data.clusterName !== null) {
1404
+ contents.ClusterName = smithy_client_1.expectString(data.clusterName);
1405
+ }
1406
+ if (data.clusterType !== undefined && data.clusterType !== null) {
1407
+ contents.ClusterType = smithy_client_1.expectString(data.clusterType);
1408
+ }
1409
+ if (data.state !== undefined && data.state !== null) {
1410
+ contents.State = smithy_client_1.expectString(data.state);
1411
+ }
1412
+ return Promise.resolve(contents);
1413
+ };
1414
+ exports.deserializeAws_restJson1CreateClusterV2Command = deserializeAws_restJson1CreateClusterV2Command;
1415
+ const deserializeAws_restJson1CreateClusterV2CommandError = async (output, context) => {
1416
+ const parsedOutput = {
1417
+ ...output,
1418
+ body: await parseBody(output.body, context),
1419
+ };
1420
+ let response;
1421
+ let errorCode = "UnknownError";
1422
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1423
+ switch (errorCode) {
1424
+ case "BadRequestException":
1425
+ case "com.amazonaws.kafka#BadRequestException":
1426
+ response = {
1427
+ ...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
1428
+ name: errorCode,
1429
+ $metadata: deserializeMetadata(output),
1430
+ };
1431
+ break;
1432
+ case "ConflictException":
1433
+ case "com.amazonaws.kafka#ConflictException":
1434
+ response = {
1435
+ ...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
1436
+ name: errorCode,
1437
+ $metadata: deserializeMetadata(output),
1438
+ };
1439
+ break;
1440
+ case "ForbiddenException":
1441
+ case "com.amazonaws.kafka#ForbiddenException":
1442
+ response = {
1443
+ ...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
1444
+ name: errorCode,
1445
+ $metadata: deserializeMetadata(output),
1446
+ };
1447
+ break;
1448
+ case "InternalServerErrorException":
1449
+ case "com.amazonaws.kafka#InternalServerErrorException":
1450
+ response = {
1451
+ ...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
1452
+ name: errorCode,
1453
+ $metadata: deserializeMetadata(output),
1454
+ };
1455
+ break;
1456
+ case "ServiceUnavailableException":
1457
+ case "com.amazonaws.kafka#ServiceUnavailableException":
1458
+ response = {
1459
+ ...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
1460
+ name: errorCode,
1461
+ $metadata: deserializeMetadata(output),
1462
+ };
1463
+ break;
1464
+ case "TooManyRequestsException":
1465
+ case "com.amazonaws.kafka#TooManyRequestsException":
1466
+ response = {
1467
+ ...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
1468
+ name: errorCode,
1469
+ $metadata: deserializeMetadata(output),
1470
+ };
1471
+ break;
1472
+ case "UnauthorizedException":
1473
+ case "com.amazonaws.kafka#UnauthorizedException":
1474
+ response = {
1475
+ ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
1476
+ name: errorCode,
1477
+ $metadata: deserializeMetadata(output),
1478
+ };
1479
+ break;
1480
+ default:
1481
+ const parsedBody = parsedOutput.body;
1482
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1483
+ response = {
1484
+ ...parsedBody,
1485
+ name: `${errorCode}`,
1486
+ message: parsedBody.message || parsedBody.Message || errorCode,
1487
+ $fault: "client",
1488
+ $metadata: deserializeMetadata(output),
1489
+ };
1490
+ }
1491
+ const message = response.message || response.Message || errorCode;
1492
+ response.message = message;
1493
+ delete response.Message;
1494
+ return Promise.reject(Object.assign(new Error(message), response));
1495
+ };
1310
1496
  const deserializeAws_restJson1CreateConfigurationCommand = async (output, context) => {
1311
1497
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1312
1498
  return deserializeAws_restJson1CreateConfigurationCommandError(output, context);
@@ -1731,6 +1917,86 @@ const deserializeAws_restJson1DescribeClusterOperationCommandError = async (outp
1731
1917
  delete response.Message;
1732
1918
  return Promise.reject(Object.assign(new Error(message), response));
1733
1919
  };
1920
+ const deserializeAws_restJson1DescribeClusterV2Command = async (output, context) => {
1921
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1922
+ return deserializeAws_restJson1DescribeClusterV2CommandError(output, context);
1923
+ }
1924
+ const contents = {
1925
+ $metadata: deserializeMetadata(output),
1926
+ ClusterInfo: undefined,
1927
+ };
1928
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1929
+ if (data.clusterInfo !== undefined && data.clusterInfo !== null) {
1930
+ contents.ClusterInfo = deserializeAws_restJson1Cluster(data.clusterInfo, context);
1931
+ }
1932
+ return Promise.resolve(contents);
1933
+ };
1934
+ exports.deserializeAws_restJson1DescribeClusterV2Command = deserializeAws_restJson1DescribeClusterV2Command;
1935
+ const deserializeAws_restJson1DescribeClusterV2CommandError = async (output, context) => {
1936
+ const parsedOutput = {
1937
+ ...output,
1938
+ body: await parseBody(output.body, context),
1939
+ };
1940
+ let response;
1941
+ let errorCode = "UnknownError";
1942
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1943
+ switch (errorCode) {
1944
+ case "BadRequestException":
1945
+ case "com.amazonaws.kafka#BadRequestException":
1946
+ response = {
1947
+ ...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
1948
+ name: errorCode,
1949
+ $metadata: deserializeMetadata(output),
1950
+ };
1951
+ break;
1952
+ case "ForbiddenException":
1953
+ case "com.amazonaws.kafka#ForbiddenException":
1954
+ response = {
1955
+ ...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
1956
+ name: errorCode,
1957
+ $metadata: deserializeMetadata(output),
1958
+ };
1959
+ break;
1960
+ case "InternalServerErrorException":
1961
+ case "com.amazonaws.kafka#InternalServerErrorException":
1962
+ response = {
1963
+ ...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
1964
+ name: errorCode,
1965
+ $metadata: deserializeMetadata(output),
1966
+ };
1967
+ break;
1968
+ case "NotFoundException":
1969
+ case "com.amazonaws.kafka#NotFoundException":
1970
+ response = {
1971
+ ...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
1972
+ name: errorCode,
1973
+ $metadata: deserializeMetadata(output),
1974
+ };
1975
+ break;
1976
+ case "UnauthorizedException":
1977
+ case "com.amazonaws.kafka#UnauthorizedException":
1978
+ response = {
1979
+ ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
1980
+ name: errorCode,
1981
+ $metadata: deserializeMetadata(output),
1982
+ };
1983
+ break;
1984
+ default:
1985
+ const parsedBody = parsedOutput.body;
1986
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
1987
+ response = {
1988
+ ...parsedBody,
1989
+ name: `${errorCode}`,
1990
+ message: parsedBody.message || parsedBody.Message || errorCode,
1991
+ $fault: "client",
1992
+ $metadata: deserializeMetadata(output),
1993
+ };
1994
+ }
1995
+ const message = response.message || response.Message || errorCode;
1996
+ response.message = message;
1997
+ delete response.Message;
1998
+ return Promise.reject(Object.assign(new Error(message), response));
1999
+ };
1734
2000
  const deserializeAws_restJson1DescribeConfigurationCommand = async (output, context) => {
1735
2001
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1736
2002
  return deserializeAws_restJson1DescribeConfigurationCommandError(output, context);
@@ -2299,6 +2565,82 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
2299
2565
  delete response.Message;
2300
2566
  return Promise.reject(Object.assign(new Error(message), response));
2301
2567
  };
2568
+ const deserializeAws_restJson1ListClustersV2Command = async (output, context) => {
2569
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2570
+ return deserializeAws_restJson1ListClustersV2CommandError(output, context);
2571
+ }
2572
+ const contents = {
2573
+ $metadata: deserializeMetadata(output),
2574
+ ClusterInfoList: undefined,
2575
+ NextToken: undefined,
2576
+ };
2577
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2578
+ if (data.clusterInfoList !== undefined && data.clusterInfoList !== null) {
2579
+ contents.ClusterInfoList = deserializeAws_restJson1__listOfCluster(data.clusterInfoList, context);
2580
+ }
2581
+ if (data.nextToken !== undefined && data.nextToken !== null) {
2582
+ contents.NextToken = smithy_client_1.expectString(data.nextToken);
2583
+ }
2584
+ return Promise.resolve(contents);
2585
+ };
2586
+ exports.deserializeAws_restJson1ListClustersV2Command = deserializeAws_restJson1ListClustersV2Command;
2587
+ const deserializeAws_restJson1ListClustersV2CommandError = async (output, context) => {
2588
+ const parsedOutput = {
2589
+ ...output,
2590
+ body: await parseBody(output.body, context),
2591
+ };
2592
+ let response;
2593
+ let errorCode = "UnknownError";
2594
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2595
+ switch (errorCode) {
2596
+ case "BadRequestException":
2597
+ case "com.amazonaws.kafka#BadRequestException":
2598
+ response = {
2599
+ ...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
2600
+ name: errorCode,
2601
+ $metadata: deserializeMetadata(output),
2602
+ };
2603
+ break;
2604
+ case "ForbiddenException":
2605
+ case "com.amazonaws.kafka#ForbiddenException":
2606
+ response = {
2607
+ ...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
2608
+ name: errorCode,
2609
+ $metadata: deserializeMetadata(output),
2610
+ };
2611
+ break;
2612
+ case "InternalServerErrorException":
2613
+ case "com.amazonaws.kafka#InternalServerErrorException":
2614
+ response = {
2615
+ ...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
2616
+ name: errorCode,
2617
+ $metadata: deserializeMetadata(output),
2618
+ };
2619
+ break;
2620
+ case "UnauthorizedException":
2621
+ case "com.amazonaws.kafka#UnauthorizedException":
2622
+ response = {
2623
+ ...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
2624
+ name: errorCode,
2625
+ $metadata: deserializeMetadata(output),
2626
+ };
2627
+ break;
2628
+ default:
2629
+ const parsedBody = parsedOutput.body;
2630
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2631
+ response = {
2632
+ ...parsedBody,
2633
+ name: `${errorCode}`,
2634
+ message: parsedBody.message || parsedBody.Message || errorCode,
2635
+ $fault: "client",
2636
+ $metadata: deserializeMetadata(output),
2637
+ };
2638
+ }
2639
+ const message = response.message || response.Message || errorCode;
2640
+ response.message = message;
2641
+ delete response.Message;
2642
+ return Promise.reject(Object.assign(new Error(message), response));
2643
+ };
2302
2644
  const deserializeAws_restJson1ListConfigurationRevisionsCommand = async (output, context) => {
2303
2645
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2304
2646
  return deserializeAws_restJson1ListConfigurationRevisionsCommandError(output, context);
@@ -3995,6 +4337,16 @@ const serializeAws_restJson1__listOfBrokerEBSVolumeInfo = (input, context) => {
3995
4337
  return serializeAws_restJson1BrokerEBSVolumeInfo(entry, context);
3996
4338
  });
3997
4339
  };
4340
+ const serializeAws_restJson1__listOfVpcConfig = (input, context) => {
4341
+ return input
4342
+ .filter((e) => e != null)
4343
+ .map((entry) => {
4344
+ if (entry === null) {
4345
+ return null;
4346
+ }
4347
+ return serializeAws_restJson1VpcConfig(entry, context);
4348
+ });
4349
+ };
3998
4350
  const serializeAws_restJson1__mapOf__string = (input, context) => {
3999
4351
  return Object.entries(input).reduce((acc, [key, value]) => {
4000
4352
  if (value === null) {
@@ -4148,6 +4500,37 @@ const serializeAws_restJson1PrometheusInfo = (input, context) => {
4148
4500
  }),
4149
4501
  };
4150
4502
  };
4503
+ const serializeAws_restJson1ProvisionedRequest = (input, context) => {
4504
+ return {
4505
+ ...(input.BrokerNodeGroupInfo !== undefined &&
4506
+ input.BrokerNodeGroupInfo !== null && {
4507
+ brokerNodeGroupInfo: serializeAws_restJson1BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
4508
+ }),
4509
+ ...(input.ClientAuthentication !== undefined &&
4510
+ input.ClientAuthentication !== null && {
4511
+ clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
4512
+ }),
4513
+ ...(input.ConfigurationInfo !== undefined &&
4514
+ input.ConfigurationInfo !== null && {
4515
+ configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
4516
+ }),
4517
+ ...(input.EncryptionInfo !== undefined &&
4518
+ input.EncryptionInfo !== null && {
4519
+ encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
4520
+ }),
4521
+ ...(input.EnhancedMonitoring !== undefined &&
4522
+ input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring }),
4523
+ ...(input.KafkaVersion !== undefined && input.KafkaVersion !== null && { kafkaVersion: input.KafkaVersion }),
4524
+ ...(input.LoggingInfo !== undefined &&
4525
+ input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) }),
4526
+ ...(input.NumberOfBrokerNodes !== undefined &&
4527
+ input.NumberOfBrokerNodes !== null && { numberOfBrokerNodes: input.NumberOfBrokerNodes }),
4528
+ ...(input.OpenMonitoring !== undefined &&
4529
+ input.OpenMonitoring !== null && {
4530
+ openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
4531
+ }),
4532
+ };
4533
+ };
4151
4534
  const serializeAws_restJson1PublicAccess = (input, context) => {
4152
4535
  return {
4153
4536
  ...(input.Type !== undefined && input.Type !== null && { type: input.Type }),
@@ -4172,6 +4555,27 @@ const serializeAws_restJson1Scram = (input, context) => {
4172
4555
  ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
4173
4556
  };
4174
4557
  };
4558
+ const serializeAws_restJson1ServerlessClientAuthentication = (input, context) => {
4559
+ return {
4560
+ ...(input.Sasl !== undefined &&
4561
+ input.Sasl !== null && { sasl: serializeAws_restJson1ServerlessSasl(input.Sasl, context) }),
4562
+ };
4563
+ };
4564
+ const serializeAws_restJson1ServerlessRequest = (input, context) => {
4565
+ return {
4566
+ ...(input.ClientAuthentication !== undefined &&
4567
+ input.ClientAuthentication !== null && {
4568
+ clientAuthentication: serializeAws_restJson1ServerlessClientAuthentication(input.ClientAuthentication, context),
4569
+ }),
4570
+ ...(input.VpcConfigs !== undefined &&
4571
+ input.VpcConfigs !== null && { vpcConfigs: serializeAws_restJson1__listOfVpcConfig(input.VpcConfigs, context) }),
4572
+ };
4573
+ };
4574
+ const serializeAws_restJson1ServerlessSasl = (input, context) => {
4575
+ return {
4576
+ ...(input.Iam !== undefined && input.Iam !== null && { iam: serializeAws_restJson1Iam(input.Iam, context) }),
4577
+ };
4578
+ };
4175
4579
  const serializeAws_restJson1StorageInfo = (input, context) => {
4176
4580
  return {
4177
4581
  ...(input.EbsStorageInfo !== undefined &&
@@ -4194,6 +4598,16 @@ const serializeAws_restJson1Unauthenticated = (input, context) => {
4194
4598
  ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
4195
4599
  };
4196
4600
  };
4601
+ const serializeAws_restJson1VpcConfig = (input, context) => {
4602
+ return {
4603
+ ...(input.SecurityGroupIds !== undefined &&
4604
+ input.SecurityGroupIds !== null && {
4605
+ securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
4606
+ }),
4607
+ ...(input.SubnetIds !== undefined &&
4608
+ input.SubnetIds !== null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }),
4609
+ };
4610
+ };
4197
4611
  const deserializeAws_restJson1__listOf__string = (output, context) => {
4198
4612
  return (output || [])
4199
4613
  .filter((e) => e != null)
@@ -4214,6 +4628,16 @@ const deserializeAws_restJson1__listOfBrokerEBSVolumeInfo = (output, context) =>
4214
4628
  return deserializeAws_restJson1BrokerEBSVolumeInfo(entry, context);
4215
4629
  });
4216
4630
  };
4631
+ const deserializeAws_restJson1__listOfCluster = (output, context) => {
4632
+ return (output || [])
4633
+ .filter((e) => e != null)
4634
+ .map((entry) => {
4635
+ if (entry === null) {
4636
+ return null;
4637
+ }
4638
+ return deserializeAws_restJson1Cluster(entry, context);
4639
+ });
4640
+ };
4217
4641
  const deserializeAws_restJson1__listOfClusterInfo = (output, context) => {
4218
4642
  return (output || [])
4219
4643
  .filter((e) => e != null)
@@ -4304,6 +4728,16 @@ const deserializeAws_restJson1__listOfUnprocessedScramSecret = (output, context)
4304
4728
  return deserializeAws_restJson1UnprocessedScramSecret(entry, context);
4305
4729
  });
4306
4730
  };
4731
+ const deserializeAws_restJson1__listOfVpcConfig = (output, context) => {
4732
+ return (output || [])
4733
+ .filter((e) => e != null)
4734
+ .map((entry) => {
4735
+ if (entry === null) {
4736
+ return null;
4737
+ }
4738
+ return deserializeAws_restJson1VpcConfig(entry, context);
4739
+ });
4740
+ };
4307
4741
  const deserializeAws_restJson1__mapOf__string = (output, context) => {
4308
4742
  return Object.entries(output).reduce((acc, [key, value]) => {
4309
4743
  if (value === null) {
@@ -4388,6 +4822,31 @@ const deserializeAws_restJson1CloudWatchLogs = (output, context) => {
4388
4822
  LogGroup: smithy_client_1.expectString(output.logGroup),
4389
4823
  };
4390
4824
  };
4825
+ const deserializeAws_restJson1Cluster = (output, context) => {
4826
+ return {
4827
+ ActiveOperationArn: smithy_client_1.expectString(output.activeOperationArn),
4828
+ ClusterArn: smithy_client_1.expectString(output.clusterArn),
4829
+ ClusterName: smithy_client_1.expectString(output.clusterName),
4830
+ ClusterType: smithy_client_1.expectString(output.clusterType),
4831
+ CreationTime: output.creationTime !== undefined && output.creationTime !== null
4832
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
4833
+ : undefined,
4834
+ CurrentVersion: smithy_client_1.expectString(output.currentVersion),
4835
+ Provisioned: output.provisioned !== undefined && output.provisioned !== null
4836
+ ? deserializeAws_restJson1Provisioned(output.provisioned, context)
4837
+ : undefined,
4838
+ Serverless: output.serverless !== undefined && output.serverless !== null
4839
+ ? deserializeAws_restJson1Serverless(output.serverless, context)
4840
+ : undefined,
4841
+ State: smithy_client_1.expectString(output.state),
4842
+ StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
4843
+ ? deserializeAws_restJson1StateInfo(output.stateInfo, context)
4844
+ : undefined,
4845
+ Tags: output.tags !== undefined && output.tags !== null
4846
+ ? deserializeAws_restJson1__mapOf__string(output.tags, context)
4847
+ : undefined,
4848
+ };
4849
+ };
4391
4850
  const deserializeAws_restJson1ClusterInfo = (output, context) => {
4392
4851
  return {
4393
4852
  ActiveOperationArn: smithy_client_1.expectString(output.activeOperationArn),
@@ -4563,6 +5022,11 @@ const deserializeAws_restJson1JmxExporter = (output, context) => {
4563
5022
  EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
4564
5023
  };
4565
5024
  };
5025
+ const deserializeAws_restJson1JmxExporterInfo = (output, context) => {
5026
+ return {
5027
+ EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
5028
+ };
5029
+ };
4566
5030
  const deserializeAws_restJson1KafkaVersion = (output, context) => {
4567
5031
  return {
4568
5032
  Status: smithy_client_1.expectString(output.status),
@@ -4610,6 +5074,11 @@ const deserializeAws_restJson1NodeExporter = (output, context) => {
4610
5074
  EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
4611
5075
  };
4612
5076
  };
5077
+ const deserializeAws_restJson1NodeExporterInfo = (output, context) => {
5078
+ return {
5079
+ EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
5080
+ };
5081
+ };
4613
5082
  const deserializeAws_restJson1NodeInfo = (output, context) => {
4614
5083
  return {
4615
5084
  AddedToClusterTime: smithy_client_1.expectString(output.addedToClusterTime),
@@ -4631,6 +5100,13 @@ const deserializeAws_restJson1OpenMonitoring = (output, context) => {
4631
5100
  : undefined,
4632
5101
  };
4633
5102
  };
5103
+ const deserializeAws_restJson1OpenMonitoringInfo = (output, context) => {
5104
+ return {
5105
+ Prometheus: output.prometheus !== undefined && output.prometheus !== null
5106
+ ? deserializeAws_restJson1PrometheusInfo(output.prometheus, context)
5107
+ : undefined,
5108
+ };
5109
+ };
4634
5110
  const deserializeAws_restJson1Prometheus = (output, context) => {
4635
5111
  return {
4636
5112
  JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
@@ -4641,6 +5117,42 @@ const deserializeAws_restJson1Prometheus = (output, context) => {
4641
5117
  : undefined,
4642
5118
  };
4643
5119
  };
5120
+ const deserializeAws_restJson1PrometheusInfo = (output, context) => {
5121
+ return {
5122
+ JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
5123
+ ? deserializeAws_restJson1JmxExporterInfo(output.jmxExporter, context)
5124
+ : undefined,
5125
+ NodeExporter: output.nodeExporter !== undefined && output.nodeExporter !== null
5126
+ ? deserializeAws_restJson1NodeExporterInfo(output.nodeExporter, context)
5127
+ : undefined,
5128
+ };
5129
+ };
5130
+ const deserializeAws_restJson1Provisioned = (output, context) => {
5131
+ return {
5132
+ BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
5133
+ ? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
5134
+ : undefined,
5135
+ ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
5136
+ ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
5137
+ : undefined,
5138
+ CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
5139
+ ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
5140
+ : undefined,
5141
+ EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
5142
+ ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
5143
+ : undefined,
5144
+ EnhancedMonitoring: smithy_client_1.expectString(output.enhancedMonitoring),
5145
+ LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
5146
+ ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
5147
+ : undefined,
5148
+ NumberOfBrokerNodes: smithy_client_1.expectInt32(output.numberOfBrokerNodes),
5149
+ OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
5150
+ ? deserializeAws_restJson1OpenMonitoringInfo(output.openMonitoring, context)
5151
+ : undefined,
5152
+ ZookeeperConnectString: smithy_client_1.expectString(output.zookeeperConnectString),
5153
+ ZookeeperConnectStringTls: smithy_client_1.expectString(output.zookeeperConnectStringTls),
5154
+ };
5155
+ };
4644
5156
  const deserializeAws_restJson1PublicAccess = (output, context) => {
4645
5157
  return {
4646
5158
  Type: smithy_client_1.expectString(output.type),
@@ -4666,6 +5178,28 @@ const deserializeAws_restJson1Scram = (output, context) => {
4666
5178
  Enabled: smithy_client_1.expectBoolean(output.enabled),
4667
5179
  };
4668
5180
  };
5181
+ const deserializeAws_restJson1Serverless = (output, context) => {
5182
+ return {
5183
+ ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
5184
+ ? deserializeAws_restJson1ServerlessClientAuthentication(output.clientAuthentication, context)
5185
+ : undefined,
5186
+ VpcConfigs: output.vpcConfigs !== undefined && output.vpcConfigs !== null
5187
+ ? deserializeAws_restJson1__listOfVpcConfig(output.vpcConfigs, context)
5188
+ : undefined,
5189
+ };
5190
+ };
5191
+ const deserializeAws_restJson1ServerlessClientAuthentication = (output, context) => {
5192
+ return {
5193
+ Sasl: output.sasl !== undefined && output.sasl !== null
5194
+ ? deserializeAws_restJson1ServerlessSasl(output.sasl, context)
5195
+ : undefined,
5196
+ };
5197
+ };
5198
+ const deserializeAws_restJson1ServerlessSasl = (output, context) => {
5199
+ return {
5200
+ Iam: output.iam !== undefined && output.iam !== null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
5201
+ };
5202
+ };
4669
5203
  const deserializeAws_restJson1StateInfo = (output, context) => {
4670
5204
  return {
4671
5205
  Code: smithy_client_1.expectString(output.code),
@@ -4699,6 +5233,16 @@ const deserializeAws_restJson1UnprocessedScramSecret = (output, context) => {
4699
5233
  SecretArn: smithy_client_1.expectString(output.secretArn),
4700
5234
  };
4701
5235
  };
5236
+ const deserializeAws_restJson1VpcConfig = (output, context) => {
5237
+ return {
5238
+ SecurityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
5239
+ ? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
5240
+ : undefined,
5241
+ SubnetIds: output.subnetIds !== undefined && output.subnetIds !== null
5242
+ ? deserializeAws_restJson1__listOf__string(output.subnetIds, context)
5243
+ : undefined,
5244
+ };
5245
+ };
4702
5246
  const deserializeAws_restJson1ZookeeperNodeInfo = (output, context) => {
4703
5247
  return {
4704
5248
  AttachedENIId: smithy_client_1.expectString(output.attachedENIId),