@aws-sdk/client-kafka 3.41.0 → 3.45.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 +41 -0
- package/dist-cjs/Kafka.js +60 -0
- package/dist-cjs/commands/CreateClusterV2Command.js +36 -0
- package/dist-cjs/commands/DescribeClusterV2Command.js +36 -0
- package/dist-cjs/commands/ListClustersV2Command.js +36 -0
- package/dist-cjs/commands/UpdateConnectivityCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +156 -43
- package/dist-cjs/pagination/ListClustersV2Paginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +769 -52
- package/dist-es/Kafka.js +60 -0
- package/dist-es/commands/CreateClusterV2Command.js +39 -0
- package/dist-es/commands/DescribeClusterV2Command.js +39 -0
- package/dist-es/commands/ListClustersV2Command.js +39 -0
- package/dist-es/commands/UpdateConnectivityCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +108 -31
- package/dist-es/pagination/ListClustersV2Paginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +772 -17
- package/dist-types/Kafka.d.ts +29 -1
- package/dist-types/KafkaClient.d.ts +6 -2
- package/dist-types/commands/CreateClusterV2Command.d.ts +35 -0
- package/dist-types/commands/DescribeClusterV2Command.d.ts +35 -0
- package/dist-types/commands/ListClustersV2Command.d.ts +35 -0
- package/dist-types/commands/ListKafkaVersionsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateConnectivityCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +538 -87
- package/dist-types/pagination/ListClustersV2Paginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/Kafka.d.ts +20 -0
- package/dist-types/ts3.4/KafkaClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/CreateClusterV2Command.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeClusterV2Command.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListClustersV2Command.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateConnectivityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +307 -48
- package/dist-types/ts3.4/pagination/ListClustersV2Paginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +5 -5
|
@@ -118,6 +118,35 @@ export var serializeAws_restJson1CreateClusterCommand = function (input, context
|
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
}); };
|
|
121
|
+
export var serializeAws_restJson1CreateClusterV2Command = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
122
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
123
|
+
return __generator(this, function (_c) {
|
|
124
|
+
switch (_c.label) {
|
|
125
|
+
case 0: return [4, context.endpoint()];
|
|
126
|
+
case 1:
|
|
127
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
128
|
+
headers = {
|
|
129
|
+
"content-type": "application/json",
|
|
130
|
+
};
|
|
131
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters";
|
|
132
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ClusterName !== undefined && input.ClusterName !== null && { clusterName: input.ClusterName })), (input.Provisioned !== undefined &&
|
|
133
|
+
input.Provisioned !== null && {
|
|
134
|
+
provisioned: serializeAws_restJson1ProvisionedRequest(input.Provisioned, context),
|
|
135
|
+
})), (input.Serverless !== undefined &&
|
|
136
|
+
input.Serverless !== null && { serverless: serializeAws_restJson1ServerlessRequest(input.Serverless, context) })), (input.Tags !== undefined &&
|
|
137
|
+
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
|
|
138
|
+
return [2, new __HttpRequest({
|
|
139
|
+
protocol: protocol,
|
|
140
|
+
hostname: hostname,
|
|
141
|
+
port: port,
|
|
142
|
+
method: "POST",
|
|
143
|
+
headers: headers,
|
|
144
|
+
path: resolvedPath,
|
|
145
|
+
body: body,
|
|
146
|
+
})];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}); };
|
|
121
150
|
export var serializeAws_restJson1CreateConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
122
151
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
123
152
|
return __generator(this, function (_c) {
|
|
@@ -272,6 +301,37 @@ export var serializeAws_restJson1DescribeClusterOperationCommand = function (inp
|
|
|
272
301
|
}
|
|
273
302
|
});
|
|
274
303
|
}); };
|
|
304
|
+
export var serializeAws_restJson1DescribeClusterV2Command = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
305
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
306
|
+
return __generator(this, function (_c) {
|
|
307
|
+
switch (_c.label) {
|
|
308
|
+
case 0: return [4, context.endpoint()];
|
|
309
|
+
case 1:
|
|
310
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
311
|
+
headers = {};
|
|
312
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters/{ClusterArn}";
|
|
313
|
+
if (input.ClusterArn !== undefined) {
|
|
314
|
+
labelValue = input.ClusterArn;
|
|
315
|
+
if (labelValue.length <= 0) {
|
|
316
|
+
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
317
|
+
}
|
|
318
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
322
|
+
}
|
|
323
|
+
return [2, new __HttpRequest({
|
|
324
|
+
protocol: protocol,
|
|
325
|
+
hostname: hostname,
|
|
326
|
+
port: port,
|
|
327
|
+
method: "GET",
|
|
328
|
+
headers: headers,
|
|
329
|
+
path: resolvedPath,
|
|
330
|
+
body: body,
|
|
331
|
+
})];
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
}); };
|
|
275
335
|
export var serializeAws_restJson1DescribeConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
276
336
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
277
337
|
return __generator(this, function (_c) {
|
|
@@ -456,6 +516,29 @@ export var serializeAws_restJson1ListClustersCommand = function (input, context)
|
|
|
456
516
|
}
|
|
457
517
|
});
|
|
458
518
|
}); };
|
|
519
|
+
export var serializeAws_restJson1ListClustersV2Command = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
520
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
521
|
+
return __generator(this, function (_c) {
|
|
522
|
+
switch (_c.label) {
|
|
523
|
+
case 0: return [4, context.endpoint()];
|
|
524
|
+
case 1:
|
|
525
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
526
|
+
headers = {};
|
|
527
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters";
|
|
528
|
+
query = __assign(__assign(__assign(__assign({}, (input.ClusterNameFilter !== undefined && { clusterNameFilter: input.ClusterNameFilter })), (input.ClusterTypeFilter !== undefined && { clusterTypeFilter: input.ClusterTypeFilter })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
529
|
+
return [2, new __HttpRequest({
|
|
530
|
+
protocol: protocol,
|
|
531
|
+
hostname: hostname,
|
|
532
|
+
port: port,
|
|
533
|
+
method: "GET",
|
|
534
|
+
headers: headers,
|
|
535
|
+
path: resolvedPath,
|
|
536
|
+
query: query,
|
|
537
|
+
body: body,
|
|
538
|
+
})];
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
}); };
|
|
459
542
|
export var serializeAws_restJson1ListConfigurationRevisionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
460
543
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
461
544
|
return __generator(this, function (_c) {
|
|
@@ -957,6 +1040,44 @@ export var serializeAws_restJson1UpdateConfigurationCommand = function (input, c
|
|
|
957
1040
|
}
|
|
958
1041
|
});
|
|
959
1042
|
}); };
|
|
1043
|
+
export var serializeAws_restJson1UpdateConnectivityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1044
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1045
|
+
return __generator(this, function (_c) {
|
|
1046
|
+
switch (_c.label) {
|
|
1047
|
+
case 0: return [4, context.endpoint()];
|
|
1048
|
+
case 1:
|
|
1049
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1050
|
+
headers = {
|
|
1051
|
+
"content-type": "application/json",
|
|
1052
|
+
};
|
|
1053
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters/{ClusterArn}/connectivity";
|
|
1054
|
+
if (input.ClusterArn !== undefined) {
|
|
1055
|
+
labelValue = input.ClusterArn;
|
|
1056
|
+
if (labelValue.length <= 0) {
|
|
1057
|
+
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
1058
|
+
}
|
|
1059
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", __extendedEncodeURIComponent(labelValue));
|
|
1060
|
+
}
|
|
1061
|
+
else {
|
|
1062
|
+
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
1063
|
+
}
|
|
1064
|
+
body = JSON.stringify(__assign(__assign({}, (input.ConnectivityInfo !== undefined &&
|
|
1065
|
+
input.ConnectivityInfo !== null && {
|
|
1066
|
+
connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
|
|
1067
|
+
})), (input.CurrentVersion !== undefined &&
|
|
1068
|
+
input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })));
|
|
1069
|
+
return [2, new __HttpRequest({
|
|
1070
|
+
protocol: protocol,
|
|
1071
|
+
hostname: hostname,
|
|
1072
|
+
port: port,
|
|
1073
|
+
method: "PUT",
|
|
1074
|
+
headers: headers,
|
|
1075
|
+
path: resolvedPath,
|
|
1076
|
+
body: body,
|
|
1077
|
+
})];
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
}); };
|
|
960
1081
|
export var serializeAws_restJson1UpdateMonitoringCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
961
1082
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
962
1083
|
return __generator(this, function (_c) {
|
|
@@ -1384,6 +1505,128 @@ var deserializeAws_restJson1CreateClusterCommandError = function (output, contex
|
|
|
1384
1505
|
}
|
|
1385
1506
|
});
|
|
1386
1507
|
}); };
|
|
1508
|
+
export var deserializeAws_restJson1CreateClusterV2Command = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1509
|
+
var contents, data, _a, _b;
|
|
1510
|
+
return __generator(this, function (_c) {
|
|
1511
|
+
switch (_c.label) {
|
|
1512
|
+
case 0:
|
|
1513
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1514
|
+
return [2, deserializeAws_restJson1CreateClusterV2CommandError(output, context)];
|
|
1515
|
+
}
|
|
1516
|
+
contents = {
|
|
1517
|
+
$metadata: deserializeMetadata(output),
|
|
1518
|
+
ClusterArn: undefined,
|
|
1519
|
+
ClusterName: undefined,
|
|
1520
|
+
ClusterType: undefined,
|
|
1521
|
+
State: undefined,
|
|
1522
|
+
};
|
|
1523
|
+
_a = __expectNonNull;
|
|
1524
|
+
_b = __expectObject;
|
|
1525
|
+
return [4, parseBody(output.body, context)];
|
|
1526
|
+
case 1:
|
|
1527
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1528
|
+
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
1529
|
+
contents.ClusterArn = __expectString(data.clusterArn);
|
|
1530
|
+
}
|
|
1531
|
+
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
1532
|
+
contents.ClusterName = __expectString(data.clusterName);
|
|
1533
|
+
}
|
|
1534
|
+
if (data.clusterType !== undefined && data.clusterType !== null) {
|
|
1535
|
+
contents.ClusterType = __expectString(data.clusterType);
|
|
1536
|
+
}
|
|
1537
|
+
if (data.state !== undefined && data.state !== null) {
|
|
1538
|
+
contents.State = __expectString(data.state);
|
|
1539
|
+
}
|
|
1540
|
+
return [2, Promise.resolve(contents)];
|
|
1541
|
+
}
|
|
1542
|
+
});
|
|
1543
|
+
}); };
|
|
1544
|
+
var deserializeAws_restJson1CreateClusterV2CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1545
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
1546
|
+
var _k;
|
|
1547
|
+
return __generator(this, function (_l) {
|
|
1548
|
+
switch (_l.label) {
|
|
1549
|
+
case 0:
|
|
1550
|
+
_a = [__assign({}, output)];
|
|
1551
|
+
_k = {};
|
|
1552
|
+
return [4, parseBody(output.body, context)];
|
|
1553
|
+
case 1:
|
|
1554
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1555
|
+
errorCode = "UnknownError";
|
|
1556
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
|
+
_b = errorCode;
|
|
1558
|
+
switch (_b) {
|
|
1559
|
+
case "BadRequestException": return [3, 2];
|
|
1560
|
+
case "com.amazonaws.kafka#BadRequestException": return [3, 2];
|
|
1561
|
+
case "ConflictException": return [3, 4];
|
|
1562
|
+
case "com.amazonaws.kafka#ConflictException": return [3, 4];
|
|
1563
|
+
case "ForbiddenException": return [3, 6];
|
|
1564
|
+
case "com.amazonaws.kafka#ForbiddenException": return [3, 6];
|
|
1565
|
+
case "InternalServerErrorException": return [3, 8];
|
|
1566
|
+
case "com.amazonaws.kafka#InternalServerErrorException": return [3, 8];
|
|
1567
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1568
|
+
case "com.amazonaws.kafka#ServiceUnavailableException": return [3, 10];
|
|
1569
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1570
|
+
case "com.amazonaws.kafka#TooManyRequestsException": return [3, 12];
|
|
1571
|
+
case "UnauthorizedException": return [3, 14];
|
|
1572
|
+
case "com.amazonaws.kafka#UnauthorizedException": return [3, 14];
|
|
1573
|
+
}
|
|
1574
|
+
return [3, 16];
|
|
1575
|
+
case 2:
|
|
1576
|
+
_c = [{}];
|
|
1577
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1578
|
+
case 3:
|
|
1579
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1580
|
+
return [3, 17];
|
|
1581
|
+
case 4:
|
|
1582
|
+
_d = [{}];
|
|
1583
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1584
|
+
case 5:
|
|
1585
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1586
|
+
return [3, 17];
|
|
1587
|
+
case 6:
|
|
1588
|
+
_e = [{}];
|
|
1589
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1590
|
+
case 7:
|
|
1591
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1592
|
+
return [3, 17];
|
|
1593
|
+
case 8:
|
|
1594
|
+
_f = [{}];
|
|
1595
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1596
|
+
case 9:
|
|
1597
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1598
|
+
return [3, 17];
|
|
1599
|
+
case 10:
|
|
1600
|
+
_g = [{}];
|
|
1601
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1602
|
+
case 11:
|
|
1603
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1604
|
+
return [3, 17];
|
|
1605
|
+
case 12:
|
|
1606
|
+
_h = [{}];
|
|
1607
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1608
|
+
case 13:
|
|
1609
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1610
|
+
return [3, 17];
|
|
1611
|
+
case 14:
|
|
1612
|
+
_j = [{}];
|
|
1613
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1614
|
+
case 15:
|
|
1615
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1616
|
+
return [3, 17];
|
|
1617
|
+
case 16:
|
|
1618
|
+
parsedBody = parsedOutput.body;
|
|
1619
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1620
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1621
|
+
_l.label = 17;
|
|
1622
|
+
case 17:
|
|
1623
|
+
message = response.message || response.Message || errorCode;
|
|
1624
|
+
response.message = message;
|
|
1625
|
+
delete response.Message;
|
|
1626
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1627
|
+
}
|
|
1628
|
+
});
|
|
1629
|
+
}); };
|
|
1387
1630
|
export var deserializeAws_restJson1CreateConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1388
1631
|
var contents, data, _a, _b;
|
|
1389
1632
|
return __generator(this, function (_c) {
|
|
@@ -1878,6 +2121,100 @@ var deserializeAws_restJson1DescribeClusterOperationCommandError = function (out
|
|
|
1878
2121
|
}
|
|
1879
2122
|
});
|
|
1880
2123
|
}); };
|
|
2124
|
+
export var deserializeAws_restJson1DescribeClusterV2Command = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2125
|
+
var contents, data, _a, _b;
|
|
2126
|
+
return __generator(this, function (_c) {
|
|
2127
|
+
switch (_c.label) {
|
|
2128
|
+
case 0:
|
|
2129
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2130
|
+
return [2, deserializeAws_restJson1DescribeClusterV2CommandError(output, context)];
|
|
2131
|
+
}
|
|
2132
|
+
contents = {
|
|
2133
|
+
$metadata: deserializeMetadata(output),
|
|
2134
|
+
ClusterInfo: undefined,
|
|
2135
|
+
};
|
|
2136
|
+
_a = __expectNonNull;
|
|
2137
|
+
_b = __expectObject;
|
|
2138
|
+
return [4, parseBody(output.body, context)];
|
|
2139
|
+
case 1:
|
|
2140
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2141
|
+
if (data.clusterInfo !== undefined && data.clusterInfo !== null) {
|
|
2142
|
+
contents.ClusterInfo = deserializeAws_restJson1Cluster(data.clusterInfo, context);
|
|
2143
|
+
}
|
|
2144
|
+
return [2, Promise.resolve(contents)];
|
|
2145
|
+
}
|
|
2146
|
+
});
|
|
2147
|
+
}); };
|
|
2148
|
+
var deserializeAws_restJson1DescribeClusterV2CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2149
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2150
|
+
var _h;
|
|
2151
|
+
return __generator(this, function (_j) {
|
|
2152
|
+
switch (_j.label) {
|
|
2153
|
+
case 0:
|
|
2154
|
+
_a = [__assign({}, output)];
|
|
2155
|
+
_h = {};
|
|
2156
|
+
return [4, parseBody(output.body, context)];
|
|
2157
|
+
case 1:
|
|
2158
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2159
|
+
errorCode = "UnknownError";
|
|
2160
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
|
+
_b = errorCode;
|
|
2162
|
+
switch (_b) {
|
|
2163
|
+
case "BadRequestException": return [3, 2];
|
|
2164
|
+
case "com.amazonaws.kafka#BadRequestException": return [3, 2];
|
|
2165
|
+
case "ForbiddenException": return [3, 4];
|
|
2166
|
+
case "com.amazonaws.kafka#ForbiddenException": return [3, 4];
|
|
2167
|
+
case "InternalServerErrorException": return [3, 6];
|
|
2168
|
+
case "com.amazonaws.kafka#InternalServerErrorException": return [3, 6];
|
|
2169
|
+
case "NotFoundException": return [3, 8];
|
|
2170
|
+
case "com.amazonaws.kafka#NotFoundException": return [3, 8];
|
|
2171
|
+
case "UnauthorizedException": return [3, 10];
|
|
2172
|
+
case "com.amazonaws.kafka#UnauthorizedException": return [3, 10];
|
|
2173
|
+
}
|
|
2174
|
+
return [3, 12];
|
|
2175
|
+
case 2:
|
|
2176
|
+
_c = [{}];
|
|
2177
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2178
|
+
case 3:
|
|
2179
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2180
|
+
return [3, 13];
|
|
2181
|
+
case 4:
|
|
2182
|
+
_d = [{}];
|
|
2183
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2184
|
+
case 5:
|
|
2185
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2186
|
+
return [3, 13];
|
|
2187
|
+
case 6:
|
|
2188
|
+
_e = [{}];
|
|
2189
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2190
|
+
case 7:
|
|
2191
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2192
|
+
return [3, 13];
|
|
2193
|
+
case 8:
|
|
2194
|
+
_f = [{}];
|
|
2195
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2196
|
+
case 9:
|
|
2197
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2198
|
+
return [3, 13];
|
|
2199
|
+
case 10:
|
|
2200
|
+
_g = [{}];
|
|
2201
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
2202
|
+
case 11:
|
|
2203
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2204
|
+
return [3, 13];
|
|
2205
|
+
case 12:
|
|
2206
|
+
parsedBody = parsedOutput.body;
|
|
2207
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2208
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2209
|
+
_j.label = 13;
|
|
2210
|
+
case 13:
|
|
2211
|
+
message = response.message || response.Message || errorCode;
|
|
2212
|
+
response.message = message;
|
|
2213
|
+
delete response.Message;
|
|
2214
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2215
|
+
}
|
|
2216
|
+
});
|
|
2217
|
+
}); };
|
|
1881
2218
|
export var deserializeAws_restJson1DescribeConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1882
2219
|
var contents, data, _a, _b;
|
|
1883
2220
|
return __generator(this, function (_c) {
|
|
@@ -2133,6 +2470,9 @@ export var deserializeAws_restJson1GetBootstrapBrokersCommand = function (output
|
|
|
2133
2470
|
contents = {
|
|
2134
2471
|
$metadata: deserializeMetadata(output),
|
|
2135
2472
|
BootstrapBrokerString: undefined,
|
|
2473
|
+
BootstrapBrokerStringPublicSaslIam: undefined,
|
|
2474
|
+
BootstrapBrokerStringPublicSaslScram: undefined,
|
|
2475
|
+
BootstrapBrokerStringPublicTls: undefined,
|
|
2136
2476
|
BootstrapBrokerStringSaslIam: undefined,
|
|
2137
2477
|
BootstrapBrokerStringSaslScram: undefined,
|
|
2138
2478
|
BootstrapBrokerStringTls: undefined,
|
|
@@ -2145,6 +2485,15 @@ export var deserializeAws_restJson1GetBootstrapBrokersCommand = function (output
|
|
|
2145
2485
|
if (data.bootstrapBrokerString !== undefined && data.bootstrapBrokerString !== null) {
|
|
2146
2486
|
contents.BootstrapBrokerString = __expectString(data.bootstrapBrokerString);
|
|
2147
2487
|
}
|
|
2488
|
+
if (data.bootstrapBrokerStringPublicSaslIam !== undefined && data.bootstrapBrokerStringPublicSaslIam !== null) {
|
|
2489
|
+
contents.BootstrapBrokerStringPublicSaslIam = __expectString(data.bootstrapBrokerStringPublicSaslIam);
|
|
2490
|
+
}
|
|
2491
|
+
if (data.bootstrapBrokerStringPublicSaslScram !== undefined && data.bootstrapBrokerStringPublicSaslScram !== null) {
|
|
2492
|
+
contents.BootstrapBrokerStringPublicSaslScram = __expectString(data.bootstrapBrokerStringPublicSaslScram);
|
|
2493
|
+
}
|
|
2494
|
+
if (data.bootstrapBrokerStringPublicTls !== undefined && data.bootstrapBrokerStringPublicTls !== null) {
|
|
2495
|
+
contents.BootstrapBrokerStringPublicTls = __expectString(data.bootstrapBrokerStringPublicTls);
|
|
2496
|
+
}
|
|
2148
2497
|
if (data.bootstrapBrokerStringSaslIam !== undefined && data.bootstrapBrokerStringSaslIam !== null) {
|
|
2149
2498
|
contents.BootstrapBrokerStringSaslIam = __expectString(data.bootstrapBrokerStringSaslIam);
|
|
2150
2499
|
}
|
|
@@ -2322,15 +2671,105 @@ var deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError = function (o
|
|
|
2322
2671
|
case 14:
|
|
2323
2672
|
_j = [{}];
|
|
2324
2673
|
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
2325
|
-
case 15:
|
|
2326
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2327
|
-
return [3, 17];
|
|
2328
|
-
case 16:
|
|
2674
|
+
case 15:
|
|
2675
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2676
|
+
return [3, 17];
|
|
2677
|
+
case 16:
|
|
2678
|
+
parsedBody = parsedOutput.body;
|
|
2679
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2680
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2681
|
+
_l.label = 17;
|
|
2682
|
+
case 17:
|
|
2683
|
+
message = response.message || response.Message || errorCode;
|
|
2684
|
+
response.message = message;
|
|
2685
|
+
delete response.Message;
|
|
2686
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2687
|
+
}
|
|
2688
|
+
});
|
|
2689
|
+
}); };
|
|
2690
|
+
export var deserializeAws_restJson1ListClusterOperationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2691
|
+
var contents, data, _a, _b;
|
|
2692
|
+
return __generator(this, function (_c) {
|
|
2693
|
+
switch (_c.label) {
|
|
2694
|
+
case 0:
|
|
2695
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2696
|
+
return [2, deserializeAws_restJson1ListClusterOperationsCommandError(output, context)];
|
|
2697
|
+
}
|
|
2698
|
+
contents = {
|
|
2699
|
+
$metadata: deserializeMetadata(output),
|
|
2700
|
+
ClusterOperationInfoList: undefined,
|
|
2701
|
+
NextToken: undefined,
|
|
2702
|
+
};
|
|
2703
|
+
_a = __expectNonNull;
|
|
2704
|
+
_b = __expectObject;
|
|
2705
|
+
return [4, parseBody(output.body, context)];
|
|
2706
|
+
case 1:
|
|
2707
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2708
|
+
if (data.clusterOperationInfoList !== undefined && data.clusterOperationInfoList !== null) {
|
|
2709
|
+
contents.ClusterOperationInfoList = deserializeAws_restJson1__listOfClusterOperationInfo(data.clusterOperationInfoList, context);
|
|
2710
|
+
}
|
|
2711
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2712
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
2713
|
+
}
|
|
2714
|
+
return [2, Promise.resolve(contents)];
|
|
2715
|
+
}
|
|
2716
|
+
});
|
|
2717
|
+
}); };
|
|
2718
|
+
var deserializeAws_restJson1ListClusterOperationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2719
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2720
|
+
var _g;
|
|
2721
|
+
return __generator(this, function (_h) {
|
|
2722
|
+
switch (_h.label) {
|
|
2723
|
+
case 0:
|
|
2724
|
+
_a = [__assign({}, output)];
|
|
2725
|
+
_g = {};
|
|
2726
|
+
return [4, parseBody(output.body, context)];
|
|
2727
|
+
case 1:
|
|
2728
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2729
|
+
errorCode = "UnknownError";
|
|
2730
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2731
|
+
_b = errorCode;
|
|
2732
|
+
switch (_b) {
|
|
2733
|
+
case "BadRequestException": return [3, 2];
|
|
2734
|
+
case "com.amazonaws.kafka#BadRequestException": return [3, 2];
|
|
2735
|
+
case "ForbiddenException": return [3, 4];
|
|
2736
|
+
case "com.amazonaws.kafka#ForbiddenException": return [3, 4];
|
|
2737
|
+
case "InternalServerErrorException": return [3, 6];
|
|
2738
|
+
case "com.amazonaws.kafka#InternalServerErrorException": return [3, 6];
|
|
2739
|
+
case "UnauthorizedException": return [3, 8];
|
|
2740
|
+
case "com.amazonaws.kafka#UnauthorizedException": return [3, 8];
|
|
2741
|
+
}
|
|
2742
|
+
return [3, 10];
|
|
2743
|
+
case 2:
|
|
2744
|
+
_c = [{}];
|
|
2745
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2746
|
+
case 3:
|
|
2747
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2748
|
+
return [3, 11];
|
|
2749
|
+
case 4:
|
|
2750
|
+
_d = [{}];
|
|
2751
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2752
|
+
case 5:
|
|
2753
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2754
|
+
return [3, 11];
|
|
2755
|
+
case 6:
|
|
2756
|
+
_e = [{}];
|
|
2757
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2758
|
+
case 7:
|
|
2759
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2760
|
+
return [3, 11];
|
|
2761
|
+
case 8:
|
|
2762
|
+
_f = [{}];
|
|
2763
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
2764
|
+
case 9:
|
|
2765
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2766
|
+
return [3, 11];
|
|
2767
|
+
case 10:
|
|
2329
2768
|
parsedBody = parsedOutput.body;
|
|
2330
2769
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2331
2770
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2332
|
-
|
|
2333
|
-
case
|
|
2771
|
+
_h.label = 11;
|
|
2772
|
+
case 11:
|
|
2334
2773
|
message = response.message || response.Message || errorCode;
|
|
2335
2774
|
response.message = message;
|
|
2336
2775
|
delete response.Message;
|
|
@@ -2338,17 +2777,17 @@ var deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError = function (o
|
|
|
2338
2777
|
}
|
|
2339
2778
|
});
|
|
2340
2779
|
}); };
|
|
2341
|
-
export var
|
|
2780
|
+
export var deserializeAws_restJson1ListClustersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2342
2781
|
var contents, data, _a, _b;
|
|
2343
2782
|
return __generator(this, function (_c) {
|
|
2344
2783
|
switch (_c.label) {
|
|
2345
2784
|
case 0:
|
|
2346
2785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2347
|
-
return [2,
|
|
2786
|
+
return [2, deserializeAws_restJson1ListClustersCommandError(output, context)];
|
|
2348
2787
|
}
|
|
2349
2788
|
contents = {
|
|
2350
2789
|
$metadata: deserializeMetadata(output),
|
|
2351
|
-
|
|
2790
|
+
ClusterInfoList: undefined,
|
|
2352
2791
|
NextToken: undefined,
|
|
2353
2792
|
};
|
|
2354
2793
|
_a = __expectNonNull;
|
|
@@ -2356,8 +2795,8 @@ export var deserializeAws_restJson1ListClusterOperationsCommand = function (outp
|
|
|
2356
2795
|
return [4, parseBody(output.body, context)];
|
|
2357
2796
|
case 1:
|
|
2358
2797
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2359
|
-
if (data.
|
|
2360
|
-
contents.
|
|
2798
|
+
if (data.clusterInfoList !== undefined && data.clusterInfoList !== null) {
|
|
2799
|
+
contents.ClusterInfoList = deserializeAws_restJson1__listOfClusterInfo(data.clusterInfoList, context);
|
|
2361
2800
|
}
|
|
2362
2801
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2363
2802
|
contents.NextToken = __expectString(data.nextToken);
|
|
@@ -2366,7 +2805,7 @@ export var deserializeAws_restJson1ListClusterOperationsCommand = function (outp
|
|
|
2366
2805
|
}
|
|
2367
2806
|
});
|
|
2368
2807
|
}); };
|
|
2369
|
-
var
|
|
2808
|
+
var deserializeAws_restJson1ListClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2370
2809
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2371
2810
|
var _g;
|
|
2372
2811
|
return __generator(this, function (_h) {
|
|
@@ -2428,13 +2867,13 @@ var deserializeAws_restJson1ListClusterOperationsCommandError = function (output
|
|
|
2428
2867
|
}
|
|
2429
2868
|
});
|
|
2430
2869
|
}); };
|
|
2431
|
-
export var
|
|
2870
|
+
export var deserializeAws_restJson1ListClustersV2Command = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2432
2871
|
var contents, data, _a, _b;
|
|
2433
2872
|
return __generator(this, function (_c) {
|
|
2434
2873
|
switch (_c.label) {
|
|
2435
2874
|
case 0:
|
|
2436
2875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2437
|
-
return [2,
|
|
2876
|
+
return [2, deserializeAws_restJson1ListClustersV2CommandError(output, context)];
|
|
2438
2877
|
}
|
|
2439
2878
|
contents = {
|
|
2440
2879
|
$metadata: deserializeMetadata(output),
|
|
@@ -2447,7 +2886,7 @@ export var deserializeAws_restJson1ListClustersCommand = function (output, conte
|
|
|
2447
2886
|
case 1:
|
|
2448
2887
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2449
2888
|
if (data.clusterInfoList !== undefined && data.clusterInfoList !== null) {
|
|
2450
|
-
contents.ClusterInfoList =
|
|
2889
|
+
contents.ClusterInfoList = deserializeAws_restJson1__listOfCluster(data.clusterInfoList, context);
|
|
2451
2890
|
}
|
|
2452
2891
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2453
2892
|
contents.NextToken = __expectString(data.nextToken);
|
|
@@ -2456,7 +2895,7 @@ export var deserializeAws_restJson1ListClustersCommand = function (output, conte
|
|
|
2456
2895
|
}
|
|
2457
2896
|
});
|
|
2458
2897
|
}); };
|
|
2459
|
-
var
|
|
2898
|
+
var deserializeAws_restJson1ListClustersV2CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2460
2899
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2461
2900
|
var _g;
|
|
2462
2901
|
return __generator(this, function (_h) {
|
|
@@ -3988,6 +4427,112 @@ var deserializeAws_restJson1UpdateConfigurationCommandError = function (output,
|
|
|
3988
4427
|
}
|
|
3989
4428
|
});
|
|
3990
4429
|
}); };
|
|
4430
|
+
export var deserializeAws_restJson1UpdateConnectivityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4431
|
+
var contents, data, _a, _b;
|
|
4432
|
+
return __generator(this, function (_c) {
|
|
4433
|
+
switch (_c.label) {
|
|
4434
|
+
case 0:
|
|
4435
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4436
|
+
return [2, deserializeAws_restJson1UpdateConnectivityCommandError(output, context)];
|
|
4437
|
+
}
|
|
4438
|
+
contents = {
|
|
4439
|
+
$metadata: deserializeMetadata(output),
|
|
4440
|
+
ClusterArn: undefined,
|
|
4441
|
+
ClusterOperationArn: undefined,
|
|
4442
|
+
};
|
|
4443
|
+
_a = __expectNonNull;
|
|
4444
|
+
_b = __expectObject;
|
|
4445
|
+
return [4, parseBody(output.body, context)];
|
|
4446
|
+
case 1:
|
|
4447
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4448
|
+
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
4449
|
+
contents.ClusterArn = __expectString(data.clusterArn);
|
|
4450
|
+
}
|
|
4451
|
+
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
4452
|
+
contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
|
|
4453
|
+
}
|
|
4454
|
+
return [2, Promise.resolve(contents)];
|
|
4455
|
+
}
|
|
4456
|
+
});
|
|
4457
|
+
}); };
|
|
4458
|
+
var deserializeAws_restJson1UpdateConnectivityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4459
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
4460
|
+
var _j;
|
|
4461
|
+
return __generator(this, function (_k) {
|
|
4462
|
+
switch (_k.label) {
|
|
4463
|
+
case 0:
|
|
4464
|
+
_a = [__assign({}, output)];
|
|
4465
|
+
_j = {};
|
|
4466
|
+
return [4, parseBody(output.body, context)];
|
|
4467
|
+
case 1:
|
|
4468
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
4469
|
+
errorCode = "UnknownError";
|
|
4470
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4471
|
+
_b = errorCode;
|
|
4472
|
+
switch (_b) {
|
|
4473
|
+
case "BadRequestException": return [3, 2];
|
|
4474
|
+
case "com.amazonaws.kafka#BadRequestException": return [3, 2];
|
|
4475
|
+
case "ForbiddenException": return [3, 4];
|
|
4476
|
+
case "com.amazonaws.kafka#ForbiddenException": return [3, 4];
|
|
4477
|
+
case "InternalServerErrorException": return [3, 6];
|
|
4478
|
+
case "com.amazonaws.kafka#InternalServerErrorException": return [3, 6];
|
|
4479
|
+
case "NotFoundException": return [3, 8];
|
|
4480
|
+
case "com.amazonaws.kafka#NotFoundException": return [3, 8];
|
|
4481
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
4482
|
+
case "com.amazonaws.kafka#ServiceUnavailableException": return [3, 10];
|
|
4483
|
+
case "UnauthorizedException": return [3, 12];
|
|
4484
|
+
case "com.amazonaws.kafka#UnauthorizedException": return [3, 12];
|
|
4485
|
+
}
|
|
4486
|
+
return [3, 14];
|
|
4487
|
+
case 2:
|
|
4488
|
+
_c = [{}];
|
|
4489
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4490
|
+
case 3:
|
|
4491
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4492
|
+
return [3, 15];
|
|
4493
|
+
case 4:
|
|
4494
|
+
_d = [{}];
|
|
4495
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
4496
|
+
case 5:
|
|
4497
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4498
|
+
return [3, 15];
|
|
4499
|
+
case 6:
|
|
4500
|
+
_e = [{}];
|
|
4501
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
4502
|
+
case 7:
|
|
4503
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4504
|
+
return [3, 15];
|
|
4505
|
+
case 8:
|
|
4506
|
+
_f = [{}];
|
|
4507
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4508
|
+
case 9:
|
|
4509
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4510
|
+
return [3, 15];
|
|
4511
|
+
case 10:
|
|
4512
|
+
_g = [{}];
|
|
4513
|
+
return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
4514
|
+
case 11:
|
|
4515
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4516
|
+
return [3, 15];
|
|
4517
|
+
case 12:
|
|
4518
|
+
_h = [{}];
|
|
4519
|
+
return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
4520
|
+
case 13:
|
|
4521
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4522
|
+
return [3, 15];
|
|
4523
|
+
case 14:
|
|
4524
|
+
parsedBody = parsedOutput.body;
|
|
4525
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4526
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
4527
|
+
_k.label = 15;
|
|
4528
|
+
case 15:
|
|
4529
|
+
message = response.message || response.Message || errorCode;
|
|
4530
|
+
response.message = message;
|
|
4531
|
+
delete response.Message;
|
|
4532
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4533
|
+
}
|
|
4534
|
+
});
|
|
4535
|
+
}); };
|
|
3991
4536
|
export var deserializeAws_restJson1UpdateMonitoringCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3992
4537
|
var contents, data, _a, _b;
|
|
3993
4538
|
return __generator(this, function (_c) {
|
|
@@ -4380,6 +4925,16 @@ var serializeAws_restJson1__listOfBrokerEBSVolumeInfo = function (input, context
|
|
|
4380
4925
|
return serializeAws_restJson1BrokerEBSVolumeInfo(entry, context);
|
|
4381
4926
|
});
|
|
4382
4927
|
};
|
|
4928
|
+
var serializeAws_restJson1__listOfVpcConfig = function (input, context) {
|
|
4929
|
+
return input
|
|
4930
|
+
.filter(function (e) { return e != null; })
|
|
4931
|
+
.map(function (entry) {
|
|
4932
|
+
if (entry === null) {
|
|
4933
|
+
return null;
|
|
4934
|
+
}
|
|
4935
|
+
return serializeAws_restJson1VpcConfig(entry, context);
|
|
4936
|
+
});
|
|
4937
|
+
};
|
|
4383
4938
|
var serializeAws_restJson1__mapOf__string = function (input, context) {
|
|
4384
4939
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
4385
4940
|
var _b;
|
|
@@ -4402,10 +4957,13 @@ var serializeAws_restJson1BrokerLogs = function (input, context) {
|
|
|
4402
4957
|
input.Firehose !== null && { firehose: serializeAws_restJson1Firehose(input.Firehose, context) })), (input.S3 !== undefined && input.S3 !== null && { s3: serializeAws_restJson1S3(input.S3, context) }));
|
|
4403
4958
|
};
|
|
4404
4959
|
var serializeAws_restJson1BrokerNodeGroupInfo = function (input, context) {
|
|
4405
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.BrokerAZDistribution !== undefined &&
|
|
4960
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerAZDistribution !== undefined &&
|
|
4406
4961
|
input.BrokerAZDistribution !== null && { brokerAZDistribution: input.BrokerAZDistribution })), (input.ClientSubnets !== undefined &&
|
|
4407
4962
|
input.ClientSubnets !== null && {
|
|
4408
4963
|
clientSubnets: serializeAws_restJson1__listOf__string(input.ClientSubnets, context),
|
|
4964
|
+
})), (input.ConnectivityInfo !== undefined &&
|
|
4965
|
+
input.ConnectivityInfo !== null && {
|
|
4966
|
+
connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
|
|
4409
4967
|
})), (input.InstanceType !== undefined && input.InstanceType !== null && { instanceType: input.InstanceType })), (input.SecurityGroups !== undefined &&
|
|
4410
4968
|
input.SecurityGroups !== null && {
|
|
4411
4969
|
securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
|
|
@@ -4424,6 +4982,10 @@ var serializeAws_restJson1CloudWatchLogs = function (input, context) {
|
|
|
4424
4982
|
var serializeAws_restJson1ConfigurationInfo = function (input, context) {
|
|
4425
4983
|
return __assign(__assign({}, (input.Arn !== undefined && input.Arn !== null && { arn: input.Arn })), (input.Revision !== undefined && input.Revision !== null && { revision: input.Revision }));
|
|
4426
4984
|
};
|
|
4985
|
+
var serializeAws_restJson1ConnectivityInfo = function (input, context) {
|
|
4986
|
+
return __assign({}, (input.PublicAccess !== undefined &&
|
|
4987
|
+
input.PublicAccess !== null && { publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context) }));
|
|
4988
|
+
};
|
|
4427
4989
|
var serializeAws_restJson1EBSStorageInfo = function (input, context) {
|
|
4428
4990
|
return __assign({}, (input.VolumeSize !== undefined && input.VolumeSize !== null && { volumeSize: input.VolumeSize }));
|
|
4429
4991
|
};
|
|
@@ -4473,6 +5035,30 @@ var serializeAws_restJson1PrometheusInfo = function (input, context) {
|
|
|
4473
5035
|
nodeExporter: serializeAws_restJson1NodeExporterInfo(input.NodeExporter, context),
|
|
4474
5036
|
}));
|
|
4475
5037
|
};
|
|
5038
|
+
var serializeAws_restJson1ProvisionedRequest = function (input, context) {
|
|
5039
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerNodeGroupInfo !== undefined &&
|
|
5040
|
+
input.BrokerNodeGroupInfo !== null && {
|
|
5041
|
+
brokerNodeGroupInfo: serializeAws_restJson1BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
|
|
5042
|
+
})), (input.ClientAuthentication !== undefined &&
|
|
5043
|
+
input.ClientAuthentication !== null && {
|
|
5044
|
+
clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
|
|
5045
|
+
})), (input.ConfigurationInfo !== undefined &&
|
|
5046
|
+
input.ConfigurationInfo !== null && {
|
|
5047
|
+
configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
|
|
5048
|
+
})), (input.EncryptionInfo !== undefined &&
|
|
5049
|
+
input.EncryptionInfo !== null && {
|
|
5050
|
+
encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
|
|
5051
|
+
})), (input.EnhancedMonitoring !== undefined &&
|
|
5052
|
+
input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring })), (input.KafkaVersion !== undefined && input.KafkaVersion !== null && { kafkaVersion: input.KafkaVersion })), (input.LoggingInfo !== undefined &&
|
|
5053
|
+
input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) })), (input.NumberOfBrokerNodes !== undefined &&
|
|
5054
|
+
input.NumberOfBrokerNodes !== null && { numberOfBrokerNodes: input.NumberOfBrokerNodes })), (input.OpenMonitoring !== undefined &&
|
|
5055
|
+
input.OpenMonitoring !== null && {
|
|
5056
|
+
openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
|
|
5057
|
+
}));
|
|
5058
|
+
};
|
|
5059
|
+
var serializeAws_restJson1PublicAccess = function (input, context) {
|
|
5060
|
+
return __assign({}, (input.Type !== undefined && input.Type !== null && { type: input.Type }));
|
|
5061
|
+
};
|
|
4476
5062
|
var serializeAws_restJson1S3 = function (input, context) {
|
|
4477
5063
|
return __assign(__assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { bucket: input.Bucket })), (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled })), (input.Prefix !== undefined && input.Prefix !== null && { prefix: input.Prefix }));
|
|
4478
5064
|
};
|
|
@@ -4483,6 +5069,20 @@ var serializeAws_restJson1Sasl = function (input, context) {
|
|
|
4483
5069
|
var serializeAws_restJson1Scram = function (input, context) {
|
|
4484
5070
|
return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }));
|
|
4485
5071
|
};
|
|
5072
|
+
var serializeAws_restJson1ServerlessClientAuthentication = function (input, context) {
|
|
5073
|
+
return __assign({}, (input.Sasl !== undefined &&
|
|
5074
|
+
input.Sasl !== null && { sasl: serializeAws_restJson1ServerlessSasl(input.Sasl, context) }));
|
|
5075
|
+
};
|
|
5076
|
+
var serializeAws_restJson1ServerlessRequest = function (input, context) {
|
|
5077
|
+
return __assign(__assign({}, (input.ClientAuthentication !== undefined &&
|
|
5078
|
+
input.ClientAuthentication !== null && {
|
|
5079
|
+
clientAuthentication: serializeAws_restJson1ServerlessClientAuthentication(input.ClientAuthentication, context),
|
|
5080
|
+
})), (input.VpcConfigs !== undefined &&
|
|
5081
|
+
input.VpcConfigs !== null && { vpcConfigs: serializeAws_restJson1__listOfVpcConfig(input.VpcConfigs, context) }));
|
|
5082
|
+
};
|
|
5083
|
+
var serializeAws_restJson1ServerlessSasl = function (input, context) {
|
|
5084
|
+
return __assign({}, (input.Iam !== undefined && input.Iam !== null && { iam: serializeAws_restJson1Iam(input.Iam, context) }));
|
|
5085
|
+
};
|
|
4486
5086
|
var serializeAws_restJson1StorageInfo = function (input, context) {
|
|
4487
5087
|
return __assign({}, (input.EbsStorageInfo !== undefined &&
|
|
4488
5088
|
input.EbsStorageInfo !== null && {
|
|
@@ -4498,6 +5098,13 @@ var serializeAws_restJson1Tls = function (input, context) {
|
|
|
4498
5098
|
var serializeAws_restJson1Unauthenticated = function (input, context) {
|
|
4499
5099
|
return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }));
|
|
4500
5100
|
};
|
|
5101
|
+
var serializeAws_restJson1VpcConfig = function (input, context) {
|
|
5102
|
+
return __assign(__assign({}, (input.SecurityGroupIds !== undefined &&
|
|
5103
|
+
input.SecurityGroupIds !== null && {
|
|
5104
|
+
securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
|
|
5105
|
+
})), (input.SubnetIds !== undefined &&
|
|
5106
|
+
input.SubnetIds !== null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }));
|
|
5107
|
+
};
|
|
4501
5108
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
4502
5109
|
return (output || [])
|
|
4503
5110
|
.filter(function (e) { return e != null; })
|
|
@@ -4518,6 +5125,16 @@ var deserializeAws_restJson1__listOfBrokerEBSVolumeInfo = function (output, cont
|
|
|
4518
5125
|
return deserializeAws_restJson1BrokerEBSVolumeInfo(entry, context);
|
|
4519
5126
|
});
|
|
4520
5127
|
};
|
|
5128
|
+
var deserializeAws_restJson1__listOfCluster = function (output, context) {
|
|
5129
|
+
return (output || [])
|
|
5130
|
+
.filter(function (e) { return e != null; })
|
|
5131
|
+
.map(function (entry) {
|
|
5132
|
+
if (entry === null) {
|
|
5133
|
+
return null;
|
|
5134
|
+
}
|
|
5135
|
+
return deserializeAws_restJson1Cluster(entry, context);
|
|
5136
|
+
});
|
|
5137
|
+
};
|
|
4521
5138
|
var deserializeAws_restJson1__listOfClusterInfo = function (output, context) {
|
|
4522
5139
|
return (output || [])
|
|
4523
5140
|
.filter(function (e) { return e != null; })
|
|
@@ -4608,6 +5225,16 @@ var deserializeAws_restJson1__listOfUnprocessedScramSecret = function (output, c
|
|
|
4608
5225
|
return deserializeAws_restJson1UnprocessedScramSecret(entry, context);
|
|
4609
5226
|
});
|
|
4610
5227
|
};
|
|
5228
|
+
var deserializeAws_restJson1__listOfVpcConfig = function (output, context) {
|
|
5229
|
+
return (output || [])
|
|
5230
|
+
.filter(function (e) { return e != null; })
|
|
5231
|
+
.map(function (entry) {
|
|
5232
|
+
if (entry === null) {
|
|
5233
|
+
return null;
|
|
5234
|
+
}
|
|
5235
|
+
return deserializeAws_restJson1VpcConfig(entry, context);
|
|
5236
|
+
});
|
|
5237
|
+
};
|
|
4611
5238
|
var deserializeAws_restJson1__mapOf__string = function (output, context) {
|
|
4612
5239
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
4613
5240
|
var _b;
|
|
@@ -4641,6 +5268,9 @@ var deserializeAws_restJson1BrokerNodeGroupInfo = function (output, context) {
|
|
|
4641
5268
|
ClientSubnets: output.clientSubnets !== undefined && output.clientSubnets !== null
|
|
4642
5269
|
? deserializeAws_restJson1__listOf__string(output.clientSubnets, context)
|
|
4643
5270
|
: undefined,
|
|
5271
|
+
ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
|
|
5272
|
+
? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
|
|
5273
|
+
: undefined,
|
|
4644
5274
|
InstanceType: __expectString(output.instanceType),
|
|
4645
5275
|
SecurityGroups: output.securityGroups !== undefined && output.securityGroups !== null
|
|
4646
5276
|
? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
|
|
@@ -4688,6 +5318,31 @@ var deserializeAws_restJson1CloudWatchLogs = function (output, context) {
|
|
|
4688
5318
|
LogGroup: __expectString(output.logGroup),
|
|
4689
5319
|
};
|
|
4690
5320
|
};
|
|
5321
|
+
var deserializeAws_restJson1Cluster = function (output, context) {
|
|
5322
|
+
return {
|
|
5323
|
+
ActiveOperationArn: __expectString(output.activeOperationArn),
|
|
5324
|
+
ClusterArn: __expectString(output.clusterArn),
|
|
5325
|
+
ClusterName: __expectString(output.clusterName),
|
|
5326
|
+
ClusterType: __expectString(output.clusterType),
|
|
5327
|
+
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
5328
|
+
? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
|
|
5329
|
+
: undefined,
|
|
5330
|
+
CurrentVersion: __expectString(output.currentVersion),
|
|
5331
|
+
Provisioned: output.provisioned !== undefined && output.provisioned !== null
|
|
5332
|
+
? deserializeAws_restJson1Provisioned(output.provisioned, context)
|
|
5333
|
+
: undefined,
|
|
5334
|
+
Serverless: output.serverless !== undefined && output.serverless !== null
|
|
5335
|
+
? deserializeAws_restJson1Serverless(output.serverless, context)
|
|
5336
|
+
: undefined,
|
|
5337
|
+
State: __expectString(output.state),
|
|
5338
|
+
StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
|
|
5339
|
+
? deserializeAws_restJson1StateInfo(output.stateInfo, context)
|
|
5340
|
+
: undefined,
|
|
5341
|
+
Tags: output.tags !== undefined && output.tags !== null
|
|
5342
|
+
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
5343
|
+
: undefined,
|
|
5344
|
+
};
|
|
5345
|
+
};
|
|
4691
5346
|
var deserializeAws_restJson1ClusterInfo = function (output, context) {
|
|
4692
5347
|
return {
|
|
4693
5348
|
ActiveOperationArn: __expectString(output.activeOperationArn),
|
|
@@ -4808,6 +5463,13 @@ var deserializeAws_restJson1ConfigurationRevision = function (output, context) {
|
|
|
4808
5463
|
Revision: __expectLong(output.revision),
|
|
4809
5464
|
};
|
|
4810
5465
|
};
|
|
5466
|
+
var deserializeAws_restJson1ConnectivityInfo = function (output, context) {
|
|
5467
|
+
return {
|
|
5468
|
+
PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
|
|
5469
|
+
? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
|
|
5470
|
+
: undefined,
|
|
5471
|
+
};
|
|
5472
|
+
};
|
|
4811
5473
|
var deserializeAws_restJson1EBSStorageInfo = function (output, context) {
|
|
4812
5474
|
return {
|
|
4813
5475
|
VolumeSize: __expectInt32(output.volumeSize),
|
|
@@ -4856,6 +5518,11 @@ var deserializeAws_restJson1JmxExporter = function (output, context) {
|
|
|
4856
5518
|
EnabledInBroker: __expectBoolean(output.enabledInBroker),
|
|
4857
5519
|
};
|
|
4858
5520
|
};
|
|
5521
|
+
var deserializeAws_restJson1JmxExporterInfo = function (output, context) {
|
|
5522
|
+
return {
|
|
5523
|
+
EnabledInBroker: __expectBoolean(output.enabledInBroker),
|
|
5524
|
+
};
|
|
5525
|
+
};
|
|
4859
5526
|
var deserializeAws_restJson1KafkaVersion = function (output, context) {
|
|
4860
5527
|
return {
|
|
4861
5528
|
Status: __expectString(output.status),
|
|
@@ -4880,6 +5547,9 @@ var deserializeAws_restJson1MutableClusterInfo = function (output, context) {
|
|
|
4880
5547
|
ConfigurationInfo: output.configurationInfo !== undefined && output.configurationInfo !== null
|
|
4881
5548
|
? deserializeAws_restJson1ConfigurationInfo(output.configurationInfo, context)
|
|
4882
5549
|
: undefined,
|
|
5550
|
+
ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
|
|
5551
|
+
? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
|
|
5552
|
+
: undefined,
|
|
4883
5553
|
EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
|
|
4884
5554
|
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
4885
5555
|
: undefined,
|
|
@@ -4900,6 +5570,11 @@ var deserializeAws_restJson1NodeExporter = function (output, context) {
|
|
|
4900
5570
|
EnabledInBroker: __expectBoolean(output.enabledInBroker),
|
|
4901
5571
|
};
|
|
4902
5572
|
};
|
|
5573
|
+
var deserializeAws_restJson1NodeExporterInfo = function (output, context) {
|
|
5574
|
+
return {
|
|
5575
|
+
EnabledInBroker: __expectBoolean(output.enabledInBroker),
|
|
5576
|
+
};
|
|
5577
|
+
};
|
|
4903
5578
|
var deserializeAws_restJson1NodeInfo = function (output, context) {
|
|
4904
5579
|
return {
|
|
4905
5580
|
AddedToClusterTime: __expectString(output.addedToClusterTime),
|
|
@@ -4921,6 +5596,13 @@ var deserializeAws_restJson1OpenMonitoring = function (output, context) {
|
|
|
4921
5596
|
: undefined,
|
|
4922
5597
|
};
|
|
4923
5598
|
};
|
|
5599
|
+
var deserializeAws_restJson1OpenMonitoringInfo = function (output, context) {
|
|
5600
|
+
return {
|
|
5601
|
+
Prometheus: output.prometheus !== undefined && output.prometheus !== null
|
|
5602
|
+
? deserializeAws_restJson1PrometheusInfo(output.prometheus, context)
|
|
5603
|
+
: undefined,
|
|
5604
|
+
};
|
|
5605
|
+
};
|
|
4924
5606
|
var deserializeAws_restJson1Prometheus = function (output, context) {
|
|
4925
5607
|
return {
|
|
4926
5608
|
JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
|
|
@@ -4931,6 +5613,47 @@ var deserializeAws_restJson1Prometheus = function (output, context) {
|
|
|
4931
5613
|
: undefined,
|
|
4932
5614
|
};
|
|
4933
5615
|
};
|
|
5616
|
+
var deserializeAws_restJson1PrometheusInfo = function (output, context) {
|
|
5617
|
+
return {
|
|
5618
|
+
JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
|
|
5619
|
+
? deserializeAws_restJson1JmxExporterInfo(output.jmxExporter, context)
|
|
5620
|
+
: undefined,
|
|
5621
|
+
NodeExporter: output.nodeExporter !== undefined && output.nodeExporter !== null
|
|
5622
|
+
? deserializeAws_restJson1NodeExporterInfo(output.nodeExporter, context)
|
|
5623
|
+
: undefined,
|
|
5624
|
+
};
|
|
5625
|
+
};
|
|
5626
|
+
var deserializeAws_restJson1Provisioned = function (output, context) {
|
|
5627
|
+
return {
|
|
5628
|
+
BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
|
|
5629
|
+
? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
|
|
5630
|
+
: undefined,
|
|
5631
|
+
ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
|
|
5632
|
+
? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
|
|
5633
|
+
: undefined,
|
|
5634
|
+
CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
|
|
5635
|
+
? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
|
|
5636
|
+
: undefined,
|
|
5637
|
+
EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
|
|
5638
|
+
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
5639
|
+
: undefined,
|
|
5640
|
+
EnhancedMonitoring: __expectString(output.enhancedMonitoring),
|
|
5641
|
+
LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
|
|
5642
|
+
? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
|
|
5643
|
+
: undefined,
|
|
5644
|
+
NumberOfBrokerNodes: __expectInt32(output.numberOfBrokerNodes),
|
|
5645
|
+
OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
|
|
5646
|
+
? deserializeAws_restJson1OpenMonitoringInfo(output.openMonitoring, context)
|
|
5647
|
+
: undefined,
|
|
5648
|
+
ZookeeperConnectString: __expectString(output.zookeeperConnectString),
|
|
5649
|
+
ZookeeperConnectStringTls: __expectString(output.zookeeperConnectStringTls),
|
|
5650
|
+
};
|
|
5651
|
+
};
|
|
5652
|
+
var deserializeAws_restJson1PublicAccess = function (output, context) {
|
|
5653
|
+
return {
|
|
5654
|
+
Type: __expectString(output.type),
|
|
5655
|
+
};
|
|
5656
|
+
};
|
|
4934
5657
|
var deserializeAws_restJson1S3 = function (output, context) {
|
|
4935
5658
|
return {
|
|
4936
5659
|
Bucket: __expectString(output.bucket),
|
|
@@ -4951,6 +5674,28 @@ var deserializeAws_restJson1Scram = function (output, context) {
|
|
|
4951
5674
|
Enabled: __expectBoolean(output.enabled),
|
|
4952
5675
|
};
|
|
4953
5676
|
};
|
|
5677
|
+
var deserializeAws_restJson1Serverless = function (output, context) {
|
|
5678
|
+
return {
|
|
5679
|
+
ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
|
|
5680
|
+
? deserializeAws_restJson1ServerlessClientAuthentication(output.clientAuthentication, context)
|
|
5681
|
+
: undefined,
|
|
5682
|
+
VpcConfigs: output.vpcConfigs !== undefined && output.vpcConfigs !== null
|
|
5683
|
+
? deserializeAws_restJson1__listOfVpcConfig(output.vpcConfigs, context)
|
|
5684
|
+
: undefined,
|
|
5685
|
+
};
|
|
5686
|
+
};
|
|
5687
|
+
var deserializeAws_restJson1ServerlessClientAuthentication = function (output, context) {
|
|
5688
|
+
return {
|
|
5689
|
+
Sasl: output.sasl !== undefined && output.sasl !== null
|
|
5690
|
+
? deserializeAws_restJson1ServerlessSasl(output.sasl, context)
|
|
5691
|
+
: undefined,
|
|
5692
|
+
};
|
|
5693
|
+
};
|
|
5694
|
+
var deserializeAws_restJson1ServerlessSasl = function (output, context) {
|
|
5695
|
+
return {
|
|
5696
|
+
Iam: output.iam !== undefined && output.iam !== null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
|
|
5697
|
+
};
|
|
5698
|
+
};
|
|
4954
5699
|
var deserializeAws_restJson1StateInfo = function (output, context) {
|
|
4955
5700
|
return {
|
|
4956
5701
|
Code: __expectString(output.code),
|
|
@@ -4984,6 +5729,16 @@ var deserializeAws_restJson1UnprocessedScramSecret = function (output, context)
|
|
|
4984
5729
|
SecretArn: __expectString(output.secretArn),
|
|
4985
5730
|
};
|
|
4986
5731
|
};
|
|
5732
|
+
var deserializeAws_restJson1VpcConfig = function (output, context) {
|
|
5733
|
+
return {
|
|
5734
|
+
SecurityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
|
|
5735
|
+
? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
|
|
5736
|
+
: undefined,
|
|
5737
|
+
SubnetIds: output.subnetIds !== undefined && output.subnetIds !== null
|
|
5738
|
+
? deserializeAws_restJson1__listOf__string(output.subnetIds, context)
|
|
5739
|
+
: undefined,
|
|
5740
|
+
};
|
|
5741
|
+
};
|
|
4987
5742
|
var deserializeAws_restJson1ZookeeperNodeInfo = function (output, context) {
|
|
4988
5743
|
return {
|
|
4989
5744
|
AttachedENIId: __expectString(output.attachedENIId),
|