@aws-sdk/client-kafka 3.141.0 → 3.150.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +457 -902
- package/dist-es/protocols/Aws_restJson1.js +590 -897
- package/package.json +11 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { KafkaServiceException as __BaseException } from "../models/KafkaServiceException";
|
|
5
5
|
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1BatchAssociateScramSecretCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -14,16 +14,7 @@ export var serializeAws_restJson1BatchAssociateScramSecretCommand = function (in
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/scram-secrets";
|
|
17
|
-
|
|
18
|
-
labelValue = input.ClusterArn;
|
|
19
|
-
if (labelValue.length <= 0) {
|
|
20
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
21
|
-
}
|
|
22
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
26
|
-
}
|
|
17
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
27
18
|
body = JSON.stringify(__assign({}, (input.SecretArnList != null && {
|
|
28
19
|
secretArnList: serializeAws_restJson1__listOf__string(input.SecretArnList, context),
|
|
29
20
|
})));
|
|
@@ -40,7 +31,7 @@ export var serializeAws_restJson1BatchAssociateScramSecretCommand = function (in
|
|
|
40
31
|
});
|
|
41
32
|
}); };
|
|
42
33
|
export var serializeAws_restJson1BatchDisassociateScramSecretCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
43
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
34
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
44
35
|
return __generator(this, function (_c) {
|
|
45
36
|
switch (_c.label) {
|
|
46
37
|
case 0: return [4, context.endpoint()];
|
|
@@ -50,16 +41,7 @@ export var serializeAws_restJson1BatchDisassociateScramSecretCommand = function
|
|
|
50
41
|
"content-type": "application/json",
|
|
51
42
|
};
|
|
52
43
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/scram-secrets";
|
|
53
|
-
|
|
54
|
-
labelValue = input.ClusterArn;
|
|
55
|
-
if (labelValue.length <= 0) {
|
|
56
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
57
|
-
}
|
|
58
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
62
|
-
}
|
|
44
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
63
45
|
body = JSON.stringify(__assign({}, (input.SecretArnList != null && {
|
|
64
46
|
secretArnList: serializeAws_restJson1__listOf__string(input.SecretArnList, context),
|
|
65
47
|
})));
|
|
@@ -162,7 +144,7 @@ export var serializeAws_restJson1CreateConfigurationCommand = function (input, c
|
|
|
162
144
|
});
|
|
163
145
|
}); };
|
|
164
146
|
export var serializeAws_restJson1DeleteClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
165
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
147
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
166
148
|
return __generator(this, function (_c) {
|
|
167
149
|
switch (_c.label) {
|
|
168
150
|
case 0: return [4, context.endpoint()];
|
|
@@ -170,17 +152,10 @@ export var serializeAws_restJson1DeleteClusterCommand = function (input, context
|
|
|
170
152
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
171
153
|
headers = {};
|
|
172
154
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}";
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
182
|
-
}
|
|
183
|
-
query = __assign({}, (input.CurrentVersion !== undefined && { currentVersion: input.CurrentVersion }));
|
|
155
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
156
|
+
query = map({
|
|
157
|
+
currentVersion: [, input.CurrentVersion],
|
|
158
|
+
});
|
|
184
159
|
return [2, new __HttpRequest({
|
|
185
160
|
protocol: protocol,
|
|
186
161
|
hostname: hostname,
|
|
@@ -195,7 +170,7 @@ export var serializeAws_restJson1DeleteClusterCommand = function (input, context
|
|
|
195
170
|
});
|
|
196
171
|
}); };
|
|
197
172
|
export var serializeAws_restJson1DeleteConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
198
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
173
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
199
174
|
return __generator(this, function (_c) {
|
|
200
175
|
switch (_c.label) {
|
|
201
176
|
case 0: return [4, context.endpoint()];
|
|
@@ -203,16 +178,7 @@ export var serializeAws_restJson1DeleteConfigurationCommand = function (input, c
|
|
|
203
178
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
204
179
|
headers = {};
|
|
205
180
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}";
|
|
206
|
-
|
|
207
|
-
labelValue = input.Arn;
|
|
208
|
-
if (labelValue.length <= 0) {
|
|
209
|
-
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
210
|
-
}
|
|
211
|
-
resolvedPath = resolvedPath.replace("{Arn}", __extendedEncodeURIComponent(labelValue));
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
throw new Error("No value provided for input HTTP label: Arn.");
|
|
215
|
-
}
|
|
181
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Arn", function () { return input.Arn; }, "{Arn}", false);
|
|
216
182
|
return [2, new __HttpRequest({
|
|
217
183
|
protocol: protocol,
|
|
218
184
|
hostname: hostname,
|
|
@@ -226,7 +192,7 @@ export var serializeAws_restJson1DeleteConfigurationCommand = function (input, c
|
|
|
226
192
|
});
|
|
227
193
|
}); };
|
|
228
194
|
export var serializeAws_restJson1DescribeClusterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
229
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
195
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
230
196
|
return __generator(this, function (_c) {
|
|
231
197
|
switch (_c.label) {
|
|
232
198
|
case 0: return [4, context.endpoint()];
|
|
@@ -234,16 +200,7 @@ export var serializeAws_restJson1DescribeClusterCommand = function (input, conte
|
|
|
234
200
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
235
201
|
headers = {};
|
|
236
202
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}";
|
|
237
|
-
|
|
238
|
-
labelValue = input.ClusterArn;
|
|
239
|
-
if (labelValue.length <= 0) {
|
|
240
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
241
|
-
}
|
|
242
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
246
|
-
}
|
|
203
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
247
204
|
return [2, new __HttpRequest({
|
|
248
205
|
protocol: protocol,
|
|
249
206
|
hostname: hostname,
|
|
@@ -257,7 +214,7 @@ export var serializeAws_restJson1DescribeClusterCommand = function (input, conte
|
|
|
257
214
|
});
|
|
258
215
|
}); };
|
|
259
216
|
export var serializeAws_restJson1DescribeClusterOperationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
217
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
261
218
|
return __generator(this, function (_c) {
|
|
262
219
|
switch (_c.label) {
|
|
263
220
|
case 0: return [4, context.endpoint()];
|
|
@@ -265,16 +222,7 @@ export var serializeAws_restJson1DescribeClusterOperationCommand = function (inp
|
|
|
265
222
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
266
223
|
headers = {};
|
|
267
224
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/operations/{ClusterOperationArn}";
|
|
268
|
-
|
|
269
|
-
labelValue = input.ClusterOperationArn;
|
|
270
|
-
if (labelValue.length <= 0) {
|
|
271
|
-
throw new Error("Empty value provided for input HTTP label: ClusterOperationArn.");
|
|
272
|
-
}
|
|
273
|
-
resolvedPath = resolvedPath.replace("{ClusterOperationArn}", __extendedEncodeURIComponent(labelValue));
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
throw new Error("No value provided for input HTTP label: ClusterOperationArn.");
|
|
277
|
-
}
|
|
225
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterOperationArn", function () { return input.ClusterOperationArn; }, "{ClusterOperationArn}", false);
|
|
278
226
|
return [2, new __HttpRequest({
|
|
279
227
|
protocol: protocol,
|
|
280
228
|
hostname: hostname,
|
|
@@ -288,7 +236,7 @@ export var serializeAws_restJson1DescribeClusterOperationCommand = function (inp
|
|
|
288
236
|
});
|
|
289
237
|
}); };
|
|
290
238
|
export var serializeAws_restJson1DescribeClusterV2Command = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
291
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
239
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
292
240
|
return __generator(this, function (_c) {
|
|
293
241
|
switch (_c.label) {
|
|
294
242
|
case 0: return [4, context.endpoint()];
|
|
@@ -296,16 +244,7 @@ export var serializeAws_restJson1DescribeClusterV2Command = function (input, con
|
|
|
296
244
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
297
245
|
headers = {};
|
|
298
246
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters/{ClusterArn}";
|
|
299
|
-
|
|
300
|
-
labelValue = input.ClusterArn;
|
|
301
|
-
if (labelValue.length <= 0) {
|
|
302
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
303
|
-
}
|
|
304
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
305
|
-
}
|
|
306
|
-
else {
|
|
307
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
308
|
-
}
|
|
247
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
309
248
|
return [2, new __HttpRequest({
|
|
310
249
|
protocol: protocol,
|
|
311
250
|
hostname: hostname,
|
|
@@ -319,7 +258,7 @@ export var serializeAws_restJson1DescribeClusterV2Command = function (input, con
|
|
|
319
258
|
});
|
|
320
259
|
}); };
|
|
321
260
|
export var serializeAws_restJson1DescribeConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
322
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
261
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
323
262
|
return __generator(this, function (_c) {
|
|
324
263
|
switch (_c.label) {
|
|
325
264
|
case 0: return [4, context.endpoint()];
|
|
@@ -327,16 +266,7 @@ export var serializeAws_restJson1DescribeConfigurationCommand = function (input,
|
|
|
327
266
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
328
267
|
headers = {};
|
|
329
268
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}";
|
|
330
|
-
|
|
331
|
-
labelValue = input.Arn;
|
|
332
|
-
if (labelValue.length <= 0) {
|
|
333
|
-
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
334
|
-
}
|
|
335
|
-
resolvedPath = resolvedPath.replace("{Arn}", __extendedEncodeURIComponent(labelValue));
|
|
336
|
-
}
|
|
337
|
-
else {
|
|
338
|
-
throw new Error("No value provided for input HTTP label: Arn.");
|
|
339
|
-
}
|
|
269
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Arn", function () { return input.Arn; }, "{Arn}", false);
|
|
340
270
|
return [2, new __HttpRequest({
|
|
341
271
|
protocol: protocol,
|
|
342
272
|
hostname: hostname,
|
|
@@ -350,7 +280,7 @@ export var serializeAws_restJson1DescribeConfigurationCommand = function (input,
|
|
|
350
280
|
});
|
|
351
281
|
}); };
|
|
352
282
|
export var serializeAws_restJson1DescribeConfigurationRevisionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
353
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
283
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
354
284
|
return __generator(this, function (_c) {
|
|
355
285
|
switch (_c.label) {
|
|
356
286
|
case 0: return [4, context.endpoint()];
|
|
@@ -359,26 +289,8 @@ export var serializeAws_restJson1DescribeConfigurationRevisionCommand = function
|
|
|
359
289
|
headers = {};
|
|
360
290
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
361
291
|
"/v1/configurations/{Arn}/revisions/{Revision}";
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
if (labelValue.length <= 0) {
|
|
365
|
-
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
366
|
-
}
|
|
367
|
-
resolvedPath = resolvedPath.replace("{Arn}", __extendedEncodeURIComponent(labelValue));
|
|
368
|
-
}
|
|
369
|
-
else {
|
|
370
|
-
throw new Error("No value provided for input HTTP label: Arn.");
|
|
371
|
-
}
|
|
372
|
-
if (input.Revision !== undefined) {
|
|
373
|
-
labelValue = input.Revision.toString();
|
|
374
|
-
if (labelValue.length <= 0) {
|
|
375
|
-
throw new Error("Empty value provided for input HTTP label: Revision.");
|
|
376
|
-
}
|
|
377
|
-
resolvedPath = resolvedPath.replace("{Revision}", __extendedEncodeURIComponent(labelValue));
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
throw new Error("No value provided for input HTTP label: Revision.");
|
|
381
|
-
}
|
|
292
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Arn", function () { return input.Arn; }, "{Arn}", false);
|
|
293
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Revision", function () { return input.Revision.toString(); }, "{Revision}", false);
|
|
382
294
|
return [2, new __HttpRequest({
|
|
383
295
|
protocol: protocol,
|
|
384
296
|
hostname: hostname,
|
|
@@ -392,7 +304,7 @@ export var serializeAws_restJson1DescribeConfigurationRevisionCommand = function
|
|
|
392
304
|
});
|
|
393
305
|
}); };
|
|
394
306
|
export var serializeAws_restJson1GetBootstrapBrokersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
395
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
307
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
396
308
|
return __generator(this, function (_c) {
|
|
397
309
|
switch (_c.label) {
|
|
398
310
|
case 0: return [4, context.endpoint()];
|
|
@@ -401,16 +313,7 @@ export var serializeAws_restJson1GetBootstrapBrokersCommand = function (input, c
|
|
|
401
313
|
headers = {};
|
|
402
314
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
403
315
|
"/v1/clusters/{ClusterArn}/bootstrap-brokers";
|
|
404
|
-
|
|
405
|
-
labelValue = input.ClusterArn;
|
|
406
|
-
if (labelValue.length <= 0) {
|
|
407
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
408
|
-
}
|
|
409
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
410
|
-
}
|
|
411
|
-
else {
|
|
412
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
413
|
-
}
|
|
316
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
414
317
|
return [2, new __HttpRequest({
|
|
415
318
|
protocol: protocol,
|
|
416
319
|
hostname: hostname,
|
|
@@ -432,7 +335,9 @@ export var serializeAws_restJson1GetCompatibleKafkaVersionsCommand = function (i
|
|
|
432
335
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
433
336
|
headers = {};
|
|
434
337
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/compatible-kafka-versions";
|
|
435
|
-
query =
|
|
338
|
+
query = map({
|
|
339
|
+
clusterArn: [, input.ClusterArn],
|
|
340
|
+
});
|
|
436
341
|
return [2, new __HttpRequest({
|
|
437
342
|
protocol: protocol,
|
|
438
343
|
hostname: hostname,
|
|
@@ -447,7 +352,7 @@ export var serializeAws_restJson1GetCompatibleKafkaVersionsCommand = function (i
|
|
|
447
352
|
});
|
|
448
353
|
}); };
|
|
449
354
|
export var serializeAws_restJson1ListClusterOperationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
450
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
355
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
451
356
|
return __generator(this, function (_c) {
|
|
452
357
|
switch (_c.label) {
|
|
453
358
|
case 0: return [4, context.endpoint()];
|
|
@@ -455,17 +360,11 @@ export var serializeAws_restJson1ListClusterOperationsCommand = function (input,
|
|
|
455
360
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
456
361
|
headers = {};
|
|
457
362
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/operations";
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
464
|
-
}
|
|
465
|
-
else {
|
|
466
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
467
|
-
}
|
|
468
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
363
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
364
|
+
query = map({
|
|
365
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
366
|
+
nextToken: [, input.NextToken],
|
|
367
|
+
});
|
|
469
368
|
return [2, new __HttpRequest({
|
|
470
369
|
protocol: protocol,
|
|
471
370
|
hostname: hostname,
|
|
@@ -488,7 +387,11 @@ export var serializeAws_restJson1ListClustersCommand = function (input, context)
|
|
|
488
387
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
489
388
|
headers = {};
|
|
490
389
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters";
|
|
491
|
-
query =
|
|
390
|
+
query = map({
|
|
391
|
+
clusterNameFilter: [, input.ClusterNameFilter],
|
|
392
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
393
|
+
nextToken: [, input.NextToken],
|
|
394
|
+
});
|
|
492
395
|
return [2, new __HttpRequest({
|
|
493
396
|
protocol: protocol,
|
|
494
397
|
hostname: hostname,
|
|
@@ -511,7 +414,12 @@ export var serializeAws_restJson1ListClustersV2Command = function (input, contex
|
|
|
511
414
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
512
415
|
headers = {};
|
|
513
416
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters";
|
|
514
|
-
query =
|
|
417
|
+
query = map({
|
|
418
|
+
clusterNameFilter: [, input.ClusterNameFilter],
|
|
419
|
+
clusterTypeFilter: [, input.ClusterTypeFilter],
|
|
420
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
421
|
+
nextToken: [, input.NextToken],
|
|
422
|
+
});
|
|
515
423
|
return [2, new __HttpRequest({
|
|
516
424
|
protocol: protocol,
|
|
517
425
|
hostname: hostname,
|
|
@@ -526,7 +434,7 @@ export var serializeAws_restJson1ListClustersV2Command = function (input, contex
|
|
|
526
434
|
});
|
|
527
435
|
}); };
|
|
528
436
|
export var serializeAws_restJson1ListConfigurationRevisionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
529
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
437
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
530
438
|
return __generator(this, function (_c) {
|
|
531
439
|
switch (_c.label) {
|
|
532
440
|
case 0: return [4, context.endpoint()];
|
|
@@ -534,17 +442,11 @@ export var serializeAws_restJson1ListConfigurationRevisionsCommand = function (i
|
|
|
534
442
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
535
443
|
headers = {};
|
|
536
444
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}/revisions";
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
resolvedPath = resolvedPath.replace("{Arn}", __extendedEncodeURIComponent(labelValue));
|
|
543
|
-
}
|
|
544
|
-
else {
|
|
545
|
-
throw new Error("No value provided for input HTTP label: Arn.");
|
|
546
|
-
}
|
|
547
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
445
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Arn", function () { return input.Arn; }, "{Arn}", false);
|
|
446
|
+
query = map({
|
|
447
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
448
|
+
nextToken: [, input.NextToken],
|
|
449
|
+
});
|
|
548
450
|
return [2, new __HttpRequest({
|
|
549
451
|
protocol: protocol,
|
|
550
452
|
hostname: hostname,
|
|
@@ -567,7 +469,10 @@ export var serializeAws_restJson1ListConfigurationsCommand = function (input, co
|
|
|
567
469
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
568
470
|
headers = {};
|
|
569
471
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations";
|
|
570
|
-
query =
|
|
472
|
+
query = map({
|
|
473
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
474
|
+
nextToken: [, input.NextToken],
|
|
475
|
+
});
|
|
571
476
|
return [2, new __HttpRequest({
|
|
572
477
|
protocol: protocol,
|
|
573
478
|
hostname: hostname,
|
|
@@ -590,7 +495,10 @@ export var serializeAws_restJson1ListKafkaVersionsCommand = function (input, con
|
|
|
590
495
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
591
496
|
headers = {};
|
|
592
497
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/kafka-versions";
|
|
593
|
-
query =
|
|
498
|
+
query = map({
|
|
499
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
500
|
+
nextToken: [, input.NextToken],
|
|
501
|
+
});
|
|
594
502
|
return [2, new __HttpRequest({
|
|
595
503
|
protocol: protocol,
|
|
596
504
|
hostname: hostname,
|
|
@@ -605,7 +513,7 @@ export var serializeAws_restJson1ListKafkaVersionsCommand = function (input, con
|
|
|
605
513
|
});
|
|
606
514
|
}); };
|
|
607
515
|
export var serializeAws_restJson1ListNodesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
608
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
516
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
609
517
|
return __generator(this, function (_c) {
|
|
610
518
|
switch (_c.label) {
|
|
611
519
|
case 0: return [4, context.endpoint()];
|
|
@@ -613,17 +521,11 @@ export var serializeAws_restJson1ListNodesCommand = function (input, context) {
|
|
|
613
521
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
614
522
|
headers = {};
|
|
615
523
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes";
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
622
|
-
}
|
|
623
|
-
else {
|
|
624
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
625
|
-
}
|
|
626
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
524
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
525
|
+
query = map({
|
|
526
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
527
|
+
nextToken: [, input.NextToken],
|
|
528
|
+
});
|
|
627
529
|
return [2, new __HttpRequest({
|
|
628
530
|
protocol: protocol,
|
|
629
531
|
hostname: hostname,
|
|
@@ -638,7 +540,7 @@ export var serializeAws_restJson1ListNodesCommand = function (input, context) {
|
|
|
638
540
|
});
|
|
639
541
|
}); };
|
|
640
542
|
export var serializeAws_restJson1ListScramSecretsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
641
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
543
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
642
544
|
return __generator(this, function (_c) {
|
|
643
545
|
switch (_c.label) {
|
|
644
546
|
case 0: return [4, context.endpoint()];
|
|
@@ -646,17 +548,11 @@ export var serializeAws_restJson1ListScramSecretsCommand = function (input, cont
|
|
|
646
548
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
647
549
|
headers = {};
|
|
648
550
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/scram-secrets";
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
655
|
-
}
|
|
656
|
-
else {
|
|
657
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
658
|
-
}
|
|
659
|
-
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
551
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
552
|
+
query = map({
|
|
553
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
554
|
+
nextToken: [, input.NextToken],
|
|
555
|
+
});
|
|
660
556
|
return [2, new __HttpRequest({
|
|
661
557
|
protocol: protocol,
|
|
662
558
|
hostname: hostname,
|
|
@@ -671,7 +567,7 @@ export var serializeAws_restJson1ListScramSecretsCommand = function (input, cont
|
|
|
671
567
|
});
|
|
672
568
|
}); };
|
|
673
569
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
674
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
570
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
675
571
|
return __generator(this, function (_c) {
|
|
676
572
|
switch (_c.label) {
|
|
677
573
|
case 0: return [4, context.endpoint()];
|
|
@@ -679,16 +575,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
679
575
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
680
576
|
headers = {};
|
|
681
577
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
|
|
682
|
-
|
|
683
|
-
labelValue = input.ResourceArn;
|
|
684
|
-
if (labelValue.length <= 0) {
|
|
685
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
686
|
-
}
|
|
687
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
688
|
-
}
|
|
689
|
-
else {
|
|
690
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
691
|
-
}
|
|
578
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
692
579
|
return [2, new __HttpRequest({
|
|
693
580
|
protocol: protocol,
|
|
694
581
|
hostname: hostname,
|
|
@@ -702,7 +589,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
702
589
|
});
|
|
703
590
|
}); };
|
|
704
591
|
export var serializeAws_restJson1RebootBrokerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
705
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
592
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
706
593
|
return __generator(this, function (_c) {
|
|
707
594
|
switch (_c.label) {
|
|
708
595
|
case 0: return [4, context.endpoint()];
|
|
@@ -712,16 +599,7 @@ export var serializeAws_restJson1RebootBrokerCommand = function (input, context)
|
|
|
712
599
|
"content-type": "application/json",
|
|
713
600
|
};
|
|
714
601
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/reboot-broker";
|
|
715
|
-
|
|
716
|
-
labelValue = input.ClusterArn;
|
|
717
|
-
if (labelValue.length <= 0) {
|
|
718
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
719
|
-
}
|
|
720
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
721
|
-
}
|
|
722
|
-
else {
|
|
723
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
724
|
-
}
|
|
602
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
725
603
|
body = JSON.stringify(__assign({}, (input.BrokerIds != null && { brokerIds: serializeAws_restJson1__listOf__string(input.BrokerIds, context) })));
|
|
726
604
|
return [2, new __HttpRequest({
|
|
727
605
|
protocol: protocol,
|
|
@@ -736,7 +614,7 @@ export var serializeAws_restJson1RebootBrokerCommand = function (input, context)
|
|
|
736
614
|
});
|
|
737
615
|
}); };
|
|
738
616
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
739
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
617
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
740
618
|
return __generator(this, function (_c) {
|
|
741
619
|
switch (_c.label) {
|
|
742
620
|
case 0: return [4, context.endpoint()];
|
|
@@ -746,16 +624,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
746
624
|
"content-type": "application/json",
|
|
747
625
|
};
|
|
748
626
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
|
|
749
|
-
|
|
750
|
-
labelValue = input.ResourceArn;
|
|
751
|
-
if (labelValue.length <= 0) {
|
|
752
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
753
|
-
}
|
|
754
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
755
|
-
}
|
|
756
|
-
else {
|
|
757
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
758
|
-
}
|
|
627
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
759
628
|
body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
760
629
|
return [2, new __HttpRequest({
|
|
761
630
|
protocol: protocol,
|
|
@@ -770,7 +639,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
770
639
|
});
|
|
771
640
|
}); };
|
|
772
641
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
773
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
642
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
774
643
|
return __generator(this, function (_c) {
|
|
775
644
|
switch (_c.label) {
|
|
776
645
|
case 0: return [4, context.endpoint()];
|
|
@@ -778,17 +647,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
778
647
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
779
648
|
headers = {};
|
|
780
649
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/tags/{ResourceArn}";
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
}
|
|
786
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
787
|
-
}
|
|
788
|
-
else {
|
|
789
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
790
|
-
}
|
|
791
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
650
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
651
|
+
query = map({
|
|
652
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
653
|
+
});
|
|
792
654
|
return [2, new __HttpRequest({
|
|
793
655
|
protocol: protocol,
|
|
794
656
|
hostname: hostname,
|
|
@@ -803,7 +665,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
803
665
|
});
|
|
804
666
|
}); };
|
|
805
667
|
export var serializeAws_restJson1UpdateBrokerCountCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
806
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
668
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
807
669
|
return __generator(this, function (_c) {
|
|
808
670
|
switch (_c.label) {
|
|
809
671
|
case 0: return [4, context.endpoint()];
|
|
@@ -813,16 +675,7 @@ export var serializeAws_restJson1UpdateBrokerCountCommand = function (input, con
|
|
|
813
675
|
"content-type": "application/json",
|
|
814
676
|
};
|
|
815
677
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes/count";
|
|
816
|
-
|
|
817
|
-
labelValue = input.ClusterArn;
|
|
818
|
-
if (labelValue.length <= 0) {
|
|
819
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
820
|
-
}
|
|
821
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
822
|
-
}
|
|
823
|
-
else {
|
|
824
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
825
|
-
}
|
|
678
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
826
679
|
body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.TargetNumberOfBrokerNodes != null && { targetNumberOfBrokerNodes: input.TargetNumberOfBrokerNodes })));
|
|
827
680
|
return [2, new __HttpRequest({
|
|
828
681
|
protocol: protocol,
|
|
@@ -837,7 +690,7 @@ export var serializeAws_restJson1UpdateBrokerCountCommand = function (input, con
|
|
|
837
690
|
});
|
|
838
691
|
}); };
|
|
839
692
|
export var serializeAws_restJson1UpdateBrokerStorageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
840
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
693
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
841
694
|
return __generator(this, function (_c) {
|
|
842
695
|
switch (_c.label) {
|
|
843
696
|
case 0: return [4, context.endpoint()];
|
|
@@ -847,16 +700,7 @@ export var serializeAws_restJson1UpdateBrokerStorageCommand = function (input, c
|
|
|
847
700
|
"content-type": "application/json",
|
|
848
701
|
};
|
|
849
702
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes/storage";
|
|
850
|
-
|
|
851
|
-
labelValue = input.ClusterArn;
|
|
852
|
-
if (labelValue.length <= 0) {
|
|
853
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
854
|
-
}
|
|
855
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
856
|
-
}
|
|
857
|
-
else {
|
|
858
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
859
|
-
}
|
|
703
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
860
704
|
body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.TargetBrokerEBSVolumeInfo != null && {
|
|
861
705
|
targetBrokerEBSVolumeInfo: serializeAws_restJson1__listOfBrokerEBSVolumeInfo(input.TargetBrokerEBSVolumeInfo, context),
|
|
862
706
|
})));
|
|
@@ -873,7 +717,7 @@ export var serializeAws_restJson1UpdateBrokerStorageCommand = function (input, c
|
|
|
873
717
|
});
|
|
874
718
|
}); };
|
|
875
719
|
export var serializeAws_restJson1UpdateBrokerTypeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
876
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
720
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
877
721
|
return __generator(this, function (_c) {
|
|
878
722
|
switch (_c.label) {
|
|
879
723
|
case 0: return [4, context.endpoint()];
|
|
@@ -883,16 +727,7 @@ export var serializeAws_restJson1UpdateBrokerTypeCommand = function (input, cont
|
|
|
883
727
|
"content-type": "application/json",
|
|
884
728
|
};
|
|
885
729
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/nodes/type";
|
|
886
|
-
|
|
887
|
-
labelValue = input.ClusterArn;
|
|
888
|
-
if (labelValue.length <= 0) {
|
|
889
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
890
|
-
}
|
|
891
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
892
|
-
}
|
|
893
|
-
else {
|
|
894
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
895
|
-
}
|
|
730
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
896
731
|
body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.TargetInstanceType != null && { targetInstanceType: input.TargetInstanceType })));
|
|
897
732
|
return [2, new __HttpRequest({
|
|
898
733
|
protocol: protocol,
|
|
@@ -907,7 +742,7 @@ export var serializeAws_restJson1UpdateBrokerTypeCommand = function (input, cont
|
|
|
907
742
|
});
|
|
908
743
|
}); };
|
|
909
744
|
export var serializeAws_restJson1UpdateClusterConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
910
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
745
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
911
746
|
return __generator(this, function (_c) {
|
|
912
747
|
switch (_c.label) {
|
|
913
748
|
case 0: return [4, context.endpoint()];
|
|
@@ -917,16 +752,7 @@ export var serializeAws_restJson1UpdateClusterConfigurationCommand = function (i
|
|
|
917
752
|
"content-type": "application/json",
|
|
918
753
|
};
|
|
919
754
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/configuration";
|
|
920
|
-
|
|
921
|
-
labelValue = input.ClusterArn;
|
|
922
|
-
if (labelValue.length <= 0) {
|
|
923
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
924
|
-
}
|
|
925
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
926
|
-
}
|
|
927
|
-
else {
|
|
928
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
929
|
-
}
|
|
755
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
930
756
|
body = JSON.stringify(__assign(__assign({}, (input.ConfigurationInfo != null && {
|
|
931
757
|
configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
|
|
932
758
|
})), (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })));
|
|
@@ -943,7 +769,7 @@ export var serializeAws_restJson1UpdateClusterConfigurationCommand = function (i
|
|
|
943
769
|
});
|
|
944
770
|
}); };
|
|
945
771
|
export var serializeAws_restJson1UpdateClusterKafkaVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
946
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
772
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
947
773
|
return __generator(this, function (_c) {
|
|
948
774
|
switch (_c.label) {
|
|
949
775
|
case 0: return [4, context.endpoint()];
|
|
@@ -953,16 +779,7 @@ export var serializeAws_restJson1UpdateClusterKafkaVersionCommand = function (in
|
|
|
953
779
|
"content-type": "application/json",
|
|
954
780
|
};
|
|
955
781
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/version";
|
|
956
|
-
|
|
957
|
-
labelValue = input.ClusterArn;
|
|
958
|
-
if (labelValue.length <= 0) {
|
|
959
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
960
|
-
}
|
|
961
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
962
|
-
}
|
|
963
|
-
else {
|
|
964
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
965
|
-
}
|
|
782
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
966
783
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConfigurationInfo != null && {
|
|
967
784
|
configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
|
|
968
785
|
})), (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.TargetKafkaVersion != null && { targetKafkaVersion: input.TargetKafkaVersion })));
|
|
@@ -979,7 +796,7 @@ export var serializeAws_restJson1UpdateClusterKafkaVersionCommand = function (in
|
|
|
979
796
|
});
|
|
980
797
|
}); };
|
|
981
798
|
export var serializeAws_restJson1UpdateConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
982
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
799
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
983
800
|
return __generator(this, function (_c) {
|
|
984
801
|
switch (_c.label) {
|
|
985
802
|
case 0: return [4, context.endpoint()];
|
|
@@ -989,16 +806,7 @@ export var serializeAws_restJson1UpdateConfigurationCommand = function (input, c
|
|
|
989
806
|
"content-type": "application/json",
|
|
990
807
|
};
|
|
991
808
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations/{Arn}";
|
|
992
|
-
|
|
993
|
-
labelValue = input.Arn;
|
|
994
|
-
if (labelValue.length <= 0) {
|
|
995
|
-
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
996
|
-
}
|
|
997
|
-
resolvedPath = resolvedPath.replace("{Arn}", __extendedEncodeURIComponent(labelValue));
|
|
998
|
-
}
|
|
999
|
-
else {
|
|
1000
|
-
throw new Error("No value provided for input HTTP label: Arn.");
|
|
1001
|
-
}
|
|
809
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Arn", function () { return input.Arn; }, "{Arn}", false);
|
|
1002
810
|
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { description: input.Description })), (input.ServerProperties != null && { serverProperties: context.base64Encoder(input.ServerProperties) })));
|
|
1003
811
|
return [2, new __HttpRequest({
|
|
1004
812
|
protocol: protocol,
|
|
@@ -1013,7 +821,7 @@ export var serializeAws_restJson1UpdateConfigurationCommand = function (input, c
|
|
|
1013
821
|
});
|
|
1014
822
|
}); };
|
|
1015
823
|
export var serializeAws_restJson1UpdateConnectivityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1016
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
824
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1017
825
|
return __generator(this, function (_c) {
|
|
1018
826
|
switch (_c.label) {
|
|
1019
827
|
case 0: return [4, context.endpoint()];
|
|
@@ -1023,16 +831,7 @@ export var serializeAws_restJson1UpdateConnectivityCommand = function (input, co
|
|
|
1023
831
|
"content-type": "application/json",
|
|
1024
832
|
};
|
|
1025
833
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/connectivity";
|
|
1026
|
-
|
|
1027
|
-
labelValue = input.ClusterArn;
|
|
1028
|
-
if (labelValue.length <= 0) {
|
|
1029
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
1030
|
-
}
|
|
1031
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
1032
|
-
}
|
|
1033
|
-
else {
|
|
1034
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
1035
|
-
}
|
|
834
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
1036
835
|
body = JSON.stringify(__assign(__assign({}, (input.ConnectivityInfo != null && {
|
|
1037
836
|
connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
|
|
1038
837
|
})), (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })));
|
|
@@ -1049,7 +848,7 @@ export var serializeAws_restJson1UpdateConnectivityCommand = function (input, co
|
|
|
1049
848
|
});
|
|
1050
849
|
}); };
|
|
1051
850
|
export var serializeAws_restJson1UpdateMonitoringCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1052
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
851
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1053
852
|
return __generator(this, function (_c) {
|
|
1054
853
|
switch (_c.label) {
|
|
1055
854
|
case 0: return [4, context.endpoint()];
|
|
@@ -1059,16 +858,7 @@ export var serializeAws_restJson1UpdateMonitoringCommand = function (input, cont
|
|
|
1059
858
|
"content-type": "application/json",
|
|
1060
859
|
};
|
|
1061
860
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/monitoring";
|
|
1062
|
-
|
|
1063
|
-
labelValue = input.ClusterArn;
|
|
1064
|
-
if (labelValue.length <= 0) {
|
|
1065
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
1066
|
-
}
|
|
1067
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
1068
|
-
}
|
|
1069
|
-
else {
|
|
1070
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
1071
|
-
}
|
|
861
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
1072
862
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring })), (input.LoggingInfo != null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) })), (input.OpenMonitoring != null && {
|
|
1073
863
|
openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
|
|
1074
864
|
})));
|
|
@@ -1085,7 +875,7 @@ export var serializeAws_restJson1UpdateMonitoringCommand = function (input, cont
|
|
|
1085
875
|
});
|
|
1086
876
|
}); };
|
|
1087
877
|
export var serializeAws_restJson1UpdateSecurityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1088
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
878
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1089
879
|
return __generator(this, function (_c) {
|
|
1090
880
|
switch (_c.label) {
|
|
1091
881
|
case 0: return [4, context.endpoint()];
|
|
@@ -1095,16 +885,7 @@ export var serializeAws_restJson1UpdateSecurityCommand = function (input, contex
|
|
|
1095
885
|
"content-type": "application/json",
|
|
1096
886
|
};
|
|
1097
887
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/security";
|
|
1098
|
-
|
|
1099
|
-
labelValue = input.ClusterArn;
|
|
1100
|
-
if (labelValue.length <= 0) {
|
|
1101
|
-
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
1102
|
-
}
|
|
1103
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
1104
|
-
}
|
|
1105
|
-
else {
|
|
1106
|
-
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
1107
|
-
}
|
|
888
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", function () { return input.ClusterArn; }, "{ClusterArn}", false);
|
|
1108
889
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.ClientAuthentication != null && {
|
|
1109
890
|
clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
|
|
1110
891
|
})), (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.EncryptionInfo != null && {
|
|
@@ -1130,28 +911,26 @@ export var deserializeAws_restJson1BatchAssociateScramSecretCommand = function (
|
|
|
1130
911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1131
912
|
return [2, deserializeAws_restJson1BatchAssociateScramSecretCommandError(output, context)];
|
|
1132
913
|
}
|
|
1133
|
-
contents = {
|
|
914
|
+
contents = map({
|
|
1134
915
|
$metadata: deserializeMetadata(output),
|
|
1135
|
-
|
|
1136
|
-
UnprocessedScramSecrets: undefined,
|
|
1137
|
-
};
|
|
916
|
+
});
|
|
1138
917
|
_a = __expectNonNull;
|
|
1139
918
|
_b = __expectObject;
|
|
1140
919
|
return [4, parseBody(output.body, context)];
|
|
1141
920
|
case 1:
|
|
1142
921
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1143
|
-
if (data.clusterArn
|
|
922
|
+
if (data.clusterArn != null) {
|
|
1144
923
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
1145
924
|
}
|
|
1146
|
-
if (data.unprocessedScramSecrets
|
|
925
|
+
if (data.unprocessedScramSecrets != null) {
|
|
1147
926
|
contents.UnprocessedScramSecrets = deserializeAws_restJson1__listOfUnprocessedScramSecret(data.unprocessedScramSecrets, context);
|
|
1148
927
|
}
|
|
1149
|
-
return [2,
|
|
928
|
+
return [2, contents];
|
|
1150
929
|
}
|
|
1151
930
|
});
|
|
1152
931
|
}); };
|
|
1153
932
|
var deserializeAws_restJson1BatchAssociateScramSecretCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1154
|
-
var parsedOutput, _a,
|
|
933
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1155
934
|
var _c;
|
|
1156
935
|
return __generator(this, function (_d) {
|
|
1157
936
|
switch (_d.label) {
|
|
@@ -1196,14 +975,14 @@ var deserializeAws_restJson1BatchAssociateScramSecretCommandError = function (ou
|
|
|
1196
975
|
case 15: throw _d.sent();
|
|
1197
976
|
case 16:
|
|
1198
977
|
parsedBody = parsedOutput.body;
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
$metadata: $metadata,
|
|
978
|
+
throwDefaultError({
|
|
979
|
+
output: output,
|
|
980
|
+
parsedBody: parsedBody,
|
|
981
|
+
exceptionCtor: __BaseException,
|
|
982
|
+
errorCode: errorCode,
|
|
1205
983
|
});
|
|
1206
|
-
|
|
984
|
+
_d.label = 17;
|
|
985
|
+
case 17: return [2];
|
|
1207
986
|
}
|
|
1208
987
|
});
|
|
1209
988
|
}); };
|
|
@@ -1215,28 +994,26 @@ export var deserializeAws_restJson1BatchDisassociateScramSecretCommand = functio
|
|
|
1215
994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1216
995
|
return [2, deserializeAws_restJson1BatchDisassociateScramSecretCommandError(output, context)];
|
|
1217
996
|
}
|
|
1218
|
-
contents = {
|
|
997
|
+
contents = map({
|
|
1219
998
|
$metadata: deserializeMetadata(output),
|
|
1220
|
-
|
|
1221
|
-
UnprocessedScramSecrets: undefined,
|
|
1222
|
-
};
|
|
999
|
+
});
|
|
1223
1000
|
_a = __expectNonNull;
|
|
1224
1001
|
_b = __expectObject;
|
|
1225
1002
|
return [4, parseBody(output.body, context)];
|
|
1226
1003
|
case 1:
|
|
1227
1004
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1228
|
-
if (data.clusterArn
|
|
1005
|
+
if (data.clusterArn != null) {
|
|
1229
1006
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
1230
1007
|
}
|
|
1231
|
-
if (data.unprocessedScramSecrets
|
|
1008
|
+
if (data.unprocessedScramSecrets != null) {
|
|
1232
1009
|
contents.UnprocessedScramSecrets = deserializeAws_restJson1__listOfUnprocessedScramSecret(data.unprocessedScramSecrets, context);
|
|
1233
1010
|
}
|
|
1234
|
-
return [2,
|
|
1011
|
+
return [2, contents];
|
|
1235
1012
|
}
|
|
1236
1013
|
});
|
|
1237
1014
|
}); };
|
|
1238
1015
|
var deserializeAws_restJson1BatchDisassociateScramSecretCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1239
|
-
var parsedOutput, _a,
|
|
1016
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1240
1017
|
var _c;
|
|
1241
1018
|
return __generator(this, function (_d) {
|
|
1242
1019
|
switch (_d.label) {
|
|
@@ -1281,14 +1058,14 @@ var deserializeAws_restJson1BatchDisassociateScramSecretCommandError = function
|
|
|
1281
1058
|
case 15: throw _d.sent();
|
|
1282
1059
|
case 16:
|
|
1283
1060
|
parsedBody = parsedOutput.body;
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
$metadata: $metadata,
|
|
1061
|
+
throwDefaultError({
|
|
1062
|
+
output: output,
|
|
1063
|
+
parsedBody: parsedBody,
|
|
1064
|
+
exceptionCtor: __BaseException,
|
|
1065
|
+
errorCode: errorCode,
|
|
1290
1066
|
});
|
|
1291
|
-
|
|
1067
|
+
_d.label = 17;
|
|
1068
|
+
case 17: return [2];
|
|
1292
1069
|
}
|
|
1293
1070
|
});
|
|
1294
1071
|
}); };
|
|
@@ -1300,32 +1077,29 @@ export var deserializeAws_restJson1CreateClusterCommand = function (output, cont
|
|
|
1300
1077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
1078
|
return [2, deserializeAws_restJson1CreateClusterCommandError(output, context)];
|
|
1302
1079
|
}
|
|
1303
|
-
contents = {
|
|
1080
|
+
contents = map({
|
|
1304
1081
|
$metadata: deserializeMetadata(output),
|
|
1305
|
-
|
|
1306
|
-
ClusterName: undefined,
|
|
1307
|
-
State: undefined,
|
|
1308
|
-
};
|
|
1082
|
+
});
|
|
1309
1083
|
_a = __expectNonNull;
|
|
1310
1084
|
_b = __expectObject;
|
|
1311
1085
|
return [4, parseBody(output.body, context)];
|
|
1312
1086
|
case 1:
|
|
1313
1087
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1314
|
-
if (data.clusterArn
|
|
1088
|
+
if (data.clusterArn != null) {
|
|
1315
1089
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
1316
1090
|
}
|
|
1317
|
-
if (data.clusterName
|
|
1091
|
+
if (data.clusterName != null) {
|
|
1318
1092
|
contents.ClusterName = __expectString(data.clusterName);
|
|
1319
1093
|
}
|
|
1320
|
-
if (data.state
|
|
1094
|
+
if (data.state != null) {
|
|
1321
1095
|
contents.State = __expectString(data.state);
|
|
1322
1096
|
}
|
|
1323
|
-
return [2,
|
|
1097
|
+
return [2, contents];
|
|
1324
1098
|
}
|
|
1325
1099
|
});
|
|
1326
1100
|
}); };
|
|
1327
1101
|
var deserializeAws_restJson1CreateClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1328
|
-
var parsedOutput, _a,
|
|
1102
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1329
1103
|
var _c;
|
|
1330
1104
|
return __generator(this, function (_d) {
|
|
1331
1105
|
switch (_d.label) {
|
|
@@ -1370,14 +1144,14 @@ var deserializeAws_restJson1CreateClusterCommandError = function (output, contex
|
|
|
1370
1144
|
case 15: throw _d.sent();
|
|
1371
1145
|
case 16:
|
|
1372
1146
|
parsedBody = parsedOutput.body;
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
$metadata: $metadata,
|
|
1147
|
+
throwDefaultError({
|
|
1148
|
+
output: output,
|
|
1149
|
+
parsedBody: parsedBody,
|
|
1150
|
+
exceptionCtor: __BaseException,
|
|
1151
|
+
errorCode: errorCode,
|
|
1379
1152
|
});
|
|
1380
|
-
|
|
1153
|
+
_d.label = 17;
|
|
1154
|
+
case 17: return [2];
|
|
1381
1155
|
}
|
|
1382
1156
|
});
|
|
1383
1157
|
}); };
|
|
@@ -1389,36 +1163,32 @@ export var deserializeAws_restJson1CreateClusterV2Command = function (output, co
|
|
|
1389
1163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1390
1164
|
return [2, deserializeAws_restJson1CreateClusterV2CommandError(output, context)];
|
|
1391
1165
|
}
|
|
1392
|
-
contents = {
|
|
1166
|
+
contents = map({
|
|
1393
1167
|
$metadata: deserializeMetadata(output),
|
|
1394
|
-
|
|
1395
|
-
ClusterName: undefined,
|
|
1396
|
-
ClusterType: undefined,
|
|
1397
|
-
State: undefined,
|
|
1398
|
-
};
|
|
1168
|
+
});
|
|
1399
1169
|
_a = __expectNonNull;
|
|
1400
1170
|
_b = __expectObject;
|
|
1401
1171
|
return [4, parseBody(output.body, context)];
|
|
1402
1172
|
case 1:
|
|
1403
1173
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1404
|
-
if (data.clusterArn
|
|
1174
|
+
if (data.clusterArn != null) {
|
|
1405
1175
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
1406
1176
|
}
|
|
1407
|
-
if (data.clusterName
|
|
1177
|
+
if (data.clusterName != null) {
|
|
1408
1178
|
contents.ClusterName = __expectString(data.clusterName);
|
|
1409
1179
|
}
|
|
1410
|
-
if (data.clusterType
|
|
1180
|
+
if (data.clusterType != null) {
|
|
1411
1181
|
contents.ClusterType = __expectString(data.clusterType);
|
|
1412
1182
|
}
|
|
1413
|
-
if (data.state
|
|
1183
|
+
if (data.state != null) {
|
|
1414
1184
|
contents.State = __expectString(data.state);
|
|
1415
1185
|
}
|
|
1416
|
-
return [2,
|
|
1186
|
+
return [2, contents];
|
|
1417
1187
|
}
|
|
1418
1188
|
});
|
|
1419
1189
|
}); };
|
|
1420
1190
|
var deserializeAws_restJson1CreateClusterV2CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1421
|
-
var parsedOutput, _a,
|
|
1191
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1422
1192
|
var _c;
|
|
1423
1193
|
return __generator(this, function (_d) {
|
|
1424
1194
|
switch (_d.label) {
|
|
@@ -1463,14 +1233,14 @@ var deserializeAws_restJson1CreateClusterV2CommandError = function (output, cont
|
|
|
1463
1233
|
case 15: throw _d.sent();
|
|
1464
1234
|
case 16:
|
|
1465
1235
|
parsedBody = parsedOutput.body;
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
$metadata: $metadata,
|
|
1236
|
+
throwDefaultError({
|
|
1237
|
+
output: output,
|
|
1238
|
+
parsedBody: parsedBody,
|
|
1239
|
+
exceptionCtor: __BaseException,
|
|
1240
|
+
errorCode: errorCode,
|
|
1472
1241
|
});
|
|
1473
|
-
|
|
1242
|
+
_d.label = 17;
|
|
1243
|
+
case 17: return [2];
|
|
1474
1244
|
}
|
|
1475
1245
|
});
|
|
1476
1246
|
}); };
|
|
@@ -1482,40 +1252,35 @@ export var deserializeAws_restJson1CreateConfigurationCommand = function (output
|
|
|
1482
1252
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1483
1253
|
return [2, deserializeAws_restJson1CreateConfigurationCommandError(output, context)];
|
|
1484
1254
|
}
|
|
1485
|
-
contents = {
|
|
1255
|
+
contents = map({
|
|
1486
1256
|
$metadata: deserializeMetadata(output),
|
|
1487
|
-
|
|
1488
|
-
CreationTime: undefined,
|
|
1489
|
-
LatestRevision: undefined,
|
|
1490
|
-
Name: undefined,
|
|
1491
|
-
State: undefined,
|
|
1492
|
-
};
|
|
1257
|
+
});
|
|
1493
1258
|
_a = __expectNonNull;
|
|
1494
1259
|
_b = __expectObject;
|
|
1495
1260
|
return [4, parseBody(output.body, context)];
|
|
1496
1261
|
case 1:
|
|
1497
1262
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1498
|
-
if (data.arn
|
|
1263
|
+
if (data.arn != null) {
|
|
1499
1264
|
contents.Arn = __expectString(data.arn);
|
|
1500
1265
|
}
|
|
1501
|
-
if (data.creationTime
|
|
1266
|
+
if (data.creationTime != null) {
|
|
1502
1267
|
contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(data.creationTime));
|
|
1503
1268
|
}
|
|
1504
|
-
if (data.latestRevision
|
|
1269
|
+
if (data.latestRevision != null) {
|
|
1505
1270
|
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
1506
1271
|
}
|
|
1507
|
-
if (data.name
|
|
1272
|
+
if (data.name != null) {
|
|
1508
1273
|
contents.Name = __expectString(data.name);
|
|
1509
1274
|
}
|
|
1510
|
-
if (data.state
|
|
1275
|
+
if (data.state != null) {
|
|
1511
1276
|
contents.State = __expectString(data.state);
|
|
1512
1277
|
}
|
|
1513
|
-
return [2,
|
|
1278
|
+
return [2, contents];
|
|
1514
1279
|
}
|
|
1515
1280
|
});
|
|
1516
1281
|
}); };
|
|
1517
1282
|
var deserializeAws_restJson1CreateConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1518
|
-
var parsedOutput, _a,
|
|
1283
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1519
1284
|
var _c;
|
|
1520
1285
|
return __generator(this, function (_d) {
|
|
1521
1286
|
switch (_d.label) {
|
|
@@ -1560,14 +1325,14 @@ var deserializeAws_restJson1CreateConfigurationCommandError = function (output,
|
|
|
1560
1325
|
case 15: throw _d.sent();
|
|
1561
1326
|
case 16:
|
|
1562
1327
|
parsedBody = parsedOutput.body;
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
$metadata: $metadata,
|
|
1328
|
+
throwDefaultError({
|
|
1329
|
+
output: output,
|
|
1330
|
+
parsedBody: parsedBody,
|
|
1331
|
+
exceptionCtor: __BaseException,
|
|
1332
|
+
errorCode: errorCode,
|
|
1569
1333
|
});
|
|
1570
|
-
|
|
1334
|
+
_d.label = 17;
|
|
1335
|
+
case 17: return [2];
|
|
1571
1336
|
}
|
|
1572
1337
|
});
|
|
1573
1338
|
}); };
|
|
@@ -1579,28 +1344,26 @@ export var deserializeAws_restJson1DeleteClusterCommand = function (output, cont
|
|
|
1579
1344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1580
1345
|
return [2, deserializeAws_restJson1DeleteClusterCommandError(output, context)];
|
|
1581
1346
|
}
|
|
1582
|
-
contents = {
|
|
1347
|
+
contents = map({
|
|
1583
1348
|
$metadata: deserializeMetadata(output),
|
|
1584
|
-
|
|
1585
|
-
State: undefined,
|
|
1586
|
-
};
|
|
1349
|
+
});
|
|
1587
1350
|
_a = __expectNonNull;
|
|
1588
1351
|
_b = __expectObject;
|
|
1589
1352
|
return [4, parseBody(output.body, context)];
|
|
1590
1353
|
case 1:
|
|
1591
1354
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1592
|
-
if (data.clusterArn
|
|
1355
|
+
if (data.clusterArn != null) {
|
|
1593
1356
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
1594
1357
|
}
|
|
1595
|
-
if (data.state
|
|
1358
|
+
if (data.state != null) {
|
|
1596
1359
|
contents.State = __expectString(data.state);
|
|
1597
1360
|
}
|
|
1598
|
-
return [2,
|
|
1361
|
+
return [2, contents];
|
|
1599
1362
|
}
|
|
1600
1363
|
});
|
|
1601
1364
|
}); };
|
|
1602
1365
|
var deserializeAws_restJson1DeleteClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1603
|
-
var parsedOutput, _a,
|
|
1366
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1604
1367
|
var _c;
|
|
1605
1368
|
return __generator(this, function (_d) {
|
|
1606
1369
|
switch (_d.label) {
|
|
@@ -1633,14 +1396,14 @@ var deserializeAws_restJson1DeleteClusterCommandError = function (output, contex
|
|
|
1633
1396
|
case 9: throw _d.sent();
|
|
1634
1397
|
case 10:
|
|
1635
1398
|
parsedBody = parsedOutput.body;
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
$metadata: $metadata,
|
|
1399
|
+
throwDefaultError({
|
|
1400
|
+
output: output,
|
|
1401
|
+
parsedBody: parsedBody,
|
|
1402
|
+
exceptionCtor: __BaseException,
|
|
1403
|
+
errorCode: errorCode,
|
|
1642
1404
|
});
|
|
1643
|
-
|
|
1405
|
+
_d.label = 11;
|
|
1406
|
+
case 11: return [2];
|
|
1644
1407
|
}
|
|
1645
1408
|
});
|
|
1646
1409
|
}); };
|
|
@@ -1652,28 +1415,26 @@ export var deserializeAws_restJson1DeleteConfigurationCommand = function (output
|
|
|
1652
1415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1653
1416
|
return [2, deserializeAws_restJson1DeleteConfigurationCommandError(output, context)];
|
|
1654
1417
|
}
|
|
1655
|
-
contents = {
|
|
1418
|
+
contents = map({
|
|
1656
1419
|
$metadata: deserializeMetadata(output),
|
|
1657
|
-
|
|
1658
|
-
State: undefined,
|
|
1659
|
-
};
|
|
1420
|
+
});
|
|
1660
1421
|
_a = __expectNonNull;
|
|
1661
1422
|
_b = __expectObject;
|
|
1662
1423
|
return [4, parseBody(output.body, context)];
|
|
1663
1424
|
case 1:
|
|
1664
1425
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1665
|
-
if (data.arn
|
|
1426
|
+
if (data.arn != null) {
|
|
1666
1427
|
contents.Arn = __expectString(data.arn);
|
|
1667
1428
|
}
|
|
1668
|
-
if (data.state
|
|
1429
|
+
if (data.state != null) {
|
|
1669
1430
|
contents.State = __expectString(data.state);
|
|
1670
1431
|
}
|
|
1671
|
-
return [2,
|
|
1432
|
+
return [2, contents];
|
|
1672
1433
|
}
|
|
1673
1434
|
});
|
|
1674
1435
|
}); };
|
|
1675
1436
|
var deserializeAws_restJson1DeleteConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1676
|
-
var parsedOutput, _a,
|
|
1437
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1677
1438
|
var _c;
|
|
1678
1439
|
return __generator(this, function (_d) {
|
|
1679
1440
|
switch (_d.label) {
|
|
@@ -1706,14 +1467,14 @@ var deserializeAws_restJson1DeleteConfigurationCommandError = function (output,
|
|
|
1706
1467
|
case 9: throw _d.sent();
|
|
1707
1468
|
case 10:
|
|
1708
1469
|
parsedBody = parsedOutput.body;
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
$metadata: $metadata,
|
|
1470
|
+
throwDefaultError({
|
|
1471
|
+
output: output,
|
|
1472
|
+
parsedBody: parsedBody,
|
|
1473
|
+
exceptionCtor: __BaseException,
|
|
1474
|
+
errorCode: errorCode,
|
|
1715
1475
|
});
|
|
1716
|
-
|
|
1476
|
+
_d.label = 11;
|
|
1477
|
+
case 11: return [2];
|
|
1717
1478
|
}
|
|
1718
1479
|
});
|
|
1719
1480
|
}); };
|
|
@@ -1725,24 +1486,23 @@ export var deserializeAws_restJson1DescribeClusterCommand = function (output, co
|
|
|
1725
1486
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1726
1487
|
return [2, deserializeAws_restJson1DescribeClusterCommandError(output, context)];
|
|
1727
1488
|
}
|
|
1728
|
-
contents = {
|
|
1489
|
+
contents = map({
|
|
1729
1490
|
$metadata: deserializeMetadata(output),
|
|
1730
|
-
|
|
1731
|
-
};
|
|
1491
|
+
});
|
|
1732
1492
|
_a = __expectNonNull;
|
|
1733
1493
|
_b = __expectObject;
|
|
1734
1494
|
return [4, parseBody(output.body, context)];
|
|
1735
1495
|
case 1:
|
|
1736
1496
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1737
|
-
if (data.clusterInfo
|
|
1497
|
+
if (data.clusterInfo != null) {
|
|
1738
1498
|
contents.ClusterInfo = deserializeAws_restJson1ClusterInfo(data.clusterInfo, context);
|
|
1739
1499
|
}
|
|
1740
|
-
return [2,
|
|
1500
|
+
return [2, contents];
|
|
1741
1501
|
}
|
|
1742
1502
|
});
|
|
1743
1503
|
}); };
|
|
1744
1504
|
var deserializeAws_restJson1DescribeClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1745
|
-
var parsedOutput, _a,
|
|
1505
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1746
1506
|
var _c;
|
|
1747
1507
|
return __generator(this, function (_d) {
|
|
1748
1508
|
switch (_d.label) {
|
|
@@ -1779,14 +1539,14 @@ var deserializeAws_restJson1DescribeClusterCommandError = function (output, cont
|
|
|
1779
1539
|
case 11: throw _d.sent();
|
|
1780
1540
|
case 12:
|
|
1781
1541
|
parsedBody = parsedOutput.body;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
$metadata: $metadata,
|
|
1542
|
+
throwDefaultError({
|
|
1543
|
+
output: output,
|
|
1544
|
+
parsedBody: parsedBody,
|
|
1545
|
+
exceptionCtor: __BaseException,
|
|
1546
|
+
errorCode: errorCode,
|
|
1788
1547
|
});
|
|
1789
|
-
|
|
1548
|
+
_d.label = 13;
|
|
1549
|
+
case 13: return [2];
|
|
1790
1550
|
}
|
|
1791
1551
|
});
|
|
1792
1552
|
}); };
|
|
@@ -1798,24 +1558,23 @@ export var deserializeAws_restJson1DescribeClusterOperationCommand = function (o
|
|
|
1798
1558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1799
1559
|
return [2, deserializeAws_restJson1DescribeClusterOperationCommandError(output, context)];
|
|
1800
1560
|
}
|
|
1801
|
-
contents = {
|
|
1561
|
+
contents = map({
|
|
1802
1562
|
$metadata: deserializeMetadata(output),
|
|
1803
|
-
|
|
1804
|
-
};
|
|
1563
|
+
});
|
|
1805
1564
|
_a = __expectNonNull;
|
|
1806
1565
|
_b = __expectObject;
|
|
1807
1566
|
return [4, parseBody(output.body, context)];
|
|
1808
1567
|
case 1:
|
|
1809
1568
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1810
|
-
if (data.clusterOperationInfo
|
|
1569
|
+
if (data.clusterOperationInfo != null) {
|
|
1811
1570
|
contents.ClusterOperationInfo = deserializeAws_restJson1ClusterOperationInfo(data.clusterOperationInfo, context);
|
|
1812
1571
|
}
|
|
1813
|
-
return [2,
|
|
1572
|
+
return [2, contents];
|
|
1814
1573
|
}
|
|
1815
1574
|
});
|
|
1816
1575
|
}); };
|
|
1817
1576
|
var deserializeAws_restJson1DescribeClusterOperationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1818
|
-
var parsedOutput, _a,
|
|
1577
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1819
1578
|
var _c;
|
|
1820
1579
|
return __generator(this, function (_d) {
|
|
1821
1580
|
switch (_d.label) {
|
|
@@ -1852,14 +1611,14 @@ var deserializeAws_restJson1DescribeClusterOperationCommandError = function (out
|
|
|
1852
1611
|
case 11: throw _d.sent();
|
|
1853
1612
|
case 12:
|
|
1854
1613
|
parsedBody = parsedOutput.body;
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
$metadata: $metadata,
|
|
1614
|
+
throwDefaultError({
|
|
1615
|
+
output: output,
|
|
1616
|
+
parsedBody: parsedBody,
|
|
1617
|
+
exceptionCtor: __BaseException,
|
|
1618
|
+
errorCode: errorCode,
|
|
1861
1619
|
});
|
|
1862
|
-
|
|
1620
|
+
_d.label = 13;
|
|
1621
|
+
case 13: return [2];
|
|
1863
1622
|
}
|
|
1864
1623
|
});
|
|
1865
1624
|
}); };
|
|
@@ -1871,24 +1630,23 @@ export var deserializeAws_restJson1DescribeClusterV2Command = function (output,
|
|
|
1871
1630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1872
1631
|
return [2, deserializeAws_restJson1DescribeClusterV2CommandError(output, context)];
|
|
1873
1632
|
}
|
|
1874
|
-
contents = {
|
|
1633
|
+
contents = map({
|
|
1875
1634
|
$metadata: deserializeMetadata(output),
|
|
1876
|
-
|
|
1877
|
-
};
|
|
1635
|
+
});
|
|
1878
1636
|
_a = __expectNonNull;
|
|
1879
1637
|
_b = __expectObject;
|
|
1880
1638
|
return [4, parseBody(output.body, context)];
|
|
1881
1639
|
case 1:
|
|
1882
1640
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1883
|
-
if (data.clusterInfo
|
|
1641
|
+
if (data.clusterInfo != null) {
|
|
1884
1642
|
contents.ClusterInfo = deserializeAws_restJson1Cluster(data.clusterInfo, context);
|
|
1885
1643
|
}
|
|
1886
|
-
return [2,
|
|
1644
|
+
return [2, contents];
|
|
1887
1645
|
}
|
|
1888
1646
|
});
|
|
1889
1647
|
}); };
|
|
1890
1648
|
var deserializeAws_restJson1DescribeClusterV2CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1891
|
-
var parsedOutput, _a,
|
|
1649
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1892
1650
|
var _c;
|
|
1893
1651
|
return __generator(this, function (_d) {
|
|
1894
1652
|
switch (_d.label) {
|
|
@@ -1925,14 +1683,14 @@ var deserializeAws_restJson1DescribeClusterV2CommandError = function (output, co
|
|
|
1925
1683
|
case 11: throw _d.sent();
|
|
1926
1684
|
case 12:
|
|
1927
1685
|
parsedBody = parsedOutput.body;
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
$metadata: $metadata,
|
|
1686
|
+
throwDefaultError({
|
|
1687
|
+
output: output,
|
|
1688
|
+
parsedBody: parsedBody,
|
|
1689
|
+
exceptionCtor: __BaseException,
|
|
1690
|
+
errorCode: errorCode,
|
|
1934
1691
|
});
|
|
1935
|
-
|
|
1692
|
+
_d.label = 13;
|
|
1693
|
+
case 13: return [2];
|
|
1936
1694
|
}
|
|
1937
1695
|
});
|
|
1938
1696
|
}); };
|
|
@@ -1944,48 +1702,41 @@ export var deserializeAws_restJson1DescribeConfigurationCommand = function (outp
|
|
|
1944
1702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1945
1703
|
return [2, deserializeAws_restJson1DescribeConfigurationCommandError(output, context)];
|
|
1946
1704
|
}
|
|
1947
|
-
contents = {
|
|
1705
|
+
contents = map({
|
|
1948
1706
|
$metadata: deserializeMetadata(output),
|
|
1949
|
-
|
|
1950
|
-
CreationTime: undefined,
|
|
1951
|
-
Description: undefined,
|
|
1952
|
-
KafkaVersions: undefined,
|
|
1953
|
-
LatestRevision: undefined,
|
|
1954
|
-
Name: undefined,
|
|
1955
|
-
State: undefined,
|
|
1956
|
-
};
|
|
1707
|
+
});
|
|
1957
1708
|
_a = __expectNonNull;
|
|
1958
1709
|
_b = __expectObject;
|
|
1959
1710
|
return [4, parseBody(output.body, context)];
|
|
1960
1711
|
case 1:
|
|
1961
1712
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1962
|
-
if (data.arn
|
|
1713
|
+
if (data.arn != null) {
|
|
1963
1714
|
contents.Arn = __expectString(data.arn);
|
|
1964
1715
|
}
|
|
1965
|
-
if (data.creationTime
|
|
1716
|
+
if (data.creationTime != null) {
|
|
1966
1717
|
contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(data.creationTime));
|
|
1967
1718
|
}
|
|
1968
|
-
if (data.description
|
|
1719
|
+
if (data.description != null) {
|
|
1969
1720
|
contents.Description = __expectString(data.description);
|
|
1970
1721
|
}
|
|
1971
|
-
if (data.kafkaVersions
|
|
1722
|
+
if (data.kafkaVersions != null) {
|
|
1972
1723
|
contents.KafkaVersions = deserializeAws_restJson1__listOf__string(data.kafkaVersions, context);
|
|
1973
1724
|
}
|
|
1974
|
-
if (data.latestRevision
|
|
1725
|
+
if (data.latestRevision != null) {
|
|
1975
1726
|
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
1976
1727
|
}
|
|
1977
|
-
if (data.name
|
|
1728
|
+
if (data.name != null) {
|
|
1978
1729
|
contents.Name = __expectString(data.name);
|
|
1979
1730
|
}
|
|
1980
|
-
if (data.state
|
|
1731
|
+
if (data.state != null) {
|
|
1981
1732
|
contents.State = __expectString(data.state);
|
|
1982
1733
|
}
|
|
1983
|
-
return [2,
|
|
1734
|
+
return [2, contents];
|
|
1984
1735
|
}
|
|
1985
1736
|
});
|
|
1986
1737
|
}); };
|
|
1987
1738
|
var deserializeAws_restJson1DescribeConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1988
|
-
var parsedOutput, _a,
|
|
1739
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1989
1740
|
var _c;
|
|
1990
1741
|
return __generator(this, function (_d) {
|
|
1991
1742
|
switch (_d.label) {
|
|
@@ -2026,14 +1777,14 @@ var deserializeAws_restJson1DescribeConfigurationCommandError = function (output
|
|
|
2026
1777
|
case 13: throw _d.sent();
|
|
2027
1778
|
case 14:
|
|
2028
1779
|
parsedBody = parsedOutput.body;
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
$metadata: $metadata,
|
|
1780
|
+
throwDefaultError({
|
|
1781
|
+
output: output,
|
|
1782
|
+
parsedBody: parsedBody,
|
|
1783
|
+
exceptionCtor: __BaseException,
|
|
1784
|
+
errorCode: errorCode,
|
|
2035
1785
|
});
|
|
2036
|
-
|
|
1786
|
+
_d.label = 15;
|
|
1787
|
+
case 15: return [2];
|
|
2037
1788
|
}
|
|
2038
1789
|
});
|
|
2039
1790
|
}); };
|
|
@@ -2045,40 +1796,35 @@ export var deserializeAws_restJson1DescribeConfigurationRevisionCommand = functi
|
|
|
2045
1796
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2046
1797
|
return [2, deserializeAws_restJson1DescribeConfigurationRevisionCommandError(output, context)];
|
|
2047
1798
|
}
|
|
2048
|
-
contents = {
|
|
1799
|
+
contents = map({
|
|
2049
1800
|
$metadata: deserializeMetadata(output),
|
|
2050
|
-
|
|
2051
|
-
CreationTime: undefined,
|
|
2052
|
-
Description: undefined,
|
|
2053
|
-
Revision: undefined,
|
|
2054
|
-
ServerProperties: undefined,
|
|
2055
|
-
};
|
|
1801
|
+
});
|
|
2056
1802
|
_a = __expectNonNull;
|
|
2057
1803
|
_b = __expectObject;
|
|
2058
1804
|
return [4, parseBody(output.body, context)];
|
|
2059
1805
|
case 1:
|
|
2060
1806
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2061
|
-
if (data.arn
|
|
1807
|
+
if (data.arn != null) {
|
|
2062
1808
|
contents.Arn = __expectString(data.arn);
|
|
2063
1809
|
}
|
|
2064
|
-
if (data.creationTime
|
|
1810
|
+
if (data.creationTime != null) {
|
|
2065
1811
|
contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(data.creationTime));
|
|
2066
1812
|
}
|
|
2067
|
-
if (data.description
|
|
1813
|
+
if (data.description != null) {
|
|
2068
1814
|
contents.Description = __expectString(data.description);
|
|
2069
1815
|
}
|
|
2070
|
-
if (data.revision
|
|
1816
|
+
if (data.revision != null) {
|
|
2071
1817
|
contents.Revision = __expectLong(data.revision);
|
|
2072
1818
|
}
|
|
2073
|
-
if (data.serverProperties
|
|
1819
|
+
if (data.serverProperties != null) {
|
|
2074
1820
|
contents.ServerProperties = context.base64Decoder(data.serverProperties);
|
|
2075
1821
|
}
|
|
2076
|
-
return [2,
|
|
1822
|
+
return [2, contents];
|
|
2077
1823
|
}
|
|
2078
1824
|
});
|
|
2079
1825
|
}); };
|
|
2080
1826
|
var deserializeAws_restJson1DescribeConfigurationRevisionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2081
|
-
var parsedOutput, _a,
|
|
1827
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2082
1828
|
var _c;
|
|
2083
1829
|
return __generator(this, function (_d) {
|
|
2084
1830
|
switch (_d.label) {
|
|
@@ -2119,14 +1865,14 @@ var deserializeAws_restJson1DescribeConfigurationRevisionCommandError = function
|
|
|
2119
1865
|
case 13: throw _d.sent();
|
|
2120
1866
|
case 14:
|
|
2121
1867
|
parsedBody = parsedOutput.body;
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
$metadata: $metadata,
|
|
1868
|
+
throwDefaultError({
|
|
1869
|
+
output: output,
|
|
1870
|
+
parsedBody: parsedBody,
|
|
1871
|
+
exceptionCtor: __BaseException,
|
|
1872
|
+
errorCode: errorCode,
|
|
2128
1873
|
});
|
|
2129
|
-
|
|
1874
|
+
_d.label = 15;
|
|
1875
|
+
case 15: return [2];
|
|
2130
1876
|
}
|
|
2131
1877
|
});
|
|
2132
1878
|
}); };
|
|
@@ -2138,48 +1884,41 @@ export var deserializeAws_restJson1GetBootstrapBrokersCommand = function (output
|
|
|
2138
1884
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2139
1885
|
return [2, deserializeAws_restJson1GetBootstrapBrokersCommandError(output, context)];
|
|
2140
1886
|
}
|
|
2141
|
-
contents = {
|
|
1887
|
+
contents = map({
|
|
2142
1888
|
$metadata: deserializeMetadata(output),
|
|
2143
|
-
|
|
2144
|
-
BootstrapBrokerStringPublicSaslIam: undefined,
|
|
2145
|
-
BootstrapBrokerStringPublicSaslScram: undefined,
|
|
2146
|
-
BootstrapBrokerStringPublicTls: undefined,
|
|
2147
|
-
BootstrapBrokerStringSaslIam: undefined,
|
|
2148
|
-
BootstrapBrokerStringSaslScram: undefined,
|
|
2149
|
-
BootstrapBrokerStringTls: undefined,
|
|
2150
|
-
};
|
|
1889
|
+
});
|
|
2151
1890
|
_a = __expectNonNull;
|
|
2152
1891
|
_b = __expectObject;
|
|
2153
1892
|
return [4, parseBody(output.body, context)];
|
|
2154
1893
|
case 1:
|
|
2155
1894
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2156
|
-
if (data.bootstrapBrokerString
|
|
1895
|
+
if (data.bootstrapBrokerString != null) {
|
|
2157
1896
|
contents.BootstrapBrokerString = __expectString(data.bootstrapBrokerString);
|
|
2158
1897
|
}
|
|
2159
|
-
if (data.bootstrapBrokerStringPublicSaslIam
|
|
1898
|
+
if (data.bootstrapBrokerStringPublicSaslIam != null) {
|
|
2160
1899
|
contents.BootstrapBrokerStringPublicSaslIam = __expectString(data.bootstrapBrokerStringPublicSaslIam);
|
|
2161
1900
|
}
|
|
2162
|
-
if (data.bootstrapBrokerStringPublicSaslScram
|
|
1901
|
+
if (data.bootstrapBrokerStringPublicSaslScram != null) {
|
|
2163
1902
|
contents.BootstrapBrokerStringPublicSaslScram = __expectString(data.bootstrapBrokerStringPublicSaslScram);
|
|
2164
1903
|
}
|
|
2165
|
-
if (data.bootstrapBrokerStringPublicTls
|
|
1904
|
+
if (data.bootstrapBrokerStringPublicTls != null) {
|
|
2166
1905
|
contents.BootstrapBrokerStringPublicTls = __expectString(data.bootstrapBrokerStringPublicTls);
|
|
2167
1906
|
}
|
|
2168
|
-
if (data.bootstrapBrokerStringSaslIam
|
|
1907
|
+
if (data.bootstrapBrokerStringSaslIam != null) {
|
|
2169
1908
|
contents.BootstrapBrokerStringSaslIam = __expectString(data.bootstrapBrokerStringSaslIam);
|
|
2170
1909
|
}
|
|
2171
|
-
if (data.bootstrapBrokerStringSaslScram
|
|
1910
|
+
if (data.bootstrapBrokerStringSaslScram != null) {
|
|
2172
1911
|
contents.BootstrapBrokerStringSaslScram = __expectString(data.bootstrapBrokerStringSaslScram);
|
|
2173
1912
|
}
|
|
2174
|
-
if (data.bootstrapBrokerStringTls
|
|
1913
|
+
if (data.bootstrapBrokerStringTls != null) {
|
|
2175
1914
|
contents.BootstrapBrokerStringTls = __expectString(data.bootstrapBrokerStringTls);
|
|
2176
1915
|
}
|
|
2177
|
-
return [2,
|
|
1916
|
+
return [2, contents];
|
|
2178
1917
|
}
|
|
2179
1918
|
});
|
|
2180
1919
|
}); };
|
|
2181
1920
|
var deserializeAws_restJson1GetBootstrapBrokersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2182
|
-
var parsedOutput, _a,
|
|
1921
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2183
1922
|
var _c;
|
|
2184
1923
|
return __generator(this, function (_d) {
|
|
2185
1924
|
switch (_d.label) {
|
|
@@ -2216,14 +1955,14 @@ var deserializeAws_restJson1GetBootstrapBrokersCommandError = function (output,
|
|
|
2216
1955
|
case 11: throw _d.sent();
|
|
2217
1956
|
case 12:
|
|
2218
1957
|
parsedBody = parsedOutput.body;
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
$metadata: $metadata,
|
|
1958
|
+
throwDefaultError({
|
|
1959
|
+
output: output,
|
|
1960
|
+
parsedBody: parsedBody,
|
|
1961
|
+
exceptionCtor: __BaseException,
|
|
1962
|
+
errorCode: errorCode,
|
|
2225
1963
|
});
|
|
2226
|
-
|
|
1964
|
+
_d.label = 13;
|
|
1965
|
+
case 13: return [2];
|
|
2227
1966
|
}
|
|
2228
1967
|
});
|
|
2229
1968
|
}); };
|
|
@@ -2235,24 +1974,23 @@ export var deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = function
|
|
|
2235
1974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2236
1975
|
return [2, deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError(output, context)];
|
|
2237
1976
|
}
|
|
2238
|
-
contents = {
|
|
1977
|
+
contents = map({
|
|
2239
1978
|
$metadata: deserializeMetadata(output),
|
|
2240
|
-
|
|
2241
|
-
};
|
|
1979
|
+
});
|
|
2242
1980
|
_a = __expectNonNull;
|
|
2243
1981
|
_b = __expectObject;
|
|
2244
1982
|
return [4, parseBody(output.body, context)];
|
|
2245
1983
|
case 1:
|
|
2246
1984
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2247
|
-
if (data.compatibleKafkaVersions
|
|
1985
|
+
if (data.compatibleKafkaVersions != null) {
|
|
2248
1986
|
contents.CompatibleKafkaVersions = deserializeAws_restJson1__listOfCompatibleKafkaVersion(data.compatibleKafkaVersions, context);
|
|
2249
1987
|
}
|
|
2250
|
-
return [2,
|
|
1988
|
+
return [2, contents];
|
|
2251
1989
|
}
|
|
2252
1990
|
});
|
|
2253
1991
|
}); };
|
|
2254
1992
|
var deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2255
|
-
var parsedOutput, _a,
|
|
1993
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2256
1994
|
var _c;
|
|
2257
1995
|
return __generator(this, function (_d) {
|
|
2258
1996
|
switch (_d.label) {
|
|
@@ -2297,14 +2035,14 @@ var deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError = function (o
|
|
|
2297
2035
|
case 15: throw _d.sent();
|
|
2298
2036
|
case 16:
|
|
2299
2037
|
parsedBody = parsedOutput.body;
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
$metadata: $metadata,
|
|
2038
|
+
throwDefaultError({
|
|
2039
|
+
output: output,
|
|
2040
|
+
parsedBody: parsedBody,
|
|
2041
|
+
exceptionCtor: __BaseException,
|
|
2042
|
+
errorCode: errorCode,
|
|
2306
2043
|
});
|
|
2307
|
-
|
|
2044
|
+
_d.label = 17;
|
|
2045
|
+
case 17: return [2];
|
|
2308
2046
|
}
|
|
2309
2047
|
});
|
|
2310
2048
|
}); };
|
|
@@ -2316,28 +2054,26 @@ export var deserializeAws_restJson1ListClusterOperationsCommand = function (outp
|
|
|
2316
2054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2317
2055
|
return [2, deserializeAws_restJson1ListClusterOperationsCommandError(output, context)];
|
|
2318
2056
|
}
|
|
2319
|
-
contents = {
|
|
2057
|
+
contents = map({
|
|
2320
2058
|
$metadata: deserializeMetadata(output),
|
|
2321
|
-
|
|
2322
|
-
NextToken: undefined,
|
|
2323
|
-
};
|
|
2059
|
+
});
|
|
2324
2060
|
_a = __expectNonNull;
|
|
2325
2061
|
_b = __expectObject;
|
|
2326
2062
|
return [4, parseBody(output.body, context)];
|
|
2327
2063
|
case 1:
|
|
2328
2064
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2329
|
-
if (data.clusterOperationInfoList
|
|
2065
|
+
if (data.clusterOperationInfoList != null) {
|
|
2330
2066
|
contents.ClusterOperationInfoList = deserializeAws_restJson1__listOfClusterOperationInfo(data.clusterOperationInfoList, context);
|
|
2331
2067
|
}
|
|
2332
|
-
if (data.nextToken
|
|
2068
|
+
if (data.nextToken != null) {
|
|
2333
2069
|
contents.NextToken = __expectString(data.nextToken);
|
|
2334
2070
|
}
|
|
2335
|
-
return [2,
|
|
2071
|
+
return [2, contents];
|
|
2336
2072
|
}
|
|
2337
2073
|
});
|
|
2338
2074
|
}); };
|
|
2339
2075
|
var deserializeAws_restJson1ListClusterOperationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2340
|
-
var parsedOutput, _a,
|
|
2076
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2341
2077
|
var _c;
|
|
2342
2078
|
return __generator(this, function (_d) {
|
|
2343
2079
|
switch (_d.label) {
|
|
@@ -2370,14 +2106,14 @@ var deserializeAws_restJson1ListClusterOperationsCommandError = function (output
|
|
|
2370
2106
|
case 9: throw _d.sent();
|
|
2371
2107
|
case 10:
|
|
2372
2108
|
parsedBody = parsedOutput.body;
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
$metadata: $metadata,
|
|
2109
|
+
throwDefaultError({
|
|
2110
|
+
output: output,
|
|
2111
|
+
parsedBody: parsedBody,
|
|
2112
|
+
exceptionCtor: __BaseException,
|
|
2113
|
+
errorCode: errorCode,
|
|
2379
2114
|
});
|
|
2380
|
-
|
|
2115
|
+
_d.label = 11;
|
|
2116
|
+
case 11: return [2];
|
|
2381
2117
|
}
|
|
2382
2118
|
});
|
|
2383
2119
|
}); };
|
|
@@ -2389,28 +2125,26 @@ export var deserializeAws_restJson1ListClustersCommand = function (output, conte
|
|
|
2389
2125
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2390
2126
|
return [2, deserializeAws_restJson1ListClustersCommandError(output, context)];
|
|
2391
2127
|
}
|
|
2392
|
-
contents = {
|
|
2128
|
+
contents = map({
|
|
2393
2129
|
$metadata: deserializeMetadata(output),
|
|
2394
|
-
|
|
2395
|
-
NextToken: undefined,
|
|
2396
|
-
};
|
|
2130
|
+
});
|
|
2397
2131
|
_a = __expectNonNull;
|
|
2398
2132
|
_b = __expectObject;
|
|
2399
2133
|
return [4, parseBody(output.body, context)];
|
|
2400
2134
|
case 1:
|
|
2401
2135
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2402
|
-
if (data.clusterInfoList
|
|
2136
|
+
if (data.clusterInfoList != null) {
|
|
2403
2137
|
contents.ClusterInfoList = deserializeAws_restJson1__listOfClusterInfo(data.clusterInfoList, context);
|
|
2404
2138
|
}
|
|
2405
|
-
if (data.nextToken
|
|
2139
|
+
if (data.nextToken != null) {
|
|
2406
2140
|
contents.NextToken = __expectString(data.nextToken);
|
|
2407
2141
|
}
|
|
2408
|
-
return [2,
|
|
2142
|
+
return [2, contents];
|
|
2409
2143
|
}
|
|
2410
2144
|
});
|
|
2411
2145
|
}); };
|
|
2412
2146
|
var deserializeAws_restJson1ListClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2413
|
-
var parsedOutput, _a,
|
|
2147
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2414
2148
|
var _c;
|
|
2415
2149
|
return __generator(this, function (_d) {
|
|
2416
2150
|
switch (_d.label) {
|
|
@@ -2443,14 +2177,14 @@ var deserializeAws_restJson1ListClustersCommandError = function (output, context
|
|
|
2443
2177
|
case 9: throw _d.sent();
|
|
2444
2178
|
case 10:
|
|
2445
2179
|
parsedBody = parsedOutput.body;
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
$metadata: $metadata,
|
|
2180
|
+
throwDefaultError({
|
|
2181
|
+
output: output,
|
|
2182
|
+
parsedBody: parsedBody,
|
|
2183
|
+
exceptionCtor: __BaseException,
|
|
2184
|
+
errorCode: errorCode,
|
|
2452
2185
|
});
|
|
2453
|
-
|
|
2186
|
+
_d.label = 11;
|
|
2187
|
+
case 11: return [2];
|
|
2454
2188
|
}
|
|
2455
2189
|
});
|
|
2456
2190
|
}); };
|
|
@@ -2462,28 +2196,26 @@ export var deserializeAws_restJson1ListClustersV2Command = function (output, con
|
|
|
2462
2196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2463
2197
|
return [2, deserializeAws_restJson1ListClustersV2CommandError(output, context)];
|
|
2464
2198
|
}
|
|
2465
|
-
contents = {
|
|
2199
|
+
contents = map({
|
|
2466
2200
|
$metadata: deserializeMetadata(output),
|
|
2467
|
-
|
|
2468
|
-
NextToken: undefined,
|
|
2469
|
-
};
|
|
2201
|
+
});
|
|
2470
2202
|
_a = __expectNonNull;
|
|
2471
2203
|
_b = __expectObject;
|
|
2472
2204
|
return [4, parseBody(output.body, context)];
|
|
2473
2205
|
case 1:
|
|
2474
2206
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2475
|
-
if (data.clusterInfoList
|
|
2207
|
+
if (data.clusterInfoList != null) {
|
|
2476
2208
|
contents.ClusterInfoList = deserializeAws_restJson1__listOfCluster(data.clusterInfoList, context);
|
|
2477
2209
|
}
|
|
2478
|
-
if (data.nextToken
|
|
2210
|
+
if (data.nextToken != null) {
|
|
2479
2211
|
contents.NextToken = __expectString(data.nextToken);
|
|
2480
2212
|
}
|
|
2481
|
-
return [2,
|
|
2213
|
+
return [2, contents];
|
|
2482
2214
|
}
|
|
2483
2215
|
});
|
|
2484
2216
|
}); };
|
|
2485
2217
|
var deserializeAws_restJson1ListClustersV2CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2486
|
-
var parsedOutput, _a,
|
|
2218
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2487
2219
|
var _c;
|
|
2488
2220
|
return __generator(this, function (_d) {
|
|
2489
2221
|
switch (_d.label) {
|
|
@@ -2516,14 +2248,14 @@ var deserializeAws_restJson1ListClustersV2CommandError = function (output, conte
|
|
|
2516
2248
|
case 9: throw _d.sent();
|
|
2517
2249
|
case 10:
|
|
2518
2250
|
parsedBody = parsedOutput.body;
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
$metadata: $metadata,
|
|
2251
|
+
throwDefaultError({
|
|
2252
|
+
output: output,
|
|
2253
|
+
parsedBody: parsedBody,
|
|
2254
|
+
exceptionCtor: __BaseException,
|
|
2255
|
+
errorCode: errorCode,
|
|
2525
2256
|
});
|
|
2526
|
-
|
|
2257
|
+
_d.label = 11;
|
|
2258
|
+
case 11: return [2];
|
|
2527
2259
|
}
|
|
2528
2260
|
});
|
|
2529
2261
|
}); };
|
|
@@ -2535,28 +2267,26 @@ export var deserializeAws_restJson1ListConfigurationRevisionsCommand = function
|
|
|
2535
2267
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2536
2268
|
return [2, deserializeAws_restJson1ListConfigurationRevisionsCommandError(output, context)];
|
|
2537
2269
|
}
|
|
2538
|
-
contents = {
|
|
2270
|
+
contents = map({
|
|
2539
2271
|
$metadata: deserializeMetadata(output),
|
|
2540
|
-
|
|
2541
|
-
Revisions: undefined,
|
|
2542
|
-
};
|
|
2272
|
+
});
|
|
2543
2273
|
_a = __expectNonNull;
|
|
2544
2274
|
_b = __expectObject;
|
|
2545
2275
|
return [4, parseBody(output.body, context)];
|
|
2546
2276
|
case 1:
|
|
2547
2277
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2548
|
-
if (data.nextToken
|
|
2278
|
+
if (data.nextToken != null) {
|
|
2549
2279
|
contents.NextToken = __expectString(data.nextToken);
|
|
2550
2280
|
}
|
|
2551
|
-
if (data.revisions
|
|
2281
|
+
if (data.revisions != null) {
|
|
2552
2282
|
contents.Revisions = deserializeAws_restJson1__listOfConfigurationRevision(data.revisions, context);
|
|
2553
2283
|
}
|
|
2554
|
-
return [2,
|
|
2284
|
+
return [2, contents];
|
|
2555
2285
|
}
|
|
2556
2286
|
});
|
|
2557
2287
|
}); };
|
|
2558
2288
|
var deserializeAws_restJson1ListConfigurationRevisionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2559
|
-
var parsedOutput, _a,
|
|
2289
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2560
2290
|
var _c;
|
|
2561
2291
|
return __generator(this, function (_d) {
|
|
2562
2292
|
switch (_d.label) {
|
|
@@ -2597,14 +2327,14 @@ var deserializeAws_restJson1ListConfigurationRevisionsCommandError = function (o
|
|
|
2597
2327
|
case 13: throw _d.sent();
|
|
2598
2328
|
case 14:
|
|
2599
2329
|
parsedBody = parsedOutput.body;
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
$metadata: $metadata,
|
|
2330
|
+
throwDefaultError({
|
|
2331
|
+
output: output,
|
|
2332
|
+
parsedBody: parsedBody,
|
|
2333
|
+
exceptionCtor: __BaseException,
|
|
2334
|
+
errorCode: errorCode,
|
|
2606
2335
|
});
|
|
2607
|
-
|
|
2336
|
+
_d.label = 15;
|
|
2337
|
+
case 15: return [2];
|
|
2608
2338
|
}
|
|
2609
2339
|
});
|
|
2610
2340
|
}); };
|
|
@@ -2616,28 +2346,26 @@ export var deserializeAws_restJson1ListConfigurationsCommand = function (output,
|
|
|
2616
2346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2617
2347
|
return [2, deserializeAws_restJson1ListConfigurationsCommandError(output, context)];
|
|
2618
2348
|
}
|
|
2619
|
-
contents = {
|
|
2349
|
+
contents = map({
|
|
2620
2350
|
$metadata: deserializeMetadata(output),
|
|
2621
|
-
|
|
2622
|
-
NextToken: undefined,
|
|
2623
|
-
};
|
|
2351
|
+
});
|
|
2624
2352
|
_a = __expectNonNull;
|
|
2625
2353
|
_b = __expectObject;
|
|
2626
2354
|
return [4, parseBody(output.body, context)];
|
|
2627
2355
|
case 1:
|
|
2628
2356
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2629
|
-
if (data.configurations
|
|
2357
|
+
if (data.configurations != null) {
|
|
2630
2358
|
contents.Configurations = deserializeAws_restJson1__listOfConfiguration(data.configurations, context);
|
|
2631
2359
|
}
|
|
2632
|
-
if (data.nextToken
|
|
2360
|
+
if (data.nextToken != null) {
|
|
2633
2361
|
contents.NextToken = __expectString(data.nextToken);
|
|
2634
2362
|
}
|
|
2635
|
-
return [2,
|
|
2363
|
+
return [2, contents];
|
|
2636
2364
|
}
|
|
2637
2365
|
});
|
|
2638
2366
|
}); };
|
|
2639
2367
|
var deserializeAws_restJson1ListConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2640
|
-
var parsedOutput, _a,
|
|
2368
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2641
2369
|
var _c;
|
|
2642
2370
|
return __generator(this, function (_d) {
|
|
2643
2371
|
switch (_d.label) {
|
|
@@ -2674,14 +2402,14 @@ var deserializeAws_restJson1ListConfigurationsCommandError = function (output, c
|
|
|
2674
2402
|
case 11: throw _d.sent();
|
|
2675
2403
|
case 12:
|
|
2676
2404
|
parsedBody = parsedOutput.body;
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
$metadata: $metadata,
|
|
2405
|
+
throwDefaultError({
|
|
2406
|
+
output: output,
|
|
2407
|
+
parsedBody: parsedBody,
|
|
2408
|
+
exceptionCtor: __BaseException,
|
|
2409
|
+
errorCode: errorCode,
|
|
2683
2410
|
});
|
|
2684
|
-
|
|
2411
|
+
_d.label = 13;
|
|
2412
|
+
case 13: return [2];
|
|
2685
2413
|
}
|
|
2686
2414
|
});
|
|
2687
2415
|
}); };
|
|
@@ -2693,28 +2421,26 @@ export var deserializeAws_restJson1ListKafkaVersionsCommand = function (output,
|
|
|
2693
2421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2694
2422
|
return [2, deserializeAws_restJson1ListKafkaVersionsCommandError(output, context)];
|
|
2695
2423
|
}
|
|
2696
|
-
contents = {
|
|
2424
|
+
contents = map({
|
|
2697
2425
|
$metadata: deserializeMetadata(output),
|
|
2698
|
-
|
|
2699
|
-
NextToken: undefined,
|
|
2700
|
-
};
|
|
2426
|
+
});
|
|
2701
2427
|
_a = __expectNonNull;
|
|
2702
2428
|
_b = __expectObject;
|
|
2703
2429
|
return [4, parseBody(output.body, context)];
|
|
2704
2430
|
case 1:
|
|
2705
2431
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2706
|
-
if (data.kafkaVersions
|
|
2432
|
+
if (data.kafkaVersions != null) {
|
|
2707
2433
|
contents.KafkaVersions = deserializeAws_restJson1__listOfKafkaVersion(data.kafkaVersions, context);
|
|
2708
2434
|
}
|
|
2709
|
-
if (data.nextToken
|
|
2435
|
+
if (data.nextToken != null) {
|
|
2710
2436
|
contents.NextToken = __expectString(data.nextToken);
|
|
2711
2437
|
}
|
|
2712
|
-
return [2,
|
|
2438
|
+
return [2, contents];
|
|
2713
2439
|
}
|
|
2714
2440
|
});
|
|
2715
2441
|
}); };
|
|
2716
2442
|
var deserializeAws_restJson1ListKafkaVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2717
|
-
var parsedOutput, _a,
|
|
2443
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2718
2444
|
var _c;
|
|
2719
2445
|
return __generator(this, function (_d) {
|
|
2720
2446
|
switch (_d.label) {
|
|
@@ -2747,14 +2473,14 @@ var deserializeAws_restJson1ListKafkaVersionsCommandError = function (output, co
|
|
|
2747
2473
|
case 9: throw _d.sent();
|
|
2748
2474
|
case 10:
|
|
2749
2475
|
parsedBody = parsedOutput.body;
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
$metadata: $metadata,
|
|
2476
|
+
throwDefaultError({
|
|
2477
|
+
output: output,
|
|
2478
|
+
parsedBody: parsedBody,
|
|
2479
|
+
exceptionCtor: __BaseException,
|
|
2480
|
+
errorCode: errorCode,
|
|
2756
2481
|
});
|
|
2757
|
-
|
|
2482
|
+
_d.label = 11;
|
|
2483
|
+
case 11: return [2];
|
|
2758
2484
|
}
|
|
2759
2485
|
});
|
|
2760
2486
|
}); };
|
|
@@ -2766,28 +2492,26 @@ export var deserializeAws_restJson1ListNodesCommand = function (output, context)
|
|
|
2766
2492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2767
2493
|
return [2, deserializeAws_restJson1ListNodesCommandError(output, context)];
|
|
2768
2494
|
}
|
|
2769
|
-
contents = {
|
|
2495
|
+
contents = map({
|
|
2770
2496
|
$metadata: deserializeMetadata(output),
|
|
2771
|
-
|
|
2772
|
-
NodeInfoList: undefined,
|
|
2773
|
-
};
|
|
2497
|
+
});
|
|
2774
2498
|
_a = __expectNonNull;
|
|
2775
2499
|
_b = __expectObject;
|
|
2776
2500
|
return [4, parseBody(output.body, context)];
|
|
2777
2501
|
case 1:
|
|
2778
2502
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2779
|
-
if (data.nextToken
|
|
2503
|
+
if (data.nextToken != null) {
|
|
2780
2504
|
contents.NextToken = __expectString(data.nextToken);
|
|
2781
2505
|
}
|
|
2782
|
-
if (data.nodeInfoList
|
|
2506
|
+
if (data.nodeInfoList != null) {
|
|
2783
2507
|
contents.NodeInfoList = deserializeAws_restJson1__listOfNodeInfo(data.nodeInfoList, context);
|
|
2784
2508
|
}
|
|
2785
|
-
return [2,
|
|
2509
|
+
return [2, contents];
|
|
2786
2510
|
}
|
|
2787
2511
|
});
|
|
2788
2512
|
}); };
|
|
2789
2513
|
var deserializeAws_restJson1ListNodesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2790
|
-
var parsedOutput, _a,
|
|
2514
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2791
2515
|
var _c;
|
|
2792
2516
|
return __generator(this, function (_d) {
|
|
2793
2517
|
switch (_d.label) {
|
|
@@ -2820,14 +2544,14 @@ var deserializeAws_restJson1ListNodesCommandError = function (output, context) {
|
|
|
2820
2544
|
case 9: throw _d.sent();
|
|
2821
2545
|
case 10:
|
|
2822
2546
|
parsedBody = parsedOutput.body;
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
$metadata: $metadata,
|
|
2547
|
+
throwDefaultError({
|
|
2548
|
+
output: output,
|
|
2549
|
+
parsedBody: parsedBody,
|
|
2550
|
+
exceptionCtor: __BaseException,
|
|
2551
|
+
errorCode: errorCode,
|
|
2829
2552
|
});
|
|
2830
|
-
|
|
2553
|
+
_d.label = 11;
|
|
2554
|
+
case 11: return [2];
|
|
2831
2555
|
}
|
|
2832
2556
|
});
|
|
2833
2557
|
}); };
|
|
@@ -2839,28 +2563,26 @@ export var deserializeAws_restJson1ListScramSecretsCommand = function (output, c
|
|
|
2839
2563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2840
2564
|
return [2, deserializeAws_restJson1ListScramSecretsCommandError(output, context)];
|
|
2841
2565
|
}
|
|
2842
|
-
contents = {
|
|
2566
|
+
contents = map({
|
|
2843
2567
|
$metadata: deserializeMetadata(output),
|
|
2844
|
-
|
|
2845
|
-
SecretArnList: undefined,
|
|
2846
|
-
};
|
|
2568
|
+
});
|
|
2847
2569
|
_a = __expectNonNull;
|
|
2848
2570
|
_b = __expectObject;
|
|
2849
2571
|
return [4, parseBody(output.body, context)];
|
|
2850
2572
|
case 1:
|
|
2851
2573
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2852
|
-
if (data.nextToken
|
|
2574
|
+
if (data.nextToken != null) {
|
|
2853
2575
|
contents.NextToken = __expectString(data.nextToken);
|
|
2854
2576
|
}
|
|
2855
|
-
if (data.secretArnList
|
|
2577
|
+
if (data.secretArnList != null) {
|
|
2856
2578
|
contents.SecretArnList = deserializeAws_restJson1__listOf__string(data.secretArnList, context);
|
|
2857
2579
|
}
|
|
2858
|
-
return [2,
|
|
2580
|
+
return [2, contents];
|
|
2859
2581
|
}
|
|
2860
2582
|
});
|
|
2861
2583
|
}); };
|
|
2862
2584
|
var deserializeAws_restJson1ListScramSecretsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2863
|
-
var parsedOutput, _a,
|
|
2585
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2864
2586
|
var _c;
|
|
2865
2587
|
return __generator(this, function (_d) {
|
|
2866
2588
|
switch (_d.label) {
|
|
@@ -2905,14 +2627,14 @@ var deserializeAws_restJson1ListScramSecretsCommandError = function (output, con
|
|
|
2905
2627
|
case 15: throw _d.sent();
|
|
2906
2628
|
case 16:
|
|
2907
2629
|
parsedBody = parsedOutput.body;
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
$metadata: $metadata,
|
|
2630
|
+
throwDefaultError({
|
|
2631
|
+
output: output,
|
|
2632
|
+
parsedBody: parsedBody,
|
|
2633
|
+
exceptionCtor: __BaseException,
|
|
2634
|
+
errorCode: errorCode,
|
|
2914
2635
|
});
|
|
2915
|
-
|
|
2636
|
+
_d.label = 17;
|
|
2637
|
+
case 17: return [2];
|
|
2916
2638
|
}
|
|
2917
2639
|
});
|
|
2918
2640
|
}); };
|
|
@@ -2924,24 +2646,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2924
2646
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2925
2647
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2926
2648
|
}
|
|
2927
|
-
contents = {
|
|
2649
|
+
contents = map({
|
|
2928
2650
|
$metadata: deserializeMetadata(output),
|
|
2929
|
-
|
|
2930
|
-
};
|
|
2651
|
+
});
|
|
2931
2652
|
_a = __expectNonNull;
|
|
2932
2653
|
_b = __expectObject;
|
|
2933
2654
|
return [4, parseBody(output.body, context)];
|
|
2934
2655
|
case 1:
|
|
2935
2656
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2936
|
-
if (data.tags
|
|
2657
|
+
if (data.tags != null) {
|
|
2937
2658
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2938
2659
|
}
|
|
2939
|
-
return [2,
|
|
2660
|
+
return [2, contents];
|
|
2940
2661
|
}
|
|
2941
2662
|
});
|
|
2942
2663
|
}); };
|
|
2943
2664
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2944
|
-
var parsedOutput, _a,
|
|
2665
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2945
2666
|
var _c;
|
|
2946
2667
|
return __generator(this, function (_d) {
|
|
2947
2668
|
switch (_d.label) {
|
|
@@ -2970,14 +2691,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2970
2691
|
case 7: throw _d.sent();
|
|
2971
2692
|
case 8:
|
|
2972
2693
|
parsedBody = parsedOutput.body;
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
$metadata: $metadata,
|
|
2694
|
+
throwDefaultError({
|
|
2695
|
+
output: output,
|
|
2696
|
+
parsedBody: parsedBody,
|
|
2697
|
+
exceptionCtor: __BaseException,
|
|
2698
|
+
errorCode: errorCode,
|
|
2979
2699
|
});
|
|
2980
|
-
|
|
2700
|
+
_d.label = 9;
|
|
2701
|
+
case 9: return [2];
|
|
2981
2702
|
}
|
|
2982
2703
|
});
|
|
2983
2704
|
}); };
|
|
@@ -2989,28 +2710,26 @@ export var deserializeAws_restJson1RebootBrokerCommand = function (output, conte
|
|
|
2989
2710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2990
2711
|
return [2, deserializeAws_restJson1RebootBrokerCommandError(output, context)];
|
|
2991
2712
|
}
|
|
2992
|
-
contents = {
|
|
2713
|
+
contents = map({
|
|
2993
2714
|
$metadata: deserializeMetadata(output),
|
|
2994
|
-
|
|
2995
|
-
ClusterOperationArn: undefined,
|
|
2996
|
-
};
|
|
2715
|
+
});
|
|
2997
2716
|
_a = __expectNonNull;
|
|
2998
2717
|
_b = __expectObject;
|
|
2999
2718
|
return [4, parseBody(output.body, context)];
|
|
3000
2719
|
case 1:
|
|
3001
2720
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3002
|
-
if (data.clusterArn
|
|
2721
|
+
if (data.clusterArn != null) {
|
|
3003
2722
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
3004
2723
|
}
|
|
3005
|
-
if (data.clusterOperationArn
|
|
2724
|
+
if (data.clusterOperationArn != null) {
|
|
3006
2725
|
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
3007
2726
|
}
|
|
3008
|
-
return [2,
|
|
2727
|
+
return [2, contents];
|
|
3009
2728
|
}
|
|
3010
2729
|
});
|
|
3011
2730
|
}); };
|
|
3012
2731
|
var deserializeAws_restJson1RebootBrokerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3013
|
-
var parsedOutput, _a,
|
|
2732
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3014
2733
|
var _c;
|
|
3015
2734
|
return __generator(this, function (_d) {
|
|
3016
2735
|
switch (_d.label) {
|
|
@@ -3055,14 +2774,14 @@ var deserializeAws_restJson1RebootBrokerCommandError = function (output, context
|
|
|
3055
2774
|
case 15: throw _d.sent();
|
|
3056
2775
|
case 16:
|
|
3057
2776
|
parsedBody = parsedOutput.body;
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
$metadata: $metadata,
|
|
2777
|
+
throwDefaultError({
|
|
2778
|
+
output: output,
|
|
2779
|
+
parsedBody: parsedBody,
|
|
2780
|
+
exceptionCtor: __BaseException,
|
|
2781
|
+
errorCode: errorCode,
|
|
3064
2782
|
});
|
|
3065
|
-
|
|
2783
|
+
_d.label = 17;
|
|
2784
|
+
case 17: return [2];
|
|
3066
2785
|
}
|
|
3067
2786
|
});
|
|
3068
2787
|
}); };
|
|
@@ -3074,18 +2793,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3074
2793
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3075
2794
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3076
2795
|
}
|
|
3077
|
-
contents = {
|
|
2796
|
+
contents = map({
|
|
3078
2797
|
$metadata: deserializeMetadata(output),
|
|
3079
|
-
};
|
|
2798
|
+
});
|
|
3080
2799
|
return [4, collectBody(output.body, context)];
|
|
3081
2800
|
case 1:
|
|
3082
2801
|
_a.sent();
|
|
3083
|
-
return [2,
|
|
2802
|
+
return [2, contents];
|
|
3084
2803
|
}
|
|
3085
2804
|
});
|
|
3086
2805
|
}); };
|
|
3087
2806
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3088
|
-
var parsedOutput, _a,
|
|
2807
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3089
2808
|
var _c;
|
|
3090
2809
|
return __generator(this, function (_d) {
|
|
3091
2810
|
switch (_d.label) {
|
|
@@ -3114,14 +2833,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3114
2833
|
case 7: throw _d.sent();
|
|
3115
2834
|
case 8:
|
|
3116
2835
|
parsedBody = parsedOutput.body;
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
$metadata: $metadata,
|
|
2836
|
+
throwDefaultError({
|
|
2837
|
+
output: output,
|
|
2838
|
+
parsedBody: parsedBody,
|
|
2839
|
+
exceptionCtor: __BaseException,
|
|
2840
|
+
errorCode: errorCode,
|
|
3123
2841
|
});
|
|
3124
|
-
|
|
2842
|
+
_d.label = 9;
|
|
2843
|
+
case 9: return [2];
|
|
3125
2844
|
}
|
|
3126
2845
|
});
|
|
3127
2846
|
}); };
|
|
@@ -3133,18 +2852,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3133
2852
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3134
2853
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3135
2854
|
}
|
|
3136
|
-
contents = {
|
|
2855
|
+
contents = map({
|
|
3137
2856
|
$metadata: deserializeMetadata(output),
|
|
3138
|
-
};
|
|
2857
|
+
});
|
|
3139
2858
|
return [4, collectBody(output.body, context)];
|
|
3140
2859
|
case 1:
|
|
3141
2860
|
_a.sent();
|
|
3142
|
-
return [2,
|
|
2861
|
+
return [2, contents];
|
|
3143
2862
|
}
|
|
3144
2863
|
});
|
|
3145
2864
|
}); };
|
|
3146
2865
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3147
|
-
var parsedOutput, _a,
|
|
2866
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3148
2867
|
var _c;
|
|
3149
2868
|
return __generator(this, function (_d) {
|
|
3150
2869
|
switch (_d.label) {
|
|
@@ -3173,14 +2892,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3173
2892
|
case 7: throw _d.sent();
|
|
3174
2893
|
case 8:
|
|
3175
2894
|
parsedBody = parsedOutput.body;
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
$metadata: $metadata,
|
|
2895
|
+
throwDefaultError({
|
|
2896
|
+
output: output,
|
|
2897
|
+
parsedBody: parsedBody,
|
|
2898
|
+
exceptionCtor: __BaseException,
|
|
2899
|
+
errorCode: errorCode,
|
|
3182
2900
|
});
|
|
3183
|
-
|
|
2901
|
+
_d.label = 9;
|
|
2902
|
+
case 9: return [2];
|
|
3184
2903
|
}
|
|
3185
2904
|
});
|
|
3186
2905
|
}); };
|
|
@@ -3192,28 +2911,26 @@ export var deserializeAws_restJson1UpdateBrokerCountCommand = function (output,
|
|
|
3192
2911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3193
2912
|
return [2, deserializeAws_restJson1UpdateBrokerCountCommandError(output, context)];
|
|
3194
2913
|
}
|
|
3195
|
-
contents = {
|
|
2914
|
+
contents = map({
|
|
3196
2915
|
$metadata: deserializeMetadata(output),
|
|
3197
|
-
|
|
3198
|
-
ClusterOperationArn: undefined,
|
|
3199
|
-
};
|
|
2916
|
+
});
|
|
3200
2917
|
_a = __expectNonNull;
|
|
3201
2918
|
_b = __expectObject;
|
|
3202
2919
|
return [4, parseBody(output.body, context)];
|
|
3203
2920
|
case 1:
|
|
3204
2921
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3205
|
-
if (data.clusterArn
|
|
2922
|
+
if (data.clusterArn != null) {
|
|
3206
2923
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
3207
2924
|
}
|
|
3208
|
-
if (data.clusterOperationArn
|
|
2925
|
+
if (data.clusterOperationArn != null) {
|
|
3209
2926
|
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
3210
2927
|
}
|
|
3211
|
-
return [2,
|
|
2928
|
+
return [2, contents];
|
|
3212
2929
|
}
|
|
3213
2930
|
});
|
|
3214
2931
|
}); };
|
|
3215
2932
|
var deserializeAws_restJson1UpdateBrokerCountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3216
|
-
var parsedOutput, _a,
|
|
2933
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3217
2934
|
var _c;
|
|
3218
2935
|
return __generator(this, function (_d) {
|
|
3219
2936
|
switch (_d.label) {
|
|
@@ -3250,14 +2967,14 @@ var deserializeAws_restJson1UpdateBrokerCountCommandError = function (output, co
|
|
|
3250
2967
|
case 11: throw _d.sent();
|
|
3251
2968
|
case 12:
|
|
3252
2969
|
parsedBody = parsedOutput.body;
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
$metadata: $metadata,
|
|
2970
|
+
throwDefaultError({
|
|
2971
|
+
output: output,
|
|
2972
|
+
parsedBody: parsedBody,
|
|
2973
|
+
exceptionCtor: __BaseException,
|
|
2974
|
+
errorCode: errorCode,
|
|
3259
2975
|
});
|
|
3260
|
-
|
|
2976
|
+
_d.label = 13;
|
|
2977
|
+
case 13: return [2];
|
|
3261
2978
|
}
|
|
3262
2979
|
});
|
|
3263
2980
|
}); };
|
|
@@ -3269,28 +2986,26 @@ export var deserializeAws_restJson1UpdateBrokerStorageCommand = function (output
|
|
|
3269
2986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3270
2987
|
return [2, deserializeAws_restJson1UpdateBrokerStorageCommandError(output, context)];
|
|
3271
2988
|
}
|
|
3272
|
-
contents = {
|
|
2989
|
+
contents = map({
|
|
3273
2990
|
$metadata: deserializeMetadata(output),
|
|
3274
|
-
|
|
3275
|
-
ClusterOperationArn: undefined,
|
|
3276
|
-
};
|
|
2991
|
+
});
|
|
3277
2992
|
_a = __expectNonNull;
|
|
3278
2993
|
_b = __expectObject;
|
|
3279
2994
|
return [4, parseBody(output.body, context)];
|
|
3280
2995
|
case 1:
|
|
3281
2996
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3282
|
-
if (data.clusterArn
|
|
2997
|
+
if (data.clusterArn != null) {
|
|
3283
2998
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
3284
2999
|
}
|
|
3285
|
-
if (data.clusterOperationArn
|
|
3000
|
+
if (data.clusterOperationArn != null) {
|
|
3286
3001
|
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
3287
3002
|
}
|
|
3288
|
-
return [2,
|
|
3003
|
+
return [2, contents];
|
|
3289
3004
|
}
|
|
3290
3005
|
});
|
|
3291
3006
|
}); };
|
|
3292
3007
|
var deserializeAws_restJson1UpdateBrokerStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3293
|
-
var parsedOutput, _a,
|
|
3008
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3294
3009
|
var _c;
|
|
3295
3010
|
return __generator(this, function (_d) {
|
|
3296
3011
|
switch (_d.label) {
|
|
@@ -3327,14 +3042,14 @@ var deserializeAws_restJson1UpdateBrokerStorageCommandError = function (output,
|
|
|
3327
3042
|
case 11: throw _d.sent();
|
|
3328
3043
|
case 12:
|
|
3329
3044
|
parsedBody = parsedOutput.body;
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
$metadata: $metadata,
|
|
3045
|
+
throwDefaultError({
|
|
3046
|
+
output: output,
|
|
3047
|
+
parsedBody: parsedBody,
|
|
3048
|
+
exceptionCtor: __BaseException,
|
|
3049
|
+
errorCode: errorCode,
|
|
3336
3050
|
});
|
|
3337
|
-
|
|
3051
|
+
_d.label = 13;
|
|
3052
|
+
case 13: return [2];
|
|
3338
3053
|
}
|
|
3339
3054
|
});
|
|
3340
3055
|
}); };
|
|
@@ -3346,28 +3061,26 @@ export var deserializeAws_restJson1UpdateBrokerTypeCommand = function (output, c
|
|
|
3346
3061
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3347
3062
|
return [2, deserializeAws_restJson1UpdateBrokerTypeCommandError(output, context)];
|
|
3348
3063
|
}
|
|
3349
|
-
contents = {
|
|
3064
|
+
contents = map({
|
|
3350
3065
|
$metadata: deserializeMetadata(output),
|
|
3351
|
-
|
|
3352
|
-
ClusterOperationArn: undefined,
|
|
3353
|
-
};
|
|
3066
|
+
});
|
|
3354
3067
|
_a = __expectNonNull;
|
|
3355
3068
|
_b = __expectObject;
|
|
3356
3069
|
return [4, parseBody(output.body, context)];
|
|
3357
3070
|
case 1:
|
|
3358
3071
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3359
|
-
if (data.clusterArn
|
|
3072
|
+
if (data.clusterArn != null) {
|
|
3360
3073
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
3361
3074
|
}
|
|
3362
|
-
if (data.clusterOperationArn
|
|
3075
|
+
if (data.clusterOperationArn != null) {
|
|
3363
3076
|
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
3364
3077
|
}
|
|
3365
|
-
return [2,
|
|
3078
|
+
return [2, contents];
|
|
3366
3079
|
}
|
|
3367
3080
|
});
|
|
3368
3081
|
}); };
|
|
3369
3082
|
var deserializeAws_restJson1UpdateBrokerTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3370
|
-
var parsedOutput, _a,
|
|
3083
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3371
3084
|
var _c;
|
|
3372
3085
|
return __generator(this, function (_d) {
|
|
3373
3086
|
switch (_d.label) {
|
|
@@ -3412,14 +3125,14 @@ var deserializeAws_restJson1UpdateBrokerTypeCommandError = function (output, con
|
|
|
3412
3125
|
case 15: throw _d.sent();
|
|
3413
3126
|
case 16:
|
|
3414
3127
|
parsedBody = parsedOutput.body;
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
$metadata: $metadata,
|
|
3128
|
+
throwDefaultError({
|
|
3129
|
+
output: output,
|
|
3130
|
+
parsedBody: parsedBody,
|
|
3131
|
+
exceptionCtor: __BaseException,
|
|
3132
|
+
errorCode: errorCode,
|
|
3421
3133
|
});
|
|
3422
|
-
|
|
3134
|
+
_d.label = 17;
|
|
3135
|
+
case 17: return [2];
|
|
3423
3136
|
}
|
|
3424
3137
|
});
|
|
3425
3138
|
}); };
|
|
@@ -3431,28 +3144,26 @@ export var deserializeAws_restJson1UpdateClusterConfigurationCommand = function
|
|
|
3431
3144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3432
3145
|
return [2, deserializeAws_restJson1UpdateClusterConfigurationCommandError(output, context)];
|
|
3433
3146
|
}
|
|
3434
|
-
contents = {
|
|
3147
|
+
contents = map({
|
|
3435
3148
|
$metadata: deserializeMetadata(output),
|
|
3436
|
-
|
|
3437
|
-
ClusterOperationArn: undefined,
|
|
3438
|
-
};
|
|
3149
|
+
});
|
|
3439
3150
|
_a = __expectNonNull;
|
|
3440
3151
|
_b = __expectObject;
|
|
3441
3152
|
return [4, parseBody(output.body, context)];
|
|
3442
3153
|
case 1:
|
|
3443
3154
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3444
|
-
if (data.clusterArn
|
|
3155
|
+
if (data.clusterArn != null) {
|
|
3445
3156
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
3446
3157
|
}
|
|
3447
|
-
if (data.clusterOperationArn
|
|
3158
|
+
if (data.clusterOperationArn != null) {
|
|
3448
3159
|
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
3449
3160
|
}
|
|
3450
|
-
return [2,
|
|
3161
|
+
return [2, contents];
|
|
3451
3162
|
}
|
|
3452
3163
|
});
|
|
3453
3164
|
}); };
|
|
3454
3165
|
var deserializeAws_restJson1UpdateClusterConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3455
|
-
var parsedOutput, _a,
|
|
3166
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3456
3167
|
var _c;
|
|
3457
3168
|
return __generator(this, function (_d) {
|
|
3458
3169
|
switch (_d.label) {
|
|
@@ -3493,14 +3204,14 @@ var deserializeAws_restJson1UpdateClusterConfigurationCommandError = function (o
|
|
|
3493
3204
|
case 13: throw _d.sent();
|
|
3494
3205
|
case 14:
|
|
3495
3206
|
parsedBody = parsedOutput.body;
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
$metadata: $metadata,
|
|
3207
|
+
throwDefaultError({
|
|
3208
|
+
output: output,
|
|
3209
|
+
parsedBody: parsedBody,
|
|
3210
|
+
exceptionCtor: __BaseException,
|
|
3211
|
+
errorCode: errorCode,
|
|
3502
3212
|
});
|
|
3503
|
-
|
|
3213
|
+
_d.label = 15;
|
|
3214
|
+
case 15: return [2];
|
|
3504
3215
|
}
|
|
3505
3216
|
});
|
|
3506
3217
|
}); };
|
|
@@ -3512,28 +3223,26 @@ export var deserializeAws_restJson1UpdateClusterKafkaVersionCommand = function (
|
|
|
3512
3223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3513
3224
|
return [2, deserializeAws_restJson1UpdateClusterKafkaVersionCommandError(output, context)];
|
|
3514
3225
|
}
|
|
3515
|
-
contents = {
|
|
3226
|
+
contents = map({
|
|
3516
3227
|
$metadata: deserializeMetadata(output),
|
|
3517
|
-
|
|
3518
|
-
ClusterOperationArn: undefined,
|
|
3519
|
-
};
|
|
3228
|
+
});
|
|
3520
3229
|
_a = __expectNonNull;
|
|
3521
3230
|
_b = __expectObject;
|
|
3522
3231
|
return [4, parseBody(output.body, context)];
|
|
3523
3232
|
case 1:
|
|
3524
3233
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3525
|
-
if (data.clusterArn
|
|
3234
|
+
if (data.clusterArn != null) {
|
|
3526
3235
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
3527
3236
|
}
|
|
3528
|
-
if (data.clusterOperationArn
|
|
3237
|
+
if (data.clusterOperationArn != null) {
|
|
3529
3238
|
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
3530
3239
|
}
|
|
3531
|
-
return [2,
|
|
3240
|
+
return [2, contents];
|
|
3532
3241
|
}
|
|
3533
3242
|
});
|
|
3534
3243
|
}); };
|
|
3535
3244
|
var deserializeAws_restJson1UpdateClusterKafkaVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3536
|
-
var parsedOutput, _a,
|
|
3245
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3537
3246
|
var _c;
|
|
3538
3247
|
return __generator(this, function (_d) {
|
|
3539
3248
|
switch (_d.label) {
|
|
@@ -3578,14 +3287,14 @@ var deserializeAws_restJson1UpdateClusterKafkaVersionCommandError = function (ou
|
|
|
3578
3287
|
case 15: throw _d.sent();
|
|
3579
3288
|
case 16:
|
|
3580
3289
|
parsedBody = parsedOutput.body;
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
$metadata: $metadata,
|
|
3290
|
+
throwDefaultError({
|
|
3291
|
+
output: output,
|
|
3292
|
+
parsedBody: parsedBody,
|
|
3293
|
+
exceptionCtor: __BaseException,
|
|
3294
|
+
errorCode: errorCode,
|
|
3587
3295
|
});
|
|
3588
|
-
|
|
3296
|
+
_d.label = 17;
|
|
3297
|
+
case 17: return [2];
|
|
3589
3298
|
}
|
|
3590
3299
|
});
|
|
3591
3300
|
}); };
|
|
@@ -3597,28 +3306,26 @@ export var deserializeAws_restJson1UpdateConfigurationCommand = function (output
|
|
|
3597
3306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3598
3307
|
return [2, deserializeAws_restJson1UpdateConfigurationCommandError(output, context)];
|
|
3599
3308
|
}
|
|
3600
|
-
contents = {
|
|
3309
|
+
contents = map({
|
|
3601
3310
|
$metadata: deserializeMetadata(output),
|
|
3602
|
-
|
|
3603
|
-
LatestRevision: undefined,
|
|
3604
|
-
};
|
|
3311
|
+
});
|
|
3605
3312
|
_a = __expectNonNull;
|
|
3606
3313
|
_b = __expectObject;
|
|
3607
3314
|
return [4, parseBody(output.body, context)];
|
|
3608
3315
|
case 1:
|
|
3609
3316
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3610
|
-
if (data.arn
|
|
3317
|
+
if (data.arn != null) {
|
|
3611
3318
|
contents.Arn = __expectString(data.arn);
|
|
3612
3319
|
}
|
|
3613
|
-
if (data.latestRevision
|
|
3320
|
+
if (data.latestRevision != null) {
|
|
3614
3321
|
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
3615
3322
|
}
|
|
3616
|
-
return [2,
|
|
3323
|
+
return [2, contents];
|
|
3617
3324
|
}
|
|
3618
3325
|
});
|
|
3619
3326
|
}); };
|
|
3620
3327
|
var deserializeAws_restJson1UpdateConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3621
|
-
var parsedOutput, _a,
|
|
3328
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3622
3329
|
var _c;
|
|
3623
3330
|
return __generator(this, function (_d) {
|
|
3624
3331
|
switch (_d.label) {
|
|
@@ -3659,14 +3366,14 @@ var deserializeAws_restJson1UpdateConfigurationCommandError = function (output,
|
|
|
3659
3366
|
case 13: throw _d.sent();
|
|
3660
3367
|
case 14:
|
|
3661
3368
|
parsedBody = parsedOutput.body;
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
$metadata: $metadata,
|
|
3369
|
+
throwDefaultError({
|
|
3370
|
+
output: output,
|
|
3371
|
+
parsedBody: parsedBody,
|
|
3372
|
+
exceptionCtor: __BaseException,
|
|
3373
|
+
errorCode: errorCode,
|
|
3668
3374
|
});
|
|
3669
|
-
|
|
3375
|
+
_d.label = 15;
|
|
3376
|
+
case 15: return [2];
|
|
3670
3377
|
}
|
|
3671
3378
|
});
|
|
3672
3379
|
}); };
|
|
@@ -3678,28 +3385,26 @@ export var deserializeAws_restJson1UpdateConnectivityCommand = function (output,
|
|
|
3678
3385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3679
3386
|
return [2, deserializeAws_restJson1UpdateConnectivityCommandError(output, context)];
|
|
3680
3387
|
}
|
|
3681
|
-
contents = {
|
|
3388
|
+
contents = map({
|
|
3682
3389
|
$metadata: deserializeMetadata(output),
|
|
3683
|
-
|
|
3684
|
-
ClusterOperationArn: undefined,
|
|
3685
|
-
};
|
|
3390
|
+
});
|
|
3686
3391
|
_a = __expectNonNull;
|
|
3687
3392
|
_b = __expectObject;
|
|
3688
3393
|
return [4, parseBody(output.body, context)];
|
|
3689
3394
|
case 1:
|
|
3690
3395
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3691
|
-
if (data.clusterArn
|
|
3396
|
+
if (data.clusterArn != null) {
|
|
3692
3397
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
3693
3398
|
}
|
|
3694
|
-
if (data.clusterOperationArn
|
|
3399
|
+
if (data.clusterOperationArn != null) {
|
|
3695
3400
|
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
3696
3401
|
}
|
|
3697
|
-
return [2,
|
|
3402
|
+
return [2, contents];
|
|
3698
3403
|
}
|
|
3699
3404
|
});
|
|
3700
3405
|
}); };
|
|
3701
3406
|
var deserializeAws_restJson1UpdateConnectivityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3702
|
-
var parsedOutput, _a,
|
|
3407
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3703
3408
|
var _c;
|
|
3704
3409
|
return __generator(this, function (_d) {
|
|
3705
3410
|
switch (_d.label) {
|
|
@@ -3740,14 +3445,14 @@ var deserializeAws_restJson1UpdateConnectivityCommandError = function (output, c
|
|
|
3740
3445
|
case 13: throw _d.sent();
|
|
3741
3446
|
case 14:
|
|
3742
3447
|
parsedBody = parsedOutput.body;
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
$metadata: $metadata,
|
|
3448
|
+
throwDefaultError({
|
|
3449
|
+
output: output,
|
|
3450
|
+
parsedBody: parsedBody,
|
|
3451
|
+
exceptionCtor: __BaseException,
|
|
3452
|
+
errorCode: errorCode,
|
|
3749
3453
|
});
|
|
3750
|
-
|
|
3454
|
+
_d.label = 15;
|
|
3455
|
+
case 15: return [2];
|
|
3751
3456
|
}
|
|
3752
3457
|
});
|
|
3753
3458
|
}); };
|
|
@@ -3759,28 +3464,26 @@ export var deserializeAws_restJson1UpdateMonitoringCommand = function (output, c
|
|
|
3759
3464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3760
3465
|
return [2, deserializeAws_restJson1UpdateMonitoringCommandError(output, context)];
|
|
3761
3466
|
}
|
|
3762
|
-
contents = {
|
|
3467
|
+
contents = map({
|
|
3763
3468
|
$metadata: deserializeMetadata(output),
|
|
3764
|
-
|
|
3765
|
-
ClusterOperationArn: undefined,
|
|
3766
|
-
};
|
|
3469
|
+
});
|
|
3767
3470
|
_a = __expectNonNull;
|
|
3768
3471
|
_b = __expectObject;
|
|
3769
3472
|
return [4, parseBody(output.body, context)];
|
|
3770
3473
|
case 1:
|
|
3771
3474
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3772
|
-
if (data.clusterArn
|
|
3475
|
+
if (data.clusterArn != null) {
|
|
3773
3476
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
3774
3477
|
}
|
|
3775
|
-
if (data.clusterOperationArn
|
|
3478
|
+
if (data.clusterOperationArn != null) {
|
|
3776
3479
|
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
3777
3480
|
}
|
|
3778
|
-
return [2,
|
|
3481
|
+
return [2, contents];
|
|
3779
3482
|
}
|
|
3780
3483
|
});
|
|
3781
3484
|
}); };
|
|
3782
3485
|
var deserializeAws_restJson1UpdateMonitoringCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3783
|
-
var parsedOutput, _a,
|
|
3486
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3784
3487
|
var _c;
|
|
3785
3488
|
return __generator(this, function (_d) {
|
|
3786
3489
|
switch (_d.label) {
|
|
@@ -3817,14 +3520,14 @@ var deserializeAws_restJson1UpdateMonitoringCommandError = function (output, con
|
|
|
3817
3520
|
case 11: throw _d.sent();
|
|
3818
3521
|
case 12:
|
|
3819
3522
|
parsedBody = parsedOutput.body;
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
$metadata: $metadata,
|
|
3523
|
+
throwDefaultError({
|
|
3524
|
+
output: output,
|
|
3525
|
+
parsedBody: parsedBody,
|
|
3526
|
+
exceptionCtor: __BaseException,
|
|
3527
|
+
errorCode: errorCode,
|
|
3826
3528
|
});
|
|
3827
|
-
|
|
3529
|
+
_d.label = 13;
|
|
3530
|
+
case 13: return [2];
|
|
3828
3531
|
}
|
|
3829
3532
|
});
|
|
3830
3533
|
}); };
|
|
@@ -3836,28 +3539,26 @@ export var deserializeAws_restJson1UpdateSecurityCommand = function (output, con
|
|
|
3836
3539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3837
3540
|
return [2, deserializeAws_restJson1UpdateSecurityCommandError(output, context)];
|
|
3838
3541
|
}
|
|
3839
|
-
contents = {
|
|
3542
|
+
contents = map({
|
|
3840
3543
|
$metadata: deserializeMetadata(output),
|
|
3841
|
-
|
|
3842
|
-
ClusterOperationArn: undefined,
|
|
3843
|
-
};
|
|
3544
|
+
});
|
|
3844
3545
|
_a = __expectNonNull;
|
|
3845
3546
|
_b = __expectObject;
|
|
3846
3547
|
return [4, parseBody(output.body, context)];
|
|
3847
3548
|
case 1:
|
|
3848
3549
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3849
|
-
if (data.clusterArn
|
|
3550
|
+
if (data.clusterArn != null) {
|
|
3850
3551
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
3851
3552
|
}
|
|
3852
|
-
if (data.clusterOperationArn
|
|
3553
|
+
if (data.clusterOperationArn != null) {
|
|
3853
3554
|
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
3854
3555
|
}
|
|
3855
|
-
return [2,
|
|
3556
|
+
return [2, contents];
|
|
3856
3557
|
}
|
|
3857
3558
|
});
|
|
3858
3559
|
}); };
|
|
3859
3560
|
var deserializeAws_restJson1UpdateSecurityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3860
|
-
var parsedOutput, _a,
|
|
3561
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3861
3562
|
var _c;
|
|
3862
3563
|
return __generator(this, function (_d) {
|
|
3863
3564
|
switch (_d.label) {
|
|
@@ -3902,26 +3603,27 @@ var deserializeAws_restJson1UpdateSecurityCommandError = function (output, conte
|
|
|
3902
3603
|
case 15: throw _d.sent();
|
|
3903
3604
|
case 16:
|
|
3904
3605
|
parsedBody = parsedOutput.body;
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
$metadata: $metadata,
|
|
3606
|
+
throwDefaultError({
|
|
3607
|
+
output: output,
|
|
3608
|
+
parsedBody: parsedBody,
|
|
3609
|
+
exceptionCtor: __BaseException,
|
|
3610
|
+
errorCode: errorCode,
|
|
3911
3611
|
});
|
|
3912
|
-
|
|
3612
|
+
_d.label = 17;
|
|
3613
|
+
case 17: return [2];
|
|
3913
3614
|
}
|
|
3914
3615
|
});
|
|
3915
3616
|
}); };
|
|
3617
|
+
var map = __map;
|
|
3916
3618
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3917
3619
|
var contents, data, exception;
|
|
3918
3620
|
return __generator(this, function (_a) {
|
|
3919
|
-
contents = {};
|
|
3621
|
+
contents = map({});
|
|
3920
3622
|
data = parsedOutput.body;
|
|
3921
|
-
if (data.invalidParameter
|
|
3623
|
+
if (data.invalidParameter != null) {
|
|
3922
3624
|
contents.InvalidParameter = __expectString(data.invalidParameter);
|
|
3923
3625
|
}
|
|
3924
|
-
if (data.message
|
|
3626
|
+
if (data.message != null) {
|
|
3925
3627
|
contents.Message = __expectString(data.message);
|
|
3926
3628
|
}
|
|
3927
3629
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3931,12 +3633,12 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
3931
3633
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3932
3634
|
var contents, data, exception;
|
|
3933
3635
|
return __generator(this, function (_a) {
|
|
3934
|
-
contents = {};
|
|
3636
|
+
contents = map({});
|
|
3935
3637
|
data = parsedOutput.body;
|
|
3936
|
-
if (data.invalidParameter
|
|
3638
|
+
if (data.invalidParameter != null) {
|
|
3937
3639
|
contents.InvalidParameter = __expectString(data.invalidParameter);
|
|
3938
3640
|
}
|
|
3939
|
-
if (data.message
|
|
3641
|
+
if (data.message != null) {
|
|
3940
3642
|
contents.Message = __expectString(data.message);
|
|
3941
3643
|
}
|
|
3942
3644
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3946,12 +3648,12 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
3946
3648
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3947
3649
|
var contents, data, exception;
|
|
3948
3650
|
return __generator(this, function (_a) {
|
|
3949
|
-
contents = {};
|
|
3651
|
+
contents = map({});
|
|
3950
3652
|
data = parsedOutput.body;
|
|
3951
|
-
if (data.invalidParameter
|
|
3653
|
+
if (data.invalidParameter != null) {
|
|
3952
3654
|
contents.InvalidParameter = __expectString(data.invalidParameter);
|
|
3953
3655
|
}
|
|
3954
|
-
if (data.message
|
|
3656
|
+
if (data.message != null) {
|
|
3955
3657
|
contents.Message = __expectString(data.message);
|
|
3956
3658
|
}
|
|
3957
3659
|
exception = new ForbiddenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3961,12 +3663,12 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
3961
3663
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3962
3664
|
var contents, data, exception;
|
|
3963
3665
|
return __generator(this, function (_a) {
|
|
3964
|
-
contents = {};
|
|
3666
|
+
contents = map({});
|
|
3965
3667
|
data = parsedOutput.body;
|
|
3966
|
-
if (data.invalidParameter
|
|
3668
|
+
if (data.invalidParameter != null) {
|
|
3967
3669
|
contents.InvalidParameter = __expectString(data.invalidParameter);
|
|
3968
3670
|
}
|
|
3969
|
-
if (data.message
|
|
3671
|
+
if (data.message != null) {
|
|
3970
3672
|
contents.Message = __expectString(data.message);
|
|
3971
3673
|
}
|
|
3972
3674
|
exception = new InternalServerErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3976,12 +3678,12 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
3976
3678
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3977
3679
|
var contents, data, exception;
|
|
3978
3680
|
return __generator(this, function (_a) {
|
|
3979
|
-
contents = {};
|
|
3681
|
+
contents = map({});
|
|
3980
3682
|
data = parsedOutput.body;
|
|
3981
|
-
if (data.invalidParameter
|
|
3683
|
+
if (data.invalidParameter != null) {
|
|
3982
3684
|
contents.InvalidParameter = __expectString(data.invalidParameter);
|
|
3983
3685
|
}
|
|
3984
|
-
if (data.message
|
|
3686
|
+
if (data.message != null) {
|
|
3985
3687
|
contents.Message = __expectString(data.message);
|
|
3986
3688
|
}
|
|
3987
3689
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -3991,12 +3693,12 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
3991
3693
|
var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3992
3694
|
var contents, data, exception;
|
|
3993
3695
|
return __generator(this, function (_a) {
|
|
3994
|
-
contents = {};
|
|
3696
|
+
contents = map({});
|
|
3995
3697
|
data = parsedOutput.body;
|
|
3996
|
-
if (data.invalidParameter
|
|
3698
|
+
if (data.invalidParameter != null) {
|
|
3997
3699
|
contents.InvalidParameter = __expectString(data.invalidParameter);
|
|
3998
3700
|
}
|
|
3999
|
-
if (data.message
|
|
3701
|
+
if (data.message != null) {
|
|
4000
3702
|
contents.Message = __expectString(data.message);
|
|
4001
3703
|
}
|
|
4002
3704
|
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4006,12 +3708,12 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
|
|
|
4006
3708
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4007
3709
|
var contents, data, exception;
|
|
4008
3710
|
return __generator(this, function (_a) {
|
|
4009
|
-
contents = {};
|
|
3711
|
+
contents = map({});
|
|
4010
3712
|
data = parsedOutput.body;
|
|
4011
|
-
if (data.invalidParameter
|
|
3713
|
+
if (data.invalidParameter != null) {
|
|
4012
3714
|
contents.InvalidParameter = __expectString(data.invalidParameter);
|
|
4013
3715
|
}
|
|
4014
|
-
if (data.message
|
|
3716
|
+
if (data.message != null) {
|
|
4015
3717
|
contents.Message = __expectString(data.message);
|
|
4016
3718
|
}
|
|
4017
3719
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4021,12 +3723,12 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
4021
3723
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4022
3724
|
var contents, data, exception;
|
|
4023
3725
|
return __generator(this, function (_a) {
|
|
4024
|
-
contents = {};
|
|
3726
|
+
contents = map({});
|
|
4025
3727
|
data = parsedOutput.body;
|
|
4026
|
-
if (data.invalidParameter
|
|
3728
|
+
if (data.invalidParameter != null) {
|
|
4027
3729
|
contents.InvalidParameter = __expectString(data.invalidParameter);
|
|
4028
3730
|
}
|
|
4029
|
-
if (data.message
|
|
3731
|
+
if (data.message != null) {
|
|
4030
3732
|
contents.Message = __expectString(data.message);
|
|
4031
3733
|
}
|
|
4032
3734
|
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4037,9 +3739,6 @@ var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
|
4037
3739
|
return input
|
|
4038
3740
|
.filter(function (e) { return e != null; })
|
|
4039
3741
|
.map(function (entry) {
|
|
4040
|
-
if (entry === null) {
|
|
4041
|
-
return null;
|
|
4042
|
-
}
|
|
4043
3742
|
return entry;
|
|
4044
3743
|
});
|
|
4045
3744
|
};
|
|
@@ -4047,9 +3746,6 @@ var serializeAws_restJson1__listOfBrokerEBSVolumeInfo = function (input, context
|
|
|
4047
3746
|
return input
|
|
4048
3747
|
.filter(function (e) { return e != null; })
|
|
4049
3748
|
.map(function (entry) {
|
|
4050
|
-
if (entry === null) {
|
|
4051
|
-
return null;
|
|
4052
|
-
}
|
|
4053
3749
|
return serializeAws_restJson1BrokerEBSVolumeInfo(entry, context);
|
|
4054
3750
|
});
|
|
4055
3751
|
};
|
|
@@ -4057,9 +3753,6 @@ var serializeAws_restJson1__listOfVpcConfig = function (input, context) {
|
|
|
4057
3753
|
return input
|
|
4058
3754
|
.filter(function (e) { return e != null; })
|
|
4059
3755
|
.map(function (entry) {
|
|
4060
|
-
if (entry === null) {
|
|
4061
|
-
return null;
|
|
4062
|
-
}
|
|
4063
3756
|
return serializeAws_restJson1VpcConfig(entry, context);
|
|
4064
3757
|
});
|
|
4065
3758
|
};
|