@aws-sdk/client-kafka 3.40.0 → 3.44.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 +8 -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 +8 -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/BatchAssociateScramSecretCommand.d.ts +1 -1
- package/dist-types/commands/BatchDisassociateScramSecretCommand.d.ts +1 -1
- package/dist-types/commands/CreateClusterCommand.d.ts +1 -1
- package/dist-types/commands/CreateClusterV2Command.d.ts +35 -0
- package/dist-types/commands/CreateConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteClusterCommand.d.ts +1 -1
- package/dist-types/commands/DeleteConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterOperationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterV2Command.d.ts +35 -0
- package/dist-types/commands/DescribeConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeConfigurationRevisionCommand.d.ts +1 -1
- package/dist-types/commands/GetBootstrapBrokersCommand.d.ts +1 -1
- package/dist-types/commands/GetCompatibleKafkaVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListClusterOperationsCommand.d.ts +1 -1
- package/dist-types/commands/ListClustersCommand.d.ts +1 -1
- package/dist-types/commands/ListClustersV2Command.d.ts +35 -0
- package/dist-types/commands/ListConfigurationRevisionsCommand.d.ts +1 -1
- package/dist-types/commands/ListConfigurationsCommand.d.ts +1 -1
- package/dist-types/commands/ListKafkaVersionsCommand.d.ts +2 -2
- package/dist-types/commands/ListNodesCommand.d.ts +1 -1
- package/dist-types/commands/ListScramSecretsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/RebootBrokerCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBrokerCountCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBrokerStorageCommand.d.ts +1 -1
- package/dist-types/commands/UpdateBrokerTypeCommand.d.ts +1 -1
- package/dist-types/commands/UpdateClusterConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateClusterKafkaVersionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateConnectivityCommand.d.ts +35 -0
- package/dist-types/commands/UpdateMonitoringCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSecurityCommand.d.ts +1 -1
- 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 +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateSecurityCommand = exports.deserializeAws_restJson1UpdateMonitoringCommand = exports.deserializeAws_restJson1UpdateConfigurationCommand = exports.deserializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.deserializeAws_restJson1UpdateClusterConfigurationCommand = exports.deserializeAws_restJson1UpdateBrokerTypeCommand = exports.deserializeAws_restJson1UpdateBrokerStorageCommand = exports.deserializeAws_restJson1UpdateBrokerCountCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RebootBrokerCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListClusterOperationsCommand = exports.deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.deserializeAws_restJson1GetBootstrapBrokersCommand = exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = exports.deserializeAws_restJson1DescribeConfigurationCommand = exports.deserializeAws_restJson1DescribeClusterV2Command = exports.deserializeAws_restJson1DescribeClusterOperationCommand = exports.deserializeAws_restJson1DescribeClusterCommand = exports.deserializeAws_restJson1DeleteConfigurationCommand = exports.deserializeAws_restJson1DeleteClusterCommand = exports.deserializeAws_restJson1CreateConfigurationCommand = exports.deserializeAws_restJson1CreateClusterV2Command = exports.deserializeAws_restJson1CreateClusterCommand = exports.deserializeAws_restJson1BatchDisassociateScramSecretCommand = exports.deserializeAws_restJson1BatchAssociateScramSecretCommand = exports.serializeAws_restJson1UpdateSecurityCommand = exports.serializeAws_restJson1UpdateMonitoringCommand = exports.serializeAws_restJson1UpdateConnectivityCommand = exports.serializeAws_restJson1UpdateConfigurationCommand = exports.serializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.serializeAws_restJson1UpdateClusterConfigurationCommand = exports.serializeAws_restJson1UpdateBrokerTypeCommand = exports.serializeAws_restJson1UpdateBrokerStorageCommand = exports.serializeAws_restJson1UpdateBrokerCountCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RebootBrokerCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListScramSecretsCommand = exports.serializeAws_restJson1ListNodesCommand = exports.serializeAws_restJson1ListKafkaVersionsCommand = exports.serializeAws_restJson1ListConfigurationsCommand = exports.serializeAws_restJson1ListConfigurationRevisionsCommand = exports.serializeAws_restJson1ListClustersV2Command = exports.serializeAws_restJson1ListClustersCommand = exports.serializeAws_restJson1ListClusterOperationsCommand = exports.serializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.serializeAws_restJson1GetBootstrapBrokersCommand = exports.serializeAws_restJson1DescribeConfigurationRevisionCommand = exports.serializeAws_restJson1DescribeConfigurationCommand = exports.serializeAws_restJson1DescribeClusterV2Command = exports.serializeAws_restJson1DescribeClusterOperationCommand = exports.serializeAws_restJson1DescribeClusterCommand = exports.serializeAws_restJson1DeleteConfigurationCommand = exports.serializeAws_restJson1DeleteClusterCommand = exports.serializeAws_restJson1CreateConfigurationCommand = exports.serializeAws_restJson1CreateClusterV2Command = exports.serializeAws_restJson1CreateClusterCommand = exports.serializeAws_restJson1BatchDisassociateScramSecretCommand = exports.serializeAws_restJson1BatchAssociateScramSecretCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateSecurityCommand = exports.deserializeAws_restJson1UpdateMonitoringCommand = exports.deserializeAws_restJson1UpdateConnectivityCommand = exports.deserializeAws_restJson1UpdateConfigurationCommand = exports.deserializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.deserializeAws_restJson1UpdateClusterConfigurationCommand = exports.deserializeAws_restJson1UpdateBrokerTypeCommand = exports.deserializeAws_restJson1UpdateBrokerStorageCommand = exports.deserializeAws_restJson1UpdateBrokerCountCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RebootBrokerCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListScramSecretsCommand = exports.deserializeAws_restJson1ListNodesCommand = exports.deserializeAws_restJson1ListKafkaVersionsCommand = exports.deserializeAws_restJson1ListConfigurationsCommand = exports.deserializeAws_restJson1ListConfigurationRevisionsCommand = exports.deserializeAws_restJson1ListClustersV2Command = exports.deserializeAws_restJson1ListClustersCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const serializeAws_restJson1BatchAssociateScramSecretCommand = async (input, context) => {
|
|
@@ -122,6 +122,35 @@ const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
|
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
124
|
exports.serializeAws_restJson1CreateClusterCommand = serializeAws_restJson1CreateClusterCommand;
|
|
125
|
+
const serializeAws_restJson1CreateClusterV2Command = async (input, context) => {
|
|
126
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
127
|
+
const headers = {
|
|
128
|
+
"content-type": "application/json",
|
|
129
|
+
};
|
|
130
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters";
|
|
131
|
+
let body;
|
|
132
|
+
body = JSON.stringify({
|
|
133
|
+
...(input.ClusterName !== undefined && input.ClusterName !== null && { clusterName: input.ClusterName }),
|
|
134
|
+
...(input.Provisioned !== undefined &&
|
|
135
|
+
input.Provisioned !== null && {
|
|
136
|
+
provisioned: serializeAws_restJson1ProvisionedRequest(input.Provisioned, context),
|
|
137
|
+
}),
|
|
138
|
+
...(input.Serverless !== undefined &&
|
|
139
|
+
input.Serverless !== null && { serverless: serializeAws_restJson1ServerlessRequest(input.Serverless, context) }),
|
|
140
|
+
...(input.Tags !== undefined &&
|
|
141
|
+
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
142
|
+
});
|
|
143
|
+
return new protocol_http_1.HttpRequest({
|
|
144
|
+
protocol,
|
|
145
|
+
hostname,
|
|
146
|
+
port,
|
|
147
|
+
method: "POST",
|
|
148
|
+
headers,
|
|
149
|
+
path: resolvedPath,
|
|
150
|
+
body,
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
exports.serializeAws_restJson1CreateClusterV2Command = serializeAws_restJson1CreateClusterV2Command;
|
|
125
154
|
const serializeAws_restJson1CreateConfigurationCommand = async (input, context) => {
|
|
126
155
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
127
156
|
const headers = {
|
|
@@ -258,6 +287,32 @@ const serializeAws_restJson1DescribeClusterOperationCommand = async (input, cont
|
|
|
258
287
|
});
|
|
259
288
|
};
|
|
260
289
|
exports.serializeAws_restJson1DescribeClusterOperationCommand = serializeAws_restJson1DescribeClusterOperationCommand;
|
|
290
|
+
const serializeAws_restJson1DescribeClusterV2Command = async (input, context) => {
|
|
291
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
292
|
+
const headers = {};
|
|
293
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters/{ClusterArn}";
|
|
294
|
+
if (input.ClusterArn !== undefined) {
|
|
295
|
+
const labelValue = input.ClusterArn;
|
|
296
|
+
if (labelValue.length <= 0) {
|
|
297
|
+
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
298
|
+
}
|
|
299
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
303
|
+
}
|
|
304
|
+
let body;
|
|
305
|
+
return new protocol_http_1.HttpRequest({
|
|
306
|
+
protocol,
|
|
307
|
+
hostname,
|
|
308
|
+
port,
|
|
309
|
+
method: "GET",
|
|
310
|
+
headers,
|
|
311
|
+
path: resolvedPath,
|
|
312
|
+
body,
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
exports.serializeAws_restJson1DescribeClusterV2Command = serializeAws_restJson1DescribeClusterV2Command;
|
|
261
316
|
const serializeAws_restJson1DescribeConfigurationCommand = async (input, context) => {
|
|
262
317
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
263
318
|
const headers = {};
|
|
@@ -421,6 +476,29 @@ const serializeAws_restJson1ListClustersCommand = async (input, context) => {
|
|
|
421
476
|
});
|
|
422
477
|
};
|
|
423
478
|
exports.serializeAws_restJson1ListClustersCommand = serializeAws_restJson1ListClustersCommand;
|
|
479
|
+
const serializeAws_restJson1ListClustersV2Command = async (input, context) => {
|
|
480
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
481
|
+
const headers = {};
|
|
482
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters";
|
|
483
|
+
const query = {
|
|
484
|
+
...(input.ClusterNameFilter !== undefined && { clusterNameFilter: input.ClusterNameFilter }),
|
|
485
|
+
...(input.ClusterTypeFilter !== undefined && { clusterTypeFilter: input.ClusterTypeFilter }),
|
|
486
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
487
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
488
|
+
};
|
|
489
|
+
let body;
|
|
490
|
+
return new protocol_http_1.HttpRequest({
|
|
491
|
+
protocol,
|
|
492
|
+
hostname,
|
|
493
|
+
port,
|
|
494
|
+
method: "GET",
|
|
495
|
+
headers,
|
|
496
|
+
path: resolvedPath,
|
|
497
|
+
query,
|
|
498
|
+
body,
|
|
499
|
+
});
|
|
500
|
+
};
|
|
501
|
+
exports.serializeAws_restJson1ListClustersV2Command = serializeAws_restJson1ListClustersV2Command;
|
|
424
502
|
const serializeAws_restJson1ListConfigurationRevisionsCommand = async (input, context) => {
|
|
425
503
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
426
504
|
const headers = {};
|
|
@@ -887,6 +965,42 @@ const serializeAws_restJson1UpdateConfigurationCommand = async (input, context)
|
|
|
887
965
|
});
|
|
888
966
|
};
|
|
889
967
|
exports.serializeAws_restJson1UpdateConfigurationCommand = serializeAws_restJson1UpdateConfigurationCommand;
|
|
968
|
+
const serializeAws_restJson1UpdateConnectivityCommand = async (input, context) => {
|
|
969
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
970
|
+
const headers = {
|
|
971
|
+
"content-type": "application/json",
|
|
972
|
+
};
|
|
973
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/connectivity";
|
|
974
|
+
if (input.ClusterArn !== undefined) {
|
|
975
|
+
const labelValue = input.ClusterArn;
|
|
976
|
+
if (labelValue.length <= 0) {
|
|
977
|
+
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
978
|
+
}
|
|
979
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
980
|
+
}
|
|
981
|
+
else {
|
|
982
|
+
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
983
|
+
}
|
|
984
|
+
let body;
|
|
985
|
+
body = JSON.stringify({
|
|
986
|
+
...(input.ConnectivityInfo !== undefined &&
|
|
987
|
+
input.ConnectivityInfo !== null && {
|
|
988
|
+
connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
|
|
989
|
+
}),
|
|
990
|
+
...(input.CurrentVersion !== undefined &&
|
|
991
|
+
input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
|
|
992
|
+
});
|
|
993
|
+
return new protocol_http_1.HttpRequest({
|
|
994
|
+
protocol,
|
|
995
|
+
hostname,
|
|
996
|
+
port,
|
|
997
|
+
method: "PUT",
|
|
998
|
+
headers,
|
|
999
|
+
path: resolvedPath,
|
|
1000
|
+
body,
|
|
1001
|
+
});
|
|
1002
|
+
};
|
|
1003
|
+
exports.serializeAws_restJson1UpdateConnectivityCommand = serializeAws_restJson1UpdateConnectivityCommand;
|
|
890
1004
|
const serializeAws_restJson1UpdateMonitoringCommand = async (input, context) => {
|
|
891
1005
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
892
1006
|
const headers = {
|
|
@@ -1271,6 +1385,114 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
|
|
|
1271
1385
|
delete response.Message;
|
|
1272
1386
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1273
1387
|
};
|
|
1388
|
+
const deserializeAws_restJson1CreateClusterV2Command = async (output, context) => {
|
|
1389
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1390
|
+
return deserializeAws_restJson1CreateClusterV2CommandError(output, context);
|
|
1391
|
+
}
|
|
1392
|
+
const contents = {
|
|
1393
|
+
$metadata: deserializeMetadata(output),
|
|
1394
|
+
ClusterArn: undefined,
|
|
1395
|
+
ClusterName: undefined,
|
|
1396
|
+
ClusterType: undefined,
|
|
1397
|
+
State: undefined,
|
|
1398
|
+
};
|
|
1399
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1400
|
+
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
1401
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
1402
|
+
}
|
|
1403
|
+
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
1404
|
+
contents.ClusterName = smithy_client_1.expectString(data.clusterName);
|
|
1405
|
+
}
|
|
1406
|
+
if (data.clusterType !== undefined && data.clusterType !== null) {
|
|
1407
|
+
contents.ClusterType = smithy_client_1.expectString(data.clusterType);
|
|
1408
|
+
}
|
|
1409
|
+
if (data.state !== undefined && data.state !== null) {
|
|
1410
|
+
contents.State = smithy_client_1.expectString(data.state);
|
|
1411
|
+
}
|
|
1412
|
+
return Promise.resolve(contents);
|
|
1413
|
+
};
|
|
1414
|
+
exports.deserializeAws_restJson1CreateClusterV2Command = deserializeAws_restJson1CreateClusterV2Command;
|
|
1415
|
+
const deserializeAws_restJson1CreateClusterV2CommandError = async (output, context) => {
|
|
1416
|
+
const parsedOutput = {
|
|
1417
|
+
...output,
|
|
1418
|
+
body: await parseBody(output.body, context),
|
|
1419
|
+
};
|
|
1420
|
+
let response;
|
|
1421
|
+
let errorCode = "UnknownError";
|
|
1422
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
|
+
switch (errorCode) {
|
|
1424
|
+
case "BadRequestException":
|
|
1425
|
+
case "com.amazonaws.kafka#BadRequestException":
|
|
1426
|
+
response = {
|
|
1427
|
+
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1428
|
+
name: errorCode,
|
|
1429
|
+
$metadata: deserializeMetadata(output),
|
|
1430
|
+
};
|
|
1431
|
+
break;
|
|
1432
|
+
case "ConflictException":
|
|
1433
|
+
case "com.amazonaws.kafka#ConflictException":
|
|
1434
|
+
response = {
|
|
1435
|
+
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1436
|
+
name: errorCode,
|
|
1437
|
+
$metadata: deserializeMetadata(output),
|
|
1438
|
+
};
|
|
1439
|
+
break;
|
|
1440
|
+
case "ForbiddenException":
|
|
1441
|
+
case "com.amazonaws.kafka#ForbiddenException":
|
|
1442
|
+
response = {
|
|
1443
|
+
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1444
|
+
name: errorCode,
|
|
1445
|
+
$metadata: deserializeMetadata(output),
|
|
1446
|
+
};
|
|
1447
|
+
break;
|
|
1448
|
+
case "InternalServerErrorException":
|
|
1449
|
+
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1450
|
+
response = {
|
|
1451
|
+
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1452
|
+
name: errorCode,
|
|
1453
|
+
$metadata: deserializeMetadata(output),
|
|
1454
|
+
};
|
|
1455
|
+
break;
|
|
1456
|
+
case "ServiceUnavailableException":
|
|
1457
|
+
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1458
|
+
response = {
|
|
1459
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1460
|
+
name: errorCode,
|
|
1461
|
+
$metadata: deserializeMetadata(output),
|
|
1462
|
+
};
|
|
1463
|
+
break;
|
|
1464
|
+
case "TooManyRequestsException":
|
|
1465
|
+
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1466
|
+
response = {
|
|
1467
|
+
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1468
|
+
name: errorCode,
|
|
1469
|
+
$metadata: deserializeMetadata(output),
|
|
1470
|
+
};
|
|
1471
|
+
break;
|
|
1472
|
+
case "UnauthorizedException":
|
|
1473
|
+
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1474
|
+
response = {
|
|
1475
|
+
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1476
|
+
name: errorCode,
|
|
1477
|
+
$metadata: deserializeMetadata(output),
|
|
1478
|
+
};
|
|
1479
|
+
break;
|
|
1480
|
+
default:
|
|
1481
|
+
const parsedBody = parsedOutput.body;
|
|
1482
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1483
|
+
response = {
|
|
1484
|
+
...parsedBody,
|
|
1485
|
+
name: `${errorCode}`,
|
|
1486
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1487
|
+
$fault: "client",
|
|
1488
|
+
$metadata: deserializeMetadata(output),
|
|
1489
|
+
};
|
|
1490
|
+
}
|
|
1491
|
+
const message = response.message || response.Message || errorCode;
|
|
1492
|
+
response.message = message;
|
|
1493
|
+
delete response.Message;
|
|
1494
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1495
|
+
};
|
|
1274
1496
|
const deserializeAws_restJson1CreateConfigurationCommand = async (output, context) => {
|
|
1275
1497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1276
1498
|
return deserializeAws_restJson1CreateConfigurationCommandError(output, context);
|
|
@@ -1695,46 +1917,22 @@ const deserializeAws_restJson1DescribeClusterOperationCommandError = async (outp
|
|
|
1695
1917
|
delete response.Message;
|
|
1696
1918
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1697
1919
|
};
|
|
1698
|
-
const
|
|
1920
|
+
const deserializeAws_restJson1DescribeClusterV2Command = async (output, context) => {
|
|
1699
1921
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1700
|
-
return
|
|
1922
|
+
return deserializeAws_restJson1DescribeClusterV2CommandError(output, context);
|
|
1701
1923
|
}
|
|
1702
1924
|
const contents = {
|
|
1703
1925
|
$metadata: deserializeMetadata(output),
|
|
1704
|
-
|
|
1705
|
-
CreationTime: undefined,
|
|
1706
|
-
Description: undefined,
|
|
1707
|
-
KafkaVersions: undefined,
|
|
1708
|
-
LatestRevision: undefined,
|
|
1709
|
-
Name: undefined,
|
|
1710
|
-
State: undefined,
|
|
1926
|
+
ClusterInfo: undefined,
|
|
1711
1927
|
};
|
|
1712
1928
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1713
|
-
if (data.
|
|
1714
|
-
contents.
|
|
1715
|
-
}
|
|
1716
|
-
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
1717
|
-
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
|
|
1718
|
-
}
|
|
1719
|
-
if (data.description !== undefined && data.description !== null) {
|
|
1720
|
-
contents.Description = smithy_client_1.expectString(data.description);
|
|
1721
|
-
}
|
|
1722
|
-
if (data.kafkaVersions !== undefined && data.kafkaVersions !== null) {
|
|
1723
|
-
contents.KafkaVersions = deserializeAws_restJson1__listOf__string(data.kafkaVersions, context);
|
|
1724
|
-
}
|
|
1725
|
-
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
1726
|
-
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
1727
|
-
}
|
|
1728
|
-
if (data.name !== undefined && data.name !== null) {
|
|
1729
|
-
contents.Name = smithy_client_1.expectString(data.name);
|
|
1730
|
-
}
|
|
1731
|
-
if (data.state !== undefined && data.state !== null) {
|
|
1732
|
-
contents.State = smithy_client_1.expectString(data.state);
|
|
1929
|
+
if (data.clusterInfo !== undefined && data.clusterInfo !== null) {
|
|
1930
|
+
contents.ClusterInfo = deserializeAws_restJson1Cluster(data.clusterInfo, context);
|
|
1733
1931
|
}
|
|
1734
1932
|
return Promise.resolve(contents);
|
|
1735
1933
|
};
|
|
1736
|
-
exports.
|
|
1737
|
-
const
|
|
1934
|
+
exports.deserializeAws_restJson1DescribeClusterV2Command = deserializeAws_restJson1DescribeClusterV2Command;
|
|
1935
|
+
const deserializeAws_restJson1DescribeClusterV2CommandError = async (output, context) => {
|
|
1738
1936
|
const parsedOutput = {
|
|
1739
1937
|
...output,
|
|
1740
1938
|
body: await parseBody(output.body, context),
|
|
@@ -1775,14 +1973,6 @@ const deserializeAws_restJson1DescribeConfigurationCommandError = async (output,
|
|
|
1775
1973
|
$metadata: deserializeMetadata(output),
|
|
1776
1974
|
};
|
|
1777
1975
|
break;
|
|
1778
|
-
case "ServiceUnavailableException":
|
|
1779
|
-
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1780
|
-
response = {
|
|
1781
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1782
|
-
name: errorCode,
|
|
1783
|
-
$metadata: deserializeMetadata(output),
|
|
1784
|
-
};
|
|
1785
|
-
break;
|
|
1786
1976
|
case "UnauthorizedException":
|
|
1787
1977
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1788
1978
|
response = {
|
|
@@ -1807,17 +1997,19 @@ const deserializeAws_restJson1DescribeConfigurationCommandError = async (output,
|
|
|
1807
1997
|
delete response.Message;
|
|
1808
1998
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1809
1999
|
};
|
|
1810
|
-
const
|
|
2000
|
+
const deserializeAws_restJson1DescribeConfigurationCommand = async (output, context) => {
|
|
1811
2001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1812
|
-
return
|
|
2002
|
+
return deserializeAws_restJson1DescribeConfigurationCommandError(output, context);
|
|
1813
2003
|
}
|
|
1814
2004
|
const contents = {
|
|
1815
2005
|
$metadata: deserializeMetadata(output),
|
|
1816
2006
|
Arn: undefined,
|
|
1817
2007
|
CreationTime: undefined,
|
|
1818
2008
|
Description: undefined,
|
|
1819
|
-
|
|
1820
|
-
|
|
2009
|
+
KafkaVersions: undefined,
|
|
2010
|
+
LatestRevision: undefined,
|
|
2011
|
+
Name: undefined,
|
|
2012
|
+
State: undefined,
|
|
1821
2013
|
};
|
|
1822
2014
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1823
2015
|
if (data.arn !== undefined && data.arn !== null) {
|
|
@@ -1829,15 +2021,125 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommand = async (outp
|
|
|
1829
2021
|
if (data.description !== undefined && data.description !== null) {
|
|
1830
2022
|
contents.Description = smithy_client_1.expectString(data.description);
|
|
1831
2023
|
}
|
|
1832
|
-
if (data.
|
|
1833
|
-
contents.
|
|
2024
|
+
if (data.kafkaVersions !== undefined && data.kafkaVersions !== null) {
|
|
2025
|
+
contents.KafkaVersions = deserializeAws_restJson1__listOf__string(data.kafkaVersions, context);
|
|
1834
2026
|
}
|
|
1835
|
-
if (data.
|
|
1836
|
-
contents.
|
|
2027
|
+
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
2028
|
+
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
1837
2029
|
}
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
2030
|
+
if (data.name !== undefined && data.name !== null) {
|
|
2031
|
+
contents.Name = smithy_client_1.expectString(data.name);
|
|
2032
|
+
}
|
|
2033
|
+
if (data.state !== undefined && data.state !== null) {
|
|
2034
|
+
contents.State = smithy_client_1.expectString(data.state);
|
|
2035
|
+
}
|
|
2036
|
+
return Promise.resolve(contents);
|
|
2037
|
+
};
|
|
2038
|
+
exports.deserializeAws_restJson1DescribeConfigurationCommand = deserializeAws_restJson1DescribeConfigurationCommand;
|
|
2039
|
+
const deserializeAws_restJson1DescribeConfigurationCommandError = async (output, context) => {
|
|
2040
|
+
const parsedOutput = {
|
|
2041
|
+
...output,
|
|
2042
|
+
body: await parseBody(output.body, context),
|
|
2043
|
+
};
|
|
2044
|
+
let response;
|
|
2045
|
+
let errorCode = "UnknownError";
|
|
2046
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2047
|
+
switch (errorCode) {
|
|
2048
|
+
case "BadRequestException":
|
|
2049
|
+
case "com.amazonaws.kafka#BadRequestException":
|
|
2050
|
+
response = {
|
|
2051
|
+
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2052
|
+
name: errorCode,
|
|
2053
|
+
$metadata: deserializeMetadata(output),
|
|
2054
|
+
};
|
|
2055
|
+
break;
|
|
2056
|
+
case "ForbiddenException":
|
|
2057
|
+
case "com.amazonaws.kafka#ForbiddenException":
|
|
2058
|
+
response = {
|
|
2059
|
+
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2060
|
+
name: errorCode,
|
|
2061
|
+
$metadata: deserializeMetadata(output),
|
|
2062
|
+
};
|
|
2063
|
+
break;
|
|
2064
|
+
case "InternalServerErrorException":
|
|
2065
|
+
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2066
|
+
response = {
|
|
2067
|
+
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2068
|
+
name: errorCode,
|
|
2069
|
+
$metadata: deserializeMetadata(output),
|
|
2070
|
+
};
|
|
2071
|
+
break;
|
|
2072
|
+
case "NotFoundException":
|
|
2073
|
+
case "com.amazonaws.kafka#NotFoundException":
|
|
2074
|
+
response = {
|
|
2075
|
+
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
2076
|
+
name: errorCode,
|
|
2077
|
+
$metadata: deserializeMetadata(output),
|
|
2078
|
+
};
|
|
2079
|
+
break;
|
|
2080
|
+
case "ServiceUnavailableException":
|
|
2081
|
+
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2082
|
+
response = {
|
|
2083
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2084
|
+
name: errorCode,
|
|
2085
|
+
$metadata: deserializeMetadata(output),
|
|
2086
|
+
};
|
|
2087
|
+
break;
|
|
2088
|
+
case "UnauthorizedException":
|
|
2089
|
+
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2090
|
+
response = {
|
|
2091
|
+
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
2092
|
+
name: errorCode,
|
|
2093
|
+
$metadata: deserializeMetadata(output),
|
|
2094
|
+
};
|
|
2095
|
+
break;
|
|
2096
|
+
default:
|
|
2097
|
+
const parsedBody = parsedOutput.body;
|
|
2098
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2099
|
+
response = {
|
|
2100
|
+
...parsedBody,
|
|
2101
|
+
name: `${errorCode}`,
|
|
2102
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2103
|
+
$fault: "client",
|
|
2104
|
+
$metadata: deserializeMetadata(output),
|
|
2105
|
+
};
|
|
2106
|
+
}
|
|
2107
|
+
const message = response.message || response.Message || errorCode;
|
|
2108
|
+
response.message = message;
|
|
2109
|
+
delete response.Message;
|
|
2110
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2111
|
+
};
|
|
2112
|
+
const deserializeAws_restJson1DescribeConfigurationRevisionCommand = async (output, context) => {
|
|
2113
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2114
|
+
return deserializeAws_restJson1DescribeConfigurationRevisionCommandError(output, context);
|
|
2115
|
+
}
|
|
2116
|
+
const contents = {
|
|
2117
|
+
$metadata: deserializeMetadata(output),
|
|
2118
|
+
Arn: undefined,
|
|
2119
|
+
CreationTime: undefined,
|
|
2120
|
+
Description: undefined,
|
|
2121
|
+
Revision: undefined,
|
|
2122
|
+
ServerProperties: undefined,
|
|
2123
|
+
};
|
|
2124
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2125
|
+
if (data.arn !== undefined && data.arn !== null) {
|
|
2126
|
+
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
2127
|
+
}
|
|
2128
|
+
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
2129
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
|
|
2130
|
+
}
|
|
2131
|
+
if (data.description !== undefined && data.description !== null) {
|
|
2132
|
+
contents.Description = smithy_client_1.expectString(data.description);
|
|
2133
|
+
}
|
|
2134
|
+
if (data.revision !== undefined && data.revision !== null) {
|
|
2135
|
+
contents.Revision = smithy_client_1.expectLong(data.revision);
|
|
2136
|
+
}
|
|
2137
|
+
if (data.serverProperties !== undefined && data.serverProperties !== null) {
|
|
2138
|
+
contents.ServerProperties = context.base64Decoder(data.serverProperties);
|
|
2139
|
+
}
|
|
2140
|
+
return Promise.resolve(contents);
|
|
2141
|
+
};
|
|
2142
|
+
exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = deserializeAws_restJson1DescribeConfigurationRevisionCommand;
|
|
1841
2143
|
const deserializeAws_restJson1DescribeConfigurationRevisionCommandError = async (output, context) => {
|
|
1842
2144
|
const parsedOutput = {
|
|
1843
2145
|
...output,
|
|
@@ -1918,6 +2220,9 @@ const deserializeAws_restJson1GetBootstrapBrokersCommand = async (output, contex
|
|
|
1918
2220
|
const contents = {
|
|
1919
2221
|
$metadata: deserializeMetadata(output),
|
|
1920
2222
|
BootstrapBrokerString: undefined,
|
|
2223
|
+
BootstrapBrokerStringPublicSaslIam: undefined,
|
|
2224
|
+
BootstrapBrokerStringPublicSaslScram: undefined,
|
|
2225
|
+
BootstrapBrokerStringPublicTls: undefined,
|
|
1921
2226
|
BootstrapBrokerStringSaslIam: undefined,
|
|
1922
2227
|
BootstrapBrokerStringSaslScram: undefined,
|
|
1923
2228
|
BootstrapBrokerStringTls: undefined,
|
|
@@ -1926,6 +2231,15 @@ const deserializeAws_restJson1GetBootstrapBrokersCommand = async (output, contex
|
|
|
1926
2231
|
if (data.bootstrapBrokerString !== undefined && data.bootstrapBrokerString !== null) {
|
|
1927
2232
|
contents.BootstrapBrokerString = smithy_client_1.expectString(data.bootstrapBrokerString);
|
|
1928
2233
|
}
|
|
2234
|
+
if (data.bootstrapBrokerStringPublicSaslIam !== undefined && data.bootstrapBrokerStringPublicSaslIam !== null) {
|
|
2235
|
+
contents.BootstrapBrokerStringPublicSaslIam = smithy_client_1.expectString(data.bootstrapBrokerStringPublicSaslIam);
|
|
2236
|
+
}
|
|
2237
|
+
if (data.bootstrapBrokerStringPublicSaslScram !== undefined && data.bootstrapBrokerStringPublicSaslScram !== null) {
|
|
2238
|
+
contents.BootstrapBrokerStringPublicSaslScram = smithy_client_1.expectString(data.bootstrapBrokerStringPublicSaslScram);
|
|
2239
|
+
}
|
|
2240
|
+
if (data.bootstrapBrokerStringPublicTls !== undefined && data.bootstrapBrokerStringPublicTls !== null) {
|
|
2241
|
+
contents.BootstrapBrokerStringPublicTls = smithy_client_1.expectString(data.bootstrapBrokerStringPublicTls);
|
|
2242
|
+
}
|
|
1929
2243
|
if (data.bootstrapBrokerStringSaslIam !== undefined && data.bootstrapBrokerStringSaslIam !== null) {
|
|
1930
2244
|
contents.BootstrapBrokerStringSaslIam = smithy_client_1.expectString(data.bootstrapBrokerStringSaslIam);
|
|
1931
2245
|
}
|
|
@@ -2251,6 +2565,82 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
|
|
|
2251
2565
|
delete response.Message;
|
|
2252
2566
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2253
2567
|
};
|
|
2568
|
+
const deserializeAws_restJson1ListClustersV2Command = async (output, context) => {
|
|
2569
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2570
|
+
return deserializeAws_restJson1ListClustersV2CommandError(output, context);
|
|
2571
|
+
}
|
|
2572
|
+
const contents = {
|
|
2573
|
+
$metadata: deserializeMetadata(output),
|
|
2574
|
+
ClusterInfoList: undefined,
|
|
2575
|
+
NextToken: undefined,
|
|
2576
|
+
};
|
|
2577
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2578
|
+
if (data.clusterInfoList !== undefined && data.clusterInfoList !== null) {
|
|
2579
|
+
contents.ClusterInfoList = deserializeAws_restJson1__listOfCluster(data.clusterInfoList, context);
|
|
2580
|
+
}
|
|
2581
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2582
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2583
|
+
}
|
|
2584
|
+
return Promise.resolve(contents);
|
|
2585
|
+
};
|
|
2586
|
+
exports.deserializeAws_restJson1ListClustersV2Command = deserializeAws_restJson1ListClustersV2Command;
|
|
2587
|
+
const deserializeAws_restJson1ListClustersV2CommandError = async (output, context) => {
|
|
2588
|
+
const parsedOutput = {
|
|
2589
|
+
...output,
|
|
2590
|
+
body: await parseBody(output.body, context),
|
|
2591
|
+
};
|
|
2592
|
+
let response;
|
|
2593
|
+
let errorCode = "UnknownError";
|
|
2594
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2595
|
+
switch (errorCode) {
|
|
2596
|
+
case "BadRequestException":
|
|
2597
|
+
case "com.amazonaws.kafka#BadRequestException":
|
|
2598
|
+
response = {
|
|
2599
|
+
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2600
|
+
name: errorCode,
|
|
2601
|
+
$metadata: deserializeMetadata(output),
|
|
2602
|
+
};
|
|
2603
|
+
break;
|
|
2604
|
+
case "ForbiddenException":
|
|
2605
|
+
case "com.amazonaws.kafka#ForbiddenException":
|
|
2606
|
+
response = {
|
|
2607
|
+
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
2608
|
+
name: errorCode,
|
|
2609
|
+
$metadata: deserializeMetadata(output),
|
|
2610
|
+
};
|
|
2611
|
+
break;
|
|
2612
|
+
case "InternalServerErrorException":
|
|
2613
|
+
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2614
|
+
response = {
|
|
2615
|
+
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
2616
|
+
name: errorCode,
|
|
2617
|
+
$metadata: deserializeMetadata(output),
|
|
2618
|
+
};
|
|
2619
|
+
break;
|
|
2620
|
+
case "UnauthorizedException":
|
|
2621
|
+
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2622
|
+
response = {
|
|
2623
|
+
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
2624
|
+
name: errorCode,
|
|
2625
|
+
$metadata: deserializeMetadata(output),
|
|
2626
|
+
};
|
|
2627
|
+
break;
|
|
2628
|
+
default:
|
|
2629
|
+
const parsedBody = parsedOutput.body;
|
|
2630
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2631
|
+
response = {
|
|
2632
|
+
...parsedBody,
|
|
2633
|
+
name: `${errorCode}`,
|
|
2634
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2635
|
+
$fault: "client",
|
|
2636
|
+
$metadata: deserializeMetadata(output),
|
|
2637
|
+
};
|
|
2638
|
+
}
|
|
2639
|
+
const message = response.message || response.Message || errorCode;
|
|
2640
|
+
response.message = message;
|
|
2641
|
+
delete response.Message;
|
|
2642
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2643
|
+
};
|
|
2254
2644
|
const deserializeAws_restJson1ListConfigurationRevisionsCommand = async (output, context) => {
|
|
2255
2645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2256
2646
|
return deserializeAws_restJson1ListConfigurationRevisionsCommandError(output, context);
|
|
@@ -3515,6 +3905,98 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
|
|
|
3515
3905
|
delete response.Message;
|
|
3516
3906
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3517
3907
|
};
|
|
3908
|
+
const deserializeAws_restJson1UpdateConnectivityCommand = async (output, context) => {
|
|
3909
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3910
|
+
return deserializeAws_restJson1UpdateConnectivityCommandError(output, context);
|
|
3911
|
+
}
|
|
3912
|
+
const contents = {
|
|
3913
|
+
$metadata: deserializeMetadata(output),
|
|
3914
|
+
ClusterArn: undefined,
|
|
3915
|
+
ClusterOperationArn: undefined,
|
|
3916
|
+
};
|
|
3917
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3918
|
+
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
3919
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
3920
|
+
}
|
|
3921
|
+
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
3922
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
3923
|
+
}
|
|
3924
|
+
return Promise.resolve(contents);
|
|
3925
|
+
};
|
|
3926
|
+
exports.deserializeAws_restJson1UpdateConnectivityCommand = deserializeAws_restJson1UpdateConnectivityCommand;
|
|
3927
|
+
const deserializeAws_restJson1UpdateConnectivityCommandError = async (output, context) => {
|
|
3928
|
+
const parsedOutput = {
|
|
3929
|
+
...output,
|
|
3930
|
+
body: await parseBody(output.body, context),
|
|
3931
|
+
};
|
|
3932
|
+
let response;
|
|
3933
|
+
let errorCode = "UnknownError";
|
|
3934
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3935
|
+
switch (errorCode) {
|
|
3936
|
+
case "BadRequestException":
|
|
3937
|
+
case "com.amazonaws.kafka#BadRequestException":
|
|
3938
|
+
response = {
|
|
3939
|
+
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3940
|
+
name: errorCode,
|
|
3941
|
+
$metadata: deserializeMetadata(output),
|
|
3942
|
+
};
|
|
3943
|
+
break;
|
|
3944
|
+
case "ForbiddenException":
|
|
3945
|
+
case "com.amazonaws.kafka#ForbiddenException":
|
|
3946
|
+
response = {
|
|
3947
|
+
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
3948
|
+
name: errorCode,
|
|
3949
|
+
$metadata: deserializeMetadata(output),
|
|
3950
|
+
};
|
|
3951
|
+
break;
|
|
3952
|
+
case "InternalServerErrorException":
|
|
3953
|
+
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3954
|
+
response = {
|
|
3955
|
+
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3956
|
+
name: errorCode,
|
|
3957
|
+
$metadata: deserializeMetadata(output),
|
|
3958
|
+
};
|
|
3959
|
+
break;
|
|
3960
|
+
case "NotFoundException":
|
|
3961
|
+
case "com.amazonaws.kafka#NotFoundException":
|
|
3962
|
+
response = {
|
|
3963
|
+
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3964
|
+
name: errorCode,
|
|
3965
|
+
$metadata: deserializeMetadata(output),
|
|
3966
|
+
};
|
|
3967
|
+
break;
|
|
3968
|
+
case "ServiceUnavailableException":
|
|
3969
|
+
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3970
|
+
response = {
|
|
3971
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3972
|
+
name: errorCode,
|
|
3973
|
+
$metadata: deserializeMetadata(output),
|
|
3974
|
+
};
|
|
3975
|
+
break;
|
|
3976
|
+
case "UnauthorizedException":
|
|
3977
|
+
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3978
|
+
response = {
|
|
3979
|
+
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
3980
|
+
name: errorCode,
|
|
3981
|
+
$metadata: deserializeMetadata(output),
|
|
3982
|
+
};
|
|
3983
|
+
break;
|
|
3984
|
+
default:
|
|
3985
|
+
const parsedBody = parsedOutput.body;
|
|
3986
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3987
|
+
response = {
|
|
3988
|
+
...parsedBody,
|
|
3989
|
+
name: `${errorCode}`,
|
|
3990
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3991
|
+
$fault: "client",
|
|
3992
|
+
$metadata: deserializeMetadata(output),
|
|
3993
|
+
};
|
|
3994
|
+
}
|
|
3995
|
+
const message = response.message || response.Message || errorCode;
|
|
3996
|
+
response.message = message;
|
|
3997
|
+
delete response.Message;
|
|
3998
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3999
|
+
};
|
|
3518
4000
|
const deserializeAws_restJson1UpdateMonitoringCommand = async (output, context) => {
|
|
3519
4001
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3520
4002
|
return deserializeAws_restJson1UpdateMonitoringCommandError(output, context);
|
|
@@ -3855,6 +4337,16 @@ const serializeAws_restJson1__listOfBrokerEBSVolumeInfo = (input, context) => {
|
|
|
3855
4337
|
return serializeAws_restJson1BrokerEBSVolumeInfo(entry, context);
|
|
3856
4338
|
});
|
|
3857
4339
|
};
|
|
4340
|
+
const serializeAws_restJson1__listOfVpcConfig = (input, context) => {
|
|
4341
|
+
return input
|
|
4342
|
+
.filter((e) => e != null)
|
|
4343
|
+
.map((entry) => {
|
|
4344
|
+
if (entry === null) {
|
|
4345
|
+
return null;
|
|
4346
|
+
}
|
|
4347
|
+
return serializeAws_restJson1VpcConfig(entry, context);
|
|
4348
|
+
});
|
|
4349
|
+
};
|
|
3858
4350
|
const serializeAws_restJson1__mapOf__string = (input, context) => {
|
|
3859
4351
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3860
4352
|
if (value === null) {
|
|
@@ -3892,6 +4384,10 @@ const serializeAws_restJson1BrokerNodeGroupInfo = (input, context) => {
|
|
|
3892
4384
|
input.ClientSubnets !== null && {
|
|
3893
4385
|
clientSubnets: serializeAws_restJson1__listOf__string(input.ClientSubnets, context),
|
|
3894
4386
|
}),
|
|
4387
|
+
...(input.ConnectivityInfo !== undefined &&
|
|
4388
|
+
input.ConnectivityInfo !== null && {
|
|
4389
|
+
connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
|
|
4390
|
+
}),
|
|
3895
4391
|
...(input.InstanceType !== undefined && input.InstanceType !== null && { instanceType: input.InstanceType }),
|
|
3896
4392
|
...(input.SecurityGroups !== undefined &&
|
|
3897
4393
|
input.SecurityGroups !== null && {
|
|
@@ -3923,6 +4419,12 @@ const serializeAws_restJson1ConfigurationInfo = (input, context) => {
|
|
|
3923
4419
|
...(input.Revision !== undefined && input.Revision !== null && { revision: input.Revision }),
|
|
3924
4420
|
};
|
|
3925
4421
|
};
|
|
4422
|
+
const serializeAws_restJson1ConnectivityInfo = (input, context) => {
|
|
4423
|
+
return {
|
|
4424
|
+
...(input.PublicAccess !== undefined &&
|
|
4425
|
+
input.PublicAccess !== null && { publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context) }),
|
|
4426
|
+
};
|
|
4427
|
+
};
|
|
3926
4428
|
const serializeAws_restJson1EBSStorageInfo = (input, context) => {
|
|
3927
4429
|
return {
|
|
3928
4430
|
...(input.VolumeSize !== undefined && input.VolumeSize !== null && { volumeSize: input.VolumeSize }),
|
|
@@ -3998,6 +4500,42 @@ const serializeAws_restJson1PrometheusInfo = (input, context) => {
|
|
|
3998
4500
|
}),
|
|
3999
4501
|
};
|
|
4000
4502
|
};
|
|
4503
|
+
const serializeAws_restJson1ProvisionedRequest = (input, context) => {
|
|
4504
|
+
return {
|
|
4505
|
+
...(input.BrokerNodeGroupInfo !== undefined &&
|
|
4506
|
+
input.BrokerNodeGroupInfo !== null && {
|
|
4507
|
+
brokerNodeGroupInfo: serializeAws_restJson1BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
|
|
4508
|
+
}),
|
|
4509
|
+
...(input.ClientAuthentication !== undefined &&
|
|
4510
|
+
input.ClientAuthentication !== null && {
|
|
4511
|
+
clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
|
|
4512
|
+
}),
|
|
4513
|
+
...(input.ConfigurationInfo !== undefined &&
|
|
4514
|
+
input.ConfigurationInfo !== null && {
|
|
4515
|
+
configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
|
|
4516
|
+
}),
|
|
4517
|
+
...(input.EncryptionInfo !== undefined &&
|
|
4518
|
+
input.EncryptionInfo !== null && {
|
|
4519
|
+
encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
|
|
4520
|
+
}),
|
|
4521
|
+
...(input.EnhancedMonitoring !== undefined &&
|
|
4522
|
+
input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring }),
|
|
4523
|
+
...(input.KafkaVersion !== undefined && input.KafkaVersion !== null && { kafkaVersion: input.KafkaVersion }),
|
|
4524
|
+
...(input.LoggingInfo !== undefined &&
|
|
4525
|
+
input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) }),
|
|
4526
|
+
...(input.NumberOfBrokerNodes !== undefined &&
|
|
4527
|
+
input.NumberOfBrokerNodes !== null && { numberOfBrokerNodes: input.NumberOfBrokerNodes }),
|
|
4528
|
+
...(input.OpenMonitoring !== undefined &&
|
|
4529
|
+
input.OpenMonitoring !== null && {
|
|
4530
|
+
openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
|
|
4531
|
+
}),
|
|
4532
|
+
};
|
|
4533
|
+
};
|
|
4534
|
+
const serializeAws_restJson1PublicAccess = (input, context) => {
|
|
4535
|
+
return {
|
|
4536
|
+
...(input.Type !== undefined && input.Type !== null && { type: input.Type }),
|
|
4537
|
+
};
|
|
4538
|
+
};
|
|
4001
4539
|
const serializeAws_restJson1S3 = (input, context) => {
|
|
4002
4540
|
return {
|
|
4003
4541
|
...(input.Bucket !== undefined && input.Bucket !== null && { bucket: input.Bucket }),
|
|
@@ -4017,6 +4555,27 @@ const serializeAws_restJson1Scram = (input, context) => {
|
|
|
4017
4555
|
...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
|
|
4018
4556
|
};
|
|
4019
4557
|
};
|
|
4558
|
+
const serializeAws_restJson1ServerlessClientAuthentication = (input, context) => {
|
|
4559
|
+
return {
|
|
4560
|
+
...(input.Sasl !== undefined &&
|
|
4561
|
+
input.Sasl !== null && { sasl: serializeAws_restJson1ServerlessSasl(input.Sasl, context) }),
|
|
4562
|
+
};
|
|
4563
|
+
};
|
|
4564
|
+
const serializeAws_restJson1ServerlessRequest = (input, context) => {
|
|
4565
|
+
return {
|
|
4566
|
+
...(input.ClientAuthentication !== undefined &&
|
|
4567
|
+
input.ClientAuthentication !== null && {
|
|
4568
|
+
clientAuthentication: serializeAws_restJson1ServerlessClientAuthentication(input.ClientAuthentication, context),
|
|
4569
|
+
}),
|
|
4570
|
+
...(input.VpcConfigs !== undefined &&
|
|
4571
|
+
input.VpcConfigs !== null && { vpcConfigs: serializeAws_restJson1__listOfVpcConfig(input.VpcConfigs, context) }),
|
|
4572
|
+
};
|
|
4573
|
+
};
|
|
4574
|
+
const serializeAws_restJson1ServerlessSasl = (input, context) => {
|
|
4575
|
+
return {
|
|
4576
|
+
...(input.Iam !== undefined && input.Iam !== null && { iam: serializeAws_restJson1Iam(input.Iam, context) }),
|
|
4577
|
+
};
|
|
4578
|
+
};
|
|
4020
4579
|
const serializeAws_restJson1StorageInfo = (input, context) => {
|
|
4021
4580
|
return {
|
|
4022
4581
|
...(input.EbsStorageInfo !== undefined &&
|
|
@@ -4039,6 +4598,16 @@ const serializeAws_restJson1Unauthenticated = (input, context) => {
|
|
|
4039
4598
|
...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
|
|
4040
4599
|
};
|
|
4041
4600
|
};
|
|
4601
|
+
const serializeAws_restJson1VpcConfig = (input, context) => {
|
|
4602
|
+
return {
|
|
4603
|
+
...(input.SecurityGroupIds !== undefined &&
|
|
4604
|
+
input.SecurityGroupIds !== null && {
|
|
4605
|
+
securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
|
|
4606
|
+
}),
|
|
4607
|
+
...(input.SubnetIds !== undefined &&
|
|
4608
|
+
input.SubnetIds !== null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }),
|
|
4609
|
+
};
|
|
4610
|
+
};
|
|
4042
4611
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
4043
4612
|
return (output || [])
|
|
4044
4613
|
.filter((e) => e != null)
|
|
@@ -4059,6 +4628,16 @@ const deserializeAws_restJson1__listOfBrokerEBSVolumeInfo = (output, context) =>
|
|
|
4059
4628
|
return deserializeAws_restJson1BrokerEBSVolumeInfo(entry, context);
|
|
4060
4629
|
});
|
|
4061
4630
|
};
|
|
4631
|
+
const deserializeAws_restJson1__listOfCluster = (output, context) => {
|
|
4632
|
+
return (output || [])
|
|
4633
|
+
.filter((e) => e != null)
|
|
4634
|
+
.map((entry) => {
|
|
4635
|
+
if (entry === null) {
|
|
4636
|
+
return null;
|
|
4637
|
+
}
|
|
4638
|
+
return deserializeAws_restJson1Cluster(entry, context);
|
|
4639
|
+
});
|
|
4640
|
+
};
|
|
4062
4641
|
const deserializeAws_restJson1__listOfClusterInfo = (output, context) => {
|
|
4063
4642
|
return (output || [])
|
|
4064
4643
|
.filter((e) => e != null)
|
|
@@ -4149,6 +4728,16 @@ const deserializeAws_restJson1__listOfUnprocessedScramSecret = (output, context)
|
|
|
4149
4728
|
return deserializeAws_restJson1UnprocessedScramSecret(entry, context);
|
|
4150
4729
|
});
|
|
4151
4730
|
};
|
|
4731
|
+
const deserializeAws_restJson1__listOfVpcConfig = (output, context) => {
|
|
4732
|
+
return (output || [])
|
|
4733
|
+
.filter((e) => e != null)
|
|
4734
|
+
.map((entry) => {
|
|
4735
|
+
if (entry === null) {
|
|
4736
|
+
return null;
|
|
4737
|
+
}
|
|
4738
|
+
return deserializeAws_restJson1VpcConfig(entry, context);
|
|
4739
|
+
});
|
|
4740
|
+
};
|
|
4152
4741
|
const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
4153
4742
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4154
4743
|
if (value === null) {
|
|
@@ -4183,6 +4772,9 @@ const deserializeAws_restJson1BrokerNodeGroupInfo = (output, context) => {
|
|
|
4183
4772
|
ClientSubnets: output.clientSubnets !== undefined && output.clientSubnets !== null
|
|
4184
4773
|
? deserializeAws_restJson1__listOf__string(output.clientSubnets, context)
|
|
4185
4774
|
: undefined,
|
|
4775
|
+
ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
|
|
4776
|
+
? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
|
|
4777
|
+
: undefined,
|
|
4186
4778
|
InstanceType: smithy_client_1.expectString(output.instanceType),
|
|
4187
4779
|
SecurityGroups: output.securityGroups !== undefined && output.securityGroups !== null
|
|
4188
4780
|
? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
|
|
@@ -4230,6 +4822,31 @@ const deserializeAws_restJson1CloudWatchLogs = (output, context) => {
|
|
|
4230
4822
|
LogGroup: smithy_client_1.expectString(output.logGroup),
|
|
4231
4823
|
};
|
|
4232
4824
|
};
|
|
4825
|
+
const deserializeAws_restJson1Cluster = (output, context) => {
|
|
4826
|
+
return {
|
|
4827
|
+
ActiveOperationArn: smithy_client_1.expectString(output.activeOperationArn),
|
|
4828
|
+
ClusterArn: smithy_client_1.expectString(output.clusterArn),
|
|
4829
|
+
ClusterName: smithy_client_1.expectString(output.clusterName),
|
|
4830
|
+
ClusterType: smithy_client_1.expectString(output.clusterType),
|
|
4831
|
+
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4832
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
4833
|
+
: undefined,
|
|
4834
|
+
CurrentVersion: smithy_client_1.expectString(output.currentVersion),
|
|
4835
|
+
Provisioned: output.provisioned !== undefined && output.provisioned !== null
|
|
4836
|
+
? deserializeAws_restJson1Provisioned(output.provisioned, context)
|
|
4837
|
+
: undefined,
|
|
4838
|
+
Serverless: output.serverless !== undefined && output.serverless !== null
|
|
4839
|
+
? deserializeAws_restJson1Serverless(output.serverless, context)
|
|
4840
|
+
: undefined,
|
|
4841
|
+
State: smithy_client_1.expectString(output.state),
|
|
4842
|
+
StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
|
|
4843
|
+
? deserializeAws_restJson1StateInfo(output.stateInfo, context)
|
|
4844
|
+
: undefined,
|
|
4845
|
+
Tags: output.tags !== undefined && output.tags !== null
|
|
4846
|
+
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4847
|
+
: undefined,
|
|
4848
|
+
};
|
|
4849
|
+
};
|
|
4233
4850
|
const deserializeAws_restJson1ClusterInfo = (output, context) => {
|
|
4234
4851
|
return {
|
|
4235
4852
|
ActiveOperationArn: smithy_client_1.expectString(output.activeOperationArn),
|
|
@@ -4350,6 +4967,13 @@ const deserializeAws_restJson1ConfigurationRevision = (output, context) => {
|
|
|
4350
4967
|
Revision: smithy_client_1.expectLong(output.revision),
|
|
4351
4968
|
};
|
|
4352
4969
|
};
|
|
4970
|
+
const deserializeAws_restJson1ConnectivityInfo = (output, context) => {
|
|
4971
|
+
return {
|
|
4972
|
+
PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
|
|
4973
|
+
? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
|
|
4974
|
+
: undefined,
|
|
4975
|
+
};
|
|
4976
|
+
};
|
|
4353
4977
|
const deserializeAws_restJson1EBSStorageInfo = (output, context) => {
|
|
4354
4978
|
return {
|
|
4355
4979
|
VolumeSize: smithy_client_1.expectInt32(output.volumeSize),
|
|
@@ -4398,6 +5022,11 @@ const deserializeAws_restJson1JmxExporter = (output, context) => {
|
|
|
4398
5022
|
EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
|
|
4399
5023
|
};
|
|
4400
5024
|
};
|
|
5025
|
+
const deserializeAws_restJson1JmxExporterInfo = (output, context) => {
|
|
5026
|
+
return {
|
|
5027
|
+
EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
|
|
5028
|
+
};
|
|
5029
|
+
};
|
|
4401
5030
|
const deserializeAws_restJson1KafkaVersion = (output, context) => {
|
|
4402
5031
|
return {
|
|
4403
5032
|
Status: smithy_client_1.expectString(output.status),
|
|
@@ -4422,6 +5051,9 @@ const deserializeAws_restJson1MutableClusterInfo = (output, context) => {
|
|
|
4422
5051
|
ConfigurationInfo: output.configurationInfo !== undefined && output.configurationInfo !== null
|
|
4423
5052
|
? deserializeAws_restJson1ConfigurationInfo(output.configurationInfo, context)
|
|
4424
5053
|
: undefined,
|
|
5054
|
+
ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
|
|
5055
|
+
? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
|
|
5056
|
+
: undefined,
|
|
4425
5057
|
EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
|
|
4426
5058
|
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
4427
5059
|
: undefined,
|
|
@@ -4442,6 +5074,11 @@ const deserializeAws_restJson1NodeExporter = (output, context) => {
|
|
|
4442
5074
|
EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
|
|
4443
5075
|
};
|
|
4444
5076
|
};
|
|
5077
|
+
const deserializeAws_restJson1NodeExporterInfo = (output, context) => {
|
|
5078
|
+
return {
|
|
5079
|
+
EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
|
|
5080
|
+
};
|
|
5081
|
+
};
|
|
4445
5082
|
const deserializeAws_restJson1NodeInfo = (output, context) => {
|
|
4446
5083
|
return {
|
|
4447
5084
|
AddedToClusterTime: smithy_client_1.expectString(output.addedToClusterTime),
|
|
@@ -4463,6 +5100,13 @@ const deserializeAws_restJson1OpenMonitoring = (output, context) => {
|
|
|
4463
5100
|
: undefined,
|
|
4464
5101
|
};
|
|
4465
5102
|
};
|
|
5103
|
+
const deserializeAws_restJson1OpenMonitoringInfo = (output, context) => {
|
|
5104
|
+
return {
|
|
5105
|
+
Prometheus: output.prometheus !== undefined && output.prometheus !== null
|
|
5106
|
+
? deserializeAws_restJson1PrometheusInfo(output.prometheus, context)
|
|
5107
|
+
: undefined,
|
|
5108
|
+
};
|
|
5109
|
+
};
|
|
4466
5110
|
const deserializeAws_restJson1Prometheus = (output, context) => {
|
|
4467
5111
|
return {
|
|
4468
5112
|
JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
|
|
@@ -4473,6 +5117,47 @@ const deserializeAws_restJson1Prometheus = (output, context) => {
|
|
|
4473
5117
|
: undefined,
|
|
4474
5118
|
};
|
|
4475
5119
|
};
|
|
5120
|
+
const deserializeAws_restJson1PrometheusInfo = (output, context) => {
|
|
5121
|
+
return {
|
|
5122
|
+
JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
|
|
5123
|
+
? deserializeAws_restJson1JmxExporterInfo(output.jmxExporter, context)
|
|
5124
|
+
: undefined,
|
|
5125
|
+
NodeExporter: output.nodeExporter !== undefined && output.nodeExporter !== null
|
|
5126
|
+
? deserializeAws_restJson1NodeExporterInfo(output.nodeExporter, context)
|
|
5127
|
+
: undefined,
|
|
5128
|
+
};
|
|
5129
|
+
};
|
|
5130
|
+
const deserializeAws_restJson1Provisioned = (output, context) => {
|
|
5131
|
+
return {
|
|
5132
|
+
BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
|
|
5133
|
+
? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
|
|
5134
|
+
: undefined,
|
|
5135
|
+
ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
|
|
5136
|
+
? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
|
|
5137
|
+
: undefined,
|
|
5138
|
+
CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
|
|
5139
|
+
? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
|
|
5140
|
+
: undefined,
|
|
5141
|
+
EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
|
|
5142
|
+
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
5143
|
+
: undefined,
|
|
5144
|
+
EnhancedMonitoring: smithy_client_1.expectString(output.enhancedMonitoring),
|
|
5145
|
+
LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
|
|
5146
|
+
? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
|
|
5147
|
+
: undefined,
|
|
5148
|
+
NumberOfBrokerNodes: smithy_client_1.expectInt32(output.numberOfBrokerNodes),
|
|
5149
|
+
OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
|
|
5150
|
+
? deserializeAws_restJson1OpenMonitoringInfo(output.openMonitoring, context)
|
|
5151
|
+
: undefined,
|
|
5152
|
+
ZookeeperConnectString: smithy_client_1.expectString(output.zookeeperConnectString),
|
|
5153
|
+
ZookeeperConnectStringTls: smithy_client_1.expectString(output.zookeeperConnectStringTls),
|
|
5154
|
+
};
|
|
5155
|
+
};
|
|
5156
|
+
const deserializeAws_restJson1PublicAccess = (output, context) => {
|
|
5157
|
+
return {
|
|
5158
|
+
Type: smithy_client_1.expectString(output.type),
|
|
5159
|
+
};
|
|
5160
|
+
};
|
|
4476
5161
|
const deserializeAws_restJson1S3 = (output, context) => {
|
|
4477
5162
|
return {
|
|
4478
5163
|
Bucket: smithy_client_1.expectString(output.bucket),
|
|
@@ -4493,6 +5178,28 @@ const deserializeAws_restJson1Scram = (output, context) => {
|
|
|
4493
5178
|
Enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
4494
5179
|
};
|
|
4495
5180
|
};
|
|
5181
|
+
const deserializeAws_restJson1Serverless = (output, context) => {
|
|
5182
|
+
return {
|
|
5183
|
+
ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
|
|
5184
|
+
? deserializeAws_restJson1ServerlessClientAuthentication(output.clientAuthentication, context)
|
|
5185
|
+
: undefined,
|
|
5186
|
+
VpcConfigs: output.vpcConfigs !== undefined && output.vpcConfigs !== null
|
|
5187
|
+
? deserializeAws_restJson1__listOfVpcConfig(output.vpcConfigs, context)
|
|
5188
|
+
: undefined,
|
|
5189
|
+
};
|
|
5190
|
+
};
|
|
5191
|
+
const deserializeAws_restJson1ServerlessClientAuthentication = (output, context) => {
|
|
5192
|
+
return {
|
|
5193
|
+
Sasl: output.sasl !== undefined && output.sasl !== null
|
|
5194
|
+
? deserializeAws_restJson1ServerlessSasl(output.sasl, context)
|
|
5195
|
+
: undefined,
|
|
5196
|
+
};
|
|
5197
|
+
};
|
|
5198
|
+
const deserializeAws_restJson1ServerlessSasl = (output, context) => {
|
|
5199
|
+
return {
|
|
5200
|
+
Iam: output.iam !== undefined && output.iam !== null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
|
|
5201
|
+
};
|
|
5202
|
+
};
|
|
4496
5203
|
const deserializeAws_restJson1StateInfo = (output, context) => {
|
|
4497
5204
|
return {
|
|
4498
5205
|
Code: smithy_client_1.expectString(output.code),
|
|
@@ -4526,6 +5233,16 @@ const deserializeAws_restJson1UnprocessedScramSecret = (output, context) => {
|
|
|
4526
5233
|
SecretArn: smithy_client_1.expectString(output.secretArn),
|
|
4527
5234
|
};
|
|
4528
5235
|
};
|
|
5236
|
+
const deserializeAws_restJson1VpcConfig = (output, context) => {
|
|
5237
|
+
return {
|
|
5238
|
+
SecurityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
|
|
5239
|
+
? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
|
|
5240
|
+
: undefined,
|
|
5241
|
+
SubnetIds: output.subnetIds !== undefined && output.subnetIds !== null
|
|
5242
|
+
? deserializeAws_restJson1__listOf__string(output.subnetIds, context)
|
|
5243
|
+
: undefined,
|
|
5244
|
+
};
|
|
5245
|
+
};
|
|
4529
5246
|
const deserializeAws_restJson1ZookeeperNodeInfo = (output, context) => {
|
|
4530
5247
|
return {
|
|
4531
5248
|
AttachedENIId: smithy_client_1.expectString(output.attachedENIId),
|