@aws-sdk/client-kafka 3.489.0 → 3.495.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 (78) hide show
  1. package/dist-cjs/Kafka.js +1 -115
  2. package/dist-cjs/KafkaClient.js +1 -43
  3. package/dist-cjs/commands/BatchAssociateScramSecretCommand.js +1 -28
  4. package/dist-cjs/commands/BatchDisassociateScramSecretCommand.js +1 -28
  5. package/dist-cjs/commands/CreateClusterCommand.js +1 -28
  6. package/dist-cjs/commands/CreateClusterV2Command.js +1 -28
  7. package/dist-cjs/commands/CreateConfigurationCommand.js +1 -28
  8. package/dist-cjs/commands/CreateReplicatorCommand.js +1 -28
  9. package/dist-cjs/commands/CreateVpcConnectionCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteClusterCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteClusterPolicyCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteConfigurationCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteReplicatorCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteVpcConnectionCommand.js +1 -28
  15. package/dist-cjs/commands/DescribeClusterCommand.js +1 -28
  16. package/dist-cjs/commands/DescribeClusterOperationCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeClusterOperationV2Command.js +1 -28
  18. package/dist-cjs/commands/DescribeClusterV2Command.js +1 -28
  19. package/dist-cjs/commands/DescribeConfigurationCommand.js +1 -28
  20. package/dist-cjs/commands/DescribeConfigurationRevisionCommand.js +1 -28
  21. package/dist-cjs/commands/DescribeReplicatorCommand.js +1 -28
  22. package/dist-cjs/commands/DescribeVpcConnectionCommand.js +1 -28
  23. package/dist-cjs/commands/GetBootstrapBrokersCommand.js +1 -28
  24. package/dist-cjs/commands/GetClusterPolicyCommand.js +1 -28
  25. package/dist-cjs/commands/GetCompatibleKafkaVersionsCommand.js +1 -28
  26. package/dist-cjs/commands/ListClientVpcConnectionsCommand.js +1 -28
  27. package/dist-cjs/commands/ListClusterOperationsCommand.js +1 -28
  28. package/dist-cjs/commands/ListClusterOperationsV2Command.js +1 -28
  29. package/dist-cjs/commands/ListClustersCommand.js +1 -28
  30. package/dist-cjs/commands/ListClustersV2Command.js +1 -28
  31. package/dist-cjs/commands/ListConfigurationRevisionsCommand.js +1 -28
  32. package/dist-cjs/commands/ListConfigurationsCommand.js +1 -28
  33. package/dist-cjs/commands/ListKafkaVersionsCommand.js +1 -28
  34. package/dist-cjs/commands/ListNodesCommand.js +1 -28
  35. package/dist-cjs/commands/ListReplicatorsCommand.js +1 -28
  36. package/dist-cjs/commands/ListScramSecretsCommand.js +1 -28
  37. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  38. package/dist-cjs/commands/ListVpcConnectionsCommand.js +1 -28
  39. package/dist-cjs/commands/PutClusterPolicyCommand.js +1 -28
  40. package/dist-cjs/commands/RebootBrokerCommand.js +1 -28
  41. package/dist-cjs/commands/RejectClientVpcConnectionCommand.js +1 -28
  42. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  43. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  44. package/dist-cjs/commands/UpdateBrokerCountCommand.js +1 -28
  45. package/dist-cjs/commands/UpdateBrokerStorageCommand.js +1 -28
  46. package/dist-cjs/commands/UpdateBrokerTypeCommand.js +1 -28
  47. package/dist-cjs/commands/UpdateClusterConfigurationCommand.js +1 -28
  48. package/dist-cjs/commands/UpdateClusterKafkaVersionCommand.js +1 -28
  49. package/dist-cjs/commands/UpdateConfigurationCommand.js +1 -28
  50. package/dist-cjs/commands/UpdateConnectivityCommand.js +1 -28
  51. package/dist-cjs/commands/UpdateMonitoringCommand.js +1 -28
  52. package/dist-cjs/commands/UpdateReplicationInfoCommand.js +1 -28
  53. package/dist-cjs/commands/UpdateSecurityCommand.js +1 -28
  54. package/dist-cjs/commands/UpdateStorageCommand.js +1 -28
  55. package/dist-cjs/commands/index.js +1 -55
  56. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  57. package/dist-cjs/extensionConfiguration.js +1 -2
  58. package/dist-cjs/index.js +5939 -11
  59. package/dist-cjs/models/KafkaServiceException.js +1 -12
  60. package/dist-cjs/models/index.js +1 -4
  61. package/dist-cjs/models/models_0.js +1 -201
  62. package/dist-cjs/pagination/Interfaces.js +1 -2
  63. package/dist-cjs/pagination/ListClientVpcConnectionsPaginator.js +1 -7
  64. package/dist-cjs/pagination/ListClusterOperationsPaginator.js +1 -7
  65. package/dist-cjs/pagination/ListClusterOperationsV2Paginator.js +1 -7
  66. package/dist-cjs/pagination/ListClustersPaginator.js +1 -7
  67. package/dist-cjs/pagination/ListClustersV2Paginator.js +1 -7
  68. package/dist-cjs/pagination/ListConfigurationRevisionsPaginator.js +1 -7
  69. package/dist-cjs/pagination/ListConfigurationsPaginator.js +1 -7
  70. package/dist-cjs/pagination/ListKafkaVersionsPaginator.js +1 -7
  71. package/dist-cjs/pagination/ListNodesPaginator.js +1 -7
  72. package/dist-cjs/pagination/ListReplicatorsPaginator.js +1 -7
  73. package/dist-cjs/pagination/ListScramSecretsPaginator.js +1 -7
  74. package/dist-cjs/pagination/ListVpcConnectionsPaginator.js +1 -7
  75. package/dist-cjs/pagination/index.js +1 -16
  76. package/dist-cjs/protocols/Aws_restJson1.js +1 -4517
  77. package/dist-cjs/runtimeExtensions.js +1 -22
  78. package/package.json +40 -40
