@aws-sdk/client-kafka 3.303.0 → 3.309.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/dist-cjs/commands/BatchAssociateScramSecretCommand.js +2 -2
- package/dist-cjs/commands/BatchDisassociateScramSecretCommand.js +2 -2
- package/dist-cjs/commands/CreateClusterCommand.js +2 -2
- package/dist-cjs/commands/CreateClusterV2Command.js +2 -2
- package/dist-cjs/commands/CreateConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteClusterCommand.js +2 -2
- package/dist-cjs/commands/DeleteConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeClusterCommand.js +2 -2
- package/dist-cjs/commands/DescribeClusterOperationCommand.js +2 -2
- package/dist-cjs/commands/DescribeClusterV2Command.js +2 -2
- package/dist-cjs/commands/DescribeConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DescribeConfigurationRevisionCommand.js +2 -2
- package/dist-cjs/commands/GetBootstrapBrokersCommand.js +2 -2
- package/dist-cjs/commands/GetCompatibleKafkaVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListClusterOperationsCommand.js +2 -2
- package/dist-cjs/commands/ListClustersCommand.js +2 -2
- package/dist-cjs/commands/ListClustersV2Command.js +2 -2
- package/dist-cjs/commands/ListConfigurationRevisionsCommand.js +2 -2
- package/dist-cjs/commands/ListConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListKafkaVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListNodesCommand.js +2 -2
- package/dist-cjs/commands/ListScramSecretsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/RebootBrokerCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateBrokerCountCommand.js +2 -2
- package/dist-cjs/commands/UpdateBrokerStorageCommand.js +2 -2
- package/dist-cjs/commands/UpdateBrokerTypeCommand.js +2 -2
- package/dist-cjs/commands/UpdateClusterConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateClusterKafkaVersionCommand.js +2 -2
- package/dist-cjs/commands/UpdateConfigurationCommand.js +2 -2
- package/dist-cjs/commands/UpdateConnectivityCommand.js +2 -2
- package/dist-cjs/commands/UpdateMonitoringCommand.js +2 -2
- package/dist-cjs/commands/UpdateSecurityCommand.js +2 -2
- package/dist-cjs/commands/UpdateStorageCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +686 -790
- package/dist-es/commands/BatchAssociateScramSecretCommand.js +3 -3
- package/dist-es/commands/BatchDisassociateScramSecretCommand.js +3 -3
- package/dist-es/commands/CreateClusterCommand.js +3 -3
- package/dist-es/commands/CreateClusterV2Command.js +3 -3
- package/dist-es/commands/CreateConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteClusterCommand.js +3 -3
- package/dist-es/commands/DeleteConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeClusterCommand.js +3 -3
- package/dist-es/commands/DescribeClusterOperationCommand.js +3 -3
- package/dist-es/commands/DescribeClusterV2Command.js +3 -3
- package/dist-es/commands/DescribeConfigurationCommand.js +3 -3
- package/dist-es/commands/DescribeConfigurationRevisionCommand.js +3 -3
- package/dist-es/commands/GetBootstrapBrokersCommand.js +3 -3
- package/dist-es/commands/GetCompatibleKafkaVersionsCommand.js +3 -3
- package/dist-es/commands/ListClusterOperationsCommand.js +3 -3
- package/dist-es/commands/ListClustersCommand.js +3 -3
- package/dist-es/commands/ListClustersV2Command.js +3 -3
- package/dist-es/commands/ListConfigurationRevisionsCommand.js +3 -3
- package/dist-es/commands/ListConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListKafkaVersionsCommand.js +3 -3
- package/dist-es/commands/ListNodesCommand.js +3 -3
- package/dist-es/commands/ListScramSecretsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/RebootBrokerCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateBrokerCountCommand.js +3 -3
- package/dist-es/commands/UpdateBrokerStorageCommand.js +3 -3
- package/dist-es/commands/UpdateBrokerTypeCommand.js +3 -3
- package/dist-es/commands/UpdateClusterConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateClusterKafkaVersionCommand.js +3 -3
- package/dist-es/commands/UpdateConfigurationCommand.js +3 -3
- package/dist-es/commands/UpdateConnectivityCommand.js +3 -3
- package/dist-es/commands/UpdateMonitoringCommand.js +3 -3
- package/dist-es/commands/UpdateSecurityCommand.js +3 -3
- package/dist-es/commands/UpdateStorageCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +612 -716
- package/dist-types/protocols/Aws_restJson1.d.ts +288 -72
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -72
- package/package.json +29 -29
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { KafkaServiceException as __BaseException } from "../models/KafkaServiceException";
|
|
4
4
|
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_BatchAssociateScramSecretCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -11,9 +11,7 @@ export const serializeAws_restJson1BatchAssociateScramSecretCommand = async (inp
|
|
|
11
11
|
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify({
|
|
14
|
-
...(input.SecretArnList != null && {
|
|
15
|
-
secretArnList: serializeAws_restJson1__listOf__string(input.SecretArnList, context),
|
|
16
|
-
}),
|
|
14
|
+
...(input.SecretArnList != null && { secretArnList: se___listOf__string(input.SecretArnList, context) }),
|
|
17
15
|
});
|
|
18
16
|
return new __HttpRequest({
|
|
19
17
|
protocol,
|
|
@@ -25,7 +23,7 @@ export const serializeAws_restJson1BatchAssociateScramSecretCommand = async (inp
|
|
|
25
23
|
body,
|
|
26
24
|
});
|
|
27
25
|
};
|
|
28
|
-
export const
|
|
26
|
+
export const se_BatchDisassociateScramSecretCommand = async (input, context) => {
|
|
29
27
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
30
28
|
const headers = {
|
|
31
29
|
"content-type": "application/json",
|
|
@@ -34,9 +32,7 @@ export const serializeAws_restJson1BatchDisassociateScramSecretCommand = async (
|
|
|
34
32
|
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
|
|
35
33
|
let body;
|
|
36
34
|
body = JSON.stringify({
|
|
37
|
-
...(input.SecretArnList != null && {
|
|
38
|
-
secretArnList: serializeAws_restJson1__listOf__string(input.SecretArnList, context),
|
|
39
|
-
}),
|
|
35
|
+
...(input.SecretArnList != null && { secretArnList: se___listOf__string(input.SecretArnList, context) }),
|
|
40
36
|
});
|
|
41
37
|
return new __HttpRequest({
|
|
42
38
|
protocol,
|
|
@@ -48,7 +44,7 @@ export const serializeAws_restJson1BatchDisassociateScramSecretCommand = async (
|
|
|
48
44
|
body,
|
|
49
45
|
});
|
|
50
46
|
};
|
|
51
|
-
export const
|
|
47
|
+
export const se_CreateClusterCommand = async (input, context) => {
|
|
52
48
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
53
49
|
const headers = {
|
|
54
50
|
"content-type": "application/json",
|
|
@@ -57,27 +53,23 @@ export const serializeAws_restJson1CreateClusterCommand = async (input, context)
|
|
|
57
53
|
let body;
|
|
58
54
|
body = JSON.stringify({
|
|
59
55
|
...(input.BrokerNodeGroupInfo != null && {
|
|
60
|
-
brokerNodeGroupInfo:
|
|
56
|
+
brokerNodeGroupInfo: se_BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
|
|
61
57
|
}),
|
|
62
58
|
...(input.ClientAuthentication != null && {
|
|
63
|
-
clientAuthentication:
|
|
59
|
+
clientAuthentication: se_ClientAuthentication(input.ClientAuthentication, context),
|
|
64
60
|
}),
|
|
65
61
|
...(input.ClusterName != null && { clusterName: input.ClusterName }),
|
|
66
62
|
...(input.ConfigurationInfo != null && {
|
|
67
|
-
configurationInfo:
|
|
68
|
-
}),
|
|
69
|
-
...(input.EncryptionInfo != null && {
|
|
70
|
-
encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
|
|
63
|
+
configurationInfo: se_ConfigurationInfo(input.ConfigurationInfo, context),
|
|
71
64
|
}),
|
|
65
|
+
...(input.EncryptionInfo != null && { encryptionInfo: se_EncryptionInfo(input.EncryptionInfo, context) }),
|
|
72
66
|
...(input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring }),
|
|
73
67
|
...(input.KafkaVersion != null && { kafkaVersion: input.KafkaVersion }),
|
|
74
|
-
...(input.LoggingInfo != null && { loggingInfo:
|
|
68
|
+
...(input.LoggingInfo != null && { loggingInfo: se_LoggingInfo(input.LoggingInfo, context) }),
|
|
75
69
|
...(input.NumberOfBrokerNodes != null && { numberOfBrokerNodes: input.NumberOfBrokerNodes }),
|
|
76
|
-
...(input.OpenMonitoring != null && {
|
|
77
|
-
openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
|
|
78
|
-
}),
|
|
70
|
+
...(input.OpenMonitoring != null && { openMonitoring: se_OpenMonitoringInfo(input.OpenMonitoring, context) }),
|
|
79
71
|
...(input.StorageMode != null && { storageMode: input.StorageMode }),
|
|
80
|
-
...(input.Tags != null && { tags:
|
|
72
|
+
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
81
73
|
});
|
|
82
74
|
return new __HttpRequest({
|
|
83
75
|
protocol,
|
|
@@ -89,7 +81,7 @@ export const serializeAws_restJson1CreateClusterCommand = async (input, context)
|
|
|
89
81
|
body,
|
|
90
82
|
});
|
|
91
83
|
};
|
|
92
|
-
export const
|
|
84
|
+
export const se_CreateClusterV2Command = async (input, context) => {
|
|
93
85
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
94
86
|
const headers = {
|
|
95
87
|
"content-type": "application/json",
|
|
@@ -98,11 +90,9 @@ export const serializeAws_restJson1CreateClusterV2Command = async (input, contex
|
|
|
98
90
|
let body;
|
|
99
91
|
body = JSON.stringify({
|
|
100
92
|
...(input.ClusterName != null && { clusterName: input.ClusterName }),
|
|
101
|
-
...(input.Provisioned != null && {
|
|
102
|
-
|
|
103
|
-
}),
|
|
104
|
-
...(input.Serverless != null && { serverless: serializeAws_restJson1ServerlessRequest(input.Serverless, context) }),
|
|
105
|
-
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
93
|
+
...(input.Provisioned != null && { provisioned: se_ProvisionedRequest(input.Provisioned, context) }),
|
|
94
|
+
...(input.Serverless != null && { serverless: se_ServerlessRequest(input.Serverless, context) }),
|
|
95
|
+
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
106
96
|
});
|
|
107
97
|
return new __HttpRequest({
|
|
108
98
|
protocol,
|
|
@@ -114,7 +104,7 @@ export const serializeAws_restJson1CreateClusterV2Command = async (input, contex
|
|
|
114
104
|
body,
|
|
115
105
|
});
|
|
116
106
|
};
|
|
117
|
-
export const
|
|
107
|
+
export const se_CreateConfigurationCommand = async (input, context) => {
|
|
118
108
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
119
109
|
const headers = {
|
|
120
110
|
"content-type": "application/json",
|
|
@@ -123,9 +113,7 @@ export const serializeAws_restJson1CreateConfigurationCommand = async (input, co
|
|
|
123
113
|
let body;
|
|
124
114
|
body = JSON.stringify({
|
|
125
115
|
...(input.Description != null && { description: input.Description }),
|
|
126
|
-
...(input.KafkaVersions != null && {
|
|
127
|
-
kafkaVersions: serializeAws_restJson1__listOf__string(input.KafkaVersions, context),
|
|
128
|
-
}),
|
|
116
|
+
...(input.KafkaVersions != null && { kafkaVersions: se___listOf__string(input.KafkaVersions, context) }),
|
|
129
117
|
...(input.Name != null && { name: input.Name }),
|
|
130
118
|
...(input.ServerProperties != null && { serverProperties: context.base64Encoder(input.ServerProperties) }),
|
|
131
119
|
});
|
|
@@ -139,7 +127,7 @@ export const serializeAws_restJson1CreateConfigurationCommand = async (input, co
|
|
|
139
127
|
body,
|
|
140
128
|
});
|
|
141
129
|
};
|
|
142
|
-
export const
|
|
130
|
+
export const se_DeleteClusterCommand = async (input, context) => {
|
|
143
131
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
144
132
|
const headers = {};
|
|
145
133
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}";
|
|
@@ -159,7 +147,7 @@ export const serializeAws_restJson1DeleteClusterCommand = async (input, context)
|
|
|
159
147
|
body,
|
|
160
148
|
});
|
|
161
149
|
};
|
|
162
|
-
export const
|
|
150
|
+
export const se_DeleteConfigurationCommand = async (input, context) => {
|
|
163
151
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
164
152
|
const headers = {};
|
|
165
153
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{Arn}";
|
|
@@ -175,7 +163,7 @@ export const serializeAws_restJson1DeleteConfigurationCommand = async (input, co
|
|
|
175
163
|
body,
|
|
176
164
|
});
|
|
177
165
|
};
|
|
178
|
-
export const
|
|
166
|
+
export const se_DescribeClusterCommand = async (input, context) => {
|
|
179
167
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
180
168
|
const headers = {};
|
|
181
169
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}";
|
|
@@ -191,7 +179,7 @@ export const serializeAws_restJson1DescribeClusterCommand = async (input, contex
|
|
|
191
179
|
body,
|
|
192
180
|
});
|
|
193
181
|
};
|
|
194
|
-
export const
|
|
182
|
+
export const se_DescribeClusterOperationCommand = async (input, context) => {
|
|
195
183
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
196
184
|
const headers = {};
|
|
197
185
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/operations/{ClusterOperationArn}";
|
|
@@ -207,7 +195,7 @@ export const serializeAws_restJson1DescribeClusterOperationCommand = async (inpu
|
|
|
207
195
|
body,
|
|
208
196
|
});
|
|
209
197
|
};
|
|
210
|
-
export const
|
|
198
|
+
export const se_DescribeClusterV2Command = async (input, context) => {
|
|
211
199
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
200
|
const headers = {};
|
|
213
201
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters/{ClusterArn}";
|
|
@@ -223,7 +211,7 @@ export const serializeAws_restJson1DescribeClusterV2Command = async (input, cont
|
|
|
223
211
|
body,
|
|
224
212
|
});
|
|
225
213
|
};
|
|
226
|
-
export const
|
|
214
|
+
export const se_DescribeConfigurationCommand = async (input, context) => {
|
|
227
215
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
228
216
|
const headers = {};
|
|
229
217
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{Arn}";
|
|
@@ -239,7 +227,7 @@ export const serializeAws_restJson1DescribeConfigurationCommand = async (input,
|
|
|
239
227
|
body,
|
|
240
228
|
});
|
|
241
229
|
};
|
|
242
|
-
export const
|
|
230
|
+
export const se_DescribeConfigurationRevisionCommand = async (input, context) => {
|
|
243
231
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
244
232
|
const headers = {};
|
|
245
233
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -257,7 +245,7 @@ export const serializeAws_restJson1DescribeConfigurationRevisionCommand = async
|
|
|
257
245
|
body,
|
|
258
246
|
});
|
|
259
247
|
};
|
|
260
|
-
export const
|
|
248
|
+
export const se_GetBootstrapBrokersCommand = async (input, context) => {
|
|
261
249
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
262
250
|
const headers = {};
|
|
263
251
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -274,7 +262,7 @@ export const serializeAws_restJson1GetBootstrapBrokersCommand = async (input, co
|
|
|
274
262
|
body,
|
|
275
263
|
});
|
|
276
264
|
};
|
|
277
|
-
export const
|
|
265
|
+
export const se_GetCompatibleKafkaVersionsCommand = async (input, context) => {
|
|
278
266
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
279
267
|
const headers = {};
|
|
280
268
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/compatible-kafka-versions";
|
|
@@ -293,7 +281,7 @@ export const serializeAws_restJson1GetCompatibleKafkaVersionsCommand = async (in
|
|
|
293
281
|
body,
|
|
294
282
|
});
|
|
295
283
|
};
|
|
296
|
-
export const
|
|
284
|
+
export const se_ListClusterOperationsCommand = async (input, context) => {
|
|
297
285
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
298
286
|
const headers = {};
|
|
299
287
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/operations";
|
|
@@ -314,7 +302,7 @@ export const serializeAws_restJson1ListClusterOperationsCommand = async (input,
|
|
|
314
302
|
body,
|
|
315
303
|
});
|
|
316
304
|
};
|
|
317
|
-
export const
|
|
305
|
+
export const se_ListClustersCommand = async (input, context) => {
|
|
318
306
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
319
307
|
const headers = {};
|
|
320
308
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters";
|
|
@@ -335,7 +323,7 @@ export const serializeAws_restJson1ListClustersCommand = async (input, context)
|
|
|
335
323
|
body,
|
|
336
324
|
});
|
|
337
325
|
};
|
|
338
|
-
export const
|
|
326
|
+
export const se_ListClustersV2Command = async (input, context) => {
|
|
339
327
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
340
328
|
const headers = {};
|
|
341
329
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters";
|
|
@@ -357,7 +345,7 @@ export const serializeAws_restJson1ListClustersV2Command = async (input, context
|
|
|
357
345
|
body,
|
|
358
346
|
});
|
|
359
347
|
};
|
|
360
|
-
export const
|
|
348
|
+
export const se_ListConfigurationRevisionsCommand = async (input, context) => {
|
|
361
349
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
362
350
|
const headers = {};
|
|
363
351
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations/{Arn}/revisions";
|
|
@@ -378,7 +366,7 @@ export const serializeAws_restJson1ListConfigurationRevisionsCommand = async (in
|
|
|
378
366
|
body,
|
|
379
367
|
});
|
|
380
368
|
};
|
|
381
|
-
export const
|
|
369
|
+
export const se_ListConfigurationsCommand = async (input, context) => {
|
|
382
370
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
383
371
|
const headers = {};
|
|
384
372
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations";
|
|
@@ -398,7 +386,7 @@ export const serializeAws_restJson1ListConfigurationsCommand = async (input, con
|
|
|
398
386
|
body,
|
|
399
387
|
});
|
|
400
388
|
};
|
|
401
|
-
export const
|
|
389
|
+
export const se_ListKafkaVersionsCommand = async (input, context) => {
|
|
402
390
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
403
391
|
const headers = {};
|
|
404
392
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/kafka-versions";
|
|
@@ -418,7 +406,7 @@ export const serializeAws_restJson1ListKafkaVersionsCommand = async (input, cont
|
|
|
418
406
|
body,
|
|
419
407
|
});
|
|
420
408
|
};
|
|
421
|
-
export const
|
|
409
|
+
export const se_ListNodesCommand = async (input, context) => {
|
|
422
410
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
423
411
|
const headers = {};
|
|
424
412
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/nodes";
|
|
@@ -439,7 +427,7 @@ export const serializeAws_restJson1ListNodesCommand = async (input, context) =>
|
|
|
439
427
|
body,
|
|
440
428
|
});
|
|
441
429
|
};
|
|
442
|
-
export const
|
|
430
|
+
export const se_ListScramSecretsCommand = async (input, context) => {
|
|
443
431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
444
432
|
const headers = {};
|
|
445
433
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/scram-secrets";
|
|
@@ -460,7 +448,7 @@ export const serializeAws_restJson1ListScramSecretsCommand = async (input, conte
|
|
|
460
448
|
body,
|
|
461
449
|
});
|
|
462
450
|
};
|
|
463
|
-
export const
|
|
451
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
464
452
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
465
453
|
const headers = {};
|
|
466
454
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}";
|
|
@@ -476,7 +464,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
476
464
|
body,
|
|
477
465
|
});
|
|
478
466
|
};
|
|
479
|
-
export const
|
|
467
|
+
export const se_RebootBrokerCommand = async (input, context) => {
|
|
480
468
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
481
469
|
const headers = {
|
|
482
470
|
"content-type": "application/json",
|
|
@@ -485,7 +473,7 @@ export const serializeAws_restJson1RebootBrokerCommand = async (input, context)
|
|
|
485
473
|
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
|
|
486
474
|
let body;
|
|
487
475
|
body = JSON.stringify({
|
|
488
|
-
...(input.BrokerIds != null && { brokerIds:
|
|
476
|
+
...(input.BrokerIds != null && { brokerIds: se___listOf__string(input.BrokerIds, context) }),
|
|
489
477
|
});
|
|
490
478
|
return new __HttpRequest({
|
|
491
479
|
protocol,
|
|
@@ -497,7 +485,7 @@ export const serializeAws_restJson1RebootBrokerCommand = async (input, context)
|
|
|
497
485
|
body,
|
|
498
486
|
});
|
|
499
487
|
};
|
|
500
|
-
export const
|
|
488
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
501
489
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
502
490
|
const headers = {
|
|
503
491
|
"content-type": "application/json",
|
|
@@ -506,7 +494,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
506
494
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
507
495
|
let body;
|
|
508
496
|
body = JSON.stringify({
|
|
509
|
-
...(input.Tags != null && { tags:
|
|
497
|
+
...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
|
|
510
498
|
});
|
|
511
499
|
return new __HttpRequest({
|
|
512
500
|
protocol,
|
|
@@ -518,7 +506,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
518
506
|
body,
|
|
519
507
|
});
|
|
520
508
|
};
|
|
521
|
-
export const
|
|
509
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
522
510
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
523
511
|
const headers = {};
|
|
524
512
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{ResourceArn}";
|
|
@@ -541,7 +529,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
541
529
|
body,
|
|
542
530
|
});
|
|
543
531
|
};
|
|
544
|
-
export const
|
|
532
|
+
export const se_UpdateBrokerCountCommand = async (input, context) => {
|
|
545
533
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
546
534
|
const headers = {
|
|
547
535
|
"content-type": "application/json",
|
|
@@ -563,7 +551,7 @@ export const serializeAws_restJson1UpdateBrokerCountCommand = async (input, cont
|
|
|
563
551
|
body,
|
|
564
552
|
});
|
|
565
553
|
};
|
|
566
|
-
export const
|
|
554
|
+
export const se_UpdateBrokerStorageCommand = async (input, context) => {
|
|
567
555
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
568
556
|
const headers = {
|
|
569
557
|
"content-type": "application/json",
|
|
@@ -574,7 +562,7 @@ export const serializeAws_restJson1UpdateBrokerStorageCommand = async (input, co
|
|
|
574
562
|
body = JSON.stringify({
|
|
575
563
|
...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
|
|
576
564
|
...(input.TargetBrokerEBSVolumeInfo != null && {
|
|
577
|
-
targetBrokerEBSVolumeInfo:
|
|
565
|
+
targetBrokerEBSVolumeInfo: se___listOfBrokerEBSVolumeInfo(input.TargetBrokerEBSVolumeInfo, context),
|
|
578
566
|
}),
|
|
579
567
|
});
|
|
580
568
|
return new __HttpRequest({
|
|
@@ -587,7 +575,7 @@ export const serializeAws_restJson1UpdateBrokerStorageCommand = async (input, co
|
|
|
587
575
|
body,
|
|
588
576
|
});
|
|
589
577
|
};
|
|
590
|
-
export const
|
|
578
|
+
export const se_UpdateBrokerTypeCommand = async (input, context) => {
|
|
591
579
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
592
580
|
const headers = {
|
|
593
581
|
"content-type": "application/json",
|
|
@@ -609,7 +597,7 @@ export const serializeAws_restJson1UpdateBrokerTypeCommand = async (input, conte
|
|
|
609
597
|
body,
|
|
610
598
|
});
|
|
611
599
|
};
|
|
612
|
-
export const
|
|
600
|
+
export const se_UpdateClusterConfigurationCommand = async (input, context) => {
|
|
613
601
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
614
602
|
const headers = {
|
|
615
603
|
"content-type": "application/json",
|
|
@@ -619,7 +607,7 @@ export const serializeAws_restJson1UpdateClusterConfigurationCommand = async (in
|
|
|
619
607
|
let body;
|
|
620
608
|
body = JSON.stringify({
|
|
621
609
|
...(input.ConfigurationInfo != null && {
|
|
622
|
-
configurationInfo:
|
|
610
|
+
configurationInfo: se_ConfigurationInfo(input.ConfigurationInfo, context),
|
|
623
611
|
}),
|
|
624
612
|
...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
|
|
625
613
|
});
|
|
@@ -633,7 +621,7 @@ export const serializeAws_restJson1UpdateClusterConfigurationCommand = async (in
|
|
|
633
621
|
body,
|
|
634
622
|
});
|
|
635
623
|
};
|
|
636
|
-
export const
|
|
624
|
+
export const se_UpdateClusterKafkaVersionCommand = async (input, context) => {
|
|
637
625
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
638
626
|
const headers = {
|
|
639
627
|
"content-type": "application/json",
|
|
@@ -643,7 +631,7 @@ export const serializeAws_restJson1UpdateClusterKafkaVersionCommand = async (inp
|
|
|
643
631
|
let body;
|
|
644
632
|
body = JSON.stringify({
|
|
645
633
|
...(input.ConfigurationInfo != null && {
|
|
646
|
-
configurationInfo:
|
|
634
|
+
configurationInfo: se_ConfigurationInfo(input.ConfigurationInfo, context),
|
|
647
635
|
}),
|
|
648
636
|
...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
|
|
649
637
|
...(input.TargetKafkaVersion != null && { targetKafkaVersion: input.TargetKafkaVersion }),
|
|
@@ -658,7 +646,7 @@ export const serializeAws_restJson1UpdateClusterKafkaVersionCommand = async (inp
|
|
|
658
646
|
body,
|
|
659
647
|
});
|
|
660
648
|
};
|
|
661
|
-
export const
|
|
649
|
+
export const se_UpdateConfigurationCommand = async (input, context) => {
|
|
662
650
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
663
651
|
const headers = {
|
|
664
652
|
"content-type": "application/json",
|
|
@@ -680,7 +668,7 @@ export const serializeAws_restJson1UpdateConfigurationCommand = async (input, co
|
|
|
680
668
|
body,
|
|
681
669
|
});
|
|
682
670
|
};
|
|
683
|
-
export const
|
|
671
|
+
export const se_UpdateConnectivityCommand = async (input, context) => {
|
|
684
672
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
685
673
|
const headers = {
|
|
686
674
|
"content-type": "application/json",
|
|
@@ -689,9 +677,7 @@ export const serializeAws_restJson1UpdateConnectivityCommand = async (input, con
|
|
|
689
677
|
resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
|
|
690
678
|
let body;
|
|
691
679
|
body = JSON.stringify({
|
|
692
|
-
...(input.ConnectivityInfo != null && {
|
|
693
|
-
connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
|
|
694
|
-
}),
|
|
680
|
+
...(input.ConnectivityInfo != null && { connectivityInfo: se_ConnectivityInfo(input.ConnectivityInfo, context) }),
|
|
695
681
|
...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
|
|
696
682
|
});
|
|
697
683
|
return new __HttpRequest({
|
|
@@ -704,7 +690,7 @@ export const serializeAws_restJson1UpdateConnectivityCommand = async (input, con
|
|
|
704
690
|
body,
|
|
705
691
|
});
|
|
706
692
|
};
|
|
707
|
-
export const
|
|
693
|
+
export const se_UpdateMonitoringCommand = async (input, context) => {
|
|
708
694
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
709
695
|
const headers = {
|
|
710
696
|
"content-type": "application/json",
|
|
@@ -715,10 +701,8 @@ export const serializeAws_restJson1UpdateMonitoringCommand = async (input, conte
|
|
|
715
701
|
body = JSON.stringify({
|
|
716
702
|
...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
|
|
717
703
|
...(input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring }),
|
|
718
|
-
...(input.LoggingInfo != null && { loggingInfo:
|
|
719
|
-
...(input.OpenMonitoring != null && {
|
|
720
|
-
openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
|
|
721
|
-
}),
|
|
704
|
+
...(input.LoggingInfo != null && { loggingInfo: se_LoggingInfo(input.LoggingInfo, context) }),
|
|
705
|
+
...(input.OpenMonitoring != null && { openMonitoring: se_OpenMonitoringInfo(input.OpenMonitoring, context) }),
|
|
722
706
|
});
|
|
723
707
|
return new __HttpRequest({
|
|
724
708
|
protocol,
|
|
@@ -730,7 +714,7 @@ export const serializeAws_restJson1UpdateMonitoringCommand = async (input, conte
|
|
|
730
714
|
body,
|
|
731
715
|
});
|
|
732
716
|
};
|
|
733
|
-
export const
|
|
717
|
+
export const se_UpdateSecurityCommand = async (input, context) => {
|
|
734
718
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
735
719
|
const headers = {
|
|
736
720
|
"content-type": "application/json",
|
|
@@ -740,12 +724,10 @@ export const serializeAws_restJson1UpdateSecurityCommand = async (input, context
|
|
|
740
724
|
let body;
|
|
741
725
|
body = JSON.stringify({
|
|
742
726
|
...(input.ClientAuthentication != null && {
|
|
743
|
-
clientAuthentication:
|
|
727
|
+
clientAuthentication: se_ClientAuthentication(input.ClientAuthentication, context),
|
|
744
728
|
}),
|
|
745
729
|
...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
|
|
746
|
-
...(input.EncryptionInfo != null && {
|
|
747
|
-
encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
|
|
748
|
-
}),
|
|
730
|
+
...(input.EncryptionInfo != null && { encryptionInfo: se_EncryptionInfo(input.EncryptionInfo, context) }),
|
|
749
731
|
});
|
|
750
732
|
return new __HttpRequest({
|
|
751
733
|
protocol,
|
|
@@ -757,7 +739,7 @@ export const serializeAws_restJson1UpdateSecurityCommand = async (input, context
|
|
|
757
739
|
body,
|
|
758
740
|
});
|
|
759
741
|
};
|
|
760
|
-
export const
|
|
742
|
+
export const se_UpdateStorageCommand = async (input, context) => {
|
|
761
743
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
762
744
|
const headers = {
|
|
763
745
|
"content-type": "application/json",
|
|
@@ -768,7 +750,7 @@ export const serializeAws_restJson1UpdateStorageCommand = async (input, context)
|
|
|
768
750
|
body = JSON.stringify({
|
|
769
751
|
...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
|
|
770
752
|
...(input.ProvisionedThroughput != null && {
|
|
771
|
-
provisionedThroughput:
|
|
753
|
+
provisionedThroughput: se_ProvisionedThroughput(input.ProvisionedThroughput, context),
|
|
772
754
|
}),
|
|
773
755
|
...(input.StorageMode != null && { storageMode: input.StorageMode }),
|
|
774
756
|
...(input.VolumeSizeGB != null && { volumeSizeGB: input.VolumeSizeGB }),
|
|
@@ -783,9 +765,9 @@ export const serializeAws_restJson1UpdateStorageCommand = async (input, context)
|
|
|
783
765
|
body,
|
|
784
766
|
});
|
|
785
767
|
};
|
|
786
|
-
export const
|
|
768
|
+
export const de_BatchAssociateScramSecretCommand = async (output, context) => {
|
|
787
769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
788
|
-
return
|
|
770
|
+
return de_BatchAssociateScramSecretCommandError(output, context);
|
|
789
771
|
}
|
|
790
772
|
const contents = map({
|
|
791
773
|
$metadata: deserializeMetadata(output),
|
|
@@ -795,11 +777,11 @@ export const deserializeAws_restJson1BatchAssociateScramSecretCommand = async (o
|
|
|
795
777
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
796
778
|
}
|
|
797
779
|
if (data.unprocessedScramSecrets != null) {
|
|
798
|
-
contents.UnprocessedScramSecrets =
|
|
780
|
+
contents.UnprocessedScramSecrets = de___listOfUnprocessedScramSecret(data.unprocessedScramSecrets, context);
|
|
799
781
|
}
|
|
800
782
|
return contents;
|
|
801
783
|
};
|
|
802
|
-
const
|
|
784
|
+
const de_BatchAssociateScramSecretCommandError = async (output, context) => {
|
|
803
785
|
const parsedOutput = {
|
|
804
786
|
...output,
|
|
805
787
|
body: await parseErrorBody(output.body, context),
|
|
@@ -808,25 +790,25 @@ const deserializeAws_restJson1BatchAssociateScramSecretCommandError = async (out
|
|
|
808
790
|
switch (errorCode) {
|
|
809
791
|
case "BadRequestException":
|
|
810
792
|
case "com.amazonaws.kafka#BadRequestException":
|
|
811
|
-
throw await
|
|
793
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
812
794
|
case "ForbiddenException":
|
|
813
795
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
814
|
-
throw await
|
|
796
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
815
797
|
case "InternalServerErrorException":
|
|
816
798
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
817
|
-
throw await
|
|
799
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
818
800
|
case "NotFoundException":
|
|
819
801
|
case "com.amazonaws.kafka#NotFoundException":
|
|
820
|
-
throw await
|
|
802
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
821
803
|
case "ServiceUnavailableException":
|
|
822
804
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
823
|
-
throw await
|
|
805
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
824
806
|
case "TooManyRequestsException":
|
|
825
807
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
826
|
-
throw await
|
|
808
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
827
809
|
case "UnauthorizedException":
|
|
828
810
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
829
|
-
throw await
|
|
811
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
830
812
|
default:
|
|
831
813
|
const parsedBody = parsedOutput.body;
|
|
832
814
|
throwDefaultError({
|
|
@@ -837,9 +819,9 @@ const deserializeAws_restJson1BatchAssociateScramSecretCommandError = async (out
|
|
|
837
819
|
});
|
|
838
820
|
}
|
|
839
821
|
};
|
|
840
|
-
export const
|
|
822
|
+
export const de_BatchDisassociateScramSecretCommand = async (output, context) => {
|
|
841
823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
|
-
return
|
|
824
|
+
return de_BatchDisassociateScramSecretCommandError(output, context);
|
|
843
825
|
}
|
|
844
826
|
const contents = map({
|
|
845
827
|
$metadata: deserializeMetadata(output),
|
|
@@ -849,11 +831,11 @@ export const deserializeAws_restJson1BatchDisassociateScramSecretCommand = async
|
|
|
849
831
|
contents.ClusterArn = __expectString(data.clusterArn);
|
|
850
832
|
}
|
|
851
833
|
if (data.unprocessedScramSecrets != null) {
|
|
852
|
-
contents.UnprocessedScramSecrets =
|
|
834
|
+
contents.UnprocessedScramSecrets = de___listOfUnprocessedScramSecret(data.unprocessedScramSecrets, context);
|
|
853
835
|
}
|
|
854
836
|
return contents;
|
|
855
837
|
};
|
|
856
|
-
const
|
|
838
|
+
const de_BatchDisassociateScramSecretCommandError = async (output, context) => {
|
|
857
839
|
const parsedOutput = {
|
|
858
840
|
...output,
|
|
859
841
|
body: await parseErrorBody(output.body, context),
|
|
@@ -862,25 +844,25 @@ const deserializeAws_restJson1BatchDisassociateScramSecretCommandError = async (
|
|
|
862
844
|
switch (errorCode) {
|
|
863
845
|
case "BadRequestException":
|
|
864
846
|
case "com.amazonaws.kafka#BadRequestException":
|
|
865
|
-
throw await
|
|
847
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
866
848
|
case "ForbiddenException":
|
|
867
849
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
868
|
-
throw await
|
|
850
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
869
851
|
case "InternalServerErrorException":
|
|
870
852
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
871
|
-
throw await
|
|
853
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
872
854
|
case "NotFoundException":
|
|
873
855
|
case "com.amazonaws.kafka#NotFoundException":
|
|
874
|
-
throw await
|
|
856
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
875
857
|
case "ServiceUnavailableException":
|
|
876
858
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
877
|
-
throw await
|
|
859
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
878
860
|
case "TooManyRequestsException":
|
|
879
861
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
880
|
-
throw await
|
|
862
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
881
863
|
case "UnauthorizedException":
|
|
882
864
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
883
|
-
throw await
|
|
865
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
884
866
|
default:
|
|
885
867
|
const parsedBody = parsedOutput.body;
|
|
886
868
|
throwDefaultError({
|
|
@@ -891,9 +873,9 @@ const deserializeAws_restJson1BatchDisassociateScramSecretCommandError = async (
|
|
|
891
873
|
});
|
|
892
874
|
}
|
|
893
875
|
};
|
|
894
|
-
export const
|
|
876
|
+
export const de_CreateClusterCommand = async (output, context) => {
|
|
895
877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
896
|
-
return
|
|
878
|
+
return de_CreateClusterCommandError(output, context);
|
|
897
879
|
}
|
|
898
880
|
const contents = map({
|
|
899
881
|
$metadata: deserializeMetadata(output),
|
|
@@ -910,7 +892,7 @@ export const deserializeAws_restJson1CreateClusterCommand = async (output, conte
|
|
|
910
892
|
}
|
|
911
893
|
return contents;
|
|
912
894
|
};
|
|
913
|
-
const
|
|
895
|
+
const de_CreateClusterCommandError = async (output, context) => {
|
|
914
896
|
const parsedOutput = {
|
|
915
897
|
...output,
|
|
916
898
|
body: await parseErrorBody(output.body, context),
|
|
@@ -919,25 +901,25 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
|
|
|
919
901
|
switch (errorCode) {
|
|
920
902
|
case "BadRequestException":
|
|
921
903
|
case "com.amazonaws.kafka#BadRequestException":
|
|
922
|
-
throw await
|
|
904
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
923
905
|
case "ConflictException":
|
|
924
906
|
case "com.amazonaws.kafka#ConflictException":
|
|
925
|
-
throw await
|
|
907
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
926
908
|
case "ForbiddenException":
|
|
927
909
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
928
|
-
throw await
|
|
910
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
929
911
|
case "InternalServerErrorException":
|
|
930
912
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
931
|
-
throw await
|
|
913
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
932
914
|
case "ServiceUnavailableException":
|
|
933
915
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
934
|
-
throw await
|
|
916
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
935
917
|
case "TooManyRequestsException":
|
|
936
918
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
937
|
-
throw await
|
|
919
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
938
920
|
case "UnauthorizedException":
|
|
939
921
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
940
|
-
throw await
|
|
922
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
941
923
|
default:
|
|
942
924
|
const parsedBody = parsedOutput.body;
|
|
943
925
|
throwDefaultError({
|
|
@@ -948,9 +930,9 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
|
|
|
948
930
|
});
|
|
949
931
|
}
|
|
950
932
|
};
|
|
951
|
-
export const
|
|
933
|
+
export const de_CreateClusterV2Command = async (output, context) => {
|
|
952
934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
953
|
-
return
|
|
935
|
+
return de_CreateClusterV2CommandError(output, context);
|
|
954
936
|
}
|
|
955
937
|
const contents = map({
|
|
956
938
|
$metadata: deserializeMetadata(output),
|
|
@@ -970,7 +952,7 @@ export const deserializeAws_restJson1CreateClusterV2Command = async (output, con
|
|
|
970
952
|
}
|
|
971
953
|
return contents;
|
|
972
954
|
};
|
|
973
|
-
const
|
|
955
|
+
const de_CreateClusterV2CommandError = async (output, context) => {
|
|
974
956
|
const parsedOutput = {
|
|
975
957
|
...output,
|
|
976
958
|
body: await parseErrorBody(output.body, context),
|
|
@@ -979,25 +961,25 @@ const deserializeAws_restJson1CreateClusterV2CommandError = async (output, conte
|
|
|
979
961
|
switch (errorCode) {
|
|
980
962
|
case "BadRequestException":
|
|
981
963
|
case "com.amazonaws.kafka#BadRequestException":
|
|
982
|
-
throw await
|
|
964
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
983
965
|
case "ConflictException":
|
|
984
966
|
case "com.amazonaws.kafka#ConflictException":
|
|
985
|
-
throw await
|
|
967
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
986
968
|
case "ForbiddenException":
|
|
987
969
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
988
|
-
throw await
|
|
970
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
989
971
|
case "InternalServerErrorException":
|
|
990
972
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
991
|
-
throw await
|
|
973
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
992
974
|
case "ServiceUnavailableException":
|
|
993
975
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
994
|
-
throw await
|
|
976
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
995
977
|
case "TooManyRequestsException":
|
|
996
978
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
997
|
-
throw await
|
|
979
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
998
980
|
case "UnauthorizedException":
|
|
999
981
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1000
|
-
throw await
|
|
982
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1001
983
|
default:
|
|
1002
984
|
const parsedBody = parsedOutput.body;
|
|
1003
985
|
throwDefaultError({
|
|
@@ -1008,9 +990,9 @@ const deserializeAws_restJson1CreateClusterV2CommandError = async (output, conte
|
|
|
1008
990
|
});
|
|
1009
991
|
}
|
|
1010
992
|
};
|
|
1011
|
-
export const
|
|
993
|
+
export const de_CreateConfigurationCommand = async (output, context) => {
|
|
1012
994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1013
|
-
return
|
|
995
|
+
return de_CreateConfigurationCommandError(output, context);
|
|
1014
996
|
}
|
|
1015
997
|
const contents = map({
|
|
1016
998
|
$metadata: deserializeMetadata(output),
|
|
@@ -1023,7 +1005,7 @@ export const deserializeAws_restJson1CreateConfigurationCommand = async (output,
|
|
|
1023
1005
|
contents.CreationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
|
|
1024
1006
|
}
|
|
1025
1007
|
if (data.latestRevision != null) {
|
|
1026
|
-
contents.LatestRevision =
|
|
1008
|
+
contents.LatestRevision = de_ConfigurationRevision(data.latestRevision, context);
|
|
1027
1009
|
}
|
|
1028
1010
|
if (data.name != null) {
|
|
1029
1011
|
contents.Name = __expectString(data.name);
|
|
@@ -1033,7 +1015,7 @@ export const deserializeAws_restJson1CreateConfigurationCommand = async (output,
|
|
|
1033
1015
|
}
|
|
1034
1016
|
return contents;
|
|
1035
1017
|
};
|
|
1036
|
-
const
|
|
1018
|
+
const de_CreateConfigurationCommandError = async (output, context) => {
|
|
1037
1019
|
const parsedOutput = {
|
|
1038
1020
|
...output,
|
|
1039
1021
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1042,25 +1024,25 @@ const deserializeAws_restJson1CreateConfigurationCommandError = async (output, c
|
|
|
1042
1024
|
switch (errorCode) {
|
|
1043
1025
|
case "BadRequestException":
|
|
1044
1026
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1045
|
-
throw await
|
|
1027
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1046
1028
|
case "ConflictException":
|
|
1047
1029
|
case "com.amazonaws.kafka#ConflictException":
|
|
1048
|
-
throw await
|
|
1030
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1049
1031
|
case "ForbiddenException":
|
|
1050
1032
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1051
|
-
throw await
|
|
1033
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1052
1034
|
case "InternalServerErrorException":
|
|
1053
1035
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1054
|
-
throw await
|
|
1036
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1055
1037
|
case "ServiceUnavailableException":
|
|
1056
1038
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1057
|
-
throw await
|
|
1039
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1058
1040
|
case "TooManyRequestsException":
|
|
1059
1041
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1060
|
-
throw await
|
|
1042
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1061
1043
|
case "UnauthorizedException":
|
|
1062
1044
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1063
|
-
throw await
|
|
1045
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1064
1046
|
default:
|
|
1065
1047
|
const parsedBody = parsedOutput.body;
|
|
1066
1048
|
throwDefaultError({
|
|
@@ -1071,9 +1053,9 @@ const deserializeAws_restJson1CreateConfigurationCommandError = async (output, c
|
|
|
1071
1053
|
});
|
|
1072
1054
|
}
|
|
1073
1055
|
};
|
|
1074
|
-
export const
|
|
1056
|
+
export const de_DeleteClusterCommand = async (output, context) => {
|
|
1075
1057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1076
|
-
return
|
|
1058
|
+
return de_DeleteClusterCommandError(output, context);
|
|
1077
1059
|
}
|
|
1078
1060
|
const contents = map({
|
|
1079
1061
|
$metadata: deserializeMetadata(output),
|
|
@@ -1087,7 +1069,7 @@ export const deserializeAws_restJson1DeleteClusterCommand = async (output, conte
|
|
|
1087
1069
|
}
|
|
1088
1070
|
return contents;
|
|
1089
1071
|
};
|
|
1090
|
-
const
|
|
1072
|
+
const de_DeleteClusterCommandError = async (output, context) => {
|
|
1091
1073
|
const parsedOutput = {
|
|
1092
1074
|
...output,
|
|
1093
1075
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1096,16 +1078,16 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
|
|
|
1096
1078
|
switch (errorCode) {
|
|
1097
1079
|
case "BadRequestException":
|
|
1098
1080
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1099
|
-
throw await
|
|
1081
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1100
1082
|
case "ForbiddenException":
|
|
1101
1083
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1102
|
-
throw await
|
|
1084
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1103
1085
|
case "InternalServerErrorException":
|
|
1104
1086
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1105
|
-
throw await
|
|
1087
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1106
1088
|
case "NotFoundException":
|
|
1107
1089
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1108
|
-
throw await
|
|
1090
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1109
1091
|
default:
|
|
1110
1092
|
const parsedBody = parsedOutput.body;
|
|
1111
1093
|
throwDefaultError({
|
|
@@ -1116,9 +1098,9 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
|
|
|
1116
1098
|
});
|
|
1117
1099
|
}
|
|
1118
1100
|
};
|
|
1119
|
-
export const
|
|
1101
|
+
export const de_DeleteConfigurationCommand = async (output, context) => {
|
|
1120
1102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1121
|
-
return
|
|
1103
|
+
return de_DeleteConfigurationCommandError(output, context);
|
|
1122
1104
|
}
|
|
1123
1105
|
const contents = map({
|
|
1124
1106
|
$metadata: deserializeMetadata(output),
|
|
@@ -1132,7 +1114,7 @@ export const deserializeAws_restJson1DeleteConfigurationCommand = async (output,
|
|
|
1132
1114
|
}
|
|
1133
1115
|
return contents;
|
|
1134
1116
|
};
|
|
1135
|
-
const
|
|
1117
|
+
const de_DeleteConfigurationCommandError = async (output, context) => {
|
|
1136
1118
|
const parsedOutput = {
|
|
1137
1119
|
...output,
|
|
1138
1120
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1141,16 +1123,16 @@ const deserializeAws_restJson1DeleteConfigurationCommandError = async (output, c
|
|
|
1141
1123
|
switch (errorCode) {
|
|
1142
1124
|
case "BadRequestException":
|
|
1143
1125
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1144
|
-
throw await
|
|
1126
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1145
1127
|
case "ForbiddenException":
|
|
1146
1128
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1147
|
-
throw await
|
|
1129
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1148
1130
|
case "InternalServerErrorException":
|
|
1149
1131
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1150
|
-
throw await
|
|
1132
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1151
1133
|
case "NotFoundException":
|
|
1152
1134
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1153
|
-
throw await
|
|
1135
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1154
1136
|
default:
|
|
1155
1137
|
const parsedBody = parsedOutput.body;
|
|
1156
1138
|
throwDefaultError({
|
|
@@ -1161,20 +1143,20 @@ const deserializeAws_restJson1DeleteConfigurationCommandError = async (output, c
|
|
|
1161
1143
|
});
|
|
1162
1144
|
}
|
|
1163
1145
|
};
|
|
1164
|
-
export const
|
|
1146
|
+
export const de_DescribeClusterCommand = async (output, context) => {
|
|
1165
1147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
|
-
return
|
|
1148
|
+
return de_DescribeClusterCommandError(output, context);
|
|
1167
1149
|
}
|
|
1168
1150
|
const contents = map({
|
|
1169
1151
|
$metadata: deserializeMetadata(output),
|
|
1170
1152
|
});
|
|
1171
1153
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1172
1154
|
if (data.clusterInfo != null) {
|
|
1173
|
-
contents.ClusterInfo =
|
|
1155
|
+
contents.ClusterInfo = de_ClusterInfo(data.clusterInfo, context);
|
|
1174
1156
|
}
|
|
1175
1157
|
return contents;
|
|
1176
1158
|
};
|
|
1177
|
-
const
|
|
1159
|
+
const de_DescribeClusterCommandError = async (output, context) => {
|
|
1178
1160
|
const parsedOutput = {
|
|
1179
1161
|
...output,
|
|
1180
1162
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1183,19 +1165,19 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
|
|
|
1183
1165
|
switch (errorCode) {
|
|
1184
1166
|
case "BadRequestException":
|
|
1185
1167
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1186
|
-
throw await
|
|
1168
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1187
1169
|
case "ForbiddenException":
|
|
1188
1170
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1189
|
-
throw await
|
|
1171
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1190
1172
|
case "InternalServerErrorException":
|
|
1191
1173
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1192
|
-
throw await
|
|
1174
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1193
1175
|
case "NotFoundException":
|
|
1194
1176
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1195
|
-
throw await
|
|
1177
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1196
1178
|
case "UnauthorizedException":
|
|
1197
1179
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1198
|
-
throw await
|
|
1180
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1199
1181
|
default:
|
|
1200
1182
|
const parsedBody = parsedOutput.body;
|
|
1201
1183
|
throwDefaultError({
|
|
@@ -1206,20 +1188,20 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
|
|
|
1206
1188
|
});
|
|
1207
1189
|
}
|
|
1208
1190
|
};
|
|
1209
|
-
export const
|
|
1191
|
+
export const de_DescribeClusterOperationCommand = async (output, context) => {
|
|
1210
1192
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1211
|
-
return
|
|
1193
|
+
return de_DescribeClusterOperationCommandError(output, context);
|
|
1212
1194
|
}
|
|
1213
1195
|
const contents = map({
|
|
1214
1196
|
$metadata: deserializeMetadata(output),
|
|
1215
1197
|
});
|
|
1216
1198
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1217
1199
|
if (data.clusterOperationInfo != null) {
|
|
1218
|
-
contents.ClusterOperationInfo =
|
|
1200
|
+
contents.ClusterOperationInfo = de_ClusterOperationInfo(data.clusterOperationInfo, context);
|
|
1219
1201
|
}
|
|
1220
1202
|
return contents;
|
|
1221
1203
|
};
|
|
1222
|
-
const
|
|
1204
|
+
const de_DescribeClusterOperationCommandError = async (output, context) => {
|
|
1223
1205
|
const parsedOutput = {
|
|
1224
1206
|
...output,
|
|
1225
1207
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1228,19 +1210,19 @@ const deserializeAws_restJson1DescribeClusterOperationCommandError = async (outp
|
|
|
1228
1210
|
switch (errorCode) {
|
|
1229
1211
|
case "BadRequestException":
|
|
1230
1212
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1231
|
-
throw await
|
|
1213
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1232
1214
|
case "ForbiddenException":
|
|
1233
1215
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1234
|
-
throw await
|
|
1216
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1235
1217
|
case "InternalServerErrorException":
|
|
1236
1218
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1237
|
-
throw await
|
|
1219
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1238
1220
|
case "NotFoundException":
|
|
1239
1221
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1240
|
-
throw await
|
|
1222
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1241
1223
|
case "UnauthorizedException":
|
|
1242
1224
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1243
|
-
throw await
|
|
1225
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1244
1226
|
default:
|
|
1245
1227
|
const parsedBody = parsedOutput.body;
|
|
1246
1228
|
throwDefaultError({
|
|
@@ -1251,20 +1233,20 @@ const deserializeAws_restJson1DescribeClusterOperationCommandError = async (outp
|
|
|
1251
1233
|
});
|
|
1252
1234
|
}
|
|
1253
1235
|
};
|
|
1254
|
-
export const
|
|
1236
|
+
export const de_DescribeClusterV2Command = async (output, context) => {
|
|
1255
1237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1256
|
-
return
|
|
1238
|
+
return de_DescribeClusterV2CommandError(output, context);
|
|
1257
1239
|
}
|
|
1258
1240
|
const contents = map({
|
|
1259
1241
|
$metadata: deserializeMetadata(output),
|
|
1260
1242
|
});
|
|
1261
1243
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1262
1244
|
if (data.clusterInfo != null) {
|
|
1263
|
-
contents.ClusterInfo =
|
|
1245
|
+
contents.ClusterInfo = de_Cluster(data.clusterInfo, context);
|
|
1264
1246
|
}
|
|
1265
1247
|
return contents;
|
|
1266
1248
|
};
|
|
1267
|
-
const
|
|
1249
|
+
const de_DescribeClusterV2CommandError = async (output, context) => {
|
|
1268
1250
|
const parsedOutput = {
|
|
1269
1251
|
...output,
|
|
1270
1252
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1273,19 +1255,19 @@ const deserializeAws_restJson1DescribeClusterV2CommandError = async (output, con
|
|
|
1273
1255
|
switch (errorCode) {
|
|
1274
1256
|
case "BadRequestException":
|
|
1275
1257
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1276
|
-
throw await
|
|
1258
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1277
1259
|
case "ForbiddenException":
|
|
1278
1260
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1279
|
-
throw await
|
|
1261
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1280
1262
|
case "InternalServerErrorException":
|
|
1281
1263
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1282
|
-
throw await
|
|
1264
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1283
1265
|
case "NotFoundException":
|
|
1284
1266
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1285
|
-
throw await
|
|
1267
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1286
1268
|
case "UnauthorizedException":
|
|
1287
1269
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1288
|
-
throw await
|
|
1270
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1289
1271
|
default:
|
|
1290
1272
|
const parsedBody = parsedOutput.body;
|
|
1291
1273
|
throwDefaultError({
|
|
@@ -1296,9 +1278,9 @@ const deserializeAws_restJson1DescribeClusterV2CommandError = async (output, con
|
|
|
1296
1278
|
});
|
|
1297
1279
|
}
|
|
1298
1280
|
};
|
|
1299
|
-
export const
|
|
1281
|
+
export const de_DescribeConfigurationCommand = async (output, context) => {
|
|
1300
1282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
|
-
return
|
|
1283
|
+
return de_DescribeConfigurationCommandError(output, context);
|
|
1302
1284
|
}
|
|
1303
1285
|
const contents = map({
|
|
1304
1286
|
$metadata: deserializeMetadata(output),
|
|
@@ -1314,10 +1296,10 @@ export const deserializeAws_restJson1DescribeConfigurationCommand = async (outpu
|
|
|
1314
1296
|
contents.Description = __expectString(data.description);
|
|
1315
1297
|
}
|
|
1316
1298
|
if (data.kafkaVersions != null) {
|
|
1317
|
-
contents.KafkaVersions =
|
|
1299
|
+
contents.KafkaVersions = de___listOf__string(data.kafkaVersions, context);
|
|
1318
1300
|
}
|
|
1319
1301
|
if (data.latestRevision != null) {
|
|
1320
|
-
contents.LatestRevision =
|
|
1302
|
+
contents.LatestRevision = de_ConfigurationRevision(data.latestRevision, context);
|
|
1321
1303
|
}
|
|
1322
1304
|
if (data.name != null) {
|
|
1323
1305
|
contents.Name = __expectString(data.name);
|
|
@@ -1327,7 +1309,7 @@ export const deserializeAws_restJson1DescribeConfigurationCommand = async (outpu
|
|
|
1327
1309
|
}
|
|
1328
1310
|
return contents;
|
|
1329
1311
|
};
|
|
1330
|
-
const
|
|
1312
|
+
const de_DescribeConfigurationCommandError = async (output, context) => {
|
|
1331
1313
|
const parsedOutput = {
|
|
1332
1314
|
...output,
|
|
1333
1315
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1336,22 +1318,22 @@ const deserializeAws_restJson1DescribeConfigurationCommandError = async (output,
|
|
|
1336
1318
|
switch (errorCode) {
|
|
1337
1319
|
case "BadRequestException":
|
|
1338
1320
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1339
|
-
throw await
|
|
1321
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1340
1322
|
case "ForbiddenException":
|
|
1341
1323
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1342
|
-
throw await
|
|
1324
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1343
1325
|
case "InternalServerErrorException":
|
|
1344
1326
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1345
|
-
throw await
|
|
1327
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1346
1328
|
case "NotFoundException":
|
|
1347
1329
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1348
|
-
throw await
|
|
1330
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1349
1331
|
case "ServiceUnavailableException":
|
|
1350
1332
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1351
|
-
throw await
|
|
1333
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1352
1334
|
case "UnauthorizedException":
|
|
1353
1335
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1354
|
-
throw await
|
|
1336
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1355
1337
|
default:
|
|
1356
1338
|
const parsedBody = parsedOutput.body;
|
|
1357
1339
|
throwDefaultError({
|
|
@@ -1362,9 +1344,9 @@ const deserializeAws_restJson1DescribeConfigurationCommandError = async (output,
|
|
|
1362
1344
|
});
|
|
1363
1345
|
}
|
|
1364
1346
|
};
|
|
1365
|
-
export const
|
|
1347
|
+
export const de_DescribeConfigurationRevisionCommand = async (output, context) => {
|
|
1366
1348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1367
|
-
return
|
|
1349
|
+
return de_DescribeConfigurationRevisionCommandError(output, context);
|
|
1368
1350
|
}
|
|
1369
1351
|
const contents = map({
|
|
1370
1352
|
$metadata: deserializeMetadata(output),
|
|
@@ -1387,7 +1369,7 @@ export const deserializeAws_restJson1DescribeConfigurationRevisionCommand = asyn
|
|
|
1387
1369
|
}
|
|
1388
1370
|
return contents;
|
|
1389
1371
|
};
|
|
1390
|
-
const
|
|
1372
|
+
const de_DescribeConfigurationRevisionCommandError = async (output, context) => {
|
|
1391
1373
|
const parsedOutput = {
|
|
1392
1374
|
...output,
|
|
1393
1375
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1396,22 +1378,22 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommandError = async
|
|
|
1396
1378
|
switch (errorCode) {
|
|
1397
1379
|
case "BadRequestException":
|
|
1398
1380
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1399
|
-
throw await
|
|
1381
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1400
1382
|
case "ForbiddenException":
|
|
1401
1383
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1402
|
-
throw await
|
|
1384
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1403
1385
|
case "InternalServerErrorException":
|
|
1404
1386
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1405
|
-
throw await
|
|
1387
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1406
1388
|
case "NotFoundException":
|
|
1407
1389
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1408
|
-
throw await
|
|
1390
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1409
1391
|
case "ServiceUnavailableException":
|
|
1410
1392
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1411
|
-
throw await
|
|
1393
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1412
1394
|
case "UnauthorizedException":
|
|
1413
1395
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1414
|
-
throw await
|
|
1396
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1415
1397
|
default:
|
|
1416
1398
|
const parsedBody = parsedOutput.body;
|
|
1417
1399
|
throwDefaultError({
|
|
@@ -1422,9 +1404,9 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommandError = async
|
|
|
1422
1404
|
});
|
|
1423
1405
|
}
|
|
1424
1406
|
};
|
|
1425
|
-
export const
|
|
1407
|
+
export const de_GetBootstrapBrokersCommand = async (output, context) => {
|
|
1426
1408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1427
|
-
return
|
|
1409
|
+
return de_GetBootstrapBrokersCommandError(output, context);
|
|
1428
1410
|
}
|
|
1429
1411
|
const contents = map({
|
|
1430
1412
|
$metadata: deserializeMetadata(output),
|
|
@@ -1453,7 +1435,7 @@ export const deserializeAws_restJson1GetBootstrapBrokersCommand = async (output,
|
|
|
1453
1435
|
}
|
|
1454
1436
|
return contents;
|
|
1455
1437
|
};
|
|
1456
|
-
const
|
|
1438
|
+
const de_GetBootstrapBrokersCommandError = async (output, context) => {
|
|
1457
1439
|
const parsedOutput = {
|
|
1458
1440
|
...output,
|
|
1459
1441
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1462,19 +1444,19 @@ const deserializeAws_restJson1GetBootstrapBrokersCommandError = async (output, c
|
|
|
1462
1444
|
switch (errorCode) {
|
|
1463
1445
|
case "BadRequestException":
|
|
1464
1446
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1465
|
-
throw await
|
|
1447
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1466
1448
|
case "ConflictException":
|
|
1467
1449
|
case "com.amazonaws.kafka#ConflictException":
|
|
1468
|
-
throw await
|
|
1450
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1469
1451
|
case "ForbiddenException":
|
|
1470
1452
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1471
|
-
throw await
|
|
1453
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1472
1454
|
case "InternalServerErrorException":
|
|
1473
1455
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1474
|
-
throw await
|
|
1456
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1475
1457
|
case "UnauthorizedException":
|
|
1476
1458
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1477
|
-
throw await
|
|
1459
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1478
1460
|
default:
|
|
1479
1461
|
const parsedBody = parsedOutput.body;
|
|
1480
1462
|
throwDefaultError({
|
|
@@ -1485,20 +1467,20 @@ const deserializeAws_restJson1GetBootstrapBrokersCommandError = async (output, c
|
|
|
1485
1467
|
});
|
|
1486
1468
|
}
|
|
1487
1469
|
};
|
|
1488
|
-
export const
|
|
1470
|
+
export const de_GetCompatibleKafkaVersionsCommand = async (output, context) => {
|
|
1489
1471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1490
|
-
return
|
|
1472
|
+
return de_GetCompatibleKafkaVersionsCommandError(output, context);
|
|
1491
1473
|
}
|
|
1492
1474
|
const contents = map({
|
|
1493
1475
|
$metadata: deserializeMetadata(output),
|
|
1494
1476
|
});
|
|
1495
1477
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1496
1478
|
if (data.compatibleKafkaVersions != null) {
|
|
1497
|
-
contents.CompatibleKafkaVersions =
|
|
1479
|
+
contents.CompatibleKafkaVersions = de___listOfCompatibleKafkaVersion(data.compatibleKafkaVersions, context);
|
|
1498
1480
|
}
|
|
1499
1481
|
return contents;
|
|
1500
1482
|
};
|
|
1501
|
-
const
|
|
1483
|
+
const de_GetCompatibleKafkaVersionsCommandError = async (output, context) => {
|
|
1502
1484
|
const parsedOutput = {
|
|
1503
1485
|
...output,
|
|
1504
1486
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1507,25 +1489,25 @@ const deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError = async (ou
|
|
|
1507
1489
|
switch (errorCode) {
|
|
1508
1490
|
case "BadRequestException":
|
|
1509
1491
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1510
|
-
throw await
|
|
1492
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1511
1493
|
case "ForbiddenException":
|
|
1512
1494
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1513
|
-
throw await
|
|
1495
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1514
1496
|
case "InternalServerErrorException":
|
|
1515
1497
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1516
|
-
throw await
|
|
1498
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1517
1499
|
case "NotFoundException":
|
|
1518
1500
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1519
|
-
throw await
|
|
1501
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1520
1502
|
case "ServiceUnavailableException":
|
|
1521
1503
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1522
|
-
throw await
|
|
1504
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1523
1505
|
case "TooManyRequestsException":
|
|
1524
1506
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1525
|
-
throw await
|
|
1507
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1526
1508
|
case "UnauthorizedException":
|
|
1527
1509
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1528
|
-
throw await
|
|
1510
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1529
1511
|
default:
|
|
1530
1512
|
const parsedBody = parsedOutput.body;
|
|
1531
1513
|
throwDefaultError({
|
|
@@ -1536,23 +1518,23 @@ const deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError = async (ou
|
|
|
1536
1518
|
});
|
|
1537
1519
|
}
|
|
1538
1520
|
};
|
|
1539
|
-
export const
|
|
1521
|
+
export const de_ListClusterOperationsCommand = async (output, context) => {
|
|
1540
1522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1541
|
-
return
|
|
1523
|
+
return de_ListClusterOperationsCommandError(output, context);
|
|
1542
1524
|
}
|
|
1543
1525
|
const contents = map({
|
|
1544
1526
|
$metadata: deserializeMetadata(output),
|
|
1545
1527
|
});
|
|
1546
1528
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1547
1529
|
if (data.clusterOperationInfoList != null) {
|
|
1548
|
-
contents.ClusterOperationInfoList =
|
|
1530
|
+
contents.ClusterOperationInfoList = de___listOfClusterOperationInfo(data.clusterOperationInfoList, context);
|
|
1549
1531
|
}
|
|
1550
1532
|
if (data.nextToken != null) {
|
|
1551
1533
|
contents.NextToken = __expectString(data.nextToken);
|
|
1552
1534
|
}
|
|
1553
1535
|
return contents;
|
|
1554
1536
|
};
|
|
1555
|
-
const
|
|
1537
|
+
const de_ListClusterOperationsCommandError = async (output, context) => {
|
|
1556
1538
|
const parsedOutput = {
|
|
1557
1539
|
...output,
|
|
1558
1540
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1561,16 +1543,16 @@ const deserializeAws_restJson1ListClusterOperationsCommandError = async (output,
|
|
|
1561
1543
|
switch (errorCode) {
|
|
1562
1544
|
case "BadRequestException":
|
|
1563
1545
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1564
|
-
throw await
|
|
1546
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1565
1547
|
case "ForbiddenException":
|
|
1566
1548
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1567
|
-
throw await
|
|
1549
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1568
1550
|
case "InternalServerErrorException":
|
|
1569
1551
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1570
|
-
throw await
|
|
1552
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1571
1553
|
case "UnauthorizedException":
|
|
1572
1554
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1573
|
-
throw await
|
|
1555
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1574
1556
|
default:
|
|
1575
1557
|
const parsedBody = parsedOutput.body;
|
|
1576
1558
|
throwDefaultError({
|
|
@@ -1581,23 +1563,23 @@ const deserializeAws_restJson1ListClusterOperationsCommandError = async (output,
|
|
|
1581
1563
|
});
|
|
1582
1564
|
}
|
|
1583
1565
|
};
|
|
1584
|
-
export const
|
|
1566
|
+
export const de_ListClustersCommand = async (output, context) => {
|
|
1585
1567
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1586
|
-
return
|
|
1568
|
+
return de_ListClustersCommandError(output, context);
|
|
1587
1569
|
}
|
|
1588
1570
|
const contents = map({
|
|
1589
1571
|
$metadata: deserializeMetadata(output),
|
|
1590
1572
|
});
|
|
1591
1573
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1592
1574
|
if (data.clusterInfoList != null) {
|
|
1593
|
-
contents.ClusterInfoList =
|
|
1575
|
+
contents.ClusterInfoList = de___listOfClusterInfo(data.clusterInfoList, context);
|
|
1594
1576
|
}
|
|
1595
1577
|
if (data.nextToken != null) {
|
|
1596
1578
|
contents.NextToken = __expectString(data.nextToken);
|
|
1597
1579
|
}
|
|
1598
1580
|
return contents;
|
|
1599
1581
|
};
|
|
1600
|
-
const
|
|
1582
|
+
const de_ListClustersCommandError = async (output, context) => {
|
|
1601
1583
|
const parsedOutput = {
|
|
1602
1584
|
...output,
|
|
1603
1585
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1606,16 +1588,16 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
|
|
|
1606
1588
|
switch (errorCode) {
|
|
1607
1589
|
case "BadRequestException":
|
|
1608
1590
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1609
|
-
throw await
|
|
1591
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1610
1592
|
case "ForbiddenException":
|
|
1611
1593
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1612
|
-
throw await
|
|
1594
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1613
1595
|
case "InternalServerErrorException":
|
|
1614
1596
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1615
|
-
throw await
|
|
1597
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1616
1598
|
case "UnauthorizedException":
|
|
1617
1599
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1618
|
-
throw await
|
|
1600
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1619
1601
|
default:
|
|
1620
1602
|
const parsedBody = parsedOutput.body;
|
|
1621
1603
|
throwDefaultError({
|
|
@@ -1626,23 +1608,23 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
|
|
|
1626
1608
|
});
|
|
1627
1609
|
}
|
|
1628
1610
|
};
|
|
1629
|
-
export const
|
|
1611
|
+
export const de_ListClustersV2Command = async (output, context) => {
|
|
1630
1612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1631
|
-
return
|
|
1613
|
+
return de_ListClustersV2CommandError(output, context);
|
|
1632
1614
|
}
|
|
1633
1615
|
const contents = map({
|
|
1634
1616
|
$metadata: deserializeMetadata(output),
|
|
1635
1617
|
});
|
|
1636
1618
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1637
1619
|
if (data.clusterInfoList != null) {
|
|
1638
|
-
contents.ClusterInfoList =
|
|
1620
|
+
contents.ClusterInfoList = de___listOfCluster(data.clusterInfoList, context);
|
|
1639
1621
|
}
|
|
1640
1622
|
if (data.nextToken != null) {
|
|
1641
1623
|
contents.NextToken = __expectString(data.nextToken);
|
|
1642
1624
|
}
|
|
1643
1625
|
return contents;
|
|
1644
1626
|
};
|
|
1645
|
-
const
|
|
1627
|
+
const de_ListClustersV2CommandError = async (output, context) => {
|
|
1646
1628
|
const parsedOutput = {
|
|
1647
1629
|
...output,
|
|
1648
1630
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1651,16 +1633,16 @@ const deserializeAws_restJson1ListClustersV2CommandError = async (output, contex
|
|
|
1651
1633
|
switch (errorCode) {
|
|
1652
1634
|
case "BadRequestException":
|
|
1653
1635
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1654
|
-
throw await
|
|
1636
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1655
1637
|
case "ForbiddenException":
|
|
1656
1638
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1657
|
-
throw await
|
|
1639
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1658
1640
|
case "InternalServerErrorException":
|
|
1659
1641
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1660
|
-
throw await
|
|
1642
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1661
1643
|
case "UnauthorizedException":
|
|
1662
1644
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1663
|
-
throw await
|
|
1645
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1664
1646
|
default:
|
|
1665
1647
|
const parsedBody = parsedOutput.body;
|
|
1666
1648
|
throwDefaultError({
|
|
@@ -1671,9 +1653,9 @@ const deserializeAws_restJson1ListClustersV2CommandError = async (output, contex
|
|
|
1671
1653
|
});
|
|
1672
1654
|
}
|
|
1673
1655
|
};
|
|
1674
|
-
export const
|
|
1656
|
+
export const de_ListConfigurationRevisionsCommand = async (output, context) => {
|
|
1675
1657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1676
|
-
return
|
|
1658
|
+
return de_ListConfigurationRevisionsCommandError(output, context);
|
|
1677
1659
|
}
|
|
1678
1660
|
const contents = map({
|
|
1679
1661
|
$metadata: deserializeMetadata(output),
|
|
@@ -1683,11 +1665,11 @@ export const deserializeAws_restJson1ListConfigurationRevisionsCommand = async (
|
|
|
1683
1665
|
contents.NextToken = __expectString(data.nextToken);
|
|
1684
1666
|
}
|
|
1685
1667
|
if (data.revisions != null) {
|
|
1686
|
-
contents.Revisions =
|
|
1668
|
+
contents.Revisions = de___listOfConfigurationRevision(data.revisions, context);
|
|
1687
1669
|
}
|
|
1688
1670
|
return contents;
|
|
1689
1671
|
};
|
|
1690
|
-
const
|
|
1672
|
+
const de_ListConfigurationRevisionsCommandError = async (output, context) => {
|
|
1691
1673
|
const parsedOutput = {
|
|
1692
1674
|
...output,
|
|
1693
1675
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1696,22 +1678,22 @@ const deserializeAws_restJson1ListConfigurationRevisionsCommandError = async (ou
|
|
|
1696
1678
|
switch (errorCode) {
|
|
1697
1679
|
case "BadRequestException":
|
|
1698
1680
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1699
|
-
throw await
|
|
1681
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1700
1682
|
case "ForbiddenException":
|
|
1701
1683
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1702
|
-
throw await
|
|
1684
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1703
1685
|
case "InternalServerErrorException":
|
|
1704
1686
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1705
|
-
throw await
|
|
1687
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1706
1688
|
case "NotFoundException":
|
|
1707
1689
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1708
|
-
throw await
|
|
1690
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1709
1691
|
case "ServiceUnavailableException":
|
|
1710
1692
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1711
|
-
throw await
|
|
1693
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1712
1694
|
case "UnauthorizedException":
|
|
1713
1695
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1714
|
-
throw await
|
|
1696
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1715
1697
|
default:
|
|
1716
1698
|
const parsedBody = parsedOutput.body;
|
|
1717
1699
|
throwDefaultError({
|
|
@@ -1722,23 +1704,23 @@ const deserializeAws_restJson1ListConfigurationRevisionsCommandError = async (ou
|
|
|
1722
1704
|
});
|
|
1723
1705
|
}
|
|
1724
1706
|
};
|
|
1725
|
-
export const
|
|
1707
|
+
export const de_ListConfigurationsCommand = async (output, context) => {
|
|
1726
1708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1727
|
-
return
|
|
1709
|
+
return de_ListConfigurationsCommandError(output, context);
|
|
1728
1710
|
}
|
|
1729
1711
|
const contents = map({
|
|
1730
1712
|
$metadata: deserializeMetadata(output),
|
|
1731
1713
|
});
|
|
1732
1714
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1733
1715
|
if (data.configurations != null) {
|
|
1734
|
-
contents.Configurations =
|
|
1716
|
+
contents.Configurations = de___listOfConfiguration(data.configurations, context);
|
|
1735
1717
|
}
|
|
1736
1718
|
if (data.nextToken != null) {
|
|
1737
1719
|
contents.NextToken = __expectString(data.nextToken);
|
|
1738
1720
|
}
|
|
1739
1721
|
return contents;
|
|
1740
1722
|
};
|
|
1741
|
-
const
|
|
1723
|
+
const de_ListConfigurationsCommandError = async (output, context) => {
|
|
1742
1724
|
const parsedOutput = {
|
|
1743
1725
|
...output,
|
|
1744
1726
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1747,19 +1729,19 @@ const deserializeAws_restJson1ListConfigurationsCommandError = async (output, co
|
|
|
1747
1729
|
switch (errorCode) {
|
|
1748
1730
|
case "BadRequestException":
|
|
1749
1731
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1750
|
-
throw await
|
|
1732
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1751
1733
|
case "ForbiddenException":
|
|
1752
1734
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1753
|
-
throw await
|
|
1735
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1754
1736
|
case "InternalServerErrorException":
|
|
1755
1737
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1756
|
-
throw await
|
|
1738
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1757
1739
|
case "ServiceUnavailableException":
|
|
1758
1740
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1759
|
-
throw await
|
|
1741
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1760
1742
|
case "UnauthorizedException":
|
|
1761
1743
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1762
|
-
throw await
|
|
1744
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1763
1745
|
default:
|
|
1764
1746
|
const parsedBody = parsedOutput.body;
|
|
1765
1747
|
throwDefaultError({
|
|
@@ -1770,23 +1752,23 @@ const deserializeAws_restJson1ListConfigurationsCommandError = async (output, co
|
|
|
1770
1752
|
});
|
|
1771
1753
|
}
|
|
1772
1754
|
};
|
|
1773
|
-
export const
|
|
1755
|
+
export const de_ListKafkaVersionsCommand = async (output, context) => {
|
|
1774
1756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1775
|
-
return
|
|
1757
|
+
return de_ListKafkaVersionsCommandError(output, context);
|
|
1776
1758
|
}
|
|
1777
1759
|
const contents = map({
|
|
1778
1760
|
$metadata: deserializeMetadata(output),
|
|
1779
1761
|
});
|
|
1780
1762
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1781
1763
|
if (data.kafkaVersions != null) {
|
|
1782
|
-
contents.KafkaVersions =
|
|
1764
|
+
contents.KafkaVersions = de___listOfKafkaVersion(data.kafkaVersions, context);
|
|
1783
1765
|
}
|
|
1784
1766
|
if (data.nextToken != null) {
|
|
1785
1767
|
contents.NextToken = __expectString(data.nextToken);
|
|
1786
1768
|
}
|
|
1787
1769
|
return contents;
|
|
1788
1770
|
};
|
|
1789
|
-
const
|
|
1771
|
+
const de_ListKafkaVersionsCommandError = async (output, context) => {
|
|
1790
1772
|
const parsedOutput = {
|
|
1791
1773
|
...output,
|
|
1792
1774
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1795,16 +1777,16 @@ const deserializeAws_restJson1ListKafkaVersionsCommandError = async (output, con
|
|
|
1795
1777
|
switch (errorCode) {
|
|
1796
1778
|
case "BadRequestException":
|
|
1797
1779
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1798
|
-
throw await
|
|
1780
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1799
1781
|
case "ForbiddenException":
|
|
1800
1782
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1801
|
-
throw await
|
|
1783
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1802
1784
|
case "InternalServerErrorException":
|
|
1803
1785
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1804
|
-
throw await
|
|
1786
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1805
1787
|
case "UnauthorizedException":
|
|
1806
1788
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1807
|
-
throw await
|
|
1789
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1808
1790
|
default:
|
|
1809
1791
|
const parsedBody = parsedOutput.body;
|
|
1810
1792
|
throwDefaultError({
|
|
@@ -1815,9 +1797,9 @@ const deserializeAws_restJson1ListKafkaVersionsCommandError = async (output, con
|
|
|
1815
1797
|
});
|
|
1816
1798
|
}
|
|
1817
1799
|
};
|
|
1818
|
-
export const
|
|
1800
|
+
export const de_ListNodesCommand = async (output, context) => {
|
|
1819
1801
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1820
|
-
return
|
|
1802
|
+
return de_ListNodesCommandError(output, context);
|
|
1821
1803
|
}
|
|
1822
1804
|
const contents = map({
|
|
1823
1805
|
$metadata: deserializeMetadata(output),
|
|
@@ -1827,11 +1809,11 @@ export const deserializeAws_restJson1ListNodesCommand = async (output, context)
|
|
|
1827
1809
|
contents.NextToken = __expectString(data.nextToken);
|
|
1828
1810
|
}
|
|
1829
1811
|
if (data.nodeInfoList != null) {
|
|
1830
|
-
contents.NodeInfoList =
|
|
1812
|
+
contents.NodeInfoList = de___listOfNodeInfo(data.nodeInfoList, context);
|
|
1831
1813
|
}
|
|
1832
1814
|
return contents;
|
|
1833
1815
|
};
|
|
1834
|
-
const
|
|
1816
|
+
const de_ListNodesCommandError = async (output, context) => {
|
|
1835
1817
|
const parsedOutput = {
|
|
1836
1818
|
...output,
|
|
1837
1819
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1840,16 +1822,16 @@ const deserializeAws_restJson1ListNodesCommandError = async (output, context) =>
|
|
|
1840
1822
|
switch (errorCode) {
|
|
1841
1823
|
case "BadRequestException":
|
|
1842
1824
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1843
|
-
throw await
|
|
1825
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1844
1826
|
case "ForbiddenException":
|
|
1845
1827
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1846
|
-
throw await
|
|
1828
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1847
1829
|
case "InternalServerErrorException":
|
|
1848
1830
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1849
|
-
throw await
|
|
1831
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1850
1832
|
case "NotFoundException":
|
|
1851
1833
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1852
|
-
throw await
|
|
1834
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1853
1835
|
default:
|
|
1854
1836
|
const parsedBody = parsedOutput.body;
|
|
1855
1837
|
throwDefaultError({
|
|
@@ -1860,9 +1842,9 @@ const deserializeAws_restJson1ListNodesCommandError = async (output, context) =>
|
|
|
1860
1842
|
});
|
|
1861
1843
|
}
|
|
1862
1844
|
};
|
|
1863
|
-
export const
|
|
1845
|
+
export const de_ListScramSecretsCommand = async (output, context) => {
|
|
1864
1846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1865
|
-
return
|
|
1847
|
+
return de_ListScramSecretsCommandError(output, context);
|
|
1866
1848
|
}
|
|
1867
1849
|
const contents = map({
|
|
1868
1850
|
$metadata: deserializeMetadata(output),
|
|
@@ -1872,11 +1854,11 @@ export const deserializeAws_restJson1ListScramSecretsCommand = async (output, co
|
|
|
1872
1854
|
contents.NextToken = __expectString(data.nextToken);
|
|
1873
1855
|
}
|
|
1874
1856
|
if (data.secretArnList != null) {
|
|
1875
|
-
contents.SecretArnList =
|
|
1857
|
+
contents.SecretArnList = de___listOf__string(data.secretArnList, context);
|
|
1876
1858
|
}
|
|
1877
1859
|
return contents;
|
|
1878
1860
|
};
|
|
1879
|
-
const
|
|
1861
|
+
const de_ListScramSecretsCommandError = async (output, context) => {
|
|
1880
1862
|
const parsedOutput = {
|
|
1881
1863
|
...output,
|
|
1882
1864
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1885,25 +1867,25 @@ const deserializeAws_restJson1ListScramSecretsCommandError = async (output, cont
|
|
|
1885
1867
|
switch (errorCode) {
|
|
1886
1868
|
case "BadRequestException":
|
|
1887
1869
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1888
|
-
throw await
|
|
1870
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1889
1871
|
case "ForbiddenException":
|
|
1890
1872
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1891
|
-
throw await
|
|
1873
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1892
1874
|
case "InternalServerErrorException":
|
|
1893
1875
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1894
|
-
throw await
|
|
1876
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1895
1877
|
case "NotFoundException":
|
|
1896
1878
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1897
|
-
throw await
|
|
1879
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1898
1880
|
case "ServiceUnavailableException":
|
|
1899
1881
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1900
|
-
throw await
|
|
1882
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1901
1883
|
case "TooManyRequestsException":
|
|
1902
1884
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1903
|
-
throw await
|
|
1885
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1904
1886
|
case "UnauthorizedException":
|
|
1905
1887
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1906
|
-
throw await
|
|
1888
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1907
1889
|
default:
|
|
1908
1890
|
const parsedBody = parsedOutput.body;
|
|
1909
1891
|
throwDefaultError({
|
|
@@ -1914,20 +1896,20 @@ const deserializeAws_restJson1ListScramSecretsCommandError = async (output, cont
|
|
|
1914
1896
|
});
|
|
1915
1897
|
}
|
|
1916
1898
|
};
|
|
1917
|
-
export const
|
|
1899
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1918
1900
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1919
|
-
return
|
|
1901
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1920
1902
|
}
|
|
1921
1903
|
const contents = map({
|
|
1922
1904
|
$metadata: deserializeMetadata(output),
|
|
1923
1905
|
});
|
|
1924
1906
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1925
1907
|
if (data.tags != null) {
|
|
1926
|
-
contents.Tags =
|
|
1908
|
+
contents.Tags = de___mapOf__string(data.tags, context);
|
|
1927
1909
|
}
|
|
1928
1910
|
return contents;
|
|
1929
1911
|
};
|
|
1930
|
-
const
|
|
1912
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1931
1913
|
const parsedOutput = {
|
|
1932
1914
|
...output,
|
|
1933
1915
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1936,13 +1918,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1936
1918
|
switch (errorCode) {
|
|
1937
1919
|
case "BadRequestException":
|
|
1938
1920
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1939
|
-
throw await
|
|
1921
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1940
1922
|
case "InternalServerErrorException":
|
|
1941
1923
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1942
|
-
throw await
|
|
1924
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1943
1925
|
case "NotFoundException":
|
|
1944
1926
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1945
|
-
throw await
|
|
1927
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1946
1928
|
default:
|
|
1947
1929
|
const parsedBody = parsedOutput.body;
|
|
1948
1930
|
throwDefaultError({
|
|
@@ -1953,9 +1935,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1953
1935
|
});
|
|
1954
1936
|
}
|
|
1955
1937
|
};
|
|
1956
|
-
export const
|
|
1938
|
+
export const de_RebootBrokerCommand = async (output, context) => {
|
|
1957
1939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1958
|
-
return
|
|
1940
|
+
return de_RebootBrokerCommandError(output, context);
|
|
1959
1941
|
}
|
|
1960
1942
|
const contents = map({
|
|
1961
1943
|
$metadata: deserializeMetadata(output),
|
|
@@ -1969,7 +1951,7 @@ export const deserializeAws_restJson1RebootBrokerCommand = async (output, contex
|
|
|
1969
1951
|
}
|
|
1970
1952
|
return contents;
|
|
1971
1953
|
};
|
|
1972
|
-
const
|
|
1954
|
+
const de_RebootBrokerCommandError = async (output, context) => {
|
|
1973
1955
|
const parsedOutput = {
|
|
1974
1956
|
...output,
|
|
1975
1957
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1978,25 +1960,25 @@ const deserializeAws_restJson1RebootBrokerCommandError = async (output, context)
|
|
|
1978
1960
|
switch (errorCode) {
|
|
1979
1961
|
case "BadRequestException":
|
|
1980
1962
|
case "com.amazonaws.kafka#BadRequestException":
|
|
1981
|
-
throw await
|
|
1963
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1982
1964
|
case "ForbiddenException":
|
|
1983
1965
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
1984
|
-
throw await
|
|
1966
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1985
1967
|
case "InternalServerErrorException":
|
|
1986
1968
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
1987
|
-
throw await
|
|
1969
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1988
1970
|
case "NotFoundException":
|
|
1989
1971
|
case "com.amazonaws.kafka#NotFoundException":
|
|
1990
|
-
throw await
|
|
1972
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1991
1973
|
case "ServiceUnavailableException":
|
|
1992
1974
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
1993
|
-
throw await
|
|
1975
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1994
1976
|
case "TooManyRequestsException":
|
|
1995
1977
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
1996
|
-
throw await
|
|
1978
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1997
1979
|
case "UnauthorizedException":
|
|
1998
1980
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
1999
|
-
throw await
|
|
1981
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2000
1982
|
default:
|
|
2001
1983
|
const parsedBody = parsedOutput.body;
|
|
2002
1984
|
throwDefaultError({
|
|
@@ -2007,9 +1989,9 @@ const deserializeAws_restJson1RebootBrokerCommandError = async (output, context)
|
|
|
2007
1989
|
});
|
|
2008
1990
|
}
|
|
2009
1991
|
};
|
|
2010
|
-
export const
|
|
1992
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2011
1993
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2012
|
-
return
|
|
1994
|
+
return de_TagResourceCommandError(output, context);
|
|
2013
1995
|
}
|
|
2014
1996
|
const contents = map({
|
|
2015
1997
|
$metadata: deserializeMetadata(output),
|
|
@@ -2017,7 +1999,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
2017
1999
|
await collectBody(output.body, context);
|
|
2018
2000
|
return contents;
|
|
2019
2001
|
};
|
|
2020
|
-
const
|
|
2002
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2021
2003
|
const parsedOutput = {
|
|
2022
2004
|
...output,
|
|
2023
2005
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2026,13 +2008,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2026
2008
|
switch (errorCode) {
|
|
2027
2009
|
case "BadRequestException":
|
|
2028
2010
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2029
|
-
throw await
|
|
2011
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2030
2012
|
case "InternalServerErrorException":
|
|
2031
2013
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2032
|
-
throw await
|
|
2014
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2033
2015
|
case "NotFoundException":
|
|
2034
2016
|
case "com.amazonaws.kafka#NotFoundException":
|
|
2035
|
-
throw await
|
|
2017
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2036
2018
|
default:
|
|
2037
2019
|
const parsedBody = parsedOutput.body;
|
|
2038
2020
|
throwDefaultError({
|
|
@@ -2043,9 +2025,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2043
2025
|
});
|
|
2044
2026
|
}
|
|
2045
2027
|
};
|
|
2046
|
-
export const
|
|
2028
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2047
2029
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2048
|
-
return
|
|
2030
|
+
return de_UntagResourceCommandError(output, context);
|
|
2049
2031
|
}
|
|
2050
2032
|
const contents = map({
|
|
2051
2033
|
$metadata: deserializeMetadata(output),
|
|
@@ -2053,7 +2035,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
2053
2035
|
await collectBody(output.body, context);
|
|
2054
2036
|
return contents;
|
|
2055
2037
|
};
|
|
2056
|
-
const
|
|
2038
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2057
2039
|
const parsedOutput = {
|
|
2058
2040
|
...output,
|
|
2059
2041
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2062,13 +2044,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2062
2044
|
switch (errorCode) {
|
|
2063
2045
|
case "BadRequestException":
|
|
2064
2046
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2065
|
-
throw await
|
|
2047
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2066
2048
|
case "InternalServerErrorException":
|
|
2067
2049
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2068
|
-
throw await
|
|
2050
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2069
2051
|
case "NotFoundException":
|
|
2070
2052
|
case "com.amazonaws.kafka#NotFoundException":
|
|
2071
|
-
throw await
|
|
2053
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2072
2054
|
default:
|
|
2073
2055
|
const parsedBody = parsedOutput.body;
|
|
2074
2056
|
throwDefaultError({
|
|
@@ -2079,9 +2061,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2079
2061
|
});
|
|
2080
2062
|
}
|
|
2081
2063
|
};
|
|
2082
|
-
export const
|
|
2064
|
+
export const de_UpdateBrokerCountCommand = async (output, context) => {
|
|
2083
2065
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2084
|
-
return
|
|
2066
|
+
return de_UpdateBrokerCountCommandError(output, context);
|
|
2085
2067
|
}
|
|
2086
2068
|
const contents = map({
|
|
2087
2069
|
$metadata: deserializeMetadata(output),
|
|
@@ -2095,7 +2077,7 @@ export const deserializeAws_restJson1UpdateBrokerCountCommand = async (output, c
|
|
|
2095
2077
|
}
|
|
2096
2078
|
return contents;
|
|
2097
2079
|
};
|
|
2098
|
-
const
|
|
2080
|
+
const de_UpdateBrokerCountCommandError = async (output, context) => {
|
|
2099
2081
|
const parsedOutput = {
|
|
2100
2082
|
...output,
|
|
2101
2083
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2104,19 +2086,19 @@ const deserializeAws_restJson1UpdateBrokerCountCommandError = async (output, con
|
|
|
2104
2086
|
switch (errorCode) {
|
|
2105
2087
|
case "BadRequestException":
|
|
2106
2088
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2107
|
-
throw await
|
|
2089
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2108
2090
|
case "ForbiddenException":
|
|
2109
2091
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2110
|
-
throw await
|
|
2092
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2111
2093
|
case "InternalServerErrorException":
|
|
2112
2094
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2113
|
-
throw await
|
|
2095
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2114
2096
|
case "ServiceUnavailableException":
|
|
2115
2097
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2116
|
-
throw await
|
|
2098
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2117
2099
|
case "UnauthorizedException":
|
|
2118
2100
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2119
|
-
throw await
|
|
2101
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2120
2102
|
default:
|
|
2121
2103
|
const parsedBody = parsedOutput.body;
|
|
2122
2104
|
throwDefaultError({
|
|
@@ -2127,9 +2109,9 @@ const deserializeAws_restJson1UpdateBrokerCountCommandError = async (output, con
|
|
|
2127
2109
|
});
|
|
2128
2110
|
}
|
|
2129
2111
|
};
|
|
2130
|
-
export const
|
|
2112
|
+
export const de_UpdateBrokerStorageCommand = async (output, context) => {
|
|
2131
2113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2132
|
-
return
|
|
2114
|
+
return de_UpdateBrokerStorageCommandError(output, context);
|
|
2133
2115
|
}
|
|
2134
2116
|
const contents = map({
|
|
2135
2117
|
$metadata: deserializeMetadata(output),
|
|
@@ -2143,7 +2125,7 @@ export const deserializeAws_restJson1UpdateBrokerStorageCommand = async (output,
|
|
|
2143
2125
|
}
|
|
2144
2126
|
return contents;
|
|
2145
2127
|
};
|
|
2146
|
-
const
|
|
2128
|
+
const de_UpdateBrokerStorageCommandError = async (output, context) => {
|
|
2147
2129
|
const parsedOutput = {
|
|
2148
2130
|
...output,
|
|
2149
2131
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2152,19 +2134,19 @@ const deserializeAws_restJson1UpdateBrokerStorageCommandError = async (output, c
|
|
|
2152
2134
|
switch (errorCode) {
|
|
2153
2135
|
case "BadRequestException":
|
|
2154
2136
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2155
|
-
throw await
|
|
2137
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2156
2138
|
case "ForbiddenException":
|
|
2157
2139
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2158
|
-
throw await
|
|
2140
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2159
2141
|
case "InternalServerErrorException":
|
|
2160
2142
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2161
|
-
throw await
|
|
2143
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2162
2144
|
case "ServiceUnavailableException":
|
|
2163
2145
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2164
|
-
throw await
|
|
2146
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2165
2147
|
case "UnauthorizedException":
|
|
2166
2148
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2167
|
-
throw await
|
|
2149
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2168
2150
|
default:
|
|
2169
2151
|
const parsedBody = parsedOutput.body;
|
|
2170
2152
|
throwDefaultError({
|
|
@@ -2175,9 +2157,9 @@ const deserializeAws_restJson1UpdateBrokerStorageCommandError = async (output, c
|
|
|
2175
2157
|
});
|
|
2176
2158
|
}
|
|
2177
2159
|
};
|
|
2178
|
-
export const
|
|
2160
|
+
export const de_UpdateBrokerTypeCommand = async (output, context) => {
|
|
2179
2161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2180
|
-
return
|
|
2162
|
+
return de_UpdateBrokerTypeCommandError(output, context);
|
|
2181
2163
|
}
|
|
2182
2164
|
const contents = map({
|
|
2183
2165
|
$metadata: deserializeMetadata(output),
|
|
@@ -2191,7 +2173,7 @@ export const deserializeAws_restJson1UpdateBrokerTypeCommand = async (output, co
|
|
|
2191
2173
|
}
|
|
2192
2174
|
return contents;
|
|
2193
2175
|
};
|
|
2194
|
-
const
|
|
2176
|
+
const de_UpdateBrokerTypeCommandError = async (output, context) => {
|
|
2195
2177
|
const parsedOutput = {
|
|
2196
2178
|
...output,
|
|
2197
2179
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2200,25 +2182,25 @@ const deserializeAws_restJson1UpdateBrokerTypeCommandError = async (output, cont
|
|
|
2200
2182
|
switch (errorCode) {
|
|
2201
2183
|
case "BadRequestException":
|
|
2202
2184
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2203
|
-
throw await
|
|
2185
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2204
2186
|
case "ForbiddenException":
|
|
2205
2187
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2206
|
-
throw await
|
|
2188
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2207
2189
|
case "InternalServerErrorException":
|
|
2208
2190
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2209
|
-
throw await
|
|
2191
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2210
2192
|
case "NotFoundException":
|
|
2211
2193
|
case "com.amazonaws.kafka#NotFoundException":
|
|
2212
|
-
throw await
|
|
2194
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2213
2195
|
case "ServiceUnavailableException":
|
|
2214
2196
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2215
|
-
throw await
|
|
2197
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2216
2198
|
case "TooManyRequestsException":
|
|
2217
2199
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2218
|
-
throw await
|
|
2200
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2219
2201
|
case "UnauthorizedException":
|
|
2220
2202
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2221
|
-
throw await
|
|
2203
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2222
2204
|
default:
|
|
2223
2205
|
const parsedBody = parsedOutput.body;
|
|
2224
2206
|
throwDefaultError({
|
|
@@ -2229,9 +2211,9 @@ const deserializeAws_restJson1UpdateBrokerTypeCommandError = async (output, cont
|
|
|
2229
2211
|
});
|
|
2230
2212
|
}
|
|
2231
2213
|
};
|
|
2232
|
-
export const
|
|
2214
|
+
export const de_UpdateClusterConfigurationCommand = async (output, context) => {
|
|
2233
2215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2234
|
-
return
|
|
2216
|
+
return de_UpdateClusterConfigurationCommandError(output, context);
|
|
2235
2217
|
}
|
|
2236
2218
|
const contents = map({
|
|
2237
2219
|
$metadata: deserializeMetadata(output),
|
|
@@ -2245,7 +2227,7 @@ export const deserializeAws_restJson1UpdateClusterConfigurationCommand = async (
|
|
|
2245
2227
|
}
|
|
2246
2228
|
return contents;
|
|
2247
2229
|
};
|
|
2248
|
-
const
|
|
2230
|
+
const de_UpdateClusterConfigurationCommandError = async (output, context) => {
|
|
2249
2231
|
const parsedOutput = {
|
|
2250
2232
|
...output,
|
|
2251
2233
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2254,22 +2236,22 @@ const deserializeAws_restJson1UpdateClusterConfigurationCommandError = async (ou
|
|
|
2254
2236
|
switch (errorCode) {
|
|
2255
2237
|
case "BadRequestException":
|
|
2256
2238
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2257
|
-
throw await
|
|
2239
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2258
2240
|
case "ForbiddenException":
|
|
2259
2241
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2260
|
-
throw await
|
|
2242
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2261
2243
|
case "InternalServerErrorException":
|
|
2262
2244
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2263
|
-
throw await
|
|
2245
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2264
2246
|
case "NotFoundException":
|
|
2265
2247
|
case "com.amazonaws.kafka#NotFoundException":
|
|
2266
|
-
throw await
|
|
2248
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2267
2249
|
case "ServiceUnavailableException":
|
|
2268
2250
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2269
|
-
throw await
|
|
2251
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2270
2252
|
case "UnauthorizedException":
|
|
2271
2253
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2272
|
-
throw await
|
|
2254
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2273
2255
|
default:
|
|
2274
2256
|
const parsedBody = parsedOutput.body;
|
|
2275
2257
|
throwDefaultError({
|
|
@@ -2280,9 +2262,9 @@ const deserializeAws_restJson1UpdateClusterConfigurationCommandError = async (ou
|
|
|
2280
2262
|
});
|
|
2281
2263
|
}
|
|
2282
2264
|
};
|
|
2283
|
-
export const
|
|
2265
|
+
export const de_UpdateClusterKafkaVersionCommand = async (output, context) => {
|
|
2284
2266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2285
|
-
return
|
|
2267
|
+
return de_UpdateClusterKafkaVersionCommandError(output, context);
|
|
2286
2268
|
}
|
|
2287
2269
|
const contents = map({
|
|
2288
2270
|
$metadata: deserializeMetadata(output),
|
|
@@ -2296,7 +2278,7 @@ export const deserializeAws_restJson1UpdateClusterKafkaVersionCommand = async (o
|
|
|
2296
2278
|
}
|
|
2297
2279
|
return contents;
|
|
2298
2280
|
};
|
|
2299
|
-
const
|
|
2281
|
+
const de_UpdateClusterKafkaVersionCommandError = async (output, context) => {
|
|
2300
2282
|
const parsedOutput = {
|
|
2301
2283
|
...output,
|
|
2302
2284
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2305,25 +2287,25 @@ const deserializeAws_restJson1UpdateClusterKafkaVersionCommandError = async (out
|
|
|
2305
2287
|
switch (errorCode) {
|
|
2306
2288
|
case "BadRequestException":
|
|
2307
2289
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2308
|
-
throw await
|
|
2290
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2309
2291
|
case "ForbiddenException":
|
|
2310
2292
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2311
|
-
throw await
|
|
2293
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2312
2294
|
case "InternalServerErrorException":
|
|
2313
2295
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2314
|
-
throw await
|
|
2296
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2315
2297
|
case "NotFoundException":
|
|
2316
2298
|
case "com.amazonaws.kafka#NotFoundException":
|
|
2317
|
-
throw await
|
|
2299
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2318
2300
|
case "ServiceUnavailableException":
|
|
2319
2301
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2320
|
-
throw await
|
|
2302
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2321
2303
|
case "TooManyRequestsException":
|
|
2322
2304
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2323
|
-
throw await
|
|
2305
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2324
2306
|
case "UnauthorizedException":
|
|
2325
2307
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2326
|
-
throw await
|
|
2308
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2327
2309
|
default:
|
|
2328
2310
|
const parsedBody = parsedOutput.body;
|
|
2329
2311
|
throwDefaultError({
|
|
@@ -2334,9 +2316,9 @@ const deserializeAws_restJson1UpdateClusterKafkaVersionCommandError = async (out
|
|
|
2334
2316
|
});
|
|
2335
2317
|
}
|
|
2336
2318
|
};
|
|
2337
|
-
export const
|
|
2319
|
+
export const de_UpdateConfigurationCommand = async (output, context) => {
|
|
2338
2320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2339
|
-
return
|
|
2321
|
+
return de_UpdateConfigurationCommandError(output, context);
|
|
2340
2322
|
}
|
|
2341
2323
|
const contents = map({
|
|
2342
2324
|
$metadata: deserializeMetadata(output),
|
|
@@ -2346,11 +2328,11 @@ export const deserializeAws_restJson1UpdateConfigurationCommand = async (output,
|
|
|
2346
2328
|
contents.Arn = __expectString(data.arn);
|
|
2347
2329
|
}
|
|
2348
2330
|
if (data.latestRevision != null) {
|
|
2349
|
-
contents.LatestRevision =
|
|
2331
|
+
contents.LatestRevision = de_ConfigurationRevision(data.latestRevision, context);
|
|
2350
2332
|
}
|
|
2351
2333
|
return contents;
|
|
2352
2334
|
};
|
|
2353
|
-
const
|
|
2335
|
+
const de_UpdateConfigurationCommandError = async (output, context) => {
|
|
2354
2336
|
const parsedOutput = {
|
|
2355
2337
|
...output,
|
|
2356
2338
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2359,22 +2341,22 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
|
|
|
2359
2341
|
switch (errorCode) {
|
|
2360
2342
|
case "BadRequestException":
|
|
2361
2343
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2362
|
-
throw await
|
|
2344
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2363
2345
|
case "ForbiddenException":
|
|
2364
2346
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2365
|
-
throw await
|
|
2347
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2366
2348
|
case "InternalServerErrorException":
|
|
2367
2349
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2368
|
-
throw await
|
|
2350
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2369
2351
|
case "NotFoundException":
|
|
2370
2352
|
case "com.amazonaws.kafka#NotFoundException":
|
|
2371
|
-
throw await
|
|
2353
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2372
2354
|
case "ServiceUnavailableException":
|
|
2373
2355
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2374
|
-
throw await
|
|
2356
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2375
2357
|
case "UnauthorizedException":
|
|
2376
2358
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2377
|
-
throw await
|
|
2359
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2378
2360
|
default:
|
|
2379
2361
|
const parsedBody = parsedOutput.body;
|
|
2380
2362
|
throwDefaultError({
|
|
@@ -2385,9 +2367,9 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
|
|
|
2385
2367
|
});
|
|
2386
2368
|
}
|
|
2387
2369
|
};
|
|
2388
|
-
export const
|
|
2370
|
+
export const de_UpdateConnectivityCommand = async (output, context) => {
|
|
2389
2371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2390
|
-
return
|
|
2372
|
+
return de_UpdateConnectivityCommandError(output, context);
|
|
2391
2373
|
}
|
|
2392
2374
|
const contents = map({
|
|
2393
2375
|
$metadata: deserializeMetadata(output),
|
|
@@ -2401,7 +2383,7 @@ export const deserializeAws_restJson1UpdateConnectivityCommand = async (output,
|
|
|
2401
2383
|
}
|
|
2402
2384
|
return contents;
|
|
2403
2385
|
};
|
|
2404
|
-
const
|
|
2386
|
+
const de_UpdateConnectivityCommandError = async (output, context) => {
|
|
2405
2387
|
const parsedOutput = {
|
|
2406
2388
|
...output,
|
|
2407
2389
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2410,22 +2392,22 @@ const deserializeAws_restJson1UpdateConnectivityCommandError = async (output, co
|
|
|
2410
2392
|
switch (errorCode) {
|
|
2411
2393
|
case "BadRequestException":
|
|
2412
2394
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2413
|
-
throw await
|
|
2395
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2414
2396
|
case "ForbiddenException":
|
|
2415
2397
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2416
|
-
throw await
|
|
2398
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2417
2399
|
case "InternalServerErrorException":
|
|
2418
2400
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2419
|
-
throw await
|
|
2401
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2420
2402
|
case "NotFoundException":
|
|
2421
2403
|
case "com.amazonaws.kafka#NotFoundException":
|
|
2422
|
-
throw await
|
|
2404
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2423
2405
|
case "ServiceUnavailableException":
|
|
2424
2406
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2425
|
-
throw await
|
|
2407
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2426
2408
|
case "UnauthorizedException":
|
|
2427
2409
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2428
|
-
throw await
|
|
2410
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2429
2411
|
default:
|
|
2430
2412
|
const parsedBody = parsedOutput.body;
|
|
2431
2413
|
throwDefaultError({
|
|
@@ -2436,9 +2418,9 @@ const deserializeAws_restJson1UpdateConnectivityCommandError = async (output, co
|
|
|
2436
2418
|
});
|
|
2437
2419
|
}
|
|
2438
2420
|
};
|
|
2439
|
-
export const
|
|
2421
|
+
export const de_UpdateMonitoringCommand = async (output, context) => {
|
|
2440
2422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2441
|
-
return
|
|
2423
|
+
return de_UpdateMonitoringCommandError(output, context);
|
|
2442
2424
|
}
|
|
2443
2425
|
const contents = map({
|
|
2444
2426
|
$metadata: deserializeMetadata(output),
|
|
@@ -2452,7 +2434,7 @@ export const deserializeAws_restJson1UpdateMonitoringCommand = async (output, co
|
|
|
2452
2434
|
}
|
|
2453
2435
|
return contents;
|
|
2454
2436
|
};
|
|
2455
|
-
const
|
|
2437
|
+
const de_UpdateMonitoringCommandError = async (output, context) => {
|
|
2456
2438
|
const parsedOutput = {
|
|
2457
2439
|
...output,
|
|
2458
2440
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2461,19 +2443,19 @@ const deserializeAws_restJson1UpdateMonitoringCommandError = async (output, cont
|
|
|
2461
2443
|
switch (errorCode) {
|
|
2462
2444
|
case "BadRequestException":
|
|
2463
2445
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2464
|
-
throw await
|
|
2446
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2465
2447
|
case "ForbiddenException":
|
|
2466
2448
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2467
|
-
throw await
|
|
2449
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2468
2450
|
case "InternalServerErrorException":
|
|
2469
2451
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2470
|
-
throw await
|
|
2452
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2471
2453
|
case "ServiceUnavailableException":
|
|
2472
2454
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2473
|
-
throw await
|
|
2455
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2474
2456
|
case "UnauthorizedException":
|
|
2475
2457
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2476
|
-
throw await
|
|
2458
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2477
2459
|
default:
|
|
2478
2460
|
const parsedBody = parsedOutput.body;
|
|
2479
2461
|
throwDefaultError({
|
|
@@ -2484,9 +2466,9 @@ const deserializeAws_restJson1UpdateMonitoringCommandError = async (output, cont
|
|
|
2484
2466
|
});
|
|
2485
2467
|
}
|
|
2486
2468
|
};
|
|
2487
|
-
export const
|
|
2469
|
+
export const de_UpdateSecurityCommand = async (output, context) => {
|
|
2488
2470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2489
|
-
return
|
|
2471
|
+
return de_UpdateSecurityCommandError(output, context);
|
|
2490
2472
|
}
|
|
2491
2473
|
const contents = map({
|
|
2492
2474
|
$metadata: deserializeMetadata(output),
|
|
@@ -2500,7 +2482,7 @@ export const deserializeAws_restJson1UpdateSecurityCommand = async (output, cont
|
|
|
2500
2482
|
}
|
|
2501
2483
|
return contents;
|
|
2502
2484
|
};
|
|
2503
|
-
const
|
|
2485
|
+
const de_UpdateSecurityCommandError = async (output, context) => {
|
|
2504
2486
|
const parsedOutput = {
|
|
2505
2487
|
...output,
|
|
2506
2488
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2509,25 +2491,25 @@ const deserializeAws_restJson1UpdateSecurityCommandError = async (output, contex
|
|
|
2509
2491
|
switch (errorCode) {
|
|
2510
2492
|
case "BadRequestException":
|
|
2511
2493
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2512
|
-
throw await
|
|
2494
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2513
2495
|
case "ForbiddenException":
|
|
2514
2496
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2515
|
-
throw await
|
|
2497
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2516
2498
|
case "InternalServerErrorException":
|
|
2517
2499
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2518
|
-
throw await
|
|
2500
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2519
2501
|
case "NotFoundException":
|
|
2520
2502
|
case "com.amazonaws.kafka#NotFoundException":
|
|
2521
|
-
throw await
|
|
2503
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2522
2504
|
case "ServiceUnavailableException":
|
|
2523
2505
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2524
|
-
throw await
|
|
2506
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2525
2507
|
case "TooManyRequestsException":
|
|
2526
2508
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2527
|
-
throw await
|
|
2509
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2528
2510
|
case "UnauthorizedException":
|
|
2529
2511
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2530
|
-
throw await
|
|
2512
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2531
2513
|
default:
|
|
2532
2514
|
const parsedBody = parsedOutput.body;
|
|
2533
2515
|
throwDefaultError({
|
|
@@ -2538,9 +2520,9 @@ const deserializeAws_restJson1UpdateSecurityCommandError = async (output, contex
|
|
|
2538
2520
|
});
|
|
2539
2521
|
}
|
|
2540
2522
|
};
|
|
2541
|
-
export const
|
|
2523
|
+
export const de_UpdateStorageCommand = async (output, context) => {
|
|
2542
2524
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2543
|
-
return
|
|
2525
|
+
return de_UpdateStorageCommandError(output, context);
|
|
2544
2526
|
}
|
|
2545
2527
|
const contents = map({
|
|
2546
2528
|
$metadata: deserializeMetadata(output),
|
|
@@ -2554,7 +2536,7 @@ export const deserializeAws_restJson1UpdateStorageCommand = async (output, conte
|
|
|
2554
2536
|
}
|
|
2555
2537
|
return contents;
|
|
2556
2538
|
};
|
|
2557
|
-
const
|
|
2539
|
+
const de_UpdateStorageCommandError = async (output, context) => {
|
|
2558
2540
|
const parsedOutput = {
|
|
2559
2541
|
...output,
|
|
2560
2542
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2563,25 +2545,25 @@ const deserializeAws_restJson1UpdateStorageCommandError = async (output, context
|
|
|
2563
2545
|
switch (errorCode) {
|
|
2564
2546
|
case "BadRequestException":
|
|
2565
2547
|
case "com.amazonaws.kafka#BadRequestException":
|
|
2566
|
-
throw await
|
|
2548
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2567
2549
|
case "ForbiddenException":
|
|
2568
2550
|
case "com.amazonaws.kafka#ForbiddenException":
|
|
2569
|
-
throw await
|
|
2551
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2570
2552
|
case "InternalServerErrorException":
|
|
2571
2553
|
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
2572
|
-
throw await
|
|
2554
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2573
2555
|
case "NotFoundException":
|
|
2574
2556
|
case "com.amazonaws.kafka#NotFoundException":
|
|
2575
|
-
throw await
|
|
2557
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2576
2558
|
case "ServiceUnavailableException":
|
|
2577
2559
|
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
2578
|
-
throw await
|
|
2560
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2579
2561
|
case "TooManyRequestsException":
|
|
2580
2562
|
case "com.amazonaws.kafka#TooManyRequestsException":
|
|
2581
|
-
throw await
|
|
2563
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2582
2564
|
case "UnauthorizedException":
|
|
2583
2565
|
case "com.amazonaws.kafka#UnauthorizedException":
|
|
2584
|
-
throw await
|
|
2566
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2585
2567
|
default:
|
|
2586
2568
|
const parsedBody = parsedOutput.body;
|
|
2587
2569
|
throwDefaultError({
|
|
@@ -2593,7 +2575,7 @@ const deserializeAws_restJson1UpdateStorageCommandError = async (output, context
|
|
|
2593
2575
|
}
|
|
2594
2576
|
};
|
|
2595
2577
|
const map = __map;
|
|
2596
|
-
const
|
|
2578
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2597
2579
|
const contents = map({});
|
|
2598
2580
|
const data = parsedOutput.body;
|
|
2599
2581
|
if (data.invalidParameter != null) {
|
|
@@ -2608,7 +2590,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
2608
2590
|
});
|
|
2609
2591
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2610
2592
|
};
|
|
2611
|
-
const
|
|
2593
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2612
2594
|
const contents = map({});
|
|
2613
2595
|
const data = parsedOutput.body;
|
|
2614
2596
|
if (data.invalidParameter != null) {
|
|
@@ -2623,7 +2605,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2623
2605
|
});
|
|
2624
2606
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2625
2607
|
};
|
|
2626
|
-
const
|
|
2608
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2627
2609
|
const contents = map({});
|
|
2628
2610
|
const data = parsedOutput.body;
|
|
2629
2611
|
if (data.invalidParameter != null) {
|
|
@@ -2638,7 +2620,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
2638
2620
|
});
|
|
2639
2621
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2640
2622
|
};
|
|
2641
|
-
const
|
|
2623
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
2642
2624
|
const contents = map({});
|
|
2643
2625
|
const data = parsedOutput.body;
|
|
2644
2626
|
if (data.invalidParameter != null) {
|
|
@@ -2653,7 +2635,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
2653
2635
|
});
|
|
2654
2636
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2655
2637
|
};
|
|
2656
|
-
const
|
|
2638
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2657
2639
|
const contents = map({});
|
|
2658
2640
|
const data = parsedOutput.body;
|
|
2659
2641
|
if (data.invalidParameter != null) {
|
|
@@ -2668,7 +2650,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
2668
2650
|
});
|
|
2669
2651
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2670
2652
|
};
|
|
2671
|
-
const
|
|
2653
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2672
2654
|
const contents = map({});
|
|
2673
2655
|
const data = parsedOutput.body;
|
|
2674
2656
|
if (data.invalidParameter != null) {
|
|
@@ -2683,7 +2665,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
2683
2665
|
});
|
|
2684
2666
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2685
2667
|
};
|
|
2686
|
-
const
|
|
2668
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
2687
2669
|
const contents = map({});
|
|
2688
2670
|
const data = parsedOutput.body;
|
|
2689
2671
|
if (data.invalidParameter != null) {
|
|
@@ -2698,7 +2680,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
2698
2680
|
});
|
|
2699
2681
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2700
2682
|
};
|
|
2701
|
-
const
|
|
2683
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
2702
2684
|
const contents = map({});
|
|
2703
2685
|
const data = parsedOutput.body;
|
|
2704
2686
|
if (data.invalidParameter != null) {
|
|
@@ -2713,28 +2695,28 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
2713
2695
|
});
|
|
2714
2696
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2715
2697
|
};
|
|
2716
|
-
const
|
|
2698
|
+
const se___listOf__string = (input, context) => {
|
|
2717
2699
|
return input
|
|
2718
2700
|
.filter((e) => e != null)
|
|
2719
2701
|
.map((entry) => {
|
|
2720
2702
|
return entry;
|
|
2721
2703
|
});
|
|
2722
2704
|
};
|
|
2723
|
-
const
|
|
2705
|
+
const se___listOfBrokerEBSVolumeInfo = (input, context) => {
|
|
2724
2706
|
return input
|
|
2725
2707
|
.filter((e) => e != null)
|
|
2726
2708
|
.map((entry) => {
|
|
2727
|
-
return
|
|
2709
|
+
return se_BrokerEBSVolumeInfo(entry, context);
|
|
2728
2710
|
});
|
|
2729
2711
|
};
|
|
2730
|
-
const
|
|
2712
|
+
const se___listOfVpcConfig = (input, context) => {
|
|
2731
2713
|
return input
|
|
2732
2714
|
.filter((e) => e != null)
|
|
2733
2715
|
.map((entry) => {
|
|
2734
|
-
return
|
|
2716
|
+
return se_VpcConfig(entry, context);
|
|
2735
2717
|
});
|
|
2736
2718
|
};
|
|
2737
|
-
const
|
|
2719
|
+
const se___mapOf__string = (input, context) => {
|
|
2738
2720
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2739
2721
|
if (value === null) {
|
|
2740
2722
|
return acc;
|
|
@@ -2743,238 +2725,212 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
|
|
|
2743
2725
|
return acc;
|
|
2744
2726
|
}, {});
|
|
2745
2727
|
};
|
|
2746
|
-
const
|
|
2728
|
+
const se_BrokerEBSVolumeInfo = (input, context) => {
|
|
2747
2729
|
return {
|
|
2748
2730
|
...(input.KafkaBrokerNodeId != null && { kafkaBrokerNodeId: input.KafkaBrokerNodeId }),
|
|
2749
2731
|
...(input.ProvisionedThroughput != null && {
|
|
2750
|
-
provisionedThroughput:
|
|
2732
|
+
provisionedThroughput: se_ProvisionedThroughput(input.ProvisionedThroughput, context),
|
|
2751
2733
|
}),
|
|
2752
2734
|
...(input.VolumeSizeGB != null && { volumeSizeGB: input.VolumeSizeGB }),
|
|
2753
2735
|
};
|
|
2754
2736
|
};
|
|
2755
|
-
const
|
|
2737
|
+
const se_BrokerLogs = (input, context) => {
|
|
2756
2738
|
return {
|
|
2757
|
-
...(input.CloudWatchLogs != null && {
|
|
2758
|
-
|
|
2759
|
-
}),
|
|
2760
|
-
...(input.Firehose != null && { firehose: serializeAws_restJson1Firehose(input.Firehose, context) }),
|
|
2761
|
-
...(input.S3 != null && { s3: serializeAws_restJson1S3(input.S3, context) }),
|
|
2739
|
+
...(input.CloudWatchLogs != null && { cloudWatchLogs: se_CloudWatchLogs(input.CloudWatchLogs, context) }),
|
|
2740
|
+
...(input.Firehose != null && { firehose: se_Firehose(input.Firehose, context) }),
|
|
2741
|
+
...(input.S3 != null && { s3: se_S3(input.S3, context) }),
|
|
2762
2742
|
};
|
|
2763
2743
|
};
|
|
2764
|
-
const
|
|
2744
|
+
const se_BrokerNodeGroupInfo = (input, context) => {
|
|
2765
2745
|
return {
|
|
2766
2746
|
...(input.BrokerAZDistribution != null && { brokerAZDistribution: input.BrokerAZDistribution }),
|
|
2767
|
-
...(input.ClientSubnets != null && {
|
|
2768
|
-
|
|
2769
|
-
}),
|
|
2770
|
-
...(input.ConnectivityInfo != null && {
|
|
2771
|
-
connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
|
|
2772
|
-
}),
|
|
2747
|
+
...(input.ClientSubnets != null && { clientSubnets: se___listOf__string(input.ClientSubnets, context) }),
|
|
2748
|
+
...(input.ConnectivityInfo != null && { connectivityInfo: se_ConnectivityInfo(input.ConnectivityInfo, context) }),
|
|
2773
2749
|
...(input.InstanceType != null && { instanceType: input.InstanceType }),
|
|
2774
|
-
...(input.SecurityGroups != null && {
|
|
2775
|
-
|
|
2776
|
-
}),
|
|
2777
|
-
...(input.StorageInfo != null && { storageInfo: serializeAws_restJson1StorageInfo(input.StorageInfo, context) }),
|
|
2750
|
+
...(input.SecurityGroups != null && { securityGroups: se___listOf__string(input.SecurityGroups, context) }),
|
|
2751
|
+
...(input.StorageInfo != null && { storageInfo: se_StorageInfo(input.StorageInfo, context) }),
|
|
2778
2752
|
};
|
|
2779
2753
|
};
|
|
2780
|
-
const
|
|
2754
|
+
const se_ClientAuthentication = (input, context) => {
|
|
2781
2755
|
return {
|
|
2782
|
-
...(input.Sasl != null && { sasl:
|
|
2783
|
-
...(input.Tls != null && { tls:
|
|
2784
|
-
...(input.Unauthenticated != null && {
|
|
2785
|
-
unauthenticated: serializeAws_restJson1Unauthenticated(input.Unauthenticated, context),
|
|
2786
|
-
}),
|
|
2756
|
+
...(input.Sasl != null && { sasl: se_Sasl(input.Sasl, context) }),
|
|
2757
|
+
...(input.Tls != null && { tls: se_Tls(input.Tls, context) }),
|
|
2758
|
+
...(input.Unauthenticated != null && { unauthenticated: se_Unauthenticated(input.Unauthenticated, context) }),
|
|
2787
2759
|
};
|
|
2788
2760
|
};
|
|
2789
|
-
const
|
|
2761
|
+
const se_CloudWatchLogs = (input, context) => {
|
|
2790
2762
|
return {
|
|
2791
2763
|
...(input.Enabled != null && { enabled: input.Enabled }),
|
|
2792
2764
|
...(input.LogGroup != null && { logGroup: input.LogGroup }),
|
|
2793
2765
|
};
|
|
2794
2766
|
};
|
|
2795
|
-
const
|
|
2767
|
+
const se_ConfigurationInfo = (input, context) => {
|
|
2796
2768
|
return {
|
|
2797
2769
|
...(input.Arn != null && { arn: input.Arn }),
|
|
2798
2770
|
...(input.Revision != null && { revision: input.Revision }),
|
|
2799
2771
|
};
|
|
2800
2772
|
};
|
|
2801
|
-
const
|
|
2773
|
+
const se_ConnectivityInfo = (input, context) => {
|
|
2802
2774
|
return {
|
|
2803
|
-
...(input.PublicAccess != null && {
|
|
2804
|
-
publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context),
|
|
2805
|
-
}),
|
|
2775
|
+
...(input.PublicAccess != null && { publicAccess: se_PublicAccess(input.PublicAccess, context) }),
|
|
2806
2776
|
};
|
|
2807
2777
|
};
|
|
2808
|
-
const
|
|
2778
|
+
const se_EBSStorageInfo = (input, context) => {
|
|
2809
2779
|
return {
|
|
2810
2780
|
...(input.ProvisionedThroughput != null && {
|
|
2811
|
-
provisionedThroughput:
|
|
2781
|
+
provisionedThroughput: se_ProvisionedThroughput(input.ProvisionedThroughput, context),
|
|
2812
2782
|
}),
|
|
2813
2783
|
...(input.VolumeSize != null && { volumeSize: input.VolumeSize }),
|
|
2814
2784
|
};
|
|
2815
2785
|
};
|
|
2816
|
-
const
|
|
2786
|
+
const se_EncryptionAtRest = (input, context) => {
|
|
2817
2787
|
return {
|
|
2818
2788
|
...(input.DataVolumeKMSKeyId != null && { dataVolumeKMSKeyId: input.DataVolumeKMSKeyId }),
|
|
2819
2789
|
};
|
|
2820
2790
|
};
|
|
2821
|
-
const
|
|
2791
|
+
const se_EncryptionInfo = (input, context) => {
|
|
2822
2792
|
return {
|
|
2823
|
-
...(input.EncryptionAtRest != null && {
|
|
2824
|
-
encryptionAtRest: serializeAws_restJson1EncryptionAtRest(input.EncryptionAtRest, context),
|
|
2825
|
-
}),
|
|
2793
|
+
...(input.EncryptionAtRest != null && { encryptionAtRest: se_EncryptionAtRest(input.EncryptionAtRest, context) }),
|
|
2826
2794
|
...(input.EncryptionInTransit != null && {
|
|
2827
|
-
encryptionInTransit:
|
|
2795
|
+
encryptionInTransit: se_EncryptionInTransit(input.EncryptionInTransit, context),
|
|
2828
2796
|
}),
|
|
2829
2797
|
};
|
|
2830
2798
|
};
|
|
2831
|
-
const
|
|
2799
|
+
const se_EncryptionInTransit = (input, context) => {
|
|
2832
2800
|
return {
|
|
2833
2801
|
...(input.ClientBroker != null && { clientBroker: input.ClientBroker }),
|
|
2834
2802
|
...(input.InCluster != null && { inCluster: input.InCluster }),
|
|
2835
2803
|
};
|
|
2836
2804
|
};
|
|
2837
|
-
const
|
|
2805
|
+
const se_Firehose = (input, context) => {
|
|
2838
2806
|
return {
|
|
2839
2807
|
...(input.DeliveryStream != null && { deliveryStream: input.DeliveryStream }),
|
|
2840
2808
|
...(input.Enabled != null && { enabled: input.Enabled }),
|
|
2841
2809
|
};
|
|
2842
2810
|
};
|
|
2843
|
-
const
|
|
2811
|
+
const se_Iam = (input, context) => {
|
|
2844
2812
|
return {
|
|
2845
2813
|
...(input.Enabled != null && { enabled: input.Enabled }),
|
|
2846
2814
|
};
|
|
2847
2815
|
};
|
|
2848
|
-
const
|
|
2816
|
+
const se_JmxExporterInfo = (input, context) => {
|
|
2849
2817
|
return {
|
|
2850
2818
|
...(input.EnabledInBroker != null && { enabledInBroker: input.EnabledInBroker }),
|
|
2851
2819
|
};
|
|
2852
2820
|
};
|
|
2853
|
-
const
|
|
2821
|
+
const se_LoggingInfo = (input, context) => {
|
|
2854
2822
|
return {
|
|
2855
|
-
...(input.BrokerLogs != null && { brokerLogs:
|
|
2823
|
+
...(input.BrokerLogs != null && { brokerLogs: se_BrokerLogs(input.BrokerLogs, context) }),
|
|
2856
2824
|
};
|
|
2857
2825
|
};
|
|
2858
|
-
const
|
|
2826
|
+
const se_NodeExporterInfo = (input, context) => {
|
|
2859
2827
|
return {
|
|
2860
2828
|
...(input.EnabledInBroker != null && { enabledInBroker: input.EnabledInBroker }),
|
|
2861
2829
|
};
|
|
2862
2830
|
};
|
|
2863
|
-
const
|
|
2831
|
+
const se_OpenMonitoringInfo = (input, context) => {
|
|
2864
2832
|
return {
|
|
2865
|
-
...(input.Prometheus != null && { prometheus:
|
|
2833
|
+
...(input.Prometheus != null && { prometheus: se_PrometheusInfo(input.Prometheus, context) }),
|
|
2866
2834
|
};
|
|
2867
2835
|
};
|
|
2868
|
-
const
|
|
2836
|
+
const se_PrometheusInfo = (input, context) => {
|
|
2869
2837
|
return {
|
|
2870
|
-
...(input.JmxExporter != null && {
|
|
2871
|
-
|
|
2872
|
-
}),
|
|
2873
|
-
...(input.NodeExporter != null && {
|
|
2874
|
-
nodeExporter: serializeAws_restJson1NodeExporterInfo(input.NodeExporter, context),
|
|
2875
|
-
}),
|
|
2838
|
+
...(input.JmxExporter != null && { jmxExporter: se_JmxExporterInfo(input.JmxExporter, context) }),
|
|
2839
|
+
...(input.NodeExporter != null && { nodeExporter: se_NodeExporterInfo(input.NodeExporter, context) }),
|
|
2876
2840
|
};
|
|
2877
2841
|
};
|
|
2878
|
-
const
|
|
2842
|
+
const se_ProvisionedRequest = (input, context) => {
|
|
2879
2843
|
return {
|
|
2880
2844
|
...(input.BrokerNodeGroupInfo != null && {
|
|
2881
|
-
brokerNodeGroupInfo:
|
|
2845
|
+
brokerNodeGroupInfo: se_BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
|
|
2882
2846
|
}),
|
|
2883
2847
|
...(input.ClientAuthentication != null && {
|
|
2884
|
-
clientAuthentication:
|
|
2848
|
+
clientAuthentication: se_ClientAuthentication(input.ClientAuthentication, context),
|
|
2885
2849
|
}),
|
|
2886
2850
|
...(input.ConfigurationInfo != null && {
|
|
2887
|
-
configurationInfo:
|
|
2888
|
-
}),
|
|
2889
|
-
...(input.EncryptionInfo != null && {
|
|
2890
|
-
encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
|
|
2851
|
+
configurationInfo: se_ConfigurationInfo(input.ConfigurationInfo, context),
|
|
2891
2852
|
}),
|
|
2853
|
+
...(input.EncryptionInfo != null && { encryptionInfo: se_EncryptionInfo(input.EncryptionInfo, context) }),
|
|
2892
2854
|
...(input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring }),
|
|
2893
2855
|
...(input.KafkaVersion != null && { kafkaVersion: input.KafkaVersion }),
|
|
2894
|
-
...(input.LoggingInfo != null && { loggingInfo:
|
|
2856
|
+
...(input.LoggingInfo != null && { loggingInfo: se_LoggingInfo(input.LoggingInfo, context) }),
|
|
2895
2857
|
...(input.NumberOfBrokerNodes != null && { numberOfBrokerNodes: input.NumberOfBrokerNodes }),
|
|
2896
|
-
...(input.OpenMonitoring != null && {
|
|
2897
|
-
openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
|
|
2898
|
-
}),
|
|
2858
|
+
...(input.OpenMonitoring != null && { openMonitoring: se_OpenMonitoringInfo(input.OpenMonitoring, context) }),
|
|
2899
2859
|
...(input.StorageMode != null && { storageMode: input.StorageMode }),
|
|
2900
2860
|
};
|
|
2901
2861
|
};
|
|
2902
|
-
const
|
|
2862
|
+
const se_ProvisionedThroughput = (input, context) => {
|
|
2903
2863
|
return {
|
|
2904
2864
|
...(input.Enabled != null && { enabled: input.Enabled }),
|
|
2905
2865
|
...(input.VolumeThroughput != null && { volumeThroughput: input.VolumeThroughput }),
|
|
2906
2866
|
};
|
|
2907
2867
|
};
|
|
2908
|
-
const
|
|
2868
|
+
const se_PublicAccess = (input, context) => {
|
|
2909
2869
|
return {
|
|
2910
2870
|
...(input.Type != null && { type: input.Type }),
|
|
2911
2871
|
};
|
|
2912
2872
|
};
|
|
2913
|
-
const
|
|
2873
|
+
const se_S3 = (input, context) => {
|
|
2914
2874
|
return {
|
|
2915
2875
|
...(input.Bucket != null && { bucket: input.Bucket }),
|
|
2916
2876
|
...(input.Enabled != null && { enabled: input.Enabled }),
|
|
2917
2877
|
...(input.Prefix != null && { prefix: input.Prefix }),
|
|
2918
2878
|
};
|
|
2919
2879
|
};
|
|
2920
|
-
const
|
|
2880
|
+
const se_Sasl = (input, context) => {
|
|
2921
2881
|
return {
|
|
2922
|
-
...(input.Iam != null && { iam:
|
|
2923
|
-
...(input.Scram != null && { scram:
|
|
2882
|
+
...(input.Iam != null && { iam: se_Iam(input.Iam, context) }),
|
|
2883
|
+
...(input.Scram != null && { scram: se_Scram(input.Scram, context) }),
|
|
2924
2884
|
};
|
|
2925
2885
|
};
|
|
2926
|
-
const
|
|
2886
|
+
const se_Scram = (input, context) => {
|
|
2927
2887
|
return {
|
|
2928
2888
|
...(input.Enabled != null && { enabled: input.Enabled }),
|
|
2929
2889
|
};
|
|
2930
2890
|
};
|
|
2931
|
-
const
|
|
2891
|
+
const se_ServerlessClientAuthentication = (input, context) => {
|
|
2932
2892
|
return {
|
|
2933
|
-
...(input.Sasl != null && { sasl:
|
|
2893
|
+
...(input.Sasl != null && { sasl: se_ServerlessSasl(input.Sasl, context) }),
|
|
2934
2894
|
};
|
|
2935
2895
|
};
|
|
2936
|
-
const
|
|
2896
|
+
const se_ServerlessRequest = (input, context) => {
|
|
2937
2897
|
return {
|
|
2938
2898
|
...(input.ClientAuthentication != null && {
|
|
2939
|
-
clientAuthentication:
|
|
2899
|
+
clientAuthentication: se_ServerlessClientAuthentication(input.ClientAuthentication, context),
|
|
2940
2900
|
}),
|
|
2941
|
-
...(input.VpcConfigs != null && { vpcConfigs:
|
|
2901
|
+
...(input.VpcConfigs != null && { vpcConfigs: se___listOfVpcConfig(input.VpcConfigs, context) }),
|
|
2942
2902
|
};
|
|
2943
2903
|
};
|
|
2944
|
-
const
|
|
2904
|
+
const se_ServerlessSasl = (input, context) => {
|
|
2945
2905
|
return {
|
|
2946
|
-
...(input.Iam != null && { iam:
|
|
2906
|
+
...(input.Iam != null && { iam: se_Iam(input.Iam, context) }),
|
|
2947
2907
|
};
|
|
2948
2908
|
};
|
|
2949
|
-
const
|
|
2909
|
+
const se_StorageInfo = (input, context) => {
|
|
2950
2910
|
return {
|
|
2951
|
-
...(input.EbsStorageInfo != null && {
|
|
2952
|
-
ebsStorageInfo: serializeAws_restJson1EBSStorageInfo(input.EbsStorageInfo, context),
|
|
2953
|
-
}),
|
|
2911
|
+
...(input.EbsStorageInfo != null && { ebsStorageInfo: se_EBSStorageInfo(input.EbsStorageInfo, context) }),
|
|
2954
2912
|
};
|
|
2955
2913
|
};
|
|
2956
|
-
const
|
|
2914
|
+
const se_Tls = (input, context) => {
|
|
2957
2915
|
return {
|
|
2958
2916
|
...(input.CertificateAuthorityArnList != null && {
|
|
2959
|
-
certificateAuthorityArnList:
|
|
2917
|
+
certificateAuthorityArnList: se___listOf__string(input.CertificateAuthorityArnList, context),
|
|
2960
2918
|
}),
|
|
2961
2919
|
...(input.Enabled != null && { enabled: input.Enabled }),
|
|
2962
2920
|
};
|
|
2963
2921
|
};
|
|
2964
|
-
const
|
|
2922
|
+
const se_Unauthenticated = (input, context) => {
|
|
2965
2923
|
return {
|
|
2966
2924
|
...(input.Enabled != null && { enabled: input.Enabled }),
|
|
2967
2925
|
};
|
|
2968
2926
|
};
|
|
2969
|
-
const
|
|
2927
|
+
const se_VpcConfig = (input, context) => {
|
|
2970
2928
|
return {
|
|
2971
|
-
...(input.SecurityGroupIds != null && {
|
|
2972
|
-
|
|
2973
|
-
}),
|
|
2974
|
-
...(input.SubnetIds != null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }),
|
|
2929
|
+
...(input.SecurityGroupIds != null && { securityGroupIds: se___listOf__string(input.SecurityGroupIds, context) }),
|
|
2930
|
+
...(input.SubnetIds != null && { subnetIds: se___listOf__string(input.SubnetIds, context) }),
|
|
2975
2931
|
};
|
|
2976
2932
|
};
|
|
2977
|
-
const
|
|
2933
|
+
const de___listOf__string = (output, context) => {
|
|
2978
2934
|
const retVal = (output || [])
|
|
2979
2935
|
.filter((e) => e != null)
|
|
2980
2936
|
.map((entry) => {
|
|
@@ -2985,139 +2941,139 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
2985
2941
|
});
|
|
2986
2942
|
return retVal;
|
|
2987
2943
|
};
|
|
2988
|
-
const
|
|
2944
|
+
const de___listOfBrokerEBSVolumeInfo = (output, context) => {
|
|
2989
2945
|
const retVal = (output || [])
|
|
2990
2946
|
.filter((e) => e != null)
|
|
2991
2947
|
.map((entry) => {
|
|
2992
2948
|
if (entry === null) {
|
|
2993
2949
|
return null;
|
|
2994
2950
|
}
|
|
2995
|
-
return
|
|
2951
|
+
return de_BrokerEBSVolumeInfo(entry, context);
|
|
2996
2952
|
});
|
|
2997
2953
|
return retVal;
|
|
2998
2954
|
};
|
|
2999
|
-
const
|
|
2955
|
+
const de___listOfCluster = (output, context) => {
|
|
3000
2956
|
const retVal = (output || [])
|
|
3001
2957
|
.filter((e) => e != null)
|
|
3002
2958
|
.map((entry) => {
|
|
3003
2959
|
if (entry === null) {
|
|
3004
2960
|
return null;
|
|
3005
2961
|
}
|
|
3006
|
-
return
|
|
2962
|
+
return de_Cluster(entry, context);
|
|
3007
2963
|
});
|
|
3008
2964
|
return retVal;
|
|
3009
2965
|
};
|
|
3010
|
-
const
|
|
2966
|
+
const de___listOfClusterInfo = (output, context) => {
|
|
3011
2967
|
const retVal = (output || [])
|
|
3012
2968
|
.filter((e) => e != null)
|
|
3013
2969
|
.map((entry) => {
|
|
3014
2970
|
if (entry === null) {
|
|
3015
2971
|
return null;
|
|
3016
2972
|
}
|
|
3017
|
-
return
|
|
2973
|
+
return de_ClusterInfo(entry, context);
|
|
3018
2974
|
});
|
|
3019
2975
|
return retVal;
|
|
3020
2976
|
};
|
|
3021
|
-
const
|
|
2977
|
+
const de___listOfClusterOperationInfo = (output, context) => {
|
|
3022
2978
|
const retVal = (output || [])
|
|
3023
2979
|
.filter((e) => e != null)
|
|
3024
2980
|
.map((entry) => {
|
|
3025
2981
|
if (entry === null) {
|
|
3026
2982
|
return null;
|
|
3027
2983
|
}
|
|
3028
|
-
return
|
|
2984
|
+
return de_ClusterOperationInfo(entry, context);
|
|
3029
2985
|
});
|
|
3030
2986
|
return retVal;
|
|
3031
2987
|
};
|
|
3032
|
-
const
|
|
2988
|
+
const de___listOfClusterOperationStep = (output, context) => {
|
|
3033
2989
|
const retVal = (output || [])
|
|
3034
2990
|
.filter((e) => e != null)
|
|
3035
2991
|
.map((entry) => {
|
|
3036
2992
|
if (entry === null) {
|
|
3037
2993
|
return null;
|
|
3038
2994
|
}
|
|
3039
|
-
return
|
|
2995
|
+
return de_ClusterOperationStep(entry, context);
|
|
3040
2996
|
});
|
|
3041
2997
|
return retVal;
|
|
3042
2998
|
};
|
|
3043
|
-
const
|
|
2999
|
+
const de___listOfCompatibleKafkaVersion = (output, context) => {
|
|
3044
3000
|
const retVal = (output || [])
|
|
3045
3001
|
.filter((e) => e != null)
|
|
3046
3002
|
.map((entry) => {
|
|
3047
3003
|
if (entry === null) {
|
|
3048
3004
|
return null;
|
|
3049
3005
|
}
|
|
3050
|
-
return
|
|
3006
|
+
return de_CompatibleKafkaVersion(entry, context);
|
|
3051
3007
|
});
|
|
3052
3008
|
return retVal;
|
|
3053
3009
|
};
|
|
3054
|
-
const
|
|
3010
|
+
const de___listOfConfiguration = (output, context) => {
|
|
3055
3011
|
const retVal = (output || [])
|
|
3056
3012
|
.filter((e) => e != null)
|
|
3057
3013
|
.map((entry) => {
|
|
3058
3014
|
if (entry === null) {
|
|
3059
3015
|
return null;
|
|
3060
3016
|
}
|
|
3061
|
-
return
|
|
3017
|
+
return de_Configuration(entry, context);
|
|
3062
3018
|
});
|
|
3063
3019
|
return retVal;
|
|
3064
3020
|
};
|
|
3065
|
-
const
|
|
3021
|
+
const de___listOfConfigurationRevision = (output, context) => {
|
|
3066
3022
|
const retVal = (output || [])
|
|
3067
3023
|
.filter((e) => e != null)
|
|
3068
3024
|
.map((entry) => {
|
|
3069
3025
|
if (entry === null) {
|
|
3070
3026
|
return null;
|
|
3071
3027
|
}
|
|
3072
|
-
return
|
|
3028
|
+
return de_ConfigurationRevision(entry, context);
|
|
3073
3029
|
});
|
|
3074
3030
|
return retVal;
|
|
3075
3031
|
};
|
|
3076
|
-
const
|
|
3032
|
+
const de___listOfKafkaVersion = (output, context) => {
|
|
3077
3033
|
const retVal = (output || [])
|
|
3078
3034
|
.filter((e) => e != null)
|
|
3079
3035
|
.map((entry) => {
|
|
3080
3036
|
if (entry === null) {
|
|
3081
3037
|
return null;
|
|
3082
3038
|
}
|
|
3083
|
-
return
|
|
3039
|
+
return de_KafkaVersion(entry, context);
|
|
3084
3040
|
});
|
|
3085
3041
|
return retVal;
|
|
3086
3042
|
};
|
|
3087
|
-
const
|
|
3043
|
+
const de___listOfNodeInfo = (output, context) => {
|
|
3088
3044
|
const retVal = (output || [])
|
|
3089
3045
|
.filter((e) => e != null)
|
|
3090
3046
|
.map((entry) => {
|
|
3091
3047
|
if (entry === null) {
|
|
3092
3048
|
return null;
|
|
3093
3049
|
}
|
|
3094
|
-
return
|
|
3050
|
+
return de_NodeInfo(entry, context);
|
|
3095
3051
|
});
|
|
3096
3052
|
return retVal;
|
|
3097
3053
|
};
|
|
3098
|
-
const
|
|
3054
|
+
const de___listOfUnprocessedScramSecret = (output, context) => {
|
|
3099
3055
|
const retVal = (output || [])
|
|
3100
3056
|
.filter((e) => e != null)
|
|
3101
3057
|
.map((entry) => {
|
|
3102
3058
|
if (entry === null) {
|
|
3103
3059
|
return null;
|
|
3104
3060
|
}
|
|
3105
|
-
return
|
|
3061
|
+
return de_UnprocessedScramSecret(entry, context);
|
|
3106
3062
|
});
|
|
3107
3063
|
return retVal;
|
|
3108
3064
|
};
|
|
3109
|
-
const
|
|
3065
|
+
const de___listOfVpcConfig = (output, context) => {
|
|
3110
3066
|
const retVal = (output || [])
|
|
3111
3067
|
.filter((e) => e != null)
|
|
3112
3068
|
.map((entry) => {
|
|
3113
3069
|
if (entry === null) {
|
|
3114
3070
|
return null;
|
|
3115
3071
|
}
|
|
3116
|
-
return
|
|
3072
|
+
return de_VpcConfig(entry, context);
|
|
3117
3073
|
});
|
|
3118
3074
|
return retVal;
|
|
3119
3075
|
};
|
|
3120
|
-
const
|
|
3076
|
+
const de___mapOf__string = (output, context) => {
|
|
3121
3077
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3122
3078
|
if (value === null) {
|
|
3123
3079
|
return acc;
|
|
@@ -3126,75 +3082,65 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
3126
3082
|
return acc;
|
|
3127
3083
|
}, {});
|
|
3128
3084
|
};
|
|
3129
|
-
const
|
|
3085
|
+
const de_BrokerEBSVolumeInfo = (output, context) => {
|
|
3130
3086
|
return {
|
|
3131
3087
|
KafkaBrokerNodeId: __expectString(output.kafkaBrokerNodeId),
|
|
3132
3088
|
ProvisionedThroughput: output.provisionedThroughput != null
|
|
3133
|
-
?
|
|
3089
|
+
? de_ProvisionedThroughput(output.provisionedThroughput, context)
|
|
3134
3090
|
: undefined,
|
|
3135
3091
|
VolumeSizeGB: __expectInt32(output.volumeSizeGB),
|
|
3136
3092
|
};
|
|
3137
3093
|
};
|
|
3138
|
-
const
|
|
3094
|
+
const de_BrokerLogs = (output, context) => {
|
|
3139
3095
|
return {
|
|
3140
|
-
CloudWatchLogs: output.cloudWatchLogs != null
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
Firehose: output.firehose != null ? deserializeAws_restJson1Firehose(output.firehose, context) : undefined,
|
|
3144
|
-
S3: output.s3 != null ? deserializeAws_restJson1S3(output.s3, context) : undefined,
|
|
3096
|
+
CloudWatchLogs: output.cloudWatchLogs != null ? de_CloudWatchLogs(output.cloudWatchLogs, context) : undefined,
|
|
3097
|
+
Firehose: output.firehose != null ? de_Firehose(output.firehose, context) : undefined,
|
|
3098
|
+
S3: output.s3 != null ? de_S3(output.s3, context) : undefined,
|
|
3145
3099
|
};
|
|
3146
3100
|
};
|
|
3147
|
-
const
|
|
3101
|
+
const de_BrokerNodeGroupInfo = (output, context) => {
|
|
3148
3102
|
return {
|
|
3149
3103
|
BrokerAZDistribution: __expectString(output.brokerAZDistribution),
|
|
3150
|
-
ClientSubnets: output.clientSubnets != null
|
|
3151
|
-
|
|
3152
|
-
: undefined,
|
|
3153
|
-
ConnectivityInfo: output.connectivityInfo != null
|
|
3154
|
-
? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
|
|
3155
|
-
: undefined,
|
|
3104
|
+
ClientSubnets: output.clientSubnets != null ? de___listOf__string(output.clientSubnets, context) : undefined,
|
|
3105
|
+
ConnectivityInfo: output.connectivityInfo != null ? de_ConnectivityInfo(output.connectivityInfo, context) : undefined,
|
|
3156
3106
|
InstanceType: __expectString(output.instanceType),
|
|
3157
|
-
SecurityGroups: output.securityGroups != null
|
|
3158
|
-
|
|
3159
|
-
: undefined,
|
|
3160
|
-
StorageInfo: output.storageInfo != null ? deserializeAws_restJson1StorageInfo(output.storageInfo, context) : undefined,
|
|
3107
|
+
SecurityGroups: output.securityGroups != null ? de___listOf__string(output.securityGroups, context) : undefined,
|
|
3108
|
+
StorageInfo: output.storageInfo != null ? de_StorageInfo(output.storageInfo, context) : undefined,
|
|
3161
3109
|
};
|
|
3162
3110
|
};
|
|
3163
|
-
const
|
|
3111
|
+
const de_BrokerNodeInfo = (output, context) => {
|
|
3164
3112
|
return {
|
|
3165
3113
|
AttachedENIId: __expectString(output.attachedENIId),
|
|
3166
3114
|
BrokerId: __limitedParseDouble(output.brokerId),
|
|
3167
3115
|
ClientSubnet: __expectString(output.clientSubnet),
|
|
3168
3116
|
ClientVpcIpAddress: __expectString(output.clientVpcIpAddress),
|
|
3169
3117
|
CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
|
|
3170
|
-
?
|
|
3118
|
+
? de_BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
|
|
3171
3119
|
: undefined,
|
|
3172
|
-
Endpoints: output.endpoints != null ?
|
|
3120
|
+
Endpoints: output.endpoints != null ? de___listOf__string(output.endpoints, context) : undefined,
|
|
3173
3121
|
};
|
|
3174
3122
|
};
|
|
3175
|
-
const
|
|
3123
|
+
const de_BrokerSoftwareInfo = (output, context) => {
|
|
3176
3124
|
return {
|
|
3177
3125
|
ConfigurationArn: __expectString(output.configurationArn),
|
|
3178
3126
|
ConfigurationRevision: __expectLong(output.configurationRevision),
|
|
3179
3127
|
KafkaVersion: __expectString(output.kafkaVersion),
|
|
3180
3128
|
};
|
|
3181
3129
|
};
|
|
3182
|
-
const
|
|
3130
|
+
const de_ClientAuthentication = (output, context) => {
|
|
3183
3131
|
return {
|
|
3184
|
-
Sasl: output.sasl != null ?
|
|
3185
|
-
Tls: output.tls != null ?
|
|
3186
|
-
Unauthenticated: output.unauthenticated != null
|
|
3187
|
-
? deserializeAws_restJson1Unauthenticated(output.unauthenticated, context)
|
|
3188
|
-
: undefined,
|
|
3132
|
+
Sasl: output.sasl != null ? de_Sasl(output.sasl, context) : undefined,
|
|
3133
|
+
Tls: output.tls != null ? de_Tls(output.tls, context) : undefined,
|
|
3134
|
+
Unauthenticated: output.unauthenticated != null ? de_Unauthenticated(output.unauthenticated, context) : undefined,
|
|
3189
3135
|
};
|
|
3190
3136
|
};
|
|
3191
|
-
const
|
|
3137
|
+
const de_CloudWatchLogs = (output, context) => {
|
|
3192
3138
|
return {
|
|
3193
3139
|
Enabled: __expectBoolean(output.enabled),
|
|
3194
3140
|
LogGroup: __expectString(output.logGroup),
|
|
3195
3141
|
};
|
|
3196
3142
|
};
|
|
3197
|
-
const
|
|
3143
|
+
const de_Cluster = (output, context) => {
|
|
3198
3144
|
return {
|
|
3199
3145
|
ActiveOperationArn: __expectString(output.activeOperationArn),
|
|
3200
3146
|
ClusterArn: __expectString(output.clusterArn),
|
|
@@ -3202,378 +3148,328 @@ const deserializeAws_restJson1Cluster = (output, context) => {
|
|
|
3202
3148
|
ClusterType: __expectString(output.clusterType),
|
|
3203
3149
|
CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
3204
3150
|
CurrentVersion: __expectString(output.currentVersion),
|
|
3205
|
-
Provisioned: output.provisioned != null ?
|
|
3206
|
-
Serverless: output.serverless != null ?
|
|
3151
|
+
Provisioned: output.provisioned != null ? de_Provisioned(output.provisioned, context) : undefined,
|
|
3152
|
+
Serverless: output.serverless != null ? de_Serverless(output.serverless, context) : undefined,
|
|
3207
3153
|
State: __expectString(output.state),
|
|
3208
|
-
StateInfo: output.stateInfo != null ?
|
|
3209
|
-
Tags: output.tags != null ?
|
|
3154
|
+
StateInfo: output.stateInfo != null ? de_StateInfo(output.stateInfo, context) : undefined,
|
|
3155
|
+
Tags: output.tags != null ? de___mapOf__string(output.tags, context) : undefined,
|
|
3210
3156
|
};
|
|
3211
3157
|
};
|
|
3212
|
-
const
|
|
3158
|
+
const de_ClusterInfo = (output, context) => {
|
|
3213
3159
|
return {
|
|
3214
3160
|
ActiveOperationArn: __expectString(output.activeOperationArn),
|
|
3215
|
-
BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null
|
|
3216
|
-
|
|
3217
|
-
: undefined,
|
|
3218
|
-
ClientAuthentication: output.clientAuthentication != null
|
|
3219
|
-
? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
|
|
3220
|
-
: undefined,
|
|
3161
|
+
BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null ? de_BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context) : undefined,
|
|
3162
|
+
ClientAuthentication: output.clientAuthentication != null ? de_ClientAuthentication(output.clientAuthentication, context) : undefined,
|
|
3221
3163
|
ClusterArn: __expectString(output.clusterArn),
|
|
3222
3164
|
ClusterName: __expectString(output.clusterName),
|
|
3223
3165
|
CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
3224
3166
|
CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
|
|
3225
|
-
?
|
|
3167
|
+
? de_BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
|
|
3226
3168
|
: undefined,
|
|
3227
3169
|
CurrentVersion: __expectString(output.currentVersion),
|
|
3228
|
-
EncryptionInfo: output.encryptionInfo != null
|
|
3229
|
-
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
3230
|
-
: undefined,
|
|
3170
|
+
EncryptionInfo: output.encryptionInfo != null ? de_EncryptionInfo(output.encryptionInfo, context) : undefined,
|
|
3231
3171
|
EnhancedMonitoring: __expectString(output.enhancedMonitoring),
|
|
3232
|
-
LoggingInfo: output.loggingInfo != null ?
|
|
3172
|
+
LoggingInfo: output.loggingInfo != null ? de_LoggingInfo(output.loggingInfo, context) : undefined,
|
|
3233
3173
|
NumberOfBrokerNodes: __expectInt32(output.numberOfBrokerNodes),
|
|
3234
|
-
OpenMonitoring: output.openMonitoring != null
|
|
3235
|
-
? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
|
|
3236
|
-
: undefined,
|
|
3174
|
+
OpenMonitoring: output.openMonitoring != null ? de_OpenMonitoring(output.openMonitoring, context) : undefined,
|
|
3237
3175
|
State: __expectString(output.state),
|
|
3238
|
-
StateInfo: output.stateInfo != null ?
|
|
3176
|
+
StateInfo: output.stateInfo != null ? de_StateInfo(output.stateInfo, context) : undefined,
|
|
3239
3177
|
StorageMode: __expectString(output.storageMode),
|
|
3240
|
-
Tags: output.tags != null ?
|
|
3178
|
+
Tags: output.tags != null ? de___mapOf__string(output.tags, context) : undefined,
|
|
3241
3179
|
ZookeeperConnectString: __expectString(output.zookeeperConnectString),
|
|
3242
3180
|
ZookeeperConnectStringTls: __expectString(output.zookeeperConnectStringTls),
|
|
3243
3181
|
};
|
|
3244
3182
|
};
|
|
3245
|
-
const
|
|
3183
|
+
const de_ClusterOperationInfo = (output, context) => {
|
|
3246
3184
|
return {
|
|
3247
3185
|
ClientRequestId: __expectString(output.clientRequestId),
|
|
3248
3186
|
ClusterArn: __expectString(output.clusterArn),
|
|
3249
3187
|
CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
3250
3188
|
EndTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.endTime)) : undefined,
|
|
3251
|
-
ErrorInfo: output.errorInfo != null ?
|
|
3189
|
+
ErrorInfo: output.errorInfo != null ? de_ErrorInfo(output.errorInfo, context) : undefined,
|
|
3252
3190
|
OperationArn: __expectString(output.operationArn),
|
|
3253
3191
|
OperationState: __expectString(output.operationState),
|
|
3254
|
-
OperationSteps: output.operationSteps != null
|
|
3255
|
-
? deserializeAws_restJson1__listOfClusterOperationStep(output.operationSteps, context)
|
|
3256
|
-
: undefined,
|
|
3192
|
+
OperationSteps: output.operationSteps != null ? de___listOfClusterOperationStep(output.operationSteps, context) : undefined,
|
|
3257
3193
|
OperationType: __expectString(output.operationType),
|
|
3258
|
-
SourceClusterInfo: output.sourceClusterInfo != null
|
|
3259
|
-
|
|
3260
|
-
: undefined,
|
|
3261
|
-
TargetClusterInfo: output.targetClusterInfo != null
|
|
3262
|
-
? deserializeAws_restJson1MutableClusterInfo(output.targetClusterInfo, context)
|
|
3263
|
-
: undefined,
|
|
3194
|
+
SourceClusterInfo: output.sourceClusterInfo != null ? de_MutableClusterInfo(output.sourceClusterInfo, context) : undefined,
|
|
3195
|
+
TargetClusterInfo: output.targetClusterInfo != null ? de_MutableClusterInfo(output.targetClusterInfo, context) : undefined,
|
|
3264
3196
|
};
|
|
3265
3197
|
};
|
|
3266
|
-
const
|
|
3198
|
+
const de_ClusterOperationStep = (output, context) => {
|
|
3267
3199
|
return {
|
|
3268
|
-
StepInfo: output.stepInfo != null ?
|
|
3200
|
+
StepInfo: output.stepInfo != null ? de_ClusterOperationStepInfo(output.stepInfo, context) : undefined,
|
|
3269
3201
|
StepName: __expectString(output.stepName),
|
|
3270
3202
|
};
|
|
3271
3203
|
};
|
|
3272
|
-
const
|
|
3204
|
+
const de_ClusterOperationStepInfo = (output, context) => {
|
|
3273
3205
|
return {
|
|
3274
3206
|
StepStatus: __expectString(output.stepStatus),
|
|
3275
3207
|
};
|
|
3276
3208
|
};
|
|
3277
|
-
const
|
|
3209
|
+
const de_CompatibleKafkaVersion = (output, context) => {
|
|
3278
3210
|
return {
|
|
3279
3211
|
SourceVersion: __expectString(output.sourceVersion),
|
|
3280
|
-
TargetVersions: output.targetVersions != null
|
|
3281
|
-
? deserializeAws_restJson1__listOf__string(output.targetVersions, context)
|
|
3282
|
-
: undefined,
|
|
3212
|
+
TargetVersions: output.targetVersions != null ? de___listOf__string(output.targetVersions, context) : undefined,
|
|
3283
3213
|
};
|
|
3284
3214
|
};
|
|
3285
|
-
const
|
|
3215
|
+
const de_Configuration = (output, context) => {
|
|
3286
3216
|
return {
|
|
3287
3217
|
Arn: __expectString(output.arn),
|
|
3288
3218
|
CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
3289
3219
|
Description: __expectString(output.description),
|
|
3290
|
-
KafkaVersions: output.kafkaVersions != null
|
|
3291
|
-
|
|
3292
|
-
: undefined,
|
|
3293
|
-
LatestRevision: output.latestRevision != null
|
|
3294
|
-
? deserializeAws_restJson1ConfigurationRevision(output.latestRevision, context)
|
|
3295
|
-
: undefined,
|
|
3220
|
+
KafkaVersions: output.kafkaVersions != null ? de___listOf__string(output.kafkaVersions, context) : undefined,
|
|
3221
|
+
LatestRevision: output.latestRevision != null ? de_ConfigurationRevision(output.latestRevision, context) : undefined,
|
|
3296
3222
|
Name: __expectString(output.name),
|
|
3297
3223
|
State: __expectString(output.state),
|
|
3298
3224
|
};
|
|
3299
3225
|
};
|
|
3300
|
-
const
|
|
3226
|
+
const de_ConfigurationInfo = (output, context) => {
|
|
3301
3227
|
return {
|
|
3302
3228
|
Arn: __expectString(output.arn),
|
|
3303
3229
|
Revision: __expectLong(output.revision),
|
|
3304
3230
|
};
|
|
3305
3231
|
};
|
|
3306
|
-
const
|
|
3232
|
+
const de_ConfigurationRevision = (output, context) => {
|
|
3307
3233
|
return {
|
|
3308
3234
|
CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
3309
3235
|
Description: __expectString(output.description),
|
|
3310
3236
|
Revision: __expectLong(output.revision),
|
|
3311
3237
|
};
|
|
3312
3238
|
};
|
|
3313
|
-
const
|
|
3239
|
+
const de_ConnectivityInfo = (output, context) => {
|
|
3314
3240
|
return {
|
|
3315
|
-
PublicAccess: output.publicAccess != null ?
|
|
3241
|
+
PublicAccess: output.publicAccess != null ? de_PublicAccess(output.publicAccess, context) : undefined,
|
|
3316
3242
|
};
|
|
3317
3243
|
};
|
|
3318
|
-
const
|
|
3244
|
+
const de_EBSStorageInfo = (output, context) => {
|
|
3319
3245
|
return {
|
|
3320
3246
|
ProvisionedThroughput: output.provisionedThroughput != null
|
|
3321
|
-
?
|
|
3247
|
+
? de_ProvisionedThroughput(output.provisionedThroughput, context)
|
|
3322
3248
|
: undefined,
|
|
3323
3249
|
VolumeSize: __expectInt32(output.volumeSize),
|
|
3324
3250
|
};
|
|
3325
3251
|
};
|
|
3326
|
-
const
|
|
3252
|
+
const de_EncryptionAtRest = (output, context) => {
|
|
3327
3253
|
return {
|
|
3328
3254
|
DataVolumeKMSKeyId: __expectString(output.dataVolumeKMSKeyId),
|
|
3329
3255
|
};
|
|
3330
3256
|
};
|
|
3331
|
-
const
|
|
3257
|
+
const de_EncryptionInfo = (output, context) => {
|
|
3332
3258
|
return {
|
|
3333
|
-
EncryptionAtRest: output.encryptionAtRest != null
|
|
3334
|
-
|
|
3335
|
-
: undefined,
|
|
3336
|
-
EncryptionInTransit: output.encryptionInTransit != null
|
|
3337
|
-
? deserializeAws_restJson1EncryptionInTransit(output.encryptionInTransit, context)
|
|
3338
|
-
: undefined,
|
|
3259
|
+
EncryptionAtRest: output.encryptionAtRest != null ? de_EncryptionAtRest(output.encryptionAtRest, context) : undefined,
|
|
3260
|
+
EncryptionInTransit: output.encryptionInTransit != null ? de_EncryptionInTransit(output.encryptionInTransit, context) : undefined,
|
|
3339
3261
|
};
|
|
3340
3262
|
};
|
|
3341
|
-
const
|
|
3263
|
+
const de_EncryptionInTransit = (output, context) => {
|
|
3342
3264
|
return {
|
|
3343
3265
|
ClientBroker: __expectString(output.clientBroker),
|
|
3344
3266
|
InCluster: __expectBoolean(output.inCluster),
|
|
3345
3267
|
};
|
|
3346
3268
|
};
|
|
3347
|
-
const
|
|
3269
|
+
const de_ErrorInfo = (output, context) => {
|
|
3348
3270
|
return {
|
|
3349
3271
|
ErrorCode: __expectString(output.errorCode),
|
|
3350
3272
|
ErrorString: __expectString(output.errorString),
|
|
3351
3273
|
};
|
|
3352
3274
|
};
|
|
3353
|
-
const
|
|
3275
|
+
const de_Firehose = (output, context) => {
|
|
3354
3276
|
return {
|
|
3355
3277
|
DeliveryStream: __expectString(output.deliveryStream),
|
|
3356
3278
|
Enabled: __expectBoolean(output.enabled),
|
|
3357
3279
|
};
|
|
3358
3280
|
};
|
|
3359
|
-
const
|
|
3281
|
+
const de_Iam = (output, context) => {
|
|
3360
3282
|
return {
|
|
3361
3283
|
Enabled: __expectBoolean(output.enabled),
|
|
3362
3284
|
};
|
|
3363
3285
|
};
|
|
3364
|
-
const
|
|
3286
|
+
const de_JmxExporter = (output, context) => {
|
|
3365
3287
|
return {
|
|
3366
3288
|
EnabledInBroker: __expectBoolean(output.enabledInBroker),
|
|
3367
3289
|
};
|
|
3368
3290
|
};
|
|
3369
|
-
const
|
|
3291
|
+
const de_JmxExporterInfo = (output, context) => {
|
|
3370
3292
|
return {
|
|
3371
3293
|
EnabledInBroker: __expectBoolean(output.enabledInBroker),
|
|
3372
3294
|
};
|
|
3373
3295
|
};
|
|
3374
|
-
const
|
|
3296
|
+
const de_KafkaVersion = (output, context) => {
|
|
3375
3297
|
return {
|
|
3376
3298
|
Status: __expectString(output.status),
|
|
3377
3299
|
Version: __expectString(output.version),
|
|
3378
3300
|
};
|
|
3379
3301
|
};
|
|
3380
|
-
const
|
|
3302
|
+
const de_LoggingInfo = (output, context) => {
|
|
3381
3303
|
return {
|
|
3382
|
-
BrokerLogs: output.brokerLogs != null ?
|
|
3304
|
+
BrokerLogs: output.brokerLogs != null ? de_BrokerLogs(output.brokerLogs, context) : undefined,
|
|
3383
3305
|
};
|
|
3384
3306
|
};
|
|
3385
|
-
const
|
|
3307
|
+
const de_MutableClusterInfo = (output, context) => {
|
|
3386
3308
|
return {
|
|
3387
3309
|
BrokerEBSVolumeInfo: output.brokerEBSVolumeInfo != null
|
|
3388
|
-
?
|
|
3389
|
-
: undefined,
|
|
3390
|
-
ClientAuthentication: output.clientAuthentication != null
|
|
3391
|
-
? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
|
|
3392
|
-
: undefined,
|
|
3393
|
-
ConfigurationInfo: output.configurationInfo != null
|
|
3394
|
-
? deserializeAws_restJson1ConfigurationInfo(output.configurationInfo, context)
|
|
3395
|
-
: undefined,
|
|
3396
|
-
ConnectivityInfo: output.connectivityInfo != null
|
|
3397
|
-
? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
|
|
3398
|
-
: undefined,
|
|
3399
|
-
EncryptionInfo: output.encryptionInfo != null
|
|
3400
|
-
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
3310
|
+
? de___listOfBrokerEBSVolumeInfo(output.brokerEBSVolumeInfo, context)
|
|
3401
3311
|
: undefined,
|
|
3312
|
+
ClientAuthentication: output.clientAuthentication != null ? de_ClientAuthentication(output.clientAuthentication, context) : undefined,
|
|
3313
|
+
ConfigurationInfo: output.configurationInfo != null ? de_ConfigurationInfo(output.configurationInfo, context) : undefined,
|
|
3314
|
+
ConnectivityInfo: output.connectivityInfo != null ? de_ConnectivityInfo(output.connectivityInfo, context) : undefined,
|
|
3315
|
+
EncryptionInfo: output.encryptionInfo != null ? de_EncryptionInfo(output.encryptionInfo, context) : undefined,
|
|
3402
3316
|
EnhancedMonitoring: __expectString(output.enhancedMonitoring),
|
|
3403
3317
|
InstanceType: __expectString(output.instanceType),
|
|
3404
3318
|
KafkaVersion: __expectString(output.kafkaVersion),
|
|
3405
|
-
LoggingInfo: output.loggingInfo != null ?
|
|
3319
|
+
LoggingInfo: output.loggingInfo != null ? de_LoggingInfo(output.loggingInfo, context) : undefined,
|
|
3406
3320
|
NumberOfBrokerNodes: __expectInt32(output.numberOfBrokerNodes),
|
|
3407
|
-
OpenMonitoring: output.openMonitoring != null
|
|
3408
|
-
? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
|
|
3409
|
-
: undefined,
|
|
3321
|
+
OpenMonitoring: output.openMonitoring != null ? de_OpenMonitoring(output.openMonitoring, context) : undefined,
|
|
3410
3322
|
StorageMode: __expectString(output.storageMode),
|
|
3411
3323
|
};
|
|
3412
3324
|
};
|
|
3413
|
-
const
|
|
3325
|
+
const de_NodeExporter = (output, context) => {
|
|
3414
3326
|
return {
|
|
3415
3327
|
EnabledInBroker: __expectBoolean(output.enabledInBroker),
|
|
3416
3328
|
};
|
|
3417
3329
|
};
|
|
3418
|
-
const
|
|
3330
|
+
const de_NodeExporterInfo = (output, context) => {
|
|
3419
3331
|
return {
|
|
3420
3332
|
EnabledInBroker: __expectBoolean(output.enabledInBroker),
|
|
3421
3333
|
};
|
|
3422
3334
|
};
|
|
3423
|
-
const
|
|
3335
|
+
const de_NodeInfo = (output, context) => {
|
|
3424
3336
|
return {
|
|
3425
3337
|
AddedToClusterTime: __expectString(output.addedToClusterTime),
|
|
3426
|
-
BrokerNodeInfo: output.brokerNodeInfo != null
|
|
3427
|
-
? deserializeAws_restJson1BrokerNodeInfo(output.brokerNodeInfo, context)
|
|
3428
|
-
: undefined,
|
|
3338
|
+
BrokerNodeInfo: output.brokerNodeInfo != null ? de_BrokerNodeInfo(output.brokerNodeInfo, context) : undefined,
|
|
3429
3339
|
InstanceType: __expectString(output.instanceType),
|
|
3430
3340
|
NodeARN: __expectString(output.nodeARN),
|
|
3431
3341
|
NodeType: __expectString(output.nodeType),
|
|
3432
|
-
ZookeeperNodeInfo: output.zookeeperNodeInfo != null
|
|
3433
|
-
? deserializeAws_restJson1ZookeeperNodeInfo(output.zookeeperNodeInfo, context)
|
|
3434
|
-
: undefined,
|
|
3342
|
+
ZookeeperNodeInfo: output.zookeeperNodeInfo != null ? de_ZookeeperNodeInfo(output.zookeeperNodeInfo, context) : undefined,
|
|
3435
3343
|
};
|
|
3436
3344
|
};
|
|
3437
|
-
const
|
|
3345
|
+
const de_OpenMonitoring = (output, context) => {
|
|
3438
3346
|
return {
|
|
3439
|
-
Prometheus: output.prometheus != null ?
|
|
3347
|
+
Prometheus: output.prometheus != null ? de_Prometheus(output.prometheus, context) : undefined,
|
|
3440
3348
|
};
|
|
3441
3349
|
};
|
|
3442
|
-
const
|
|
3350
|
+
const de_OpenMonitoringInfo = (output, context) => {
|
|
3443
3351
|
return {
|
|
3444
|
-
Prometheus: output.prometheus != null ?
|
|
3352
|
+
Prometheus: output.prometheus != null ? de_PrometheusInfo(output.prometheus, context) : undefined,
|
|
3445
3353
|
};
|
|
3446
3354
|
};
|
|
3447
|
-
const
|
|
3355
|
+
const de_Prometheus = (output, context) => {
|
|
3448
3356
|
return {
|
|
3449
|
-
JmxExporter: output.jmxExporter != null ?
|
|
3450
|
-
NodeExporter: output.nodeExporter != null ?
|
|
3357
|
+
JmxExporter: output.jmxExporter != null ? de_JmxExporter(output.jmxExporter, context) : undefined,
|
|
3358
|
+
NodeExporter: output.nodeExporter != null ? de_NodeExporter(output.nodeExporter, context) : undefined,
|
|
3451
3359
|
};
|
|
3452
3360
|
};
|
|
3453
|
-
const
|
|
3361
|
+
const de_PrometheusInfo = (output, context) => {
|
|
3454
3362
|
return {
|
|
3455
|
-
JmxExporter: output.jmxExporter != null ?
|
|
3456
|
-
NodeExporter: output.nodeExporter != null ?
|
|
3363
|
+
JmxExporter: output.jmxExporter != null ? de_JmxExporterInfo(output.jmxExporter, context) : undefined,
|
|
3364
|
+
NodeExporter: output.nodeExporter != null ? de_NodeExporterInfo(output.nodeExporter, context) : undefined,
|
|
3457
3365
|
};
|
|
3458
3366
|
};
|
|
3459
|
-
const
|
|
3367
|
+
const de_Provisioned = (output, context) => {
|
|
3460
3368
|
return {
|
|
3461
|
-
BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null
|
|
3462
|
-
|
|
3463
|
-
: undefined,
|
|
3464
|
-
ClientAuthentication: output.clientAuthentication != null
|
|
3465
|
-
? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
|
|
3466
|
-
: undefined,
|
|
3369
|
+
BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null ? de_BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context) : undefined,
|
|
3370
|
+
ClientAuthentication: output.clientAuthentication != null ? de_ClientAuthentication(output.clientAuthentication, context) : undefined,
|
|
3467
3371
|
CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
|
|
3468
|
-
?
|
|
3469
|
-
: undefined,
|
|
3470
|
-
EncryptionInfo: output.encryptionInfo != null
|
|
3471
|
-
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
3372
|
+
? de_BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
|
|
3472
3373
|
: undefined,
|
|
3374
|
+
EncryptionInfo: output.encryptionInfo != null ? de_EncryptionInfo(output.encryptionInfo, context) : undefined,
|
|
3473
3375
|
EnhancedMonitoring: __expectString(output.enhancedMonitoring),
|
|
3474
|
-
LoggingInfo: output.loggingInfo != null ?
|
|
3376
|
+
LoggingInfo: output.loggingInfo != null ? de_LoggingInfo(output.loggingInfo, context) : undefined,
|
|
3475
3377
|
NumberOfBrokerNodes: __expectInt32(output.numberOfBrokerNodes),
|
|
3476
|
-
OpenMonitoring: output.openMonitoring != null
|
|
3477
|
-
? deserializeAws_restJson1OpenMonitoringInfo(output.openMonitoring, context)
|
|
3478
|
-
: undefined,
|
|
3378
|
+
OpenMonitoring: output.openMonitoring != null ? de_OpenMonitoringInfo(output.openMonitoring, context) : undefined,
|
|
3479
3379
|
StorageMode: __expectString(output.storageMode),
|
|
3480
3380
|
ZookeeperConnectString: __expectString(output.zookeeperConnectString),
|
|
3481
3381
|
ZookeeperConnectStringTls: __expectString(output.zookeeperConnectStringTls),
|
|
3482
3382
|
};
|
|
3483
3383
|
};
|
|
3484
|
-
const
|
|
3384
|
+
const de_ProvisionedThroughput = (output, context) => {
|
|
3485
3385
|
return {
|
|
3486
3386
|
Enabled: __expectBoolean(output.enabled),
|
|
3487
3387
|
VolumeThroughput: __expectInt32(output.volumeThroughput),
|
|
3488
3388
|
};
|
|
3489
3389
|
};
|
|
3490
|
-
const
|
|
3390
|
+
const de_PublicAccess = (output, context) => {
|
|
3491
3391
|
return {
|
|
3492
3392
|
Type: __expectString(output.type),
|
|
3493
3393
|
};
|
|
3494
3394
|
};
|
|
3495
|
-
const
|
|
3395
|
+
const de_S3 = (output, context) => {
|
|
3496
3396
|
return {
|
|
3497
3397
|
Bucket: __expectString(output.bucket),
|
|
3498
3398
|
Enabled: __expectBoolean(output.enabled),
|
|
3499
3399
|
Prefix: __expectString(output.prefix),
|
|
3500
3400
|
};
|
|
3501
3401
|
};
|
|
3502
|
-
const
|
|
3402
|
+
const de_Sasl = (output, context) => {
|
|
3503
3403
|
return {
|
|
3504
|
-
Iam: output.iam != null ?
|
|
3505
|
-
Scram: output.scram != null ?
|
|
3404
|
+
Iam: output.iam != null ? de_Iam(output.iam, context) : undefined,
|
|
3405
|
+
Scram: output.scram != null ? de_Scram(output.scram, context) : undefined,
|
|
3506
3406
|
};
|
|
3507
3407
|
};
|
|
3508
|
-
const
|
|
3408
|
+
const de_Scram = (output, context) => {
|
|
3509
3409
|
return {
|
|
3510
3410
|
Enabled: __expectBoolean(output.enabled),
|
|
3511
3411
|
};
|
|
3512
3412
|
};
|
|
3513
|
-
const
|
|
3413
|
+
const de_Serverless = (output, context) => {
|
|
3514
3414
|
return {
|
|
3515
3415
|
ClientAuthentication: output.clientAuthentication != null
|
|
3516
|
-
?
|
|
3416
|
+
? de_ServerlessClientAuthentication(output.clientAuthentication, context)
|
|
3517
3417
|
: undefined,
|
|
3518
|
-
VpcConfigs: output.vpcConfigs != null ?
|
|
3418
|
+
VpcConfigs: output.vpcConfigs != null ? de___listOfVpcConfig(output.vpcConfigs, context) : undefined,
|
|
3519
3419
|
};
|
|
3520
3420
|
};
|
|
3521
|
-
const
|
|
3421
|
+
const de_ServerlessClientAuthentication = (output, context) => {
|
|
3522
3422
|
return {
|
|
3523
|
-
Sasl: output.sasl != null ?
|
|
3423
|
+
Sasl: output.sasl != null ? de_ServerlessSasl(output.sasl, context) : undefined,
|
|
3524
3424
|
};
|
|
3525
3425
|
};
|
|
3526
|
-
const
|
|
3426
|
+
const de_ServerlessSasl = (output, context) => {
|
|
3527
3427
|
return {
|
|
3528
|
-
Iam: output.iam != null ?
|
|
3428
|
+
Iam: output.iam != null ? de_Iam(output.iam, context) : undefined,
|
|
3529
3429
|
};
|
|
3530
3430
|
};
|
|
3531
|
-
const
|
|
3431
|
+
const de_StateInfo = (output, context) => {
|
|
3532
3432
|
return {
|
|
3533
3433
|
Code: __expectString(output.code),
|
|
3534
3434
|
Message: __expectString(output.message),
|
|
3535
3435
|
};
|
|
3536
3436
|
};
|
|
3537
|
-
const
|
|
3437
|
+
const de_StorageInfo = (output, context) => {
|
|
3538
3438
|
return {
|
|
3539
|
-
EbsStorageInfo: output.ebsStorageInfo != null
|
|
3540
|
-
? deserializeAws_restJson1EBSStorageInfo(output.ebsStorageInfo, context)
|
|
3541
|
-
: undefined,
|
|
3439
|
+
EbsStorageInfo: output.ebsStorageInfo != null ? de_EBSStorageInfo(output.ebsStorageInfo, context) : undefined,
|
|
3542
3440
|
};
|
|
3543
3441
|
};
|
|
3544
|
-
const
|
|
3442
|
+
const de_Tls = (output, context) => {
|
|
3545
3443
|
return {
|
|
3546
3444
|
CertificateAuthorityArnList: output.certificateAuthorityArnList != null
|
|
3547
|
-
?
|
|
3445
|
+
? de___listOf__string(output.certificateAuthorityArnList, context)
|
|
3548
3446
|
: undefined,
|
|
3549
3447
|
Enabled: __expectBoolean(output.enabled),
|
|
3550
3448
|
};
|
|
3551
3449
|
};
|
|
3552
|
-
const
|
|
3450
|
+
const de_Unauthenticated = (output, context) => {
|
|
3553
3451
|
return {
|
|
3554
3452
|
Enabled: __expectBoolean(output.enabled),
|
|
3555
3453
|
};
|
|
3556
3454
|
};
|
|
3557
|
-
const
|
|
3455
|
+
const de_UnprocessedScramSecret = (output, context) => {
|
|
3558
3456
|
return {
|
|
3559
3457
|
ErrorCode: __expectString(output.errorCode),
|
|
3560
3458
|
ErrorMessage: __expectString(output.errorMessage),
|
|
3561
3459
|
SecretArn: __expectString(output.secretArn),
|
|
3562
3460
|
};
|
|
3563
3461
|
};
|
|
3564
|
-
const
|
|
3462
|
+
const de_VpcConfig = (output, context) => {
|
|
3565
3463
|
return {
|
|
3566
|
-
SecurityGroupIds: output.securityGroupIds != null
|
|
3567
|
-
|
|
3568
|
-
: undefined,
|
|
3569
|
-
SubnetIds: output.subnetIds != null ? deserializeAws_restJson1__listOf__string(output.subnetIds, context) : undefined,
|
|
3464
|
+
SecurityGroupIds: output.securityGroupIds != null ? de___listOf__string(output.securityGroupIds, context) : undefined,
|
|
3465
|
+
SubnetIds: output.subnetIds != null ? de___listOf__string(output.subnetIds, context) : undefined,
|
|
3570
3466
|
};
|
|
3571
3467
|
};
|
|
3572
|
-
const
|
|
3468
|
+
const de_ZookeeperNodeInfo = (output, context) => {
|
|
3573
3469
|
return {
|
|
3574
3470
|
AttachedENIId: __expectString(output.attachedENIId),
|
|
3575
3471
|
ClientVpcIpAddress: __expectString(output.clientVpcIpAddress),
|
|
3576
|
-
Endpoints: output.endpoints != null ?
|
|
3472
|
+
Endpoints: output.endpoints != null ? de___listOf__string(output.endpoints, context) : undefined,
|
|
3577
3473
|
ZookeeperId: __limitedParseDouble(output.zookeeperId),
|
|
3578
3474
|
ZookeeperVersion: __expectString(output.zookeeperVersion),
|
|
3579
3475
|
};
|