@aws-sdk/client-kafka 3.321.1 → 3.322.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 (75) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/Kafka.js +18 -0
  3. package/dist-cjs/commands/CreateVpcConnectionCommand.js +45 -0
  4. package/dist-cjs/commands/DeleteClusterPolicyCommand.js +45 -0
  5. package/dist-cjs/commands/DeleteVpcConnectionCommand.js +45 -0
  6. package/dist-cjs/commands/DescribeVpcConnectionCommand.js +45 -0
  7. package/dist-cjs/commands/GetClusterPolicyCommand.js +45 -0
  8. package/dist-cjs/commands/ListClientVpcConnectionsCommand.js +45 -0
  9. package/dist-cjs/commands/ListVpcConnectionsCommand.js +45 -0
  10. package/dist-cjs/commands/PutClusterPolicyCommand.js +45 -0
  11. package/dist-cjs/commands/RejectClientVpcConnectionCommand.js +45 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/endpoint/ruleset.js +3 -3
  14. package/dist-cjs/models/models_0.js +15 -1
  15. package/dist-cjs/pagination/ListClientVpcConnectionsPaginator.js +29 -0
  16. package/dist-cjs/pagination/ListVpcConnectionsPaginator.js +29 -0
  17. package/dist-cjs/pagination/index.js +2 -0
  18. package/dist-cjs/protocols/Aws_restJson1.js +769 -48
  19. package/dist-es/Kafka.js +18 -0
  20. package/dist-es/commands/CreateVpcConnectionCommand.js +41 -0
  21. package/dist-es/commands/DeleteClusterPolicyCommand.js +41 -0
  22. package/dist-es/commands/DeleteVpcConnectionCommand.js +41 -0
  23. package/dist-es/commands/DescribeVpcConnectionCommand.js +41 -0
  24. package/dist-es/commands/GetClusterPolicyCommand.js +41 -0
  25. package/dist-es/commands/ListClientVpcConnectionsCommand.js +41 -0
  26. package/dist-es/commands/ListVpcConnectionsCommand.js +41 -0
  27. package/dist-es/commands/PutClusterPolicyCommand.js +41 -0
  28. package/dist-es/commands/RejectClientVpcConnectionCommand.js +41 -0
  29. package/dist-es/commands/index.js +9 -0
  30. package/dist-es/endpoint/ruleset.js +3 -3
  31. package/dist-es/models/models_0.js +14 -0
  32. package/dist-es/pagination/ListClientVpcConnectionsPaginator.js +25 -0
  33. package/dist-es/pagination/ListVpcConnectionsPaginator.js +25 -0
  34. package/dist-es/pagination/index.js +2 -0
  35. package/dist-es/protocols/Aws_restJson1.js +747 -44
  36. package/dist-types/Kafka.d.ts +63 -0
  37. package/dist-types/KafkaClient.d.ts +11 -2
  38. package/dist-types/commands/CreateClusterCommand.d.ts +18 -0
  39. package/dist-types/commands/CreateClusterV2Command.d.ts +19 -3
  40. package/dist-types/commands/CreateVpcConnectionCommand.d.ts +92 -0
  41. package/dist-types/commands/DeleteClusterPolicyCommand.d.ts +75 -0
  42. package/dist-types/commands/DeleteVpcConnectionCommand.d.ts +75 -0
  43. package/dist-types/commands/DescribeVpcConnectionCommand.d.ts +81 -0
  44. package/dist-types/commands/GetClusterPolicyCommand.d.ts +75 -0
  45. package/dist-types/commands/ListClientVpcConnectionsCommand.d.ts +80 -0
  46. package/dist-types/commands/ListVpcConnectionsCommand.d.ts +79 -0
  47. package/dist-types/commands/PutClusterPolicyCommand.d.ts +74 -0
  48. package/dist-types/commands/RejectClientVpcConnectionCommand.d.ts +79 -0
  49. package/dist-types/commands/UpdateConnectivityCommand.d.ts +15 -0
  50. package/dist-types/commands/index.d.ts +9 -0
  51. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  52. package/dist-types/models/models_0.d.ts +492 -0
  53. package/dist-types/pagination/ListClientVpcConnectionsPaginator.d.ts +7 -0
  54. package/dist-types/pagination/ListVpcConnectionsPaginator.d.ts +7 -0
  55. package/dist-types/pagination/index.d.ts +2 -0
  56. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  57. package/dist-types/ts3.4/Kafka.d.ts +153 -0
  58. package/dist-types/ts3.4/KafkaClient.d.ts +54 -0
  59. package/dist-types/ts3.4/commands/CreateVpcConnectionCommand.d.ts +38 -0
  60. package/dist-types/ts3.4/commands/DeleteClusterPolicyCommand.d.ts +38 -0
  61. package/dist-types/ts3.4/commands/DeleteVpcConnectionCommand.d.ts +38 -0
  62. package/dist-types/ts3.4/commands/DescribeVpcConnectionCommand.d.ts +41 -0
  63. package/dist-types/ts3.4/commands/GetClusterPolicyCommand.d.ts +37 -0
  64. package/dist-types/ts3.4/commands/ListClientVpcConnectionsCommand.d.ts +41 -0
  65. package/dist-types/ts3.4/commands/ListVpcConnectionsCommand.d.ts +38 -0
  66. package/dist-types/ts3.4/commands/PutClusterPolicyCommand.d.ts +37 -0
  67. package/dist-types/ts3.4/commands/RejectClientVpcConnectionCommand.d.ts +41 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  69. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  70. package/dist-types/ts3.4/models/models_0.d.ts +149 -0
  71. package/dist-types/ts3.4/pagination/ListClientVpcConnectionsPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/ListVpcConnectionsPaginator.d.ts +11 -0
  73. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  74. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
  75. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetCompatibleKafkaVersionsCommand = exports.de_GetBootstrapBrokersCommand = exports.de_DescribeConfigurationRevisionCommand = exports.de_DescribeConfigurationCommand = exports.de_DescribeClusterV2Command = exports.de_DescribeClusterOperationCommand = exports.de_DescribeClusterCommand = exports.de_DeleteConfigurationCommand = exports.de_DeleteClusterCommand = exports.de_CreateConfigurationCommand = exports.de_CreateClusterV2Command = exports.de_CreateClusterCommand = exports.de_BatchDisassociateScramSecretCommand = exports.de_BatchAssociateScramSecretCommand = exports.se_UpdateStorageCommand = exports.se_UpdateSecurityCommand = exports.se_UpdateMonitoringCommand = exports.se_UpdateConnectivityCommand = exports.se_UpdateConfigurationCommand = exports.se_UpdateClusterKafkaVersionCommand = exports.se_UpdateClusterConfigurationCommand = exports.se_UpdateBrokerTypeCommand = exports.se_UpdateBrokerStorageCommand = exports.se_UpdateBrokerCountCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RebootBrokerCommand = exports.se_ListTagsForResourceCommand = exports.se_ListScramSecretsCommand = exports.se_ListNodesCommand = exports.se_ListKafkaVersionsCommand = exports.se_ListConfigurationsCommand = exports.se_ListConfigurationRevisionsCommand = exports.se_ListClustersV2Command = exports.se_ListClustersCommand = exports.se_ListClusterOperationsCommand = exports.se_GetCompatibleKafkaVersionsCommand = exports.se_GetBootstrapBrokersCommand = exports.se_DescribeConfigurationRevisionCommand = exports.se_DescribeConfigurationCommand = exports.se_DescribeClusterV2Command = exports.se_DescribeClusterOperationCommand = exports.se_DescribeClusterCommand = exports.se_DeleteConfigurationCommand = exports.se_DeleteClusterCommand = exports.se_CreateConfigurationCommand = exports.se_CreateClusterV2Command = exports.se_CreateClusterCommand = exports.se_BatchDisassociateScramSecretCommand = exports.se_BatchAssociateScramSecretCommand = void 0;
