@aws-sdk/client-kafkaconnect 3.312.0 → 3.316.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/KafkaConnect.js +16 -168
- package/dist-cjs/protocols/Aws_restJson1.js +237 -681
- package/dist-es/KafkaConnect.js +16 -168
- package/dist-es/protocols/Aws_restJson1.js +213 -657
- package/dist-types/KafkaConnect.d.ts +19 -31
- package/dist-types/ts3.4/KafkaConnect.d.ts +4 -1
- package/package.json +6 -6
|
@@ -12,28 +12,20 @@ const se_CreateConnectorCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...(input.kafkaConnectVersion != null && { kafkaConnectVersion: input.kafkaConnectVersion }),
|
|
30
|
-
...(input.logDelivery != null && { logDelivery: se_LogDelivery(input.logDelivery, context) }),
|
|
31
|
-
...(input.plugins != null && { plugins: se___listOfPlugin(input.plugins, context) }),
|
|
32
|
-
...(input.serviceExecutionRoleArn != null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn }),
|
|
33
|
-
...(input.workerConfiguration != null && {
|
|
34
|
-
workerConfiguration: se_WorkerConfiguration(input.workerConfiguration, context),
|
|
35
|
-
}),
|
|
36
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
capacity: (_) => (0, smithy_client_1._json)(_),
|
|
17
|
+
connectorConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
18
|
+
connectorDescription: [],
|
|
19
|
+
connectorName: [],
|
|
20
|
+
kafkaCluster: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
+
kafkaClusterClientAuthentication: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
+
kafkaClusterEncryptionInTransit: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
+
kafkaConnectVersion: [],
|
|
24
|
+
logDelivery: (_) => (0, smithy_client_1._json)(_),
|
|
25
|
+
plugins: (_) => (0, smithy_client_1._json)(_),
|
|
26
|
+
serviceExecutionRoleArn: [],
|
|
27
|
+
workerConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
28
|
+
}));
|
|
37
29
|
return new protocol_http_1.HttpRequest({
|
|
38
30
|
protocol,
|
|
39
31
|
hostname,
|
|
@@ -52,12 +44,12 @@ const se_CreateCustomPluginCommand = async (input, context) => {
|
|
|
52
44
|
};
|
|
53
45
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins";
|
|
54
46
|
let body;
|
|
55
|
-
body = JSON.stringify({
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
48
|
+
contentType: [],
|
|
49
|
+
description: [],
|
|
50
|
+
location: (_) => (0, smithy_client_1._json)(_),
|
|
51
|
+
name: [],
|
|
52
|
+
}));
|
|
61
53
|
return new protocol_http_1.HttpRequest({
|
|
62
54
|
protocol,
|
|
63
55
|
hostname,
|
|
@@ -76,11 +68,11 @@ const se_CreateWorkerConfigurationCommand = async (input, context) => {
|
|
|
76
68
|
};
|
|
77
69
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/worker-configurations";
|
|
78
70
|
let body;
|
|
79
|
-
body = JSON.stringify({
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
});
|
|
71
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
72
|
+
description: [],
|
|
73
|
+
name: [],
|
|
74
|
+
propertiesFileContent: [],
|
|
75
|
+
}));
|
|
84
76
|
return new protocol_http_1.HttpRequest({
|
|
85
77
|
protocol,
|
|
86
78
|
hostname,
|
|
@@ -97,7 +89,7 @@ const se_DeleteConnectorCommand = async (input, context) => {
|
|
|
97
89
|
const headers = {};
|
|
98
90
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors/{connectorArn}";
|
|
99
91
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "connectorArn", () => input.connectorArn, "{connectorArn}", false);
|
|
100
|
-
const query = map({
|
|
92
|
+
const query = (0, smithy_client_1.map)({
|
|
101
93
|
currentVersion: [, input.currentVersion],
|
|
102
94
|
});
|
|
103
95
|
let body;
|
|
@@ -186,7 +178,7 @@ const se_ListConnectorsCommand = async (input, context) => {
|
|
|
186
178
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
187
179
|
const headers = {};
|
|
188
180
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors";
|
|
189
|
-
const query = map({
|
|
181
|
+
const query = (0, smithy_client_1.map)({
|
|
190
182
|
connectorNamePrefix: [, input.connectorNamePrefix],
|
|
191
183
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
192
184
|
nextToken: [, input.nextToken],
|
|
@@ -208,7 +200,7 @@ const se_ListCustomPluginsCommand = async (input, context) => {
|
|
|
208
200
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
201
|
const headers = {};
|
|
210
202
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins";
|
|
211
|
-
const query = map({
|
|
203
|
+
const query = (0, smithy_client_1.map)({
|
|
212
204
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
213
205
|
nextToken: [, input.nextToken],
|
|
214
206
|
});
|
|
@@ -229,7 +221,7 @@ const se_ListWorkerConfigurationsCommand = async (input, context) => {
|
|
|
229
221
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
230
222
|
const headers = {};
|
|
231
223
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/worker-configurations";
|
|
232
|
-
const query = map({
|
|
224
|
+
const query = (0, smithy_client_1.map)({
|
|
233
225
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
234
226
|
nextToken: [, input.nextToken],
|
|
235
227
|
});
|
|
@@ -253,13 +245,13 @@ const se_UpdateConnectorCommand = async (input, context) => {
|
|
|
253
245
|
};
|
|
254
246
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors/{connectorArn}";
|
|
255
247
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "connectorArn", () => input.connectorArn, "{connectorArn}", false);
|
|
256
|
-
const query = map({
|
|
248
|
+
const query = (0, smithy_client_1.map)({
|
|
257
249
|
currentVersion: [, (0, smithy_client_1.expectNonNull)(input.currentVersion, `currentVersion`)],
|
|
258
250
|
});
|
|
259
251
|
let body;
|
|
260
|
-
body = JSON.stringify({
|
|
261
|
-
|
|
262
|
-
});
|
|
252
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
253
|
+
capacity: (_) => (0, smithy_client_1._json)(_),
|
|
254
|
+
}));
|
|
263
255
|
return new protocol_http_1.HttpRequest({
|
|
264
256
|
protocol,
|
|
265
257
|
hostname,
|
|
@@ -276,19 +268,16 @@ const de_CreateConnectorCommand = async (output, context) => {
|
|
|
276
268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
277
269
|
return de_CreateConnectorCommandError(output, context);
|
|
278
270
|
}
|
|
279
|
-
const contents = map({
|
|
271
|
+
const contents = (0, smithy_client_1.map)({
|
|
280
272
|
$metadata: deserializeMetadata(output),
|
|
281
273
|
});
|
|
282
274
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
if (data.connectorState != null) {
|
|
290
|
-
contents.connectorState = (0, smithy_client_1.expectString)(data.connectorState);
|
|
291
|
-
}
|
|
275
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
276
|
+
connectorArn: smithy_client_1.expectString,
|
|
277
|
+
connectorName: smithy_client_1.expectString,
|
|
278
|
+
connectorState: smithy_client_1.expectString,
|
|
279
|
+
});
|
|
280
|
+
Object.assign(contents, doc);
|
|
292
281
|
return contents;
|
|
293
282
|
};
|
|
294
283
|
exports.de_CreateConnectorCommand = de_CreateConnectorCommand;
|
|
@@ -325,10 +314,9 @@ const de_CreateConnectorCommandError = async (output, context) => {
|
|
|
325
314
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
326
315
|
default:
|
|
327
316
|
const parsedBody = parsedOutput.body;
|
|
328
|
-
|
|
317
|
+
return throwDefaultError({
|
|
329
318
|
output,
|
|
330
319
|
parsedBody,
|
|
331
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
332
320
|
errorCode,
|
|
333
321
|
});
|
|
334
322
|
}
|
|
@@ -337,22 +325,17 @@ const de_CreateCustomPluginCommand = async (output, context) => {
|
|
|
337
325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
338
326
|
return de_CreateCustomPluginCommandError(output, context);
|
|
339
327
|
}
|
|
340
|
-
const contents = map({
|
|
328
|
+
const contents = (0, smithy_client_1.map)({
|
|
341
329
|
$metadata: deserializeMetadata(output),
|
|
342
330
|
});
|
|
343
331
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
352
|
-
}
|
|
353
|
-
if (data.revision != null) {
|
|
354
|
-
contents.revision = (0, smithy_client_1.expectLong)(data.revision);
|
|
355
|
-
}
|
|
332
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
333
|
+
customPluginArn: smithy_client_1.expectString,
|
|
334
|
+
customPluginState: smithy_client_1.expectString,
|
|
335
|
+
name: smithy_client_1.expectString,
|
|
336
|
+
revision: smithy_client_1.expectLong,
|
|
337
|
+
});
|
|
338
|
+
Object.assign(contents, doc);
|
|
356
339
|
return contents;
|
|
357
340
|
};
|
|
358
341
|
exports.de_CreateCustomPluginCommand = de_CreateCustomPluginCommand;
|
|
@@ -389,10 +372,9 @@ const de_CreateCustomPluginCommandError = async (output, context) => {
|
|
|
389
372
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
390
373
|
default:
|
|
391
374
|
const parsedBody = parsedOutput.body;
|
|
392
|
-
|
|
375
|
+
return throwDefaultError({
|
|
393
376
|
output,
|
|
394
377
|
parsedBody,
|
|
395
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
396
378
|
errorCode,
|
|
397
379
|
});
|
|
398
380
|
}
|
|
@@ -401,22 +383,17 @@ const de_CreateWorkerConfigurationCommand = async (output, context) => {
|
|
|
401
383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
402
384
|
return de_CreateWorkerConfigurationCommandError(output, context);
|
|
403
385
|
}
|
|
404
|
-
const contents = map({
|
|
386
|
+
const contents = (0, smithy_client_1.map)({
|
|
405
387
|
$metadata: deserializeMetadata(output),
|
|
406
388
|
});
|
|
407
389
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
416
|
-
}
|
|
417
|
-
if (data.workerConfigurationArn != null) {
|
|
418
|
-
contents.workerConfigurationArn = (0, smithy_client_1.expectString)(data.workerConfigurationArn);
|
|
419
|
-
}
|
|
390
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
391
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
392
|
+
latestRevision: (_) => de_WorkerConfigurationRevisionSummary(_, context),
|
|
393
|
+
name: smithy_client_1.expectString,
|
|
394
|
+
workerConfigurationArn: smithy_client_1.expectString,
|
|
395
|
+
});
|
|
396
|
+
Object.assign(contents, doc);
|
|
420
397
|
return contents;
|
|
421
398
|
};
|
|
422
399
|
exports.de_CreateWorkerConfigurationCommand = de_CreateWorkerConfigurationCommand;
|
|
@@ -453,10 +430,9 @@ const de_CreateWorkerConfigurationCommandError = async (output, context) => {
|
|
|
453
430
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
454
431
|
default:
|
|
455
432
|
const parsedBody = parsedOutput.body;
|
|
456
|
-
|
|
433
|
+
return throwDefaultError({
|
|
457
434
|
output,
|
|
458
435
|
parsedBody,
|
|
459
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
460
436
|
errorCode,
|
|
461
437
|
});
|
|
462
438
|
}
|
|
@@ -465,16 +441,15 @@ const de_DeleteConnectorCommand = async (output, context) => {
|
|
|
465
441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
466
442
|
return de_DeleteConnectorCommandError(output, context);
|
|
467
443
|
}
|
|
468
|
-
const contents = map({
|
|
444
|
+
const contents = (0, smithy_client_1.map)({
|
|
469
445
|
$metadata: deserializeMetadata(output),
|
|
470
446
|
});
|
|
471
447
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
448
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
449
|
+
connectorArn: smithy_client_1.expectString,
|
|
450
|
+
connectorState: smithy_client_1.expectString,
|
|
451
|
+
});
|
|
452
|
+
Object.assign(contents, doc);
|
|
478
453
|
return contents;
|
|
479
454
|
};
|
|
480
455
|
exports.de_DeleteConnectorCommand = de_DeleteConnectorCommand;
|
|
@@ -508,10 +483,9 @@ const de_DeleteConnectorCommandError = async (output, context) => {
|
|
|
508
483
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
509
484
|
default:
|
|
510
485
|
const parsedBody = parsedOutput.body;
|
|
511
|
-
|
|
486
|
+
return throwDefaultError({
|
|
512
487
|
output,
|
|
513
488
|
parsedBody,
|
|
514
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
515
489
|
errorCode,
|
|
516
490
|
});
|
|
517
491
|
}
|
|
@@ -520,16 +494,15 @@ const de_DeleteCustomPluginCommand = async (output, context) => {
|
|
|
520
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
521
495
|
return de_DeleteCustomPluginCommandError(output, context);
|
|
522
496
|
}
|
|
523
|
-
const contents = map({
|
|
497
|
+
const contents = (0, smithy_client_1.map)({
|
|
524
498
|
$metadata: deserializeMetadata(output),
|
|
525
499
|
});
|
|
526
500
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
501
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
502
|
+
customPluginArn: smithy_client_1.expectString,
|
|
503
|
+
customPluginState: smithy_client_1.expectString,
|
|
504
|
+
});
|
|
505
|
+
Object.assign(contents, doc);
|
|
533
506
|
return contents;
|
|
534
507
|
};
|
|
535
508
|
exports.de_DeleteCustomPluginCommand = de_DeleteCustomPluginCommand;
|
|
@@ -563,10 +536,9 @@ const de_DeleteCustomPluginCommandError = async (output, context) => {
|
|
|
563
536
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
564
537
|
default:
|
|
565
538
|
const parsedBody = parsedOutput.body;
|
|
566
|
-
|
|
539
|
+
return throwDefaultError({
|
|
567
540
|
output,
|
|
568
541
|
parsedBody,
|
|
569
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
570
542
|
errorCode,
|
|
571
543
|
});
|
|
572
544
|
}
|
|
@@ -575,61 +547,30 @@ const de_DescribeConnectorCommand = async (output, context) => {
|
|
|
575
547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
576
548
|
return de_DescribeConnectorCommandError(output, context);
|
|
577
549
|
}
|
|
578
|
-
const contents = map({
|
|
550
|
+
const contents = (0, smithy_client_1.map)({
|
|
579
551
|
$metadata: deserializeMetadata(output),
|
|
580
552
|
});
|
|
581
553
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}
|
|
603
|
-
if (data.currentVersion != null) {
|
|
604
|
-
contents.currentVersion = (0, smithy_client_1.expectString)(data.currentVersion);
|
|
605
|
-
}
|
|
606
|
-
if (data.kafkaCluster != null) {
|
|
607
|
-
contents.kafkaCluster = de_KafkaClusterDescription(data.kafkaCluster, context);
|
|
608
|
-
}
|
|
609
|
-
if (data.kafkaClusterClientAuthentication != null) {
|
|
610
|
-
contents.kafkaClusterClientAuthentication = de_KafkaClusterClientAuthenticationDescription(data.kafkaClusterClientAuthentication, context);
|
|
611
|
-
}
|
|
612
|
-
if (data.kafkaClusterEncryptionInTransit != null) {
|
|
613
|
-
contents.kafkaClusterEncryptionInTransit = de_KafkaClusterEncryptionInTransitDescription(data.kafkaClusterEncryptionInTransit, context);
|
|
614
|
-
}
|
|
615
|
-
if (data.kafkaConnectVersion != null) {
|
|
616
|
-
contents.kafkaConnectVersion = (0, smithy_client_1.expectString)(data.kafkaConnectVersion);
|
|
617
|
-
}
|
|
618
|
-
if (data.logDelivery != null) {
|
|
619
|
-
contents.logDelivery = de_LogDeliveryDescription(data.logDelivery, context);
|
|
620
|
-
}
|
|
621
|
-
if (data.plugins != null) {
|
|
622
|
-
contents.plugins = de___listOfPluginDescription(data.plugins, context);
|
|
623
|
-
}
|
|
624
|
-
if (data.serviceExecutionRoleArn != null) {
|
|
625
|
-
contents.serviceExecutionRoleArn = (0, smithy_client_1.expectString)(data.serviceExecutionRoleArn);
|
|
626
|
-
}
|
|
627
|
-
if (data.stateDescription != null) {
|
|
628
|
-
contents.stateDescription = de_StateDescription(data.stateDescription, context);
|
|
629
|
-
}
|
|
630
|
-
if (data.workerConfiguration != null) {
|
|
631
|
-
contents.workerConfiguration = de_WorkerConfigurationDescription(data.workerConfiguration, context);
|
|
632
|
-
}
|
|
554
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
555
|
+
capacity: smithy_client_1._json,
|
|
556
|
+
connectorArn: smithy_client_1.expectString,
|
|
557
|
+
connectorConfiguration: smithy_client_1._json,
|
|
558
|
+
connectorDescription: smithy_client_1.expectString,
|
|
559
|
+
connectorName: smithy_client_1.expectString,
|
|
560
|
+
connectorState: smithy_client_1.expectString,
|
|
561
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
562
|
+
currentVersion: smithy_client_1.expectString,
|
|
563
|
+
kafkaCluster: smithy_client_1._json,
|
|
564
|
+
kafkaClusterClientAuthentication: smithy_client_1._json,
|
|
565
|
+
kafkaClusterEncryptionInTransit: smithy_client_1._json,
|
|
566
|
+
kafkaConnectVersion: smithy_client_1.expectString,
|
|
567
|
+
logDelivery: smithy_client_1._json,
|
|
568
|
+
plugins: smithy_client_1._json,
|
|
569
|
+
serviceExecutionRoleArn: smithy_client_1.expectString,
|
|
570
|
+
stateDescription: smithy_client_1._json,
|
|
571
|
+
workerConfiguration: smithy_client_1._json,
|
|
572
|
+
});
|
|
573
|
+
Object.assign(contents, doc);
|
|
633
574
|
return contents;
|
|
634
575
|
};
|
|
635
576
|
exports.de_DescribeConnectorCommand = de_DescribeConnectorCommand;
|
|
@@ -663,10 +604,9 @@ const de_DescribeConnectorCommandError = async (output, context) => {
|
|
|
663
604
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
664
605
|
default:
|
|
665
606
|
const parsedBody = parsedOutput.body;
|
|
666
|
-
|
|
607
|
+
return throwDefaultError({
|
|
667
608
|
output,
|
|
668
609
|
parsedBody,
|
|
669
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
670
610
|
errorCode,
|
|
671
611
|
});
|
|
672
612
|
}
|
|
@@ -675,31 +615,20 @@ const de_DescribeCustomPluginCommand = async (output, context) => {
|
|
|
675
615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
676
616
|
return de_DescribeCustomPluginCommandError(output, context);
|
|
677
617
|
}
|
|
678
|
-
const contents = map({
|
|
618
|
+
const contents = (0, smithy_client_1.map)({
|
|
679
619
|
$metadata: deserializeMetadata(output),
|
|
680
620
|
});
|
|
681
621
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
693
|
-
}
|
|
694
|
-
if (data.latestRevision != null) {
|
|
695
|
-
contents.latestRevision = de_CustomPluginRevisionSummary(data.latestRevision, context);
|
|
696
|
-
}
|
|
697
|
-
if (data.name != null) {
|
|
698
|
-
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
699
|
-
}
|
|
700
|
-
if (data.stateDescription != null) {
|
|
701
|
-
contents.stateDescription = de_StateDescription(data.stateDescription, context);
|
|
702
|
-
}
|
|
622
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
623
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
624
|
+
customPluginArn: smithy_client_1.expectString,
|
|
625
|
+
customPluginState: smithy_client_1.expectString,
|
|
626
|
+
description: smithy_client_1.expectString,
|
|
627
|
+
latestRevision: (_) => de_CustomPluginRevisionSummary(_, context),
|
|
628
|
+
name: smithy_client_1.expectString,
|
|
629
|
+
stateDescription: smithy_client_1._json,
|
|
630
|
+
});
|
|
631
|
+
Object.assign(contents, doc);
|
|
703
632
|
return contents;
|
|
704
633
|
};
|
|
705
634
|
exports.de_DescribeCustomPluginCommand = de_DescribeCustomPluginCommand;
|
|
@@ -733,10 +662,9 @@ const de_DescribeCustomPluginCommandError = async (output, context) => {
|
|
|
733
662
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
734
663
|
default:
|
|
735
664
|
const parsedBody = parsedOutput.body;
|
|
736
|
-
|
|
665
|
+
return throwDefaultError({
|
|
737
666
|
output,
|
|
738
667
|
parsedBody,
|
|
739
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
740
668
|
errorCode,
|
|
741
669
|
});
|
|
742
670
|
}
|
|
@@ -745,25 +673,18 @@ const de_DescribeWorkerConfigurationCommand = async (output, context) => {
|
|
|
745
673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
746
674
|
return de_DescribeWorkerConfigurationCommandError(output, context);
|
|
747
675
|
}
|
|
748
|
-
const contents = map({
|
|
676
|
+
const contents = (0, smithy_client_1.map)({
|
|
749
677
|
$metadata: deserializeMetadata(output),
|
|
750
678
|
});
|
|
751
679
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
}
|
|
761
|
-
if (data.name != null) {
|
|
762
|
-
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
763
|
-
}
|
|
764
|
-
if (data.workerConfigurationArn != null) {
|
|
765
|
-
contents.workerConfigurationArn = (0, smithy_client_1.expectString)(data.workerConfigurationArn);
|
|
766
|
-
}
|
|
680
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
681
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
682
|
+
description: smithy_client_1.expectString,
|
|
683
|
+
latestRevision: (_) => de_WorkerConfigurationRevisionDescription(_, context),
|
|
684
|
+
name: smithy_client_1.expectString,
|
|
685
|
+
workerConfigurationArn: smithy_client_1.expectString,
|
|
686
|
+
});
|
|
687
|
+
Object.assign(contents, doc);
|
|
767
688
|
return contents;
|
|
768
689
|
};
|
|
769
690
|
exports.de_DescribeWorkerConfigurationCommand = de_DescribeWorkerConfigurationCommand;
|
|
@@ -797,10 +718,9 @@ const de_DescribeWorkerConfigurationCommandError = async (output, context) => {
|
|
|
797
718
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
798
719
|
default:
|
|
799
720
|
const parsedBody = parsedOutput.body;
|
|
800
|
-
|
|
721
|
+
return throwDefaultError({
|
|
801
722
|
output,
|
|
802
723
|
parsedBody,
|
|
803
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
804
724
|
errorCode,
|
|
805
725
|
});
|
|
806
726
|
}
|
|
@@ -809,16 +729,15 @@ const de_ListConnectorsCommand = async (output, context) => {
|
|
|
809
729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
810
730
|
return de_ListConnectorsCommandError(output, context);
|
|
811
731
|
}
|
|
812
|
-
const contents = map({
|
|
732
|
+
const contents = (0, smithy_client_1.map)({
|
|
813
733
|
$metadata: deserializeMetadata(output),
|
|
814
734
|
});
|
|
815
735
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
}
|
|
736
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
737
|
+
connectors: (_) => de___listOfConnectorSummary(_, context),
|
|
738
|
+
nextToken: smithy_client_1.expectString,
|
|
739
|
+
});
|
|
740
|
+
Object.assign(contents, doc);
|
|
822
741
|
return contents;
|
|
823
742
|
};
|
|
824
743
|
exports.de_ListConnectorsCommand = de_ListConnectorsCommand;
|
|
@@ -852,10 +771,9 @@ const de_ListConnectorsCommandError = async (output, context) => {
|
|
|
852
771
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
853
772
|
default:
|
|
854
773
|
const parsedBody = parsedOutput.body;
|
|
855
|
-
|
|
774
|
+
return throwDefaultError({
|
|
856
775
|
output,
|
|
857
776
|
parsedBody,
|
|
858
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
859
777
|
errorCode,
|
|
860
778
|
});
|
|
861
779
|
}
|
|
@@ -864,16 +782,15 @@ const de_ListCustomPluginsCommand = async (output, context) => {
|
|
|
864
782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
783
|
return de_ListCustomPluginsCommandError(output, context);
|
|
866
784
|
}
|
|
867
|
-
const contents = map({
|
|
785
|
+
const contents = (0, smithy_client_1.map)({
|
|
868
786
|
$metadata: deserializeMetadata(output),
|
|
869
787
|
});
|
|
870
788
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
}
|
|
789
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
790
|
+
customPlugins: (_) => de___listOfCustomPluginSummary(_, context),
|
|
791
|
+
nextToken: smithy_client_1.expectString,
|
|
792
|
+
});
|
|
793
|
+
Object.assign(contents, doc);
|
|
877
794
|
return contents;
|
|
878
795
|
};
|
|
879
796
|
exports.de_ListCustomPluginsCommand = de_ListCustomPluginsCommand;
|
|
@@ -907,10 +824,9 @@ const de_ListCustomPluginsCommandError = async (output, context) => {
|
|
|
907
824
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
908
825
|
default:
|
|
909
826
|
const parsedBody = parsedOutput.body;
|
|
910
|
-
|
|
827
|
+
return throwDefaultError({
|
|
911
828
|
output,
|
|
912
829
|
parsedBody,
|
|
913
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
914
830
|
errorCode,
|
|
915
831
|
});
|
|
916
832
|
}
|
|
@@ -919,16 +835,15 @@ const de_ListWorkerConfigurationsCommand = async (output, context) => {
|
|
|
919
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
920
836
|
return de_ListWorkerConfigurationsCommandError(output, context);
|
|
921
837
|
}
|
|
922
|
-
const contents = map({
|
|
838
|
+
const contents = (0, smithy_client_1.map)({
|
|
923
839
|
$metadata: deserializeMetadata(output),
|
|
924
840
|
});
|
|
925
841
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
}
|
|
842
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
843
|
+
nextToken: smithy_client_1.expectString,
|
|
844
|
+
workerConfigurations: (_) => de___listOfWorkerConfigurationSummary(_, context),
|
|
845
|
+
});
|
|
846
|
+
Object.assign(contents, doc);
|
|
932
847
|
return contents;
|
|
933
848
|
};
|
|
934
849
|
exports.de_ListWorkerConfigurationsCommand = de_ListWorkerConfigurationsCommand;
|
|
@@ -962,10 +877,9 @@ const de_ListWorkerConfigurationsCommandError = async (output, context) => {
|
|
|
962
877
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
963
878
|
default:
|
|
964
879
|
const parsedBody = parsedOutput.body;
|
|
965
|
-
|
|
880
|
+
return throwDefaultError({
|
|
966
881
|
output,
|
|
967
882
|
parsedBody,
|
|
968
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
969
883
|
errorCode,
|
|
970
884
|
});
|
|
971
885
|
}
|
|
@@ -974,16 +888,15 @@ const de_UpdateConnectorCommand = async (output, context) => {
|
|
|
974
888
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
975
889
|
return de_UpdateConnectorCommandError(output, context);
|
|
976
890
|
}
|
|
977
|
-
const contents = map({
|
|
891
|
+
const contents = (0, smithy_client_1.map)({
|
|
978
892
|
$metadata: deserializeMetadata(output),
|
|
979
893
|
});
|
|
980
894
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
}
|
|
895
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
896
|
+
connectorArn: smithy_client_1.expectString,
|
|
897
|
+
connectorState: smithy_client_1.expectString,
|
|
898
|
+
});
|
|
899
|
+
Object.assign(contents, doc);
|
|
987
900
|
return contents;
|
|
988
901
|
};
|
|
989
902
|
exports.de_UpdateConnectorCommand = de_UpdateConnectorCommand;
|
|
@@ -1017,21 +930,21 @@ const de_UpdateConnectorCommandError = async (output, context) => {
|
|
|
1017
930
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1018
931
|
default:
|
|
1019
932
|
const parsedBody = parsedOutput.body;
|
|
1020
|
-
|
|
933
|
+
return throwDefaultError({
|
|
1021
934
|
output,
|
|
1022
935
|
parsedBody,
|
|
1023
|
-
exceptionCtor: KafkaConnectServiceException_1.KafkaConnectServiceException,
|
|
1024
936
|
errorCode,
|
|
1025
937
|
});
|
|
1026
938
|
}
|
|
1027
939
|
};
|
|
1028
|
-
const
|
|
940
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(KafkaConnectServiceException_1.KafkaConnectServiceException);
|
|
1029
941
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1030
|
-
const contents = map({});
|
|
942
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1031
943
|
const data = parsedOutput.body;
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
}
|
|
944
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
945
|
+
message: smithy_client_1.expectString,
|
|
946
|
+
});
|
|
947
|
+
Object.assign(contents, doc);
|
|
1035
948
|
const exception = new models_0_1.BadRequestException({
|
|
1036
949
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1037
950
|
...contents,
|
|
@@ -1039,11 +952,12 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1039
952
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1040
953
|
};
|
|
1041
954
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1042
|
-
const contents = map({});
|
|
955
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1043
956
|
const data = parsedOutput.body;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
}
|
|
957
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
958
|
+
message: smithy_client_1.expectString,
|
|
959
|
+
});
|
|
960
|
+
Object.assign(contents, doc);
|
|
1047
961
|
const exception = new models_0_1.ConflictException({
|
|
1048
962
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1049
963
|
...contents,
|
|
@@ -1051,11 +965,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1051
965
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1052
966
|
};
|
|
1053
967
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1054
|
-
const contents = map({});
|
|
968
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1055
969
|
const data = parsedOutput.body;
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
}
|
|
970
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
971
|
+
message: smithy_client_1.expectString,
|
|
972
|
+
});
|
|
973
|
+
Object.assign(contents, doc);
|
|
1059
974
|
const exception = new models_0_1.ForbiddenException({
|
|
1060
975
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1061
976
|
...contents,
|
|
@@ -1063,11 +978,12 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
1063
978
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1064
979
|
};
|
|
1065
980
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1066
|
-
const contents = map({});
|
|
981
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1067
982
|
const data = parsedOutput.body;
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
}
|
|
983
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
984
|
+
message: smithy_client_1.expectString,
|
|
985
|
+
});
|
|
986
|
+
Object.assign(contents, doc);
|
|
1071
987
|
const exception = new models_0_1.InternalServerErrorException({
|
|
1072
988
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1073
989
|
...contents,
|
|
@@ -1075,11 +991,12 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1075
991
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1076
992
|
};
|
|
1077
993
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1078
|
-
const contents = map({});
|
|
994
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1079
995
|
const data = parsedOutput.body;
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}
|
|
996
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
997
|
+
message: smithy_client_1.expectString,
|
|
998
|
+
});
|
|
999
|
+
Object.assign(contents, doc);
|
|
1083
1000
|
const exception = new models_0_1.NotFoundException({
|
|
1084
1001
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1085
1002
|
...contents,
|
|
@@ -1087,11 +1004,12 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1087
1004
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1088
1005
|
};
|
|
1089
1006
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1090
|
-
const contents = map({});
|
|
1007
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1091
1008
|
const data = parsedOutput.body;
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
}
|
|
1009
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1010
|
+
message: smithy_client_1.expectString,
|
|
1011
|
+
});
|
|
1012
|
+
Object.assign(contents, doc);
|
|
1095
1013
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
1096
1014
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1097
1015
|
...contents,
|
|
@@ -1099,11 +1017,12 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1099
1017
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1100
1018
|
};
|
|
1101
1019
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1102
|
-
const contents = map({});
|
|
1020
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1103
1021
|
const data = parsedOutput.body;
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
}
|
|
1022
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1023
|
+
message: smithy_client_1.expectString,
|
|
1024
|
+
});
|
|
1025
|
+
Object.assign(contents, doc);
|
|
1107
1026
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1108
1027
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1109
1028
|
...contents,
|
|
@@ -1111,217 +1030,22 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1111
1030
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1112
1031
|
};
|
|
1113
1032
|
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1114
|
-
const contents = map({});
|
|
1033
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1115
1034
|
const data = parsedOutput.body;
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
}
|
|
1035
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1036
|
+
message: smithy_client_1.expectString,
|
|
1037
|
+
});
|
|
1038
|
+
Object.assign(contents, doc);
|
|
1119
1039
|
const exception = new models_0_1.UnauthorizedException({
|
|
1120
1040
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1121
1041
|
...contents,
|
|
1122
1042
|
});
|
|
1123
1043
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1124
1044
|
};
|
|
1125
|
-
const se___listOf__string = (input, context) => {
|
|
1126
|
-
return input
|
|
1127
|
-
.filter((e) => e != null)
|
|
1128
|
-
.map((entry) => {
|
|
1129
|
-
return entry;
|
|
1130
|
-
});
|
|
1131
|
-
};
|
|
1132
|
-
const se___listOfPlugin = (input, context) => {
|
|
1133
|
-
return input
|
|
1134
|
-
.filter((e) => e != null)
|
|
1135
|
-
.map((entry) => {
|
|
1136
|
-
return se_Plugin(entry, context);
|
|
1137
|
-
});
|
|
1138
|
-
};
|
|
1139
|
-
const se___sensitive__mapOf__string = (input, context) => {
|
|
1140
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1141
|
-
if (value === null) {
|
|
1142
|
-
return acc;
|
|
1143
|
-
}
|
|
1144
|
-
acc[key] = value;
|
|
1145
|
-
return acc;
|
|
1146
|
-
}, {});
|
|
1147
|
-
};
|
|
1148
|
-
const se_ApacheKafkaCluster = (input, context) => {
|
|
1149
|
-
return {
|
|
1150
|
-
...(input.bootstrapServers != null && { bootstrapServers: input.bootstrapServers }),
|
|
1151
|
-
...(input.vpc != null && { vpc: se_Vpc(input.vpc, context) }),
|
|
1152
|
-
};
|
|
1153
|
-
};
|
|
1154
|
-
const se_AutoScaling = (input, context) => {
|
|
1155
|
-
return {
|
|
1156
|
-
...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
|
|
1157
|
-
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1158
|
-
...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
|
|
1159
|
-
...(input.scaleInPolicy != null && { scaleInPolicy: se_ScaleInPolicy(input.scaleInPolicy, context) }),
|
|
1160
|
-
...(input.scaleOutPolicy != null && { scaleOutPolicy: se_ScaleOutPolicy(input.scaleOutPolicy, context) }),
|
|
1161
|
-
};
|
|
1162
|
-
};
|
|
1163
|
-
const se_AutoScalingUpdate = (input, context) => {
|
|
1164
|
-
return {
|
|
1165
|
-
...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
|
|
1166
|
-
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1167
|
-
...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
|
|
1168
|
-
...(input.scaleInPolicy != null && { scaleInPolicy: se_ScaleInPolicyUpdate(input.scaleInPolicy, context) }),
|
|
1169
|
-
...(input.scaleOutPolicy != null && { scaleOutPolicy: se_ScaleOutPolicyUpdate(input.scaleOutPolicy, context) }),
|
|
1170
|
-
};
|
|
1171
|
-
};
|
|
1172
|
-
const se_Capacity = (input, context) => {
|
|
1173
|
-
return {
|
|
1174
|
-
...(input.autoScaling != null && { autoScaling: se_AutoScaling(input.autoScaling, context) }),
|
|
1175
|
-
...(input.provisionedCapacity != null && {
|
|
1176
|
-
provisionedCapacity: se_ProvisionedCapacity(input.provisionedCapacity, context),
|
|
1177
|
-
}),
|
|
1178
|
-
};
|
|
1179
|
-
};
|
|
1180
|
-
const se_CapacityUpdate = (input, context) => {
|
|
1181
|
-
return {
|
|
1182
|
-
...(input.autoScaling != null && { autoScaling: se_AutoScalingUpdate(input.autoScaling, context) }),
|
|
1183
|
-
...(input.provisionedCapacity != null && {
|
|
1184
|
-
provisionedCapacity: se_ProvisionedCapacityUpdate(input.provisionedCapacity, context),
|
|
1185
|
-
}),
|
|
1186
|
-
};
|
|
1187
|
-
};
|
|
1188
|
-
const se_CloudWatchLogsLogDelivery = (input, context) => {
|
|
1189
|
-
return {
|
|
1190
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1191
|
-
...(input.logGroup != null && { logGroup: input.logGroup }),
|
|
1192
|
-
};
|
|
1193
|
-
};
|
|
1194
|
-
const se_CustomPlugin = (input, context) => {
|
|
1195
|
-
return {
|
|
1196
|
-
...(input.customPluginArn != null && { customPluginArn: input.customPluginArn }),
|
|
1197
|
-
...(input.revision != null && { revision: input.revision }),
|
|
1198
|
-
};
|
|
1199
|
-
};
|
|
1200
|
-
const se_CustomPluginLocation = (input, context) => {
|
|
1201
|
-
return {
|
|
1202
|
-
...(input.s3Location != null && { s3Location: se_S3Location(input.s3Location, context) }),
|
|
1203
|
-
};
|
|
1204
|
-
};
|
|
1205
|
-
const se_FirehoseLogDelivery = (input, context) => {
|
|
1206
|
-
return {
|
|
1207
|
-
...(input.deliveryStream != null && { deliveryStream: input.deliveryStream }),
|
|
1208
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1209
|
-
};
|
|
1210
|
-
};
|
|
1211
|
-
const se_KafkaCluster = (input, context) => {
|
|
1212
|
-
return {
|
|
1213
|
-
...(input.apacheKafkaCluster != null && {
|
|
1214
|
-
apacheKafkaCluster: se_ApacheKafkaCluster(input.apacheKafkaCluster, context),
|
|
1215
|
-
}),
|
|
1216
|
-
};
|
|
1217
|
-
};
|
|
1218
|
-
const se_KafkaClusterClientAuthentication = (input, context) => {
|
|
1219
|
-
return {
|
|
1220
|
-
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
1221
|
-
};
|
|
1222
|
-
};
|
|
1223
|
-
const se_KafkaClusterEncryptionInTransit = (input, context) => {
|
|
1224
|
-
return {
|
|
1225
|
-
...(input.encryptionType != null && { encryptionType: input.encryptionType }),
|
|
1226
|
-
};
|
|
1227
|
-
};
|
|
1228
|
-
const se_LogDelivery = (input, context) => {
|
|
1229
|
-
return {
|
|
1230
|
-
...(input.workerLogDelivery != null && {
|
|
1231
|
-
workerLogDelivery: se_WorkerLogDelivery(input.workerLogDelivery, context),
|
|
1232
|
-
}),
|
|
1233
|
-
};
|
|
1234
|
-
};
|
|
1235
|
-
const se_Plugin = (input, context) => {
|
|
1236
|
-
return {
|
|
1237
|
-
...(input.customPlugin != null && { customPlugin: se_CustomPlugin(input.customPlugin, context) }),
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
const se_ProvisionedCapacity = (input, context) => {
|
|
1241
|
-
return {
|
|
1242
|
-
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1243
|
-
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1244
|
-
};
|
|
1245
|
-
};
|
|
1246
|
-
const se_ProvisionedCapacityUpdate = (input, context) => {
|
|
1247
|
-
return {
|
|
1248
|
-
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1249
|
-
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1250
|
-
};
|
|
1251
|
-
};
|
|
1252
|
-
const se_S3Location = (input, context) => {
|
|
1253
|
-
return {
|
|
1254
|
-
...(input.bucketArn != null && { bucketArn: input.bucketArn }),
|
|
1255
|
-
...(input.fileKey != null && { fileKey: input.fileKey }),
|
|
1256
|
-
...(input.objectVersion != null && { objectVersion: input.objectVersion }),
|
|
1257
|
-
};
|
|
1258
|
-
};
|
|
1259
|
-
const se_S3LogDelivery = (input, context) => {
|
|
1260
|
-
return {
|
|
1261
|
-
...(input.bucket != null && { bucket: input.bucket }),
|
|
1262
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1263
|
-
...(input.prefix != null && { prefix: input.prefix }),
|
|
1264
|
-
};
|
|
1265
|
-
};
|
|
1266
|
-
const se_ScaleInPolicy = (input, context) => {
|
|
1267
|
-
return {
|
|
1268
|
-
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1269
|
-
};
|
|
1270
|
-
};
|
|
1271
|
-
const se_ScaleInPolicyUpdate = (input, context) => {
|
|
1272
|
-
return {
|
|
1273
|
-
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1274
|
-
};
|
|
1275
|
-
};
|
|
1276
|
-
const se_ScaleOutPolicy = (input, context) => {
|
|
1277
|
-
return {
|
|
1278
|
-
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1279
|
-
};
|
|
1280
|
-
};
|
|
1281
|
-
const se_ScaleOutPolicyUpdate = (input, context) => {
|
|
1282
|
-
return {
|
|
1283
|
-
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1284
|
-
};
|
|
1285
|
-
};
|
|
1286
|
-
const se_Vpc = (input, context) => {
|
|
1287
|
-
return {
|
|
1288
|
-
...(input.securityGroups != null && { securityGroups: se___listOf__string(input.securityGroups, context) }),
|
|
1289
|
-
...(input.subnets != null && { subnets: se___listOf__string(input.subnets, context) }),
|
|
1290
|
-
};
|
|
1291
|
-
};
|
|
1292
|
-
const se_WorkerConfiguration = (input, context) => {
|
|
1293
|
-
return {
|
|
1294
|
-
...(input.revision != null && { revision: input.revision }),
|
|
1295
|
-
...(input.workerConfigurationArn != null && { workerConfigurationArn: input.workerConfigurationArn }),
|
|
1296
|
-
};
|
|
1297
|
-
};
|
|
1298
|
-
const se_WorkerLogDelivery = (input, context) => {
|
|
1299
|
-
return {
|
|
1300
|
-
...(input.cloudWatchLogs != null && {
|
|
1301
|
-
cloudWatchLogs: se_CloudWatchLogsLogDelivery(input.cloudWatchLogs, context),
|
|
1302
|
-
}),
|
|
1303
|
-
...(input.firehose != null && { firehose: se_FirehoseLogDelivery(input.firehose, context) }),
|
|
1304
|
-
...(input.s3 != null && { s3: se_S3LogDelivery(input.s3, context) }),
|
|
1305
|
-
};
|
|
1306
|
-
};
|
|
1307
|
-
const de___listOf__string = (output, context) => {
|
|
1308
|
-
const retVal = (output || [])
|
|
1309
|
-
.filter((e) => e != null)
|
|
1310
|
-
.map((entry) => {
|
|
1311
|
-
if (entry === null) {
|
|
1312
|
-
return null;
|
|
1313
|
-
}
|
|
1314
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1315
|
-
});
|
|
1316
|
-
return retVal;
|
|
1317
|
-
};
|
|
1318
1045
|
const de___listOfConnectorSummary = (output, context) => {
|
|
1319
1046
|
const retVal = (output || [])
|
|
1320
1047
|
.filter((e) => e != null)
|
|
1321
1048
|
.map((entry) => {
|
|
1322
|
-
if (entry === null) {
|
|
1323
|
-
return null;
|
|
1324
|
-
}
|
|
1325
1049
|
return de_ConnectorSummary(entry, context);
|
|
1326
1050
|
});
|
|
1327
1051
|
return retVal;
|
|
@@ -1330,248 +1054,80 @@ const de___listOfCustomPluginSummary = (output, context) => {
|
|
|
1330
1054
|
const retVal = (output || [])
|
|
1331
1055
|
.filter((e) => e != null)
|
|
1332
1056
|
.map((entry) => {
|
|
1333
|
-
if (entry === null) {
|
|
1334
|
-
return null;
|
|
1335
|
-
}
|
|
1336
1057
|
return de_CustomPluginSummary(entry, context);
|
|
1337
1058
|
});
|
|
1338
1059
|
return retVal;
|
|
1339
1060
|
};
|
|
1340
|
-
const de___listOfPluginDescription = (output, context) => {
|
|
1341
|
-
const retVal = (output || [])
|
|
1342
|
-
.filter((e) => e != null)
|
|
1343
|
-
.map((entry) => {
|
|
1344
|
-
if (entry === null) {
|
|
1345
|
-
return null;
|
|
1346
|
-
}
|
|
1347
|
-
return de_PluginDescription(entry, context);
|
|
1348
|
-
});
|
|
1349
|
-
return retVal;
|
|
1350
|
-
};
|
|
1351
1061
|
const de___listOfWorkerConfigurationSummary = (output, context) => {
|
|
1352
1062
|
const retVal = (output || [])
|
|
1353
1063
|
.filter((e) => e != null)
|
|
1354
1064
|
.map((entry) => {
|
|
1355
|
-
if (entry === null) {
|
|
1356
|
-
return null;
|
|
1357
|
-
}
|
|
1358
1065
|
return de_WorkerConfigurationSummary(entry, context);
|
|
1359
1066
|
});
|
|
1360
1067
|
return retVal;
|
|
1361
1068
|
};
|
|
1362
|
-
const de___sensitive__mapOf__string = (output, context) => {
|
|
1363
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1364
|
-
if (value === null) {
|
|
1365
|
-
return acc;
|
|
1366
|
-
}
|
|
1367
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1368
|
-
return acc;
|
|
1369
|
-
}, {});
|
|
1370
|
-
};
|
|
1371
|
-
const de_ApacheKafkaClusterDescription = (output, context) => {
|
|
1372
|
-
return {
|
|
1373
|
-
bootstrapServers: (0, smithy_client_1.expectString)(output.bootstrapServers),
|
|
1374
|
-
vpc: output.vpc != null ? de_VpcDescription(output.vpc, context) : undefined,
|
|
1375
|
-
};
|
|
1376
|
-
};
|
|
1377
|
-
const de_AutoScalingDescription = (output, context) => {
|
|
1378
|
-
return {
|
|
1379
|
-
maxWorkerCount: (0, smithy_client_1.expectInt32)(output.maxWorkerCount),
|
|
1380
|
-
mcuCount: (0, smithy_client_1.expectInt32)(output.mcuCount),
|
|
1381
|
-
minWorkerCount: (0, smithy_client_1.expectInt32)(output.minWorkerCount),
|
|
1382
|
-
scaleInPolicy: output.scaleInPolicy != null ? de_ScaleInPolicyDescription(output.scaleInPolicy, context) : undefined,
|
|
1383
|
-
scaleOutPolicy: output.scaleOutPolicy != null ? de_ScaleOutPolicyDescription(output.scaleOutPolicy, context) : undefined,
|
|
1384
|
-
};
|
|
1385
|
-
};
|
|
1386
|
-
const de_CapacityDescription = (output, context) => {
|
|
1387
|
-
return {
|
|
1388
|
-
autoScaling: output.autoScaling != null ? de_AutoScalingDescription(output.autoScaling, context) : undefined,
|
|
1389
|
-
provisionedCapacity: output.provisionedCapacity != null
|
|
1390
|
-
? de_ProvisionedCapacityDescription(output.provisionedCapacity, context)
|
|
1391
|
-
: undefined,
|
|
1392
|
-
};
|
|
1393
|
-
};
|
|
1394
|
-
const de_CloudWatchLogsLogDeliveryDescription = (output, context) => {
|
|
1395
|
-
return {
|
|
1396
|
-
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1397
|
-
logGroup: (0, smithy_client_1.expectString)(output.logGroup),
|
|
1398
|
-
};
|
|
1399
|
-
};
|
|
1400
1069
|
const de_ConnectorSummary = (output, context) => {
|
|
1401
|
-
return {
|
|
1402
|
-
capacity:
|
|
1403
|
-
connectorArn:
|
|
1404
|
-
connectorDescription:
|
|
1405
|
-
connectorName:
|
|
1406
|
-
connectorState:
|
|
1407
|
-
creationTime:
|
|
1408
|
-
currentVersion:
|
|
1409
|
-
kafkaCluster:
|
|
1410
|
-
kafkaClusterClientAuthentication:
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
plugins: output.plugins != null ? de___listOfPluginDescription(output.plugins, context) : undefined,
|
|
1419
|
-
serviceExecutionRoleArn: (0, smithy_client_1.expectString)(output.serviceExecutionRoleArn),
|
|
1420
|
-
workerConfiguration: output.workerConfiguration != null
|
|
1421
|
-
? de_WorkerConfigurationDescription(output.workerConfiguration, context)
|
|
1422
|
-
: undefined,
|
|
1423
|
-
};
|
|
1424
|
-
};
|
|
1425
|
-
const de_CustomPluginDescription = (output, context) => {
|
|
1426
|
-
return {
|
|
1427
|
-
customPluginArn: (0, smithy_client_1.expectString)(output.customPluginArn),
|
|
1428
|
-
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
1429
|
-
};
|
|
1430
|
-
};
|
|
1431
|
-
const de_CustomPluginFileDescription = (output, context) => {
|
|
1432
|
-
return {
|
|
1433
|
-
fileMd5: (0, smithy_client_1.expectString)(output.fileMd5),
|
|
1434
|
-
fileSize: (0, smithy_client_1.expectLong)(output.fileSize),
|
|
1435
|
-
};
|
|
1436
|
-
};
|
|
1437
|
-
const de_CustomPluginLocationDescription = (output, context) => {
|
|
1438
|
-
return {
|
|
1439
|
-
s3Location: output.s3Location != null ? de_S3LocationDescription(output.s3Location, context) : undefined,
|
|
1440
|
-
};
|
|
1070
|
+
return (0, smithy_client_1.take)(output, {
|
|
1071
|
+
capacity: smithy_client_1._json,
|
|
1072
|
+
connectorArn: smithy_client_1.expectString,
|
|
1073
|
+
connectorDescription: smithy_client_1.expectString,
|
|
1074
|
+
connectorName: smithy_client_1.expectString,
|
|
1075
|
+
connectorState: smithy_client_1.expectString,
|
|
1076
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1077
|
+
currentVersion: smithy_client_1.expectString,
|
|
1078
|
+
kafkaCluster: smithy_client_1._json,
|
|
1079
|
+
kafkaClusterClientAuthentication: smithy_client_1._json,
|
|
1080
|
+
kafkaClusterEncryptionInTransit: smithy_client_1._json,
|
|
1081
|
+
kafkaConnectVersion: smithy_client_1.expectString,
|
|
1082
|
+
logDelivery: smithy_client_1._json,
|
|
1083
|
+
plugins: smithy_client_1._json,
|
|
1084
|
+
serviceExecutionRoleArn: smithy_client_1.expectString,
|
|
1085
|
+
workerConfiguration: smithy_client_1._json,
|
|
1086
|
+
});
|
|
1441
1087
|
};
|
|
1442
1088
|
const de_CustomPluginRevisionSummary = (output, context) => {
|
|
1443
|
-
return {
|
|
1444
|
-
contentType:
|
|
1445
|
-
creationTime:
|
|
1446
|
-
description:
|
|
1447
|
-
fileDescription:
|
|
1448
|
-
location:
|
|
1449
|
-
revision:
|
|
1450
|
-
};
|
|
1089
|
+
return (0, smithy_client_1.take)(output, {
|
|
1090
|
+
contentType: smithy_client_1.expectString,
|
|
1091
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1092
|
+
description: smithy_client_1.expectString,
|
|
1093
|
+
fileDescription: smithy_client_1._json,
|
|
1094
|
+
location: smithy_client_1._json,
|
|
1095
|
+
revision: smithy_client_1.expectLong,
|
|
1096
|
+
});
|
|
1451
1097
|
};
|
|
1452
1098
|
const de_CustomPluginSummary = (output, context) => {
|
|
1453
|
-
return {
|
|
1454
|
-
creationTime:
|
|
1455
|
-
customPluginArn:
|
|
1456
|
-
customPluginState:
|
|
1457
|
-
description:
|
|
1458
|
-
latestRevision:
|
|
1459
|
-
name:
|
|
1460
|
-
};
|
|
1461
|
-
};
|
|
1462
|
-
const de_FirehoseLogDeliveryDescription = (output, context) => {
|
|
1463
|
-
return {
|
|
1464
|
-
deliveryStream: (0, smithy_client_1.expectString)(output.deliveryStream),
|
|
1465
|
-
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1466
|
-
};
|
|
1467
|
-
};
|
|
1468
|
-
const de_KafkaClusterClientAuthenticationDescription = (output, context) => {
|
|
1469
|
-
return {
|
|
1470
|
-
authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
|
|
1471
|
-
};
|
|
1472
|
-
};
|
|
1473
|
-
const de_KafkaClusterDescription = (output, context) => {
|
|
1474
|
-
return {
|
|
1475
|
-
apacheKafkaCluster: output.apacheKafkaCluster != null
|
|
1476
|
-
? de_ApacheKafkaClusterDescription(output.apacheKafkaCluster, context)
|
|
1477
|
-
: undefined,
|
|
1478
|
-
};
|
|
1479
|
-
};
|
|
1480
|
-
const de_KafkaClusterEncryptionInTransitDescription = (output, context) => {
|
|
1481
|
-
return {
|
|
1482
|
-
encryptionType: (0, smithy_client_1.expectString)(output.encryptionType),
|
|
1483
|
-
};
|
|
1484
|
-
};
|
|
1485
|
-
const de_LogDeliveryDescription = (output, context) => {
|
|
1486
|
-
return {
|
|
1487
|
-
workerLogDelivery: output.workerLogDelivery != null ? de_WorkerLogDeliveryDescription(output.workerLogDelivery, context) : undefined,
|
|
1488
|
-
};
|
|
1489
|
-
};
|
|
1490
|
-
const de_PluginDescription = (output, context) => {
|
|
1491
|
-
return {
|
|
1492
|
-
customPlugin: output.customPlugin != null ? de_CustomPluginDescription(output.customPlugin, context) : undefined,
|
|
1493
|
-
};
|
|
1494
|
-
};
|
|
1495
|
-
const de_ProvisionedCapacityDescription = (output, context) => {
|
|
1496
|
-
return {
|
|
1497
|
-
mcuCount: (0, smithy_client_1.expectInt32)(output.mcuCount),
|
|
1498
|
-
workerCount: (0, smithy_client_1.expectInt32)(output.workerCount),
|
|
1499
|
-
};
|
|
1500
|
-
};
|
|
1501
|
-
const de_S3LocationDescription = (output, context) => {
|
|
1502
|
-
return {
|
|
1503
|
-
bucketArn: (0, smithy_client_1.expectString)(output.bucketArn),
|
|
1504
|
-
fileKey: (0, smithy_client_1.expectString)(output.fileKey),
|
|
1505
|
-
objectVersion: (0, smithy_client_1.expectString)(output.objectVersion),
|
|
1506
|
-
};
|
|
1507
|
-
};
|
|
1508
|
-
const de_S3LogDeliveryDescription = (output, context) => {
|
|
1509
|
-
return {
|
|
1510
|
-
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
1511
|
-
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1512
|
-
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
1513
|
-
};
|
|
1514
|
-
};
|
|
1515
|
-
const de_ScaleInPolicyDescription = (output, context) => {
|
|
1516
|
-
return {
|
|
1517
|
-
cpuUtilizationPercentage: (0, smithy_client_1.expectInt32)(output.cpuUtilizationPercentage),
|
|
1518
|
-
};
|
|
1519
|
-
};
|
|
1520
|
-
const de_ScaleOutPolicyDescription = (output, context) => {
|
|
1521
|
-
return {
|
|
1522
|
-
cpuUtilizationPercentage: (0, smithy_client_1.expectInt32)(output.cpuUtilizationPercentage),
|
|
1523
|
-
};
|
|
1524
|
-
};
|
|
1525
|
-
const de_StateDescription = (output, context) => {
|
|
1526
|
-
return {
|
|
1527
|
-
code: (0, smithy_client_1.expectString)(output.code),
|
|
1528
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1529
|
-
};
|
|
1530
|
-
};
|
|
1531
|
-
const de_VpcDescription = (output, context) => {
|
|
1532
|
-
return {
|
|
1533
|
-
securityGroups: output.securityGroups != null ? de___listOf__string(output.securityGroups, context) : undefined,
|
|
1534
|
-
subnets: output.subnets != null ? de___listOf__string(output.subnets, context) : undefined,
|
|
1535
|
-
};
|
|
1536
|
-
};
|
|
1537
|
-
const de_WorkerConfigurationDescription = (output, context) => {
|
|
1538
|
-
return {
|
|
1539
|
-
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
1540
|
-
workerConfigurationArn: (0, smithy_client_1.expectString)(output.workerConfigurationArn),
|
|
1541
|
-
};
|
|
1099
|
+
return (0, smithy_client_1.take)(output, {
|
|
1100
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1101
|
+
customPluginArn: smithy_client_1.expectString,
|
|
1102
|
+
customPluginState: smithy_client_1.expectString,
|
|
1103
|
+
description: smithy_client_1.expectString,
|
|
1104
|
+
latestRevision: (_) => de_CustomPluginRevisionSummary(_, context),
|
|
1105
|
+
name: smithy_client_1.expectString,
|
|
1106
|
+
});
|
|
1542
1107
|
};
|
|
1543
1108
|
const de_WorkerConfigurationRevisionDescription = (output, context) => {
|
|
1544
|
-
return {
|
|
1545
|
-
creationTime:
|
|
1546
|
-
description:
|
|
1547
|
-
propertiesFileContent:
|
|
1548
|
-
revision:
|
|
1549
|
-
};
|
|
1109
|
+
return (0, smithy_client_1.take)(output, {
|
|
1110
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1111
|
+
description: smithy_client_1.expectString,
|
|
1112
|
+
propertiesFileContent: smithy_client_1.expectString,
|
|
1113
|
+
revision: smithy_client_1.expectLong,
|
|
1114
|
+
});
|
|
1550
1115
|
};
|
|
1551
1116
|
const de_WorkerConfigurationRevisionSummary = (output, context) => {
|
|
1552
|
-
return {
|
|
1553
|
-
creationTime:
|
|
1554
|
-
description:
|
|
1555
|
-
revision:
|
|
1556
|
-
};
|
|
1117
|
+
return (0, smithy_client_1.take)(output, {
|
|
1118
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1119
|
+
description: smithy_client_1.expectString,
|
|
1120
|
+
revision: smithy_client_1.expectLong,
|
|
1121
|
+
});
|
|
1557
1122
|
};
|
|
1558
1123
|
const de_WorkerConfigurationSummary = (output, context) => {
|
|
1559
|
-
return {
|
|
1560
|
-
creationTime:
|
|
1561
|
-
description:
|
|
1562
|
-
latestRevision:
|
|
1563
|
-
name:
|
|
1564
|
-
workerConfigurationArn:
|
|
1565
|
-
};
|
|
1566
|
-
};
|
|
1567
|
-
const de_WorkerLogDeliveryDescription = (output, context) => {
|
|
1568
|
-
return {
|
|
1569
|
-
cloudWatchLogs: output.cloudWatchLogs != null
|
|
1570
|
-
? de_CloudWatchLogsLogDeliveryDescription(output.cloudWatchLogs, context)
|
|
1571
|
-
: undefined,
|
|
1572
|
-
firehose: output.firehose != null ? de_FirehoseLogDeliveryDescription(output.firehose, context) : undefined,
|
|
1573
|
-
s3: output.s3 != null ? de_S3LogDeliveryDescription(output.s3, context) : undefined,
|
|
1574
|
-
};
|
|
1124
|
+
return (0, smithy_client_1.take)(output, {
|
|
1125
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1126
|
+
description: smithy_client_1.expectString,
|
|
1127
|
+
latestRevision: (_) => de_WorkerConfigurationRevisionSummary(_, context),
|
|
1128
|
+
name: smithy_client_1.expectString,
|
|
1129
|
+
workerConfigurationArn: smithy_client_1.expectString,
|
|
1130
|
+
});
|
|
1575
1131
|
};
|
|
1576
1132
|
const deserializeMetadata = (output) => ({
|
|
1577
1133
|
httpStatusCode: output.statusCode,
|