@@ -1,4517 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateReplicationInfoCommand = 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_ListReplicatorsCommand = exports.se_ListNodesCommand = exports.se_ListKafkaVersionsCommand = exports.se_ListConfigurationsCommand = exports.se_ListConfigurationRevisionsCommand = exports.se_ListClustersV2Command = exports.se_ListClustersCommand = exports.se_ListClusterOperationsV2Command = exports.se_ListClusterOperationsCommand = exports.se_ListClientVpcConnectionsCommand = exports.se_GetCompatibleKafkaVersionsCommand = exports.se_GetClusterPolicyCommand = exports.se_GetBootstrapBrokersCommand = exports.se_DescribeVpcConnectionCommand = exports.se_DescribeReplicatorCommand = exports.se_DescribeConfigurationRevisionCommand = exports.se_DescribeConfigurationCommand = exports.se_DescribeClusterV2Command = exports.se_DescribeClusterOperationV2Command = exports.se_DescribeClusterOperationCommand = exports.se_DescribeClusterCommand = exports.se_DeleteVpcConnectionCommand = exports.se_DeleteReplicatorCommand = exports.se_DeleteConfigurationCommand = exports.se_DeleteClusterPolicyCommand = exports.se_DeleteClusterCommand = exports.se_CreateVpcConnectionCommand = exports.se_CreateReplicatorCommand = exports.se_CreateConfigurationCommand = exports.se_CreateClusterV2Command = exports.se_CreateClusterCommand = exports.se_BatchDisassociateScramSecretCommand = exports.se_BatchAssociateScramSecretCommand = void 0;
4
- 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_ListReplicatorsCommand = exports.de_ListNodesCommand = exports.de_ListKafkaVersionsCommand = exports.de_ListConfigurationsCommand = exports.de_ListConfigurationRevisionsCommand = exports.de_ListClustersV2Command = exports.de_ListClustersCommand = exports.de_ListClusterOperationsV2Command = exports.de_ListClusterOperationsCommand = exports.de_ListClientVpcConnectionsCommand = exports.de_GetCompatibleKafkaVersionsCommand = exports.de_GetClusterPolicyCommand = exports.de_GetBootstrapBrokersCommand = exports.de_DescribeVpcConnectionCommand = exports.de_DescribeReplicatorCommand = exports.de_DescribeConfigurationRevisionCommand = exports.de_DescribeConfigurationCommand = exports.de_DescribeClusterV2Command = exports.de_DescribeClusterOperationV2Command = exports.de_DescribeClusterOperationCommand = exports.de_DescribeClusterCommand = exports.de_DeleteVpcConnectionCommand = exports.de_DeleteReplicatorCommand = exports.de_DeleteConfigurationCommand = exports.de_DeleteClusterPolicyCommand = exports.de_DeleteClusterCommand = exports.de_CreateVpcConnectionCommand = exports.de_CreateReplicatorCommand = exports.de_CreateConfigurationCommand = exports.de_CreateClusterV2Command = exports.de_CreateClusterCommand = exports.de_BatchDisassociateScramSecretCommand = exports.de_BatchAssociateScramSecretCommand = exports.se_UpdateStorageCommand = exports.se_UpdateSecurityCommand = void 0;
5
- exports.de_UpdateStorageCommand = exports.de_UpdateSecurityCommand = exports.de_UpdateReplicationInfoCommand = exports.de_UpdateMonitoringCommand = void 0;
6
- const core_1 = require("@smithy/core");
7
- const smithy_client_1 = require("@smithy/smithy-client");
8
- const KafkaServiceException_1 = require("../models/KafkaServiceException");
9
- const models_0_1 = require("../models/models_0");
10
- const se_BatchAssociateScramSecretCommand = async (input, context) => {
11
- const b = (0, core_1.requestBuilder)(input, context);
12
- const headers = {
13
- "content-type": "application/json",
14
- };
15
- b.bp("/v1/clusters/{ClusterArn}/scram-secrets");
16
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
17
- let body;
18
- body = JSON.stringify((0, smithy_client_1.take)(input, {
19
- secretArnList: [, (_) => (0, smithy_client_1._json)(_), `SecretArnList`],
20
- }));
21
- b.m("POST").h(headers).b(body);
22
- return b.build();
23
- };
24
- exports.se_BatchAssociateScramSecretCommand = se_BatchAssociateScramSecretCommand;
25
- const se_BatchDisassociateScramSecretCommand = async (input, context) => {
26
- const b = (0, core_1.requestBuilder)(input, context);
27
- const headers = {
28
- "content-type": "application/json",
29
- };
30
- b.bp("/v1/clusters/{ClusterArn}/scram-secrets");
31
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
32
- let body;
33
- body = JSON.stringify((0, smithy_client_1.take)(input, {
34
- secretArnList: [, (_) => (0, smithy_client_1._json)(_), `SecretArnList`],
35
- }));
36
- b.m("PATCH").h(headers).b(body);
37
- return b.build();
38
- };
39
- exports.se_BatchDisassociateScramSecretCommand = se_BatchDisassociateScramSecretCommand;
40
- const se_CreateClusterCommand = async (input, context) => {
41
- const b = (0, core_1.requestBuilder)(input, context);
42
- const headers = {
43
- "content-type": "application/json",
44
- };
45
- b.bp("/v1/clusters");
46
- let body;
47
- body = JSON.stringify((0, smithy_client_1.take)(input, {
48
- brokerNodeGroupInfo: [, (_) => se_BrokerNodeGroupInfo(_, context), `BrokerNodeGroupInfo`],
49
- clientAuthentication: [, (_) => se_ClientAuthentication(_, context), `ClientAuthentication`],
50
- clusterName: [, , `ClusterName`],
51
- configurationInfo: [, (_) => se_ConfigurationInfo(_, context), `ConfigurationInfo`],
52
- encryptionInfo: [, (_) => se_EncryptionInfo(_, context), `EncryptionInfo`],
53
- enhancedMonitoring: [, , `EnhancedMonitoring`],
54
- kafkaVersion: [, , `KafkaVersion`],
55
- loggingInfo: [, (_) => se_LoggingInfo(_, context), `LoggingInfo`],
56
- numberOfBrokerNodes: [, , `NumberOfBrokerNodes`],
57
- openMonitoring: [, (_) => se_OpenMonitoringInfo(_, context), `OpenMonitoring`],
58
- storageMode: [, , `StorageMode`],
59
- tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
60
- }));
61
- b.m("POST").h(headers).b(body);
62
- return b.build();
63
- };
64
- exports.se_CreateClusterCommand = se_CreateClusterCommand;
65
- const se_CreateClusterV2Command = async (input, context) => {
66
- const b = (0, core_1.requestBuilder)(input, context);
67
- const headers = {
68
- "content-type": "application/json",
69
- };
70
- b.bp("/api/v2/clusters");
71
- let body;
72
- body = JSON.stringify((0, smithy_client_1.take)(input, {
73
- clusterName: [, , `ClusterName`],
74
- provisioned: [, (_) => se_ProvisionedRequest(_, context), `Provisioned`],
75
- serverless: [, (_) => se_ServerlessRequest(_, context), `Serverless`],
76
- tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
77
- }));
78
- b.m("POST").h(headers).b(body);
79
- return b.build();
80
- };
81
- exports.se_CreateClusterV2Command = se_CreateClusterV2Command;
82
- const se_CreateConfigurationCommand = async (input, context) => {
83
- const b = (0, core_1.requestBuilder)(input, context);
84
- const headers = {
85
- "content-type": "application/json",
86
- };
87
- b.bp("/v1/configurations");
88
- let body;
89
- body = JSON.stringify((0, smithy_client_1.take)(input, {
90
- description: [, , `Description`],
91
- kafkaVersions: [, (_) => (0, smithy_client_1._json)(_), `KafkaVersions`],
92
- name: [, , `Name`],
93
- serverProperties: [, (_) => context.base64Encoder(_), `ServerProperties`],
94
- }));
95
- b.m("POST").h(headers).b(body);
96
- return b.build();
97
- };
98
- exports.se_CreateConfigurationCommand = se_CreateConfigurationCommand;
99
- const se_CreateReplicatorCommand = async (input, context) => {
100
- const b = (0, core_1.requestBuilder)(input, context);
101
- const headers = {
102
- "content-type": "application/json",
103
- };
104
- b.bp("/replication/v1/replicators");
105
- let body;
106
- body = JSON.stringify((0, smithy_client_1.take)(input, {
107
- description: [, , `Description`],
108
- kafkaClusters: [, (_) => se___listOfKafkaCluster(_, context), `KafkaClusters`],
109
- replicationInfoList: [, (_) => se___listOfReplicationInfo(_, context), `ReplicationInfoList`],
110
- replicatorName: [, , `ReplicatorName`],
111
- serviceExecutionRoleArn: [, , `ServiceExecutionRoleArn`],
112
- tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
113
- }));
114
- b.m("POST").h(headers).b(body);
115
- return b.build();
116
- };
117
- exports.se_CreateReplicatorCommand = se_CreateReplicatorCommand;
118
- const se_CreateVpcConnectionCommand = async (input, context) => {
119
- const b = (0, core_1.requestBuilder)(input, context);
120
- const headers = {
121
- "content-type": "application/json",
122
- };
123
- b.bp("/v1/vpc-connection");
124
- let body;
125
- body = JSON.stringify((0, smithy_client_1.take)(input, {
126
- authentication: [, , `Authentication`],
127
- clientSubnets: [, (_) => (0, smithy_client_1._json)(_), `ClientSubnets`],
128
- securityGroups: [, (_) => (0, smithy_client_1._json)(_), `SecurityGroups`],
129
- tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
130
- targetClusterArn: [, , `TargetClusterArn`],
131
- vpcId: [, , `VpcId`],
132
- }));
133
- b.m("POST").h(headers).b(body);
134
- return b.build();
135
- };
136
- exports.se_CreateVpcConnectionCommand = se_CreateVpcConnectionCommand;
137
- const se_DeleteClusterCommand = async (input, context) => {
138
- const b = (0, core_1.requestBuilder)(input, context);
139
- const headers = {};
140
- b.bp("/v1/clusters/{ClusterArn}");
141
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
142
- const query = (0, smithy_client_1.map)({
143
- [_cV]: [, input[_CV]],
144
- });
145
- let body;
146
- b.m("DELETE").h(headers).q(query).b(body);
147
- return b.build();
148
- };
149
- exports.se_DeleteClusterCommand = se_DeleteClusterCommand;
150
- const se_DeleteClusterPolicyCommand = async (input, context) => {
151
- const b = (0, core_1.requestBuilder)(input, context);
152
- const headers = {};
153
- b.bp("/v1/clusters/{ClusterArn}/policy");
154
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
155
- let body;
156
- b.m("DELETE").h(headers).b(body);
157
- return b.build();
158
- };
159
- exports.se_DeleteClusterPolicyCommand = se_DeleteClusterPolicyCommand;
160
- const se_DeleteConfigurationCommand = async (input, context) => {
161
- const b = (0, core_1.requestBuilder)(input, context);
162
- const headers = {};
163
- b.bp("/v1/configurations/{Arn}");
164
- b.p("Arn", () => input.Arn, "{Arn}", false);
165
- let body;
166
- b.m("DELETE").h(headers).b(body);
167
- return b.build();
168
- };
169
- exports.se_DeleteConfigurationCommand = se_DeleteConfigurationCommand;
170
- const se_DeleteReplicatorCommand = async (input, context) => {
171
- const b = (0, core_1.requestBuilder)(input, context);
172
- const headers = {};
173
- b.bp("/replication/v1/replicators/{ReplicatorArn}");
174
- b.p("ReplicatorArn", () => input.ReplicatorArn, "{ReplicatorArn}", false);
175
- const query = (0, smithy_client_1.map)({
176
- [_cV]: [, input[_CV]],
177
- });
178
- let body;
179
- b.m("DELETE").h(headers).q(query).b(body);
180
- return b.build();
181
- };
182
- exports.se_DeleteReplicatorCommand = se_DeleteReplicatorCommand;
183
- const se_DeleteVpcConnectionCommand = async (input, context) => {
184
- const b = (0, core_1.requestBuilder)(input, context);
185
- const headers = {};
186
- b.bp("/v1/vpc-connection/{Arn}");
187
- b.p("Arn", () => input.Arn, "{Arn}", false);
188
- let body;
189
- b.m("DELETE").h(headers).b(body);
190
- return b.build();
191
- };
192
- exports.se_DeleteVpcConnectionCommand = se_DeleteVpcConnectionCommand;
193
- const se_DescribeClusterCommand = async (input, context) => {
194
- const b = (0, core_1.requestBuilder)(input, context);
195
- const headers = {};
196
- b.bp("/v1/clusters/{ClusterArn}");
197
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
198
- let body;
199
- b.m("GET").h(headers).b(body);
200
- return b.build();
201
- };
202
- exports.se_DescribeClusterCommand = se_DescribeClusterCommand;
203
- const se_DescribeClusterOperationCommand = async (input, context) => {
204
- const b = (0, core_1.requestBuilder)(input, context);
205
- const headers = {};
206
- b.bp("/v1/operations/{ClusterOperationArn}");
207
- b.p("ClusterOperationArn", () => input.ClusterOperationArn, "{ClusterOperationArn}", false);
208
- let body;
209
- b.m("GET").h(headers).b(body);
210
- return b.build();
211
- };
212
- exports.se_DescribeClusterOperationCommand = se_DescribeClusterOperationCommand;
213
- const se_DescribeClusterOperationV2Command = async (input, context) => {
214
- const b = (0, core_1.requestBuilder)(input, context);
215
- const headers = {};
216
- b.bp("/api/v2/operations/{ClusterOperationArn}");
217
- b.p("ClusterOperationArn", () => input.ClusterOperationArn, "{ClusterOperationArn}", false);
218
- let body;
219
- b.m("GET").h(headers).b(body);
220
- return b.build();
221
- };
222
- exports.se_DescribeClusterOperationV2Command = se_DescribeClusterOperationV2Command;
223
- const se_DescribeClusterV2Command = async (input, context) => {
224
- const b = (0, core_1.requestBuilder)(input, context);
225
- const headers = {};
226
- b.bp("/api/v2/clusters/{ClusterArn}");
227
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
228
- let body;
229
- b.m("GET").h(headers).b(body);
230
- return b.build();
231
- };
232
- exports.se_DescribeClusterV2Command = se_DescribeClusterV2Command;
233
- const se_DescribeConfigurationCommand = async (input, context) => {
234
- const b = (0, core_1.requestBuilder)(input, context);
235
- const headers = {};
236
- b.bp("/v1/configurations/{Arn}");
237
- b.p("Arn", () => input.Arn, "{Arn}", false);
238
- let body;
239
- b.m("GET").h(headers).b(body);
240
- return b.build();
241
- };
242
- exports.se_DescribeConfigurationCommand = se_DescribeConfigurationCommand;
243
- const se_DescribeConfigurationRevisionCommand = async (input, context) => {
244
- const b = (0, core_1.requestBuilder)(input, context);
245
- const headers = {};
246
- b.bp("/v1/configurations/{Arn}/revisions/{Revision}");
247
- b.p("Arn", () => input.Arn, "{Arn}", false);
248
- b.p("Revision", () => input.Revision.toString(), "{Revision}", false);
249
- let body;
250
- b.m("GET").h(headers).b(body);
251
- return b.build();
252
- };
253
- exports.se_DescribeConfigurationRevisionCommand = se_DescribeConfigurationRevisionCommand;
254
- const se_DescribeReplicatorCommand = async (input, context) => {
255
- const b = (0, core_1.requestBuilder)(input, context);
256
- const headers = {};
257
- b.bp("/replication/v1/replicators/{ReplicatorArn}");
258
- b.p("ReplicatorArn", () => input.ReplicatorArn, "{ReplicatorArn}", false);
259
- let body;
260
- b.m("GET").h(headers).b(body);
261
- return b.build();
262
- };
263
- exports.se_DescribeReplicatorCommand = se_DescribeReplicatorCommand;
264
- const se_DescribeVpcConnectionCommand = async (input, context) => {
265
- const b = (0, core_1.requestBuilder)(input, context);
266
- const headers = {};
267
- b.bp("/v1/vpc-connection/{Arn}");
268
- b.p("Arn", () => input.Arn, "{Arn}", false);
269
- let body;
270
- b.m("GET").h(headers).b(body);
271
- return b.build();
272
- };
273
- exports.se_DescribeVpcConnectionCommand = se_DescribeVpcConnectionCommand;
274
- const se_GetBootstrapBrokersCommand = async (input, context) => {
275
- const b = (0, core_1.requestBuilder)(input, context);
276
- const headers = {};
277
- b.bp("/v1/clusters/{ClusterArn}/bootstrap-brokers");
278
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
279
- let body;
280
- b.m("GET").h(headers).b(body);
281
- return b.build();
282
- };
283
- exports.se_GetBootstrapBrokersCommand = se_GetBootstrapBrokersCommand;
284
- const se_GetClusterPolicyCommand = async (input, context) => {
285
- const b = (0, core_1.requestBuilder)(input, context);
286
- const headers = {};
287
- b.bp("/v1/clusters/{ClusterArn}/policy");
288
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
289
- let body;
290
- b.m("GET").h(headers).b(body);
291
- return b.build();
292
- };
293
- exports.se_GetClusterPolicyCommand = se_GetClusterPolicyCommand;
294
- const se_GetCompatibleKafkaVersionsCommand = async (input, context) => {
295
- const b = (0, core_1.requestBuilder)(input, context);
296
- const headers = {};
297
- b.bp("/v1/compatible-kafka-versions");
298
- const query = (0, smithy_client_1.map)({
299
- [_cA]: [, input[_CA]],
300
- });
301
- let body;
302
- b.m("GET").h(headers).q(query).b(body);
303
- return b.build();
304
- };
305
- exports.se_GetCompatibleKafkaVersionsCommand = se_GetCompatibleKafkaVersionsCommand;
306
- const se_ListClientVpcConnectionsCommand = async (input, context) => {
307
- const b = (0, core_1.requestBuilder)(input, context);
308
- const headers = {};
309
- b.bp("/v1/clusters/{ClusterArn}/client-vpc-connections");
310
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
311
- const query = (0, smithy_client_1.map)({
312
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
313
- [_nT]: [, input[_NT]],
314
- });
315
- let body;
316
- b.m("GET").h(headers).q(query).b(body);
317
- return b.build();
318
- };
319
- exports.se_ListClientVpcConnectionsCommand = se_ListClientVpcConnectionsCommand;
320
- const se_ListClusterOperationsCommand = async (input, context) => {
321
- const b = (0, core_1.requestBuilder)(input, context);
322
- const headers = {};
323
- b.bp("/v1/clusters/{ClusterArn}/operations");
324
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
325
- const query = (0, smithy_client_1.map)({
326
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
327
- [_nT]: [, input[_NT]],
328
- });
329
- let body;
330
- b.m("GET").h(headers).q(query).b(body);
331
- return b.build();
332
- };
333
- exports.se_ListClusterOperationsCommand = se_ListClusterOperationsCommand;
334
- const se_ListClusterOperationsV2Command = async (input, context) => {
335
- const b = (0, core_1.requestBuilder)(input, context);
336
- const headers = {};
337
- b.bp("/api/v2/clusters/{ClusterArn}/operations");
338
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
339
- const query = (0, smithy_client_1.map)({
340
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
341
- [_nT]: [, input[_NT]],
342
- });
343
- let body;
344
- b.m("GET").h(headers).q(query).b(body);
345
- return b.build();
346
- };
347
- exports.se_ListClusterOperationsV2Command = se_ListClusterOperationsV2Command;
348
- const se_ListClustersCommand = async (input, context) => {
349
- const b = (0, core_1.requestBuilder)(input, context);
350
- const headers = {};
351
- b.bp("/v1/clusters");
352
- const query = (0, smithy_client_1.map)({
353
- [_cNF]: [, input[_CNF]],
354
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
355
- [_nT]: [, input[_NT]],
356
- });
357
- let body;
358
- b.m("GET").h(headers).q(query).b(body);
359
- return b.build();
360
- };
361
- exports.se_ListClustersCommand = se_ListClustersCommand;
362
- const se_ListClustersV2Command = async (input, context) => {
363
- const b = (0, core_1.requestBuilder)(input, context);
364
- const headers = {};
365
- b.bp("/api/v2/clusters");
366
- const query = (0, smithy_client_1.map)({
367
- [_cNF]: [, input[_CNF]],
368
- [_cTF]: [, input[_CTF]],
369
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
370
- [_nT]: [, input[_NT]],
371
- });
372
- let body;
373
- b.m("GET").h(headers).q(query).b(body);
374
- return b.build();
375
- };
376
- exports.se_ListClustersV2Command = se_ListClustersV2Command;
377
- const se_ListConfigurationRevisionsCommand = async (input, context) => {
378
- const b = (0, core_1.requestBuilder)(input, context);
379
- const headers = {};
380
- b.bp("/v1/configurations/{Arn}/revisions");
381
- b.p("Arn", () => input.Arn, "{Arn}", false);
382
- const query = (0, smithy_client_1.map)({
383
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
384
- [_nT]: [, input[_NT]],
385
- });
386
- let body;
387
- b.m("GET").h(headers).q(query).b(body);
388
- return b.build();
389
- };
390
- exports.se_ListConfigurationRevisionsCommand = se_ListConfigurationRevisionsCommand;
391
- const se_ListConfigurationsCommand = async (input, context) => {
392
- const b = (0, core_1.requestBuilder)(input, context);
393
- const headers = {};
394
- b.bp("/v1/configurations");
395
- const query = (0, smithy_client_1.map)({
396
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
397
- [_nT]: [, input[_NT]],
398
- });
399
- let body;
400
- b.m("GET").h(headers).q(query).b(body);
401
- return b.build();
402
- };
403
- exports.se_ListConfigurationsCommand = se_ListConfigurationsCommand;
404
- const se_ListKafkaVersionsCommand = async (input, context) => {
405
- const b = (0, core_1.requestBuilder)(input, context);
406
- const headers = {};
407
- b.bp("/v1/kafka-versions");
408
- const query = (0, smithy_client_1.map)({
409
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
410
- [_nT]: [, input[_NT]],
411
- });
412
- let body;
413
- b.m("GET").h(headers).q(query).b(body);
414
- return b.build();
415
- };
416
- exports.se_ListKafkaVersionsCommand = se_ListKafkaVersionsCommand;
417
- const se_ListNodesCommand = async (input, context) => {
418
- const b = (0, core_1.requestBuilder)(input, context);
419
- const headers = {};
420
- b.bp("/v1/clusters/{ClusterArn}/nodes");
421
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
422
- const query = (0, smithy_client_1.map)({
423
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
424
- [_nT]: [, input[_NT]],
425
- });
426
- let body;
427
- b.m("GET").h(headers).q(query).b(body);
428
- return b.build();
429
- };
430
- exports.se_ListNodesCommand = se_ListNodesCommand;
431
- const se_ListReplicatorsCommand = async (input, context) => {
432
- const b = (0, core_1.requestBuilder)(input, context);
433
- const headers = {};
434
- b.bp("/replication/v1/replicators");
435
- const query = (0, smithy_client_1.map)({
436
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
437
- [_nT]: [, input[_NT]],
438
- [_rNF]: [, input[_RNF]],
439
- });
440
- let body;
441
- b.m("GET").h(headers).q(query).b(body);
442
- return b.build();
443
- };
444
- exports.se_ListReplicatorsCommand = se_ListReplicatorsCommand;
445
- const se_ListScramSecretsCommand = async (input, context) => {
446
- const b = (0, core_1.requestBuilder)(input, context);
447
- const headers = {};
448
- b.bp("/v1/clusters/{ClusterArn}/scram-secrets");
449
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
450
- const query = (0, smithy_client_1.map)({
451
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
452
- [_nT]: [, input[_NT]],
453
- });
454
- let body;
455
- b.m("GET").h(headers).q(query).b(body);
456
- return b.build();
457
- };
458
- exports.se_ListScramSecretsCommand = se_ListScramSecretsCommand;
459
- const se_ListTagsForResourceCommand = async (input, context) => {
460
- const b = (0, core_1.requestBuilder)(input, context);
461
- const headers = {};
462
- b.bp("/v1/tags/{ResourceArn}");
463
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
464
- let body;
465
- b.m("GET").h(headers).b(body);
466
- return b.build();
467
- };
468
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
469
- const se_ListVpcConnectionsCommand = async (input, context) => {
470
- const b = (0, core_1.requestBuilder)(input, context);
471
- const headers = {};
472
- b.bp("/v1/vpc-connections");
473
- const query = (0, smithy_client_1.map)({
474
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
475
- [_nT]: [, input[_NT]],
476
- });
477
- let body;
478
- b.m("GET").h(headers).q(query).b(body);
479
- return b.build();
480
- };
481
- exports.se_ListVpcConnectionsCommand = se_ListVpcConnectionsCommand;
482
- const se_PutClusterPolicyCommand = async (input, context) => {
483
- const b = (0, core_1.requestBuilder)(input, context);
484
- const headers = {
485
- "content-type": "application/json",
486
- };
487
- b.bp("/v1/clusters/{ClusterArn}/policy");
488
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
489
- let body;
490
- body = JSON.stringify((0, smithy_client_1.take)(input, {
491
- currentVersion: [, , `CurrentVersion`],
492
- policy: [, , `Policy`],
493
- }));
494
- b.m("PUT").h(headers).b(body);
495
- return b.build();
496
- };
497
- exports.se_PutClusterPolicyCommand = se_PutClusterPolicyCommand;
498
- const se_RebootBrokerCommand = async (input, context) => {
499
- const b = (0, core_1.requestBuilder)(input, context);
500
- const headers = {
501
- "content-type": "application/json",
502
- };
503
- b.bp("/v1/clusters/{ClusterArn}/reboot-broker");
504
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
505
- let body;
506
- body = JSON.stringify((0, smithy_client_1.take)(input, {
507
- brokerIds: [, (_) => (0, smithy_client_1._json)(_), `BrokerIds`],
508
- }));
509
- b.m("PUT").h(headers).b(body);
510
- return b.build();
511
- };
512
- exports.se_RebootBrokerCommand = se_RebootBrokerCommand;
513
- const se_RejectClientVpcConnectionCommand = async (input, context) => {
514
- const b = (0, core_1.requestBuilder)(input, context);
515
- const headers = {
516
- "content-type": "application/json",
517
- };
518
- b.bp("/v1/clusters/{ClusterArn}/client-vpc-connection");
519
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
520
- let body;
521
- body = JSON.stringify((0, smithy_client_1.take)(input, {
522
- vpcConnectionArn: [, , `VpcConnectionArn`],
523
- }));
524
- b.m("PUT").h(headers).b(body);
525
- return b.build();
526
- };
527
- exports.se_RejectClientVpcConnectionCommand = se_RejectClientVpcConnectionCommand;
528
- const se_TagResourceCommand = async (input, context) => {
529
- const b = (0, core_1.requestBuilder)(input, context);
530
- const headers = {
531
- "content-type": "application/json",
532
- };
533
- b.bp("/v1/tags/{ResourceArn}");
534
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
535
- let body;
536
- body = JSON.stringify((0, smithy_client_1.take)(input, {
537
- tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
538
- }));
539
- b.m("POST").h(headers).b(body);
540
- return b.build();
541
- };
542
- exports.se_TagResourceCommand = se_TagResourceCommand;
543
- const se_UntagResourceCommand = async (input, context) => {
544
- const b = (0, core_1.requestBuilder)(input, context);
545
- const headers = {};
546
- b.bp("/v1/tags/{ResourceArn}");
547
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
548
- const query = (0, smithy_client_1.map)({
549
- [_tK]: [
550
- (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
551
- () => (input[_TK] || []).map((_entry) => _entry),
552
- ],
553
- });
554
- let body;
555
- b.m("DELETE").h(headers).q(query).b(body);
556
- return b.build();
557
- };
558
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
559
- const se_UpdateBrokerCountCommand = async (input, context) => {
560
- const b = (0, core_1.requestBuilder)(input, context);
561
- const headers = {
562
- "content-type": "application/json",
563
- };
564
- b.bp("/v1/clusters/{ClusterArn}/nodes/count");
565
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
566
- let body;
567
- body = JSON.stringify((0, smithy_client_1.take)(input, {
568
- currentVersion: [, , `CurrentVersion`],
569
- targetNumberOfBrokerNodes: [, , `TargetNumberOfBrokerNodes`],
570
- }));
571
- b.m("PUT").h(headers).b(body);
572
- return b.build();
573
- };
574
- exports.se_UpdateBrokerCountCommand = se_UpdateBrokerCountCommand;
575
- const se_UpdateBrokerStorageCommand = async (input, context) => {
576
- const b = (0, core_1.requestBuilder)(input, context);
577
- const headers = {
578
- "content-type": "application/json",
579
- };
580
- b.bp("/v1/clusters/{ClusterArn}/nodes/storage");
581
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
582
- let body;
583
- body = JSON.stringify((0, smithy_client_1.take)(input, {
584
- currentVersion: [, , `CurrentVersion`],
585
- targetBrokerEBSVolumeInfo: [, (_) => se___listOfBrokerEBSVolumeInfo(_, context), `TargetBrokerEBSVolumeInfo`],
586
- }));
587
- b.m("PUT").h(headers).b(body);
588
- return b.build();
589
- };
590
- exports.se_UpdateBrokerStorageCommand = se_UpdateBrokerStorageCommand;
591
- const se_UpdateBrokerTypeCommand = async (input, context) => {
592
- const b = (0, core_1.requestBuilder)(input, context);
593
- const headers = {
594
- "content-type": "application/json",
595
- };
596
- b.bp("/v1/clusters/{ClusterArn}/nodes/type");
597
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
598
- let body;
599
- body = JSON.stringify((0, smithy_client_1.take)(input, {
600
- currentVersion: [, , `CurrentVersion`],
601
- targetInstanceType: [, , `TargetInstanceType`],
602
- }));
603
- b.m("PUT").h(headers).b(body);
604
- return b.build();
605
- };
606
- exports.se_UpdateBrokerTypeCommand = se_UpdateBrokerTypeCommand;
607
- const se_UpdateClusterConfigurationCommand = async (input, context) => {
608
- const b = (0, core_1.requestBuilder)(input, context);
609
- const headers = {
610
- "content-type": "application/json",
611
- };
612
- b.bp("/v1/clusters/{ClusterArn}/configuration");
613
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
614
- let body;
615
- body = JSON.stringify((0, smithy_client_1.take)(input, {
616
- configurationInfo: [, (_) => se_ConfigurationInfo(_, context), `ConfigurationInfo`],
617
- currentVersion: [, , `CurrentVersion`],
618
- }));
619
- b.m("PUT").h(headers).b(body);
620
- return b.build();
621
- };
622
- exports.se_UpdateClusterConfigurationCommand = se_UpdateClusterConfigurationCommand;
623
- const se_UpdateClusterKafkaVersionCommand = async (input, context) => {
624
- const b = (0, core_1.requestBuilder)(input, context);
625
- const headers = {
626
- "content-type": "application/json",
627
- };
628
- b.bp("/v1/clusters/{ClusterArn}/version");
629
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
630
- let body;
631
- body = JSON.stringify((0, smithy_client_1.take)(input, {
632
- configurationInfo: [, (_) => se_ConfigurationInfo(_, context), `ConfigurationInfo`],
633
- currentVersion: [, , `CurrentVersion`],
634
- targetKafkaVersion: [, , `TargetKafkaVersion`],
635
- }));
636
- b.m("PUT").h(headers).b(body);
637
- return b.build();
638
- };
639
- exports.se_UpdateClusterKafkaVersionCommand = se_UpdateClusterKafkaVersionCommand;
640
- const se_UpdateConfigurationCommand = async (input, context) => {
641
- const b = (0, core_1.requestBuilder)(input, context);
642
- const headers = {
643
- "content-type": "application/json",
644
- };
645
- b.bp("/v1/configurations/{Arn}");
646
- b.p("Arn", () => input.Arn, "{Arn}", false);
647
- let body;
648
- body = JSON.stringify((0, smithy_client_1.take)(input, {
649
- description: [, , `Description`],
650
- serverProperties: [, (_) => context.base64Encoder(_), `ServerProperties`],
651
- }));
652
- b.m("PUT").h(headers).b(body);
653
- return b.build();
654
- };
655
- exports.se_UpdateConfigurationCommand = se_UpdateConfigurationCommand;
656
- const se_UpdateConnectivityCommand = async (input, context) => {
657
- const b = (0, core_1.requestBuilder)(input, context);
658
- const headers = {
659
- "content-type": "application/json",
660
- };
661
- b.bp("/v1/clusters/{ClusterArn}/connectivity");
662
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
663
- let body;
664
- body = JSON.stringify((0, smithy_client_1.take)(input, {
665
- connectivityInfo: [, (_) => se_ConnectivityInfo(_, context), `ConnectivityInfo`],
666
- currentVersion: [, , `CurrentVersion`],
667
- }));
668
- b.m("PUT").h(headers).b(body);
669
- return b.build();
670
- };
671
- exports.se_UpdateConnectivityCommand = se_UpdateConnectivityCommand;
672
- const se_UpdateMonitoringCommand = async (input, context) => {
673
- const b = (0, core_1.requestBuilder)(input, context);
674
- const headers = {
675
- "content-type": "application/json",
676
- };
677
- b.bp("/v1/clusters/{ClusterArn}/monitoring");
678
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
679
- let body;
680
- body = JSON.stringify((0, smithy_client_1.take)(input, {
681
- currentVersion: [, , `CurrentVersion`],
682
- enhancedMonitoring: [, , `EnhancedMonitoring`],
683
- loggingInfo: [, (_) => se_LoggingInfo(_, context), `LoggingInfo`],
684
- openMonitoring: [, (_) => se_OpenMonitoringInfo(_, context), `OpenMonitoring`],
685
- }));
686
- b.m("PUT").h(headers).b(body);
687
- return b.build();
688
- };
689
- exports.se_UpdateMonitoringCommand = se_UpdateMonitoringCommand;
690
- const se_UpdateReplicationInfoCommand = async (input, context) => {
691
- const b = (0, core_1.requestBuilder)(input, context);
692
- const headers = {
693
- "content-type": "application/json",
694
- };
695
- b.bp("/replication/v1/replicators/{ReplicatorArn}/replication-info");
696
- b.p("ReplicatorArn", () => input.ReplicatorArn, "{ReplicatorArn}", false);
697
- let body;
698
- body = JSON.stringify((0, smithy_client_1.take)(input, {
699
- consumerGroupReplication: [, (_) => se_ConsumerGroupReplicationUpdate(_, context), `ConsumerGroupReplication`],
700
- currentVersion: [, , `CurrentVersion`],
701
- sourceKafkaClusterArn: [, , `SourceKafkaClusterArn`],
702
- targetKafkaClusterArn: [, , `TargetKafkaClusterArn`],
703
- topicReplication: [, (_) => se_TopicReplicationUpdate(_, context), `TopicReplication`],
704
- }));
705
- b.m("PUT").h(headers).b(body);
706
- return b.build();
707
- };
708
- exports.se_UpdateReplicationInfoCommand = se_UpdateReplicationInfoCommand;
709
- const se_UpdateSecurityCommand = async (input, context) => {
710
- const b = (0, core_1.requestBuilder)(input, context);
711
- const headers = {
712
- "content-type": "application/json",
713
- };
714
- b.bp("/v1/clusters/{ClusterArn}/security");
715
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
716
- let body;
717
- body = JSON.stringify((0, smithy_client_1.take)(input, {
718
- clientAuthentication: [, (_) => se_ClientAuthentication(_, context), `ClientAuthentication`],
719
- currentVersion: [, , `CurrentVersion`],
720
- encryptionInfo: [, (_) => se_EncryptionInfo(_, context), `EncryptionInfo`],
721
- }));
722
- b.m("PATCH").h(headers).b(body);
723
- return b.build();
724
- };
725
- exports.se_UpdateSecurityCommand = se_UpdateSecurityCommand;
726
- const se_UpdateStorageCommand = async (input, context) => {
727
- const b = (0, core_1.requestBuilder)(input, context);
728
- const headers = {
729
- "content-type": "application/json",
730
- };
731
- b.bp("/v1/clusters/{ClusterArn}/storage");
732
- b.p("ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
733
- let body;
734
- body = JSON.stringify((0, smithy_client_1.take)(input, {
735
- currentVersion: [, , `CurrentVersion`],
736
- provisionedThroughput: [, (_) => se_ProvisionedThroughput(_, context), `ProvisionedThroughput`],
737
- storageMode: [, , `StorageMode`],
738
- volumeSizeGB: [, , `VolumeSizeGB`],
739
- }));
740
- b.m("PUT").h(headers).b(body);
741
- return b.build();
742
- };
743
- exports.se_UpdateStorageCommand = se_UpdateStorageCommand;
744
- const de_BatchAssociateScramSecretCommand = async (output, context) => {
745
- if (output.statusCode !== 200 && output.statusCode >= 300) {
746
- return de_BatchAssociateScramSecretCommandError(output, context);
747
- }
748
- const contents = (0, smithy_client_1.map)({
749
- $metadata: deserializeMetadata(output),
750
- });
751
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
752
- const doc = (0, smithy_client_1.take)(data, {
753
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
754
- UnprocessedScramSecrets: [, (_) => de___listOfUnprocessedScramSecret(_, context), `unprocessedScramSecrets`],
755
- });
756
- Object.assign(contents, doc);
757
- return contents;
758
- };
759
- exports.de_BatchAssociateScramSecretCommand = de_BatchAssociateScramSecretCommand;
760
- const de_BatchAssociateScramSecretCommandError = async (output, context) => {
761
- const parsedOutput = {
762
- ...output,
763
- body: await parseErrorBody(output.body, context),
764
- };
765
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
766
- switch (errorCode) {
767
- case "BadRequestException":
768
- case "com.amazonaws.kafka#BadRequestException":
769
- throw await de_BadRequestExceptionRes(parsedOutput, context);
770
- case "ForbiddenException":
771
- case "com.amazonaws.kafka#ForbiddenException":
772
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
773
- case "InternalServerErrorException":
774
- case "com.amazonaws.kafka#InternalServerErrorException":
775
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
776
- case "NotFoundException":
777
- case "com.amazonaws.kafka#NotFoundException":
778
- throw await de_NotFoundExceptionRes(parsedOutput, context);
779
- case "ServiceUnavailableException":
780
- case "com.amazonaws.kafka#ServiceUnavailableException":
781
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
782
- case "TooManyRequestsException":
783
- case "com.amazonaws.kafka#TooManyRequestsException":
784
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
785
- case "UnauthorizedException":
786
- case "com.amazonaws.kafka#UnauthorizedException":
787
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
788
- default:
789
- const parsedBody = parsedOutput.body;
790
- return throwDefaultError({
791
- output,
792
- parsedBody,
793
- errorCode,
794
- });
795
- }
796
- };
797
- const de_BatchDisassociateScramSecretCommand = async (output, context) => {
798
- if (output.statusCode !== 200 && output.statusCode >= 300) {
799
- return de_BatchDisassociateScramSecretCommandError(output, context);
800
- }
801
- const contents = (0, smithy_client_1.map)({
802
- $metadata: deserializeMetadata(output),
803
- });
804
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
805
- const doc = (0, smithy_client_1.take)(data, {
806
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
807
- UnprocessedScramSecrets: [, (_) => de___listOfUnprocessedScramSecret(_, context), `unprocessedScramSecrets`],
808
- });
809
- Object.assign(contents, doc);
810
- return contents;
811
- };
812
- exports.de_BatchDisassociateScramSecretCommand = de_BatchDisassociateScramSecretCommand;
813
- const de_BatchDisassociateScramSecretCommandError = async (output, context) => {
814
- const parsedOutput = {
815
- ...output,
816
- body: await parseErrorBody(output.body, context),
817
- };
818
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
819
- switch (errorCode) {
820
- case "BadRequestException":
821
- case "com.amazonaws.kafka#BadRequestException":
822
- throw await de_BadRequestExceptionRes(parsedOutput, context);
823
- case "ForbiddenException":
824
- case "com.amazonaws.kafka#ForbiddenException":
825
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
826
- case "InternalServerErrorException":
827
- case "com.amazonaws.kafka#InternalServerErrorException":
828
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
829
- case "NotFoundException":
830
- case "com.amazonaws.kafka#NotFoundException":
831
- throw await de_NotFoundExceptionRes(parsedOutput, context);
832
- case "ServiceUnavailableException":
833
- case "com.amazonaws.kafka#ServiceUnavailableException":
834
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
835
- case "TooManyRequestsException":
836
- case "com.amazonaws.kafka#TooManyRequestsException":
837
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
838
- case "UnauthorizedException":
839
- case "com.amazonaws.kafka#UnauthorizedException":
840
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
841
- default:
842
- const parsedBody = parsedOutput.body;
843
- return throwDefaultError({
844
- output,
845
- parsedBody,
846
- errorCode,
847
- });
848
- }
849
- };
850
- const de_CreateClusterCommand = async (output, context) => {
851
- if (output.statusCode !== 200 && output.statusCode >= 300) {
852
- return de_CreateClusterCommandError(output, context);
853
- }
854
- const contents = (0, smithy_client_1.map)({
855
- $metadata: deserializeMetadata(output),
856
- });
857
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
858
- const doc = (0, smithy_client_1.take)(data, {
859
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
860
- ClusterName: [, smithy_client_1.expectString, `clusterName`],
861
- State: [, smithy_client_1.expectString, `state`],
862
- });
863
- Object.assign(contents, doc);
864
- return contents;
865
- };
866
- exports.de_CreateClusterCommand = de_CreateClusterCommand;
867
- const de_CreateClusterCommandError = async (output, context) => {
868
- const parsedOutput = {
869
- ...output,
870
- body: await parseErrorBody(output.body, context),
871
- };
872
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
873
- switch (errorCode) {
874
- case "BadRequestException":
875
- case "com.amazonaws.kafka#BadRequestException":
876
- throw await de_BadRequestExceptionRes(parsedOutput, context);
877
- case "ConflictException":
878
- case "com.amazonaws.kafka#ConflictException":
879
- throw await de_ConflictExceptionRes(parsedOutput, context);
880
- case "ForbiddenException":
881
- case "com.amazonaws.kafka#ForbiddenException":
882
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
883
- case "InternalServerErrorException":
884
- case "com.amazonaws.kafka#InternalServerErrorException":
885
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
886
- case "ServiceUnavailableException":
887
- case "com.amazonaws.kafka#ServiceUnavailableException":
888
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
889
- case "TooManyRequestsException":
890
- case "com.amazonaws.kafka#TooManyRequestsException":
891
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
892
- case "UnauthorizedException":
893
- case "com.amazonaws.kafka#UnauthorizedException":
894
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
895
- default:
896
- const parsedBody = parsedOutput.body;
897
- return throwDefaultError({
898
- output,
899
- parsedBody,
900
- errorCode,
901
- });
902
- }
903
- };
904
- const de_CreateClusterV2Command = async (output, context) => {
905
- if (output.statusCode !== 200 && output.statusCode >= 300) {
906
- return de_CreateClusterV2CommandError(output, context);
907
- }
908
- const contents = (0, smithy_client_1.map)({
909
- $metadata: deserializeMetadata(output),
910
- });
911
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
912
- const doc = (0, smithy_client_1.take)(data, {
913
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
914
- ClusterName: [, smithy_client_1.expectString, `clusterName`],
915
- ClusterType: [, smithy_client_1.expectString, `clusterType`],
916
- State: [, smithy_client_1.expectString, `state`],
917
- });
918
- Object.assign(contents, doc);
919
- return contents;
920
- };
921
- exports.de_CreateClusterV2Command = de_CreateClusterV2Command;
922
- const de_CreateClusterV2CommandError = async (output, context) => {
923
- const parsedOutput = {
924
- ...output,
925
- body: await parseErrorBody(output.body, context),
926
- };
927
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
928
- switch (errorCode) {
929
- case "BadRequestException":
930
- case "com.amazonaws.kafka#BadRequestException":
931
- throw await de_BadRequestExceptionRes(parsedOutput, context);
932
- case "ConflictException":
933
- case "com.amazonaws.kafka#ConflictException":
934
- throw await de_ConflictExceptionRes(parsedOutput, context);
935
- case "ForbiddenException":
936
- case "com.amazonaws.kafka#ForbiddenException":
937
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
938
- case "InternalServerErrorException":
939
- case "com.amazonaws.kafka#InternalServerErrorException":
940
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
941
- case "ServiceUnavailableException":
942
- case "com.amazonaws.kafka#ServiceUnavailableException":
943
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
944
- case "TooManyRequestsException":
945
- case "com.amazonaws.kafka#TooManyRequestsException":
946
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
947
- case "UnauthorizedException":
948
- case "com.amazonaws.kafka#UnauthorizedException":
949
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
950
- default:
951
- const parsedBody = parsedOutput.body;
952
- return throwDefaultError({
953
- output,
954
- parsedBody,
955
- errorCode,
956
- });
957
- }
958
- };
959
- const de_CreateConfigurationCommand = async (output, context) => {
960
- if (output.statusCode !== 200 && output.statusCode >= 300) {
961
- return de_CreateConfigurationCommandError(output, context);
962
- }
963
- const contents = (0, smithy_client_1.map)({
964
- $metadata: deserializeMetadata(output),
965
- });
966
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
967
- const doc = (0, smithy_client_1.take)(data, {
968
- Arn: [, smithy_client_1.expectString, `arn`],
969
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
970
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
971
- Name: [, smithy_client_1.expectString, `name`],
972
- State: [, smithy_client_1.expectString, `state`],
973
- });
974
- Object.assign(contents, doc);
975
- return contents;
976
- };
977
- exports.de_CreateConfigurationCommand = de_CreateConfigurationCommand;
978
- const de_CreateConfigurationCommandError = async (output, context) => {
979
- const parsedOutput = {
980
- ...output,
981
- body: await parseErrorBody(output.body, context),
982
- };
983
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
984
- switch (errorCode) {
985
- case "BadRequestException":
986
- case "com.amazonaws.kafka#BadRequestException":
987
- throw await de_BadRequestExceptionRes(parsedOutput, context);
988
- case "ConflictException":
989
- case "com.amazonaws.kafka#ConflictException":
990
- throw await de_ConflictExceptionRes(parsedOutput, context);
991
- case "ForbiddenException":
992
- case "com.amazonaws.kafka#ForbiddenException":
993
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
994
- case "InternalServerErrorException":
995
- case "com.amazonaws.kafka#InternalServerErrorException":
996
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
997
- case "ServiceUnavailableException":
998
- case "com.amazonaws.kafka#ServiceUnavailableException":
999
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1000
- case "TooManyRequestsException":
1001
- case "com.amazonaws.kafka#TooManyRequestsException":
1002
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1003
- case "UnauthorizedException":
1004
- case "com.amazonaws.kafka#UnauthorizedException":
1005
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1006
- default:
1007
- const parsedBody = parsedOutput.body;
1008
- return throwDefaultError({
1009
- output,
1010
- parsedBody,
1011
- errorCode,
1012
- });
1013
- }
1014
- };
1015
- const de_CreateReplicatorCommand = async (output, context) => {
1016
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1017
- return de_CreateReplicatorCommandError(output, context);
1018
- }
1019
- const contents = (0, smithy_client_1.map)({
1020
- $metadata: deserializeMetadata(output),
1021
- });
1022
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1023
- const doc = (0, smithy_client_1.take)(data, {
1024
- ReplicatorArn: [, smithy_client_1.expectString, `replicatorArn`],
1025
- ReplicatorName: [, smithy_client_1.expectString, `replicatorName`],
1026
- ReplicatorState: [, smithy_client_1.expectString, `replicatorState`],
1027
- });
1028
- Object.assign(contents, doc);
1029
- return contents;
1030
- };
1031
- exports.de_CreateReplicatorCommand = de_CreateReplicatorCommand;
1032
- const de_CreateReplicatorCommandError = async (output, context) => {
1033
- const parsedOutput = {
1034
- ...output,
1035
- body: await parseErrorBody(output.body, context),
1036
- };
1037
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1038
- switch (errorCode) {
1039
- case "BadRequestException":
1040
- case "com.amazonaws.kafka#BadRequestException":
1041
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1042
- case "ConflictException":
1043
- case "com.amazonaws.kafka#ConflictException":
1044
- throw await de_ConflictExceptionRes(parsedOutput, context);
1045
- case "ForbiddenException":
1046
- case "com.amazonaws.kafka#ForbiddenException":
1047
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1048
- case "InternalServerErrorException":
1049
- case "com.amazonaws.kafka#InternalServerErrorException":
1050
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1051
- case "NotFoundException":
1052
- case "com.amazonaws.kafka#NotFoundException":
1053
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1054
- case "ServiceUnavailableException":
1055
- case "com.amazonaws.kafka#ServiceUnavailableException":
1056
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1057
- case "TooManyRequestsException":
1058
- case "com.amazonaws.kafka#TooManyRequestsException":
1059
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1060
- case "UnauthorizedException":
1061
- case "com.amazonaws.kafka#UnauthorizedException":
1062
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1063
- default:
1064
- const parsedBody = parsedOutput.body;
1065
- return throwDefaultError({
1066
- output,
1067
- parsedBody,
1068
- errorCode,
1069
- });
1070
- }
1071
- };
1072
- const de_CreateVpcConnectionCommand = async (output, context) => {
1073
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1074
- return de_CreateVpcConnectionCommandError(output, context);
1075
- }
1076
- const contents = (0, smithy_client_1.map)({
1077
- $metadata: deserializeMetadata(output),
1078
- });
1079
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1080
- const doc = (0, smithy_client_1.take)(data, {
1081
- Authentication: [, smithy_client_1.expectString, `authentication`],
1082
- ClientSubnets: [, smithy_client_1._json, `clientSubnets`],
1083
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
1084
- SecurityGroups: [, smithy_client_1._json, `securityGroups`],
1085
- State: [, smithy_client_1.expectString, `state`],
1086
- Tags: [, smithy_client_1._json, `tags`],
1087
- VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
1088
- VpcId: [, smithy_client_1.expectString, `vpcId`],
1089
- });
1090
- Object.assign(contents, doc);
1091
- return contents;
1092
- };
1093
- exports.de_CreateVpcConnectionCommand = de_CreateVpcConnectionCommand;
1094
- const de_CreateVpcConnectionCommandError = async (output, context) => {
1095
- const parsedOutput = {
1096
- ...output,
1097
- body: await parseErrorBody(output.body, context),
1098
- };
1099
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1100
- switch (errorCode) {
1101
- case "BadRequestException":
1102
- case "com.amazonaws.kafka#BadRequestException":
1103
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1104
- case "ForbiddenException":
1105
- case "com.amazonaws.kafka#ForbiddenException":
1106
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1107
- case "InternalServerErrorException":
1108
- case "com.amazonaws.kafka#InternalServerErrorException":
1109
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1110
- case "ServiceUnavailableException":
1111
- case "com.amazonaws.kafka#ServiceUnavailableException":
1112
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1113
- case "TooManyRequestsException":
1114
- case "com.amazonaws.kafka#TooManyRequestsException":
1115
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1116
- case "UnauthorizedException":
1117
- case "com.amazonaws.kafka#UnauthorizedException":
1118
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1119
- default:
1120
- const parsedBody = parsedOutput.body;
1121
- return throwDefaultError({
1122
- output,
1123
- parsedBody,
1124
- errorCode,
1125
- });
1126
- }
1127
- };
1128
- const de_DeleteClusterCommand = async (output, context) => {
1129
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1130
- return de_DeleteClusterCommandError(output, context);
1131
- }
1132
- const contents = (0, smithy_client_1.map)({
1133
- $metadata: deserializeMetadata(output),
1134
- });
1135
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1136
- const doc = (0, smithy_client_1.take)(data, {
1137
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
1138
- State: [, smithy_client_1.expectString, `state`],
1139
- });
1140
- Object.assign(contents, doc);
1141
- return contents;
1142
- };
1143
- exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
1144
- const de_DeleteClusterCommandError = async (output, context) => {
1145
- const parsedOutput = {
1146
- ...output,
1147
- body: await parseErrorBody(output.body, context),
1148
- };
1149
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1150
- switch (errorCode) {
1151
- case "BadRequestException":
1152
- case "com.amazonaws.kafka#BadRequestException":
1153
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1154
- case "ForbiddenException":
1155
- case "com.amazonaws.kafka#ForbiddenException":
1156
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1157
- case "InternalServerErrorException":
1158
- case "com.amazonaws.kafka#InternalServerErrorException":
1159
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1160
- case "NotFoundException":
1161
- case "com.amazonaws.kafka#NotFoundException":
1162
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1163
- default:
1164
- const parsedBody = parsedOutput.body;
1165
- return throwDefaultError({
1166
- output,
1167
- parsedBody,
1168
- errorCode,
1169
- });
1170
- }
1171
- };
1172
- const de_DeleteClusterPolicyCommand = async (output, context) => {
1173
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1174
- return de_DeleteClusterPolicyCommandError(output, context);
1175
- }
1176
- const contents = (0, smithy_client_1.map)({
1177
- $metadata: deserializeMetadata(output),
1178
- });
1179
- await (0, smithy_client_1.collectBody)(output.body, context);
1180
- return contents;
1181
- };
1182
- exports.de_DeleteClusterPolicyCommand = de_DeleteClusterPolicyCommand;
1183
- const de_DeleteClusterPolicyCommandError = async (output, context) => {
1184
- const parsedOutput = {
1185
- ...output,
1186
- body: await parseErrorBody(output.body, context),
1187
- };
1188
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1189
- switch (errorCode) {
1190
- case "BadRequestException":
1191
- case "com.amazonaws.kafka#BadRequestException":
1192
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1193
- case "ForbiddenException":
1194
- case "com.amazonaws.kafka#ForbiddenException":
1195
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1196
- case "InternalServerErrorException":
1197
- case "com.amazonaws.kafka#InternalServerErrorException":
1198
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1199
- case "NotFoundException":
1200
- case "com.amazonaws.kafka#NotFoundException":
1201
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1202
- default:
1203
- const parsedBody = parsedOutput.body;
1204
- return throwDefaultError({
1205
- output,
1206
- parsedBody,
1207
- errorCode,
1208
- });
1209
- }
1210
- };
1211
- const de_DeleteConfigurationCommand = async (output, context) => {
1212
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1213
- return de_DeleteConfigurationCommandError(output, context);
1214
- }
1215
- const contents = (0, smithy_client_1.map)({
1216
- $metadata: deserializeMetadata(output),
1217
- });
1218
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1219
- const doc = (0, smithy_client_1.take)(data, {
1220
- Arn: [, smithy_client_1.expectString, `arn`],
1221
- State: [, smithy_client_1.expectString, `state`],
1222
- });
1223
- Object.assign(contents, doc);
1224
- return contents;
1225
- };
1226
- exports.de_DeleteConfigurationCommand = de_DeleteConfigurationCommand;
1227
- const de_DeleteConfigurationCommandError = async (output, context) => {
1228
- const parsedOutput = {
1229
- ...output,
1230
- body: await parseErrorBody(output.body, context),
1231
- };
1232
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1233
- switch (errorCode) {
1234
- case "BadRequestException":
1235
- case "com.amazonaws.kafka#BadRequestException":
1236
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1237
- case "ForbiddenException":
1238
- case "com.amazonaws.kafka#ForbiddenException":
1239
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1240
- case "InternalServerErrorException":
1241
- case "com.amazonaws.kafka#InternalServerErrorException":
1242
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1243
- case "NotFoundException":
1244
- case "com.amazonaws.kafka#NotFoundException":
1245
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1246
- default:
1247
- const parsedBody = parsedOutput.body;
1248
- return throwDefaultError({
1249
- output,
1250
- parsedBody,
1251
- errorCode,
1252
- });
1253
- }
1254
- };
1255
- const de_DeleteReplicatorCommand = async (output, context) => {
1256
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1257
- return de_DeleteReplicatorCommandError(output, context);
1258
- }
1259
- const contents = (0, smithy_client_1.map)({
1260
- $metadata: deserializeMetadata(output),
1261
- });
1262
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1263
- const doc = (0, smithy_client_1.take)(data, {
1264
- ReplicatorArn: [, smithy_client_1.expectString, `replicatorArn`],
1265
- ReplicatorState: [, smithy_client_1.expectString, `replicatorState`],
1266
- });
1267
- Object.assign(contents, doc);
1268
- return contents;
1269
- };
1270
- exports.de_DeleteReplicatorCommand = de_DeleteReplicatorCommand;
1271
- const de_DeleteReplicatorCommandError = async (output, context) => {
1272
- const parsedOutput = {
1273
- ...output,
1274
- body: await parseErrorBody(output.body, context),
1275
- };
1276
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1277
- switch (errorCode) {
1278
- case "BadRequestException":
1279
- case "com.amazonaws.kafka#BadRequestException":
1280
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1281
- case "ForbiddenException":
1282
- case "com.amazonaws.kafka#ForbiddenException":
1283
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1284
- case "InternalServerErrorException":
1285
- case "com.amazonaws.kafka#InternalServerErrorException":
1286
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1287
- case "NotFoundException":
1288
- case "com.amazonaws.kafka#NotFoundException":
1289
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1290
- case "ServiceUnavailableException":
1291
- case "com.amazonaws.kafka#ServiceUnavailableException":
1292
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1293
- case "TooManyRequestsException":
1294
- case "com.amazonaws.kafka#TooManyRequestsException":
1295
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1296
- case "UnauthorizedException":
1297
- case "com.amazonaws.kafka#UnauthorizedException":
1298
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1299
- default:
1300
- const parsedBody = parsedOutput.body;
1301
- return throwDefaultError({
1302
- output,
1303
- parsedBody,
1304
- errorCode,
1305
- });
1306
- }
1307
- };
1308
- const de_DeleteVpcConnectionCommand = async (output, context) => {
1309
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1310
- return de_DeleteVpcConnectionCommandError(output, context);
1311
- }
1312
- const contents = (0, smithy_client_1.map)({
1313
- $metadata: deserializeMetadata(output),
1314
- });
1315
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1316
- const doc = (0, smithy_client_1.take)(data, {
1317
- State: [, smithy_client_1.expectString, `state`],
1318
- VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
1319
- });
1320
- Object.assign(contents, doc);
1321
- return contents;
1322
- };
1323
- exports.de_DeleteVpcConnectionCommand = de_DeleteVpcConnectionCommand;
1324
- const de_DeleteVpcConnectionCommandError = async (output, context) => {
1325
- const parsedOutput = {
1326
- ...output,
1327
- body: await parseErrorBody(output.body, context),
1328
- };
1329
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1330
- switch (errorCode) {
1331
- case "BadRequestException":
1332
- case "com.amazonaws.kafka#BadRequestException":
1333
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1334
- case "ForbiddenException":
1335
- case "com.amazonaws.kafka#ForbiddenException":
1336
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1337
- case "InternalServerErrorException":
1338
- case "com.amazonaws.kafka#InternalServerErrorException":
1339
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1340
- case "NotFoundException":
1341
- case "com.amazonaws.kafka#NotFoundException":
1342
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1343
- default:
1344
- const parsedBody = parsedOutput.body;
1345
- return throwDefaultError({
1346
- output,
1347
- parsedBody,
1348
- errorCode,
1349
- });
1350
- }
1351
- };
1352
- const de_DescribeClusterCommand = async (output, context) => {
1353
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1354
- return de_DescribeClusterCommandError(output, context);
1355
- }
1356
- const contents = (0, smithy_client_1.map)({
1357
- $metadata: deserializeMetadata(output),
1358
- });
1359
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1360
- const doc = (0, smithy_client_1.take)(data, {
1361
- ClusterInfo: [, (_) => de_ClusterInfo(_, context), `clusterInfo`],
1362
- });
1363
- Object.assign(contents, doc);
1364
- return contents;
1365
- };
1366
- exports.de_DescribeClusterCommand = de_DescribeClusterCommand;
1367
- const de_DescribeClusterCommandError = async (output, context) => {
1368
- const parsedOutput = {
1369
- ...output,
1370
- body: await parseErrorBody(output.body, context),
1371
- };
1372
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1373
- switch (errorCode) {
1374
- case "BadRequestException":
1375
- case "com.amazonaws.kafka#BadRequestException":
1376
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1377
- case "ForbiddenException":
1378
- case "com.amazonaws.kafka#ForbiddenException":
1379
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1380
- case "InternalServerErrorException":
1381
- case "com.amazonaws.kafka#InternalServerErrorException":
1382
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1383
- case "NotFoundException":
1384
- case "com.amazonaws.kafka#NotFoundException":
1385
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1386
- case "UnauthorizedException":
1387
- case "com.amazonaws.kafka#UnauthorizedException":
1388
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1389
- default:
1390
- const parsedBody = parsedOutput.body;
1391
- return throwDefaultError({
1392
- output,
1393
- parsedBody,
1394
- errorCode,
1395
- });
1396
- }
1397
- };
1398
- const de_DescribeClusterOperationCommand = async (output, context) => {
1399
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1400
- return de_DescribeClusterOperationCommandError(output, context);
1401
- }
1402
- const contents = (0, smithy_client_1.map)({
1403
- $metadata: deserializeMetadata(output),
1404
- });
1405
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1406
- const doc = (0, smithy_client_1.take)(data, {
1407
- ClusterOperationInfo: [, (_) => de_ClusterOperationInfo(_, context), `clusterOperationInfo`],
1408
- });
1409
- Object.assign(contents, doc);
1410
- return contents;
1411
- };
1412
- exports.de_DescribeClusterOperationCommand = de_DescribeClusterOperationCommand;
1413
- const de_DescribeClusterOperationCommandError = async (output, context) => {
1414
- const parsedOutput = {
1415
- ...output,
1416
- body: await parseErrorBody(output.body, context),
1417
- };
1418
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1419
- switch (errorCode) {
1420
- case "BadRequestException":
1421
- case "com.amazonaws.kafka#BadRequestException":
1422
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1423
- case "ForbiddenException":
1424
- case "com.amazonaws.kafka#ForbiddenException":
1425
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1426
- case "InternalServerErrorException":
1427
- case "com.amazonaws.kafka#InternalServerErrorException":
1428
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1429
- case "NotFoundException":
1430
- case "com.amazonaws.kafka#NotFoundException":
1431
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1432
- case "UnauthorizedException":
1433
- case "com.amazonaws.kafka#UnauthorizedException":
1434
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1435
- default:
1436
- const parsedBody = parsedOutput.body;
1437
- return throwDefaultError({
1438
- output,
1439
- parsedBody,
1440
- errorCode,
1441
- });
1442
- }
1443
- };
1444
- const de_DescribeClusterOperationV2Command = async (output, context) => {
1445
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1446
- return de_DescribeClusterOperationV2CommandError(output, context);
1447
- }
1448
- const contents = (0, smithy_client_1.map)({
1449
- $metadata: deserializeMetadata(output),
1450
- });
1451
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1452
- const doc = (0, smithy_client_1.take)(data, {
1453
- ClusterOperationInfo: [, (_) => de_ClusterOperationV2(_, context), `clusterOperationInfo`],
1454
- });
1455
- Object.assign(contents, doc);
1456
- return contents;
1457
- };
1458
- exports.de_DescribeClusterOperationV2Command = de_DescribeClusterOperationV2Command;
1459
- const de_DescribeClusterOperationV2CommandError = async (output, context) => {
1460
- const parsedOutput = {
1461
- ...output,
1462
- body: await parseErrorBody(output.body, context),
1463
- };
1464
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1465
- switch (errorCode) {
1466
- case "BadRequestException":
1467
- case "com.amazonaws.kafka#BadRequestException":
1468
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1469
- case "ForbiddenException":
1470
- case "com.amazonaws.kafka#ForbiddenException":
1471
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1472
- case "InternalServerErrorException":
1473
- case "com.amazonaws.kafka#InternalServerErrorException":
1474
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1475
- case "NotFoundException":
1476
- case "com.amazonaws.kafka#NotFoundException":
1477
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1478
- case "ServiceUnavailableException":
1479
- case "com.amazonaws.kafka#ServiceUnavailableException":
1480
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1481
- case "TooManyRequestsException":
1482
- case "com.amazonaws.kafka#TooManyRequestsException":
1483
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1484
- case "UnauthorizedException":
1485
- case "com.amazonaws.kafka#UnauthorizedException":
1486
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1487
- default:
1488
- const parsedBody = parsedOutput.body;
1489
- return throwDefaultError({
1490
- output,
1491
- parsedBody,
1492
- errorCode,
1493
- });
1494
- }
1495
- };
1496
- const de_DescribeClusterV2Command = async (output, context) => {
1497
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1498
- return de_DescribeClusterV2CommandError(output, context);
1499
- }
1500
- const contents = (0, smithy_client_1.map)({
1501
- $metadata: deserializeMetadata(output),
1502
- });
1503
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1504
- const doc = (0, smithy_client_1.take)(data, {
1505
- ClusterInfo: [, (_) => de_Cluster(_, context), `clusterInfo`],
1506
- });
1507
- Object.assign(contents, doc);
1508
- return contents;
1509
- };
1510
- exports.de_DescribeClusterV2Command = de_DescribeClusterV2Command;
1511
- const de_DescribeClusterV2CommandError = async (output, context) => {
1512
- const parsedOutput = {
1513
- ...output,
1514
- body: await parseErrorBody(output.body, context),
1515
- };
1516
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1517
- switch (errorCode) {
1518
- case "BadRequestException":
1519
- case "com.amazonaws.kafka#BadRequestException":
1520
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1521
- case "ForbiddenException":
1522
- case "com.amazonaws.kafka#ForbiddenException":
1523
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1524
- case "InternalServerErrorException":
1525
- case "com.amazonaws.kafka#InternalServerErrorException":
1526
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1527
- case "NotFoundException":
1528
- case "com.amazonaws.kafka#NotFoundException":
1529
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1530
- case "UnauthorizedException":
1531
- case "com.amazonaws.kafka#UnauthorizedException":
1532
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1533
- default:
1534
- const parsedBody = parsedOutput.body;
1535
- return throwDefaultError({
1536
- output,
1537
- parsedBody,
1538
- errorCode,
1539
- });
1540
- }
1541
- };
1542
- const de_DescribeConfigurationCommand = async (output, context) => {
1543
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1544
- return de_DescribeConfigurationCommandError(output, context);
1545
- }
1546
- const contents = (0, smithy_client_1.map)({
1547
- $metadata: deserializeMetadata(output),
1548
- });
1549
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1550
- const doc = (0, smithy_client_1.take)(data, {
1551
- Arn: [, smithy_client_1.expectString, `arn`],
1552
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
1553
- Description: [, smithy_client_1.expectString, `description`],
1554
- KafkaVersions: [, smithy_client_1._json, `kafkaVersions`],
1555
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
1556
- Name: [, smithy_client_1.expectString, `name`],
1557
- State: [, smithy_client_1.expectString, `state`],
1558
- });
1559
- Object.assign(contents, doc);
1560
- return contents;
1561
- };
1562
- exports.de_DescribeConfigurationCommand = de_DescribeConfigurationCommand;
1563
- const de_DescribeConfigurationCommandError = async (output, context) => {
1564
- const parsedOutput = {
1565
- ...output,
1566
- body: await parseErrorBody(output.body, context),
1567
- };
1568
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1569
- switch (errorCode) {
1570
- case "BadRequestException":
1571
- case "com.amazonaws.kafka#BadRequestException":
1572
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1573
- case "ForbiddenException":
1574
- case "com.amazonaws.kafka#ForbiddenException":
1575
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1576
- case "InternalServerErrorException":
1577
- case "com.amazonaws.kafka#InternalServerErrorException":
1578
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1579
- case "NotFoundException":
1580
- case "com.amazonaws.kafka#NotFoundException":
1581
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1582
- case "ServiceUnavailableException":
1583
- case "com.amazonaws.kafka#ServiceUnavailableException":
1584
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1585
- case "UnauthorizedException":
1586
- case "com.amazonaws.kafka#UnauthorizedException":
1587
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1588
- default:
1589
- const parsedBody = parsedOutput.body;
1590
- return throwDefaultError({
1591
- output,
1592
- parsedBody,
1593
- errorCode,
1594
- });
1595
- }
1596
- };
1597
- const de_DescribeConfigurationRevisionCommand = async (output, context) => {
1598
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1599
- return de_DescribeConfigurationRevisionCommandError(output, context);
1600
- }
1601
- const contents = (0, smithy_client_1.map)({
1602
- $metadata: deserializeMetadata(output),
1603
- });
1604
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1605
- const doc = (0, smithy_client_1.take)(data, {
1606
- Arn: [, smithy_client_1.expectString, `arn`],
1607
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
1608
- Description: [, smithy_client_1.expectString, `description`],
1609
- Revision: [, smithy_client_1.expectLong, `revision`],
1610
- ServerProperties: [, context.base64Decoder, `serverProperties`],
1611
- });
1612
- Object.assign(contents, doc);
1613
- return contents;
1614
- };
1615
- exports.de_DescribeConfigurationRevisionCommand = de_DescribeConfigurationRevisionCommand;
1616
- const de_DescribeConfigurationRevisionCommandError = async (output, context) => {
1617
- const parsedOutput = {
1618
- ...output,
1619
- body: await parseErrorBody(output.body, context),
1620
- };
1621
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1622
- switch (errorCode) {
1623
- case "BadRequestException":
1624
- case "com.amazonaws.kafka#BadRequestException":
1625
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1626
- case "ForbiddenException":
1627
- case "com.amazonaws.kafka#ForbiddenException":
1628
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1629
- case "InternalServerErrorException":
1630
- case "com.amazonaws.kafka#InternalServerErrorException":
1631
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1632
- case "NotFoundException":
1633
- case "com.amazonaws.kafka#NotFoundException":
1634
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1635
- case "ServiceUnavailableException":
1636
- case "com.amazonaws.kafka#ServiceUnavailableException":
1637
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1638
- case "UnauthorizedException":
1639
- case "com.amazonaws.kafka#UnauthorizedException":
1640
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1641
- default:
1642
- const parsedBody = parsedOutput.body;
1643
- return throwDefaultError({
1644
- output,
1645
- parsedBody,
1646
- errorCode,
1647
- });
1648
- }
1649
- };
1650
- const de_DescribeReplicatorCommand = async (output, context) => {
1651
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1652
- return de_DescribeReplicatorCommandError(output, context);
1653
- }
1654
- const contents = (0, smithy_client_1.map)({
1655
- $metadata: deserializeMetadata(output),
1656
- });
1657
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1658
- const doc = (0, smithy_client_1.take)(data, {
1659
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
1660
- CurrentVersion: [, smithy_client_1.expectString, `currentVersion`],
1661
- IsReplicatorReference: [, smithy_client_1.expectBoolean, `isReplicatorReference`],
1662
- KafkaClusters: [, (_) => de___listOfKafkaClusterDescription(_, context), `kafkaClusters`],
1663
- ReplicationInfoList: [, (_) => de___listOfReplicationInfoDescription(_, context), `replicationInfoList`],
1664
- ReplicatorArn: [, smithy_client_1.expectString, `replicatorArn`],
1665
- ReplicatorDescription: [, smithy_client_1.expectString, `replicatorDescription`],
1666
- ReplicatorName: [, smithy_client_1.expectString, `replicatorName`],
1667
- ReplicatorResourceArn: [, smithy_client_1.expectString, `replicatorResourceArn`],
1668
- ReplicatorState: [, smithy_client_1.expectString, `replicatorState`],
1669
- ServiceExecutionRoleArn: [, smithy_client_1.expectString, `serviceExecutionRoleArn`],
1670
- StateInfo: [, (_) => de_ReplicationStateInfo(_, context), `stateInfo`],
1671
- Tags: [, smithy_client_1._json, `tags`],
1672
- });
1673
- Object.assign(contents, doc);
1674
- return contents;
1675
- };
1676
- exports.de_DescribeReplicatorCommand = de_DescribeReplicatorCommand;
1677
- const de_DescribeReplicatorCommandError = async (output, context) => {
1678
- const parsedOutput = {
1679
- ...output,
1680
- body: await parseErrorBody(output.body, context),
1681
- };
1682
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1683
- switch (errorCode) {
1684
- case "BadRequestException":
1685
- case "com.amazonaws.kafka#BadRequestException":
1686
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1687
- case "ForbiddenException":
1688
- case "com.amazonaws.kafka#ForbiddenException":
1689
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1690
- case "InternalServerErrorException":
1691
- case "com.amazonaws.kafka#InternalServerErrorException":
1692
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1693
- case "NotFoundException":
1694
- case "com.amazonaws.kafka#NotFoundException":
1695
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1696
- case "ServiceUnavailableException":
1697
- case "com.amazonaws.kafka#ServiceUnavailableException":
1698
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1699
- case "TooManyRequestsException":
1700
- case "com.amazonaws.kafka#TooManyRequestsException":
1701
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1702
- case "UnauthorizedException":
1703
- case "com.amazonaws.kafka#UnauthorizedException":
1704
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1705
- default:
1706
- const parsedBody = parsedOutput.body;
1707
- return throwDefaultError({
1708
- output,
1709
- parsedBody,
1710
- errorCode,
1711
- });
1712
- }
1713
- };
1714
- const de_DescribeVpcConnectionCommand = async (output, context) => {
1715
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1716
- return de_DescribeVpcConnectionCommandError(output, context);
1717
- }
1718
- const contents = (0, smithy_client_1.map)({
1719
- $metadata: deserializeMetadata(output),
1720
- });
1721
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1722
- const doc = (0, smithy_client_1.take)(data, {
1723
- Authentication: [, smithy_client_1.expectString, `authentication`],
1724
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
1725
- SecurityGroups: [, smithy_client_1._json, `securityGroups`],
1726
- State: [, smithy_client_1.expectString, `state`],
1727
- Subnets: [, smithy_client_1._json, `subnets`],
1728
- Tags: [, smithy_client_1._json, `tags`],
1729
- TargetClusterArn: [, smithy_client_1.expectString, `targetClusterArn`],
1730
- VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
1731
- VpcId: [, smithy_client_1.expectString, `vpcId`],
1732
- });
1733
- Object.assign(contents, doc);
1734
- return contents;
1735
- };
1736
- exports.de_DescribeVpcConnectionCommand = de_DescribeVpcConnectionCommand;
1737
- const de_DescribeVpcConnectionCommandError = async (output, context) => {
1738
- const parsedOutput = {
1739
- ...output,
1740
- body: await parseErrorBody(output.body, context),
1741
- };
1742
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1743
- switch (errorCode) {
1744
- case "BadRequestException":
1745
- case "com.amazonaws.kafka#BadRequestException":
1746
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1747
- case "ForbiddenException":
1748
- case "com.amazonaws.kafka#ForbiddenException":
1749
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1750
- case "InternalServerErrorException":
1751
- case "com.amazonaws.kafka#InternalServerErrorException":
1752
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1753
- case "NotFoundException":
1754
- case "com.amazonaws.kafka#NotFoundException":
1755
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1756
- case "ServiceUnavailableException":
1757
- case "com.amazonaws.kafka#ServiceUnavailableException":
1758
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1759
- case "UnauthorizedException":
1760
- case "com.amazonaws.kafka#UnauthorizedException":
1761
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1762
- default:
1763
- const parsedBody = parsedOutput.body;
1764
- return throwDefaultError({
1765
- output,
1766
- parsedBody,
1767
- errorCode,
1768
- });
1769
- }
1770
- };
1771
- const de_GetBootstrapBrokersCommand = async (output, context) => {
1772
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1773
- return de_GetBootstrapBrokersCommandError(output, context);
1774
- }
1775
- const contents = (0, smithy_client_1.map)({
1776
- $metadata: deserializeMetadata(output),
1777
- });
1778
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1779
- const doc = (0, smithy_client_1.take)(data, {
1780
- BootstrapBrokerString: [, smithy_client_1.expectString, `bootstrapBrokerString`],
1781
- BootstrapBrokerStringPublicSaslIam: [, smithy_client_1.expectString, `bootstrapBrokerStringPublicSaslIam`],
1782
- BootstrapBrokerStringPublicSaslScram: [, smithy_client_1.expectString, `bootstrapBrokerStringPublicSaslScram`],
1783
- BootstrapBrokerStringPublicTls: [, smithy_client_1.expectString, `bootstrapBrokerStringPublicTls`],
1784
- BootstrapBrokerStringSaslIam: [, smithy_client_1.expectString, `bootstrapBrokerStringSaslIam`],
1785
- BootstrapBrokerStringSaslScram: [, smithy_client_1.expectString, `bootstrapBrokerStringSaslScram`],
1786
- BootstrapBrokerStringTls: [, smithy_client_1.expectString, `bootstrapBrokerStringTls`],
1787
- BootstrapBrokerStringVpcConnectivitySaslIam: [, smithy_client_1.expectString, `bootstrapBrokerStringVpcConnectivitySaslIam`],
1788
- BootstrapBrokerStringVpcConnectivitySaslScram: [, smithy_client_1.expectString, `bootstrapBrokerStringVpcConnectivitySaslScram`],
1789
- BootstrapBrokerStringVpcConnectivityTls: [, smithy_client_1.expectString, `bootstrapBrokerStringVpcConnectivityTls`],
1790
- });
1791
- Object.assign(contents, doc);
1792
- return contents;
1793
- };
1794
- exports.de_GetBootstrapBrokersCommand = de_GetBootstrapBrokersCommand;
1795
- const de_GetBootstrapBrokersCommandError = async (output, context) => {
1796
- const parsedOutput = {
1797
- ...output,
1798
- body: await parseErrorBody(output.body, context),
1799
- };
1800
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1801
- switch (errorCode) {
1802
- case "BadRequestException":
1803
- case "com.amazonaws.kafka#BadRequestException":
1804
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1805
- case "ConflictException":
1806
- case "com.amazonaws.kafka#ConflictException":
1807
- throw await de_ConflictExceptionRes(parsedOutput, context);
1808
- case "ForbiddenException":
1809
- case "com.amazonaws.kafka#ForbiddenException":
1810
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1811
- case "InternalServerErrorException":
1812
- case "com.amazonaws.kafka#InternalServerErrorException":
1813
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1814
- case "UnauthorizedException":
1815
- case "com.amazonaws.kafka#UnauthorizedException":
1816
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1817
- default:
1818
- const parsedBody = parsedOutput.body;
1819
- return throwDefaultError({
1820
- output,
1821
- parsedBody,
1822
- errorCode,
1823
- });
1824
- }
1825
- };
1826
- const de_GetClusterPolicyCommand = async (output, context) => {
1827
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1828
- return de_GetClusterPolicyCommandError(output, context);
1829
- }
1830
- const contents = (0, smithy_client_1.map)({
1831
- $metadata: deserializeMetadata(output),
1832
- });
1833
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1834
- const doc = (0, smithy_client_1.take)(data, {
1835
- CurrentVersion: [, smithy_client_1.expectString, `currentVersion`],
1836
- Policy: [, smithy_client_1.expectString, `policy`],
1837
- });
1838
- Object.assign(contents, doc);
1839
- return contents;
1840
- };
1841
- exports.de_GetClusterPolicyCommand = de_GetClusterPolicyCommand;
1842
- const de_GetClusterPolicyCommandError = async (output, context) => {
1843
- const parsedOutput = {
1844
- ...output,
1845
- body: await parseErrorBody(output.body, context),
1846
- };
1847
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1848
- switch (errorCode) {
1849
- case "BadRequestException":
1850
- case "com.amazonaws.kafka#BadRequestException":
1851
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1852
- case "ForbiddenException":
1853
- case "com.amazonaws.kafka#ForbiddenException":
1854
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1855
- case "InternalServerErrorException":
1856
- case "com.amazonaws.kafka#InternalServerErrorException":
1857
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1858
- case "NotFoundException":
1859
- case "com.amazonaws.kafka#NotFoundException":
1860
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1861
- default:
1862
- const parsedBody = parsedOutput.body;
1863
- return throwDefaultError({
1864
- output,
1865
- parsedBody,
1866
- errorCode,
1867
- });
1868
- }
1869
- };
1870
- const de_GetCompatibleKafkaVersionsCommand = async (output, context) => {
1871
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1872
- return de_GetCompatibleKafkaVersionsCommandError(output, context);
1873
- }
1874
- const contents = (0, smithy_client_1.map)({
1875
- $metadata: deserializeMetadata(output),
1876
- });
1877
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1878
- const doc = (0, smithy_client_1.take)(data, {
1879
- CompatibleKafkaVersions: [, (_) => de___listOfCompatibleKafkaVersion(_, context), `compatibleKafkaVersions`],
1880
- });
1881
- Object.assign(contents, doc);
1882
- return contents;
1883
- };
1884
- exports.de_GetCompatibleKafkaVersionsCommand = de_GetCompatibleKafkaVersionsCommand;
1885
- const de_GetCompatibleKafkaVersionsCommandError = async (output, context) => {
1886
- const parsedOutput = {
1887
- ...output,
1888
- body: await parseErrorBody(output.body, context),
1889
- };
1890
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1891
- switch (errorCode) {
1892
- case "BadRequestException":
1893
- case "com.amazonaws.kafka#BadRequestException":
1894
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1895
- case "ForbiddenException":
1896
- case "com.amazonaws.kafka#ForbiddenException":
1897
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1898
- case "InternalServerErrorException":
1899
- case "com.amazonaws.kafka#InternalServerErrorException":
1900
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1901
- case "NotFoundException":
1902
- case "com.amazonaws.kafka#NotFoundException":
1903
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1904
- case "ServiceUnavailableException":
1905
- case "com.amazonaws.kafka#ServiceUnavailableException":
1906
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1907
- case "TooManyRequestsException":
1908
- case "com.amazonaws.kafka#TooManyRequestsException":
1909
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1910
- case "UnauthorizedException":
1911
- case "com.amazonaws.kafka#UnauthorizedException":
1912
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1913
- default:
1914
- const parsedBody = parsedOutput.body;
1915
- return throwDefaultError({
1916
- output,
1917
- parsedBody,
1918
- errorCode,
1919
- });
1920
- }
1921
- };
1922
- const de_ListClientVpcConnectionsCommand = async (output, context) => {
1923
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1924
- return de_ListClientVpcConnectionsCommandError(output, context);
1925
- }
1926
- const contents = (0, smithy_client_1.map)({
1927
- $metadata: deserializeMetadata(output),
1928
- });
1929
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1930
- const doc = (0, smithy_client_1.take)(data, {
1931
- ClientVpcConnections: [, (_) => de___listOfClientVpcConnection(_, context), `clientVpcConnections`],
1932
- NextToken: [, smithy_client_1.expectString, `nextToken`],
1933
- });
1934
- Object.assign(contents, doc);
1935
- return contents;
1936
- };
1937
- exports.de_ListClientVpcConnectionsCommand = de_ListClientVpcConnectionsCommand;
1938
- const de_ListClientVpcConnectionsCommandError = async (output, context) => {
1939
- const parsedOutput = {
1940
- ...output,
1941
- body: await parseErrorBody(output.body, context),
1942
- };
1943
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1944
- switch (errorCode) {
1945
- case "BadRequestException":
1946
- case "com.amazonaws.kafka#BadRequestException":
1947
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1948
- case "ForbiddenException":
1949
- case "com.amazonaws.kafka#ForbiddenException":
1950
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1951
- case "InternalServerErrorException":
1952
- case "com.amazonaws.kafka#InternalServerErrorException":
1953
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1954
- case "ServiceUnavailableException":
1955
- case "com.amazonaws.kafka#ServiceUnavailableException":
1956
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1957
- case "UnauthorizedException":
1958
- case "com.amazonaws.kafka#UnauthorizedException":
1959
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
1960
- default:
1961
- const parsedBody = parsedOutput.body;
1962
- return throwDefaultError({
1963
- output,
1964
- parsedBody,
1965
- errorCode,
1966
- });
1967
- }
1968
- };
1969
- const de_ListClusterOperationsCommand = async (output, context) => {
1970
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1971
- return de_ListClusterOperationsCommandError(output, context);
1972
- }
1973
- const contents = (0, smithy_client_1.map)({
1974
- $metadata: deserializeMetadata(output),
1975
- });
1976
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1977
- const doc = (0, smithy_client_1.take)(data, {
1978
- ClusterOperationInfoList: [, (_) => de___listOfClusterOperationInfo(_, context), `clusterOperationInfoList`],
1979
- NextToken: [, smithy_client_1.expectString, `nextToken`],
1980
- });
1981
- Object.assign(contents, doc);
1982
- return contents;
1983
- };
1984
- exports.de_ListClusterOperationsCommand = de_ListClusterOperationsCommand;
1985
- const de_ListClusterOperationsCommandError = async (output, context) => {
1986
- const parsedOutput = {
1987
- ...output,
1988
- body: await parseErrorBody(output.body, context),
1989
- };
1990
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1991
- switch (errorCode) {
1992
- case "BadRequestException":
1993
- case "com.amazonaws.kafka#BadRequestException":
1994
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1995
- case "ForbiddenException":
1996
- case "com.amazonaws.kafka#ForbiddenException":
1997
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1998
- case "InternalServerErrorException":
1999
- case "com.amazonaws.kafka#InternalServerErrorException":
2000
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2001
- case "UnauthorizedException":
2002
- case "com.amazonaws.kafka#UnauthorizedException":
2003
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2004
- default:
2005
- const parsedBody = parsedOutput.body;
2006
- return throwDefaultError({
2007
- output,
2008
- parsedBody,
2009
- errorCode,
2010
- });
2011
- }
2012
- };
2013
- const de_ListClusterOperationsV2Command = async (output, context) => {
2014
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2015
- return de_ListClusterOperationsV2CommandError(output, context);
2016
- }
2017
- const contents = (0, smithy_client_1.map)({
2018
- $metadata: deserializeMetadata(output),
2019
- });
2020
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2021
- const doc = (0, smithy_client_1.take)(data, {
2022
- ClusterOperationInfoList: [, (_) => de___listOfClusterOperationV2Summary(_, context), `clusterOperationInfoList`],
2023
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2024
- });
2025
- Object.assign(contents, doc);
2026
- return contents;
2027
- };
2028
- exports.de_ListClusterOperationsV2Command = de_ListClusterOperationsV2Command;
2029
- const de_ListClusterOperationsV2CommandError = async (output, context) => {
2030
- const parsedOutput = {
2031
- ...output,
2032
- body: await parseErrorBody(output.body, context),
2033
- };
2034
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2035
- switch (errorCode) {
2036
- case "BadRequestException":
2037
- case "com.amazonaws.kafka#BadRequestException":
2038
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2039
- case "ForbiddenException":
2040
- case "com.amazonaws.kafka#ForbiddenException":
2041
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2042
- case "InternalServerErrorException":
2043
- case "com.amazonaws.kafka#InternalServerErrorException":
2044
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2045
- case "NotFoundException":
2046
- case "com.amazonaws.kafka#NotFoundException":
2047
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2048
- case "ServiceUnavailableException":
2049
- case "com.amazonaws.kafka#ServiceUnavailableException":
2050
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2051
- case "TooManyRequestsException":
2052
- case "com.amazonaws.kafka#TooManyRequestsException":
2053
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2054
- case "UnauthorizedException":
2055
- case "com.amazonaws.kafka#UnauthorizedException":
2056
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2057
- default:
2058
- const parsedBody = parsedOutput.body;
2059
- return throwDefaultError({
2060
- output,
2061
- parsedBody,
2062
- errorCode,
2063
- });
2064
- }
2065
- };
2066
- const de_ListClustersCommand = async (output, context) => {
2067
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2068
- return de_ListClustersCommandError(output, context);
2069
- }
2070
- const contents = (0, smithy_client_1.map)({
2071
- $metadata: deserializeMetadata(output),
2072
- });
2073
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2074
- const doc = (0, smithy_client_1.take)(data, {
2075
- ClusterInfoList: [, (_) => de___listOfClusterInfo(_, context), `clusterInfoList`],
2076
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2077
- });
2078
- Object.assign(contents, doc);
2079
- return contents;
2080
- };
2081
- exports.de_ListClustersCommand = de_ListClustersCommand;
2082
- const de_ListClustersCommandError = async (output, context) => {
2083
- const parsedOutput = {
2084
- ...output,
2085
- body: await parseErrorBody(output.body, context),
2086
- };
2087
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2088
- switch (errorCode) {
2089
- case "BadRequestException":
2090
- case "com.amazonaws.kafka#BadRequestException":
2091
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2092
- case "ForbiddenException":
2093
- case "com.amazonaws.kafka#ForbiddenException":
2094
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2095
- case "InternalServerErrorException":
2096
- case "com.amazonaws.kafka#InternalServerErrorException":
2097
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2098
- case "UnauthorizedException":
2099
- case "com.amazonaws.kafka#UnauthorizedException":
2100
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2101
- default:
2102
- const parsedBody = parsedOutput.body;
2103
- return throwDefaultError({
2104
- output,
2105
- parsedBody,
2106
- errorCode,
2107
- });
2108
- }
2109
- };
2110
- const de_ListClustersV2Command = async (output, context) => {
2111
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2112
- return de_ListClustersV2CommandError(output, context);
2113
- }
2114
- const contents = (0, smithy_client_1.map)({
2115
- $metadata: deserializeMetadata(output),
2116
- });
2117
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2118
- const doc = (0, smithy_client_1.take)(data, {
2119
- ClusterInfoList: [, (_) => de___listOfCluster(_, context), `clusterInfoList`],
2120
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2121
- });
2122
- Object.assign(contents, doc);
2123
- return contents;
2124
- };
2125
- exports.de_ListClustersV2Command = de_ListClustersV2Command;
2126
- const de_ListClustersV2CommandError = async (output, context) => {
2127
- const parsedOutput = {
2128
- ...output,
2129
- body: await parseErrorBody(output.body, context),
2130
- };
2131
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2132
- switch (errorCode) {
2133
- case "BadRequestException":
2134
- case "com.amazonaws.kafka#BadRequestException":
2135
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2136
- case "ForbiddenException":
2137
- case "com.amazonaws.kafka#ForbiddenException":
2138
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2139
- case "InternalServerErrorException":
2140
- case "com.amazonaws.kafka#InternalServerErrorException":
2141
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2142
- case "UnauthorizedException":
2143
- case "com.amazonaws.kafka#UnauthorizedException":
2144
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2145
- default:
2146
- const parsedBody = parsedOutput.body;
2147
- return throwDefaultError({
2148
- output,
2149
- parsedBody,
2150
- errorCode,
2151
- });
2152
- }
2153
- };
2154
- const de_ListConfigurationRevisionsCommand = async (output, context) => {
2155
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2156
- return de_ListConfigurationRevisionsCommandError(output, context);
2157
- }
2158
- const contents = (0, smithy_client_1.map)({
2159
- $metadata: deserializeMetadata(output),
2160
- });
2161
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2162
- const doc = (0, smithy_client_1.take)(data, {
2163
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2164
- Revisions: [, (_) => de___listOfConfigurationRevision(_, context), `revisions`],
2165
- });
2166
- Object.assign(contents, doc);
2167
- return contents;
2168
- };
2169
- exports.de_ListConfigurationRevisionsCommand = de_ListConfigurationRevisionsCommand;
2170
- const de_ListConfigurationRevisionsCommandError = async (output, context) => {
2171
- const parsedOutput = {
2172
- ...output,
2173
- body: await parseErrorBody(output.body, context),
2174
- };
2175
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2176
- switch (errorCode) {
2177
- case "BadRequestException":
2178
- case "com.amazonaws.kafka#BadRequestException":
2179
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2180
- case "ForbiddenException":
2181
- case "com.amazonaws.kafka#ForbiddenException":
2182
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2183
- case "InternalServerErrorException":
2184
- case "com.amazonaws.kafka#InternalServerErrorException":
2185
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2186
- case "NotFoundException":
2187
- case "com.amazonaws.kafka#NotFoundException":
2188
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2189
- case "ServiceUnavailableException":
2190
- case "com.amazonaws.kafka#ServiceUnavailableException":
2191
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2192
- case "UnauthorizedException":
2193
- case "com.amazonaws.kafka#UnauthorizedException":
2194
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2195
- default:
2196
- const parsedBody = parsedOutput.body;
2197
- return throwDefaultError({
2198
- output,
2199
- parsedBody,
2200
- errorCode,
2201
- });
2202
- }
2203
- };
2204
- const de_ListConfigurationsCommand = async (output, context) => {
2205
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2206
- return de_ListConfigurationsCommandError(output, context);
2207
- }
2208
- const contents = (0, smithy_client_1.map)({
2209
- $metadata: deserializeMetadata(output),
2210
- });
2211
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2212
- const doc = (0, smithy_client_1.take)(data, {
2213
- Configurations: [, (_) => de___listOfConfiguration(_, context), `configurations`],
2214
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2215
- });
2216
- Object.assign(contents, doc);
2217
- return contents;
2218
- };
2219
- exports.de_ListConfigurationsCommand = de_ListConfigurationsCommand;
2220
- const de_ListConfigurationsCommandError = async (output, context) => {
2221
- const parsedOutput = {
2222
- ...output,
2223
- body: await parseErrorBody(output.body, context),
2224
- };
2225
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2226
- switch (errorCode) {
2227
- case "BadRequestException":
2228
- case "com.amazonaws.kafka#BadRequestException":
2229
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2230
- case "ForbiddenException":
2231
- case "com.amazonaws.kafka#ForbiddenException":
2232
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2233
- case "InternalServerErrorException":
2234
- case "com.amazonaws.kafka#InternalServerErrorException":
2235
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2236
- case "ServiceUnavailableException":
2237
- case "com.amazonaws.kafka#ServiceUnavailableException":
2238
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2239
- case "UnauthorizedException":
2240
- case "com.amazonaws.kafka#UnauthorizedException":
2241
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2242
- default:
2243
- const parsedBody = parsedOutput.body;
2244
- return throwDefaultError({
2245
- output,
2246
- parsedBody,
2247
- errorCode,
2248
- });
2249
- }
2250
- };
2251
- const de_ListKafkaVersionsCommand = async (output, context) => {
2252
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2253
- return de_ListKafkaVersionsCommandError(output, context);
2254
- }
2255
- const contents = (0, smithy_client_1.map)({
2256
- $metadata: deserializeMetadata(output),
2257
- });
2258
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2259
- const doc = (0, smithy_client_1.take)(data, {
2260
- KafkaVersions: [, (_) => de___listOfKafkaVersion(_, context), `kafkaVersions`],
2261
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2262
- });
2263
- Object.assign(contents, doc);
2264
- return contents;
2265
- };
2266
- exports.de_ListKafkaVersionsCommand = de_ListKafkaVersionsCommand;
2267
- const de_ListKafkaVersionsCommandError = async (output, context) => {
2268
- const parsedOutput = {
2269
- ...output,
2270
- body: await parseErrorBody(output.body, context),
2271
- };
2272
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2273
- switch (errorCode) {
2274
- case "BadRequestException":
2275
- case "com.amazonaws.kafka#BadRequestException":
2276
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2277
- case "ForbiddenException":
2278
- case "com.amazonaws.kafka#ForbiddenException":
2279
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2280
- case "InternalServerErrorException":
2281
- case "com.amazonaws.kafka#InternalServerErrorException":
2282
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2283
- case "UnauthorizedException":
2284
- case "com.amazonaws.kafka#UnauthorizedException":
2285
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2286
- default:
2287
- const parsedBody = parsedOutput.body;
2288
- return throwDefaultError({
2289
- output,
2290
- parsedBody,
2291
- errorCode,
2292
- });
2293
- }
2294
- };
2295
- const de_ListNodesCommand = async (output, context) => {
2296
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2297
- return de_ListNodesCommandError(output, context);
2298
- }
2299
- const contents = (0, smithy_client_1.map)({
2300
- $metadata: deserializeMetadata(output),
2301
- });
2302
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2303
- const doc = (0, smithy_client_1.take)(data, {
2304
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2305
- NodeInfoList: [, (_) => de___listOfNodeInfo(_, context), `nodeInfoList`],
2306
- });
2307
- Object.assign(contents, doc);
2308
- return contents;
2309
- };
2310
- exports.de_ListNodesCommand = de_ListNodesCommand;
2311
- const de_ListNodesCommandError = async (output, context) => {
2312
- const parsedOutput = {
2313
- ...output,
2314
- body: await parseErrorBody(output.body, context),
2315
- };
2316
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2317
- switch (errorCode) {
2318
- case "BadRequestException":
2319
- case "com.amazonaws.kafka#BadRequestException":
2320
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2321
- case "ForbiddenException":
2322
- case "com.amazonaws.kafka#ForbiddenException":
2323
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2324
- case "InternalServerErrorException":
2325
- case "com.amazonaws.kafka#InternalServerErrorException":
2326
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2327
- case "NotFoundException":
2328
- case "com.amazonaws.kafka#NotFoundException":
2329
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2330
- default:
2331
- const parsedBody = parsedOutput.body;
2332
- return throwDefaultError({
2333
- output,
2334
- parsedBody,
2335
- errorCode,
2336
- });
2337
- }
2338
- };
2339
- const de_ListReplicatorsCommand = async (output, context) => {
2340
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2341
- return de_ListReplicatorsCommandError(output, context);
2342
- }
2343
- const contents = (0, smithy_client_1.map)({
2344
- $metadata: deserializeMetadata(output),
2345
- });
2346
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2347
- const doc = (0, smithy_client_1.take)(data, {
2348
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2349
- Replicators: [, (_) => de___listOfReplicatorSummary(_, context), `replicators`],
2350
- });
2351
- Object.assign(contents, doc);
2352
- return contents;
2353
- };
2354
- exports.de_ListReplicatorsCommand = de_ListReplicatorsCommand;
2355
- const de_ListReplicatorsCommandError = async (output, context) => {
2356
- const parsedOutput = {
2357
- ...output,
2358
- body: await parseErrorBody(output.body, context),
2359
- };
2360
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2361
- switch (errorCode) {
2362
- case "BadRequestException":
2363
- case "com.amazonaws.kafka#BadRequestException":
2364
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2365
- case "ForbiddenException":
2366
- case "com.amazonaws.kafka#ForbiddenException":
2367
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2368
- case "InternalServerErrorException":
2369
- case "com.amazonaws.kafka#InternalServerErrorException":
2370
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2371
- case "NotFoundException":
2372
- case "com.amazonaws.kafka#NotFoundException":
2373
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2374
- case "ServiceUnavailableException":
2375
- case "com.amazonaws.kafka#ServiceUnavailableException":
2376
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2377
- case "TooManyRequestsException":
2378
- case "com.amazonaws.kafka#TooManyRequestsException":
2379
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2380
- case "UnauthorizedException":
2381
- case "com.amazonaws.kafka#UnauthorizedException":
2382
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2383
- default:
2384
- const parsedBody = parsedOutput.body;
2385
- return throwDefaultError({
2386
- output,
2387
- parsedBody,
2388
- errorCode,
2389
- });
2390
- }
2391
- };
2392
- const de_ListScramSecretsCommand = async (output, context) => {
2393
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2394
- return de_ListScramSecretsCommandError(output, context);
2395
- }
2396
- const contents = (0, smithy_client_1.map)({
2397
- $metadata: deserializeMetadata(output),
2398
- });
2399
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2400
- const doc = (0, smithy_client_1.take)(data, {
2401
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2402
- SecretArnList: [, smithy_client_1._json, `secretArnList`],
2403
- });
2404
- Object.assign(contents, doc);
2405
- return contents;
2406
- };
2407
- exports.de_ListScramSecretsCommand = de_ListScramSecretsCommand;
2408
- const de_ListScramSecretsCommandError = async (output, context) => {
2409
- const parsedOutput = {
2410
- ...output,
2411
- body: await parseErrorBody(output.body, context),
2412
- };
2413
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2414
- switch (errorCode) {
2415
- case "BadRequestException":
2416
- case "com.amazonaws.kafka#BadRequestException":
2417
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2418
- case "ForbiddenException":
2419
- case "com.amazonaws.kafka#ForbiddenException":
2420
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2421
- case "InternalServerErrorException":
2422
- case "com.amazonaws.kafka#InternalServerErrorException":
2423
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2424
- case "NotFoundException":
2425
- case "com.amazonaws.kafka#NotFoundException":
2426
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2427
- case "ServiceUnavailableException":
2428
- case "com.amazonaws.kafka#ServiceUnavailableException":
2429
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2430
- case "TooManyRequestsException":
2431
- case "com.amazonaws.kafka#TooManyRequestsException":
2432
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2433
- case "UnauthorizedException":
2434
- case "com.amazonaws.kafka#UnauthorizedException":
2435
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2436
- default:
2437
- const parsedBody = parsedOutput.body;
2438
- return throwDefaultError({
2439
- output,
2440
- parsedBody,
2441
- errorCode,
2442
- });
2443
- }
2444
- };
2445
- const de_ListTagsForResourceCommand = async (output, context) => {
2446
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2447
- return de_ListTagsForResourceCommandError(output, context);
2448
- }
2449
- const contents = (0, smithy_client_1.map)({
2450
- $metadata: deserializeMetadata(output),
2451
- });
2452
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2453
- const doc = (0, smithy_client_1.take)(data, {
2454
- Tags: [, smithy_client_1._json, `tags`],
2455
- });
2456
- Object.assign(contents, doc);
2457
- return contents;
2458
- };
2459
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2460
- const de_ListTagsForResourceCommandError = async (output, context) => {
2461
- const parsedOutput = {
2462
- ...output,
2463
- body: await parseErrorBody(output.body, context),
2464
- };
2465
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2466
- switch (errorCode) {
2467
- case "BadRequestException":
2468
- case "com.amazonaws.kafka#BadRequestException":
2469
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2470
- case "InternalServerErrorException":
2471
- case "com.amazonaws.kafka#InternalServerErrorException":
2472
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2473
- case "NotFoundException":
2474
- case "com.amazonaws.kafka#NotFoundException":
2475
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2476
- default:
2477
- const parsedBody = parsedOutput.body;
2478
- return throwDefaultError({
2479
- output,
2480
- parsedBody,
2481
- errorCode,
2482
- });
2483
- }
2484
- };
2485
- const de_ListVpcConnectionsCommand = async (output, context) => {
2486
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2487
- return de_ListVpcConnectionsCommandError(output, context);
2488
- }
2489
- const contents = (0, smithy_client_1.map)({
2490
- $metadata: deserializeMetadata(output),
2491
- });
2492
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2493
- const doc = (0, smithy_client_1.take)(data, {
2494
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2495
- VpcConnections: [, (_) => de___listOfVpcConnection(_, context), `vpcConnections`],
2496
- });
2497
- Object.assign(contents, doc);
2498
- return contents;
2499
- };
2500
- exports.de_ListVpcConnectionsCommand = de_ListVpcConnectionsCommand;
2501
- const de_ListVpcConnectionsCommandError = async (output, context) => {
2502
- const parsedOutput = {
2503
- ...output,
2504
- body: await parseErrorBody(output.body, context),
2505
- };
2506
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2507
- switch (errorCode) {
2508
- case "BadRequestException":
2509
- case "com.amazonaws.kafka#BadRequestException":
2510
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2511
- case "ForbiddenException":
2512
- case "com.amazonaws.kafka#ForbiddenException":
2513
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2514
- case "InternalServerErrorException":
2515
- case "com.amazonaws.kafka#InternalServerErrorException":
2516
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2517
- case "ServiceUnavailableException":
2518
- case "com.amazonaws.kafka#ServiceUnavailableException":
2519
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2520
- case "UnauthorizedException":
2521
- case "com.amazonaws.kafka#UnauthorizedException":
2522
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2523
- default:
2524
- const parsedBody = parsedOutput.body;
2525
- return throwDefaultError({
2526
- output,
2527
- parsedBody,
2528
- errorCode,
2529
- });
2530
- }
2531
- };
2532
- const de_PutClusterPolicyCommand = async (output, context) => {
2533
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2534
- return de_PutClusterPolicyCommandError(output, context);
2535
- }
2536
- const contents = (0, smithy_client_1.map)({
2537
- $metadata: deserializeMetadata(output),
2538
- });
2539
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2540
- const doc = (0, smithy_client_1.take)(data, {
2541
- CurrentVersion: [, smithy_client_1.expectString, `currentVersion`],
2542
- });
2543
- Object.assign(contents, doc);
2544
- return contents;
2545
- };
2546
- exports.de_PutClusterPolicyCommand = de_PutClusterPolicyCommand;
2547
- const de_PutClusterPolicyCommandError = async (output, context) => {
2548
- const parsedOutput = {
2549
- ...output,
2550
- body: await parseErrorBody(output.body, context),
2551
- };
2552
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2553
- switch (errorCode) {
2554
- case "BadRequestException":
2555
- case "com.amazonaws.kafka#BadRequestException":
2556
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2557
- case "ForbiddenException":
2558
- case "com.amazonaws.kafka#ForbiddenException":
2559
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2560
- case "InternalServerErrorException":
2561
- case "com.amazonaws.kafka#InternalServerErrorException":
2562
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2563
- default:
2564
- const parsedBody = parsedOutput.body;
2565
- return throwDefaultError({
2566
- output,
2567
- parsedBody,
2568
- errorCode,
2569
- });
2570
- }
2571
- };
2572
- const de_RebootBrokerCommand = async (output, context) => {
2573
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2574
- return de_RebootBrokerCommandError(output, context);
2575
- }
2576
- const contents = (0, smithy_client_1.map)({
2577
- $metadata: deserializeMetadata(output),
2578
- });
2579
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2580
- const doc = (0, smithy_client_1.take)(data, {
2581
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
2582
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
2583
- });
2584
- Object.assign(contents, doc);
2585
- return contents;
2586
- };
2587
- exports.de_RebootBrokerCommand = de_RebootBrokerCommand;
2588
- const de_RebootBrokerCommandError = async (output, context) => {
2589
- const parsedOutput = {
2590
- ...output,
2591
- body: await parseErrorBody(output.body, context),
2592
- };
2593
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2594
- switch (errorCode) {
2595
- case "BadRequestException":
2596
- case "com.amazonaws.kafka#BadRequestException":
2597
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2598
- case "ForbiddenException":
2599
- case "com.amazonaws.kafka#ForbiddenException":
2600
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2601
- case "InternalServerErrorException":
2602
- case "com.amazonaws.kafka#InternalServerErrorException":
2603
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2604
- case "NotFoundException":
2605
- case "com.amazonaws.kafka#NotFoundException":
2606
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2607
- case "ServiceUnavailableException":
2608
- case "com.amazonaws.kafka#ServiceUnavailableException":
2609
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2610
- case "TooManyRequestsException":
2611
- case "com.amazonaws.kafka#TooManyRequestsException":
2612
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2613
- case "UnauthorizedException":
2614
- case "com.amazonaws.kafka#UnauthorizedException":
2615
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2616
- default:
2617
- const parsedBody = parsedOutput.body;
2618
- return throwDefaultError({
2619
- output,
2620
- parsedBody,
2621
- errorCode,
2622
- });
2623
- }
2624
- };
2625
- const de_RejectClientVpcConnectionCommand = async (output, context) => {
2626
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2627
- return de_RejectClientVpcConnectionCommandError(output, context);
2628
- }
2629
- const contents = (0, smithy_client_1.map)({
2630
- $metadata: deserializeMetadata(output),
2631
- });
2632
- await (0, smithy_client_1.collectBody)(output.body, context);
2633
- return contents;
2634
- };
2635
- exports.de_RejectClientVpcConnectionCommand = de_RejectClientVpcConnectionCommand;
2636
- const de_RejectClientVpcConnectionCommandError = async (output, context) => {
2637
- const parsedOutput = {
2638
- ...output,
2639
- body: await parseErrorBody(output.body, context),
2640
- };
2641
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2642
- switch (errorCode) {
2643
- case "BadRequestException":
2644
- case "com.amazonaws.kafka#BadRequestException":
2645
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2646
- case "ForbiddenException":
2647
- case "com.amazonaws.kafka#ForbiddenException":
2648
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2649
- case "InternalServerErrorException":
2650
- case "com.amazonaws.kafka#InternalServerErrorException":
2651
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2652
- case "ServiceUnavailableException":
2653
- case "com.amazonaws.kafka#ServiceUnavailableException":
2654
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2655
- case "UnauthorizedException":
2656
- case "com.amazonaws.kafka#UnauthorizedException":
2657
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2658
- default:
2659
- const parsedBody = parsedOutput.body;
2660
- return throwDefaultError({
2661
- output,
2662
- parsedBody,
2663
- errorCode,
2664
- });
2665
- }
2666
- };
2667
- const de_TagResourceCommand = async (output, context) => {
2668
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2669
- return de_TagResourceCommandError(output, context);
2670
- }
2671
- const contents = (0, smithy_client_1.map)({
2672
- $metadata: deserializeMetadata(output),
2673
- });
2674
- await (0, smithy_client_1.collectBody)(output.body, context);
2675
- return contents;
2676
- };
2677
- exports.de_TagResourceCommand = de_TagResourceCommand;
2678
- const de_TagResourceCommandError = async (output, context) => {
2679
- const parsedOutput = {
2680
- ...output,
2681
- body: await parseErrorBody(output.body, context),
2682
- };
2683
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2684
- switch (errorCode) {
2685
- case "BadRequestException":
2686
- case "com.amazonaws.kafka#BadRequestException":
2687
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2688
- case "InternalServerErrorException":
2689
- case "com.amazonaws.kafka#InternalServerErrorException":
2690
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2691
- case "NotFoundException":
2692
- case "com.amazonaws.kafka#NotFoundException":
2693
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2694
- default:
2695
- const parsedBody = parsedOutput.body;
2696
- return throwDefaultError({
2697
- output,
2698
- parsedBody,
2699
- errorCode,
2700
- });
2701
- }
2702
- };
2703
- const de_UntagResourceCommand = async (output, context) => {
2704
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2705
- return de_UntagResourceCommandError(output, context);
2706
- }
2707
- const contents = (0, smithy_client_1.map)({
2708
- $metadata: deserializeMetadata(output),
2709
- });
2710
- await (0, smithy_client_1.collectBody)(output.body, context);
2711
- return contents;
2712
- };
2713
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
2714
- const de_UntagResourceCommandError = async (output, context) => {
2715
- const parsedOutput = {
2716
- ...output,
2717
- body: await parseErrorBody(output.body, context),
2718
- };
2719
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2720
- switch (errorCode) {
2721
- case "BadRequestException":
2722
- case "com.amazonaws.kafka#BadRequestException":
2723
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2724
- case "InternalServerErrorException":
2725
- case "com.amazonaws.kafka#InternalServerErrorException":
2726
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2727
- case "NotFoundException":
2728
- case "com.amazonaws.kafka#NotFoundException":
2729
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2730
- default:
2731
- const parsedBody = parsedOutput.body;
2732
- return throwDefaultError({
2733
- output,
2734
- parsedBody,
2735
- errorCode,
2736
- });
2737
- }
2738
- };
2739
- const de_UpdateBrokerCountCommand = async (output, context) => {
2740
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2741
- return de_UpdateBrokerCountCommandError(output, context);
2742
- }
2743
- const contents = (0, smithy_client_1.map)({
2744
- $metadata: deserializeMetadata(output),
2745
- });
2746
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2747
- const doc = (0, smithy_client_1.take)(data, {
2748
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
2749
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
2750
- });
2751
- Object.assign(contents, doc);
2752
- return contents;
2753
- };
2754
- exports.de_UpdateBrokerCountCommand = de_UpdateBrokerCountCommand;
2755
- const de_UpdateBrokerCountCommandError = async (output, context) => {
2756
- const parsedOutput = {
2757
- ...output,
2758
- body: await parseErrorBody(output.body, context),
2759
- };
2760
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2761
- switch (errorCode) {
2762
- case "BadRequestException":
2763
- case "com.amazonaws.kafka#BadRequestException":
2764
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2765
- case "ForbiddenException":
2766
- case "com.amazonaws.kafka#ForbiddenException":
2767
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2768
- case "InternalServerErrorException":
2769
- case "com.amazonaws.kafka#InternalServerErrorException":
2770
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2771
- case "ServiceUnavailableException":
2772
- case "com.amazonaws.kafka#ServiceUnavailableException":
2773
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2774
- case "UnauthorizedException":
2775
- case "com.amazonaws.kafka#UnauthorizedException":
2776
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2777
- default:
2778
- const parsedBody = parsedOutput.body;
2779
- return throwDefaultError({
2780
- output,
2781
- parsedBody,
2782
- errorCode,
2783
- });
2784
- }
2785
- };
2786
- const de_UpdateBrokerStorageCommand = async (output, context) => {
2787
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2788
- return de_UpdateBrokerStorageCommandError(output, context);
2789
- }
2790
- const contents = (0, smithy_client_1.map)({
2791
- $metadata: deserializeMetadata(output),
2792
- });
2793
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2794
- const doc = (0, smithy_client_1.take)(data, {
2795
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
2796
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
2797
- });
2798
- Object.assign(contents, doc);
2799
- return contents;
2800
- };
2801
- exports.de_UpdateBrokerStorageCommand = de_UpdateBrokerStorageCommand;
2802
- const de_UpdateBrokerStorageCommandError = async (output, context) => {
2803
- const parsedOutput = {
2804
- ...output,
2805
- body: await parseErrorBody(output.body, context),
2806
- };
2807
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2808
- switch (errorCode) {
2809
- case "BadRequestException":
2810
- case "com.amazonaws.kafka#BadRequestException":
2811
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2812
- case "ForbiddenException":
2813
- case "com.amazonaws.kafka#ForbiddenException":
2814
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2815
- case "InternalServerErrorException":
2816
- case "com.amazonaws.kafka#InternalServerErrorException":
2817
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2818
- case "ServiceUnavailableException":
2819
- case "com.amazonaws.kafka#ServiceUnavailableException":
2820
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2821
- case "UnauthorizedException":
2822
- case "com.amazonaws.kafka#UnauthorizedException":
2823
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2824
- default:
2825
- const parsedBody = parsedOutput.body;
2826
- return throwDefaultError({
2827
- output,
2828
- parsedBody,
2829
- errorCode,
2830
- });
2831
- }
2832
- };
2833
- const de_UpdateBrokerTypeCommand = async (output, context) => {
2834
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2835
- return de_UpdateBrokerTypeCommandError(output, context);
2836
- }
2837
- const contents = (0, smithy_client_1.map)({
2838
- $metadata: deserializeMetadata(output),
2839
- });
2840
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2841
- const doc = (0, smithy_client_1.take)(data, {
2842
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
2843
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
2844
- });
2845
- Object.assign(contents, doc);
2846
- return contents;
2847
- };
2848
- exports.de_UpdateBrokerTypeCommand = de_UpdateBrokerTypeCommand;
2849
- const de_UpdateBrokerTypeCommandError = async (output, context) => {
2850
- const parsedOutput = {
2851
- ...output,
2852
- body: await parseErrorBody(output.body, context),
2853
- };
2854
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2855
- switch (errorCode) {
2856
- case "BadRequestException":
2857
- case "com.amazonaws.kafka#BadRequestException":
2858
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2859
- case "ForbiddenException":
2860
- case "com.amazonaws.kafka#ForbiddenException":
2861
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2862
- case "InternalServerErrorException":
2863
- case "com.amazonaws.kafka#InternalServerErrorException":
2864
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2865
- case "NotFoundException":
2866
- case "com.amazonaws.kafka#NotFoundException":
2867
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2868
- case "ServiceUnavailableException":
2869
- case "com.amazonaws.kafka#ServiceUnavailableException":
2870
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2871
- case "TooManyRequestsException":
2872
- case "com.amazonaws.kafka#TooManyRequestsException":
2873
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2874
- case "UnauthorizedException":
2875
- case "com.amazonaws.kafka#UnauthorizedException":
2876
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2877
- default:
2878
- const parsedBody = parsedOutput.body;
2879
- return throwDefaultError({
2880
- output,
2881
- parsedBody,
2882
- errorCode,
2883
- });
2884
- }
2885
- };
2886
- const de_UpdateClusterConfigurationCommand = async (output, context) => {
2887
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2888
- return de_UpdateClusterConfigurationCommandError(output, context);
2889
- }
2890
- const contents = (0, smithy_client_1.map)({
2891
- $metadata: deserializeMetadata(output),
2892
- });
2893
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2894
- const doc = (0, smithy_client_1.take)(data, {
2895
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
2896
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
2897
- });
2898
- Object.assign(contents, doc);
2899
- return contents;
2900
- };
2901
- exports.de_UpdateClusterConfigurationCommand = de_UpdateClusterConfigurationCommand;
2902
- const de_UpdateClusterConfigurationCommandError = async (output, context) => {
2903
- const parsedOutput = {
2904
- ...output,
2905
- body: await parseErrorBody(output.body, context),
2906
- };
2907
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2908
- switch (errorCode) {
2909
- case "BadRequestException":
2910
- case "com.amazonaws.kafka#BadRequestException":
2911
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2912
- case "ForbiddenException":
2913
- case "com.amazonaws.kafka#ForbiddenException":
2914
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2915
- case "InternalServerErrorException":
2916
- case "com.amazonaws.kafka#InternalServerErrorException":
2917
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2918
- case "NotFoundException":
2919
- case "com.amazonaws.kafka#NotFoundException":
2920
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2921
- case "ServiceUnavailableException":
2922
- case "com.amazonaws.kafka#ServiceUnavailableException":
2923
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2924
- case "UnauthorizedException":
2925
- case "com.amazonaws.kafka#UnauthorizedException":
2926
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2927
- default:
2928
- const parsedBody = parsedOutput.body;
2929
- return throwDefaultError({
2930
- output,
2931
- parsedBody,
2932
- errorCode,
2933
- });
2934
- }
2935
- };
2936
- const de_UpdateClusterKafkaVersionCommand = async (output, context) => {
2937
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2938
- return de_UpdateClusterKafkaVersionCommandError(output, context);
2939
- }
2940
- const contents = (0, smithy_client_1.map)({
2941
- $metadata: deserializeMetadata(output),
2942
- });
2943
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2944
- const doc = (0, smithy_client_1.take)(data, {
2945
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
2946
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
2947
- });
2948
- Object.assign(contents, doc);
2949
- return contents;
2950
- };
2951
- exports.de_UpdateClusterKafkaVersionCommand = de_UpdateClusterKafkaVersionCommand;
2952
- const de_UpdateClusterKafkaVersionCommandError = async (output, context) => {
2953
- const parsedOutput = {
2954
- ...output,
2955
- body: await parseErrorBody(output.body, context),
2956
- };
2957
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2958
- switch (errorCode) {
2959
- case "BadRequestException":
2960
- case "com.amazonaws.kafka#BadRequestException":
2961
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2962
- case "ForbiddenException":
2963
- case "com.amazonaws.kafka#ForbiddenException":
2964
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2965
- case "InternalServerErrorException":
2966
- case "com.amazonaws.kafka#InternalServerErrorException":
2967
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2968
- case "NotFoundException":
2969
- case "com.amazonaws.kafka#NotFoundException":
2970
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2971
- case "ServiceUnavailableException":
2972
- case "com.amazonaws.kafka#ServiceUnavailableException":
2973
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2974
- case "TooManyRequestsException":
2975
- case "com.amazonaws.kafka#TooManyRequestsException":
2976
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2977
- case "UnauthorizedException":
2978
- case "com.amazonaws.kafka#UnauthorizedException":
2979
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2980
- default:
2981
- const parsedBody = parsedOutput.body;
2982
- return throwDefaultError({
2983
- output,
2984
- parsedBody,
2985
- errorCode,
2986
- });
2987
- }
2988
- };
2989
- const de_UpdateConfigurationCommand = async (output, context) => {
2990
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2991
- return de_UpdateConfigurationCommandError(output, context);
2992
- }
2993
- const contents = (0, smithy_client_1.map)({
2994
- $metadata: deserializeMetadata(output),
2995
- });
2996
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2997
- const doc = (0, smithy_client_1.take)(data, {
2998
- Arn: [, smithy_client_1.expectString, `arn`],
2999
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
3000
- });
3001
- Object.assign(contents, doc);
3002
- return contents;
3003
- };
3004
- exports.de_UpdateConfigurationCommand = de_UpdateConfigurationCommand;
3005
- const de_UpdateConfigurationCommandError = async (output, context) => {
3006
- const parsedOutput = {
3007
- ...output,
3008
- body: await parseErrorBody(output.body, context),
3009
- };
3010
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3011
- switch (errorCode) {
3012
- case "BadRequestException":
3013
- case "com.amazonaws.kafka#BadRequestException":
3014
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3015
- case "ForbiddenException":
3016
- case "com.amazonaws.kafka#ForbiddenException":
3017
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3018
- case "InternalServerErrorException":
3019
- case "com.amazonaws.kafka#InternalServerErrorException":
3020
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3021
- case "NotFoundException":
3022
- case "com.amazonaws.kafka#NotFoundException":
3023
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3024
- case "ServiceUnavailableException":
3025
- case "com.amazonaws.kafka#ServiceUnavailableException":
3026
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3027
- case "UnauthorizedException":
3028
- case "com.amazonaws.kafka#UnauthorizedException":
3029
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3030
- default:
3031
- const parsedBody = parsedOutput.body;
3032
- return throwDefaultError({
3033
- output,
3034
- parsedBody,
3035
- errorCode,
3036
- });
3037
- }
3038
- };
3039
- const de_UpdateConnectivityCommand = async (output, context) => {
3040
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3041
- return de_UpdateConnectivityCommandError(output, context);
3042
- }
3043
- const contents = (0, smithy_client_1.map)({
3044
- $metadata: deserializeMetadata(output),
3045
- });
3046
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3047
- const doc = (0, smithy_client_1.take)(data, {
3048
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
3049
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
3050
- });
3051
- Object.assign(contents, doc);
3052
- return contents;
3053
- };
3054
- exports.de_UpdateConnectivityCommand = de_UpdateConnectivityCommand;
3055
- const de_UpdateConnectivityCommandError = async (output, context) => {
3056
- const parsedOutput = {
3057
- ...output,
3058
- body: await parseErrorBody(output.body, context),
3059
- };
3060
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3061
- switch (errorCode) {
3062
- case "BadRequestException":
3063
- case "com.amazonaws.kafka#BadRequestException":
3064
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3065
- case "ForbiddenException":
3066
- case "com.amazonaws.kafka#ForbiddenException":
3067
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3068
- case "InternalServerErrorException":
3069
- case "com.amazonaws.kafka#InternalServerErrorException":
3070
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3071
- case "NotFoundException":
3072
- case "com.amazonaws.kafka#NotFoundException":
3073
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3074
- case "ServiceUnavailableException":
3075
- case "com.amazonaws.kafka#ServiceUnavailableException":
3076
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3077
- case "UnauthorizedException":
3078
- case "com.amazonaws.kafka#UnauthorizedException":
3079
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3080
- default:
3081
- const parsedBody = parsedOutput.body;
3082
- return throwDefaultError({
3083
- output,
3084
- parsedBody,
3085
- errorCode,
3086
- });
3087
- }
3088
- };
3089
- const de_UpdateMonitoringCommand = async (output, context) => {
3090
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3091
- return de_UpdateMonitoringCommandError(output, context);
3092
- }
3093
- const contents = (0, smithy_client_1.map)({
3094
- $metadata: deserializeMetadata(output),
3095
- });
3096
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3097
- const doc = (0, smithy_client_1.take)(data, {
3098
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
3099
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
3100
- });
3101
- Object.assign(contents, doc);
3102
- return contents;
3103
- };
3104
- exports.de_UpdateMonitoringCommand = de_UpdateMonitoringCommand;
3105
- const de_UpdateMonitoringCommandError = async (output, context) => {
3106
- const parsedOutput = {
3107
- ...output,
3108
- body: await parseErrorBody(output.body, context),
3109
- };
3110
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3111
- switch (errorCode) {
3112
- case "BadRequestException":
3113
- case "com.amazonaws.kafka#BadRequestException":
3114
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3115
- case "ForbiddenException":
3116
- case "com.amazonaws.kafka#ForbiddenException":
3117
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3118
- case "InternalServerErrorException":
3119
- case "com.amazonaws.kafka#InternalServerErrorException":
3120
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3121
- case "ServiceUnavailableException":
3122
- case "com.amazonaws.kafka#ServiceUnavailableException":
3123
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3124
- case "UnauthorizedException":
3125
- case "com.amazonaws.kafka#UnauthorizedException":
3126
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3127
- default:
3128
- const parsedBody = parsedOutput.body;
3129
- return throwDefaultError({
3130
- output,
3131
- parsedBody,
3132
- errorCode,
3133
- });
3134
- }
3135
- };
3136
- const de_UpdateReplicationInfoCommand = async (output, context) => {
3137
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3138
- return de_UpdateReplicationInfoCommandError(output, context);
3139
- }
3140
- const contents = (0, smithy_client_1.map)({
3141
- $metadata: deserializeMetadata(output),
3142
- });
3143
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3144
- const doc = (0, smithy_client_1.take)(data, {
3145
- ReplicatorArn: [, smithy_client_1.expectString, `replicatorArn`],
3146
- ReplicatorState: [, smithy_client_1.expectString, `replicatorState`],
3147
- });
3148
- Object.assign(contents, doc);
3149
- return contents;
3150
- };
3151
- exports.de_UpdateReplicationInfoCommand = de_UpdateReplicationInfoCommand;
3152
- const de_UpdateReplicationInfoCommandError = async (output, context) => {
3153
- const parsedOutput = {
3154
- ...output,
3155
- body: await parseErrorBody(output.body, context),
3156
- };
3157
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3158
- switch (errorCode) {
3159
- case "BadRequestException":
3160
- case "com.amazonaws.kafka#BadRequestException":
3161
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3162
- case "ForbiddenException":
3163
- case "com.amazonaws.kafka#ForbiddenException":
3164
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3165
- case "InternalServerErrorException":
3166
- case "com.amazonaws.kafka#InternalServerErrorException":
3167
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3168
- case "NotFoundException":
3169
- case "com.amazonaws.kafka#NotFoundException":
3170
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3171
- case "ServiceUnavailableException":
3172
- case "com.amazonaws.kafka#ServiceUnavailableException":
3173
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3174
- case "TooManyRequestsException":
3175
- case "com.amazonaws.kafka#TooManyRequestsException":
3176
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3177
- case "UnauthorizedException":
3178
- case "com.amazonaws.kafka#UnauthorizedException":
3179
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3180
- default:
3181
- const parsedBody = parsedOutput.body;
3182
- return throwDefaultError({
3183
- output,
3184
- parsedBody,
3185
- errorCode,
3186
- });
3187
- }
3188
- };
3189
- const de_UpdateSecurityCommand = async (output, context) => {
3190
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3191
- return de_UpdateSecurityCommandError(output, context);
3192
- }
3193
- const contents = (0, smithy_client_1.map)({
3194
- $metadata: deserializeMetadata(output),
3195
- });
3196
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3197
- const doc = (0, smithy_client_1.take)(data, {
3198
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
3199
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
3200
- });
3201
- Object.assign(contents, doc);
3202
- return contents;
3203
- };
3204
- exports.de_UpdateSecurityCommand = de_UpdateSecurityCommand;
3205
- const de_UpdateSecurityCommandError = async (output, context) => {
3206
- const parsedOutput = {
3207
- ...output,
3208
- body: await parseErrorBody(output.body, context),
3209
- };
3210
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3211
- switch (errorCode) {
3212
- case "BadRequestException":
3213
- case "com.amazonaws.kafka#BadRequestException":
3214
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3215
- case "ForbiddenException":
3216
- case "com.amazonaws.kafka#ForbiddenException":
3217
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3218
- case "InternalServerErrorException":
3219
- case "com.amazonaws.kafka#InternalServerErrorException":
3220
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3221
- case "NotFoundException":
3222
- case "com.amazonaws.kafka#NotFoundException":
3223
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3224
- case "ServiceUnavailableException":
3225
- case "com.amazonaws.kafka#ServiceUnavailableException":
3226
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3227
- case "TooManyRequestsException":
3228
- case "com.amazonaws.kafka#TooManyRequestsException":
3229
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3230
- case "UnauthorizedException":
3231
- case "com.amazonaws.kafka#UnauthorizedException":
3232
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3233
- default:
3234
- const parsedBody = parsedOutput.body;
3235
- return throwDefaultError({
3236
- output,
3237
- parsedBody,
3238
- errorCode,
3239
- });
3240
- }
3241
- };
3242
- const de_UpdateStorageCommand = async (output, context) => {
3243
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3244
- return de_UpdateStorageCommandError(output, context);
3245
- }
3246
- const contents = (0, smithy_client_1.map)({
3247
- $metadata: deserializeMetadata(output),
3248
- });
3249
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3250
- const doc = (0, smithy_client_1.take)(data, {
3251
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
3252
- ClusterOperationArn: [, smithy_client_1.expectString, `clusterOperationArn`],
3253
- });
3254
- Object.assign(contents, doc);
3255
- return contents;
3256
- };
3257
- exports.de_UpdateStorageCommand = de_UpdateStorageCommand;
3258
- const de_UpdateStorageCommandError = async (output, context) => {
3259
- const parsedOutput = {
3260
- ...output,
3261
- body: await parseErrorBody(output.body, context),
3262
- };
3263
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3264
- switch (errorCode) {
3265
- case "BadRequestException":
3266
- case "com.amazonaws.kafka#BadRequestException":
3267
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3268
- case "ForbiddenException":
3269
- case "com.amazonaws.kafka#ForbiddenException":
3270
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3271
- case "InternalServerErrorException":
3272
- case "com.amazonaws.kafka#InternalServerErrorException":
3273
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3274
- case "NotFoundException":
3275
- case "com.amazonaws.kafka#NotFoundException":
3276
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3277
- case "ServiceUnavailableException":
3278
- case "com.amazonaws.kafka#ServiceUnavailableException":
3279
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3280
- case "TooManyRequestsException":
3281
- case "com.amazonaws.kafka#TooManyRequestsException":
3282
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3283
- case "UnauthorizedException":
3284
- case "com.amazonaws.kafka#UnauthorizedException":
3285
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3286
- default:
3287
- const parsedBody = parsedOutput.body;
3288
- return throwDefaultError({
3289
- output,
3290
- parsedBody,
3291
- errorCode,
3292
- });
3293
- }
3294
- };
3295
- const throwDefaultError = (0, smithy_client_1.withBaseException)(KafkaServiceException_1.KafkaServiceException);
3296
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3297
- const contents = (0, smithy_client_1.map)({});
3298
- const data = parsedOutput.body;
3299
- const doc = (0, smithy_client_1.take)(data, {
3300
- InvalidParameter: [, smithy_client_1.expectString, `invalidParameter`],
3301
- Message: [, smithy_client_1.expectString, `message`],
3302
- });
3303
- Object.assign(contents, doc);
3304
- const exception = new models_0_1.BadRequestException({
3305
- $metadata: deserializeMetadata(parsedOutput),
3306
- ...contents,
3307
- });
3308
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3309
- };
3310
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
3311
- const contents = (0, smithy_client_1.map)({});
3312
- const data = parsedOutput.body;
3313
- const doc = (0, smithy_client_1.take)(data, {
3314
- InvalidParameter: [, smithy_client_1.expectString, `invalidParameter`],
3315
- Message: [, smithy_client_1.expectString, `message`],
3316
- });
3317
- Object.assign(contents, doc);
3318
- const exception = new models_0_1.ConflictException({
3319
- $metadata: deserializeMetadata(parsedOutput),
3320
- ...contents,
3321
- });
3322
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3323
- };
3324
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
3325
- const contents = (0, smithy_client_1.map)({});
3326
- const data = parsedOutput.body;
3327
- const doc = (0, smithy_client_1.take)(data, {
3328
- InvalidParameter: [, smithy_client_1.expectString, `invalidParameter`],
3329
- Message: [, smithy_client_1.expectString, `message`],
3330
- });
3331
- Object.assign(contents, doc);
3332
- const exception = new models_0_1.ForbiddenException({
3333
- $metadata: deserializeMetadata(parsedOutput),
3334
- ...contents,
3335
- });
3336
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3337
- };
3338
- const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
3339
- const contents = (0, smithy_client_1.map)({});
3340
- const data = parsedOutput.body;
3341
- const doc = (0, smithy_client_1.take)(data, {
3342
- InvalidParameter: [, smithy_client_1.expectString, `invalidParameter`],
3343
- Message: [, smithy_client_1.expectString, `message`],
3344
- });
3345
- Object.assign(contents, doc);
3346
- const exception = new models_0_1.InternalServerErrorException({
3347
- $metadata: deserializeMetadata(parsedOutput),
3348
- ...contents,
3349
- });
3350
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3351
- };
3352
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
3353
- const contents = (0, smithy_client_1.map)({});
3354
- const data = parsedOutput.body;
3355
- const doc = (0, smithy_client_1.take)(data, {
3356
- InvalidParameter: [, smithy_client_1.expectString, `invalidParameter`],
3357
- Message: [, smithy_client_1.expectString, `message`],
3358
- });
3359
- Object.assign(contents, doc);
3360
- const exception = new models_0_1.NotFoundException({
3361
- $metadata: deserializeMetadata(parsedOutput),
3362
- ...contents,
3363
- });
3364
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3365
- };
3366
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
3367
- const contents = (0, smithy_client_1.map)({});
3368
- const data = parsedOutput.body;
3369
- const doc = (0, smithy_client_1.take)(data, {
3370
- InvalidParameter: [, smithy_client_1.expectString, `invalidParameter`],
3371
- Message: [, smithy_client_1.expectString, `message`],
3372
- });
3373
- Object.assign(contents, doc);
3374
- const exception = new models_0_1.ServiceUnavailableException({
3375
- $metadata: deserializeMetadata(parsedOutput),
3376
- ...contents,
3377
- });
3378
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3379
- };
3380
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
3381
- const contents = (0, smithy_client_1.map)({});
3382
- const data = parsedOutput.body;
3383
- const doc = (0, smithy_client_1.take)(data, {
3384
- InvalidParameter: [, smithy_client_1.expectString, `invalidParameter`],
3385
- Message: [, smithy_client_1.expectString, `message`],
3386
- });
3387
- Object.assign(contents, doc);
3388
- const exception = new models_0_1.TooManyRequestsException({
3389
- $metadata: deserializeMetadata(parsedOutput),
3390
- ...contents,
3391
- });
3392
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3393
- };
3394
- const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
3395
- const contents = (0, smithy_client_1.map)({});
3396
- const data = parsedOutput.body;
3397
- const doc = (0, smithy_client_1.take)(data, {
3398
- InvalidParameter: [, smithy_client_1.expectString, `invalidParameter`],
3399
- Message: [, smithy_client_1.expectString, `message`],
3400
- });
3401
- Object.assign(contents, doc);
3402
- const exception = new models_0_1.UnauthorizedException({
3403
- $metadata: deserializeMetadata(parsedOutput),
3404
- ...contents,
3405
- });
3406
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3407
- };
3408
- const se___listOfBrokerEBSVolumeInfo = (input, context) => {
3409
- return input
3410
- .filter((e) => e != null)
3411
- .map((entry) => {
3412
- return se_BrokerEBSVolumeInfo(entry, context);
3413
- });
3414
- };
3415
- const se___listOfKafkaCluster = (input, context) => {
3416
- return input
3417
- .filter((e) => e != null)
3418
- .map((entry) => {
3419
- return se_KafkaCluster(entry, context);
3420
- });
3421
- };
3422
- const se___listOfReplicationInfo = (input, context) => {
3423
- return input
3424
- .filter((e) => e != null)
3425
- .map((entry) => {
3426
- return se_ReplicationInfo(entry, context);
3427
- });
3428
- };
3429
- const se___listOfVpcConfig = (input, context) => {
3430
- return input
3431
- .filter((e) => e != null)
3432
- .map((entry) => {
3433
- return se_VpcConfig(entry, context);
3434
- });
3435
- };
3436
- const se_AmazonMskCluster = (input, context) => {
3437
- return (0, smithy_client_1.take)(input, {
3438
- mskClusterArn: [, , `MskClusterArn`],
3439
- });
3440
- };
3441
- const se_BrokerEBSVolumeInfo = (input, context) => {
3442
- return (0, smithy_client_1.take)(input, {
3443
- kafkaBrokerNodeId: [, , `KafkaBrokerNodeId`],
3444
- provisionedThroughput: [, (_) => se_ProvisionedThroughput(_, context), `ProvisionedThroughput`],
3445
- volumeSizeGB: [, , `VolumeSizeGB`],
3446
- });
3447
- };
3448
- const se_BrokerLogs = (input, context) => {
3449
- return (0, smithy_client_1.take)(input, {
3450
- cloudWatchLogs: [, (_) => se_CloudWatchLogs(_, context), `CloudWatchLogs`],
3451
- firehose: [, (_) => se_Firehose(_, context), `Firehose`],
3452
- s3: [, (_) => se_S3(_, context), `S3`],
3453
- });
3454
- };
3455
- const se_BrokerNodeGroupInfo = (input, context) => {
3456
- return (0, smithy_client_1.take)(input, {
3457
- brokerAZDistribution: [, , `BrokerAZDistribution`],
3458
- clientSubnets: [, smithy_client_1._json, `ClientSubnets`],
3459
- connectivityInfo: [, (_) => se_ConnectivityInfo(_, context), `ConnectivityInfo`],
3460
- instanceType: [, , `InstanceType`],
3461
- securityGroups: [, smithy_client_1._json, `SecurityGroups`],
3462
- storageInfo: [, (_) => se_StorageInfo(_, context), `StorageInfo`],
3463
- zoneIds: [, smithy_client_1._json, `ZoneIds`],
3464
- });
3465
- };
3466
- const se_ClientAuthentication = (input, context) => {
3467
- return (0, smithy_client_1.take)(input, {
3468
- sasl: [, (_) => se_Sasl(_, context), `Sasl`],
3469
- tls: [, (_) => se_Tls(_, context), `Tls`],
3470
- unauthenticated: [, (_) => se_Unauthenticated(_, context), `Unauthenticated`],
3471
- });
3472
- };
3473
- const se_CloudWatchLogs = (input, context) => {
3474
- return (0, smithy_client_1.take)(input, {
3475
- enabled: [, , `Enabled`],
3476
- logGroup: [, , `LogGroup`],
3477
- });
3478
- };
3479
- const se_ConfigurationInfo = (input, context) => {
3480
- return (0, smithy_client_1.take)(input, {
3481
- arn: [, , `Arn`],
3482
- revision: [, , `Revision`],
3483
- });
3484
- };
3485
- const se_ConnectivityInfo = (input, context) => {
3486
- return (0, smithy_client_1.take)(input, {
3487
- publicAccess: [, (_) => se_PublicAccess(_, context), `PublicAccess`],
3488
- vpcConnectivity: [, (_) => se_VpcConnectivity(_, context), `VpcConnectivity`],
3489
- });
3490
- };
3491
- const se_ConsumerGroupReplication = (input, context) => {
3492
- return (0, smithy_client_1.take)(input, {
3493
- consumerGroupsToExclude: [, smithy_client_1._json, `ConsumerGroupsToExclude`],
3494
- consumerGroupsToReplicate: [, smithy_client_1._json, `ConsumerGroupsToReplicate`],
3495
- detectAndCopyNewConsumerGroups: [, , `DetectAndCopyNewConsumerGroups`],
3496
- synchroniseConsumerGroupOffsets: [, , `SynchroniseConsumerGroupOffsets`],
3497
- });
3498
- };
3499
- const se_ConsumerGroupReplicationUpdate = (input, context) => {
3500
- return (0, smithy_client_1.take)(input, {
3501
- consumerGroupsToExclude: [, smithy_client_1._json, `ConsumerGroupsToExclude`],
3502
- consumerGroupsToReplicate: [, smithy_client_1._json, `ConsumerGroupsToReplicate`],
3503
- detectAndCopyNewConsumerGroups: [, , `DetectAndCopyNewConsumerGroups`],
3504
- synchroniseConsumerGroupOffsets: [, , `SynchroniseConsumerGroupOffsets`],
3505
- });
3506
- };
3507
- const se_EBSStorageInfo = (input, context) => {
3508
- return (0, smithy_client_1.take)(input, {
3509
- provisionedThroughput: [, (_) => se_ProvisionedThroughput(_, context), `ProvisionedThroughput`],
3510
- volumeSize: [, , `VolumeSize`],
3511
- });
3512
- };
3513
- const se_EncryptionAtRest = (input, context) => {
3514
- return (0, smithy_client_1.take)(input, {
3515
- dataVolumeKMSKeyId: [, , `DataVolumeKMSKeyId`],
3516
- });
3517
- };
3518
- const se_EncryptionInfo = (input, context) => {
3519
- return (0, smithy_client_1.take)(input, {
3520
- encryptionAtRest: [, (_) => se_EncryptionAtRest(_, context), `EncryptionAtRest`],
3521
- encryptionInTransit: [, (_) => se_EncryptionInTransit(_, context), `EncryptionInTransit`],
3522
- });
3523
- };
3524
- const se_EncryptionInTransit = (input, context) => {
3525
- return (0, smithy_client_1.take)(input, {
3526
- clientBroker: [, , `ClientBroker`],
3527
- inCluster: [, , `InCluster`],
3528
- });
3529
- };
3530
- const se_Firehose = (input, context) => {
3531
- return (0, smithy_client_1.take)(input, {
3532
- deliveryStream: [, , `DeliveryStream`],
3533
- enabled: [, , `Enabled`],
3534
- });
3535
- };
3536
- const se_Iam = (input, context) => {
3537
- return (0, smithy_client_1.take)(input, {
3538
- enabled: [, , `Enabled`],
3539
- });
3540
- };
3541
- const se_JmxExporterInfo = (input, context) => {
3542
- return (0, smithy_client_1.take)(input, {
3543
- enabledInBroker: [, , `EnabledInBroker`],
3544
- });
3545
- };
3546
- const se_KafkaCluster = (input, context) => {
3547
- return (0, smithy_client_1.take)(input, {
3548
- amazonMskCluster: [, (_) => se_AmazonMskCluster(_, context), `AmazonMskCluster`],
3549
- vpcConfig: [, (_) => se_KafkaClusterClientVpcConfig(_, context), `VpcConfig`],
3550
- });
3551
- };
3552
- const se_KafkaClusterClientVpcConfig = (input, context) => {
3553
- return (0, smithy_client_1.take)(input, {
3554
- securityGroupIds: [, smithy_client_1._json, `SecurityGroupIds`],
3555
- subnetIds: [, smithy_client_1._json, `SubnetIds`],
3556
- });
3557
- };
3558
- const se_LoggingInfo = (input, context) => {
3559
- return (0, smithy_client_1.take)(input, {
3560
- brokerLogs: [, (_) => se_BrokerLogs(_, context), `BrokerLogs`],
3561
- });
3562
- };
3563
- const se_NodeExporterInfo = (input, context) => {
3564
- return (0, smithy_client_1.take)(input, {
3565
- enabledInBroker: [, , `EnabledInBroker`],
3566
- });
3567
- };
3568
- const se_OpenMonitoringInfo = (input, context) => {
3569
- return (0, smithy_client_1.take)(input, {
3570
- prometheus: [, (_) => se_PrometheusInfo(_, context), `Prometheus`],
3571
- });
3572
- };
3573
- const se_PrometheusInfo = (input, context) => {
3574
- return (0, smithy_client_1.take)(input, {
3575
- jmxExporter: [, (_) => se_JmxExporterInfo(_, context), `JmxExporter`],
3576
- nodeExporter: [, (_) => se_NodeExporterInfo(_, context), `NodeExporter`],
3577
- });
3578
- };
3579
- const se_ProvisionedRequest = (input, context) => {
3580
- return (0, smithy_client_1.take)(input, {
3581
- brokerNodeGroupInfo: [, (_) => se_BrokerNodeGroupInfo(_, context), `BrokerNodeGroupInfo`],
3582
- clientAuthentication: [, (_) => se_ClientAuthentication(_, context), `ClientAuthentication`],
3583
- configurationInfo: [, (_) => se_ConfigurationInfo(_, context), `ConfigurationInfo`],
3584
- encryptionInfo: [, (_) => se_EncryptionInfo(_, context), `EncryptionInfo`],
3585
- enhancedMonitoring: [, , `EnhancedMonitoring`],
3586
- kafkaVersion: [, , `KafkaVersion`],
3587
- loggingInfo: [, (_) => se_LoggingInfo(_, context), `LoggingInfo`],
3588
- numberOfBrokerNodes: [, , `NumberOfBrokerNodes`],
3589
- openMonitoring: [, (_) => se_OpenMonitoringInfo(_, context), `OpenMonitoring`],
3590
- storageMode: [, , `StorageMode`],
3591
- });
3592
- };
3593
- const se_ProvisionedThroughput = (input, context) => {
3594
- return (0, smithy_client_1.take)(input, {
3595
- enabled: [, , `Enabled`],
3596
- volumeThroughput: [, , `VolumeThroughput`],
3597
- });
3598
- };
3599
- const se_PublicAccess = (input, context) => {
3600
- return (0, smithy_client_1.take)(input, {
3601
- type: [, , `Type`],
3602
- });
3603
- };
3604
- const se_ReplicationInfo = (input, context) => {
3605
- return (0, smithy_client_1.take)(input, {
3606
- consumerGroupReplication: [, (_) => se_ConsumerGroupReplication(_, context), `ConsumerGroupReplication`],
3607
- sourceKafkaClusterArn: [, , `SourceKafkaClusterArn`],
3608
- targetCompressionType: [, , `TargetCompressionType`],
3609
- targetKafkaClusterArn: [, , `TargetKafkaClusterArn`],
3610
- topicReplication: [, (_) => se_TopicReplication(_, context), `TopicReplication`],
3611
- });
3612
- };
3613
- const se_S3 = (input, context) => {
3614
- return (0, smithy_client_1.take)(input, {
3615
- bucket: [, , `Bucket`],
3616
- enabled: [, , `Enabled`],
3617
- prefix: [, , `Prefix`],
3618
- });
3619
- };
3620
- const se_Sasl = (input, context) => {
3621
- return (0, smithy_client_1.take)(input, {
3622
- iam: [, (_) => se_Iam(_, context), `Iam`],
3623
- scram: [, (_) => se_Scram(_, context), `Scram`],
3624
- });
3625
- };
3626
- const se_Scram = (input, context) => {
3627
- return (0, smithy_client_1.take)(input, {
3628
- enabled: [, , `Enabled`],
3629
- });
3630
- };
3631
- const se_ServerlessClientAuthentication = (input, context) => {
3632
- return (0, smithy_client_1.take)(input, {
3633
- sasl: [, (_) => se_ServerlessSasl(_, context), `Sasl`],
3634
- });
3635
- };
3636
- const se_ServerlessRequest = (input, context) => {
3637
- return (0, smithy_client_1.take)(input, {
3638
- clientAuthentication: [, (_) => se_ServerlessClientAuthentication(_, context), `ClientAuthentication`],
3639
- vpcConfigs: [, (_) => se___listOfVpcConfig(_, context), `VpcConfigs`],
3640
- });
3641
- };
3642
- const se_ServerlessSasl = (input, context) => {
3643
- return (0, smithy_client_1.take)(input, {
3644
- iam: [, (_) => se_Iam(_, context), `Iam`],
3645
- });
3646
- };
3647
- const se_StorageInfo = (input, context) => {
3648
- return (0, smithy_client_1.take)(input, {
3649
- ebsStorageInfo: [, (_) => se_EBSStorageInfo(_, context), `EbsStorageInfo`],
3650
- });
3651
- };
3652
- const se_Tls = (input, context) => {
3653
- return (0, smithy_client_1.take)(input, {
3654
- certificateAuthorityArnList: [, smithy_client_1._json, `CertificateAuthorityArnList`],
3655
- enabled: [, , `Enabled`],
3656
- });
3657
- };
3658
- const se_TopicReplication = (input, context) => {
3659
- return (0, smithy_client_1.take)(input, {
3660
- copyAccessControlListsForTopics: [, , `CopyAccessControlListsForTopics`],
3661
- copyTopicConfigurations: [, , `CopyTopicConfigurations`],
3662
- detectAndCopyNewTopics: [, , `DetectAndCopyNewTopics`],
3663
- topicsToExclude: [, smithy_client_1._json, `TopicsToExclude`],
3664
- topicsToReplicate: [, smithy_client_1._json, `TopicsToReplicate`],
3665
- });
3666
- };
3667
- const se_TopicReplicationUpdate = (input, context) => {
3668
- return (0, smithy_client_1.take)(input, {
3669
- copyAccessControlListsForTopics: [, , `CopyAccessControlListsForTopics`],
3670
- copyTopicConfigurations: [, , `CopyTopicConfigurations`],
3671
- detectAndCopyNewTopics: [, , `DetectAndCopyNewTopics`],
3672
- topicsToExclude: [, smithy_client_1._json, `TopicsToExclude`],
3673
- topicsToReplicate: [, smithy_client_1._json, `TopicsToReplicate`],
3674
- });
3675
- };
3676
- const se_Unauthenticated = (input, context) => {
3677
- return (0, smithy_client_1.take)(input, {
3678
- enabled: [, , `Enabled`],
3679
- });
3680
- };
3681
- const se_VpcConfig = (input, context) => {
3682
- return (0, smithy_client_1.take)(input, {
3683
- securityGroupIds: [, smithy_client_1._json, `SecurityGroupIds`],
3684
- subnetIds: [, smithy_client_1._json, `SubnetIds`],
3685
- });
3686
- };
3687
- const se_VpcConnectivity = (input, context) => {
3688
- return (0, smithy_client_1.take)(input, {
3689
- clientAuthentication: [, (_) => se_VpcConnectivityClientAuthentication(_, context), `ClientAuthentication`],
3690
- });
3691
- };
3692
- const se_VpcConnectivityClientAuthentication = (input, context) => {
3693
- return (0, smithy_client_1.take)(input, {
3694
- sasl: [, (_) => se_VpcConnectivitySasl(_, context), `Sasl`],
3695
- tls: [, (_) => se_VpcConnectivityTls(_, context), `Tls`],
3696
- });
3697
- };
3698
- const se_VpcConnectivityIam = (input, context) => {
3699
- return (0, smithy_client_1.take)(input, {
3700
- enabled: [, , `Enabled`],
3701
- });
3702
- };
3703
- const se_VpcConnectivitySasl = (input, context) => {
3704
- return (0, smithy_client_1.take)(input, {
3705
- iam: [, (_) => se_VpcConnectivityIam(_, context), `Iam`],
3706
- scram: [, (_) => se_VpcConnectivityScram(_, context), `Scram`],
3707
- });
3708
- };
3709
- const se_VpcConnectivityScram = (input, context) => {
3710
- return (0, smithy_client_1.take)(input, {
3711
- enabled: [, , `Enabled`],
3712
- });
3713
- };
3714
- const se_VpcConnectivityTls = (input, context) => {
3715
- return (0, smithy_client_1.take)(input, {
3716
- enabled: [, , `Enabled`],
3717
- });
3718
- };
3719
- const de___listOfBrokerEBSVolumeInfo = (output, context) => {
3720
- const retVal = (output || [])
3721
- .filter((e) => e != null)
3722
- .map((entry) => {
3723
- return de_BrokerEBSVolumeInfo(entry, context);
3724
- });
3725
- return retVal;
3726
- };
3727
- const de___listOfClientVpcConnection = (output, context) => {
3728
- const retVal = (output || [])
3729
- .filter((e) => e != null)
3730
- .map((entry) => {
3731
- return de_ClientVpcConnection(entry, context);
3732
- });
3733
- return retVal;
3734
- };
3735
- const de___listOfCluster = (output, context) => {
3736
- const retVal = (output || [])
3737
- .filter((e) => e != null)
3738
- .map((entry) => {
3739
- return de_Cluster(entry, context);
3740
- });
3741
- return retVal;
3742
- };
3743
- const de___listOfClusterInfo = (output, context) => {
3744
- const retVal = (output || [])
3745
- .filter((e) => e != null)
3746
- .map((entry) => {
3747
- return de_ClusterInfo(entry, context);
3748
- });
3749
- return retVal;
3750
- };
3751
- const de___listOfClusterOperationInfo = (output, context) => {
3752
- const retVal = (output || [])
3753
- .filter((e) => e != null)
3754
- .map((entry) => {
3755
- return de_ClusterOperationInfo(entry, context);
3756
- });
3757
- return retVal;
3758
- };
3759
- const de___listOfClusterOperationStep = (output, context) => {
3760
- const retVal = (output || [])
3761
- .filter((e) => e != null)
3762
- .map((entry) => {
3763
- return de_ClusterOperationStep(entry, context);
3764
- });
3765
- return retVal;
3766
- };
3767
- const de___listOfClusterOperationV2Summary = (output, context) => {
3768
- const retVal = (output || [])
3769
- .filter((e) => e != null)
3770
- .map((entry) => {
3771
- return de_ClusterOperationV2Summary(entry, context);
3772
- });
3773
- return retVal;
3774
- };
3775
- const de___listOfCompatibleKafkaVersion = (output, context) => {
3776
- const retVal = (output || [])
3777
- .filter((e) => e != null)
3778
- .map((entry) => {
3779
- return de_CompatibleKafkaVersion(entry, context);
3780
- });
3781
- return retVal;
3782
- };
3783
- const de___listOfConfiguration = (output, context) => {
3784
- const retVal = (output || [])
3785
- .filter((e) => e != null)
3786
- .map((entry) => {
3787
- return de_Configuration(entry, context);
3788
- });
3789
- return retVal;
3790
- };
3791
- const de___listOfConfigurationRevision = (output, context) => {
3792
- const retVal = (output || [])
3793
- .filter((e) => e != null)
3794
- .map((entry) => {
3795
- return de_ConfigurationRevision(entry, context);
3796
- });
3797
- return retVal;
3798
- };
3799
- const de___listOfKafkaClusterDescription = (output, context) => {
3800
- const retVal = (output || [])
3801
- .filter((e) => e != null)
3802
- .map((entry) => {
3803
- return de_KafkaClusterDescription(entry, context);
3804
- });
3805
- return retVal;
3806
- };
3807
- const de___listOfKafkaClusterSummary = (output, context) => {
3808
- const retVal = (output || [])
3809
- .filter((e) => e != null)
3810
- .map((entry) => {
3811
- return de_KafkaClusterSummary(entry, context);
3812
- });
3813
- return retVal;
3814
- };
3815
- const de___listOfKafkaVersion = (output, context) => {
3816
- const retVal = (output || [])
3817
- .filter((e) => e != null)
3818
- .map((entry) => {
3819
- return de_KafkaVersion(entry, context);
3820
- });
3821
- return retVal;
3822
- };
3823
- const de___listOfNodeInfo = (output, context) => {
3824
- const retVal = (output || [])
3825
- .filter((e) => e != null)
3826
- .map((entry) => {
3827
- return de_NodeInfo(entry, context);
3828
- });
3829
- return retVal;
3830
- };
3831
- const de___listOfReplicationInfoDescription = (output, context) => {
3832
- const retVal = (output || [])
3833
- .filter((e) => e != null)
3834
- .map((entry) => {
3835
- return de_ReplicationInfoDescription(entry, context);
3836
- });
3837
- return retVal;
3838
- };
3839
- const de___listOfReplicationInfoSummary = (output, context) => {
3840
- const retVal = (output || [])
3841
- .filter((e) => e != null)
3842
- .map((entry) => {
3843
- return de_ReplicationInfoSummary(entry, context);
3844
- });
3845
- return retVal;
3846
- };
3847
- const de___listOfReplicatorSummary = (output, context) => {
3848
- const retVal = (output || [])
3849
- .filter((e) => e != null)
3850
- .map((entry) => {
3851
- return de_ReplicatorSummary(entry, context);
3852
- });
3853
- return retVal;
3854
- };
3855
- const de___listOfUnprocessedScramSecret = (output, context) => {
3856
- const retVal = (output || [])
3857
- .filter((e) => e != null)
3858
- .map((entry) => {
3859
- return de_UnprocessedScramSecret(entry, context);
3860
- });
3861
- return retVal;
3862
- };
3863
- const de___listOfVpcConfig = (output, context) => {
3864
- const retVal = (output || [])
3865
- .filter((e) => e != null)
3866
- .map((entry) => {
3867
- return de_VpcConfig(entry, context);
3868
- });
3869
- return retVal;
3870
- };
3871
- const de___listOfVpcConnection = (output, context) => {
3872
- const retVal = (output || [])
3873
- .filter((e) => e != null)
3874
- .map((entry) => {
3875
- return de_VpcConnection(entry, context);
3876
- });
3877
- return retVal;
3878
- };
3879
- const de_AmazonMskCluster = (output, context) => {
3880
- return (0, smithy_client_1.take)(output, {
3881
- MskClusterArn: [, smithy_client_1.expectString, `mskClusterArn`],
3882
- });
3883
- };
3884
- const de_BrokerEBSVolumeInfo = (output, context) => {
3885
- return (0, smithy_client_1.take)(output, {
3886
- KafkaBrokerNodeId: [, smithy_client_1.expectString, `kafkaBrokerNodeId`],
3887
- ProvisionedThroughput: [, (_) => de_ProvisionedThroughput(_, context), `provisionedThroughput`],
3888
- VolumeSizeGB: [, smithy_client_1.expectInt32, `volumeSizeGB`],
3889
- });
3890
- };
3891
- const de_BrokerLogs = (output, context) => {
3892
- return (0, smithy_client_1.take)(output, {
3893
- CloudWatchLogs: [, (_) => de_CloudWatchLogs(_, context), `cloudWatchLogs`],
3894
- Firehose: [, (_) => de_Firehose(_, context), `firehose`],
3895
- S3: [, (_) => de_S3(_, context), `s3`],
3896
- });
3897
- };
3898
- const de_BrokerNodeGroupInfo = (output, context) => {
3899
- return (0, smithy_client_1.take)(output, {
3900
- BrokerAZDistribution: [, smithy_client_1.expectString, `brokerAZDistribution`],
3901
- ClientSubnets: [, smithy_client_1._json, `clientSubnets`],
3902
- ConnectivityInfo: [, (_) => de_ConnectivityInfo(_, context), `connectivityInfo`],
3903
- InstanceType: [, smithy_client_1.expectString, `instanceType`],
3904
- SecurityGroups: [, smithy_client_1._json, `securityGroups`],
3905
- StorageInfo: [, (_) => de_StorageInfo(_, context), `storageInfo`],
3906
- ZoneIds: [, smithy_client_1._json, `zoneIds`],
3907
- });
3908
- };
3909
- const de_BrokerNodeInfo = (output, context) => {
3910
- return (0, smithy_client_1.take)(output, {
3911
- AttachedENIId: [, smithy_client_1.expectString, `attachedENIId`],
3912
- BrokerId: [, smithy_client_1.limitedParseDouble, `brokerId`],
3913
- ClientSubnet: [, smithy_client_1.expectString, `clientSubnet`],
3914
- ClientVpcIpAddress: [, smithy_client_1.expectString, `clientVpcIpAddress`],
3915
- CurrentBrokerSoftwareInfo: [, (_) => de_BrokerSoftwareInfo(_, context), `currentBrokerSoftwareInfo`],
3916
- Endpoints: [, smithy_client_1._json, `endpoints`],
3917
- });
3918
- };
3919
- const de_BrokerSoftwareInfo = (output, context) => {
3920
- return (0, smithy_client_1.take)(output, {
3921
- ConfigurationArn: [, smithy_client_1.expectString, `configurationArn`],
3922
- ConfigurationRevision: [, smithy_client_1.expectLong, `configurationRevision`],
3923
- KafkaVersion: [, smithy_client_1.expectString, `kafkaVersion`],
3924
- });
3925
- };
3926
- const de_ClientAuthentication = (output, context) => {
3927
- return (0, smithy_client_1.take)(output, {
3928
- Sasl: [, (_) => de_Sasl(_, context), `sasl`],
3929
- Tls: [, (_) => de_Tls(_, context), `tls`],
3930
- Unauthenticated: [, (_) => de_Unauthenticated(_, context), `unauthenticated`],
3931
- });
3932
- };
3933
- const de_ClientVpcConnection = (output, context) => {
3934
- return (0, smithy_client_1.take)(output, {
3935
- Authentication: [, smithy_client_1.expectString, `authentication`],
3936
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
3937
- Owner: [, smithy_client_1.expectString, `owner`],
3938
- State: [, smithy_client_1.expectString, `state`],
3939
- VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
3940
- });
3941
- };
3942
- const de_CloudWatchLogs = (output, context) => {
3943
- return (0, smithy_client_1.take)(output, {
3944
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
3945
- LogGroup: [, smithy_client_1.expectString, `logGroup`],
3946
- });
3947
- };
3948
- const de_Cluster = (output, context) => {
3949
- return (0, smithy_client_1.take)(output, {
3950
- ActiveOperationArn: [, smithy_client_1.expectString, `activeOperationArn`],
3951
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
3952
- ClusterName: [, smithy_client_1.expectString, `clusterName`],
3953
- ClusterType: [, smithy_client_1.expectString, `clusterType`],
3954
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
3955
- CurrentVersion: [, smithy_client_1.expectString, `currentVersion`],
3956
- Provisioned: [, (_) => de_Provisioned(_, context), `provisioned`],
3957
- Serverless: [, (_) => de_Serverless(_, context), `serverless`],
3958
- State: [, smithy_client_1.expectString, `state`],
3959
- StateInfo: [, (_) => de_StateInfo(_, context), `stateInfo`],
3960
- Tags: [, smithy_client_1._json, `tags`],
3961
- });
3962
- };
3963
- const de_ClusterInfo = (output, context) => {
3964
- return (0, smithy_client_1.take)(output, {
3965
- ActiveOperationArn: [, smithy_client_1.expectString, `activeOperationArn`],
3966
- BrokerNodeGroupInfo: [, (_) => de_BrokerNodeGroupInfo(_, context), `brokerNodeGroupInfo`],
3967
- ClientAuthentication: [, (_) => de_ClientAuthentication(_, context), `clientAuthentication`],
3968
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
3969
- ClusterName: [, smithy_client_1.expectString, `clusterName`],
3970
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
3971
- CurrentBrokerSoftwareInfo: [, (_) => de_BrokerSoftwareInfo(_, context), `currentBrokerSoftwareInfo`],
3972
- CurrentVersion: [, smithy_client_1.expectString, `currentVersion`],
3973
- CustomerActionStatus: [, smithy_client_1.expectString, `customerActionStatus`],
3974
- EncryptionInfo: [, (_) => de_EncryptionInfo(_, context), `encryptionInfo`],
3975
- EnhancedMonitoring: [, smithy_client_1.expectString, `enhancedMonitoring`],
3976
- LoggingInfo: [, (_) => de_LoggingInfo(_, context), `loggingInfo`],
3977
- NumberOfBrokerNodes: [, smithy_client_1.expectInt32, `numberOfBrokerNodes`],
3978
- OpenMonitoring: [, (_) => de_OpenMonitoring(_, context), `openMonitoring`],
3979
- State: [, smithy_client_1.expectString, `state`],
3980
- StateInfo: [, (_) => de_StateInfo(_, context), `stateInfo`],
3981
- StorageMode: [, smithy_client_1.expectString, `storageMode`],
3982
- Tags: [, smithy_client_1._json, `tags`],
3983
- ZookeeperConnectString: [, smithy_client_1.expectString, `zookeeperConnectString`],
3984
- ZookeeperConnectStringTls: [, smithy_client_1.expectString, `zookeeperConnectStringTls`],
3985
- });
3986
- };
3987
- const de_ClusterOperationInfo = (output, context) => {
3988
- return (0, smithy_client_1.take)(output, {
3989
- ClientRequestId: [, smithy_client_1.expectString, `clientRequestId`],
3990
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
3991
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
3992
- EndTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `endTime`],
3993
- ErrorInfo: [, (_) => de_ErrorInfo(_, context), `errorInfo`],
3994
- OperationArn: [, smithy_client_1.expectString, `operationArn`],
3995
- OperationState: [, smithy_client_1.expectString, `operationState`],
3996
- OperationSteps: [, (_) => de___listOfClusterOperationStep(_, context), `operationSteps`],
3997
- OperationType: [, smithy_client_1.expectString, `operationType`],
3998
- SourceClusterInfo: [, (_) => de_MutableClusterInfo(_, context), `sourceClusterInfo`],
3999
- TargetClusterInfo: [, (_) => de_MutableClusterInfo(_, context), `targetClusterInfo`],
4000
- VpcConnectionInfo: [, (_) => de_VpcConnectionInfo(_, context), `vpcConnectionInfo`],
4001
- });
4002
- };
4003
- const de_ClusterOperationStep = (output, context) => {
4004
- return (0, smithy_client_1.take)(output, {
4005
- StepInfo: [, (_) => de_ClusterOperationStepInfo(_, context), `stepInfo`],
4006
- StepName: [, smithy_client_1.expectString, `stepName`],
4007
- });
4008
- };
4009
- const de_ClusterOperationStepInfo = (output, context) => {
4010
- return (0, smithy_client_1.take)(output, {
4011
- StepStatus: [, smithy_client_1.expectString, `stepStatus`],
4012
- });
4013
- };
4014
- const de_ClusterOperationV2 = (output, context) => {
4015
- return (0, smithy_client_1.take)(output, {
4016
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
4017
- ClusterType: [, smithy_client_1.expectString, `clusterType`],
4018
- EndTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `endTime`],
4019
- ErrorInfo: [, (_) => de_ErrorInfo(_, context), `errorInfo`],
4020
- OperationArn: [, smithy_client_1.expectString, `operationArn`],
4021
- OperationState: [, smithy_client_1.expectString, `operationState`],
4022
- OperationType: [, smithy_client_1.expectString, `operationType`],
4023
- Provisioned: [, (_) => de_ClusterOperationV2Provisioned(_, context), `provisioned`],
4024
- Serverless: [, (_) => de_ClusterOperationV2Serverless(_, context), `serverless`],
4025
- StartTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `startTime`],
4026
- });
4027
- };
4028
- const de_ClusterOperationV2Provisioned = (output, context) => {
4029
- return (0, smithy_client_1.take)(output, {
4030
- OperationSteps: [, (_) => de___listOfClusterOperationStep(_, context), `operationSteps`],
4031
- SourceClusterInfo: [, (_) => de_MutableClusterInfo(_, context), `sourceClusterInfo`],
4032
- TargetClusterInfo: [, (_) => de_MutableClusterInfo(_, context), `targetClusterInfo`],
4033
- VpcConnectionInfo: [, (_) => de_VpcConnectionInfo(_, context), `vpcConnectionInfo`],
4034
- });
4035
- };
4036
- const de_ClusterOperationV2Serverless = (output, context) => {
4037
- return (0, smithy_client_1.take)(output, {
4038
- VpcConnectionInfo: [, (_) => de_VpcConnectionInfoServerless(_, context), `vpcConnectionInfo`],
4039
- });
4040
- };
4041
- const de_ClusterOperationV2Summary = (output, context) => {
4042
- return (0, smithy_client_1.take)(output, {
4043
- ClusterArn: [, smithy_client_1.expectString, `clusterArn`],
4044
- ClusterType: [, smithy_client_1.expectString, `clusterType`],
4045
- EndTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `endTime`],
4046
- OperationArn: [, smithy_client_1.expectString, `operationArn`],
4047
- OperationState: [, smithy_client_1.expectString, `operationState`],
4048
- OperationType: [, smithy_client_1.expectString, `operationType`],
4049
- StartTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `startTime`],
4050
- });
4051
- };
4052
- const de_CompatibleKafkaVersion = (output, context) => {
4053
- return (0, smithy_client_1.take)(output, {
4054
- SourceVersion: [, smithy_client_1.expectString, `sourceVersion`],
4055
- TargetVersions: [, smithy_client_1._json, `targetVersions`],
4056
- });
4057
- };
4058
- const de_Configuration = (output, context) => {
4059
- return (0, smithy_client_1.take)(output, {
4060
- Arn: [, smithy_client_1.expectString, `arn`],
4061
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
4062
- Description: [, smithy_client_1.expectString, `description`],
4063
- KafkaVersions: [, smithy_client_1._json, `kafkaVersions`],
4064
- LatestRevision: [, (_) => de_ConfigurationRevision(_, context), `latestRevision`],
4065
- Name: [, smithy_client_1.expectString, `name`],
4066
- State: [, smithy_client_1.expectString, `state`],
4067
- });
4068
- };
4069
- const de_ConfigurationInfo = (output, context) => {
4070
- return (0, smithy_client_1.take)(output, {
4071
- Arn: [, smithy_client_1.expectString, `arn`],
4072
- Revision: [, smithy_client_1.expectLong, `revision`],
4073
- });
4074
- };
4075
- const de_ConfigurationRevision = (output, context) => {
4076
- return (0, smithy_client_1.take)(output, {
4077
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
4078
- Description: [, smithy_client_1.expectString, `description`],
4079
- Revision: [, smithy_client_1.expectLong, `revision`],
4080
- });
4081
- };
4082
- const de_ConnectivityInfo = (output, context) => {
4083
- return (0, smithy_client_1.take)(output, {
4084
- PublicAccess: [, (_) => de_PublicAccess(_, context), `publicAccess`],
4085
- VpcConnectivity: [, (_) => de_VpcConnectivity(_, context), `vpcConnectivity`],
4086
- });
4087
- };
4088
- const de_ConsumerGroupReplication = (output, context) => {
4089
- return (0, smithy_client_1.take)(output, {
4090
- ConsumerGroupsToExclude: [, smithy_client_1._json, `consumerGroupsToExclude`],
4091
- ConsumerGroupsToReplicate: [, smithy_client_1._json, `consumerGroupsToReplicate`],
4092
- DetectAndCopyNewConsumerGroups: [, smithy_client_1.expectBoolean, `detectAndCopyNewConsumerGroups`],
4093
- SynchroniseConsumerGroupOffsets: [, smithy_client_1.expectBoolean, `synchroniseConsumerGroupOffsets`],
4094
- });
4095
- };
4096
- const de_EBSStorageInfo = (output, context) => {
4097
- return (0, smithy_client_1.take)(output, {
4098
- ProvisionedThroughput: [, (_) => de_ProvisionedThroughput(_, context), `provisionedThroughput`],
4099
- VolumeSize: [, smithy_client_1.expectInt32, `volumeSize`],
4100
- });
4101
- };
4102
- const de_EncryptionAtRest = (output, context) => {
4103
- return (0, smithy_client_1.take)(output, {
4104
- DataVolumeKMSKeyId: [, smithy_client_1.expectString, `dataVolumeKMSKeyId`],
4105
- });
4106
- };
4107
- const de_EncryptionInfo = (output, context) => {
4108
- return (0, smithy_client_1.take)(output, {
4109
- EncryptionAtRest: [, (_) => de_EncryptionAtRest(_, context), `encryptionAtRest`],
4110
- EncryptionInTransit: [, (_) => de_EncryptionInTransit(_, context), `encryptionInTransit`],
4111
- });
4112
- };
4113
- const de_EncryptionInTransit = (output, context) => {
4114
- return (0, smithy_client_1.take)(output, {
4115
- ClientBroker: [, smithy_client_1.expectString, `clientBroker`],
4116
- InCluster: [, smithy_client_1.expectBoolean, `inCluster`],
4117
- });
4118
- };
4119
- const de_ErrorInfo = (output, context) => {
4120
- return (0, smithy_client_1.take)(output, {
4121
- ErrorCode: [, smithy_client_1.expectString, `errorCode`],
4122
- ErrorString: [, smithy_client_1.expectString, `errorString`],
4123
- });
4124
- };
4125
- const de_Firehose = (output, context) => {
4126
- return (0, smithy_client_1.take)(output, {
4127
- DeliveryStream: [, smithy_client_1.expectString, `deliveryStream`],
4128
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4129
- });
4130
- };
4131
- const de_Iam = (output, context) => {
4132
- return (0, smithy_client_1.take)(output, {
4133
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4134
- });
4135
- };
4136
- const de_JmxExporter = (output, context) => {
4137
- return (0, smithy_client_1.take)(output, {
4138
- EnabledInBroker: [, smithy_client_1.expectBoolean, `enabledInBroker`],
4139
- });
4140
- };
4141
- const de_JmxExporterInfo = (output, context) => {
4142
- return (0, smithy_client_1.take)(output, {
4143
- EnabledInBroker: [, smithy_client_1.expectBoolean, `enabledInBroker`],
4144
- });
4145
- };
4146
- const de_KafkaClusterClientVpcConfig = (output, context) => {
4147
- return (0, smithy_client_1.take)(output, {
4148
- SecurityGroupIds: [, smithy_client_1._json, `securityGroupIds`],
4149
- SubnetIds: [, smithy_client_1._json, `subnetIds`],
4150
- });
4151
- };
4152
- const de_KafkaClusterDescription = (output, context) => {
4153
- return (0, smithy_client_1.take)(output, {
4154
- AmazonMskCluster: [, (_) => de_AmazonMskCluster(_, context), `amazonMskCluster`],
4155
- KafkaClusterAlias: [, smithy_client_1.expectString, `kafkaClusterAlias`],
4156
- VpcConfig: [, (_) => de_KafkaClusterClientVpcConfig(_, context), `vpcConfig`],
4157
- });
4158
- };
4159
- const de_KafkaClusterSummary = (output, context) => {
4160
- return (0, smithy_client_1.take)(output, {
4161
- AmazonMskCluster: [, (_) => de_AmazonMskCluster(_, context), `amazonMskCluster`],
4162
- KafkaClusterAlias: [, smithy_client_1.expectString, `kafkaClusterAlias`],
4163
- });
4164
- };
4165
- const de_KafkaVersion = (output, context) => {
4166
- return (0, smithy_client_1.take)(output, {
4167
- Status: [, smithy_client_1.expectString, `status`],
4168
- Version: [, smithy_client_1.expectString, `version`],
4169
- });
4170
- };
4171
- const de_LoggingInfo = (output, context) => {
4172
- return (0, smithy_client_1.take)(output, {
4173
- BrokerLogs: [, (_) => de_BrokerLogs(_, context), `brokerLogs`],
4174
- });
4175
- };
4176
- const de_MutableClusterInfo = (output, context) => {
4177
- return (0, smithy_client_1.take)(output, {
4178
- BrokerEBSVolumeInfo: [, (_) => de___listOfBrokerEBSVolumeInfo(_, context), `brokerEBSVolumeInfo`],
4179
- ClientAuthentication: [, (_) => de_ClientAuthentication(_, context), `clientAuthentication`],
4180
- ConfigurationInfo: [, (_) => de_ConfigurationInfo(_, context), `configurationInfo`],
4181
- ConnectivityInfo: [, (_) => de_ConnectivityInfo(_, context), `connectivityInfo`],
4182
- EncryptionInfo: [, (_) => de_EncryptionInfo(_, context), `encryptionInfo`],
4183
- EnhancedMonitoring: [, smithy_client_1.expectString, `enhancedMonitoring`],
4184
- InstanceType: [, smithy_client_1.expectString, `instanceType`],
4185
- KafkaVersion: [, smithy_client_1.expectString, `kafkaVersion`],
4186
- LoggingInfo: [, (_) => de_LoggingInfo(_, context), `loggingInfo`],
4187
- NumberOfBrokerNodes: [, smithy_client_1.expectInt32, `numberOfBrokerNodes`],
4188
- OpenMonitoring: [, (_) => de_OpenMonitoring(_, context), `openMonitoring`],
4189
- StorageMode: [, smithy_client_1.expectString, `storageMode`],
4190
- });
4191
- };
4192
- const de_NodeExporter = (output, context) => {
4193
- return (0, smithy_client_1.take)(output, {
4194
- EnabledInBroker: [, smithy_client_1.expectBoolean, `enabledInBroker`],
4195
- });
4196
- };
4197
- const de_NodeExporterInfo = (output, context) => {
4198
- return (0, smithy_client_1.take)(output, {
4199
- EnabledInBroker: [, smithy_client_1.expectBoolean, `enabledInBroker`],
4200
- });
4201
- };
4202
- const de_NodeInfo = (output, context) => {
4203
- return (0, smithy_client_1.take)(output, {
4204
- AddedToClusterTime: [, smithy_client_1.expectString, `addedToClusterTime`],
4205
- BrokerNodeInfo: [, (_) => de_BrokerNodeInfo(_, context), `brokerNodeInfo`],
4206
- InstanceType: [, smithy_client_1.expectString, `instanceType`],
4207
- NodeARN: [, smithy_client_1.expectString, `nodeARN`],
4208
- NodeType: [, smithy_client_1.expectString, `nodeType`],
4209
- ZookeeperNodeInfo: [, (_) => de_ZookeeperNodeInfo(_, context), `zookeeperNodeInfo`],
4210
- });
4211
- };
4212
- const de_OpenMonitoring = (output, context) => {
4213
- return (0, smithy_client_1.take)(output, {
4214
- Prometheus: [, (_) => de_Prometheus(_, context), `prometheus`],
4215
- });
4216
- };
4217
- const de_OpenMonitoringInfo = (output, context) => {
4218
- return (0, smithy_client_1.take)(output, {
4219
- Prometheus: [, (_) => de_PrometheusInfo(_, context), `prometheus`],
4220
- });
4221
- };
4222
- const de_Prometheus = (output, context) => {
4223
- return (0, smithy_client_1.take)(output, {
4224
- JmxExporter: [, (_) => de_JmxExporter(_, context), `jmxExporter`],
4225
- NodeExporter: [, (_) => de_NodeExporter(_, context), `nodeExporter`],
4226
- });
4227
- };
4228
- const de_PrometheusInfo = (output, context) => {
4229
- return (0, smithy_client_1.take)(output, {
4230
- JmxExporter: [, (_) => de_JmxExporterInfo(_, context), `jmxExporter`],
4231
- NodeExporter: [, (_) => de_NodeExporterInfo(_, context), `nodeExporter`],
4232
- });
4233
- };
4234
- const de_Provisioned = (output, context) => {
4235
- return (0, smithy_client_1.take)(output, {
4236
- BrokerNodeGroupInfo: [, (_) => de_BrokerNodeGroupInfo(_, context), `brokerNodeGroupInfo`],
4237
- ClientAuthentication: [, (_) => de_ClientAuthentication(_, context), `clientAuthentication`],
4238
- CurrentBrokerSoftwareInfo: [, (_) => de_BrokerSoftwareInfo(_, context), `currentBrokerSoftwareInfo`],
4239
- CustomerActionStatus: [, smithy_client_1.expectString, `customerActionStatus`],
4240
- EncryptionInfo: [, (_) => de_EncryptionInfo(_, context), `encryptionInfo`],
4241
- EnhancedMonitoring: [, smithy_client_1.expectString, `enhancedMonitoring`],
4242
- LoggingInfo: [, (_) => de_LoggingInfo(_, context), `loggingInfo`],
4243
- NumberOfBrokerNodes: [, smithy_client_1.expectInt32, `numberOfBrokerNodes`],
4244
- OpenMonitoring: [, (_) => de_OpenMonitoringInfo(_, context), `openMonitoring`],
4245
- StorageMode: [, smithy_client_1.expectString, `storageMode`],
4246
- ZookeeperConnectString: [, smithy_client_1.expectString, `zookeeperConnectString`],
4247
- ZookeeperConnectStringTls: [, smithy_client_1.expectString, `zookeeperConnectStringTls`],
4248
- });
4249
- };
4250
- const de_ProvisionedThroughput = (output, context) => {
4251
- return (0, smithy_client_1.take)(output, {
4252
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4253
- VolumeThroughput: [, smithy_client_1.expectInt32, `volumeThroughput`],
4254
- });
4255
- };
4256
- const de_PublicAccess = (output, context) => {
4257
- return (0, smithy_client_1.take)(output, {
4258
- Type: [, smithy_client_1.expectString, `type`],
4259
- });
4260
- };
4261
- const de_ReplicationInfoDescription = (output, context) => {
4262
- return (0, smithy_client_1.take)(output, {
4263
- ConsumerGroupReplication: [, (_) => de_ConsumerGroupReplication(_, context), `consumerGroupReplication`],
4264
- SourceKafkaClusterAlias: [, smithy_client_1.expectString, `sourceKafkaClusterAlias`],
4265
- TargetCompressionType: [, smithy_client_1.expectString, `targetCompressionType`],
4266
- TargetKafkaClusterAlias: [, smithy_client_1.expectString, `targetKafkaClusterAlias`],
4267
- TopicReplication: [, (_) => de_TopicReplication(_, context), `topicReplication`],
4268
- });
4269
- };
4270
- const de_ReplicationInfoSummary = (output, context) => {
4271
- return (0, smithy_client_1.take)(output, {
4272
- SourceKafkaClusterAlias: [, smithy_client_1.expectString, `sourceKafkaClusterAlias`],
4273
- TargetKafkaClusterAlias: [, smithy_client_1.expectString, `targetKafkaClusterAlias`],
4274
- });
4275
- };
4276
- const de_ReplicationStateInfo = (output, context) => {
4277
- return (0, smithy_client_1.take)(output, {
4278
- Code: [, smithy_client_1.expectString, `code`],
4279
- Message: [, smithy_client_1.expectString, `message`],
4280
- });
4281
- };
4282
- const de_ReplicatorSummary = (output, context) => {
4283
- return (0, smithy_client_1.take)(output, {
4284
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
4285
- CurrentVersion: [, smithy_client_1.expectString, `currentVersion`],
4286
- IsReplicatorReference: [, smithy_client_1.expectBoolean, `isReplicatorReference`],
4287
- KafkaClustersSummary: [, (_) => de___listOfKafkaClusterSummary(_, context), `kafkaClustersSummary`],
4288
- ReplicationInfoSummaryList: [
4289
- ,
4290
- (_) => de___listOfReplicationInfoSummary(_, context),
4291
- `replicationInfoSummaryList`,
4292
- ],
4293
- ReplicatorArn: [, smithy_client_1.expectString, `replicatorArn`],
4294
- ReplicatorName: [, smithy_client_1.expectString, `replicatorName`],
4295
- ReplicatorResourceArn: [, smithy_client_1.expectString, `replicatorResourceArn`],
4296
- ReplicatorState: [, smithy_client_1.expectString, `replicatorState`],
4297
- });
4298
- };
4299
- const de_S3 = (output, context) => {
4300
- return (0, smithy_client_1.take)(output, {
4301
- Bucket: [, smithy_client_1.expectString, `bucket`],
4302
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4303
- Prefix: [, smithy_client_1.expectString, `prefix`],
4304
- });
4305
- };
4306
- const de_Sasl = (output, context) => {
4307
- return (0, smithy_client_1.take)(output, {
4308
- Iam: [, (_) => de_Iam(_, context), `iam`],
4309
- Scram: [, (_) => de_Scram(_, context), `scram`],
4310
- });
4311
- };
4312
- const de_Scram = (output, context) => {
4313
- return (0, smithy_client_1.take)(output, {
4314
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4315
- });
4316
- };
4317
- const de_Serverless = (output, context) => {
4318
- return (0, smithy_client_1.take)(output, {
4319
- ClientAuthentication: [, (_) => de_ServerlessClientAuthentication(_, context), `clientAuthentication`],
4320
- VpcConfigs: [, (_) => de___listOfVpcConfig(_, context), `vpcConfigs`],
4321
- });
4322
- };
4323
- const de_ServerlessClientAuthentication = (output, context) => {
4324
- return (0, smithy_client_1.take)(output, {
4325
- Sasl: [, (_) => de_ServerlessSasl(_, context), `sasl`],
4326
- });
4327
- };
4328
- const de_ServerlessSasl = (output, context) => {
4329
- return (0, smithy_client_1.take)(output, {
4330
- Iam: [, (_) => de_Iam(_, context), `iam`],
4331
- });
4332
- };
4333
- const de_StateInfo = (output, context) => {
4334
- return (0, smithy_client_1.take)(output, {
4335
- Code: [, smithy_client_1.expectString, `code`],
4336
- Message: [, smithy_client_1.expectString, `message`],
4337
- });
4338
- };
4339
- const de_StorageInfo = (output, context) => {
4340
- return (0, smithy_client_1.take)(output, {
4341
- EbsStorageInfo: [, (_) => de_EBSStorageInfo(_, context), `ebsStorageInfo`],
4342
- });
4343
- };
4344
- const de_Tls = (output, context) => {
4345
- return (0, smithy_client_1.take)(output, {
4346
- CertificateAuthorityArnList: [, smithy_client_1._json, `certificateAuthorityArnList`],
4347
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4348
- });
4349
- };
4350
- const de_TopicReplication = (output, context) => {
4351
- return (0, smithy_client_1.take)(output, {
4352
- CopyAccessControlListsForTopics: [, smithy_client_1.expectBoolean, `copyAccessControlListsForTopics`],
4353
- CopyTopicConfigurations: [, smithy_client_1.expectBoolean, `copyTopicConfigurations`],
4354
- DetectAndCopyNewTopics: [, smithy_client_1.expectBoolean, `detectAndCopyNewTopics`],
4355
- TopicsToExclude: [, smithy_client_1._json, `topicsToExclude`],
4356
- TopicsToReplicate: [, smithy_client_1._json, `topicsToReplicate`],
4357
- });
4358
- };
4359
- const de_Unauthenticated = (output, context) => {
4360
- return (0, smithy_client_1.take)(output, {
4361
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4362
- });
4363
- };
4364
- const de_UnprocessedScramSecret = (output, context) => {
4365
- return (0, smithy_client_1.take)(output, {
4366
- ErrorCode: [, smithy_client_1.expectString, `errorCode`],
4367
- ErrorMessage: [, smithy_client_1.expectString, `errorMessage`],
4368
- SecretArn: [, smithy_client_1.expectString, `secretArn`],
4369
- });
4370
- };
4371
- const de_UserIdentity = (output, context) => {
4372
- return (0, smithy_client_1.take)(output, {
4373
- PrincipalId: [, smithy_client_1.expectString, `principalId`],
4374
- Type: [, smithy_client_1.expectString, `type`],
4375
- });
4376
- };
4377
- const de_VpcConfig = (output, context) => {
4378
- return (0, smithy_client_1.take)(output, {
4379
- SecurityGroupIds: [, smithy_client_1._json, `securityGroupIds`],
4380
- SubnetIds: [, smithy_client_1._json, `subnetIds`],
4381
- });
4382
- };
4383
- const de_VpcConnection = (output, context) => {
4384
- return (0, smithy_client_1.take)(output, {
4385
- Authentication: [, smithy_client_1.expectString, `authentication`],
4386
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
4387
- State: [, smithy_client_1.expectString, `state`],
4388
- TargetClusterArn: [, smithy_client_1.expectString, `targetClusterArn`],
4389
- VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
4390
- VpcId: [, smithy_client_1.expectString, `vpcId`],
4391
- });
4392
- };
4393
- const de_VpcConnectionInfo = (output, context) => {
4394
- return (0, smithy_client_1.take)(output, {
4395
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
4396
- Owner: [, smithy_client_1.expectString, `owner`],
4397
- UserIdentity: [, (_) => de_UserIdentity(_, context), `userIdentity`],
4398
- VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
4399
- });
4400
- };
4401
- const de_VpcConnectionInfoServerless = (output, context) => {
4402
- return (0, smithy_client_1.take)(output, {
4403
- CreationTime: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `creationTime`],
4404
- Owner: [, smithy_client_1.expectString, `owner`],
4405
- UserIdentity: [, (_) => de_UserIdentity(_, context), `userIdentity`],
4406
- VpcConnectionArn: [, smithy_client_1.expectString, `vpcConnectionArn`],
4407
- });
4408
- };
4409
- const de_VpcConnectivity = (output, context) => {
4410
- return (0, smithy_client_1.take)(output, {
4411
- ClientAuthentication: [, (_) => de_VpcConnectivityClientAuthentication(_, context), `clientAuthentication`],
4412
- });
4413
- };
4414
- const de_VpcConnectivityClientAuthentication = (output, context) => {
4415
- return (0, smithy_client_1.take)(output, {
4416
- Sasl: [, (_) => de_VpcConnectivitySasl(_, context), `sasl`],
4417
- Tls: [, (_) => de_VpcConnectivityTls(_, context), `tls`],
4418
- });
4419
- };
4420
- const de_VpcConnectivityIam = (output, context) => {
4421
- return (0, smithy_client_1.take)(output, {
4422
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4423
- });
4424
- };
4425
- const de_VpcConnectivitySasl = (output, context) => {
4426
- return (0, smithy_client_1.take)(output, {
4427
- Iam: [, (_) => de_VpcConnectivityIam(_, context), `iam`],
4428
- Scram: [, (_) => de_VpcConnectivityScram(_, context), `scram`],
4429
- });
4430
- };
4431
- const de_VpcConnectivityScram = (output, context) => {
4432
- return (0, smithy_client_1.take)(output, {
4433
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4434
- });
4435
- };
4436
- const de_VpcConnectivityTls = (output, context) => {
4437
- return (0, smithy_client_1.take)(output, {
4438
- Enabled: [, smithy_client_1.expectBoolean, `enabled`],
4439
- });
4440
- };
4441
- const de_ZookeeperNodeInfo = (output, context) => {
4442
- return (0, smithy_client_1.take)(output, {
4443
- AttachedENIId: [, smithy_client_1.expectString, `attachedENIId`],
4444
- ClientVpcIpAddress: [, smithy_client_1.expectString, `clientVpcIpAddress`],
4445
- Endpoints: [, smithy_client_1._json, `endpoints`],
4446
- ZookeeperId: [, smithy_client_1.limitedParseDouble, `zookeeperId`],
4447
- ZookeeperVersion: [, smithy_client_1.expectString, `zookeeperVersion`],
4448
- });
4449
- };
4450
- const deserializeMetadata = (output) => ({
4451
- httpStatusCode: output.statusCode,
4452
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4453
- extendedRequestId: output.headers["x-amz-id-2"],
4454
- cfId: output.headers["x-amz-cf-id"],
4455
- });
4456
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
4457
- const isSerializableHeaderValue = (value) => value !== undefined &&
4458
- value !== null &&
4459
- value !== "" &&
4460
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4461
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
4462
- const _CA = "ClusterArn";
4463
- const _CNF = "ClusterNameFilter";
4464
- const _CTF = "ClusterTypeFilter";
4465
- const _CV = "CurrentVersion";
4466
- const _MR = "MaxResults";
4467
- const _NT = "NextToken";
4468
- const _RNF = "ReplicatorNameFilter";
4469
- const _TK = "TagKeys";
4470
- const _cA = "clusterArn";
4471
- const _cNF = "clusterNameFilter";
4472
- const _cTF = "clusterTypeFilter";
4473
- const _cV = "currentVersion";
4474
- const _mR = "maxResults";
4475
- const _nT = "nextToken";
4476
- const _rNF = "replicatorNameFilter";
4477
- const _tK = "tagKeys";
4478
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4479
- if (encoded.length) {
4480
- return JSON.parse(encoded);
4481
- }
4482
- return {};
4483
- });
4484
- const parseErrorBody = async (errorBody, context) => {
4485
- const value = await parseBody(errorBody, context);
4486
- value.message = value.message ?? value.Message;
4487
- return value;
4488
- };
4489
- const loadRestJsonErrorCode = (output, data) => {
4490
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4491
- const sanitizeErrorCode = (rawValue) => {
4492
- let cleanValue = rawValue;
4493
- if (typeof cleanValue === "number") {
4494
- cleanValue = cleanValue.toString();
4495
- }
4496
- if (cleanValue.indexOf(",") >= 0) {
4497
- cleanValue = cleanValue.split(",")[0];
4498
- }
4499
- if (cleanValue.indexOf(":") >= 0) {
4500
- cleanValue = cleanValue.split(":")[0];
4501
- }
4502
- if (cleanValue.indexOf("#") >= 0) {
4503
- cleanValue = cleanValue.split("#")[1];
4504
- }
4505
- return cleanValue;
4506
- };
4507
- const headerKey = findKey(output.headers, "x-amzn-errortype");
4508
- if (headerKey !== undefined) {
4509
- return sanitizeErrorCode(output.headers[headerKey]);
4510
- }
4511
- if (data.code !== undefined) {
4512
- return sanitizeErrorCode(data.code);
4513
- }
4514
- if (data["__type"] !== undefined) {
4515
- return sanitizeErrorCode(data["__type"]);
4516
- }
4517
- };
1
+ module.exports = require("../index.js");