4
- exports.de_UpdateStorageCommand = exports.de_UpdateSecurityCommand = exports.de_UpdateMonitoringCommand = exports.de_UpdateConnectivityCommand = exports.de_UpdateConfigurationCommand = exports.de_UpdateClusterKafkaVersionCommand = exports.de_UpdateClusterConfigurationCommand = exports.de_UpdateBrokerTypeCommand = exports.de_UpdateBrokerStorageCommand = exports.de_UpdateBrokerCountCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RebootBrokerCommand = exports.de_ListTagsForResourceCommand = exports.de_ListScramSecretsCommand = exports.de_ListNodesCommand = exports.de_ListKafkaVersionsCommand = exports.de_ListConfigurationsCommand = exports.de_ListConfigurationRevisionsCommand = exports.de_ListClustersV2Command = exports.de_ListClustersCommand = exports.de_ListClusterOperationsCommand = void 0;
3
+ exports.de_CreateConfigurationCommand = exports.de_CreateClusterV2Command = exports.de_CreateClusterCommand = exports.de_BatchDisassociateScramSecretCommand = exports.de_BatchAssociateScramSecretCommand = exports.se_UpdateStorageCommand = exports.se_UpdateSecurityCommand = exports.se_UpdateMonitoringCommand = exports.se_UpdateConnectivityCommand = exports.se_UpdateConfigurationCommand = exports.se_UpdateClusterKafkaVersionCommand = exports.se_UpdateClusterConfigurationCommand = exports.se_UpdateBrokerTypeCommand = exports.se_UpdateBrokerStorageCommand = exports.se_UpdateBrokerCountCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RejectClientVpcConnectionCommand = exports.se_RebootBrokerCommand = exports.se_PutClusterPolicyCommand = exports.se_ListVpcConnectionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListScramSecretsCommand = exports.se_ListNodesCommand = exports.se_ListKafkaVersionsCommand = exports.se_ListConfigurationsCommand = exports.se_ListConfigurationRevisionsCommand = exports.se_ListClustersV2Command = exports.se_ListClustersCommand = exports.se_ListClusterOperationsCommand = exports.se_ListClientVpcConnectionsCommand = exports.se_GetCompatibleKafkaVersionsCommand = exports.se_GetClusterPolicyCommand = exports.se_GetBootstrapBrokersCommand = exports.se_DescribeVpcConnectionCommand = exports.se_DescribeConfigurationRevisionCommand = exports.se_DescribeConfigurationCommand = exports.se_DescribeClusterV2Command = exports.se_DescribeClusterOperationCommand = exports.se_DescribeClusterCommand = exports.se_DeleteVpcConnectionCommand = exports.se_DeleteConfigurationCommand = exports.se_DeleteClusterPolicyCommand = exports.se_DeleteClusterCommand = exports.se_CreateVpcConnectionCommand = exports.se_CreateConfigurationCommand = exports.se_CreateClusterV2Command = exports.se_CreateClusterCommand = exports.se_BatchDisassociateScramSecretCommand = exports.se_BatchAssociateScramSecretCommand = void 0;
4
+ exports.de_UpdateStorageCommand = exports.de_UpdateSecurityCommand = exports.de_UpdateMonitoringCommand = exports.de_UpdateConnectivityCommand = exports.de_UpdateConfigurationCommand = exports.de_UpdateClusterKafkaVersionCommand = exports.de_UpdateClusterConfigurationCommand = exports.de_UpdateBrokerTypeCommand = exports.de_UpdateBrokerStorageCommand = exports.de_UpdateBrokerCountCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RejectClientVpcConnectionCommand = exports.de_RebootBrokerCommand = exports.de_PutClusterPolicyCommand = exports.de_ListVpcConnectionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListScramSecretsCommand = exports.de_ListNodesCommand = exports.de_ListKafkaVersionsCommand = exports.de_ListConfigurationsCommand = exports.de_ListConfigurationRevisionsCommand = exports.de_ListClustersV2Command = exports.de_ListClustersCommand = exports.de_ListClusterOperationsCommand = exports.de_ListClientVpcConnectionsCommand = exports.de_GetCompatibleKafkaVersionsCommand = exports.de_GetClusterPolicyCommand = exports.de_GetBootstrapBrokersCommand = exports.de_DescribeVpcConnectionCommand = exports.de_DescribeConfigurationRevisionCommand = exports.de_DescribeConfigurationCommand = exports.de_DescribeClusterV2Command = exports.de_DescribeClusterOperationCommand = exports.de_DescribeClusterCommand = exports.de_DeleteVpcConnectionCommand = exports.de_DeleteConfigurationCommand = exports.de_DeleteClusterPolicyCommand = exports.de_DeleteClusterCommand = exports.de_CreateVpcConnectionCommand = 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 KafkaServiceException_1 = require("../models/KafkaServiceException");
@@ -130,6 +130,32 @@ const se_CreateConfigurationCommand = async (input, context) => {
130
130
  });
131
131
  };
132
132
  exports.se_CreateConfigurationCommand = se_CreateConfigurationCommand;
133
+ const se_CreateVpcConnectionCommand = async (input, context) => {
134
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
+ const headers = {
136
+ "content-type": "application/json",
137
+ };
138
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/vpc-connection";
139
+ let body;
140
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
141
+ authentication: [, , `Authentication`],
142
+ clientSubnets: [, (_) => (0, smithy_client_1._json)(_), `ClientSubnets`],
143
+ securityGroups: [, (_) => (0, smithy_client_1._json)(_), `SecurityGroups`],
144
+ tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
145
+ targetClusterArn: [, , `TargetClusterArn`],
146
+ vpcId: [, , `VpcId`],
147
+ }));
148
+ return new protocol_http_1.HttpRequest({
149
+ protocol,
150
+ hostname,
151
+ port,
152
+ method: "POST",
153
+ headers,
154
+ path: resolvedPath,
155
+ body,
156
+ });
157
+ };
158
+ exports.se_CreateVpcConnectionCommand = se_CreateVpcConnectionCommand;
133
159
  const se_DeleteClusterCommand = async (input, context) => {
134
160
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
135
161
  const headers = {};
@@ -151,6 +177,23 @@ const se_DeleteClusterCommand = async (input, context) => {
151
177
  });
152
178
  };
153
179
  exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
180
+ const se_DeleteClusterPolicyCommand = async (input, context) => {
181
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
182
+ const headers = {};
183
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/policy";
184
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
185
+ let body;
186
+ return new protocol_http_1.HttpRequest({
187
+ protocol,
188
+ hostname,
189
+ port,
190
+ method: "DELETE",
191
+ headers,
192
+ path: resolvedPath,
193
+ body,
194
+ });
195
+ };
196
+ exports.se_DeleteClusterPolicyCommand = se_DeleteClusterPolicyCommand;
154
197
  const se_DeleteConfigurationCommand = async (input, context) => {
155
198
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
199
  const headers = {};
@@ -168,6 +211,23 @@ const se_DeleteConfigurationCommand = async (input, context) => {
168
211
  });
169
212
  };
170
213
  exports.se_DeleteConfigurationCommand = se_DeleteConfigurationCommand;
214
+ const se_DeleteVpcConnectionCommand = async (input, context) => {
215
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
216
+ const headers = {};
217
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/vpc-connection/{Arn}";
218
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
219
+ let body;
220
+ return new protocol_http_1.HttpRequest({
221
+ protocol,
222
+ hostname,
223
+ port,
224
+ method: "DELETE",
225
+ headers,
226
+ path: resolvedPath,
227
+ body,
228
+ });
229
+ };
230
+ exports.se_DeleteVpcConnectionCommand = se_DeleteVpcConnectionCommand;
171
231
  const se_DescribeClusterCommand = async (input, context) => {
172
232
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
233
  const headers = {};
@@ -255,6 +315,23 @@ const se_DescribeConfigurationRevisionCommand = async (input, context) => {
255
315
  });
