@aws-sdk/client-kafka 3.29.0 → 3.33.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 +35 -0
- package/Kafka.ts +37 -0
- package/KafkaClient.ts +5 -2
- package/commands/UpdateSecurityCommand.ts +94 -0
- package/dist/cjs/Kafka.js +15 -0
- package/dist/cjs/Kafka.js.map +1 -1
- package/dist/cjs/KafkaClient.js +13 -13
- package/dist/cjs/KafkaClient.js.map +1 -1
- package/dist/cjs/commands/BatchAssociateScramSecretCommand.js +3 -3
- package/dist/cjs/commands/BatchAssociateScramSecretCommand.js.map +1 -1
- package/dist/cjs/commands/BatchDisassociateScramSecretCommand.js +3 -3
- package/dist/cjs/commands/BatchDisassociateScramSecretCommand.js.map +1 -1
- package/dist/cjs/commands/CreateClusterCommand.js +3 -3
- package/dist/cjs/commands/CreateClusterCommand.js.map +1 -1
- package/dist/cjs/commands/CreateConfigurationCommand.js +3 -3
- package/dist/cjs/commands/CreateConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteClusterCommand.js +3 -3
- package/dist/cjs/commands/DeleteClusterCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteConfigurationCommand.js +3 -3
- package/dist/cjs/commands/DeleteConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeClusterCommand.js +3 -3
- package/dist/cjs/commands/DescribeClusterCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeClusterOperationCommand.js +3 -3
- package/dist/cjs/commands/DescribeClusterOperationCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeConfigurationCommand.js +3 -3
- package/dist/cjs/commands/DescribeConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeConfigurationRevisionCommand.js +3 -3
- package/dist/cjs/commands/DescribeConfigurationRevisionCommand.js.map +1 -1
- package/dist/cjs/commands/GetBootstrapBrokersCommand.js +3 -3
- package/dist/cjs/commands/GetBootstrapBrokersCommand.js.map +1 -1
- package/dist/cjs/commands/GetCompatibleKafkaVersionsCommand.js +3 -3
- package/dist/cjs/commands/GetCompatibleKafkaVersionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListClusterOperationsCommand.js +3 -3
- package/dist/cjs/commands/ListClusterOperationsCommand.js.map +1 -1
- package/dist/cjs/commands/ListClustersCommand.js +3 -3
- package/dist/cjs/commands/ListClustersCommand.js.map +1 -1
- package/dist/cjs/commands/ListConfigurationRevisionsCommand.js +3 -3
- package/dist/cjs/commands/ListConfigurationRevisionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListConfigurationsCommand.js +3 -3
- package/dist/cjs/commands/ListConfigurationsCommand.js.map +1 -1
- package/dist/cjs/commands/ListKafkaVersionsCommand.js +3 -3
- package/dist/cjs/commands/ListKafkaVersionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListNodesCommand.js +3 -3
- package/dist/cjs/commands/ListNodesCommand.js.map +1 -1
- package/dist/cjs/commands/ListScramSecretsCommand.js +3 -3
- package/dist/cjs/commands/ListScramSecretsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/RebootBrokerCommand.js +3 -3
- package/dist/cjs/commands/RebootBrokerCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBrokerCountCommand.js +3 -3
- package/dist/cjs/commands/UpdateBrokerCountCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBrokerStorageCommand.js +3 -3
- package/dist/cjs/commands/UpdateBrokerStorageCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateBrokerTypeCommand.js +3 -3
- package/dist/cjs/commands/UpdateBrokerTypeCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateClusterConfigurationCommand.js +3 -3
- package/dist/cjs/commands/UpdateClusterConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateClusterKafkaVersionCommand.js +3 -3
- package/dist/cjs/commands/UpdateClusterKafkaVersionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateConfigurationCommand.js +3 -3
- package/dist/cjs/commands/UpdateConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateMonitoringCommand.js +3 -3
- package/dist/cjs/commands/UpdateMonitoringCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateSecurityCommand.js +61 -0
- package/dist/cjs/commands/UpdateSecurityCommand.js.map +1 -0
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +42 -41
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +30 -3
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +373 -198
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/Kafka.js +15 -0
- package/dist/es/Kafka.js.map +1 -1
- package/dist/es/KafkaClient.js.map +1 -1
- package/dist/es/commands/UpdateSecurityCommand.js +65 -0
- package/dist/es/commands/UpdateSecurityCommand.js.map +1 -0
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/models_0.js +21 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/pagination/ListClusterOperationsPaginator.js +4 -4
- package/dist/es/pagination/ListClusterOperationsPaginator.js.map +1 -1
- package/dist/es/pagination/ListClustersPaginator.js +4 -4
- package/dist/es/pagination/ListClustersPaginator.js.map +1 -1
- package/dist/es/pagination/ListConfigurationRevisionsPaginator.js +4 -4
- package/dist/es/pagination/ListConfigurationRevisionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListConfigurationsPaginator.js +4 -4
- package/dist/es/pagination/ListConfigurationsPaginator.js.map +1 -1
- package/dist/es/pagination/ListKafkaVersionsPaginator.js +4 -4
- package/dist/es/pagination/ListKafkaVersionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListNodesPaginator.js +4 -4
- package/dist/es/pagination/ListNodesPaginator.js.map +1 -1
- package/dist/es/pagination/ListScramSecretsPaginator.js +4 -4
- package/dist/es/pagination/ListScramSecretsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +198 -12
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/Kafka.d.ts +7 -0
- package/dist/types/KafkaClient.d.ts +3 -2
- package/dist/types/commands/UpdateSecurityCommand.d.ts +35 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/models_0.d.ts +71 -0
- package/dist/types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist/types/ts3.4/Kafka.d.ts +7 -0
- package/dist/types/ts3.4/KafkaClient.d.ts +3 -2
- package/dist/types/ts3.4/commands/UpdateSecurityCommand.d.ts +35 -0
- package/dist/types/ts3.4/index.d.ts +1 -0
- package/dist/types/ts3.4/models/models_0.d.ts +71 -0
- package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/index.ts +1 -0
- package/models/models_0.ts +92 -0
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +202 -8
- package/tsconfig.json +1 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
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 = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListScramSecretsCommand = exports.deserializeAws_restJson1ListNodesCommand = exports.deserializeAws_restJson1ListKafkaVersionsCommand = exports.deserializeAws_restJson1ListConfigurationsCommand = exports.deserializeAws_restJson1ListConfigurationRevisionsCommand = exports.deserializeAws_restJson1ListClustersCommand = exports.deserializeAws_restJson1ListClusterOperationsCommand = exports.deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.deserializeAws_restJson1GetBootstrapBrokersCommand = exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = exports.deserializeAws_restJson1DescribeConfigurationCommand = exports.deserializeAws_restJson1DescribeClusterOperationCommand = exports.deserializeAws_restJson1DescribeClusterCommand = exports.deserializeAws_restJson1DeleteConfigurationCommand = exports.deserializeAws_restJson1DeleteClusterCommand = exports.deserializeAws_restJson1CreateConfigurationCommand = exports.deserializeAws_restJson1CreateClusterCommand = exports.deserializeAws_restJson1BatchDisassociateScramSecretCommand = exports.deserializeAws_restJson1BatchAssociateScramSecretCommand = exports.serializeAws_restJson1UpdateSecurityCommand = exports.serializeAws_restJson1UpdateMonitoringCommand = 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_restJson1ListClustersCommand = exports.serializeAws_restJson1ListClusterOperationsCommand = exports.serializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.serializeAws_restJson1GetBootstrapBrokersCommand = exports.serializeAws_restJson1DescribeConfigurationRevisionCommand = exports.serializeAws_restJson1DescribeConfigurationCommand = exports.serializeAws_restJson1DescribeClusterOperationCommand = exports.serializeAws_restJson1DescribeClusterCommand = exports.serializeAws_restJson1DeleteConfigurationCommand = exports.serializeAws_restJson1DeleteClusterCommand = exports.serializeAws_restJson1CreateConfigurationCommand = exports.serializeAws_restJson1CreateClusterCommand = exports.serializeAws_restJson1BatchDisassociateScramSecretCommand = exports.serializeAws_restJson1BatchAssociateScramSecretCommand = void 0;
|
|
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;
|
|
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) => {
|
|
@@ -15,7 +15,7 @@ const serializeAws_restJson1BatchAssociateScramSecretCommand = async (input, con
|
|
|
15
15
|
if (labelValue.length <= 0) {
|
|
16
16
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
17
17
|
}
|
|
18
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
18
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
21
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -49,7 +49,7 @@ const serializeAws_restJson1BatchDisassociateScramSecretCommand = async (input,
|
|
|
49
49
|
if (labelValue.length <= 0) {
|
|
50
50
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
51
51
|
}
|
|
52
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
52
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
55
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -159,7 +159,7 @@ const serializeAws_restJson1DeleteClusterCommand = async (input, context) => {
|
|
|
159
159
|
if (labelValue.length <= 0) {
|
|
160
160
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
161
161
|
}
|
|
162
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
162
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
165
165
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -189,7 +189,7 @@ const serializeAws_restJson1DeleteConfigurationCommand = async (input, context)
|
|
|
189
189
|
if (labelValue.length <= 0) {
|
|
190
190
|
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
191
191
|
}
|
|
192
|
-
resolvedPath = resolvedPath.replace("{Arn}",
|
|
192
|
+
resolvedPath = resolvedPath.replace("{Arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
195
195
|
throw new Error("No value provided for input HTTP label: Arn.");
|
|
@@ -215,7 +215,7 @@ const serializeAws_restJson1DescribeClusterCommand = async (input, context) => {
|
|
|
215
215
|
if (labelValue.length <= 0) {
|
|
216
216
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
217
217
|
}
|
|
218
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
218
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
219
219
|
}
|
|
220
220
|
else {
|
|
221
221
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -241,7 +241,7 @@ const serializeAws_restJson1DescribeClusterOperationCommand = async (input, cont
|
|
|
241
241
|
if (labelValue.length <= 0) {
|
|
242
242
|
throw new Error("Empty value provided for input HTTP label: ClusterOperationArn.");
|
|
243
243
|
}
|
|
244
|
-
resolvedPath = resolvedPath.replace("{ClusterOperationArn}",
|
|
244
|
+
resolvedPath = resolvedPath.replace("{ClusterOperationArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
245
245
|
}
|
|
246
246
|
else {
|
|
247
247
|
throw new Error("No value provided for input HTTP label: ClusterOperationArn.");
|
|
@@ -267,7 +267,7 @@ const serializeAws_restJson1DescribeConfigurationCommand = async (input, context
|
|
|
267
267
|
if (labelValue.length <= 0) {
|
|
268
268
|
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
269
269
|
}
|
|
270
|
-
resolvedPath = resolvedPath.replace("{Arn}",
|
|
270
|
+
resolvedPath = resolvedPath.replace("{Arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
271
271
|
}
|
|
272
272
|
else {
|
|
273
273
|
throw new Error("No value provided for input HTTP label: Arn.");
|
|
@@ -294,7 +294,7 @@ const serializeAws_restJson1DescribeConfigurationRevisionCommand = async (input,
|
|
|
294
294
|
if (labelValue.length <= 0) {
|
|
295
295
|
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
296
296
|
}
|
|
297
|
-
resolvedPath = resolvedPath.replace("{Arn}",
|
|
297
|
+
resolvedPath = resolvedPath.replace("{Arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
298
298
|
}
|
|
299
299
|
else {
|
|
300
300
|
throw new Error("No value provided for input HTTP label: Arn.");
|
|
@@ -304,7 +304,7 @@ const serializeAws_restJson1DescribeConfigurationRevisionCommand = async (input,
|
|
|
304
304
|
if (labelValue.length <= 0) {
|
|
305
305
|
throw new Error("Empty value provided for input HTTP label: Revision.");
|
|
306
306
|
}
|
|
307
|
-
resolvedPath = resolvedPath.replace("{Revision}",
|
|
307
|
+
resolvedPath = resolvedPath.replace("{Revision}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
308
308
|
}
|
|
309
309
|
else {
|
|
310
310
|
throw new Error("No value provided for input HTTP label: Revision.");
|
|
@@ -331,7 +331,7 @@ const serializeAws_restJson1GetBootstrapBrokersCommand = async (input, context)
|
|
|
331
331
|
if (labelValue.length <= 0) {
|
|
332
332
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
333
333
|
}
|
|
334
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
334
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
335
335
|
}
|
|
336
336
|
else {
|
|
337
337
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -377,7 +377,7 @@ const serializeAws_restJson1ListClusterOperationsCommand = async (input, context
|
|
|
377
377
|
if (labelValue.length <= 0) {
|
|
378
378
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
379
379
|
}
|
|
380
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
380
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
381
381
|
}
|
|
382
382
|
else {
|
|
383
383
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -430,7 +430,7 @@ const serializeAws_restJson1ListConfigurationRevisionsCommand = async (input, co
|
|
|
430
430
|
if (labelValue.length <= 0) {
|
|
431
431
|
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
432
432
|
}
|
|
433
|
-
resolvedPath = resolvedPath.replace("{Arn}",
|
|
433
|
+
resolvedPath = resolvedPath.replace("{Arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
434
434
|
}
|
|
435
435
|
else {
|
|
436
436
|
throw new Error("No value provided for input HTTP label: Arn.");
|
|
@@ -503,7 +503,7 @@ const serializeAws_restJson1ListNodesCommand = async (input, context) => {
|
|
|
503
503
|
if (labelValue.length <= 0) {
|
|
504
504
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
505
505
|
}
|
|
506
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
506
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
507
507
|
}
|
|
508
508
|
else {
|
|
509
509
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -534,7 +534,7 @@ const serializeAws_restJson1ListScramSecretsCommand = async (input, context) =>
|
|
|
534
534
|
if (labelValue.length <= 0) {
|
|
535
535
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
536
536
|
}
|
|
537
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
537
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
538
538
|
}
|
|
539
539
|
else {
|
|
540
540
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -565,7 +565,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
565
565
|
if (labelValue.length <= 0) {
|
|
566
566
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
567
567
|
}
|
|
568
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
568
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
569
569
|
}
|
|
570
570
|
else {
|
|
571
571
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -593,7 +593,7 @@ const serializeAws_restJson1RebootBrokerCommand = async (input, context) => {
|
|
|
593
593
|
if (labelValue.length <= 0) {
|
|
594
594
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
595
595
|
}
|
|
596
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
596
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
597
597
|
}
|
|
598
598
|
else {
|
|
599
599
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -625,7 +625,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
625
625
|
if (labelValue.length <= 0) {
|
|
626
626
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
627
627
|
}
|
|
628
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
628
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
629
629
|
}
|
|
630
630
|
else {
|
|
631
631
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -655,7 +655,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
655
655
|
if (labelValue.length <= 0) {
|
|
656
656
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
657
657
|
}
|
|
658
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
658
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
659
659
|
}
|
|
660
660
|
else {
|
|
661
661
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -687,7 +687,7 @@ const serializeAws_restJson1UpdateBrokerCountCommand = async (input, context) =>
|
|
|
687
687
|
if (labelValue.length <= 0) {
|
|
688
688
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
689
689
|
}
|
|
690
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
690
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
691
691
|
}
|
|
692
692
|
else {
|
|
693
693
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -721,7 +721,7 @@ const serializeAws_restJson1UpdateBrokerStorageCommand = async (input, context)
|
|
|
721
721
|
if (labelValue.length <= 0) {
|
|
722
722
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
723
723
|
}
|
|
724
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
724
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
725
725
|
}
|
|
726
726
|
else {
|
|
727
727
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -757,7 +757,7 @@ const serializeAws_restJson1UpdateBrokerTypeCommand = async (input, context) =>
|
|
|
757
757
|
if (labelValue.length <= 0) {
|
|
758
758
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
759
759
|
}
|
|
760
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
760
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
761
761
|
}
|
|
762
762
|
else {
|
|
763
763
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -791,7 +791,7 @@ const serializeAws_restJson1UpdateClusterConfigurationCommand = async (input, co
|
|
|
791
791
|
if (labelValue.length <= 0) {
|
|
792
792
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
793
793
|
}
|
|
794
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
794
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
795
795
|
}
|
|
796
796
|
else {
|
|
797
797
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -827,7 +827,7 @@ const serializeAws_restJson1UpdateClusterKafkaVersionCommand = async (input, con
|
|
|
827
827
|
if (labelValue.length <= 0) {
|
|
828
828
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
829
829
|
}
|
|
830
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
830
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
831
831
|
}
|
|
832
832
|
else {
|
|
833
833
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -865,7 +865,7 @@ const serializeAws_restJson1UpdateConfigurationCommand = async (input, context)
|
|
|
865
865
|
if (labelValue.length <= 0) {
|
|
866
866
|
throw new Error("Empty value provided for input HTTP label: Arn.");
|
|
867
867
|
}
|
|
868
|
-
resolvedPath = resolvedPath.replace("{Arn}",
|
|
868
|
+
resolvedPath = resolvedPath.replace("{Arn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
869
869
|
}
|
|
870
870
|
else {
|
|
871
871
|
throw new Error("No value provided for input HTTP label: Arn.");
|
|
@@ -898,7 +898,7 @@ const serializeAws_restJson1UpdateMonitoringCommand = async (input, context) =>
|
|
|
898
898
|
if (labelValue.length <= 0) {
|
|
899
899
|
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
900
900
|
}
|
|
901
|
-
resolvedPath = resolvedPath.replace("{ClusterArn}",
|
|
901
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
902
902
|
}
|
|
903
903
|
else {
|
|
904
904
|
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
@@ -927,6 +927,46 @@ const serializeAws_restJson1UpdateMonitoringCommand = async (input, context) =>
|
|
|
927
927
|
});
|
|
928
928
|
};
|
|
929
929
|
exports.serializeAws_restJson1UpdateMonitoringCommand = serializeAws_restJson1UpdateMonitoringCommand;
|
|
930
|
+
const serializeAws_restJson1UpdateSecurityCommand = async (input, context) => {
|
|
931
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
932
|
+
const headers = {
|
|
933
|
+
"content-type": "application/json",
|
|
934
|
+
};
|
|
935
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/security";
|
|
936
|
+
if (input.ClusterArn !== undefined) {
|
|
937
|
+
const labelValue = input.ClusterArn;
|
|
938
|
+
if (labelValue.length <= 0) {
|
|
939
|
+
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
940
|
+
}
|
|
941
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
942
|
+
}
|
|
943
|
+
else {
|
|
944
|
+
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
945
|
+
}
|
|
946
|
+
let body;
|
|
947
|
+
body = JSON.stringify({
|
|
948
|
+
...(input.ClientAuthentication !== undefined &&
|
|
949
|
+
input.ClientAuthentication !== null && {
|
|
950
|
+
clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
|
|
951
|
+
}),
|
|
952
|
+
...(input.CurrentVersion !== undefined &&
|
|
953
|
+
input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
|
|
954
|
+
...(input.EncryptionInfo !== undefined &&
|
|
955
|
+
input.EncryptionInfo !== null && {
|
|
956
|
+
encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
|
|
957
|
+
}),
|
|
958
|
+
});
|
|
959
|
+
return new protocol_http_1.HttpRequest({
|
|
960
|
+
protocol,
|
|
961
|
+
hostname,
|
|
962
|
+
port,
|
|
963
|
+
method: "PATCH",
|
|
964
|
+
headers,
|
|
965
|
+
path: resolvedPath,
|
|
966
|
+
body,
|
|
967
|
+
});
|
|
968
|
+
};
|
|
969
|
+
exports.serializeAws_restJson1UpdateSecurityCommand = serializeAws_restJson1UpdateSecurityCommand;
|
|
930
970
|
const deserializeAws_restJson1BatchAssociateScramSecretCommand = async (output, context) => {
|
|
931
971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
932
972
|
return deserializeAws_restJson1BatchAssociateScramSecretCommandError(output, context);
|
|
@@ -936,9 +976,9 @@ const deserializeAws_restJson1BatchAssociateScramSecretCommand = async (output,
|
|
|
936
976
|
ClusterArn: undefined,
|
|
937
977
|
UnprocessedScramSecrets: undefined,
|
|
938
978
|
};
|
|
939
|
-
const data =
|
|
979
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
940
980
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
941
|
-
contents.ClusterArn =
|
|
981
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
942
982
|
}
|
|
943
983
|
if (data.unprocessedScramSecrets !== undefined && data.unprocessedScramSecrets !== null) {
|
|
944
984
|
contents.UnprocessedScramSecrets = deserializeAws_restJson1__listOfUnprocessedScramSecret(data.unprocessedScramSecrets, context);
|
|
@@ -1036,9 +1076,9 @@ const deserializeAws_restJson1BatchDisassociateScramSecretCommand = async (outpu
|
|
|
1036
1076
|
ClusterArn: undefined,
|
|
1037
1077
|
UnprocessedScramSecrets: undefined,
|
|
1038
1078
|
};
|
|
1039
|
-
const data =
|
|
1079
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1040
1080
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
1041
|
-
contents.ClusterArn =
|
|
1081
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
1042
1082
|
}
|
|
1043
1083
|
if (data.unprocessedScramSecrets !== undefined && data.unprocessedScramSecrets !== null) {
|
|
1044
1084
|
contents.UnprocessedScramSecrets = deserializeAws_restJson1__listOfUnprocessedScramSecret(data.unprocessedScramSecrets, context);
|
|
@@ -1137,15 +1177,15 @@ const deserializeAws_restJson1CreateClusterCommand = async (output, context) =>
|
|
|
1137
1177
|
ClusterName: undefined,
|
|
1138
1178
|
State: undefined,
|
|
1139
1179
|
};
|
|
1140
|
-
const data =
|
|
1180
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1141
1181
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
1142
|
-
contents.ClusterArn =
|
|
1182
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
1143
1183
|
}
|
|
1144
1184
|
if (data.clusterName !== undefined && data.clusterName !== null) {
|
|
1145
|
-
contents.ClusterName =
|
|
1185
|
+
contents.ClusterName = smithy_client_1.expectString(data.clusterName);
|
|
1146
1186
|
}
|
|
1147
1187
|
if (data.state !== undefined && data.state !== null) {
|
|
1148
|
-
contents.State =
|
|
1188
|
+
contents.State = smithy_client_1.expectString(data.state);
|
|
1149
1189
|
}
|
|
1150
1190
|
return Promise.resolve(contents);
|
|
1151
1191
|
};
|
|
@@ -1243,21 +1283,21 @@ const deserializeAws_restJson1CreateConfigurationCommand = async (output, contex
|
|
|
1243
1283
|
Name: undefined,
|
|
1244
1284
|
State: undefined,
|
|
1245
1285
|
};
|
|
1246
|
-
const data =
|
|
1286
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1247
1287
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1248
|
-
contents.Arn =
|
|
1288
|
+
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
1249
1289
|
}
|
|
1250
1290
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
1251
|
-
contents.CreationTime =
|
|
1291
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
|
|
1252
1292
|
}
|
|
1253
1293
|
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
1254
1294
|
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
1255
1295
|
}
|
|
1256
1296
|
if (data.name !== undefined && data.name !== null) {
|
|
1257
|
-
contents.Name =
|
|
1297
|
+
contents.Name = smithy_client_1.expectString(data.name);
|
|
1258
1298
|
}
|
|
1259
1299
|
if (data.state !== undefined && data.state !== null) {
|
|
1260
|
-
contents.State =
|
|
1300
|
+
contents.State = smithy_client_1.expectString(data.state);
|
|
1261
1301
|
}
|
|
1262
1302
|
return Promise.resolve(contents);
|
|
1263
1303
|
};
|
|
@@ -1352,12 +1392,12 @@ const deserializeAws_restJson1DeleteClusterCommand = async (output, context) =>
|
|
|
1352
1392
|
ClusterArn: undefined,
|
|
1353
1393
|
State: undefined,
|
|
1354
1394
|
};
|
|
1355
|
-
const data =
|
|
1395
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1356
1396
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
1357
|
-
contents.ClusterArn =
|
|
1397
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
1358
1398
|
}
|
|
1359
1399
|
if (data.state !== undefined && data.state !== null) {
|
|
1360
|
-
contents.State =
|
|
1400
|
+
contents.State = smithy_client_1.expectString(data.state);
|
|
1361
1401
|
}
|
|
1362
1402
|
return Promise.resolve(contents);
|
|
1363
1403
|
};
|
|
@@ -1428,12 +1468,12 @@ const deserializeAws_restJson1DeleteConfigurationCommand = async (output, contex
|
|
|
1428
1468
|
Arn: undefined,
|
|
1429
1469
|
State: undefined,
|
|
1430
1470
|
};
|
|
1431
|
-
const data =
|
|
1471
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1432
1472
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1433
|
-
contents.Arn =
|
|
1473
|
+
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
1434
1474
|
}
|
|
1435
1475
|
if (data.state !== undefined && data.state !== null) {
|
|
1436
|
-
contents.State =
|
|
1476
|
+
contents.State = smithy_client_1.expectString(data.state);
|
|
1437
1477
|
}
|
|
1438
1478
|
return Promise.resolve(contents);
|
|
1439
1479
|
};
|
|
@@ -1503,7 +1543,7 @@ const deserializeAws_restJson1DescribeClusterCommand = async (output, context) =
|
|
|
1503
1543
|
$metadata: deserializeMetadata(output),
|
|
1504
1544
|
ClusterInfo: undefined,
|
|
1505
1545
|
};
|
|
1506
|
-
const data =
|
|
1546
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1507
1547
|
if (data.clusterInfo !== undefined && data.clusterInfo !== null) {
|
|
1508
1548
|
contents.ClusterInfo = deserializeAws_restJson1ClusterInfo(data.clusterInfo, context);
|
|
1509
1549
|
}
|
|
@@ -1583,7 +1623,7 @@ const deserializeAws_restJson1DescribeClusterOperationCommand = async (output, c
|
|
|
1583
1623
|
$metadata: deserializeMetadata(output),
|
|
1584
1624
|
ClusterOperationInfo: undefined,
|
|
1585
1625
|
};
|
|
1586
|
-
const data =
|
|
1626
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1587
1627
|
if (data.clusterOperationInfo !== undefined && data.clusterOperationInfo !== null) {
|
|
1588
1628
|
contents.ClusterOperationInfo = deserializeAws_restJson1ClusterOperationInfo(data.clusterOperationInfo, context);
|
|
1589
1629
|
}
|
|
@@ -1669,15 +1709,15 @@ const deserializeAws_restJson1DescribeConfigurationCommand = async (output, cont
|
|
|
1669
1709
|
Name: undefined,
|
|
1670
1710
|
State: undefined,
|
|
1671
1711
|
};
|
|
1672
|
-
const data =
|
|
1712
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1673
1713
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1674
|
-
contents.Arn =
|
|
1714
|
+
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
1675
1715
|
}
|
|
1676
1716
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
1677
|
-
contents.CreationTime =
|
|
1717
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
|
|
1678
1718
|
}
|
|
1679
1719
|
if (data.description !== undefined && data.description !== null) {
|
|
1680
|
-
contents.Description =
|
|
1720
|
+
contents.Description = smithy_client_1.expectString(data.description);
|
|
1681
1721
|
}
|
|
1682
1722
|
if (data.kafkaVersions !== undefined && data.kafkaVersions !== null) {
|
|
1683
1723
|
contents.KafkaVersions = deserializeAws_restJson1__listOf__string(data.kafkaVersions, context);
|
|
@@ -1686,10 +1726,10 @@ const deserializeAws_restJson1DescribeConfigurationCommand = async (output, cont
|
|
|
1686
1726
|
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
1687
1727
|
}
|
|
1688
1728
|
if (data.name !== undefined && data.name !== null) {
|
|
1689
|
-
contents.Name =
|
|
1729
|
+
contents.Name = smithy_client_1.expectString(data.name);
|
|
1690
1730
|
}
|
|
1691
1731
|
if (data.state !== undefined && data.state !== null) {
|
|
1692
|
-
contents.State =
|
|
1732
|
+
contents.State = smithy_client_1.expectString(data.state);
|
|
1693
1733
|
}
|
|
1694
1734
|
return Promise.resolve(contents);
|
|
1695
1735
|
};
|
|
@@ -1779,18 +1819,18 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommand = async (outp
|
|
|
1779
1819
|
Revision: undefined,
|
|
1780
1820
|
ServerProperties: undefined,
|
|
1781
1821
|
};
|
|
1782
|
-
const data =
|
|
1822
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1783
1823
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1784
|
-
contents.Arn =
|
|
1824
|
+
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
1785
1825
|
}
|
|
1786
1826
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
1787
|
-
contents.CreationTime =
|
|
1827
|
+
contents.CreationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
|
|
1788
1828
|
}
|
|
1789
1829
|
if (data.description !== undefined && data.description !== null) {
|
|
1790
|
-
contents.Description =
|
|
1830
|
+
contents.Description = smithy_client_1.expectString(data.description);
|
|
1791
1831
|
}
|
|
1792
1832
|
if (data.revision !== undefined && data.revision !== null) {
|
|
1793
|
-
contents.Revision =
|
|
1833
|
+
contents.Revision = smithy_client_1.expectLong(data.revision);
|
|
1794
1834
|
}
|
|
1795
1835
|
if (data.serverProperties !== undefined && data.serverProperties !== null) {
|
|
1796
1836
|
contents.ServerProperties = context.base64Decoder(data.serverProperties);
|
|
@@ -1882,18 +1922,18 @@ const deserializeAws_restJson1GetBootstrapBrokersCommand = async (output, contex
|
|
|
1882
1922
|
BootstrapBrokerStringSaslScram: undefined,
|
|
1883
1923
|
BootstrapBrokerStringTls: undefined,
|
|
1884
1924
|
};
|
|
1885
|
-
const data =
|
|
1925
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1886
1926
|
if (data.bootstrapBrokerString !== undefined && data.bootstrapBrokerString !== null) {
|
|
1887
|
-
contents.BootstrapBrokerString =
|
|
1927
|
+
contents.BootstrapBrokerString = smithy_client_1.expectString(data.bootstrapBrokerString);
|
|
1888
1928
|
}
|
|
1889
1929
|
if (data.bootstrapBrokerStringSaslIam !== undefined && data.bootstrapBrokerStringSaslIam !== null) {
|
|
1890
|
-
contents.BootstrapBrokerStringSaslIam =
|
|
1930
|
+
contents.BootstrapBrokerStringSaslIam = smithy_client_1.expectString(data.bootstrapBrokerStringSaslIam);
|
|
1891
1931
|
}
|
|
1892
1932
|
if (data.bootstrapBrokerStringSaslScram !== undefined && data.bootstrapBrokerStringSaslScram !== null) {
|
|
1893
|
-
contents.BootstrapBrokerStringSaslScram =
|
|
1933
|
+
contents.BootstrapBrokerStringSaslScram = smithy_client_1.expectString(data.bootstrapBrokerStringSaslScram);
|
|
1894
1934
|
}
|
|
1895
1935
|
if (data.bootstrapBrokerStringTls !== undefined && data.bootstrapBrokerStringTls !== null) {
|
|
1896
|
-
contents.BootstrapBrokerStringTls =
|
|
1936
|
+
contents.BootstrapBrokerStringTls = smithy_client_1.expectString(data.bootstrapBrokerStringTls);
|
|
1897
1937
|
}
|
|
1898
1938
|
return Promise.resolve(contents);
|
|
1899
1939
|
};
|
|
@@ -1971,7 +2011,7 @@ const deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = async (output,
|
|
|
1971
2011
|
$metadata: deserializeMetadata(output),
|
|
1972
2012
|
CompatibleKafkaVersions: undefined,
|
|
1973
2013
|
};
|
|
1974
|
-
const data =
|
|
2014
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1975
2015
|
if (data.compatibleKafkaVersions !== undefined && data.compatibleKafkaVersions !== null) {
|
|
1976
2016
|
contents.CompatibleKafkaVersions = deserializeAws_restJson1__listOfCompatibleKafkaVersion(data.compatibleKafkaVersions, context);
|
|
1977
2017
|
}
|
|
@@ -2068,12 +2108,12 @@ const deserializeAws_restJson1ListClusterOperationsCommand = async (output, cont
|
|
|
2068
2108
|
ClusterOperationInfoList: undefined,
|
|
2069
2109
|
NextToken: undefined,
|
|
2070
2110
|
};
|
|
2071
|
-
const data =
|
|
2111
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2072
2112
|
if (data.clusterOperationInfoList !== undefined && data.clusterOperationInfoList !== null) {
|
|
2073
2113
|
contents.ClusterOperationInfoList = deserializeAws_restJson1__listOfClusterOperationInfo(data.clusterOperationInfoList, context);
|
|
2074
2114
|
}
|
|
2075
2115
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2076
|
-
contents.NextToken =
|
|
2116
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2077
2117
|
}
|
|
2078
2118
|
return Promise.resolve(contents);
|
|
2079
2119
|
};
|
|
@@ -2144,12 +2184,12 @@ const deserializeAws_restJson1ListClustersCommand = async (output, context) => {
|
|
|
2144
2184
|
ClusterInfoList: undefined,
|
|
2145
2185
|
NextToken: undefined,
|
|
2146
2186
|
};
|
|
2147
|
-
const data =
|
|
2187
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2148
2188
|
if (data.clusterInfoList !== undefined && data.clusterInfoList !== null) {
|
|
2149
2189
|
contents.ClusterInfoList = deserializeAws_restJson1__listOfClusterInfo(data.clusterInfoList, context);
|
|
2150
2190
|
}
|
|
2151
2191
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2152
|
-
contents.NextToken =
|
|
2192
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2153
2193
|
}
|
|
2154
2194
|
return Promise.resolve(contents);
|
|
2155
2195
|
};
|
|
@@ -2220,9 +2260,9 @@ const deserializeAws_restJson1ListConfigurationRevisionsCommand = async (output,
|
|
|
2220
2260
|
NextToken: undefined,
|
|
2221
2261
|
Revisions: undefined,
|
|
2222
2262
|
};
|
|
2223
|
-
const data =
|
|
2263
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2224
2264
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2225
|
-
contents.NextToken =
|
|
2265
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2226
2266
|
}
|
|
2227
2267
|
if (data.revisions !== undefined && data.revisions !== null) {
|
|
2228
2268
|
contents.Revisions = deserializeAws_restJson1__listOfConfigurationRevision(data.revisions, context);
|
|
@@ -2312,12 +2352,12 @@ const deserializeAws_restJson1ListConfigurationsCommand = async (output, context
|
|
|
2312
2352
|
Configurations: undefined,
|
|
2313
2353
|
NextToken: undefined,
|
|
2314
2354
|
};
|
|
2315
|
-
const data =
|
|
2355
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2316
2356
|
if (data.configurations !== undefined && data.configurations !== null) {
|
|
2317
2357
|
contents.Configurations = deserializeAws_restJson1__listOfConfiguration(data.configurations, context);
|
|
2318
2358
|
}
|
|
2319
2359
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2320
|
-
contents.NextToken =
|
|
2360
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2321
2361
|
}
|
|
2322
2362
|
return Promise.resolve(contents);
|
|
2323
2363
|
};
|
|
@@ -2396,12 +2436,12 @@ const deserializeAws_restJson1ListKafkaVersionsCommand = async (output, context)
|
|
|
2396
2436
|
KafkaVersions: undefined,
|
|
2397
2437
|
NextToken: undefined,
|
|
2398
2438
|
};
|
|
2399
|
-
const data =
|
|
2439
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2400
2440
|
if (data.kafkaVersions !== undefined && data.kafkaVersions !== null) {
|
|
2401
2441
|
contents.KafkaVersions = deserializeAws_restJson1__listOfKafkaVersion(data.kafkaVersions, context);
|
|
2402
2442
|
}
|
|
2403
2443
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2404
|
-
contents.NextToken =
|
|
2444
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2405
2445
|
}
|
|
2406
2446
|
return Promise.resolve(contents);
|
|
2407
2447
|
};
|
|
@@ -2472,9 +2512,9 @@ const deserializeAws_restJson1ListNodesCommand = async (output, context) => {
|
|
|
2472
2512
|
NextToken: undefined,
|
|
2473
2513
|
NodeInfoList: undefined,
|
|
2474
2514
|
};
|
|
2475
|
-
const data =
|
|
2515
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2476
2516
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2477
|
-
contents.NextToken =
|
|
2517
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2478
2518
|
}
|
|
2479
2519
|
if (data.nodeInfoList !== undefined && data.nodeInfoList !== null) {
|
|
2480
2520
|
contents.NodeInfoList = deserializeAws_restJson1__listOfNodeInfo(data.nodeInfoList, context);
|
|
@@ -2548,9 +2588,9 @@ const deserializeAws_restJson1ListScramSecretsCommand = async (output, context)
|
|
|
2548
2588
|
NextToken: undefined,
|
|
2549
2589
|
SecretArnList: undefined,
|
|
2550
2590
|
};
|
|
2551
|
-
const data =
|
|
2591
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2552
2592
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2553
|
-
contents.NextToken =
|
|
2593
|
+
contents.NextToken = smithy_client_1.expectString(data.nextToken);
|
|
2554
2594
|
}
|
|
2555
2595
|
if (data.secretArnList !== undefined && data.secretArnList !== null) {
|
|
2556
2596
|
contents.SecretArnList = deserializeAws_restJson1__listOf__string(data.secretArnList, context);
|
|
@@ -2647,7 +2687,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2647
2687
|
$metadata: deserializeMetadata(output),
|
|
2648
2688
|
Tags: undefined,
|
|
2649
2689
|
};
|
|
2650
|
-
const data =
|
|
2690
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2651
2691
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2652
2692
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2653
2693
|
}
|
|
@@ -2712,12 +2752,12 @@ const deserializeAws_restJson1RebootBrokerCommand = async (output, context) => {
|
|
|
2712
2752
|
ClusterArn: undefined,
|
|
2713
2753
|
ClusterOperationArn: undefined,
|
|
2714
2754
|
};
|
|
2715
|
-
const data =
|
|
2755
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2716
2756
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
2717
|
-
contents.ClusterArn =
|
|
2757
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
2718
2758
|
}
|
|
2719
2759
|
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
2720
|
-
contents.ClusterOperationArn =
|
|
2760
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
2721
2761
|
}
|
|
2722
2762
|
return Promise.resolve(contents);
|
|
2723
2763
|
};
|
|
@@ -2932,12 +2972,12 @@ const deserializeAws_restJson1UpdateBrokerCountCommand = async (output, context)
|
|
|
2932
2972
|
ClusterArn: undefined,
|
|
2933
2973
|
ClusterOperationArn: undefined,
|
|
2934
2974
|
};
|
|
2935
|
-
const data =
|
|
2975
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2936
2976
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
2937
|
-
contents.ClusterArn =
|
|
2977
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
2938
2978
|
}
|
|
2939
2979
|
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
2940
|
-
contents.ClusterOperationArn =
|
|
2980
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
2941
2981
|
}
|
|
2942
2982
|
return Promise.resolve(contents);
|
|
2943
2983
|
};
|
|
@@ -3016,12 +3056,12 @@ const deserializeAws_restJson1UpdateBrokerStorageCommand = async (output, contex
|
|
|
3016
3056
|
ClusterArn: undefined,
|
|
3017
3057
|
ClusterOperationArn: undefined,
|
|
3018
3058
|
};
|
|
3019
|
-
const data =
|
|
3059
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3020
3060
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
3021
|
-
contents.ClusterArn =
|
|
3061
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
3022
3062
|
}
|
|
3023
3063
|
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
3024
|
-
contents.ClusterOperationArn =
|
|
3064
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
3025
3065
|
}
|
|
3026
3066
|
return Promise.resolve(contents);
|
|
3027
3067
|
};
|
|
@@ -3100,12 +3140,12 @@ const deserializeAws_restJson1UpdateBrokerTypeCommand = async (output, context)
|
|
|
3100
3140
|
ClusterArn: undefined,
|
|
3101
3141
|
ClusterOperationArn: undefined,
|
|
3102
3142
|
};
|
|
3103
|
-
const data =
|
|
3143
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3104
3144
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
3105
|
-
contents.ClusterArn =
|
|
3145
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
3106
3146
|
}
|
|
3107
3147
|
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
3108
|
-
contents.ClusterOperationArn =
|
|
3148
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
3109
3149
|
}
|
|
3110
3150
|
return Promise.resolve(contents);
|
|
3111
3151
|
};
|
|
@@ -3200,12 +3240,12 @@ const deserializeAws_restJson1UpdateClusterConfigurationCommand = async (output,
|
|
|
3200
3240
|
ClusterArn: undefined,
|
|
3201
3241
|
ClusterOperationArn: undefined,
|
|
3202
3242
|
};
|
|
3203
|
-
const data =
|
|
3243
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3204
3244
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
3205
|
-
contents.ClusterArn =
|
|
3245
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
3206
3246
|
}
|
|
3207
3247
|
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
3208
|
-
contents.ClusterOperationArn =
|
|
3248
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
3209
3249
|
}
|
|
3210
3250
|
return Promise.resolve(contents);
|
|
3211
3251
|
};
|
|
@@ -3292,12 +3332,12 @@ const deserializeAws_restJson1UpdateClusterKafkaVersionCommand = async (output,
|
|
|
3292
3332
|
ClusterArn: undefined,
|
|
3293
3333
|
ClusterOperationArn: undefined,
|
|
3294
3334
|
};
|
|
3295
|
-
const data =
|
|
3335
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3296
3336
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
3297
|
-
contents.ClusterArn =
|
|
3337
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
3298
3338
|
}
|
|
3299
3339
|
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
3300
|
-
contents.ClusterOperationArn =
|
|
3340
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
3301
3341
|
}
|
|
3302
3342
|
return Promise.resolve(contents);
|
|
3303
3343
|
};
|
|
@@ -3392,9 +3432,9 @@ const deserializeAws_restJson1UpdateConfigurationCommand = async (output, contex
|
|
|
3392
3432
|
Arn: undefined,
|
|
3393
3433
|
LatestRevision: undefined,
|
|
3394
3434
|
};
|
|
3395
|
-
const data =
|
|
3435
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3396
3436
|
if (data.arn !== undefined && data.arn !== null) {
|
|
3397
|
-
contents.Arn =
|
|
3437
|
+
contents.Arn = smithy_client_1.expectString(data.arn);
|
|
3398
3438
|
}
|
|
3399
3439
|
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
3400
3440
|
contents.LatestRevision = deserializeAws_restJson1ConfigurationRevision(data.latestRevision, context);
|
|
@@ -3484,12 +3524,12 @@ const deserializeAws_restJson1UpdateMonitoringCommand = async (output, context)
|
|
|
3484
3524
|
ClusterArn: undefined,
|
|
3485
3525
|
ClusterOperationArn: undefined,
|
|
3486
3526
|
};
|
|
3487
|
-
const data =
|
|
3527
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3488
3528
|
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
3489
|
-
contents.ClusterArn =
|
|
3529
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
3490
3530
|
}
|
|
3491
3531
|
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
3492
|
-
contents.ClusterOperationArn =
|
|
3532
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
3493
3533
|
}
|
|
3494
3534
|
return Promise.resolve(contents);
|
|
3495
3535
|
};
|
|
@@ -3559,6 +3599,106 @@ const deserializeAws_restJson1UpdateMonitoringCommandError = async (output, cont
|
|
|
3559
3599
|
delete response.Message;
|
|
3560
3600
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3561
3601
|
};
|
|
3602
|
+
const deserializeAws_restJson1UpdateSecurityCommand = async (output, context) => {
|
|
3603
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3604
|
+
return deserializeAws_restJson1UpdateSecurityCommandError(output, context);
|
|
3605
|
+
}
|
|
3606
|
+
const contents = {
|
|
3607
|
+
$metadata: deserializeMetadata(output),
|
|
3608
|
+
ClusterArn: undefined,
|
|
3609
|
+
ClusterOperationArn: undefined,
|
|
3610
|
+
};
|
|
3611
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3612
|
+
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
3613
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
3614
|
+
}
|
|
3615
|
+
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
3616
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
3617
|
+
}
|
|
3618
|
+
return Promise.resolve(contents);
|
|
3619
|
+
};
|
|
3620
|
+
exports.deserializeAws_restJson1UpdateSecurityCommand = deserializeAws_restJson1UpdateSecurityCommand;
|
|
3621
|
+
const deserializeAws_restJson1UpdateSecurityCommandError = async (output, context) => {
|
|
3622
|
+
const parsedOutput = {
|
|
3623
|
+
...output,
|
|
3624
|
+
body: await parseBody(output.body, context),
|
|
3625
|
+
};
|
|
3626
|
+
let response;
|
|
3627
|
+
let errorCode = "UnknownError";
|
|
3628
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3629
|
+
switch (errorCode) {
|
|
3630
|
+
case "BadRequestException":
|
|
3631
|
+
case "com.amazonaws.kafka#BadRequestException":
|
|
3632
|
+
response = {
|
|
3633
|
+
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3634
|
+
name: errorCode,
|
|
3635
|
+
$metadata: deserializeMetadata(output),
|
|
3636
|
+
};
|
|
3637
|
+
break;
|
|
3638
|
+
case "ForbiddenException":
|
|
3639
|
+
case "com.amazonaws.kafka#ForbiddenException":
|
|
3640
|
+
response = {
|
|
3641
|
+
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
3642
|
+
name: errorCode,
|
|
3643
|
+
$metadata: deserializeMetadata(output),
|
|
3644
|
+
};
|
|
3645
|
+
break;
|
|
3646
|
+
case "InternalServerErrorException":
|
|
3647
|
+
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3648
|
+
response = {
|
|
3649
|
+
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3650
|
+
name: errorCode,
|
|
3651
|
+
$metadata: deserializeMetadata(output),
|
|
3652
|
+
};
|
|
3653
|
+
break;
|
|
3654
|
+
case "NotFoundException":
|
|
3655
|
+
case "com.amazonaws.kafka#NotFoundException":
|
|
3656
|
+
response = {
|
|
3657
|
+
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3658
|
+
name: errorCode,
|
|
3659
|
+
$metadata: deserializeMetadata(output),
|
|
3660
|
+
};
|
|
3661
|
+
break;
|
|
3662
|
+
case "ServiceUnavailableException":
|
|
3663
|
+
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3664
|
+
response = {
|
|
3665
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3666
|
+
name: errorCode,
|
|
3667
|
+
$metadata: deserializeMetadata(output),
|
|
3668
|
+
};
|
|
3669
|
+
break;
|
|
3670
|
+
case "TooManyRequestsException":
|
|
3671
|
+
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
3672
|
+
response = {
|
|
3673
|
+
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
3674
|
+
name: errorCode,
|
|
3675
|
+
$metadata: deserializeMetadata(output),
|
|
3676
|
+
};
|
|
3677
|
+
break;
|
|
3678
|
+
case "UnauthorizedException":
|
|
3679
|
+
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3680
|
+
response = {
|
|
3681
|
+
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
3682
|
+
name: errorCode,
|
|
3683
|
+
$metadata: deserializeMetadata(output),
|
|
3684
|
+
};
|
|
3685
|
+
break;
|
|
3686
|
+
default:
|
|
3687
|
+
const parsedBody = parsedOutput.body;
|
|
3688
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3689
|
+
response = {
|
|
3690
|
+
...parsedBody,
|
|
3691
|
+
name: `${errorCode}`,
|
|
3692
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3693
|
+
$fault: "client",
|
|
3694
|
+
$metadata: deserializeMetadata(output),
|
|
3695
|
+
};
|
|
3696
|
+
}
|
|
3697
|
+
const message = response.message || response.Message || errorCode;
|
|
3698
|
+
response.message = message;
|
|
3699
|
+
delete response.Message;
|
|
3700
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3701
|
+
};
|
|
3562
3702
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
3563
3703
|
const contents = {
|
|
3564
3704
|
name: "BadRequestException",
|
|
@@ -3569,10 +3709,10 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3569
3709
|
};
|
|
3570
3710
|
const data = parsedOutput.body;
|
|
3571
3711
|
if (data.invalidParameter !== undefined && data.invalidParameter !== null) {
|
|
3572
|
-
contents.InvalidParameter =
|
|
3712
|
+
contents.InvalidParameter = smithy_client_1.expectString(data.invalidParameter);
|
|
3573
3713
|
}
|
|
3574
3714
|
if (data.message !== undefined && data.message !== null) {
|
|
3575
|
-
contents.Message =
|
|
3715
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3576
3716
|
}
|
|
3577
3717
|
return contents;
|
|
3578
3718
|
};
|
|
@@ -3586,10 +3726,10 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3586
3726
|
};
|
|
3587
3727
|
const data = parsedOutput.body;
|
|
3588
3728
|
if (data.invalidParameter !== undefined && data.invalidParameter !== null) {
|
|
3589
|
-
contents.InvalidParameter =
|
|
3729
|
+
contents.InvalidParameter = smithy_client_1.expectString(data.invalidParameter);
|
|
3590
3730
|
}
|
|
3591
3731
|
if (data.message !== undefined && data.message !== null) {
|
|
3592
|
-
contents.Message =
|
|
3732
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3593
3733
|
}
|
|
3594
3734
|
return contents;
|
|
3595
3735
|
};
|
|
@@ -3603,10 +3743,10 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
3603
3743
|
};
|
|
3604
3744
|
const data = parsedOutput.body;
|
|
3605
3745
|
if (data.invalidParameter !== undefined && data.invalidParameter !== null) {
|
|
3606
|
-
contents.InvalidParameter =
|
|
3746
|
+
contents.InvalidParameter = smithy_client_1.expectString(data.invalidParameter);
|
|
3607
3747
|
}
|
|
3608
3748
|
if (data.message !== undefined && data.message !== null) {
|
|
3609
|
-
contents.Message =
|
|
3749
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3610
3750
|
}
|
|
3611
3751
|
return contents;
|
|
3612
3752
|
};
|
|
@@ -3620,10 +3760,10 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
3620
3760
|
};
|
|
3621
3761
|
const data = parsedOutput.body;
|
|
3622
3762
|
if (data.invalidParameter !== undefined && data.invalidParameter !== null) {
|
|
3623
|
-
contents.InvalidParameter =
|
|
3763
|
+
contents.InvalidParameter = smithy_client_1.expectString(data.invalidParameter);
|
|
3624
3764
|
}
|
|
3625
3765
|
if (data.message !== undefined && data.message !== null) {
|
|
3626
|
-
contents.Message =
|
|
3766
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3627
3767
|
}
|
|
3628
3768
|
return contents;
|
|
3629
3769
|
};
|
|
@@ -3637,10 +3777,10 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
3637
3777
|
};
|
|
3638
3778
|
const data = parsedOutput.body;
|
|
3639
3779
|
if (data.invalidParameter !== undefined && data.invalidParameter !== null) {
|
|
3640
|
-
contents.InvalidParameter =
|
|
3780
|
+
contents.InvalidParameter = smithy_client_1.expectString(data.invalidParameter);
|
|
3641
3781
|
}
|
|
3642
3782
|
if (data.message !== undefined && data.message !== null) {
|
|
3643
|
-
contents.Message =
|
|
3783
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3644
3784
|
}
|
|
3645
3785
|
return contents;
|
|
3646
3786
|
};
|
|
@@ -3654,10 +3794,10 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
3654
3794
|
};
|
|
3655
3795
|
const data = parsedOutput.body;
|
|
3656
3796
|
if (data.invalidParameter !== undefined && data.invalidParameter !== null) {
|
|
3657
|
-
contents.InvalidParameter =
|
|
3797
|
+
contents.InvalidParameter = smithy_client_1.expectString(data.invalidParameter);
|
|
3658
3798
|
}
|
|
3659
3799
|
if (data.message !== undefined && data.message !== null) {
|
|
3660
|
-
contents.Message =
|
|
3800
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3661
3801
|
}
|
|
3662
3802
|
return contents;
|
|
3663
3803
|
};
|
|
@@ -3671,10 +3811,10 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
3671
3811
|
};
|
|
3672
3812
|
const data = parsedOutput.body;
|
|
3673
3813
|
if (data.invalidParameter !== undefined && data.invalidParameter !== null) {
|
|
3674
|
-
contents.InvalidParameter =
|
|
3814
|
+
contents.InvalidParameter = smithy_client_1.expectString(data.invalidParameter);
|
|
3675
3815
|
}
|
|
3676
3816
|
if (data.message !== undefined && data.message !== null) {
|
|
3677
|
-
contents.Message =
|
|
3817
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3678
3818
|
}
|
|
3679
3819
|
return contents;
|
|
3680
3820
|
};
|
|
@@ -3688,10 +3828,10 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
3688
3828
|
};
|
|
3689
3829
|
const data = parsedOutput.body;
|
|
3690
3830
|
if (data.invalidParameter !== undefined && data.invalidParameter !== null) {
|
|
3691
|
-
contents.InvalidParameter =
|
|
3831
|
+
contents.InvalidParameter = smithy_client_1.expectString(data.invalidParameter);
|
|
3692
3832
|
}
|
|
3693
3833
|
if (data.message !== undefined && data.message !== null) {
|
|
3694
|
-
contents.Message =
|
|
3834
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
3695
3835
|
}
|
|
3696
3836
|
return contents;
|
|
3697
3837
|
};
|
|
@@ -3765,6 +3905,10 @@ const serializeAws_restJson1ClientAuthentication = (input, context) => {
|
|
|
3765
3905
|
return {
|
|
3766
3906
|
...(input.Sasl !== undefined && input.Sasl !== null && { sasl: serializeAws_restJson1Sasl(input.Sasl, context) }),
|
|
3767
3907
|
...(input.Tls !== undefined && input.Tls !== null && { tls: serializeAws_restJson1Tls(input.Tls, context) }),
|
|
3908
|
+
...(input.Unauthenticated !== undefined &&
|
|
3909
|
+
input.Unauthenticated !== null && {
|
|
3910
|
+
unauthenticated: serializeAws_restJson1Unauthenticated(input.Unauthenticated, context),
|
|
3911
|
+
}),
|
|
3768
3912
|
};
|
|
3769
3913
|
};
|
|
3770
3914
|
const serializeAws_restJson1CloudWatchLogs = (input, context) => {
|
|
@@ -3887,6 +4031,12 @@ const serializeAws_restJson1Tls = (input, context) => {
|
|
|
3887
4031
|
input.CertificateAuthorityArnList !== null && {
|
|
3888
4032
|
certificateAuthorityArnList: serializeAws_restJson1__listOf__string(input.CertificateAuthorityArnList, context),
|
|
3889
4033
|
}),
|
|
4034
|
+
...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
|
|
4035
|
+
};
|
|
4036
|
+
};
|
|
4037
|
+
const serializeAws_restJson1Unauthenticated = (input, context) => {
|
|
4038
|
+
return {
|
|
4039
|
+
...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
|
|
3890
4040
|
};
|
|
3891
4041
|
};
|
|
3892
4042
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
@@ -3896,7 +4046,7 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
3896
4046
|
if (entry === null) {
|
|
3897
4047
|
return null;
|
|
3898
4048
|
}
|
|
3899
|
-
return
|
|
4049
|
+
return smithy_client_1.expectString(entry);
|
|
3900
4050
|
});
|
|
3901
4051
|
};
|
|
3902
4052
|
const deserializeAws_restJson1__listOfBrokerEBSVolumeInfo = (output, context) => {
|
|
@@ -4006,14 +4156,14 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
4006
4156
|
}
|
|
4007
4157
|
return {
|
|
4008
4158
|
...acc,
|
|
4009
|
-
[key]:
|
|
4159
|
+
[key]: smithy_client_1.expectString(value),
|
|
4010
4160
|
};
|
|
4011
4161
|
}, {});
|
|
4012
4162
|
};
|
|
4013
4163
|
const deserializeAws_restJson1BrokerEBSVolumeInfo = (output, context) => {
|
|
4014
4164
|
return {
|
|
4015
|
-
KafkaBrokerNodeId:
|
|
4016
|
-
VolumeSizeGB:
|
|
4165
|
+
KafkaBrokerNodeId: smithy_client_1.expectString(output.kafkaBrokerNodeId),
|
|
4166
|
+
VolumeSizeGB: smithy_client_1.expectInt32(output.volumeSizeGB),
|
|
4017
4167
|
};
|
|
4018
4168
|
};
|
|
4019
4169
|
const deserializeAws_restJson1BrokerLogs = (output, context) => {
|
|
@@ -4029,11 +4179,11 @@ const deserializeAws_restJson1BrokerLogs = (output, context) => {
|
|
|
4029
4179
|
};
|
|
4030
4180
|
const deserializeAws_restJson1BrokerNodeGroupInfo = (output, context) => {
|
|
4031
4181
|
return {
|
|
4032
|
-
BrokerAZDistribution:
|
|
4182
|
+
BrokerAZDistribution: smithy_client_1.expectString(output.brokerAZDistribution),
|
|
4033
4183
|
ClientSubnets: output.clientSubnets !== undefined && output.clientSubnets !== null
|
|
4034
4184
|
? deserializeAws_restJson1__listOf__string(output.clientSubnets, context)
|
|
4035
4185
|
: undefined,
|
|
4036
|
-
InstanceType:
|
|
4186
|
+
InstanceType: smithy_client_1.expectString(output.instanceType),
|
|
4037
4187
|
SecurityGroups: output.securityGroups !== undefined && output.securityGroups !== null
|
|
4038
4188
|
? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
|
|
4039
4189
|
: undefined,
|
|
@@ -4044,10 +4194,10 @@ const deserializeAws_restJson1BrokerNodeGroupInfo = (output, context) => {
|
|
|
4044
4194
|
};
|
|
4045
4195
|
const deserializeAws_restJson1BrokerNodeInfo = (output, context) => {
|
|
4046
4196
|
return {
|
|
4047
|
-
AttachedENIId:
|
|
4048
|
-
BrokerId:
|
|
4049
|
-
ClientSubnet:
|
|
4050
|
-
ClientVpcIpAddress:
|
|
4197
|
+
AttachedENIId: smithy_client_1.expectString(output.attachedENIId),
|
|
4198
|
+
BrokerId: smithy_client_1.limitedParseDouble(output.brokerId),
|
|
4199
|
+
ClientSubnet: smithy_client_1.expectString(output.clientSubnet),
|
|
4200
|
+
ClientVpcIpAddress: smithy_client_1.expectString(output.clientVpcIpAddress),
|
|
4051
4201
|
CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
|
|
4052
4202
|
? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
|
|
4053
4203
|
: undefined,
|
|
@@ -4058,9 +4208,9 @@ const deserializeAws_restJson1BrokerNodeInfo = (output, context) => {
|
|
|
4058
4208
|
};
|
|
4059
4209
|
const deserializeAws_restJson1BrokerSoftwareInfo = (output, context) => {
|
|
4060
4210
|
return {
|
|
4061
|
-
ConfigurationArn:
|
|
4062
|
-
ConfigurationRevision:
|
|
4063
|
-
KafkaVersion:
|
|
4211
|
+
ConfigurationArn: smithy_client_1.expectString(output.configurationArn),
|
|
4212
|
+
ConfigurationRevision: smithy_client_1.expectLong(output.configurationRevision),
|
|
4213
|
+
KafkaVersion: smithy_client_1.expectString(output.kafkaVersion),
|
|
4064
4214
|
};
|
|
4065
4215
|
};
|
|
4066
4216
|
const deserializeAws_restJson1ClientAuthentication = (output, context) => {
|
|
@@ -4069,67 +4219,76 @@ const deserializeAws_restJson1ClientAuthentication = (output, context) => {
|
|
|
4069
4219
|
? deserializeAws_restJson1Sasl(output.sasl, context)
|
|
4070
4220
|
: undefined,
|
|
4071
4221
|
Tls: output.tls !== undefined && output.tls !== null ? deserializeAws_restJson1Tls(output.tls, context) : undefined,
|
|
4222
|
+
Unauthenticated: output.unauthenticated !== undefined && output.unauthenticated !== null
|
|
4223
|
+
? deserializeAws_restJson1Unauthenticated(output.unauthenticated, context)
|
|
4224
|
+
: undefined,
|
|
4072
4225
|
};
|
|
4073
4226
|
};
|
|
4074
4227
|
const deserializeAws_restJson1CloudWatchLogs = (output, context) => {
|
|
4075
4228
|
return {
|
|
4076
|
-
Enabled:
|
|
4077
|
-
LogGroup:
|
|
4229
|
+
Enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
4230
|
+
LogGroup: smithy_client_1.expectString(output.logGroup),
|
|
4078
4231
|
};
|
|
4079
4232
|
};
|
|
4080
4233
|
const deserializeAws_restJson1ClusterInfo = (output, context) => {
|
|
4081
4234
|
return {
|
|
4082
|
-
ActiveOperationArn:
|
|
4235
|
+
ActiveOperationArn: smithy_client_1.expectString(output.activeOperationArn),
|
|
4083
4236
|
BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
|
|
4084
4237
|
? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
|
|
4085
4238
|
: undefined,
|
|
4086
4239
|
ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
|
|
4087
4240
|
? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
|
|
4088
4241
|
: undefined,
|
|
4089
|
-
ClusterArn:
|
|
4090
|
-
ClusterName:
|
|
4091
|
-
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4242
|
+
ClusterArn: smithy_client_1.expectString(output.clusterArn),
|
|
4243
|
+
ClusterName: smithy_client_1.expectString(output.clusterName),
|
|
4244
|
+
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4245
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
4246
|
+
: undefined,
|
|
4092
4247
|
CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
|
|
4093
4248
|
? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
|
|
4094
4249
|
: undefined,
|
|
4095
|
-
CurrentVersion:
|
|
4250
|
+
CurrentVersion: smithy_client_1.expectString(output.currentVersion),
|
|
4096
4251
|
EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
|
|
4097
4252
|
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
4098
4253
|
: undefined,
|
|
4099
|
-
EnhancedMonitoring:
|
|
4254
|
+
EnhancedMonitoring: smithy_client_1.expectString(output.enhancedMonitoring),
|
|
4100
4255
|
LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
|
|
4101
4256
|
? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
|
|
4102
4257
|
: undefined,
|
|
4103
|
-
NumberOfBrokerNodes:
|
|
4258
|
+
NumberOfBrokerNodes: smithy_client_1.expectInt32(output.numberOfBrokerNodes),
|
|
4104
4259
|
OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
|
|
4105
4260
|
? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
|
|
4106
4261
|
: undefined,
|
|
4107
|
-
State:
|
|
4262
|
+
State: smithy_client_1.expectString(output.state),
|
|
4108
4263
|
StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
|
|
4109
4264
|
? deserializeAws_restJson1StateInfo(output.stateInfo, context)
|
|
4110
4265
|
: undefined,
|
|
4111
4266
|
Tags: output.tags !== undefined && output.tags !== null
|
|
4112
4267
|
? deserializeAws_restJson1__mapOf__string(output.tags, context)
|
|
4113
4268
|
: undefined,
|
|
4114
|
-
ZookeeperConnectString:
|
|
4115
|
-
ZookeeperConnectStringTls:
|
|
4269
|
+
ZookeeperConnectString: smithy_client_1.expectString(output.zookeeperConnectString),
|
|
4270
|
+
ZookeeperConnectStringTls: smithy_client_1.expectString(output.zookeeperConnectStringTls),
|
|
4116
4271
|
};
|
|
4117
4272
|
};
|
|
4118
4273
|
const deserializeAws_restJson1ClusterOperationInfo = (output, context) => {
|
|
4119
4274
|
return {
|
|
4120
|
-
ClientRequestId:
|
|
4121
|
-
ClusterArn:
|
|
4122
|
-
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4123
|
-
|
|
4275
|
+
ClientRequestId: smithy_client_1.expectString(output.clientRequestId),
|
|
4276
|
+
ClusterArn: smithy_client_1.expectString(output.clusterArn),
|
|
4277
|
+
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4278
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
4279
|
+
: undefined,
|
|
4280
|
+
EndTime: output.endTime !== undefined && output.endTime !== null
|
|
4281
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.endTime))
|
|
4282
|
+
: undefined,
|
|
4124
4283
|
ErrorInfo: output.errorInfo !== undefined && output.errorInfo !== null
|
|
4125
4284
|
? deserializeAws_restJson1ErrorInfo(output.errorInfo, context)
|
|
4126
4285
|
: undefined,
|
|
4127
|
-
OperationArn:
|
|
4128
|
-
OperationState:
|
|
4286
|
+
OperationArn: smithy_client_1.expectString(output.operationArn),
|
|
4287
|
+
OperationState: smithy_client_1.expectString(output.operationState),
|
|
4129
4288
|
OperationSteps: output.operationSteps !== undefined && output.operationSteps !== null
|
|
4130
4289
|
? deserializeAws_restJson1__listOfClusterOperationStep(output.operationSteps, context)
|
|
4131
4290
|
: undefined,
|
|
4132
|
-
OperationType:
|
|
4291
|
+
OperationType: smithy_client_1.expectString(output.operationType),
|
|
4133
4292
|
SourceClusterInfo: output.sourceClusterInfo !== undefined && output.sourceClusterInfo !== null
|
|
4134
4293
|
? deserializeAws_restJson1MutableClusterInfo(output.sourceClusterInfo, context)
|
|
4135
4294
|
: undefined,
|
|
@@ -4143,17 +4302,17 @@ const deserializeAws_restJson1ClusterOperationStep = (output, context) => {
|
|
|
4143
4302
|
StepInfo: output.stepInfo !== undefined && output.stepInfo !== null
|
|
4144
4303
|
? deserializeAws_restJson1ClusterOperationStepInfo(output.stepInfo, context)
|
|
4145
4304
|
: undefined,
|
|
4146
|
-
StepName:
|
|
4305
|
+
StepName: smithy_client_1.expectString(output.stepName),
|
|
4147
4306
|
};
|
|
4148
4307
|
};
|
|
4149
4308
|
const deserializeAws_restJson1ClusterOperationStepInfo = (output, context) => {
|
|
4150
4309
|
return {
|
|
4151
|
-
StepStatus:
|
|
4310
|
+
StepStatus: smithy_client_1.expectString(output.stepStatus),
|
|
4152
4311
|
};
|
|
4153
4312
|
};
|
|
4154
4313
|
const deserializeAws_restJson1CompatibleKafkaVersion = (output, context) => {
|
|
4155
4314
|
return {
|
|
4156
|
-
SourceVersion:
|
|
4315
|
+
SourceVersion: smithy_client_1.expectString(output.sourceVersion),
|
|
4157
4316
|
TargetVersions: output.targetVersions !== undefined && output.targetVersions !== null
|
|
4158
4317
|
? deserializeAws_restJson1__listOf__string(output.targetVersions, context)
|
|
4159
4318
|
: undefined,
|
|
@@ -4161,40 +4320,44 @@ const deserializeAws_restJson1CompatibleKafkaVersion = (output, context) => {
|
|
|
4161
4320
|
};
|
|
4162
4321
|
const deserializeAws_restJson1Configuration = (output, context) => {
|
|
4163
4322
|
return {
|
|
4164
|
-
Arn:
|
|
4165
|
-
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4166
|
-
|
|
4323
|
+
Arn: smithy_client_1.expectString(output.arn),
|
|
4324
|
+
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4325
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
4326
|
+
: undefined,
|
|
4327
|
+
Description: smithy_client_1.expectString(output.description),
|
|
4167
4328
|
KafkaVersions: output.kafkaVersions !== undefined && output.kafkaVersions !== null
|
|
4168
4329
|
? deserializeAws_restJson1__listOf__string(output.kafkaVersions, context)
|
|
4169
4330
|
: undefined,
|
|
4170
4331
|
LatestRevision: output.latestRevision !== undefined && output.latestRevision !== null
|
|
4171
4332
|
? deserializeAws_restJson1ConfigurationRevision(output.latestRevision, context)
|
|
4172
4333
|
: undefined,
|
|
4173
|
-
Name:
|
|
4174
|
-
State:
|
|
4334
|
+
Name: smithy_client_1.expectString(output.name),
|
|
4335
|
+
State: smithy_client_1.expectString(output.state),
|
|
4175
4336
|
};
|
|
4176
4337
|
};
|
|
4177
4338
|
const deserializeAws_restJson1ConfigurationInfo = (output, context) => {
|
|
4178
4339
|
return {
|
|
4179
|
-
Arn:
|
|
4180
|
-
Revision:
|
|
4340
|
+
Arn: smithy_client_1.expectString(output.arn),
|
|
4341
|
+
Revision: smithy_client_1.expectLong(output.revision),
|
|
4181
4342
|
};
|
|
4182
4343
|
};
|
|
4183
4344
|
const deserializeAws_restJson1ConfigurationRevision = (output, context) => {
|
|
4184
4345
|
return {
|
|
4185
|
-
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4186
|
-
|
|
4187
|
-
|
|
4346
|
+
CreationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
4347
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
4348
|
+
: undefined,
|
|
4349
|
+
Description: smithy_client_1.expectString(output.description),
|
|
4350
|
+
Revision: smithy_client_1.expectLong(output.revision),
|
|
4188
4351
|
};
|
|
4189
4352
|
};
|
|
4190
4353
|
const deserializeAws_restJson1EBSStorageInfo = (output, context) => {
|
|
4191
4354
|
return {
|
|
4192
|
-
VolumeSize:
|
|
4355
|
+
VolumeSize: smithy_client_1.expectInt32(output.volumeSize),
|
|
4193
4356
|
};
|
|
4194
4357
|
};
|
|
4195
4358
|
const deserializeAws_restJson1EncryptionAtRest = (output, context) => {
|
|
4196
4359
|
return {
|
|
4197
|
-
DataVolumeKMSKeyId:
|
|
4360
|
+
DataVolumeKMSKeyId: smithy_client_1.expectString(output.dataVolumeKMSKeyId),
|
|
4198
4361
|
};
|
|
4199
4362
|
};
|
|
4200
4363
|
const deserializeAws_restJson1EncryptionInfo = (output, context) => {
|
|
@@ -4209,36 +4372,36 @@ const deserializeAws_restJson1EncryptionInfo = (output, context) => {
|
|
|
4209
4372
|
};
|
|
4210
4373
|
const deserializeAws_restJson1EncryptionInTransit = (output, context) => {
|
|
4211
4374
|
return {
|
|
4212
|
-
ClientBroker:
|
|
4213
|
-
InCluster:
|
|
4375
|
+
ClientBroker: smithy_client_1.expectString(output.clientBroker),
|
|
4376
|
+
InCluster: smithy_client_1.expectBoolean(output.inCluster),
|
|
4214
4377
|
};
|
|
4215
4378
|
};
|
|
4216
4379
|
const deserializeAws_restJson1ErrorInfo = (output, context) => {
|
|
4217
4380
|
return {
|
|
4218
|
-
ErrorCode:
|
|
4219
|
-
ErrorString:
|
|
4381
|
+
ErrorCode: smithy_client_1.expectString(output.errorCode),
|
|
4382
|
+
ErrorString: smithy_client_1.expectString(output.errorString),
|
|
4220
4383
|
};
|
|
4221
4384
|
};
|
|
4222
4385
|
const deserializeAws_restJson1Firehose = (output, context) => {
|
|
4223
4386
|
return {
|
|
4224
|
-
DeliveryStream:
|
|
4225
|
-
Enabled:
|
|
4387
|
+
DeliveryStream: smithy_client_1.expectString(output.deliveryStream),
|
|
4388
|
+
Enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
4226
4389
|
};
|
|
4227
4390
|
};
|
|
4228
4391
|
const deserializeAws_restJson1Iam = (output, context) => {
|
|
4229
4392
|
return {
|
|
4230
|
-
Enabled:
|
|
4393
|
+
Enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
4231
4394
|
};
|
|
4232
4395
|
};
|
|
4233
4396
|
const deserializeAws_restJson1JmxExporter = (output, context) => {
|
|
4234
4397
|
return {
|
|
4235
|
-
EnabledInBroker:
|
|
4398
|
+
EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
|
|
4236
4399
|
};
|
|
4237
4400
|
};
|
|
4238
4401
|
const deserializeAws_restJson1KafkaVersion = (output, context) => {
|
|
4239
4402
|
return {
|
|
4240
|
-
Status:
|
|
4241
|
-
Version:
|
|
4403
|
+
Status: smithy_client_1.expectString(output.status),
|
|
4404
|
+
Version: smithy_client_1.expectString(output.version),
|
|
4242
4405
|
};
|
|
4243
4406
|
};
|
|
4244
4407
|
const deserializeAws_restJson1LoggingInfo = (output, context) => {
|
|
@@ -4253,16 +4416,22 @@ const deserializeAws_restJson1MutableClusterInfo = (output, context) => {
|
|
|
4253
4416
|
BrokerEBSVolumeInfo: output.brokerEBSVolumeInfo !== undefined && output.brokerEBSVolumeInfo !== null
|
|
4254
4417
|
? deserializeAws_restJson1__listOfBrokerEBSVolumeInfo(output.brokerEBSVolumeInfo, context)
|
|
4255
4418
|
: undefined,
|
|
4419
|
+
ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
|
|
4420
|
+
? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
|
|
4421
|
+
: undefined,
|
|
4256
4422
|
ConfigurationInfo: output.configurationInfo !== undefined && output.configurationInfo !== null
|
|
4257
4423
|
? deserializeAws_restJson1ConfigurationInfo(output.configurationInfo, context)
|
|
4258
4424
|
: undefined,
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4425
|
+
EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
|
|
4426
|
+
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
4427
|
+
: undefined,
|
|
4428
|
+
EnhancedMonitoring: smithy_client_1.expectString(output.enhancedMonitoring),
|
|
4429
|
+
InstanceType: smithy_client_1.expectString(output.instanceType),
|
|
4430
|
+
KafkaVersion: smithy_client_1.expectString(output.kafkaVersion),
|
|
4262
4431
|
LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
|
|
4263
4432
|
? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
|
|
4264
4433
|
: undefined,
|
|
4265
|
-
NumberOfBrokerNodes:
|
|
4434
|
+
NumberOfBrokerNodes: smithy_client_1.expectInt32(output.numberOfBrokerNodes),
|
|
4266
4435
|
OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
|
|
4267
4436
|
? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
|
|
4268
4437
|
: undefined,
|
|
@@ -4270,18 +4439,18 @@ const deserializeAws_restJson1MutableClusterInfo = (output, context) => {
|
|
|
4270
4439
|
};
|
|
4271
4440
|
const deserializeAws_restJson1NodeExporter = (output, context) => {
|
|
4272
4441
|
return {
|
|
4273
|
-
EnabledInBroker:
|
|
4442
|
+
EnabledInBroker: smithy_client_1.expectBoolean(output.enabledInBroker),
|
|
4274
4443
|
};
|
|
4275
4444
|
};
|
|
4276
4445
|
const deserializeAws_restJson1NodeInfo = (output, context) => {
|
|
4277
4446
|
return {
|
|
4278
|
-
AddedToClusterTime:
|
|
4447
|
+
AddedToClusterTime: smithy_client_1.expectString(output.addedToClusterTime),
|
|
4279
4448
|
BrokerNodeInfo: output.brokerNodeInfo !== undefined && output.brokerNodeInfo !== null
|
|
4280
4449
|
? deserializeAws_restJson1BrokerNodeInfo(output.brokerNodeInfo, context)
|
|
4281
4450
|
: undefined,
|
|
4282
|
-
InstanceType:
|
|
4283
|
-
NodeARN:
|
|
4284
|
-
NodeType:
|
|
4451
|
+
InstanceType: smithy_client_1.expectString(output.instanceType),
|
|
4452
|
+
NodeARN: smithy_client_1.expectString(output.nodeARN),
|
|
4453
|
+
NodeType: smithy_client_1.expectString(output.nodeType),
|
|
4285
4454
|
ZookeeperNodeInfo: output.zookeeperNodeInfo !== undefined && output.zookeeperNodeInfo !== null
|
|
4286
4455
|
? deserializeAws_restJson1ZookeeperNodeInfo(output.zookeeperNodeInfo, context)
|
|
4287
4456
|
: undefined,
|
|
@@ -4306,9 +4475,9 @@ const deserializeAws_restJson1Prometheus = (output, context) => {
|
|
|
4306
4475
|
};
|
|
4307
4476
|
const deserializeAws_restJson1S3 = (output, context) => {
|
|
4308
4477
|
return {
|
|
4309
|
-
Bucket:
|
|
4310
|
-
Enabled:
|
|
4311
|
-
Prefix:
|
|
4478
|
+
Bucket: smithy_client_1.expectString(output.bucket),
|
|
4479
|
+
Enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
4480
|
+
Prefix: smithy_client_1.expectString(output.prefix),
|
|
4312
4481
|
};
|
|
4313
4482
|
};
|
|
4314
4483
|
const deserializeAws_restJson1Sasl = (output, context) => {
|
|
@@ -4321,13 +4490,13 @@ const deserializeAws_restJson1Sasl = (output, context) => {
|
|
|
4321
4490
|
};
|
|
4322
4491
|
const deserializeAws_restJson1Scram = (output, context) => {
|
|
4323
4492
|
return {
|
|
4324
|
-
Enabled:
|
|
4493
|
+
Enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
4325
4494
|
};
|
|
4326
4495
|
};
|
|
4327
4496
|
const deserializeAws_restJson1StateInfo = (output, context) => {
|
|
4328
4497
|
return {
|
|
4329
|
-
Code:
|
|
4330
|
-
Message:
|
|
4498
|
+
Code: smithy_client_1.expectString(output.code),
|
|
4499
|
+
Message: smithy_client_1.expectString(output.message),
|
|
4331
4500
|
};
|
|
4332
4501
|
};
|
|
4333
4502
|
const deserializeAws_restJson1StorageInfo = (output, context) => {
|
|
@@ -4342,24 +4511,30 @@ const deserializeAws_restJson1Tls = (output, context) => {
|
|
|
4342
4511
|
CertificateAuthorityArnList: output.certificateAuthorityArnList !== undefined && output.certificateAuthorityArnList !== null
|
|
4343
4512
|
? deserializeAws_restJson1__listOf__string(output.certificateAuthorityArnList, context)
|
|
4344
4513
|
: undefined,
|
|
4514
|
+
Enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
4515
|
+
};
|
|
4516
|
+
};
|
|
4517
|
+
const deserializeAws_restJson1Unauthenticated = (output, context) => {
|
|
4518
|
+
return {
|
|
4519
|
+
Enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
4345
4520
|
};
|
|
4346
4521
|
};
|
|
4347
4522
|
const deserializeAws_restJson1UnprocessedScramSecret = (output, context) => {
|
|
4348
4523
|
return {
|
|
4349
|
-
ErrorCode:
|
|
4350
|
-
ErrorMessage:
|
|
4351
|
-
SecretArn:
|
|
4524
|
+
ErrorCode: smithy_client_1.expectString(output.errorCode),
|
|
4525
|
+
ErrorMessage: smithy_client_1.expectString(output.errorMessage),
|
|
4526
|
+
SecretArn: smithy_client_1.expectString(output.secretArn),
|
|
4352
4527
|
};
|
|
4353
4528
|
};
|
|
4354
4529
|
const deserializeAws_restJson1ZookeeperNodeInfo = (output, context) => {
|
|
4355
4530
|
return {
|
|
4356
|
-
AttachedENIId:
|
|
4357
|
-
ClientVpcIpAddress:
|
|
4531
|
+
AttachedENIId: smithy_client_1.expectString(output.attachedENIId),
|
|
4532
|
+
ClientVpcIpAddress: smithy_client_1.expectString(output.clientVpcIpAddress),
|
|
4358
4533
|
Endpoints: output.endpoints !== undefined && output.endpoints !== null
|
|
4359
4534
|
? deserializeAws_restJson1__listOf__string(output.endpoints, context)
|
|
4360
4535
|
: undefined,
|
|
4361
|
-
ZookeeperId:
|
|
4362
|
-
ZookeeperVersion:
|
|
4536
|
+
ZookeeperId: smithy_client_1.limitedParseDouble(output.zookeeperId),
|
|
4537
|
+
ZookeeperVersion: smithy_client_1.expectString(output.zookeeperVersion),
|
|
4363
4538
|
};
|
|
4364
4539
|
};
|
|
4365
4540
|
const deserializeMetadata = (output) => {
|