@aws-sdk/client-kafkaconnect 3.306.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/CreateConnectorCommand.js +2 -2
- package/dist-cjs/commands/CreateCustomPluginCommand.js +2 -2
- package/dist-cjs/commands/CreateWorkerConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteConnectorCommand.js +2 -2
- package/dist-cjs/commands/DeleteCustomPluginCommand.js +2 -2
- package/dist-cjs/commands/DescribeConnectorCommand.js +2 -2
- package/dist-cjs/commands/DescribeCustomPluginCommand.js +2 -2
- package/dist-cjs/commands/DescribeWorkerConfigurationCommand.js +2 -2
- package/dist-cjs/commands/ListConnectorsCommand.js +2 -2
- package/dist-cjs/commands/ListCustomPluginsCommand.js +2 -2
- package/dist-cjs/commands/ListWorkerConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/UpdateConnectorCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +304 -346
- package/dist-es/commands/CreateConnectorCommand.js +3 -3
- package/dist-es/commands/CreateCustomPluginCommand.js +3 -3
- package/dist-es/commands/CreateWorkerConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteConnectorCommand.js +3 -3
- package/dist-es/commands/DeleteCustomPluginCommand.js +3 -3
- package/dist-es/commands/DescribeConnectorCommand.js +3 -3
- package/dist-es/commands/DescribeCustomPluginCommand.js +3 -3
- package/dist-es/commands/DescribeWorkerConfigurationCommand.js +3 -3
- package/dist-es/commands/ListConnectorsCommand.js +3 -3
- package/dist-es/commands/ListCustomPluginsCommand.js +3 -3
- package/dist-es/commands/ListWorkerConfigurationsCommand.js +3 -3
- package/dist-es/commands/UpdateConnectorCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +279 -321
- package/dist-types/protocols/Aws_restJson1.d.ts +96 -24
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -24
- package/package.json +6 -6
|
@@ -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, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { KafkaConnectServiceException as __BaseException } from "../models/KafkaConnectServiceException";
|
|
4
4
|
import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateConnectorCommand = 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",
|
|
@@ -10,27 +10,25 @@ export const serializeAws_restJson1CreateConnectorCommand = async (input, contex
|
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors";
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify({
|
|
13
|
-
...(input.capacity != null && { capacity:
|
|
13
|
+
...(input.capacity != null && { capacity: se_Capacity(input.capacity, context) }),
|
|
14
14
|
...(input.connectorConfiguration != null && {
|
|
15
|
-
connectorConfiguration:
|
|
15
|
+
connectorConfiguration: se___sensitive__mapOf__string(input.connectorConfiguration, context),
|
|
16
16
|
}),
|
|
17
17
|
...(input.connectorDescription != null && { connectorDescription: input.connectorDescription }),
|
|
18
18
|
...(input.connectorName != null && { connectorName: input.connectorName }),
|
|
19
|
-
...(input.kafkaCluster != null && {
|
|
20
|
-
kafkaCluster: serializeAws_restJson1KafkaCluster(input.kafkaCluster, context),
|
|
21
|
-
}),
|
|
19
|
+
...(input.kafkaCluster != null && { kafkaCluster: se_KafkaCluster(input.kafkaCluster, context) }),
|
|
22
20
|
...(input.kafkaClusterClientAuthentication != null && {
|
|
23
|
-
kafkaClusterClientAuthentication:
|
|
21
|
+
kafkaClusterClientAuthentication: se_KafkaClusterClientAuthentication(input.kafkaClusterClientAuthentication, context),
|
|
24
22
|
}),
|
|
25
23
|
...(input.kafkaClusterEncryptionInTransit != null && {
|
|
26
|
-
kafkaClusterEncryptionInTransit:
|
|
24
|
+
kafkaClusterEncryptionInTransit: se_KafkaClusterEncryptionInTransit(input.kafkaClusterEncryptionInTransit, context),
|
|
27
25
|
}),
|
|
28
26
|
...(input.kafkaConnectVersion != null && { kafkaConnectVersion: input.kafkaConnectVersion }),
|
|
29
|
-
...(input.logDelivery != null && { logDelivery:
|
|
30
|
-
...(input.plugins != null && { plugins:
|
|
27
|
+
...(input.logDelivery != null && { logDelivery: se_LogDelivery(input.logDelivery, context) }),
|
|
28
|
+
...(input.plugins != null && { plugins: se___listOfPlugin(input.plugins, context) }),
|
|
31
29
|
...(input.serviceExecutionRoleArn != null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn }),
|
|
32
30
|
...(input.workerConfiguration != null && {
|
|
33
|
-
workerConfiguration:
|
|
31
|
+
workerConfiguration: se_WorkerConfiguration(input.workerConfiguration, context),
|
|
34
32
|
}),
|
|
35
33
|
});
|
|
36
34
|
return new __HttpRequest({
|
|
@@ -43,7 +41,7 @@ export const serializeAws_restJson1CreateConnectorCommand = async (input, contex
|
|
|
43
41
|
body,
|
|
44
42
|
});
|
|
45
43
|
};
|
|
46
|
-
export const
|
|
44
|
+
export const se_CreateCustomPluginCommand = async (input, context) => {
|
|
47
45
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
48
46
|
const headers = {
|
|
49
47
|
"content-type": "application/json",
|
|
@@ -53,7 +51,7 @@ export const serializeAws_restJson1CreateCustomPluginCommand = async (input, con
|
|
|
53
51
|
body = JSON.stringify({
|
|
54
52
|
...(input.contentType != null && { contentType: input.contentType }),
|
|
55
53
|
...(input.description != null && { description: input.description }),
|
|
56
|
-
...(input.location != null && { location:
|
|
54
|
+
...(input.location != null && { location: se_CustomPluginLocation(input.location, context) }),
|
|
57
55
|
...(input.name != null && { name: input.name }),
|
|
58
56
|
});
|
|
59
57
|
return new __HttpRequest({
|
|
@@ -66,7 +64,7 @@ export const serializeAws_restJson1CreateCustomPluginCommand = async (input, con
|
|
|
66
64
|
body,
|
|
67
65
|
});
|
|
68
66
|
};
|
|
69
|
-
export const
|
|
67
|
+
export const se_CreateWorkerConfigurationCommand = async (input, context) => {
|
|
70
68
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
71
69
|
const headers = {
|
|
72
70
|
"content-type": "application/json",
|
|
@@ -88,7 +86,7 @@ export const serializeAws_restJson1CreateWorkerConfigurationCommand = async (inp
|
|
|
88
86
|
body,
|
|
89
87
|
});
|
|
90
88
|
};
|
|
91
|
-
export const
|
|
89
|
+
export const se_DeleteConnectorCommand = async (input, context) => {
|
|
92
90
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
91
|
const headers = {};
|
|
94
92
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors/{connectorArn}";
|
|
@@ -108,7 +106,7 @@ export const serializeAws_restJson1DeleteConnectorCommand = async (input, contex
|
|
|
108
106
|
body,
|
|
109
107
|
});
|
|
110
108
|
};
|
|
111
|
-
export const
|
|
109
|
+
export const se_DeleteCustomPluginCommand = async (input, context) => {
|
|
112
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
113
111
|
const headers = {};
|
|
114
112
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins/{customPluginArn}";
|
|
@@ -124,7 +122,7 @@ export const serializeAws_restJson1DeleteCustomPluginCommand = async (input, con
|
|
|
124
122
|
body,
|
|
125
123
|
});
|
|
126
124
|
};
|
|
127
|
-
export const
|
|
125
|
+
export const se_DescribeConnectorCommand = async (input, context) => {
|
|
128
126
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
129
127
|
const headers = {};
|
|
130
128
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors/{connectorArn}";
|
|
@@ -140,7 +138,7 @@ export const serializeAws_restJson1DescribeConnectorCommand = async (input, cont
|
|
|
140
138
|
body,
|
|
141
139
|
});
|
|
142
140
|
};
|
|
143
|
-
export const
|
|
141
|
+
export const se_DescribeCustomPluginCommand = async (input, context) => {
|
|
144
142
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
145
143
|
const headers = {};
|
|
146
144
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins/{customPluginArn}";
|
|
@@ -156,7 +154,7 @@ export const serializeAws_restJson1DescribeCustomPluginCommand = async (input, c
|
|
|
156
154
|
body,
|
|
157
155
|
});
|
|
158
156
|
};
|
|
159
|
-
export const
|
|
157
|
+
export const se_DescribeWorkerConfigurationCommand = async (input, context) => {
|
|
160
158
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
161
159
|
const headers = {};
|
|
162
160
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -173,7 +171,7 @@ export const serializeAws_restJson1DescribeWorkerConfigurationCommand = async (i
|
|
|
173
171
|
body,
|
|
174
172
|
});
|
|
175
173
|
};
|
|
176
|
-
export const
|
|
174
|
+
export const se_ListConnectorsCommand = async (input, context) => {
|
|
177
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
178
176
|
const headers = {};
|
|
179
177
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors";
|
|
@@ -194,7 +192,7 @@ export const serializeAws_restJson1ListConnectorsCommand = async (input, context
|
|
|
194
192
|
body,
|
|
195
193
|
});
|
|
196
194
|
};
|
|
197
|
-
export const
|
|
195
|
+
export const se_ListCustomPluginsCommand = async (input, context) => {
|
|
198
196
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
199
197
|
const headers = {};
|
|
200
198
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins";
|
|
@@ -214,7 +212,7 @@ export const serializeAws_restJson1ListCustomPluginsCommand = async (input, cont
|
|
|
214
212
|
body,
|
|
215
213
|
});
|
|
216
214
|
};
|
|
217
|
-
export const
|
|
215
|
+
export const se_ListWorkerConfigurationsCommand = async (input, context) => {
|
|
218
216
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
219
217
|
const headers = {};
|
|
220
218
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/worker-configurations";
|
|
@@ -234,7 +232,7 @@ export const serializeAws_restJson1ListWorkerConfigurationsCommand = async (inpu
|
|
|
234
232
|
body,
|
|
235
233
|
});
|
|
236
234
|
};
|
|
237
|
-
export const
|
|
235
|
+
export const se_UpdateConnectorCommand = async (input, context) => {
|
|
238
236
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
239
237
|
const headers = {
|
|
240
238
|
"content-type": "application/json",
|
|
@@ -246,7 +244,7 @@ export const serializeAws_restJson1UpdateConnectorCommand = async (input, contex
|
|
|
246
244
|
});
|
|
247
245
|
let body;
|
|
248
246
|
body = JSON.stringify({
|
|
249
|
-
...(input.capacity != null && { capacity:
|
|
247
|
+
...(input.capacity != null && { capacity: se_CapacityUpdate(input.capacity, context) }),
|
|
250
248
|
});
|
|
251
249
|
return new __HttpRequest({
|
|
252
250
|
protocol,
|
|
@@ -259,9 +257,9 @@ export const serializeAws_restJson1UpdateConnectorCommand = async (input, contex
|
|
|
259
257
|
body,
|
|
260
258
|
});
|
|
261
259
|
};
|
|
262
|
-
export const
|
|
260
|
+
export const de_CreateConnectorCommand = async (output, context) => {
|
|
263
261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
264
|
-
return
|
|
262
|
+
return de_CreateConnectorCommandError(output, context);
|
|
265
263
|
}
|
|
266
264
|
const contents = map({
|
|
267
265
|
$metadata: deserializeMetadata(output),
|
|
@@ -278,7 +276,7 @@ export const deserializeAws_restJson1CreateConnectorCommand = async (output, con
|
|
|
278
276
|
}
|
|
279
277
|
return contents;
|
|
280
278
|
};
|
|
281
|
-
const
|
|
279
|
+
const de_CreateConnectorCommandError = async (output, context) => {
|
|
282
280
|
const parsedOutput = {
|
|
283
281
|
...output,
|
|
284
282
|
body: await parseErrorBody(output.body, context),
|
|
@@ -287,28 +285,28 @@ const deserializeAws_restJson1CreateConnectorCommandError = async (output, conte
|
|
|
287
285
|
switch (errorCode) {
|
|
288
286
|
case "BadRequestException":
|
|
289
287
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
290
|
-
throw await
|
|
288
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
291
289
|
case "ConflictException":
|
|
292
290
|
case "com.amazonaws.kafkaconnect#ConflictException":
|
|
293
|
-
throw await
|
|
291
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
294
292
|
case "ForbiddenException":
|
|
295
293
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
296
|
-
throw await
|
|
294
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
297
295
|
case "InternalServerErrorException":
|
|
298
296
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
299
|
-
throw await
|
|
297
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
300
298
|
case "NotFoundException":
|
|
301
299
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
302
|
-
throw await
|
|
300
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
303
301
|
case "ServiceUnavailableException":
|
|
304
302
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
305
|
-
throw await
|
|
303
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
306
304
|
case "TooManyRequestsException":
|
|
307
305
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
308
|
-
throw await
|
|
306
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
309
307
|
case "UnauthorizedException":
|
|
310
308
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
311
|
-
throw await
|
|
309
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
312
310
|
default:
|
|
313
311
|
const parsedBody = parsedOutput.body;
|
|
314
312
|
throwDefaultError({
|
|
@@ -319,9 +317,9 @@ const deserializeAws_restJson1CreateConnectorCommandError = async (output, conte
|
|
|
319
317
|
});
|
|
320
318
|
}
|
|
321
319
|
};
|
|
322
|
-
export const
|
|
320
|
+
export const de_CreateCustomPluginCommand = async (output, context) => {
|
|
323
321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
324
|
-
return
|
|
322
|
+
return de_CreateCustomPluginCommandError(output, context);
|
|
325
323
|
}
|
|
326
324
|
const contents = map({
|
|
327
325
|
$metadata: deserializeMetadata(output),
|
|
@@ -341,7 +339,7 @@ export const deserializeAws_restJson1CreateCustomPluginCommand = async (output,
|
|
|
341
339
|
}
|
|
342
340
|
return contents;
|
|
343
341
|
};
|
|
344
|
-
const
|
|
342
|
+
const de_CreateCustomPluginCommandError = async (output, context) => {
|
|
345
343
|
const parsedOutput = {
|
|
346
344
|
...output,
|
|
347
345
|
body: await parseErrorBody(output.body, context),
|
|
@@ -350,28 +348,28 @@ const deserializeAws_restJson1CreateCustomPluginCommandError = async (output, co
|
|
|
350
348
|
switch (errorCode) {
|
|
351
349
|
case "BadRequestException":
|
|
352
350
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
353
|
-
throw await
|
|
351
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
354
352
|
case "ConflictException":
|
|
355
353
|
case "com.amazonaws.kafkaconnect#ConflictException":
|
|
356
|
-
throw await
|
|
354
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
357
355
|
case "ForbiddenException":
|
|
358
356
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
359
|
-
throw await
|
|
357
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
360
358
|
case "InternalServerErrorException":
|
|
361
359
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
362
|
-
throw await
|
|
360
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
363
361
|
case "NotFoundException":
|
|
364
362
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
365
|
-
throw await
|
|
363
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
366
364
|
case "ServiceUnavailableException":
|
|
367
365
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
368
|
-
throw await
|
|
366
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
369
367
|
case "TooManyRequestsException":
|
|
370
368
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
371
|
-
throw await
|
|
369
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
372
370
|
case "UnauthorizedException":
|
|
373
371
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
374
|
-
throw await
|
|
372
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
375
373
|
default:
|
|
376
374
|
const parsedBody = parsedOutput.body;
|
|
377
375
|
throwDefaultError({
|
|
@@ -382,9 +380,9 @@ const deserializeAws_restJson1CreateCustomPluginCommandError = async (output, co
|
|
|
382
380
|
});
|
|
383
381
|
}
|
|
384
382
|
};
|
|
385
|
-
export const
|
|
383
|
+
export const de_CreateWorkerConfigurationCommand = async (output, context) => {
|
|
386
384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
387
|
-
return
|
|
385
|
+
return de_CreateWorkerConfigurationCommandError(output, context);
|
|
388
386
|
}
|
|
389
387
|
const contents = map({
|
|
390
388
|
$metadata: deserializeMetadata(output),
|
|
@@ -394,7 +392,7 @@ export const deserializeAws_restJson1CreateWorkerConfigurationCommand = async (o
|
|
|
394
392
|
contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
|
|
395
393
|
}
|
|
396
394
|
if (data.latestRevision != null) {
|
|
397
|
-
contents.latestRevision =
|
|
395
|
+
contents.latestRevision = de_WorkerConfigurationRevisionSummary(data.latestRevision, context);
|
|
398
396
|
}
|
|
399
397
|
if (data.name != null) {
|
|
400
398
|
contents.name = __expectString(data.name);
|
|
@@ -404,7 +402,7 @@ export const deserializeAws_restJson1CreateWorkerConfigurationCommand = async (o
|
|
|
404
402
|
}
|
|
405
403
|
return contents;
|
|
406
404
|
};
|
|
407
|
-
const
|
|
405
|
+
const de_CreateWorkerConfigurationCommandError = async (output, context) => {
|
|
408
406
|
const parsedOutput = {
|
|
409
407
|
...output,
|
|
410
408
|
body: await parseErrorBody(output.body, context),
|
|
@@ -413,28 +411,28 @@ const deserializeAws_restJson1CreateWorkerConfigurationCommandError = async (out
|
|
|
413
411
|
switch (errorCode) {
|
|
414
412
|
case "BadRequestException":
|
|
415
413
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
416
|
-
throw await
|
|
414
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
417
415
|
case "ConflictException":
|
|
418
416
|
case "com.amazonaws.kafkaconnect#ConflictException":
|
|
419
|
-
throw await
|
|
417
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
420
418
|
case "ForbiddenException":
|
|
421
419
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
422
|
-
throw await
|
|
420
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
423
421
|
case "InternalServerErrorException":
|
|
424
422
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
425
|
-
throw await
|
|
423
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
426
424
|
case "NotFoundException":
|
|
427
425
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
428
|
-
throw await
|
|
426
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
429
427
|
case "ServiceUnavailableException":
|
|
430
428
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
431
|
-
throw await
|
|
429
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
432
430
|
case "TooManyRequestsException":
|
|
433
431
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
434
|
-
throw await
|
|
432
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
435
433
|
case "UnauthorizedException":
|
|
436
434
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
437
|
-
throw await
|
|
435
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
438
436
|
default:
|
|
439
437
|
const parsedBody = parsedOutput.body;
|
|
440
438
|
throwDefaultError({
|
|
@@ -445,9 +443,9 @@ const deserializeAws_restJson1CreateWorkerConfigurationCommandError = async (out
|
|
|
445
443
|
});
|
|
446
444
|
}
|
|
447
445
|
};
|
|
448
|
-
export const
|
|
446
|
+
export const de_DeleteConnectorCommand = async (output, context) => {
|
|
449
447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
|
-
return
|
|
448
|
+
return de_DeleteConnectorCommandError(output, context);
|
|
451
449
|
}
|
|
452
450
|
const contents = map({
|
|
453
451
|
$metadata: deserializeMetadata(output),
|
|
@@ -461,7 +459,7 @@ export const deserializeAws_restJson1DeleteConnectorCommand = async (output, con
|
|
|
461
459
|
}
|
|
462
460
|
return contents;
|
|
463
461
|
};
|
|
464
|
-
const
|
|
462
|
+
const de_DeleteConnectorCommandError = async (output, context) => {
|
|
465
463
|
const parsedOutput = {
|
|
466
464
|
...output,
|
|
467
465
|
body: await parseErrorBody(output.body, context),
|
|
@@ -470,25 +468,25 @@ const deserializeAws_restJson1DeleteConnectorCommandError = async (output, conte
|
|
|
470
468
|
switch (errorCode) {
|
|
471
469
|
case "BadRequestException":
|
|
472
470
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
473
|
-
throw await
|
|
471
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
474
472
|
case "ForbiddenException":
|
|
475
473
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
476
|
-
throw await
|
|
474
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
477
475
|
case "InternalServerErrorException":
|
|
478
476
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
479
|
-
throw await
|
|
477
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
480
478
|
case "NotFoundException":
|
|
481
479
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
482
|
-
throw await
|
|
480
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
483
481
|
case "ServiceUnavailableException":
|
|
484
482
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
485
|
-
throw await
|
|
483
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
486
484
|
case "TooManyRequestsException":
|
|
487
485
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
488
|
-
throw await
|
|
486
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
489
487
|
case "UnauthorizedException":
|
|
490
488
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
491
|
-
throw await
|
|
489
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
492
490
|
default:
|
|
493
491
|
const parsedBody = parsedOutput.body;
|
|
494
492
|
throwDefaultError({
|
|
@@ -499,9 +497,9 @@ const deserializeAws_restJson1DeleteConnectorCommandError = async (output, conte
|
|
|
499
497
|
});
|
|
500
498
|
}
|
|
501
499
|
};
|
|
502
|
-
export const
|
|
500
|
+
export const de_DeleteCustomPluginCommand = async (output, context) => {
|
|
503
501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
504
|
-
return
|
|
502
|
+
return de_DeleteCustomPluginCommandError(output, context);
|
|
505
503
|
}
|
|
506
504
|
const contents = map({
|
|
507
505
|
$metadata: deserializeMetadata(output),
|
|
@@ -515,7 +513,7 @@ export const deserializeAws_restJson1DeleteCustomPluginCommand = async (output,
|
|
|
515
513
|
}
|
|
516
514
|
return contents;
|
|
517
515
|
};
|
|
518
|
-
const
|
|
516
|
+
const de_DeleteCustomPluginCommandError = async (output, context) => {
|
|
519
517
|
const parsedOutput = {
|
|
520
518
|
...output,
|
|
521
519
|
body: await parseErrorBody(output.body, context),
|
|
@@ -524,25 +522,25 @@ const deserializeAws_restJson1DeleteCustomPluginCommandError = async (output, co
|
|
|
524
522
|
switch (errorCode) {
|
|
525
523
|
case "BadRequestException":
|
|
526
524
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
527
|
-
throw await
|
|
525
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
528
526
|
case "ForbiddenException":
|
|
529
527
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
530
|
-
throw await
|
|
528
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
531
529
|
case "InternalServerErrorException":
|
|
532
530
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
533
|
-
throw await
|
|
531
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
534
532
|
case "NotFoundException":
|
|
535
533
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
536
|
-
throw await
|
|
534
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
537
535
|
case "ServiceUnavailableException":
|
|
538
536
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
539
|
-
throw await
|
|
537
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
540
538
|
case "TooManyRequestsException":
|
|
541
539
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
542
|
-
throw await
|
|
540
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
543
541
|
case "UnauthorizedException":
|
|
544
542
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
545
|
-
throw await
|
|
543
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
546
544
|
default:
|
|
547
545
|
const parsedBody = parsedOutput.body;
|
|
548
546
|
throwDefaultError({
|
|
@@ -553,22 +551,22 @@ const deserializeAws_restJson1DeleteCustomPluginCommandError = async (output, co
|
|
|
553
551
|
});
|
|
554
552
|
}
|
|
555
553
|
};
|
|
556
|
-
export const
|
|
554
|
+
export const de_DescribeConnectorCommand = async (output, context) => {
|
|
557
555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
558
|
-
return
|
|
556
|
+
return de_DescribeConnectorCommandError(output, context);
|
|
559
557
|
}
|
|
560
558
|
const contents = map({
|
|
561
559
|
$metadata: deserializeMetadata(output),
|
|
562
560
|
});
|
|
563
561
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
564
562
|
if (data.capacity != null) {
|
|
565
|
-
contents.capacity =
|
|
563
|
+
contents.capacity = de_CapacityDescription(data.capacity, context);
|
|
566
564
|
}
|
|
567
565
|
if (data.connectorArn != null) {
|
|
568
566
|
contents.connectorArn = __expectString(data.connectorArn);
|
|
569
567
|
}
|
|
570
568
|
if (data.connectorConfiguration != null) {
|
|
571
|
-
contents.connectorConfiguration =
|
|
569
|
+
contents.connectorConfiguration = de___sensitive__mapOf__string(data.connectorConfiguration, context);
|
|
572
570
|
}
|
|
573
571
|
if (data.connectorDescription != null) {
|
|
574
572
|
contents.connectorDescription = __expectString(data.connectorDescription);
|
|
@@ -586,35 +584,35 @@ export const deserializeAws_restJson1DescribeConnectorCommand = async (output, c
|
|
|
586
584
|
contents.currentVersion = __expectString(data.currentVersion);
|
|
587
585
|
}
|
|
588
586
|
if (data.kafkaCluster != null) {
|
|
589
|
-
contents.kafkaCluster =
|
|
587
|
+
contents.kafkaCluster = de_KafkaClusterDescription(data.kafkaCluster, context);
|
|
590
588
|
}
|
|
591
589
|
if (data.kafkaClusterClientAuthentication != null) {
|
|
592
|
-
contents.kafkaClusterClientAuthentication =
|
|
590
|
+
contents.kafkaClusterClientAuthentication = de_KafkaClusterClientAuthenticationDescription(data.kafkaClusterClientAuthentication, context);
|
|
593
591
|
}
|
|
594
592
|
if (data.kafkaClusterEncryptionInTransit != null) {
|
|
595
|
-
contents.kafkaClusterEncryptionInTransit =
|
|
593
|
+
contents.kafkaClusterEncryptionInTransit = de_KafkaClusterEncryptionInTransitDescription(data.kafkaClusterEncryptionInTransit, context);
|
|
596
594
|
}
|
|
597
595
|
if (data.kafkaConnectVersion != null) {
|
|
598
596
|
contents.kafkaConnectVersion = __expectString(data.kafkaConnectVersion);
|
|
599
597
|
}
|
|
600
598
|
if (data.logDelivery != null) {
|
|
601
|
-
contents.logDelivery =
|
|
599
|
+
contents.logDelivery = de_LogDeliveryDescription(data.logDelivery, context);
|
|
602
600
|
}
|
|
603
601
|
if (data.plugins != null) {
|
|
604
|
-
contents.plugins =
|
|
602
|
+
contents.plugins = de___listOfPluginDescription(data.plugins, context);
|
|
605
603
|
}
|
|
606
604
|
if (data.serviceExecutionRoleArn != null) {
|
|
607
605
|
contents.serviceExecutionRoleArn = __expectString(data.serviceExecutionRoleArn);
|
|
608
606
|
}
|
|
609
607
|
if (data.stateDescription != null) {
|
|
610
|
-
contents.stateDescription =
|
|
608
|
+
contents.stateDescription = de_StateDescription(data.stateDescription, context);
|
|
611
609
|
}
|
|
612
610
|
if (data.workerConfiguration != null) {
|
|
613
|
-
contents.workerConfiguration =
|
|
611
|
+
contents.workerConfiguration = de_WorkerConfigurationDescription(data.workerConfiguration, context);
|
|
614
612
|
}
|
|
615
613
|
return contents;
|
|
616
614
|
};
|
|
617
|
-
const
|
|
615
|
+
const de_DescribeConnectorCommandError = async (output, context) => {
|
|
618
616
|
const parsedOutput = {
|
|
619
617
|
...output,
|
|
620
618
|
body: await parseErrorBody(output.body, context),
|
|
@@ -623,25 +621,25 @@ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, con
|
|
|
623
621
|
switch (errorCode) {
|
|
624
622
|
case "BadRequestException":
|
|
625
623
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
626
|
-
throw await
|
|
624
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
627
625
|
case "ForbiddenException":
|
|
628
626
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
629
|
-
throw await
|
|
627
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
630
628
|
case "InternalServerErrorException":
|
|
631
629
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
632
|
-
throw await
|
|
630
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
633
631
|
case "NotFoundException":
|
|
634
632
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
635
|
-
throw await
|
|
633
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
636
634
|
case "ServiceUnavailableException":
|
|
637
635
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
638
|
-
throw await
|
|
636
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
639
637
|
case "TooManyRequestsException":
|
|
640
638
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
641
|
-
throw await
|
|
639
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
642
640
|
case "UnauthorizedException":
|
|
643
641
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
644
|
-
throw await
|
|
642
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
645
643
|
default:
|
|
646
644
|
const parsedBody = parsedOutput.body;
|
|
647
645
|
throwDefaultError({
|
|
@@ -652,9 +650,9 @@ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, con
|
|
|
652
650
|
});
|
|
653
651
|
}
|
|
654
652
|
};
|
|
655
|
-
export const
|
|
653
|
+
export const de_DescribeCustomPluginCommand = async (output, context) => {
|
|
656
654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
657
|
-
return
|
|
655
|
+
return de_DescribeCustomPluginCommandError(output, context);
|
|
658
656
|
}
|
|
659
657
|
const contents = map({
|
|
660
658
|
$metadata: deserializeMetadata(output),
|
|
@@ -673,17 +671,17 @@ export const deserializeAws_restJson1DescribeCustomPluginCommand = async (output
|
|
|
673
671
|
contents.description = __expectString(data.description);
|
|
674
672
|
}
|
|
675
673
|
if (data.latestRevision != null) {
|
|
676
|
-
contents.latestRevision =
|
|
674
|
+
contents.latestRevision = de_CustomPluginRevisionSummary(data.latestRevision, context);
|
|
677
675
|
}
|
|
678
676
|
if (data.name != null) {
|
|
679
677
|
contents.name = __expectString(data.name);
|
|
680
678
|
}
|
|
681
679
|
if (data.stateDescription != null) {
|
|
682
|
-
contents.stateDescription =
|
|
680
|
+
contents.stateDescription = de_StateDescription(data.stateDescription, context);
|
|
683
681
|
}
|
|
684
682
|
return contents;
|
|
685
683
|
};
|
|
686
|
-
const
|
|
684
|
+
const de_DescribeCustomPluginCommandError = async (output, context) => {
|
|
687
685
|
const parsedOutput = {
|
|
688
686
|
...output,
|
|
689
687
|
body: await parseErrorBody(output.body, context),
|
|
@@ -692,25 +690,25 @@ const deserializeAws_restJson1DescribeCustomPluginCommandError = async (output,
|
|
|
692
690
|
switch (errorCode) {
|
|
693
691
|
case "BadRequestException":
|
|
694
692
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
695
|
-
throw await
|
|
693
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
696
694
|
case "ForbiddenException":
|
|
697
695
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
698
|
-
throw await
|
|
696
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
699
697
|
case "InternalServerErrorException":
|
|
700
698
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
701
|
-
throw await
|
|
699
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
702
700
|
case "NotFoundException":
|
|
703
701
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
704
|
-
throw await
|
|
702
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
705
703
|
case "ServiceUnavailableException":
|
|
706
704
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
707
|
-
throw await
|
|
705
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
708
706
|
case "TooManyRequestsException":
|
|
709
707
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
710
|
-
throw await
|
|
708
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
711
709
|
case "UnauthorizedException":
|
|
712
710
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
713
|
-
throw await
|
|
711
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
714
712
|
default:
|
|
715
713
|
const parsedBody = parsedOutput.body;
|
|
716
714
|
throwDefaultError({
|
|
@@ -721,9 +719,9 @@ const deserializeAws_restJson1DescribeCustomPluginCommandError = async (output,
|
|
|
721
719
|
});
|
|
722
720
|
}
|
|
723
721
|
};
|
|
724
|
-
export const
|
|
722
|
+
export const de_DescribeWorkerConfigurationCommand = async (output, context) => {
|
|
725
723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
|
-
return
|
|
724
|
+
return de_DescribeWorkerConfigurationCommandError(output, context);
|
|
727
725
|
}
|
|
728
726
|
const contents = map({
|
|
729
727
|
$metadata: deserializeMetadata(output),
|
|
@@ -736,7 +734,7 @@ export const deserializeAws_restJson1DescribeWorkerConfigurationCommand = async
|
|
|
736
734
|
contents.description = __expectString(data.description);
|
|
737
735
|
}
|
|
738
736
|
if (data.latestRevision != null) {
|
|
739
|
-
contents.latestRevision =
|
|
737
|
+
contents.latestRevision = de_WorkerConfigurationRevisionDescription(data.latestRevision, context);
|
|
740
738
|
}
|
|
741
739
|
if (data.name != null) {
|
|
742
740
|
contents.name = __expectString(data.name);
|
|
@@ -746,7 +744,7 @@ export const deserializeAws_restJson1DescribeWorkerConfigurationCommand = async
|
|
|
746
744
|
}
|
|
747
745
|
return contents;
|
|
748
746
|
};
|
|
749
|
-
const
|
|
747
|
+
const de_DescribeWorkerConfigurationCommandError = async (output, context) => {
|
|
750
748
|
const parsedOutput = {
|
|
751
749
|
...output,
|
|
752
750
|
body: await parseErrorBody(output.body, context),
|
|
@@ -755,25 +753,25 @@ const deserializeAws_restJson1DescribeWorkerConfigurationCommandError = async (o
|
|
|
755
753
|
switch (errorCode) {
|
|
756
754
|
case "BadRequestException":
|
|
757
755
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
758
|
-
throw await
|
|
756
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
759
757
|
case "ForbiddenException":
|
|
760
758
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
761
|
-
throw await
|
|
759
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
762
760
|
case "InternalServerErrorException":
|
|
763
761
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
764
|
-
throw await
|
|
762
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
765
763
|
case "NotFoundException":
|
|
766
764
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
767
|
-
throw await
|
|
765
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
768
766
|
case "ServiceUnavailableException":
|
|
769
767
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
770
|
-
throw await
|
|
768
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
771
769
|
case "TooManyRequestsException":
|
|
772
770
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
773
|
-
throw await
|
|
771
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
774
772
|
case "UnauthorizedException":
|
|
775
773
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
776
|
-
throw await
|
|
774
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
777
775
|
default:
|
|
778
776
|
const parsedBody = parsedOutput.body;
|
|
779
777
|
throwDefaultError({
|
|
@@ -784,23 +782,23 @@ const deserializeAws_restJson1DescribeWorkerConfigurationCommandError = async (o
|
|
|
784
782
|
});
|
|
785
783
|
}
|
|
786
784
|
};
|
|
787
|
-
export const
|
|
785
|
+
export const de_ListConnectorsCommand = async (output, context) => {
|
|
788
786
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
789
|
-
return
|
|
787
|
+
return de_ListConnectorsCommandError(output, context);
|
|
790
788
|
}
|
|
791
789
|
const contents = map({
|
|
792
790
|
$metadata: deserializeMetadata(output),
|
|
793
791
|
});
|
|
794
792
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
795
793
|
if (data.connectors != null) {
|
|
796
|
-
contents.connectors =
|
|
794
|
+
contents.connectors = de___listOfConnectorSummary(data.connectors, context);
|
|
797
795
|
}
|
|
798
796
|
if (data.nextToken != null) {
|
|
799
797
|
contents.nextToken = __expectString(data.nextToken);
|
|
800
798
|
}
|
|
801
799
|
return contents;
|
|
802
800
|
};
|
|
803
|
-
const
|
|
801
|
+
const de_ListConnectorsCommandError = async (output, context) => {
|
|
804
802
|
const parsedOutput = {
|
|
805
803
|
...output,
|
|
806
804
|
body: await parseErrorBody(output.body, context),
|
|
@@ -809,25 +807,25 @@ const deserializeAws_restJson1ListConnectorsCommandError = async (output, contex
|
|
|
809
807
|
switch (errorCode) {
|
|
810
808
|
case "BadRequestException":
|
|
811
809
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
812
|
-
throw await
|
|
810
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
813
811
|
case "ForbiddenException":
|
|
814
812
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
815
|
-
throw await
|
|
813
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
816
814
|
case "InternalServerErrorException":
|
|
817
815
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
818
|
-
throw await
|
|
816
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
819
817
|
case "NotFoundException":
|
|
820
818
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
821
|
-
throw await
|
|
819
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
822
820
|
case "ServiceUnavailableException":
|
|
823
821
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
824
|
-
throw await
|
|
822
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
825
823
|
case "TooManyRequestsException":
|
|
826
824
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
827
|
-
throw await
|
|
825
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
828
826
|
case "UnauthorizedException":
|
|
829
827
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
830
|
-
throw await
|
|
828
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
831
829
|
default:
|
|
832
830
|
const parsedBody = parsedOutput.body;
|
|
833
831
|
throwDefaultError({
|
|
@@ -838,23 +836,23 @@ const deserializeAws_restJson1ListConnectorsCommandError = async (output, contex
|
|
|
838
836
|
});
|
|
839
837
|
}
|
|
840
838
|
};
|
|
841
|
-
export const
|
|
839
|
+
export const de_ListCustomPluginsCommand = async (output, context) => {
|
|
842
840
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
|
-
return
|
|
841
|
+
return de_ListCustomPluginsCommandError(output, context);
|
|
844
842
|
}
|
|
845
843
|
const contents = map({
|
|
846
844
|
$metadata: deserializeMetadata(output),
|
|
847
845
|
});
|
|
848
846
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
849
847
|
if (data.customPlugins != null) {
|
|
850
|
-
contents.customPlugins =
|
|
848
|
+
contents.customPlugins = de___listOfCustomPluginSummary(data.customPlugins, context);
|
|
851
849
|
}
|
|
852
850
|
if (data.nextToken != null) {
|
|
853
851
|
contents.nextToken = __expectString(data.nextToken);
|
|
854
852
|
}
|
|
855
853
|
return contents;
|
|
856
854
|
};
|
|
857
|
-
const
|
|
855
|
+
const de_ListCustomPluginsCommandError = async (output, context) => {
|
|
858
856
|
const parsedOutput = {
|
|
859
857
|
...output,
|
|
860
858
|
body: await parseErrorBody(output.body, context),
|
|
@@ -863,25 +861,25 @@ const deserializeAws_restJson1ListCustomPluginsCommandError = async (output, con
|
|
|
863
861
|
switch (errorCode) {
|
|
864
862
|
case "BadRequestException":
|
|
865
863
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
866
|
-
throw await
|
|
864
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
867
865
|
case "ForbiddenException":
|
|
868
866
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
869
|
-
throw await
|
|
867
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
870
868
|
case "InternalServerErrorException":
|
|
871
869
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
872
|
-
throw await
|
|
870
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
873
871
|
case "NotFoundException":
|
|
874
872
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
875
|
-
throw await
|
|
873
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
876
874
|
case "ServiceUnavailableException":
|
|
877
875
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
878
|
-
throw await
|
|
876
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
879
877
|
case "TooManyRequestsException":
|
|
880
878
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
881
|
-
throw await
|
|
879
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
882
880
|
case "UnauthorizedException":
|
|
883
881
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
884
|
-
throw await
|
|
882
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
885
883
|
default:
|
|
886
884
|
const parsedBody = parsedOutput.body;
|
|
887
885
|
throwDefaultError({
|
|
@@ -892,9 +890,9 @@ const deserializeAws_restJson1ListCustomPluginsCommandError = async (output, con
|
|
|
892
890
|
});
|
|
893
891
|
}
|
|
894
892
|
};
|
|
895
|
-
export const
|
|
893
|
+
export const de_ListWorkerConfigurationsCommand = async (output, context) => {
|
|
896
894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
897
|
-
return
|
|
895
|
+
return de_ListWorkerConfigurationsCommandError(output, context);
|
|
898
896
|
}
|
|
899
897
|
const contents = map({
|
|
900
898
|
$metadata: deserializeMetadata(output),
|
|
@@ -904,11 +902,11 @@ export const deserializeAws_restJson1ListWorkerConfigurationsCommand = async (ou
|
|
|
904
902
|
contents.nextToken = __expectString(data.nextToken);
|
|
905
903
|
}
|
|
906
904
|
if (data.workerConfigurations != null) {
|
|
907
|
-
contents.workerConfigurations =
|
|
905
|
+
contents.workerConfigurations = de___listOfWorkerConfigurationSummary(data.workerConfigurations, context);
|
|
908
906
|
}
|
|
909
907
|
return contents;
|
|
910
908
|
};
|
|
911
|
-
const
|
|
909
|
+
const de_ListWorkerConfigurationsCommandError = async (output, context) => {
|
|
912
910
|
const parsedOutput = {
|
|
913
911
|
...output,
|
|
914
912
|
body: await parseErrorBody(output.body, context),
|
|
@@ -917,25 +915,25 @@ const deserializeAws_restJson1ListWorkerConfigurationsCommandError = async (outp
|
|
|
917
915
|
switch (errorCode) {
|
|
918
916
|
case "BadRequestException":
|
|
919
917
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
920
|
-
throw await
|
|
918
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
921
919
|
case "ForbiddenException":
|
|
922
920
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
923
|
-
throw await
|
|
921
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
924
922
|
case "InternalServerErrorException":
|
|
925
923
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
926
|
-
throw await
|
|
924
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
927
925
|
case "NotFoundException":
|
|
928
926
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
929
|
-
throw await
|
|
927
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
930
928
|
case "ServiceUnavailableException":
|
|
931
929
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
932
|
-
throw await
|
|
930
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
933
931
|
case "TooManyRequestsException":
|
|
934
932
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
935
|
-
throw await
|
|
933
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
936
934
|
case "UnauthorizedException":
|
|
937
935
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
938
|
-
throw await
|
|
936
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
939
937
|
default:
|
|
940
938
|
const parsedBody = parsedOutput.body;
|
|
941
939
|
throwDefaultError({
|
|
@@ -946,9 +944,9 @@ const deserializeAws_restJson1ListWorkerConfigurationsCommandError = async (outp
|
|
|
946
944
|
});
|
|
947
945
|
}
|
|
948
946
|
};
|
|
949
|
-
export const
|
|
947
|
+
export const de_UpdateConnectorCommand = async (output, context) => {
|
|
950
948
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
951
|
-
return
|
|
949
|
+
return de_UpdateConnectorCommandError(output, context);
|
|
952
950
|
}
|
|
953
951
|
const contents = map({
|
|
954
952
|
$metadata: deserializeMetadata(output),
|
|
@@ -962,7 +960,7 @@ export const deserializeAws_restJson1UpdateConnectorCommand = async (output, con
|
|
|
962
960
|
}
|
|
963
961
|
return contents;
|
|
964
962
|
};
|
|
965
|
-
const
|
|
963
|
+
const de_UpdateConnectorCommandError = async (output, context) => {
|
|
966
964
|
const parsedOutput = {
|
|
967
965
|
...output,
|
|
968
966
|
body: await parseErrorBody(output.body, context),
|
|
@@ -971,25 +969,25 @@ const deserializeAws_restJson1UpdateConnectorCommandError = async (output, conte
|
|
|
971
969
|
switch (errorCode) {
|
|
972
970
|
case "BadRequestException":
|
|
973
971
|
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
974
|
-
throw await
|
|
972
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
975
973
|
case "ForbiddenException":
|
|
976
974
|
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
977
|
-
throw await
|
|
975
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
978
976
|
case "InternalServerErrorException":
|
|
979
977
|
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
980
|
-
throw await
|
|
978
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
981
979
|
case "NotFoundException":
|
|
982
980
|
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
983
|
-
throw await
|
|
981
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
984
982
|
case "ServiceUnavailableException":
|
|
985
983
|
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
986
|
-
throw await
|
|
984
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
987
985
|
case "TooManyRequestsException":
|
|
988
986
|
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
989
|
-
throw await
|
|
987
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
990
988
|
case "UnauthorizedException":
|
|
991
989
|
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
992
|
-
throw await
|
|
990
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
993
991
|
default:
|
|
994
992
|
const parsedBody = parsedOutput.body;
|
|
995
993
|
throwDefaultError({
|
|
@@ -1001,7 +999,7 @@ const deserializeAws_restJson1UpdateConnectorCommandError = async (output, conte
|
|
|
1001
999
|
}
|
|
1002
1000
|
};
|
|
1003
1001
|
const map = __map;
|
|
1004
|
-
const
|
|
1002
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1005
1003
|
const contents = map({});
|
|
1006
1004
|
const data = parsedOutput.body;
|
|
1007
1005
|
if (data.message != null) {
|
|
@@ -1013,7 +1011,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
1013
1011
|
});
|
|
1014
1012
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1015
1013
|
};
|
|
1016
|
-
const
|
|
1014
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1017
1015
|
const contents = map({});
|
|
1018
1016
|
const data = parsedOutput.body;
|
|
1019
1017
|
if (data.message != null) {
|
|
@@ -1025,7 +1023,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1025
1023
|
});
|
|
1026
1024
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1027
1025
|
};
|
|
1028
|
-
const
|
|
1026
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1029
1027
|
const contents = map({});
|
|
1030
1028
|
const data = parsedOutput.body;
|
|
1031
1029
|
if (data.message != null) {
|
|
@@ -1037,7 +1035,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
|
|
|
1037
1035
|
});
|
|
1038
1036
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1039
1037
|
};
|
|
1040
|
-
const
|
|
1038
|
+
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1041
1039
|
const contents = map({});
|
|
1042
1040
|
const data = parsedOutput.body;
|
|
1043
1041
|
if (data.message != null) {
|
|
@@ -1049,7 +1047,7 @@ const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (pars
|
|
|
1049
1047
|
});
|
|
1050
1048
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1051
1049
|
};
|
|
1052
|
-
const
|
|
1050
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1053
1051
|
const contents = map({});
|
|
1054
1052
|
const data = parsedOutput.body;
|
|
1055
1053
|
if (data.message != null) {
|
|
@@ -1061,7 +1059,7 @@ const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, c
|
|
|
1061
1059
|
});
|
|
1062
1060
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1063
1061
|
};
|
|
1064
|
-
const
|
|
1062
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1065
1063
|
const contents = map({});
|
|
1066
1064
|
const data = parsedOutput.body;
|
|
1067
1065
|
if (data.message != null) {
|
|
@@ -1073,7 +1071,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
1073
1071
|
});
|
|
1074
1072
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1075
1073
|
};
|
|
1076
|
-
const
|
|
1074
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1077
1075
|
const contents = map({});
|
|
1078
1076
|
const data = parsedOutput.body;
|
|
1079
1077
|
if (data.message != null) {
|
|
@@ -1085,7 +1083,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
1085
1083
|
});
|
|
1086
1084
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1087
1085
|
};
|
|
1088
|
-
const
|
|
1086
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1089
1087
|
const contents = map({});
|
|
1090
1088
|
const data = parsedOutput.body;
|
|
1091
1089
|
if (data.message != null) {
|
|
@@ -1097,21 +1095,21 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
1097
1095
|
});
|
|
1098
1096
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1099
1097
|
};
|
|
1100
|
-
const
|
|
1098
|
+
const se___listOf__string = (input, context) => {
|
|
1101
1099
|
return input
|
|
1102
1100
|
.filter((e) => e != null)
|
|
1103
1101
|
.map((entry) => {
|
|
1104
1102
|
return entry;
|
|
1105
1103
|
});
|
|
1106
1104
|
};
|
|
1107
|
-
const
|
|
1105
|
+
const se___listOfPlugin = (input, context) => {
|
|
1108
1106
|
return input
|
|
1109
1107
|
.filter((e) => e != null)
|
|
1110
1108
|
.map((entry) => {
|
|
1111
|
-
return
|
|
1109
|
+
return se_Plugin(entry, context);
|
|
1112
1110
|
});
|
|
1113
1111
|
};
|
|
1114
|
-
const
|
|
1112
|
+
const se___sensitive__mapOf__string = (input, context) => {
|
|
1115
1113
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1116
1114
|
if (value === null) {
|
|
1117
1115
|
return acc;
|
|
@@ -1120,180 +1118,166 @@ const serializeAws_restJson1__sensitive__mapOf__string = (input, context) => {
|
|
|
1120
1118
|
return acc;
|
|
1121
1119
|
}, {});
|
|
1122
1120
|
};
|
|
1123
|
-
const
|
|
1121
|
+
const se_ApacheKafkaCluster = (input, context) => {
|
|
1124
1122
|
return {
|
|
1125
1123
|
...(input.bootstrapServers != null && { bootstrapServers: input.bootstrapServers }),
|
|
1126
|
-
...(input.vpc != null && { vpc:
|
|
1124
|
+
...(input.vpc != null && { vpc: se_Vpc(input.vpc, context) }),
|
|
1127
1125
|
};
|
|
1128
1126
|
};
|
|
1129
|
-
const
|
|
1127
|
+
const se_AutoScaling = (input, context) => {
|
|
1130
1128
|
return {
|
|
1131
1129
|
...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
|
|
1132
1130
|
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1133
1131
|
...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
|
|
1134
|
-
...(input.scaleInPolicy != null && {
|
|
1135
|
-
|
|
1136
|
-
}),
|
|
1137
|
-
...(input.scaleOutPolicy != null && {
|
|
1138
|
-
scaleOutPolicy: serializeAws_restJson1ScaleOutPolicy(input.scaleOutPolicy, context),
|
|
1139
|
-
}),
|
|
1132
|
+
...(input.scaleInPolicy != null && { scaleInPolicy: se_ScaleInPolicy(input.scaleInPolicy, context) }),
|
|
1133
|
+
...(input.scaleOutPolicy != null && { scaleOutPolicy: se_ScaleOutPolicy(input.scaleOutPolicy, context) }),
|
|
1140
1134
|
};
|
|
1141
1135
|
};
|
|
1142
|
-
const
|
|
1136
|
+
const se_AutoScalingUpdate = (input, context) => {
|
|
1143
1137
|
return {
|
|
1144
1138
|
...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
|
|
1145
1139
|
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1146
1140
|
...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
|
|
1147
|
-
...(input.scaleInPolicy != null && {
|
|
1148
|
-
|
|
1149
|
-
}),
|
|
1150
|
-
...(input.scaleOutPolicy != null && {
|
|
1151
|
-
scaleOutPolicy: serializeAws_restJson1ScaleOutPolicyUpdate(input.scaleOutPolicy, context),
|
|
1152
|
-
}),
|
|
1141
|
+
...(input.scaleInPolicy != null && { scaleInPolicy: se_ScaleInPolicyUpdate(input.scaleInPolicy, context) }),
|
|
1142
|
+
...(input.scaleOutPolicy != null && { scaleOutPolicy: se_ScaleOutPolicyUpdate(input.scaleOutPolicy, context) }),
|
|
1153
1143
|
};
|
|
1154
1144
|
};
|
|
1155
|
-
const
|
|
1145
|
+
const se_Capacity = (input, context) => {
|
|
1156
1146
|
return {
|
|
1157
|
-
...(input.autoScaling != null && { autoScaling:
|
|
1147
|
+
...(input.autoScaling != null && { autoScaling: se_AutoScaling(input.autoScaling, context) }),
|
|
1158
1148
|
...(input.provisionedCapacity != null && {
|
|
1159
|
-
provisionedCapacity:
|
|
1149
|
+
provisionedCapacity: se_ProvisionedCapacity(input.provisionedCapacity, context),
|
|
1160
1150
|
}),
|
|
1161
1151
|
};
|
|
1162
1152
|
};
|
|
1163
|
-
const
|
|
1153
|
+
const se_CapacityUpdate = (input, context) => {
|
|
1164
1154
|
return {
|
|
1165
|
-
...(input.autoScaling != null && {
|
|
1166
|
-
autoScaling: serializeAws_restJson1AutoScalingUpdate(input.autoScaling, context),
|
|
1167
|
-
}),
|
|
1155
|
+
...(input.autoScaling != null && { autoScaling: se_AutoScalingUpdate(input.autoScaling, context) }),
|
|
1168
1156
|
...(input.provisionedCapacity != null && {
|
|
1169
|
-
provisionedCapacity:
|
|
1157
|
+
provisionedCapacity: se_ProvisionedCapacityUpdate(input.provisionedCapacity, context),
|
|
1170
1158
|
}),
|
|
1171
1159
|
};
|
|
1172
1160
|
};
|
|
1173
|
-
const
|
|
1161
|
+
const se_CloudWatchLogsLogDelivery = (input, context) => {
|
|
1174
1162
|
return {
|
|
1175
1163
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1176
1164
|
...(input.logGroup != null && { logGroup: input.logGroup }),
|
|
1177
1165
|
};
|
|
1178
1166
|
};
|
|
1179
|
-
const
|
|
1167
|
+
const se_CustomPlugin = (input, context) => {
|
|
1180
1168
|
return {
|
|
1181
1169
|
...(input.customPluginArn != null && { customPluginArn: input.customPluginArn }),
|
|
1182
1170
|
...(input.revision != null && { revision: input.revision }),
|
|
1183
1171
|
};
|
|
1184
1172
|
};
|
|
1185
|
-
const
|
|
1173
|
+
const se_CustomPluginLocation = (input, context) => {
|
|
1186
1174
|
return {
|
|
1187
|
-
...(input.s3Location != null && { s3Location:
|
|
1175
|
+
...(input.s3Location != null && { s3Location: se_S3Location(input.s3Location, context) }),
|
|
1188
1176
|
};
|
|
1189
1177
|
};
|
|
1190
|
-
const
|
|
1178
|
+
const se_FirehoseLogDelivery = (input, context) => {
|
|
1191
1179
|
return {
|
|
1192
1180
|
...(input.deliveryStream != null && { deliveryStream: input.deliveryStream }),
|
|
1193
1181
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1194
1182
|
};
|
|
1195
1183
|
};
|
|
1196
|
-
const
|
|
1184
|
+
const se_KafkaCluster = (input, context) => {
|
|
1197
1185
|
return {
|
|
1198
1186
|
...(input.apacheKafkaCluster != null && {
|
|
1199
|
-
apacheKafkaCluster:
|
|
1187
|
+
apacheKafkaCluster: se_ApacheKafkaCluster(input.apacheKafkaCluster, context),
|
|
1200
1188
|
}),
|
|
1201
1189
|
};
|
|
1202
1190
|
};
|
|
1203
|
-
const
|
|
1191
|
+
const se_KafkaClusterClientAuthentication = (input, context) => {
|
|
1204
1192
|
return {
|
|
1205
1193
|
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
1206
1194
|
};
|
|
1207
1195
|
};
|
|
1208
|
-
const
|
|
1196
|
+
const se_KafkaClusterEncryptionInTransit = (input, context) => {
|
|
1209
1197
|
return {
|
|
1210
1198
|
...(input.encryptionType != null && { encryptionType: input.encryptionType }),
|
|
1211
1199
|
};
|
|
1212
1200
|
};
|
|
1213
|
-
const
|
|
1201
|
+
const se_LogDelivery = (input, context) => {
|
|
1214
1202
|
return {
|
|
1215
1203
|
...(input.workerLogDelivery != null && {
|
|
1216
|
-
workerLogDelivery:
|
|
1204
|
+
workerLogDelivery: se_WorkerLogDelivery(input.workerLogDelivery, context),
|
|
1217
1205
|
}),
|
|
1218
1206
|
};
|
|
1219
1207
|
};
|
|
1220
|
-
const
|
|
1208
|
+
const se_Plugin = (input, context) => {
|
|
1221
1209
|
return {
|
|
1222
|
-
...(input.customPlugin != null && {
|
|
1223
|
-
customPlugin: serializeAws_restJson1CustomPlugin(input.customPlugin, context),
|
|
1224
|
-
}),
|
|
1210
|
+
...(input.customPlugin != null && { customPlugin: se_CustomPlugin(input.customPlugin, context) }),
|
|
1225
1211
|
};
|
|
1226
1212
|
};
|
|
1227
|
-
const
|
|
1213
|
+
const se_ProvisionedCapacity = (input, context) => {
|
|
1228
1214
|
return {
|
|
1229
1215
|
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1230
1216
|
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1231
1217
|
};
|
|
1232
1218
|
};
|
|
1233
|
-
const
|
|
1219
|
+
const se_ProvisionedCapacityUpdate = (input, context) => {
|
|
1234
1220
|
return {
|
|
1235
1221
|
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1236
1222
|
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1237
1223
|
};
|
|
1238
1224
|
};
|
|
1239
|
-
const
|
|
1225
|
+
const se_S3Location = (input, context) => {
|
|
1240
1226
|
return {
|
|
1241
1227
|
...(input.bucketArn != null && { bucketArn: input.bucketArn }),
|
|
1242
1228
|
...(input.fileKey != null && { fileKey: input.fileKey }),
|
|
1243
1229
|
...(input.objectVersion != null && { objectVersion: input.objectVersion }),
|
|
1244
1230
|
};
|
|
1245
1231
|
};
|
|
1246
|
-
const
|
|
1232
|
+
const se_S3LogDelivery = (input, context) => {
|
|
1247
1233
|
return {
|
|
1248
1234
|
...(input.bucket != null && { bucket: input.bucket }),
|
|
1249
1235
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
1250
1236
|
...(input.prefix != null && { prefix: input.prefix }),
|
|
1251
1237
|
};
|
|
1252
1238
|
};
|
|
1253
|
-
const
|
|
1239
|
+
const se_ScaleInPolicy = (input, context) => {
|
|
1254
1240
|
return {
|
|
1255
1241
|
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1256
1242
|
};
|
|
1257
1243
|
};
|
|
1258
|
-
const
|
|
1244
|
+
const se_ScaleInPolicyUpdate = (input, context) => {
|
|
1259
1245
|
return {
|
|
1260
1246
|
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1261
1247
|
};
|
|
1262
1248
|
};
|
|
1263
|
-
const
|
|
1249
|
+
const se_ScaleOutPolicy = (input, context) => {
|
|
1264
1250
|
return {
|
|
1265
1251
|
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1266
1252
|
};
|
|
1267
1253
|
};
|
|
1268
|
-
const
|
|
1254
|
+
const se_ScaleOutPolicyUpdate = (input, context) => {
|
|
1269
1255
|
return {
|
|
1270
1256
|
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1271
1257
|
};
|
|
1272
1258
|
};
|
|
1273
|
-
const
|
|
1259
|
+
const se_Vpc = (input, context) => {
|
|
1274
1260
|
return {
|
|
1275
|
-
...(input.securityGroups != null && {
|
|
1276
|
-
|
|
1277
|
-
}),
|
|
1278
|
-
...(input.subnets != null && { subnets: serializeAws_restJson1__listOf__string(input.subnets, context) }),
|
|
1261
|
+
...(input.securityGroups != null && { securityGroups: se___listOf__string(input.securityGroups, context) }),
|
|
1262
|
+
...(input.subnets != null && { subnets: se___listOf__string(input.subnets, context) }),
|
|
1279
1263
|
};
|
|
1280
1264
|
};
|
|
1281
|
-
const
|
|
1265
|
+
const se_WorkerConfiguration = (input, context) => {
|
|
1282
1266
|
return {
|
|
1283
1267
|
...(input.revision != null && { revision: input.revision }),
|
|
1284
1268
|
...(input.workerConfigurationArn != null && { workerConfigurationArn: input.workerConfigurationArn }),
|
|
1285
1269
|
};
|
|
1286
1270
|
};
|
|
1287
|
-
const
|
|
1271
|
+
const se_WorkerLogDelivery = (input, context) => {
|
|
1288
1272
|
return {
|
|
1289
1273
|
...(input.cloudWatchLogs != null && {
|
|
1290
|
-
cloudWatchLogs:
|
|
1274
|
+
cloudWatchLogs: se_CloudWatchLogsLogDelivery(input.cloudWatchLogs, context),
|
|
1291
1275
|
}),
|
|
1292
|
-
...(input.firehose != null && { firehose:
|
|
1293
|
-
...(input.s3 != null && { s3:
|
|
1276
|
+
...(input.firehose != null && { firehose: se_FirehoseLogDelivery(input.firehose, context) }),
|
|
1277
|
+
...(input.s3 != null && { s3: se_S3LogDelivery(input.s3, context) }),
|
|
1294
1278
|
};
|
|
1295
1279
|
};
|
|
1296
|
-
const
|
|
1280
|
+
const de___listOf__string = (output, context) => {
|
|
1297
1281
|
const retVal = (output || [])
|
|
1298
1282
|
.filter((e) => e != null)
|
|
1299
1283
|
.map((entry) => {
|
|
@@ -1304,51 +1288,51 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
1304
1288
|
});
|
|
1305
1289
|
return retVal;
|
|
1306
1290
|
};
|
|
1307
|
-
const
|
|
1291
|
+
const de___listOfConnectorSummary = (output, context) => {
|
|
1308
1292
|
const retVal = (output || [])
|
|
1309
1293
|
.filter((e) => e != null)
|
|
1310
1294
|
.map((entry) => {
|
|
1311
1295
|
if (entry === null) {
|
|
1312
1296
|
return null;
|
|
1313
1297
|
}
|
|
1314
|
-
return
|
|
1298
|
+
return de_ConnectorSummary(entry, context);
|
|
1315
1299
|
});
|
|
1316
1300
|
return retVal;
|
|
1317
1301
|
};
|
|
1318
|
-
const
|
|
1302
|
+
const de___listOfCustomPluginSummary = (output, context) => {
|
|
1319
1303
|
const retVal = (output || [])
|
|
1320
1304
|
.filter((e) => e != null)
|
|
1321
1305
|
.map((entry) => {
|
|
1322
1306
|
if (entry === null) {
|
|
1323
1307
|
return null;
|
|
1324
1308
|
}
|
|
1325
|
-
return
|
|
1309
|
+
return de_CustomPluginSummary(entry, context);
|
|
1326
1310
|
});
|
|
1327
1311
|
return retVal;
|
|
1328
1312
|
};
|
|
1329
|
-
const
|
|
1313
|
+
const de___listOfPluginDescription = (output, context) => {
|
|
1330
1314
|
const retVal = (output || [])
|
|
1331
1315
|
.filter((e) => e != null)
|
|
1332
1316
|
.map((entry) => {
|
|
1333
1317
|
if (entry === null) {
|
|
1334
1318
|
return null;
|
|
1335
1319
|
}
|
|
1336
|
-
return
|
|
1320
|
+
return de_PluginDescription(entry, context);
|
|
1337
1321
|
});
|
|
1338
1322
|
return retVal;
|
|
1339
1323
|
};
|
|
1340
|
-
const
|
|
1324
|
+
const de___listOfWorkerConfigurationSummary = (output, context) => {
|
|
1341
1325
|
const retVal = (output || [])
|
|
1342
1326
|
.filter((e) => e != null)
|
|
1343
1327
|
.map((entry) => {
|
|
1344
1328
|
if (entry === null) {
|
|
1345
1329
|
return null;
|
|
1346
1330
|
}
|
|
1347
|
-
return
|
|
1331
|
+
return de_WorkerConfigurationSummary(entry, context);
|
|
1348
1332
|
});
|
|
1349
1333
|
return retVal;
|
|
1350
1334
|
};
|
|
1351
|
-
const
|
|
1335
|
+
const de___sensitive__mapOf__string = (output, context) => {
|
|
1352
1336
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1353
1337
|
if (value === null) {
|
|
1354
1338
|
return acc;
|
|
@@ -1357,201 +1341,179 @@ const deserializeAws_restJson1__sensitive__mapOf__string = (output, context) =>
|
|
|
1357
1341
|
return acc;
|
|
1358
1342
|
}, {});
|
|
1359
1343
|
};
|
|
1360
|
-
const
|
|
1344
|
+
const de_ApacheKafkaClusterDescription = (output, context) => {
|
|
1361
1345
|
return {
|
|
1362
1346
|
bootstrapServers: __expectString(output.bootstrapServers),
|
|
1363
|
-
vpc: output.vpc != null ?
|
|
1347
|
+
vpc: output.vpc != null ? de_VpcDescription(output.vpc, context) : undefined,
|
|
1364
1348
|
};
|
|
1365
1349
|
};
|
|
1366
|
-
const
|
|
1350
|
+
const de_AutoScalingDescription = (output, context) => {
|
|
1367
1351
|
return {
|
|
1368
1352
|
maxWorkerCount: __expectInt32(output.maxWorkerCount),
|
|
1369
1353
|
mcuCount: __expectInt32(output.mcuCount),
|
|
1370
1354
|
minWorkerCount: __expectInt32(output.minWorkerCount),
|
|
1371
|
-
scaleInPolicy: output.scaleInPolicy != null
|
|
1372
|
-
|
|
1373
|
-
: undefined,
|
|
1374
|
-
scaleOutPolicy: output.scaleOutPolicy != null
|
|
1375
|
-
? deserializeAws_restJson1ScaleOutPolicyDescription(output.scaleOutPolicy, context)
|
|
1376
|
-
: undefined,
|
|
1355
|
+
scaleInPolicy: output.scaleInPolicy != null ? de_ScaleInPolicyDescription(output.scaleInPolicy, context) : undefined,
|
|
1356
|
+
scaleOutPolicy: output.scaleOutPolicy != null ? de_ScaleOutPolicyDescription(output.scaleOutPolicy, context) : undefined,
|
|
1377
1357
|
};
|
|
1378
1358
|
};
|
|
1379
|
-
const
|
|
1359
|
+
const de_CapacityDescription = (output, context) => {
|
|
1380
1360
|
return {
|
|
1381
|
-
autoScaling: output.autoScaling != null
|
|
1382
|
-
? deserializeAws_restJson1AutoScalingDescription(output.autoScaling, context)
|
|
1383
|
-
: undefined,
|
|
1361
|
+
autoScaling: output.autoScaling != null ? de_AutoScalingDescription(output.autoScaling, context) : undefined,
|
|
1384
1362
|
provisionedCapacity: output.provisionedCapacity != null
|
|
1385
|
-
?
|
|
1363
|
+
? de_ProvisionedCapacityDescription(output.provisionedCapacity, context)
|
|
1386
1364
|
: undefined,
|
|
1387
1365
|
};
|
|
1388
1366
|
};
|
|
1389
|
-
const
|
|
1367
|
+
const de_CloudWatchLogsLogDeliveryDescription = (output, context) => {
|
|
1390
1368
|
return {
|
|
1391
1369
|
enabled: __expectBoolean(output.enabled),
|
|
1392
1370
|
logGroup: __expectString(output.logGroup),
|
|
1393
1371
|
};
|
|
1394
1372
|
};
|
|
1395
|
-
const
|
|
1373
|
+
const de_ConnectorSummary = (output, context) => {
|
|
1396
1374
|
return {
|
|
1397
|
-
capacity: output.capacity != null ?
|
|
1375
|
+
capacity: output.capacity != null ? de_CapacityDescription(output.capacity, context) : undefined,
|
|
1398
1376
|
connectorArn: __expectString(output.connectorArn),
|
|
1399
1377
|
connectorDescription: __expectString(output.connectorDescription),
|
|
1400
1378
|
connectorName: __expectString(output.connectorName),
|
|
1401
1379
|
connectorState: __expectString(output.connectorState),
|
|
1402
1380
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
1403
1381
|
currentVersion: __expectString(output.currentVersion),
|
|
1404
|
-
kafkaCluster: output.kafkaCluster != null
|
|
1405
|
-
? deserializeAws_restJson1KafkaClusterDescription(output.kafkaCluster, context)
|
|
1406
|
-
: undefined,
|
|
1382
|
+
kafkaCluster: output.kafkaCluster != null ? de_KafkaClusterDescription(output.kafkaCluster, context) : undefined,
|
|
1407
1383
|
kafkaClusterClientAuthentication: output.kafkaClusterClientAuthentication != null
|
|
1408
|
-
?
|
|
1384
|
+
? de_KafkaClusterClientAuthenticationDescription(output.kafkaClusterClientAuthentication, context)
|
|
1409
1385
|
: undefined,
|
|
1410
1386
|
kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit != null
|
|
1411
|
-
?
|
|
1387
|
+
? de_KafkaClusterEncryptionInTransitDescription(output.kafkaClusterEncryptionInTransit, context)
|
|
1412
1388
|
: undefined,
|
|
1413
1389
|
kafkaConnectVersion: __expectString(output.kafkaConnectVersion),
|
|
1414
|
-
logDelivery: output.logDelivery != null
|
|
1415
|
-
|
|
1416
|
-
: undefined,
|
|
1417
|
-
plugins: output.plugins != null ? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context) : undefined,
|
|
1390
|
+
logDelivery: output.logDelivery != null ? de_LogDeliveryDescription(output.logDelivery, context) : undefined,
|
|
1391
|
+
plugins: output.plugins != null ? de___listOfPluginDescription(output.plugins, context) : undefined,
|
|
1418
1392
|
serviceExecutionRoleArn: __expectString(output.serviceExecutionRoleArn),
|
|
1419
1393
|
workerConfiguration: output.workerConfiguration != null
|
|
1420
|
-
?
|
|
1394
|
+
? de_WorkerConfigurationDescription(output.workerConfiguration, context)
|
|
1421
1395
|
: undefined,
|
|
1422
1396
|
};
|
|
1423
1397
|
};
|
|
1424
|
-
const
|
|
1398
|
+
const de_CustomPluginDescription = (output, context) => {
|
|
1425
1399
|
return {
|
|
1426
1400
|
customPluginArn: __expectString(output.customPluginArn),
|
|
1427
1401
|
revision: __expectLong(output.revision),
|
|
1428
1402
|
};
|
|
1429
1403
|
};
|
|
1430
|
-
const
|
|
1404
|
+
const de_CustomPluginFileDescription = (output, context) => {
|
|
1431
1405
|
return {
|
|
1432
1406
|
fileMd5: __expectString(output.fileMd5),
|
|
1433
1407
|
fileSize: __expectLong(output.fileSize),
|
|
1434
1408
|
};
|
|
1435
1409
|
};
|
|
1436
|
-
const
|
|
1410
|
+
const de_CustomPluginLocationDescription = (output, context) => {
|
|
1437
1411
|
return {
|
|
1438
|
-
s3Location: output.s3Location != null ?
|
|
1412
|
+
s3Location: output.s3Location != null ? de_S3LocationDescription(output.s3Location, context) : undefined,
|
|
1439
1413
|
};
|
|
1440
1414
|
};
|
|
1441
|
-
const
|
|
1415
|
+
const de_CustomPluginRevisionSummary = (output, context) => {
|
|
1442
1416
|
return {
|
|
1443
1417
|
contentType: __expectString(output.contentType),
|
|
1444
1418
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
1445
1419
|
description: __expectString(output.description),
|
|
1446
|
-
fileDescription: output.fileDescription != null
|
|
1447
|
-
|
|
1448
|
-
: undefined,
|
|
1449
|
-
location: output.location != null
|
|
1450
|
-
? deserializeAws_restJson1CustomPluginLocationDescription(output.location, context)
|
|
1451
|
-
: undefined,
|
|
1420
|
+
fileDescription: output.fileDescription != null ? de_CustomPluginFileDescription(output.fileDescription, context) : undefined,
|
|
1421
|
+
location: output.location != null ? de_CustomPluginLocationDescription(output.location, context) : undefined,
|
|
1452
1422
|
revision: __expectLong(output.revision),
|
|
1453
1423
|
};
|
|
1454
1424
|
};
|
|
1455
|
-
const
|
|
1425
|
+
const de_CustomPluginSummary = (output, context) => {
|
|
1456
1426
|
return {
|
|
1457
1427
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
1458
1428
|
customPluginArn: __expectString(output.customPluginArn),
|
|
1459
1429
|
customPluginState: __expectString(output.customPluginState),
|
|
1460
1430
|
description: __expectString(output.description),
|
|
1461
|
-
latestRevision: output.latestRevision != null
|
|
1462
|
-
? deserializeAws_restJson1CustomPluginRevisionSummary(output.latestRevision, context)
|
|
1463
|
-
: undefined,
|
|
1431
|
+
latestRevision: output.latestRevision != null ? de_CustomPluginRevisionSummary(output.latestRevision, context) : undefined,
|
|
1464
1432
|
name: __expectString(output.name),
|
|
1465
1433
|
};
|
|
1466
1434
|
};
|
|
1467
|
-
const
|
|
1435
|
+
const de_FirehoseLogDeliveryDescription = (output, context) => {
|
|
1468
1436
|
return {
|
|
1469
1437
|
deliveryStream: __expectString(output.deliveryStream),
|
|
1470
1438
|
enabled: __expectBoolean(output.enabled),
|
|
1471
1439
|
};
|
|
1472
1440
|
};
|
|
1473
|
-
const
|
|
1441
|
+
const de_KafkaClusterClientAuthenticationDescription = (output, context) => {
|
|
1474
1442
|
return {
|
|
1475
1443
|
authenticationType: __expectString(output.authenticationType),
|
|
1476
1444
|
};
|
|
1477
1445
|
};
|
|
1478
|
-
const
|
|
1446
|
+
const de_KafkaClusterDescription = (output, context) => {
|
|
1479
1447
|
return {
|
|
1480
1448
|
apacheKafkaCluster: output.apacheKafkaCluster != null
|
|
1481
|
-
?
|
|
1449
|
+
? de_ApacheKafkaClusterDescription(output.apacheKafkaCluster, context)
|
|
1482
1450
|
: undefined,
|
|
1483
1451
|
};
|
|
1484
1452
|
};
|
|
1485
|
-
const
|
|
1453
|
+
const de_KafkaClusterEncryptionInTransitDescription = (output, context) => {
|
|
1486
1454
|
return {
|
|
1487
1455
|
encryptionType: __expectString(output.encryptionType),
|
|
1488
1456
|
};
|
|
1489
1457
|
};
|
|
1490
|
-
const
|
|
1458
|
+
const de_LogDeliveryDescription = (output, context) => {
|
|
1491
1459
|
return {
|
|
1492
|
-
workerLogDelivery: output.workerLogDelivery != null
|
|
1493
|
-
? deserializeAws_restJson1WorkerLogDeliveryDescription(output.workerLogDelivery, context)
|
|
1494
|
-
: undefined,
|
|
1460
|
+
workerLogDelivery: output.workerLogDelivery != null ? de_WorkerLogDeliveryDescription(output.workerLogDelivery, context) : undefined,
|
|
1495
1461
|
};
|
|
1496
1462
|
};
|
|
1497
|
-
const
|
|
1463
|
+
const de_PluginDescription = (output, context) => {
|
|
1498
1464
|
return {
|
|
1499
|
-
customPlugin: output.customPlugin != null
|
|
1500
|
-
? deserializeAws_restJson1CustomPluginDescription(output.customPlugin, context)
|
|
1501
|
-
: undefined,
|
|
1465
|
+
customPlugin: output.customPlugin != null ? de_CustomPluginDescription(output.customPlugin, context) : undefined,
|
|
1502
1466
|
};
|
|
1503
1467
|
};
|
|
1504
|
-
const
|
|
1468
|
+
const de_ProvisionedCapacityDescription = (output, context) => {
|
|
1505
1469
|
return {
|
|
1506
1470
|
mcuCount: __expectInt32(output.mcuCount),
|
|
1507
1471
|
workerCount: __expectInt32(output.workerCount),
|
|
1508
1472
|
};
|
|
1509
1473
|
};
|
|
1510
|
-
const
|
|
1474
|
+
const de_S3LocationDescription = (output, context) => {
|
|
1511
1475
|
return {
|
|
1512
1476
|
bucketArn: __expectString(output.bucketArn),
|
|
1513
1477
|
fileKey: __expectString(output.fileKey),
|
|
1514
1478
|
objectVersion: __expectString(output.objectVersion),
|
|
1515
1479
|
};
|
|
1516
1480
|
};
|
|
1517
|
-
const
|
|
1481
|
+
const de_S3LogDeliveryDescription = (output, context) => {
|
|
1518
1482
|
return {
|
|
1519
1483
|
bucket: __expectString(output.bucket),
|
|
1520
1484
|
enabled: __expectBoolean(output.enabled),
|
|
1521
1485
|
prefix: __expectString(output.prefix),
|
|
1522
1486
|
};
|
|
1523
1487
|
};
|
|
1524
|
-
const
|
|
1488
|
+
const de_ScaleInPolicyDescription = (output, context) => {
|
|
1525
1489
|
return {
|
|
1526
1490
|
cpuUtilizationPercentage: __expectInt32(output.cpuUtilizationPercentage),
|
|
1527
1491
|
};
|
|
1528
1492
|
};
|
|
1529
|
-
const
|
|
1493
|
+
const de_ScaleOutPolicyDescription = (output, context) => {
|
|
1530
1494
|
return {
|
|
1531
1495
|
cpuUtilizationPercentage: __expectInt32(output.cpuUtilizationPercentage),
|
|
1532
1496
|
};
|
|
1533
1497
|
};
|
|
1534
|
-
const
|
|
1498
|
+
const de_StateDescription = (output, context) => {
|
|
1535
1499
|
return {
|
|
1536
1500
|
code: __expectString(output.code),
|
|
1537
1501
|
message: __expectString(output.message),
|
|
1538
1502
|
};
|
|
1539
1503
|
};
|
|
1540
|
-
const
|
|
1504
|
+
const de_VpcDescription = (output, context) => {
|
|
1541
1505
|
return {
|
|
1542
|
-
securityGroups: output.securityGroups != null
|
|
1543
|
-
|
|
1544
|
-
: undefined,
|
|
1545
|
-
subnets: output.subnets != null ? deserializeAws_restJson1__listOf__string(output.subnets, context) : undefined,
|
|
1506
|
+
securityGroups: output.securityGroups != null ? de___listOf__string(output.securityGroups, context) : undefined,
|
|
1507
|
+
subnets: output.subnets != null ? de___listOf__string(output.subnets, context) : undefined,
|
|
1546
1508
|
};
|
|
1547
1509
|
};
|
|
1548
|
-
const
|
|
1510
|
+
const de_WorkerConfigurationDescription = (output, context) => {
|
|
1549
1511
|
return {
|
|
1550
1512
|
revision: __expectLong(output.revision),
|
|
1551
1513
|
workerConfigurationArn: __expectString(output.workerConfigurationArn),
|
|
1552
1514
|
};
|
|
1553
1515
|
};
|
|
1554
|
-
const
|
|
1516
|
+
const de_WorkerConfigurationRevisionDescription = (output, context) => {
|
|
1555
1517
|
return {
|
|
1556
1518
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
1557
1519
|
description: __expectString(output.description),
|
|
@@ -1559,33 +1521,29 @@ const deserializeAws_restJson1WorkerConfigurationRevisionDescription = (output,
|
|
|
1559
1521
|
revision: __expectLong(output.revision),
|
|
1560
1522
|
};
|
|
1561
1523
|
};
|
|
1562
|
-
const
|
|
1524
|
+
const de_WorkerConfigurationRevisionSummary = (output, context) => {
|
|
1563
1525
|
return {
|
|
1564
1526
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
1565
1527
|
description: __expectString(output.description),
|
|
1566
1528
|
revision: __expectLong(output.revision),
|
|
1567
1529
|
};
|
|
1568
1530
|
};
|
|
1569
|
-
const
|
|
1531
|
+
const de_WorkerConfigurationSummary = (output, context) => {
|
|
1570
1532
|
return {
|
|
1571
1533
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
|
|
1572
1534
|
description: __expectString(output.description),
|
|
1573
|
-
latestRevision: output.latestRevision != null
|
|
1574
|
-
? deserializeAws_restJson1WorkerConfigurationRevisionSummary(output.latestRevision, context)
|
|
1575
|
-
: undefined,
|
|
1535
|
+
latestRevision: output.latestRevision != null ? de_WorkerConfigurationRevisionSummary(output.latestRevision, context) : undefined,
|
|
1576
1536
|
name: __expectString(output.name),
|
|
1577
1537
|
workerConfigurationArn: __expectString(output.workerConfigurationArn),
|
|
1578
1538
|
};
|
|
1579
1539
|
};
|
|
1580
|
-
const
|
|
1540
|
+
const de_WorkerLogDeliveryDescription = (output, context) => {
|
|
1581
1541
|
return {
|
|
1582
1542
|
cloudWatchLogs: output.cloudWatchLogs != null
|
|
1583
|
-
?
|
|
1584
|
-
: undefined,
|
|
1585
|
-
firehose: output.firehose != null
|
|
1586
|
-
? deserializeAws_restJson1FirehoseLogDeliveryDescription(output.firehose, context)
|
|
1543
|
+
? de_CloudWatchLogsLogDeliveryDescription(output.cloudWatchLogs, context)
|
|
1587
1544
|
: undefined,
|
|
1588
|
-
|
|
1545
|
+
firehose: output.firehose != null ? de_FirehoseLogDeliveryDescription(output.firehose, context) : undefined,
|
|
1546
|
+
s3: output.s3 != null ? de_S3LogDeliveryDescription(output.s3, context) : undefined,
|
|
1589
1547
|
};
|
|
1590
1548
|
};
|
|
1591
1549
|
const deserializeMetadata = (output) => ({
|