256
316
  };
257
317
  exports.se_DescribeConfigurationRevisionCommand = se_DescribeConfigurationRevisionCommand;
318
+ const se_DescribeVpcConnectionCommand = async (input, context) => {
319
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
320
+ const headers = {};
321
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/vpc-connection/{Arn}";
322
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Arn", () => input.Arn, "{Arn}", false);
323
+ let body;
324
+ return new protocol_http_1.HttpRequest({
325
+ protocol,
326
+ hostname,
327
+ port,
328
+ method: "GET",
329
+ headers,
330
+ path: resolvedPath,
331
+ body,
332
+ });
333
+ };
334
+ exports.se_DescribeVpcConnectionCommand = se_DescribeVpcConnectionCommand;
258
335
  const se_GetBootstrapBrokersCommand = async (input, context) => {
259
336
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
260
337
  const headers = {};
@@ -273,6 +350,23 @@ const se_GetBootstrapBrokersCommand = async (input, context) => {
273
350
  });
274
351
  };
275
352
  exports.se_GetBootstrapBrokersCommand = se_GetBootstrapBrokersCommand;
353
+ const se_GetClusterPolicyCommand = async (input, context) => {
354
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
355
+ const headers = {};
356
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/policy";
357
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
358
+ let body;
359
+ return new protocol_http_1.HttpRequest({
360
+ protocol,
361
+ hostname,
362
+ port,
363
+ method: "GET",
364
+ headers,
365
+ path: resolvedPath,
366
+ body,
367
+ });
368
+ };
369
+ exports.se_GetClusterPolicyCommand = se_GetClusterPolicyCommand;
276
370
  const se_GetCompatibleKafkaVersionsCommand = async (input, context) => {
277
371
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
278
372
  const headers = {};
@@ -293,6 +387,29 @@ const se_GetCompatibleKafkaVersionsCommand = async (input, context) => {
293
387
  });
294
388
  };
295
389
  exports.se_GetCompatibleKafkaVersionsCommand = se_GetCompatibleKafkaVersionsCommand;
390
+ const se_ListClientVpcConnectionsCommand = async (input, context) => {
391
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
392
+ const headers = {};
393
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
394
+ "/v1/clusters/{ClusterArn}/client-vpc-connections";
395
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
396
+ const query = (0, smithy_client_1.map)({
397
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
398
+ nextToken: [, input.NextToken],
399
+ });
400
+ let body;
401
+ return new protocol_http_1.HttpRequest({
402
+ protocol,
403
+ hostname,
404
+ port,
405
+ method: "GET",
406
+ headers,
407
+ path: resolvedPath,
408
+ query,
409
+ body,
410
+ });
411
+ };
412
+ exports.se_ListClientVpcConnectionsCommand = se_ListClientVpcConnectionsCommand;
296
413
  const se_ListClusterOperationsCommand = async (input, context) => {
297
414
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
298
415
  const headers = {};
@@ -485,6 +602,50 @@ const se_ListTagsForResourceCommand = async (input, context) => {
485
602
  });
486
603
  };
487
604
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
605
+ const se_ListVpcConnectionsCommand = async (input, context) => {
606
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
607
+ const headers = {};
608
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/vpc-connections";
609
+ const query = (0, smithy_client_1.map)({
610
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
611
+ nextToken: [, input.NextToken],
612
+ });
613
+ let body;
614
+ return new protocol_http_1.HttpRequest({
615
+ protocol,
616
+ hostname,
617
+ port,
618
+ method: "GET",
619
+ headers,
620
+ path: resolvedPath,
621
+ query,
622
+ body,
623
+ });
624
+ };
625
+ exports.se_ListVpcConnectionsCommand = se_ListVpcConnectionsCommand;
626
+ const se_PutClusterPolicyCommand = async (input, context) => {
627
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
628
+ const headers = {
629
+ "content-type": "application/json",
630
+ };
631
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/policy";
632
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
633
+ let body;
634
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
635
+ currentVersion: [, , `CurrentVersion`],
636
+ policy: [, , `Policy`],
637
+ }));
638
+ return new protocol_http_1.HttpRequest({
639
+ protocol,
640
+ hostname,
641
+ port,
642
+ method: "PUT",
643
+ headers,
644
+ path: resolvedPath,
645
+ body,
646
+ });
647
+ };
648
+ exports.se_PutClusterPolicyCommand = se_PutClusterPolicyCommand;
488
649
  const se_RebootBrokerCommand = async (input, context) => {
489
650
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
490
651
  const headers = {
@@ -507,6 +668,29 @@ const se_RebootBrokerCommand = async (input, context) => {
507
668
  });
508
669
  };
509
670
  exports.se_RebootBrokerCommand = se_RebootBrokerCommand;
671
+ const se_RejectClientVpcConnectionCommand = async (input, context) => {
672
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
673
+ const headers = {
674
+ "content-type": "application/json",
675
+ };
676
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
677
+ "/v1/clusters/{ClusterArn}/client-vpc-connection";
678
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
679
+ let body;
680
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
681
+ vpcConnectionArn: [, , `VpcConnectionArn`],
682
+ }));
683
+ return new protocol_http_1.HttpRequest({
684
+ protocol,
685
+ hostname,
686
+ port,
687
+ method: "PUT",
688
+ headers,
689
+ path: resolvedPath,
690
+ body,
691
+ });
692
+ };
693
+ exports.se_RejectClientVpcConnectionCommand = se_RejectClientVpcConnectionCommand;
510
694
  const se_TagResourceCommand = async (input, context) => {
511
695
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
512
696
  const headers = {
@@ -1060,6 +1244,62 @@ const de_CreateConfigurationCommandError = async (output, context) => {
1060
1244
  });
1061
1245
  }
1062
1246
  };
1247
+ const de_CreateVpcConnectionCommand = async (output, context) => {
1248
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1249
+ return de_CreateVpcConnectionCommandError(output, context);
1250
+ }
1251
+ const contents = (0, smithy_client_1.map)({
1252
+ $metadata: deserializeMetadata(output),
1253
+ });
1254
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1255
+ const doc = (0, smithy_client_1.take)(data, {
1256
+ Authentication: [, smithy_client_1.expectString, `authentication`],
1257
+ ClientSubnets: [, smithy_client_1._json, `clientSubnets`],
1258
+ CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
1259
+ SecurityGroups: [, smithy_client_1._json, `securityGroups`],
1260
+ State: [, smithy_client_1.expectString, `state`],
1261
+ Tags: [, smithy_client_1._json, `tags`],
1262
+ VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
1263
+ VpcId: [, smithy_client_1.expectString, `vpcId`],
1264
+ });
1265
+ Object.assign(contents, doc);
1266
+ return contents;
1267
+ };
1268
+ exports.de_CreateVpcConnectionCommand = de_CreateVpcConnectionCommand;
1269
+ const de_CreateVpcConnectionCommandError = async (output, context) => {
1270
+ const parsedOutput = {
1271
+ ...output,
1272
+ body: await parseErrorBody(output.body, context),
1273
+ };
1274
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1275
+ switch (errorCode) {
1276
+ case "BadRequestException":
1277
+ case "com.amazonaws.kafka#BadRequestException":
1278
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1279
+ case "ForbiddenException":
1280
+ case "com.amazonaws.kafka#ForbiddenException":
1281
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1282
+ case "InternalServerErrorException":
1283
+ case "com.amazonaws.kafka#InternalServerErrorException":
1284
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1285
+ case "ServiceUnavailableException":
1286
+ case "com.amazonaws.kafka#ServiceUnavailableException":
1287
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1288
+ case "TooManyRequestsException":
1289
+ case "com.amazonaws.kafka#TooManyRequestsException":
1290
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1291
+ case "UnauthorizedException":
1292
+ case "com.amazonaws.kafka#UnauthorizedException":
1293
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1294
+ default:
1295
+ const parsedBody = parsedOutput.body;
1296
+ return throwDefaultError({
1297
+ output,
1298
+ parsedBody,
1299
+ errorCode,
1300
+ });
1301
+ }
1302
+ };
1063
1303
  const de_DeleteClusterCommand = async (output, context) => {
1064
1304
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1065
1305
  return de_DeleteClusterCommandError(output, context);
@@ -1104,6 +1344,45 @@ const de_DeleteClusterCommandError = async (output, context) => {
1104
1344
  });
1105
1345
  }
1106
1346
  };
1347
+ const de_DeleteClusterPolicyCommand = async (output, context) => {
1348
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1349
+ return de_DeleteClusterPolicyCommandError(output, context);
1350
+ }
1351
+ const contents = (0, smithy_client_1.map)({
1352
+ $metadata: deserializeMetadata(output),
1353
+ });
1354
+ await collectBody(output.body, context);
1355
+ return contents;
1356
+ };
1357
+ exports.de_DeleteClusterPolicyCommand = de_DeleteClusterPolicyCommand;
1358
+ const de_DeleteClusterPolicyCommandError = async (output, context) => {
1359
+ const parsedOutput = {
1360
+ ...output,
1361
+ body: await parseErrorBody(output.body, context),
1362
+ };
1363
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1364
+ switch (errorCode) {
1365
+ case "BadRequestException":
1366
+ case "com.amazonaws.kafka#BadRequestException":
1367
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1368
+ case "ForbiddenException":
1369
+ case "com.amazonaws.kafka#ForbiddenException":
1370
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1371
+ case "InternalServerErrorException":
1372
+ case "com.amazonaws.kafka#InternalServerErrorException":
1373
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1374
+ case "NotFoundException":
1375
+ case "com.amazonaws.kafka#NotFoundException":
1376
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1377
+ default:
1378
+ const parsedBody = parsedOutput.body;
1379
+ return throwDefaultError({
1380
+ output,
1381
+ parsedBody,
1382
+ errorCode,
1383
+ });
1384
+ }
1385
+ };
1107
1386
  const de_DeleteConfigurationCommand = async (output, context) => {
1108
1387
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1109
1388
  return de_DeleteConfigurationCommandError(output, context);
@@ -1148,6 +1427,50 @@ const de_DeleteConfigurationCommandError = async (output, context) => {
1148
1427
  });
1149
1428
  }
1150
1429
  };
1430
+ const de_DeleteVpcConnectionCommand = async (output, context) => {
1431
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1432
+ return de_DeleteVpcConnectionCommandError(output, context);
1433
+ }
1434
+ const contents = (0, smithy_client_1.map)({
1435
+ $metadata: deserializeMetadata(output),
1436
+ });
1437
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1438
+ const doc = (0, smithy_client_1.take)(data, {
1439
+ State: [, smithy_client_1.expectString, `state`],
1440
+ VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
1441
+ });
1442
+ Object.assign(contents, doc);
1443
+ return contents;
1444
+ };
1445
+ exports.de_DeleteVpcConnectionCommand = de_DeleteVpcConnectionCommand;
1446
+ const de_DeleteVpcConnectionCommandError = async (output, context) => {
1447
+ const parsedOutput = {
1448
+ ...output,
1449
+ body: await parseErrorBody(output.body, context),
1450
+ };
1451
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1452
+ switch (errorCode) {
1453
+ case "BadRequestException":
1454
+ case "com.amazonaws.kafka#BadRequestException":
1455
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1456
+ case "ForbiddenException":
1457
+ case "com.amazonaws.kafka#ForbiddenException":
1458
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1459
+ case "InternalServerErrorException":
1460
+ case "com.amazonaws.kafka#InternalServerErrorException":
1461
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1462
+ case "NotFoundException":
1463
+ case "com.amazonaws.kafka#NotFoundException":
1464
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1465
+ default:
1466
+ const parsedBody = parsedOutput.body;
1467
+ return throwDefaultError({
1468
+ output,
1469
+ parsedBody,
1470
+ errorCode,
1471
+ });
1472
+ }
1473
+ };
1151
1474
  const de_DescribeClusterCommand = async (output, context) => {
1152
1475
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1153
1476
  return de_DescribeClusterCommandError(output, context);
@@ -1323,12 +1646,177 @@ const de_DescribeConfigurationCommandError = async (output, context) => {
1323
1646
  case "InternalServerErrorException":
1324
1647
  case "com.amazonaws.kafka#InternalServerErrorException":
1325
1648
  throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1326
- case "NotFoundException":
1327
- case "com.amazonaws.kafka#NotFoundException":
1328
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1329
- case "ServiceUnavailableException":
1330
- case "com.amazonaws.kafka#ServiceUnavailableException":
1331
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1649
+ case "NotFoundException":
1650
+ case "com.amazonaws.kafka#NotFoundException":
1651
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1652
+ case "ServiceUnavailableException":
1653
+ case "com.amazonaws.kafka#ServiceUnavailableException":
1654
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1655
+ case "UnauthorizedException":
1656
+ case "com.amazonaws.kafka#UnauthorizedException":
1657
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1658
+ default:
1659
+ const parsedBody = parsedOutput.body;
1660
+ return throwDefaultError({
1661
+ output,
1662
+ parsedBody,
1663
+ errorCode,
1664
+ });
1665
+ }
1666
+ };
1667
+ const de_DescribeConfigurationRevisionCommand = async (output, context) => {
1668
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1669
+ return de_DescribeConfigurationRevisionCommandError(output, context);
1670
+ }
1671
+ const contents = (0, smithy_client_1.map)({
1672
+ $metadata: deserializeMetadata(output),
1673
+ });
1674
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1675
+ const doc = (0, smithy_client_1.take)(data, {
1676
+ Arn: [, smithy_client_1.expectString, `arn`],
1677
+ CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
1678
+ Description: [, smithy_client_1.expectString, `description`],
1679
+ Revision: [, smithy_client_1.expectLong, `revision`],
1680
+ ServerProperties: [, context.base64Decoder, `serverProperties`],
1681
+ });
1682
+ Object.assign(contents, doc);
1683
+ return contents;
1684
+ };
1685
+ exports.de_DescribeConfigurationRevisionCommand = de_DescribeConfigurationRevisionCommand;
1686
+ const de_DescribeConfigurationRevisionCommandError = async (output, context) => {
1687
+ const parsedOutput = {
1688
+ ...output,
1689
+ body: await parseErrorBody(output.body, context),
1690
+ };
1691
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1692
+ switch (errorCode) {
1693
+ case "BadRequestException":
1694
+ case "com.amazonaws.kafka#BadRequestException":
1695
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1696
+ case "ForbiddenException":
1697
+ case "com.amazonaws.kafka#ForbiddenException":
1698
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1699
+ case "InternalServerErrorException":
1700
+ case "com.amazonaws.kafka#InternalServerErrorException":
1701
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1702
+ case "NotFoundException":
1703
+ case "com.amazonaws.kafka#NotFoundException":
1704
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1705
+ case "ServiceUnavailableException":
1706
+ case "com.amazonaws.kafka#ServiceUnavailableException":
1707
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1708
+ case "UnauthorizedException":
1709
+ case "com.amazonaws.kafka#UnauthorizedException":
1710
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1711
+ default:
1712
+ const parsedBody = parsedOutput.body;
1713
+ return throwDefaultError({
1714
+ output,
1715
+ parsedBody,
1716
+ errorCode,
1717
+ });
1718
+ }
1719
+ };
1720
+ const de_DescribeVpcConnectionCommand = async (output, context) => {
1721
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1722
+ return de_DescribeVpcConnectionCommandError(output, context);
1723
+ }
1724
+ const contents = (0, smithy_client_1.map)({
1725
+ $metadata: deserializeMetadata(output),
1726
+ });
1727
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1728
+ const doc = (0, smithy_client_1.take)(data, {
1729
+ Authentication: [, smithy_client_1.expectString, `authentication`],
1730
+ CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
1731
+ SecurityGroups: [, smithy_client_1._json, `securityGroups`],
1732
+ State: [, smithy_client_1.expectString, `state`],
1733
+ Subnets: [, smithy_client_1._json, `subnets`],
1734
+ Tags: [, smithy_client_1._json, `tags`],
1735
+ TargetClusterArn: [, smithy_client_1.expectString, `targetClusterArn`],
1736
+ VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
1737
+ VpcId: [, smithy_client_1.expectString, `vpcId`],
1738
+ });
1739
+ Object.assign(contents, doc);
1740
+ return contents;
1741
+ };
1742
+ exports.de_DescribeVpcConnectionCommand = de_DescribeVpcConnectionCommand;
1743
+ const de_DescribeVpcConnectionCommandError = async (output, context) => {
1744
+ const parsedOutput = {
1745
+ ...output,
1746
+ body: await parseErrorBody(output.body, context),
1747
+ };
1748
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1749
+ switch (errorCode) {
1750
+ case "BadRequestException":
1751
+ case "com.amazonaws.kafka#BadRequestException":
1752
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1753
+ case "ForbiddenException":
1754
+ case "com.amazonaws.kafka#ForbiddenException":
1755
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1756
+ case "InternalServerErrorException":
1757
+ case "com.amazonaws.kafka#InternalServerErrorException":
1758
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1759
+ case "NotFoundException":
1760
+ case "com.amazonaws.kafka#NotFoundException":
1761
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1762
+ case "ServiceUnavailableException":
1763
+ case "com.amazonaws.kafka#ServiceUnavailableException":
1764
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1765
+ case "UnauthorizedException":
1766
+ case "com.amazonaws.kafka#UnauthorizedException":
1767
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1768
+ default:
1769
+ const parsedBody = parsedOutput.body;
1770
+ return throwDefaultError({
1771
+ output,
1772
+ parsedBody,
1773
+ errorCode,
1774
+ });
1775
+ }
1776
+ };
1777
+ const de_GetBootstrapBrokersCommand = async (output, context) => {
1778
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1779
+ return de_GetBootstrapBrokersCommandError(output, context);
1780
+ }
1781
+ const contents = (0, smithy_client_1.map)({
1782
+ $metadata: deserializeMetadata(output),
1783
+ });
1784
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1785
+ const doc = (0, smithy_client_1.take)(data, {
1786
+ BootstrapBrokerString: [, smithy_client_1.expectString, `bootstrapBrokerString`],
1787
+ BootstrapBrokerStringPublicSaslIam: [, smithy_client_1.expectString, `bootstrapBrokerStringPublicSaslIam`],
1788
+ BootstrapBrokerStringPublicSaslScram: [, smithy_client_1.expectString, `bootstrapBrokerStringPublicSaslScram`],
1789
+ BootstrapBrokerStringPublicTls: [, smithy_client_1.expectString, `bootstrapBrokerStringPublicTls`],
1790
+ BootstrapBrokerStringSaslIam: [, smithy_client_1.expectString, `bootstrapBrokerStringSaslIam`],
1791
+ BootstrapBrokerStringSaslScram: [, smithy_client_1.expectString, `bootstrapBrokerStringSaslScram`],
1792
+ BootstrapBrokerStringTls: [, smithy_client_1.expectString, `bootstrapBrokerStringTls`],
1793
+ BootstrapBrokerStringVpcConnectivitySaslIam: [, smithy_client_1.expectString, `bootstrapBrokerStringVpcConnectivitySaslIam`],
1794
+ BootstrapBrokerStringVpcConnectivitySaslScram: [, smithy_client_1.expectString, `bootstrapBrokerStringVpcConnectivitySaslScram`],
1795
+ BootstrapBrokerStringVpcConnectivityTls: [, smithy_client_1.expectString, `bootstrapBrokerStringVpcConnectivityTls`],
1796
+ });
1797
+ Object.assign(contents, doc);
1798
+ return contents;
1799
+ };
1800
+ exports.de_GetBootstrapBrokersCommand = de_GetBootstrapBrokersCommand;
1801
+ const de_GetBootstrapBrokersCommandError = async (output, context) => {
1802
+ const parsedOutput = {
1803
+ ...output,
1804
+ body: await parseErrorBody(output.body, context),
1805
+ };
1806
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1807
+ switch (errorCode) {
1808
+ case "BadRequestException":
1809
+ case "com.amazonaws.kafka#BadRequestException":
1810
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1811
+ case "ConflictException":
1812
+ case "com.amazonaws.kafka#ConflictException":
1813
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1814
+ case "ForbiddenException":
1815
+ case "com.amazonaws.kafka#ForbiddenException":
1816
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1817
+ case "InternalServerErrorException":
1818
+ case "com.amazonaws.kafka#InternalServerErrorException":
1819
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1332
1820
  case "UnauthorizedException":
1333
1821
  case "com.amazonaws.kafka#UnauthorizedException":
1334
1822
  throw await de_UnauthorizedExceptionRes(parsedOutput, context);
@@ -1341,26 +1829,23 @@ const de_DescribeConfigurationCommandError = async (output, context) => {
1341
1829
  });
1342
1830
  }
1343
1831
  };
1344
- const de_DescribeConfigurationRevisionCommand = async (output, context) => {
1832
+ const de_GetClusterPolicyCommand = async (output, context) => {
1345
1833
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1346
- return de_DescribeConfigurationRevisionCommandError(output, context);
1834
+ return de_GetClusterPolicyCommandError(output, context);
1347
1835
  }
1348
1836
  const contents = (0, smithy_client_1.map)({
1349
1837
  $metadata: deserializeMetadata(output),
1350
1838
  });
1351
1839
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1352
1840
  const doc = (0, smithy_client_1.take)(data, {
1353
- Arn: [, smithy_client_1.expectString, `arn`],
1354
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
1355
- Description: [, smithy_client_1.expectString, `description`],
1356
- Revision: [, smithy_client_1.expectLong, `revision`],
1357
- ServerProperties: [, context.base64Decoder, `serverProperties`],
1841
+ CurrentVersion: [, smithy_client_1.expectString, `currentVersion`],
1842
+ Policy: [, smithy_client_1.expectString, `policy`],
1358
1843
  });
1359
1844
  Object.assign(contents, doc);
1360
1845
  return contents;
1361
1846
  };
1362
- exports.de_DescribeConfigurationRevisionCommand = de_DescribeConfigurationRevisionCommand;
1363
- const de_DescribeConfigurationRevisionCommandError = async (output, context) => {
1847
+ exports.de_GetClusterPolicyCommand = de_GetClusterPolicyCommand;
1848
+ const de_GetClusterPolicyCommandError = async (output, context) => {
1364
1849
  const parsedOutput = {
1365
1850
  ...output,
1366
1851
  body: await parseErrorBody(output.body, context),
@@ -1379,12 +1864,6 @@ const de_DescribeConfigurationRevisionCommandError = async (output, context) =>
1379
1864
  case "NotFoundException":
1380
1865
  case "com.amazonaws.kafka#NotFoundException":
1381
1866
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1382
- case "ServiceUnavailableException":
1383
- case "com.amazonaws.kafka#ServiceUnavailableException":
1384
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1385
- case "UnauthorizedException":
1386
- case "com.amazonaws.kafka#UnauthorizedException":
1387
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1388
1867
  default:
1389
1868
  const parsedBody = parsedOutput.body;
1390
1869
  return throwDefaultError({
@@ -1394,28 +1873,22 @@ const de_DescribeConfigurationRevisionCommandError = async (output, context) =>
1394
1873
  });
1395
1874
  }
1396
1875
  };
1397
- const de_GetBootstrapBrokersCommand = async (output, context) => {
1876
+ const de_GetCompatibleKafkaVersionsCommand = async (output, context) => {
1398
1877
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1399
- return de_GetBootstrapBrokersCommandError(output, context);
1878
+ return de_GetCompatibleKafkaVersionsCommandError(output, context);
1400
1879
  }
1401
1880
  const contents = (0, smithy_client_1.map)({
1402
1881
  $metadata: deserializeMetadata(output),
1403
1882
  });
1404
1883
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1405
1884
  const doc = (0, smithy_client_1.take)(data, {
1406
- BootstrapBrokerString: [, smithy_client_1.expectString, `bootstrapBrokerString`],
1407
- BootstrapBrokerStringPublicSaslIam: [, smithy_client_1.expectString, `bootstrapBrokerStringPublicSaslIam`],
1408
- BootstrapBrokerStringPublicSaslScram: [, smithy_client_1.expectString, `bootstrapBrokerStringPublicSaslScram`],
1409
- BootstrapBrokerStringPublicTls: [, smithy_client_1.expectString, `bootstrapBrokerStringPublicTls`],
1410
- BootstrapBrokerStringSaslIam: [, smithy_client_1.expectString, `bootstrapBrokerStringSaslIam`],
1411
- BootstrapBrokerStringSaslScram: [, smithy_client_1.expectString, `bootstrapBrokerStringSaslScram`],
1412
- BootstrapBrokerStringTls: [, smithy_client_1.expectString, `bootstrapBrokerStringTls`],
1885
+ CompatibleKafkaVersions: [, (_) => de___listOfCompatibleKafkaVersion(_, context), `compatibleKafkaVersions`],
1413
1886
  });
1414
1887
  Object.assign(contents, doc);
1415
1888
  return contents;
1416
1889
  };
1417
- exports.de_GetBootstrapBrokersCommand = de_GetBootstrapBrokersCommand;
1418
- const de_GetBootstrapBrokersCommandError = async (output, context) => {
1890
+ exports.de_GetCompatibleKafkaVersionsCommand = de_GetCompatibleKafkaVersionsCommand;
1891
+ const de_GetCompatibleKafkaVersionsCommandError = async (output, context) => {
1419
1892
  const parsedOutput = {
1420
1893
  ...output,
1421
1894
  body: await parseErrorBody(output.body, context),
@@ -1425,15 +1898,21 @@ const de_GetBootstrapBrokersCommandError = async (output, context) => {
1425
1898
  case "BadRequestException":
1426
1899
  case "com.amazonaws.kafka#BadRequestException":
1427
1900
  throw await de_BadRequestExceptionRes(parsedOutput, context);
1428
- case "ConflictException":
1429
- case "com.amazonaws.kafka#ConflictException":
1430
- throw await de_ConflictExceptionRes(parsedOutput, context);
1431
1901
  case "ForbiddenException":
1432
1902
  case "com.amazonaws.kafka#ForbiddenException":
1433
1903
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
1434
1904
  case "InternalServerErrorException":
1435
1905
  case "com.amazonaws.kafka#InternalServerErrorException":
1436
1906
  throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1907
+ case "NotFoundException":
1908
+ case "com.amazonaws.kafka#NotFoundException":
1909
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1910
+ case "ServiceUnavailableException":
1911
+ case "com.amazonaws.kafka#ServiceUnavailableException":
1912
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1913
+ case "TooManyRequestsException":
1914
+ case "com.amazonaws.kafka#TooManyRequestsException":
1915
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1437
1916
  case "UnauthorizedException":
1438
1917
  case "com.amazonaws.kafka#UnauthorizedException":
1439
1918
  throw await de_UnauthorizedExceptionRes(parsedOutput, context);
@@ -1446,22 +1925,23 @@ const de_GetBootstrapBrokersCommandError = async (output, context) => {
1446
1925
  });
1447
1926
  }
1448
1927
  };
1449
- const de_GetCompatibleKafkaVersionsCommand = async (output, context) => {
1928
+ const de_ListClientVpcConnectionsCommand = async (output, context) => {
1450
1929
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1451
- return de_GetCompatibleKafkaVersionsCommandError(output, context);
1930
+ return de_ListClientVpcConnectionsCommandError(output, context);
1452
1931
  }
1453
1932
  const contents = (0, smithy_client_1.map)({
1454
1933
  $metadata: deserializeMetadata(output),
1455
1934
  });
1456
1935
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1457
1936
  const doc = (0, smithy_client_1.take)(data, {
1458
- CompatibleKafkaVersions: [, (_) => de___listOfCompatibleKafkaVersion(_, context), `compatibleKafkaVersions`],
1937
+ ClientVpcConnections: [, (_) => de___listOfClientVpcConnection(_, context), `clientVpcConnections`],
1938
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
1459
1939
  });
1460
1940
  Object.assign(contents, doc);
1461
1941
  return contents;
1462
1942
  };
1463
- exports.de_GetCompatibleKafkaVersionsCommand = de_GetCompatibleKafkaVersionsCommand;
1464
- const de_GetCompatibleKafkaVersionsCommandError = async (output, context) => {
1943
+ exports.de_ListClientVpcConnectionsCommand = de_ListClientVpcConnectionsCommand;
1944
+ const de_ListClientVpcConnectionsCommandError = async (output, context) => {
1465
1945
  const parsedOutput = {
1466
1946
  ...output,
1467
1947
  body: await parseErrorBody(output.body, context),
@@ -1477,15 +1957,9 @@ const de_GetCompatibleKafkaVersionsCommandError = async (output, context) => {
1477
1957
  case "InternalServerErrorException":
1478
1958
  case "com.amazonaws.kafka#InternalServerErrorException":
1479
1959
  throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1480
- case "NotFoundException":
1481
- case "com.amazonaws.kafka#NotFoundException":
1482
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1483
1960
  case "ServiceUnavailableException":
1484
1961
  case "com.amazonaws.kafka#ServiceUnavailableException":
1485
1962
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1486
- case "TooManyRequestsException":
1487
- case "com.amazonaws.kafka#TooManyRequestsException":
1488
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1489
1963
  case "UnauthorizedException":
1490
1964
  case "com.amazonaws.kafka#UnauthorizedException":
1491
1965
  throw await de_UnauthorizedExceptionRes(parsedOutput, context);
@@ -1908,6 +2382,93 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1908
2382
  });
1909
2383
  }
1910
2384
  };
2385
+ const de_ListVpcConnectionsCommand = async (output, context) => {
2386
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2387
+ return de_ListVpcConnectionsCommandError(output, context);
2388
+ }
2389
+ const contents = (0, smithy_client_1.map)({
2390
+ $metadata: deserializeMetadata(output),
2391
+ });
2392
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2393
+ const doc = (0, smithy_client_1.take)(data, {
2394
+ NextToken: [, smithy_client_1.expectString, `nextToken`],
2395
+ VpcConnections: [, (_) => de___listOfVpcConnection(_, context), `vpcConnections`],
2396
+ });
2397
+ Object.assign(contents, doc);
2398
+ return contents;
2399
+ };
2400
+ exports.de_ListVpcConnectionsCommand = de_ListVpcConnectionsCommand;
2401
+ const de_ListVpcConnectionsCommandError = async (output, context) => {
2402
+ const parsedOutput = {
2403
+ ...output,
2404
+ body: await parseErrorBody(output.body, context),
2405
+ };
2406
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2407
+ switch (errorCode) {
2408
+ case "BadRequestException":
2409
+ case "com.amazonaws.kafka#BadRequestException":
2410
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2411
+ case "ForbiddenException":
2412
+ case "com.amazonaws.kafka#ForbiddenException":
2413
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2414
+ case "InternalServerErrorException":
2415
+ case "com.amazonaws.kafka#InternalServerErrorException":
2416
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2417
+ case "ServiceUnavailableException":
2418
+ case "com.amazonaws.kafka#ServiceUnavailableException":
2419
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2420
+ case "UnauthorizedException":
2421
+ case "com.amazonaws.kafka#UnauthorizedException":
2422
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2423
+ default:
2424
+ const parsedBody = parsedOutput.body;
2425
+ return throwDefaultError({
2426
+ output,
2427
+ parsedBody,
2428
+ errorCode,
2429
+ });
2430
+ }
2431
+ };
2432
+ const de_PutClusterPolicyCommand = async (output, context) => {
2433
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2434
+ return de_PutClusterPolicyCommandError(output, context);
2435
+ }
2436
+ const contents = (0, smithy_client_1.map)({
2437
+ $metadata: deserializeMetadata(output),
2438
+ });
2439
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2440
+ const doc = (0, smithy_client_1.take)(data, {
2441
+ CurrentVersion: [, smithy_client_1.expectString, `currentVersion`],
2442
+ });
2443
+ Object.assign(contents, doc);
2444
+ return contents;
2445
+ };
2446
+ exports.de_PutClusterPolicyCommand = de_PutClusterPolicyCommand;
2447
+ const de_PutClusterPolicyCommandError = async (output, context) => {
2448
+ const parsedOutput = {
2449
+ ...output,
2450
+ body: await parseErrorBody(output.body, context),
2451
+ };
2452
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2453
+ switch (errorCode) {
2454
+ case "BadRequestException":
2455
+ case "com.amazonaws.kafka#BadRequestException":
2456
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2457
+ case "ForbiddenException":
2458
+ case "com.amazonaws.kafka#ForbiddenException":
2459
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2460
+ case "InternalServerErrorException":
2461
+ case "com.amazonaws.kafka#InternalServerErrorException":
2462
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2463
+ default:
2464
+ const parsedBody = parsedOutput.body;
2465
+ return throwDefaultError({
2466
+ output,
2467
+ parsedBody,
2468
+ errorCode,
2469
+ });
2470
+ }
2471
+ };
1911
2472
  const de_RebootBrokerCommand = async (output, context) => {
1912
2473
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1913
2474
  return de_RebootBrokerCommandError(output, context);
@@ -1961,6 +2522,48 @@ const de_RebootBrokerCommandError = async (output, context) => {
1961
2522
  });
1962
2523
  }
1963
2524
  };
2525
+ const de_RejectClientVpcConnectionCommand = async (output, context) => {
2526
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2527
+ return de_RejectClientVpcConnectionCommandError(output, context);
2528
+ }
2529
+ const contents = (0, smithy_client_1.map)({
2530
+ $metadata: deserializeMetadata(output),
2531
+ });
2532
+ await collectBody(output.body, context);
2533
+ return contents;
2534
+ };
2535
+ exports.de_RejectClientVpcConnectionCommand = de_RejectClientVpcConnectionCommand;
2536
+ const de_RejectClientVpcConnectionCommandError = async (output, context) => {
2537
+ const parsedOutput = {
2538
+ ...output,
2539
+ body: await parseErrorBody(output.body, context),
2540
+ };
2541
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2542
+ switch (errorCode) {
2543
+ case "BadRequestException":
2544
+ case "com.amazonaws.kafka#BadRequestException":
2545
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2546
+ case "ForbiddenException":
2547
+ case "com.amazonaws.kafka#ForbiddenException":
2548
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
2549
+ case "InternalServerErrorException":
2550
+ case "com.amazonaws.kafka#InternalServerErrorException":
2551
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2552
+ case "ServiceUnavailableException":
2553
+ case "com.amazonaws.kafka#ServiceUnavailableException":
2554
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2555
+ case "UnauthorizedException":
2556
+ case "com.amazonaws.kafka#UnauthorizedException":
2557
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2558
+ default:
2559
+ const parsedBody = parsedOutput.body;
2560
+ return throwDefaultError({
2561
+ output,
2562
+ parsedBody,
2563
+ errorCode,
2564
+ });
2565
+ }
2566
+ };
1964
2567
  const de_TagResourceCommand = async (output, context) => {
1965
2568
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1966
2569
  return de_TagResourceCommandError(output, context);
@@ -2685,6 +3288,7 @@ const se_BrokerNodeGroupInfo = (input, context) => {
2685
3288
  instanceType: [, , `InstanceType`],
2686
3289
  securityGroups: [, smithy_client_1._json, `SecurityGroups`],
2687
3290
  storageInfo: [, (_) => se_StorageInfo(_, context), `StorageInfo`],
3291
+ zoneIds: [, smithy_client_1._json, `ZoneIds`],
2688
3292
  });
2689
3293
  };
2690
3294
  const se_ClientAuthentication = (input, context) => {
@@ -2709,6 +3313,7 @@ const se_ConfigurationInfo = (input, context) => {
2709
3313
  const se_ConnectivityInfo = (input, context) => {
2710
3314
  return (0, smithy_client_1.take)(input, {
2711
3315
  publicAccess: [, (_) => se_PublicAccess(_, context), `PublicAccess`],
3316
+ vpcConnectivity: [, (_) => se_VpcConnectivity(_, context), `VpcConnectivity`],
2712
3317
  });
2713
3318
  };
2714
3319
  const se_EBSStorageInfo = (input, context) => {
@@ -2852,6 +3457,38 @@ const se_VpcConfig = (input, context) => {
2852
3457
  subnetIds: [, smithy_client_1._json, `SubnetIds`],
2853
3458
  });
2854
3459
  };
3460
+ const se_VpcConnectivity = (input, context) => {
3461
+ return (0, smithy_client_1.take)(input, {
3462
+ clientAuthentication: [, (_) => se_VpcConnectivityClientAuthentication(_, context), `ClientAuthentication`],
3463
+ });
3464
+ };
3465
+ const se_VpcConnectivityClientAuthentication = (input, context) => {
3466
+ return (0, smithy_client_1.take)(input, {
3467
+ sasl: [, (_) => se_VpcConnectivitySasl(_, context), `Sasl`],
3468
+ tls: [, (_) => se_VpcConnectivityTls(_, context), `Tls`],
3469
+ });
3470
+ };
3471
+ const se_VpcConnectivityIam = (input, context) => {
3472
+ return (0, smithy_client_1.take)(input, {
3473
+ enabled: [, , `Enabled`],
3474
+ });
3475
+ };
3476
+ const se_VpcConnectivitySasl = (input, context) => {
3477
+ return (0, smithy_client_1.take)(input, {
3478
+ iam: [, (_) => se_VpcConnectivityIam(_, context), `Iam`],
3479
+ scram: [, (_) => se_VpcConnectivityScram(_, context), `Scram`],
3480
+ });
3481
+ };
3482
+ const se_VpcConnectivityScram = (input, context) => {
3483
+ return (0, smithy_client_1.take)(input, {
3484
+ enabled: [, , `Enabled`],
3485
+ });
3486
+ };
3487
+ const se_VpcConnectivityTls = (input, context) => {
3488
+ return (0, smithy_client_1.take)(input, {
3489
+ enabled: [, , `Enabled`],
3490
+ });
3491
+ };
2855
3492
  const de___listOfBrokerEBSVolumeInfo = (output, context) => {
2856
3493
  const retVal = (output || [])
2857
3494
  .filter((e) => e != null)
@@ -2860,6 +3497,14 @@ const de___listOfBrokerEBSVolumeInfo = (output, context) => {
2860
3497
  });
2861
3498
  return retVal;
2862
3499
  };
3500
+ const de___listOfClientVpcConnection = (output, context) => {
3501
+ const retVal = (output || [])
3502
+ .filter((e) => e != null)
3503
+ .map((entry) => {
3504
+ return de_ClientVpcConnection(entry, context);
3505
+ });
3506
+ return retVal;
3507
+ };
2863
3508
  const de___listOfCluster = (output, context) => {
2864
3509
  const retVal = (output || [])
2865
3510
  .filter((e) => e != null)
@@ -2948,6 +3593,14 @@ const de___listOfVpcConfig = (output, context) => {
2948
3593
  });
2949
3594
  return retVal;
2950
3595
  };
3596
+ const de___listOfVpcConnection = (output, context) => {
3597
+ const retVal = (output || [])
3598
+ .filter((e) => e != null)
3599
+ .map((entry) => {
3600
+ return de_VpcConnection(entry, context);
3601
+ });
3602
+ return retVal;
3603
+ };
2951
3604
  const de_BrokerEBSVolumeInfo = (output, context) => {
2952
3605
  return (0, smithy_client_1.take)(output, {
2953
3606
  KafkaBrokerNodeId: [, smithy_client_1.expectString, `kafkaBrokerNodeId`],
@@ -2970,6 +3623,7 @@ const de_BrokerNodeGroupInfo = (output, context) => {
2970
3623
  InstanceType: [, smithy_client_1.expectString, `instanceType`],
2971
3624
  SecurityGroups: [, smithy_client_1._json, `securityGroups`],
2972
3625
  StorageInfo: [, (_) => de_StorageInfo(_, context), `storageInfo`],
3626
+ ZoneIds: [, smithy_client_1._json, `zoneIds`],
2973
3627
  });
2974
3628
  };
2975
3629
  const de_BrokerNodeInfo = (output, context) => {
@@ -2996,6 +3650,15 @@ const de_ClientAuthentication = (output, context) => {
2996
3650
  Unauthenticated: [, (_) => de_Unauthenticated(_, context), `unauthenticated`],
2997
3651
  });
2998
3652
  };
3653
+ const de_ClientVpcConnection = (output, context) => {
3654
+ return (0, smithy_client_1.take)(output, {
3655
+ Authentication: [, smithy_client_1.expectString, `authentication`],
3656
+ CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
3657
+ Owner: [, smithy_client_1.expectString, `owner`],
3658
+ State: [, smithy_client_1.expectString, `state`],
3659
+ VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
3660
+ });
3661
+ };
2999
3662
  const de_CloudWatchLogs = (output, context) => {
3000
3663
  return (0, smithy_client_1.take)(output, {
3001
3664
  Enabled: [, smithy_client_1.expectBoolean, `enabled`],
@@ -3053,6 +3716,7 @@ const de_ClusterOperationInfo = (output, context) => {
3053
3716
  OperationType: [, smithy_client_1.expectString, `operationType`],
3054
3717
  SourceClusterInfo: [, (_) => de_MutableClusterInfo(_, context), `sourceClusterInfo`],
3055
3718
  TargetClusterInfo: [, (_) => de_MutableClusterInfo(_, context), `targetClusterInfo`],
3719
+ VpcConnectionInfo: [, (_) => de_VpcConnectionInfo(_, context), `vpcConnectionInfo`],
3056
3720
  });
3057
3721
  };
3058
3722
  const de_ClusterOperationStep = (output, context) => {
@@ -3099,6 +3763,7 @@ const de_ConfigurationRevision = (output, context) => {
3099
3763
  const de_ConnectivityInfo = (output, context) => {
3100
3764
  return (0, smithy_client_1.take)(output, {
3101
3765
  PublicAccess: [, (_) => de_PublicAccess(_, context), `publicAccess`],
3766
+ VpcConnectivity: [, (_) => de_VpcConnectivity(_, context), `vpcConnectivity`],
3102
3767
  });
3103
3768
  };
3104
3769
  const de_EBSStorageInfo = (output, context) => {
@@ -3309,12 +3974,68 @@ const de_UnprocessedScramSecret = (output, context) => {
3309
3974
  SecretArn: [, smithy_client_1.expectString, `secretArn`],
3310
3975
  });
3311
3976
  };
3977
+ const de_UserIdentity = (output, context) => {
3978
+ return (0, smithy_client_1.take)(output, {
3979
+ PrincipalId: [, smithy_client_1.expectString, `principalId`],
3980
+ Type: [, smithy_client_1.expectString, `type`],
3981
+ });
3982
+ };
3312
3983
  const de_VpcConfig = (output, context) => {
3313
3984
  return (0, smithy_client_1.take)(output, {
3314
3985
  SecurityGroupIds: [, smithy_client_1._json, `securityGroupIds`],
3315
3986
  SubnetIds: [, smithy_client_1._json, `subnetIds`],
3316
3987
  });
3317
3988
  };
3989
+ const de_VpcConnection = (output, context) => {
3990
+ return (0, smithy_client_1.take)(output, {
3991
+ Authentication: [, smithy_client_1.expectString, `authentication`],
3992
+ CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
3993
+ State: [, smithy_client_1.expectString, `state`],
3994
+ TargetClusterArn: [, smithy_client_1.expectString, `targetClusterArn`],
3995
+ VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
3996
+ VpcId: [, smithy_client_1.expectString, `vpcId`],
3997
+ });
3998
+ };
3999
+ const de_VpcConnectionInfo = (output, context) => {
4000
+ return (0, smithy_client_1.take)(output, {
4001
+ CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
4002
+ Owner: [, smithy_client_1.expectString, `owner`],
4003
+ UserIdentity: [, (_) => de_UserIdentity(_, context), `userIdentity`],
4004
+ VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
4005
+ });
4006
+ };
4007
+ const de_VpcConnectivity = (output, context) => {
4008
+ return (0, smithy_client_1.take)(output, {
4009
+ ClientAuthentication: [, (_) => de_VpcConnectivityClientAuthentication(_, context), `clientAuthentication`],
4010
+ });
4011
+ };
4012
+ const de_VpcConnectivityClientAuthentication = (output, context) => {
4013
+ return (0, smithy_client_1.take)(output, {
4014
+ Sasl: [, (_) => de_VpcConnectivitySasl(_, context), `sasl`],
4015
+ Tls: [, (_) => de_VpcConnectivityTls(_, context), `tls`],
4016
+ });
4017
+ };
4018
+ const de_VpcConnectivityIam = (output, context) => {
4019
+ return (0, smithy_client_1.take)(output, {
4020
+ Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4021
+ });
4022
+ };
4023
+ const de_VpcConnectivitySasl = (output, context) => {
4024
+ return (0, smithy_client_1.take)(output, {
4025
+ Iam: [, (_) => de_VpcConnectivityIam(_, context), `iam`],
4026
+ Scram: [, (_) => de_VpcConnectivityScram(_, context), `scram`],
4027
+ });
4028
+ };
4029
+ const de_VpcConnectivityScram = (output, context) => {
4030
+ return (0, smithy_client_1.take)(output, {
4031
+ Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4032
+ });
4033
+ };
4034
+ const de_VpcConnectivityTls = (output, context) => {
4035
+ return (0, smithy_client_1.take)(output, {
4036
+ Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4037
+ });
4038
+ };
3318
4039
  const de_ZookeeperNodeInfo = (output, context) => {
3319
4040
  return (0, smithy_client_1.take)(output, {
3320
4041
  AttachedENIId: [, smithy_client_1.expectString, `attachedENIId`],