@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } 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
5
|
export const se_CreateConnectorCommand = async (input, context) => {
|
|
@@ -9,28 +9,20 @@ export const se_CreateConnectorCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
...(input.kafkaConnectVersion != null && { kafkaConnectVersion: input.kafkaConnectVersion }),
|
|
27
|
-
...(input.logDelivery != null && { logDelivery: se_LogDelivery(input.logDelivery, context) }),
|
|
28
|
-
...(input.plugins != null && { plugins: se___listOfPlugin(input.plugins, context) }),
|
|
29
|
-
...(input.serviceExecutionRoleArn != null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn }),
|
|
30
|
-
...(input.workerConfiguration != null && {
|
|
31
|
-
workerConfiguration: se_WorkerConfiguration(input.workerConfiguration, context),
|
|
32
|
-
}),
|
|
33
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
capacity: (_) => _json(_),
|
|
14
|
+
connectorConfiguration: (_) => _json(_),
|
|
15
|
+
connectorDescription: [],
|
|
16
|
+
connectorName: [],
|
|
17
|
+
kafkaCluster: (_) => _json(_),
|
|
18
|
+
kafkaClusterClientAuthentication: (_) => _json(_),
|
|
19
|
+
kafkaClusterEncryptionInTransit: (_) => _json(_),
|
|
20
|
+
kafkaConnectVersion: [],
|
|
21
|
+
logDelivery: (_) => _json(_),
|
|
22
|
+
plugins: (_) => _json(_),
|
|
23
|
+
serviceExecutionRoleArn: [],
|
|
24
|
+
workerConfiguration: (_) => _json(_),
|
|
25
|
+
}));
|
|
34
26
|
return new __HttpRequest({
|
|
35
27
|
protocol,
|
|
36
28
|
hostname,
|
|
@@ -48,12 +40,12 @@ export const se_CreateCustomPluginCommand = async (input, context) => {
|
|
|
48
40
|
};
|
|
49
41
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins";
|
|
50
42
|
let body;
|
|
51
|
-
body = JSON.stringify({
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
43
|
+
body = JSON.stringify(take(input, {
|
|
44
|
+
contentType: [],
|
|
45
|
+
description: [],
|
|
46
|
+
location: (_) => _json(_),
|
|
47
|
+
name: [],
|
|
48
|
+
}));
|
|
57
49
|
return new __HttpRequest({
|
|
58
50
|
protocol,
|
|
59
51
|
hostname,
|
|
@@ -71,11 +63,11 @@ export const se_CreateWorkerConfigurationCommand = async (input, context) => {
|
|
|
71
63
|
};
|
|
72
64
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/worker-configurations";
|
|
73
65
|
let body;
|
|
74
|
-
body = JSON.stringify({
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
});
|
|
66
|
+
body = JSON.stringify(take(input, {
|
|
67
|
+
description: [],
|
|
68
|
+
name: [],
|
|
69
|
+
propertiesFileContent: [],
|
|
70
|
+
}));
|
|
79
71
|
return new __HttpRequest({
|
|
80
72
|
protocol,
|
|
81
73
|
hostname,
|
|
@@ -243,9 +235,9 @@ export const se_UpdateConnectorCommand = async (input, context) => {
|
|
|
243
235
|
currentVersion: [, __expectNonNull(input.currentVersion, `currentVersion`)],
|
|
244
236
|
});
|
|
245
237
|
let body;
|
|
246
|
-
body = JSON.stringify({
|
|
247
|
-
|
|
248
|
-
});
|
|
238
|
+
body = JSON.stringify(take(input, {
|
|
239
|
+
capacity: (_) => _json(_),
|
|
240
|
+
}));
|
|
249
241
|
return new __HttpRequest({
|
|
250
242
|
protocol,
|
|
251
243
|
hostname,
|
|
@@ -265,15 +257,12 @@ export const de_CreateConnectorCommand = async (output, context) => {
|
|
|
265
257
|
$metadata: deserializeMetadata(output),
|
|
266
258
|
});
|
|
267
259
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
if (data.connectorState != null) {
|
|
275
|
-
contents.connectorState = __expectString(data.connectorState);
|
|
276
|
-
}
|
|
260
|
+
const doc = take(data, {
|
|
261
|
+
connectorArn: __expectString,
|
|
262
|
+
connectorName: __expectString,
|
|
263
|
+
connectorState: __expectString,
|
|
264
|
+
});
|
|
265
|
+
Object.assign(contents, doc);
|
|
277
266
|
return contents;
|
|
278
267
|
};
|
|
279
268
|
const de_CreateConnectorCommandError = async (output, context) => {
|
|
@@ -309,10 +298,9 @@ const de_CreateConnectorCommandError = async (output, context) => {
|
|
|
309
298
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
310
299
|
default:
|
|
311
300
|
const parsedBody = parsedOutput.body;
|
|
312
|
-
throwDefaultError({
|
|
301
|
+
return throwDefaultError({
|
|
313
302
|
output,
|
|
314
303
|
parsedBody,
|
|
315
|
-
exceptionCtor: __BaseException,
|
|
316
304
|
errorCode,
|
|
317
305
|
});
|
|
318
306
|
}
|
|
@@ -325,18 +313,13 @@ export const de_CreateCustomPluginCommand = async (output, context) => {
|
|
|
325
313
|
$metadata: deserializeMetadata(output),
|
|
326
314
|
});
|
|
327
315
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
contents.name = __expectString(data.name);
|
|
336
|
-
}
|
|
337
|
-
if (data.revision != null) {
|
|
338
|
-
contents.revision = __expectLong(data.revision);
|
|
339
|
-
}
|
|
316
|
+
const doc = take(data, {
|
|
317
|
+
customPluginArn: __expectString,
|
|
318
|
+
customPluginState: __expectString,
|
|
319
|
+
name: __expectString,
|
|
320
|
+
revision: __expectLong,
|
|
321
|
+
});
|
|
322
|
+
Object.assign(contents, doc);
|
|
340
323
|
return contents;
|
|
341
324
|
};
|
|
342
325
|
const de_CreateCustomPluginCommandError = async (output, context) => {
|
|
@@ -372,10 +355,9 @@ const de_CreateCustomPluginCommandError = async (output, context) => {
|
|
|
372
355
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
373
356
|
default:
|
|
374
357
|
const parsedBody = parsedOutput.body;
|
|
375
|
-
throwDefaultError({
|
|
358
|
+
return throwDefaultError({
|
|
376
359
|
output,
|
|
377
360
|
parsedBody,
|
|
378
|
-
exceptionCtor: __BaseException,
|
|
379
361
|
errorCode,
|
|
380
362
|
});
|
|
381
363
|
}
|
|
@@ -388,18 +370,13 @@ export const de_CreateWorkerConfigurationCommand = async (output, context) => {
|
|
|
388
370
|
$metadata: deserializeMetadata(output),
|
|
389
371
|
});
|
|
390
372
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
contents.name = __expectString(data.name);
|
|
399
|
-
}
|
|
400
|
-
if (data.workerConfigurationArn != null) {
|
|
401
|
-
contents.workerConfigurationArn = __expectString(data.workerConfigurationArn);
|
|
402
|
-
}
|
|
373
|
+
const doc = take(data, {
|
|
374
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
375
|
+
latestRevision: (_) => de_WorkerConfigurationRevisionSummary(_, context),
|
|
376
|
+
name: __expectString,
|
|
377
|
+
workerConfigurationArn: __expectString,
|
|
378
|
+
});
|
|
379
|
+
Object.assign(contents, doc);
|
|
403
380
|
return contents;
|
|
404
381
|
};
|
|
405
382
|
const de_CreateWorkerConfigurationCommandError = async (output, context) => {
|
|
@@ -435,10 +412,9 @@ const de_CreateWorkerConfigurationCommandError = async (output, context) => {
|
|
|
435
412
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
436
413
|
default:
|
|
437
414
|
const parsedBody = parsedOutput.body;
|
|
438
|
-
throwDefaultError({
|
|
415
|
+
return throwDefaultError({
|
|
439
416
|
output,
|
|
440
417
|
parsedBody,
|
|
441
|
-
exceptionCtor: __BaseException,
|
|
442
418
|
errorCode,
|
|
443
419
|
});
|
|
444
420
|
}
|
|
@@ -451,12 +427,11 @@ export const de_DeleteConnectorCommand = async (output, context) => {
|
|
|
451
427
|
$metadata: deserializeMetadata(output),
|
|
452
428
|
});
|
|
453
429
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}
|
|
430
|
+
const doc = take(data, {
|
|
431
|
+
connectorArn: __expectString,
|
|
432
|
+
connectorState: __expectString,
|
|
433
|
+
});
|
|
434
|
+
Object.assign(contents, doc);
|
|
460
435
|
return contents;
|
|
461
436
|
};
|
|
462
437
|
const de_DeleteConnectorCommandError = async (output, context) => {
|
|
@@ -489,10 +464,9 @@ const de_DeleteConnectorCommandError = async (output, context) => {
|
|
|
489
464
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
490
465
|
default:
|
|
491
466
|
const parsedBody = parsedOutput.body;
|
|
492
|
-
throwDefaultError({
|
|
467
|
+
return throwDefaultError({
|
|
493
468
|
output,
|
|
494
469
|
parsedBody,
|
|
495
|
-
exceptionCtor: __BaseException,
|
|
496
470
|
errorCode,
|
|
497
471
|
});
|
|
498
472
|
}
|
|
@@ -505,12 +479,11 @@ export const de_DeleteCustomPluginCommand = async (output, context) => {
|
|
|
505
479
|
$metadata: deserializeMetadata(output),
|
|
506
480
|
});
|
|
507
481
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
}
|
|
482
|
+
const doc = take(data, {
|
|
483
|
+
customPluginArn: __expectString,
|
|
484
|
+
customPluginState: __expectString,
|
|
485
|
+
});
|
|
486
|
+
Object.assign(contents, doc);
|
|
514
487
|
return contents;
|
|
515
488
|
};
|
|
516
489
|
const de_DeleteCustomPluginCommandError = async (output, context) => {
|
|
@@ -543,10 +516,9 @@ const de_DeleteCustomPluginCommandError = async (output, context) => {
|
|
|
543
516
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
544
517
|
default:
|
|
545
518
|
const parsedBody = parsedOutput.body;
|
|
546
|
-
throwDefaultError({
|
|
519
|
+
return throwDefaultError({
|
|
547
520
|
output,
|
|
548
521
|
parsedBody,
|
|
549
|
-
exceptionCtor: __BaseException,
|
|
550
522
|
errorCode,
|
|
551
523
|
});
|
|
552
524
|
}
|
|
@@ -559,57 +531,26 @@ export const de_DescribeConnectorCommand = async (output, context) => {
|
|
|
559
531
|
$metadata: deserializeMetadata(output),
|
|
560
532
|
});
|
|
561
533
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}
|
|
583
|
-
if (data.currentVersion != null) {
|
|
584
|
-
contents.currentVersion = __expectString(data.currentVersion);
|
|
585
|
-
}
|
|
586
|
-
if (data.kafkaCluster != null) {
|
|
587
|
-
contents.kafkaCluster = de_KafkaClusterDescription(data.kafkaCluster, context);
|
|
588
|
-
}
|
|
589
|
-
if (data.kafkaClusterClientAuthentication != null) {
|
|
590
|
-
contents.kafkaClusterClientAuthentication = de_KafkaClusterClientAuthenticationDescription(data.kafkaClusterClientAuthentication, context);
|
|
591
|
-
}
|
|
592
|
-
if (data.kafkaClusterEncryptionInTransit != null) {
|
|
593
|
-
contents.kafkaClusterEncryptionInTransit = de_KafkaClusterEncryptionInTransitDescription(data.kafkaClusterEncryptionInTransit, context);
|
|
594
|
-
}
|
|
595
|
-
if (data.kafkaConnectVersion != null) {
|
|
596
|
-
contents.kafkaConnectVersion = __expectString(data.kafkaConnectVersion);
|
|
597
|
-
}
|
|
598
|
-
if (data.logDelivery != null) {
|
|
599
|
-
contents.logDelivery = de_LogDeliveryDescription(data.logDelivery, context);
|
|
600
|
-
}
|
|
601
|
-
if (data.plugins != null) {
|
|
602
|
-
contents.plugins = de___listOfPluginDescription(data.plugins, context);
|
|
603
|
-
}
|
|
604
|
-
if (data.serviceExecutionRoleArn != null) {
|
|
605
|
-
contents.serviceExecutionRoleArn = __expectString(data.serviceExecutionRoleArn);
|
|
606
|
-
}
|
|
607
|
-
if (data.stateDescription != null) {
|
|
608
|
-
contents.stateDescription = de_StateDescription(data.stateDescription, context);
|
|
609
|
-
}
|
|
610
|
-
if (data.workerConfiguration != null) {
|
|
611
|
-
contents.workerConfiguration = de_WorkerConfigurationDescription(data.workerConfiguration, context);
|
|
612
|
-
}
|
|
534
|
+
const doc = take(data, {
|
|
535
|
+
capacity: _json,
|
|
536
|
+
connectorArn: __expectString,
|
|
537
|
+
connectorConfiguration: _json,
|
|
538
|
+
connectorDescription: __expectString,
|
|
539
|
+
connectorName: __expectString,
|
|
540
|
+
connectorState: __expectString,
|
|
541
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
542
|
+
currentVersion: __expectString,
|
|
543
|
+
kafkaCluster: _json,
|
|
544
|
+
kafkaClusterClientAuthentication: _json,
|
|
545
|
+
kafkaClusterEncryptionInTransit: _json,
|
|
546
|
+
kafkaConnectVersion: __expectString,
|
|
547
|
+
logDelivery: _json,
|
|
548
|
+
plugins: _json,
|
|
549
|
+
serviceExecutionRoleArn: __expectString,
|
|
550
|
+
stateDescription: _json,
|
|
551
|
+
workerConfiguration: _json,
|
|
552
|
+
});
|
|
553
|
+
Object.assign(contents, doc);
|
|
613
554
|
return contents;
|
|
614
555
|
};
|
|
615
556
|
const de_DescribeConnectorCommandError = async (output, context) => {
|
|
@@ -642,10 +583,9 @@ const de_DescribeConnectorCommandError = async (output, context) => {
|
|
|
642
583
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
643
584
|
default:
|
|
644
585
|
const parsedBody = parsedOutput.body;
|
|
645
|
-
throwDefaultError({
|
|
586
|
+
return throwDefaultError({
|
|
646
587
|
output,
|
|
647
588
|
parsedBody,
|
|
648
|
-
exceptionCtor: __BaseException,
|
|
649
589
|
errorCode,
|
|
650
590
|
});
|
|
651
591
|
}
|
|
@@ -658,27 +598,16 @@ export const de_DescribeCustomPluginCommand = async (output, context) => {
|
|
|
658
598
|
$metadata: deserializeMetadata(output),
|
|
659
599
|
});
|
|
660
600
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
contents.description = __expectString(data.description);
|
|
672
|
-
}
|
|
673
|
-
if (data.latestRevision != null) {
|
|
674
|
-
contents.latestRevision = de_CustomPluginRevisionSummary(data.latestRevision, context);
|
|
675
|
-
}
|
|
676
|
-
if (data.name != null) {
|
|
677
|
-
contents.name = __expectString(data.name);
|
|
678
|
-
}
|
|
679
|
-
if (data.stateDescription != null) {
|
|
680
|
-
contents.stateDescription = de_StateDescription(data.stateDescription, context);
|
|
681
|
-
}
|
|
601
|
+
const doc = take(data, {
|
|
602
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
603
|
+
customPluginArn: __expectString,
|
|
604
|
+
customPluginState: __expectString,
|
|
605
|
+
description: __expectString,
|
|
606
|
+
latestRevision: (_) => de_CustomPluginRevisionSummary(_, context),
|
|
607
|
+
name: __expectString,
|
|
608
|
+
stateDescription: _json,
|
|
609
|
+
});
|
|
610
|
+
Object.assign(contents, doc);
|
|
682
611
|
return contents;
|
|
683
612
|
};
|
|
684
613
|
const de_DescribeCustomPluginCommandError = async (output, context) => {
|
|
@@ -711,10 +640,9 @@ const de_DescribeCustomPluginCommandError = async (output, context) => {
|
|
|
711
640
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
712
641
|
default:
|
|
713
642
|
const parsedBody = parsedOutput.body;
|
|
714
|
-
throwDefaultError({
|
|
643
|
+
return throwDefaultError({
|
|
715
644
|
output,
|
|
716
645
|
parsedBody,
|
|
717
|
-
exceptionCtor: __BaseException,
|
|
718
646
|
errorCode,
|
|
719
647
|
});
|
|
720
648
|
}
|
|
@@ -727,21 +655,14 @@ export const de_DescribeWorkerConfigurationCommand = async (output, context) =>
|
|
|
727
655
|
$metadata: deserializeMetadata(output),
|
|
728
656
|
});
|
|
729
657
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
}
|
|
739
|
-
if (data.name != null) {
|
|
740
|
-
contents.name = __expectString(data.name);
|
|
741
|
-
}
|
|
742
|
-
if (data.workerConfigurationArn != null) {
|
|
743
|
-
contents.workerConfigurationArn = __expectString(data.workerConfigurationArn);
|
|
744
|
-
}
|
|
658
|
+
const doc = take(data, {
|
|
659
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
660
|
+
description: __expectString,
|
|
661
|
+
latestRevision: (_) => de_WorkerConfigurationRevisionDescription(_, context),
|
|
662
|
+
name: __expectString,
|
|
663
|
+
workerConfigurationArn: __expectString,
|
|
664
|
+
});
|
|
665
|
+
Object.assign(contents, doc);
|
|
745
666
|
return contents;
|
|
746
667
|
};
|
|
747
668
|
const de_DescribeWorkerConfigurationCommandError = async (output, context) => {
|
|
@@ -774,10 +695,9 @@ const de_DescribeWorkerConfigurationCommandError = async (output, context) => {
|
|
|
774
695
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
775
696
|
default:
|
|
776
697
|
const parsedBody = parsedOutput.body;
|
|
777
|
-
throwDefaultError({
|
|
698
|
+
return throwDefaultError({
|
|
778
699
|
output,
|
|
779
700
|
parsedBody,
|
|
780
|
-
exceptionCtor: __BaseException,
|
|
781
701
|
errorCode,
|
|
782
702
|
});
|
|
783
703
|
}
|
|
@@ -790,12 +710,11 @@ export const de_ListConnectorsCommand = async (output, context) => {
|
|
|
790
710
|
$metadata: deserializeMetadata(output),
|
|
791
711
|
});
|
|
792
712
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
}
|
|
713
|
+
const doc = take(data, {
|
|
714
|
+
connectors: (_) => de___listOfConnectorSummary(_, context),
|
|
715
|
+
nextToken: __expectString,
|
|
716
|
+
});
|
|
717
|
+
Object.assign(contents, doc);
|
|
799
718
|
return contents;
|
|
800
719
|
};
|
|
801
720
|
const de_ListConnectorsCommandError = async (output, context) => {
|
|
@@ -828,10 +747,9 @@ const de_ListConnectorsCommandError = async (output, context) => {
|
|
|
828
747
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
829
748
|
default:
|
|
830
749
|
const parsedBody = parsedOutput.body;
|
|
831
|
-
throwDefaultError({
|
|
750
|
+
return throwDefaultError({
|
|
832
751
|
output,
|
|
833
752
|
parsedBody,
|
|
834
|
-
exceptionCtor: __BaseException,
|
|
835
753
|
errorCode,
|
|
836
754
|
});
|
|
837
755
|
}
|
|
@@ -844,12 +762,11 @@ export const de_ListCustomPluginsCommand = async (output, context) => {
|
|
|
844
762
|
$metadata: deserializeMetadata(output),
|
|
845
763
|
});
|
|
846
764
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
}
|
|
765
|
+
const doc = take(data, {
|
|
766
|
+
customPlugins: (_) => de___listOfCustomPluginSummary(_, context),
|
|
767
|
+
nextToken: __expectString,
|
|
768
|
+
});
|
|
769
|
+
Object.assign(contents, doc);
|
|
853
770
|
return contents;
|
|
854
771
|
};
|
|
855
772
|
const de_ListCustomPluginsCommandError = async (output, context) => {
|
|
@@ -882,10 +799,9 @@ const de_ListCustomPluginsCommandError = async (output, context) => {
|
|
|
882
799
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
883
800
|
default:
|
|
884
801
|
const parsedBody = parsedOutput.body;
|
|
885
|
-
throwDefaultError({
|
|
802
|
+
return throwDefaultError({
|
|
886
803
|
output,
|
|
887
804
|
parsedBody,
|
|
888
|
-
exceptionCtor: __BaseException,
|
|
889
805
|
errorCode,
|
|
890
806
|
});
|
|
891
807
|
}
|
|
@@ -898,12 +814,11 @@ export const de_ListWorkerConfigurationsCommand = async (output, context) => {
|
|
|
898
814
|
$metadata: deserializeMetadata(output),
|
|
899
815
|
});
|
|
900
816
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}
|
|
817
|
+
const doc = take(data, {
|
|
818
|
+
nextToken: __expectString,
|
|
819
|
+
workerConfigurations: (_) => de___listOfWorkerConfigurationSummary(_, context),
|
|
820
|
+
});
|
|
821
|
+
Object.assign(contents, doc);
|
|
907
822
|
return contents;
|
|
908
823
|
};
|
|
909
824
|
const de_ListWorkerConfigurationsCommandError = async (output, context) => {
|
|
@@ -936,10 +851,9 @@ const de_ListWorkerConfigurationsCommandError = async (output, context) => {
|
|
|
936
851
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
937
852
|
default:
|
|
938
853
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
throwDefaultError({
|
|
854
|
+
return throwDefaultError({
|
|
940
855
|
output,
|
|
941
856
|
parsedBody,
|
|
942
|
-
exceptionCtor: __BaseException,
|
|
943
857
|
errorCode,
|
|
944
858
|
});
|
|
945
859
|
}
|
|
@@ -952,12 +866,11 @@ export const de_UpdateConnectorCommand = async (output, context) => {
|
|
|
952
866
|
$metadata: deserializeMetadata(output),
|
|
953
867
|
});
|
|
954
868
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
}
|
|
869
|
+
const doc = take(data, {
|
|
870
|
+
connectorArn: __expectString,
|
|
871
|
+
connectorState: __expectString,
|
|
872
|
+
});
|
|
873
|
+
Object.assign(contents, doc);
|
|
961
874
|
return contents;
|
|
962
875
|
};
|
|
963
876
|
const de_UpdateConnectorCommandError = async (output, context) => {
|
|
@@ -990,21 +903,21 @@ const de_UpdateConnectorCommandError = async (output, context) => {
|
|
|
990
903
|
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
991
904
|
default:
|
|
992
905
|
const parsedBody = parsedOutput.body;
|
|
993
|
-
throwDefaultError({
|
|
906
|
+
return throwDefaultError({
|
|
994
907
|
output,
|
|
995
908
|
parsedBody,
|
|
996
|
-
exceptionCtor: __BaseException,
|
|
997
909
|
errorCode,
|
|
998
910
|
});
|
|
999
911
|
}
|
|
1000
912
|
};
|
|
1001
|
-
const
|
|
913
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1002
914
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
1003
915
|
const contents = map({});
|
|
1004
916
|
const data = parsedOutput.body;
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
}
|
|
917
|
+
const doc = take(data, {
|
|
918
|
+
message: __expectString,
|
|
919
|
+
});
|
|
920
|
+
Object.assign(contents, doc);
|
|
1008
921
|
const exception = new BadRequestException({
|
|
1009
922
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1010
923
|
...contents,
|
|
@@ -1014,9 +927,10 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1014
927
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1015
928
|
const contents = map({});
|
|
1016
929
|
const data = parsedOutput.body;
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
}
|
|
930
|
+
const doc = take(data, {
|
|
931
|
+
message: __expectString,
|
|
932
|
+
});
|
|
933
|
+
Object.assign(contents, doc);
|
|
1020
934
|
const exception = new ConflictException({
|
|
1021
935
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1022
936
|
...contents,
|
|
@@ -1026,9 +940,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1026
940
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
1027
941
|
const contents = map({});
|
|
1028
942
|
const data = parsedOutput.body;
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
}
|
|
943
|
+
const doc = take(data, {
|
|
944
|
+
message: __expectString,
|
|
945
|
+
});
|
|
946
|
+
Object.assign(contents, doc);
|
|
1032
947
|
const exception = new ForbiddenException({
|
|
1033
948
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1034
949
|
...contents,
|
|
@@ -1038,9 +953,10 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
1038
953
|
const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
1039
954
|
const contents = map({});
|
|
1040
955
|
const data = parsedOutput.body;
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
}
|
|
956
|
+
const doc = take(data, {
|
|
957
|
+
message: __expectString,
|
|
958
|
+
});
|
|
959
|
+
Object.assign(contents, doc);
|
|
1044
960
|
const exception = new InternalServerErrorException({
|
|
1045
961
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1046
962
|
...contents,
|
|
@@ -1050,9 +966,10 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1050
966
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1051
967
|
const contents = map({});
|
|
1052
968
|
const data = parsedOutput.body;
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
}
|
|
969
|
+
const doc = take(data, {
|
|
970
|
+
message: __expectString,
|
|
971
|
+
});
|
|
972
|
+
Object.assign(contents, doc);
|
|
1056
973
|
const exception = new NotFoundException({
|
|
1057
974
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1058
975
|
...contents,
|
|
@@ -1062,9 +979,10 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1062
979
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1063
980
|
const contents = map({});
|
|
1064
981
|
const data = parsedOutput.body;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
}
|
|
982
|
+
const doc = take(data, {
|
|
983
|
+
message: __expectString,
|
|
984
|
+
});
|
|
985
|
+
Object.assign(contents, doc);
|
|
1068
986
|
const exception = new ServiceUnavailableException({
|
|
1069
987
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1070
988
|
...contents,
|
|
@@ -1074,9 +992,10 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1074
992
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1075
993
|
const contents = map({});
|
|
1076
994
|
const data = parsedOutput.body;
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
}
|
|
995
|
+
const doc = take(data, {
|
|
996
|
+
message: __expectString,
|
|
997
|
+
});
|
|
998
|
+
Object.assign(contents, doc);
|
|
1080
999
|
const exception = new TooManyRequestsException({
|
|
1081
1000
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1082
1001
|
...contents,
|
|
@@ -1086,215 +1005,20 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1086
1005
|
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1087
1006
|
const contents = map({});
|
|
1088
1007
|
const data = parsedOutput.body;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
}
|
|
1008
|
+
const doc = take(data, {
|
|
1009
|
+
message: __expectString,
|
|
1010
|
+
});
|
|
1011
|
+
Object.assign(contents, doc);
|
|
1092
1012
|
const exception = new UnauthorizedException({
|
|
1093
1013
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1094
1014
|
...contents,
|
|
1095
1015
|
});
|
|
1096
1016
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1097
1017
|
};
|
|
1098
|
-
const se___listOf__string = (input, context) => {
|
|
1099
|
-
return input
|
|
1100
|
-
.filter((e) => e != null)
|
|
1101
|
-
.map((entry) => {
|
|
1102
|
-
return entry;
|
|
1103
|
-
});
|
|
1104
|
-
};
|
|
1105
|
-
const se___listOfPlugin = (input, context) => {
|
|
1106
|
-
return input
|
|
1107
|
-
.filter((e) => e != null)
|
|
1108
|
-
.map((entry) => {
|
|
1109
|
-
return se_Plugin(entry, context);
|
|
1110
|
-
});
|
|
1111
|
-
};
|
|
1112
|
-
const se___sensitive__mapOf__string = (input, context) => {
|
|
1113
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1114
|
-
if (value === null) {
|
|
1115
|
-
return acc;
|
|
1116
|
-
}
|
|
1117
|
-
acc[key] = value;
|
|
1118
|
-
return acc;
|
|
1119
|
-
}, {});
|
|
1120
|
-
};
|
|
1121
|
-
const se_ApacheKafkaCluster = (input, context) => {
|
|
1122
|
-
return {
|
|
1123
|
-
...(input.bootstrapServers != null && { bootstrapServers: input.bootstrapServers }),
|
|
1124
|
-
...(input.vpc != null && { vpc: se_Vpc(input.vpc, context) }),
|
|
1125
|
-
};
|
|
1126
|
-
};
|
|
1127
|
-
const se_AutoScaling = (input, context) => {
|
|
1128
|
-
return {
|
|
1129
|
-
...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
|
|
1130
|
-
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1131
|
-
...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
|
|
1132
|
-
...(input.scaleInPolicy != null && { scaleInPolicy: se_ScaleInPolicy(input.scaleInPolicy, context) }),
|
|
1133
|
-
...(input.scaleOutPolicy != null && { scaleOutPolicy: se_ScaleOutPolicy(input.scaleOutPolicy, context) }),
|
|
1134
|
-
};
|
|
1135
|
-
};
|
|
1136
|
-
const se_AutoScalingUpdate = (input, context) => {
|
|
1137
|
-
return {
|
|
1138
|
-
...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
|
|
1139
|
-
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1140
|
-
...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
|
|
1141
|
-
...(input.scaleInPolicy != null && { scaleInPolicy: se_ScaleInPolicyUpdate(input.scaleInPolicy, context) }),
|
|
1142
|
-
...(input.scaleOutPolicy != null && { scaleOutPolicy: se_ScaleOutPolicyUpdate(input.scaleOutPolicy, context) }),
|
|
1143
|
-
};
|
|
1144
|
-
};
|
|
1145
|
-
const se_Capacity = (input, context) => {
|
|
1146
|
-
return {
|
|
1147
|
-
...(input.autoScaling != null && { autoScaling: se_AutoScaling(input.autoScaling, context) }),
|
|
1148
|
-
...(input.provisionedCapacity != null && {
|
|
1149
|
-
provisionedCapacity: se_ProvisionedCapacity(input.provisionedCapacity, context),
|
|
1150
|
-
}),
|
|
1151
|
-
};
|
|
1152
|
-
};
|
|
1153
|
-
const se_CapacityUpdate = (input, context) => {
|
|
1154
|
-
return {
|
|
1155
|
-
...(input.autoScaling != null && { autoScaling: se_AutoScalingUpdate(input.autoScaling, context) }),
|
|
1156
|
-
...(input.provisionedCapacity != null && {
|
|
1157
|
-
provisionedCapacity: se_ProvisionedCapacityUpdate(input.provisionedCapacity, context),
|
|
1158
|
-
}),
|
|
1159
|
-
};
|
|
1160
|
-
};
|
|
1161
|
-
const se_CloudWatchLogsLogDelivery = (input, context) => {
|
|
1162
|
-
return {
|
|
1163
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1164
|
-
...(input.logGroup != null && { logGroup: input.logGroup }),
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
|
-
const se_CustomPlugin = (input, context) => {
|
|
1168
|
-
return {
|
|
1169
|
-
...(input.customPluginArn != null && { customPluginArn: input.customPluginArn }),
|
|
1170
|
-
...(input.revision != null && { revision: input.revision }),
|
|
1171
|
-
};
|
|
1172
|
-
};
|
|
1173
|
-
const se_CustomPluginLocation = (input, context) => {
|
|
1174
|
-
return {
|
|
1175
|
-
...(input.s3Location != null && { s3Location: se_S3Location(input.s3Location, context) }),
|
|
1176
|
-
};
|
|
1177
|
-
};
|
|
1178
|
-
const se_FirehoseLogDelivery = (input, context) => {
|
|
1179
|
-
return {
|
|
1180
|
-
...(input.deliveryStream != null && { deliveryStream: input.deliveryStream }),
|
|
1181
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1182
|
-
};
|
|
1183
|
-
};
|
|
1184
|
-
const se_KafkaCluster = (input, context) => {
|
|
1185
|
-
return {
|
|
1186
|
-
...(input.apacheKafkaCluster != null && {
|
|
1187
|
-
apacheKafkaCluster: se_ApacheKafkaCluster(input.apacheKafkaCluster, context),
|
|
1188
|
-
}),
|
|
1189
|
-
};
|
|
1190
|
-
};
|
|
1191
|
-
const se_KafkaClusterClientAuthentication = (input, context) => {
|
|
1192
|
-
return {
|
|
1193
|
-
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
1194
|
-
};
|
|
1195
|
-
};
|
|
1196
|
-
const se_KafkaClusterEncryptionInTransit = (input, context) => {
|
|
1197
|
-
return {
|
|
1198
|
-
...(input.encryptionType != null && { encryptionType: input.encryptionType }),
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
1201
|
-
const se_LogDelivery = (input, context) => {
|
|
1202
|
-
return {
|
|
1203
|
-
...(input.workerLogDelivery != null && {
|
|
1204
|
-
workerLogDelivery: se_WorkerLogDelivery(input.workerLogDelivery, context),
|
|
1205
|
-
}),
|
|
1206
|
-
};
|
|
1207
|
-
};
|
|
1208
|
-
const se_Plugin = (input, context) => {
|
|
1209
|
-
return {
|
|
1210
|
-
...(input.customPlugin != null && { customPlugin: se_CustomPlugin(input.customPlugin, context) }),
|
|
1211
|
-
};
|
|
1212
|
-
};
|
|
1213
|
-
const se_ProvisionedCapacity = (input, context) => {
|
|
1214
|
-
return {
|
|
1215
|
-
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1216
|
-
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1217
|
-
};
|
|
1218
|
-
};
|
|
1219
|
-
const se_ProvisionedCapacityUpdate = (input, context) => {
|
|
1220
|
-
return {
|
|
1221
|
-
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1222
|
-
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1223
|
-
};
|
|
1224
|
-
};
|
|
1225
|
-
const se_S3Location = (input, context) => {
|
|
1226
|
-
return {
|
|
1227
|
-
...(input.bucketArn != null && { bucketArn: input.bucketArn }),
|
|
1228
|
-
...(input.fileKey != null && { fileKey: input.fileKey }),
|
|
1229
|
-
...(input.objectVersion != null && { objectVersion: input.objectVersion }),
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
const se_S3LogDelivery = (input, context) => {
|
|
1233
|
-
return {
|
|
1234
|
-
...(input.bucket != null && { bucket: input.bucket }),
|
|
1235
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
1236
|
-
...(input.prefix != null && { prefix: input.prefix }),
|
|
1237
|
-
};
|
|
1238
|
-
};
|
|
1239
|
-
const se_ScaleInPolicy = (input, context) => {
|
|
1240
|
-
return {
|
|
1241
|
-
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1242
|
-
};
|
|
1243
|
-
};
|
|
1244
|
-
const se_ScaleInPolicyUpdate = (input, context) => {
|
|
1245
|
-
return {
|
|
1246
|
-
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1247
|
-
};
|
|
1248
|
-
};
|
|
1249
|
-
const se_ScaleOutPolicy = (input, context) => {
|
|
1250
|
-
return {
|
|
1251
|
-
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1252
|
-
};
|
|
1253
|
-
};
|
|
1254
|
-
const se_ScaleOutPolicyUpdate = (input, context) => {
|
|
1255
|
-
return {
|
|
1256
|
-
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1257
|
-
};
|
|
1258
|
-
};
|
|
1259
|
-
const se_Vpc = (input, context) => {
|
|
1260
|
-
return {
|
|
1261
|
-
...(input.securityGroups != null && { securityGroups: se___listOf__string(input.securityGroups, context) }),
|
|
1262
|
-
...(input.subnets != null && { subnets: se___listOf__string(input.subnets, context) }),
|
|
1263
|
-
};
|
|
1264
|
-
};
|
|
1265
|
-
const se_WorkerConfiguration = (input, context) => {
|
|
1266
|
-
return {
|
|
1267
|
-
...(input.revision != null && { revision: input.revision }),
|
|
1268
|
-
...(input.workerConfigurationArn != null && { workerConfigurationArn: input.workerConfigurationArn }),
|
|
1269
|
-
};
|
|
1270
|
-
};
|
|
1271
|
-
const se_WorkerLogDelivery = (input, context) => {
|
|
1272
|
-
return {
|
|
1273
|
-
...(input.cloudWatchLogs != null && {
|
|
1274
|
-
cloudWatchLogs: se_CloudWatchLogsLogDelivery(input.cloudWatchLogs, context),
|
|
1275
|
-
}),
|
|
1276
|
-
...(input.firehose != null && { firehose: se_FirehoseLogDelivery(input.firehose, context) }),
|
|
1277
|
-
...(input.s3 != null && { s3: se_S3LogDelivery(input.s3, context) }),
|
|
1278
|
-
};
|
|
1279
|
-
};
|
|
1280
|
-
const de___listOf__string = (output, context) => {
|
|
1281
|
-
const retVal = (output || [])
|
|
1282
|
-
.filter((e) => e != null)
|
|
1283
|
-
.map((entry) => {
|
|
1284
|
-
if (entry === null) {
|
|
1285
|
-
return null;
|
|
1286
|
-
}
|
|
1287
|
-
return __expectString(entry);
|
|
1288
|
-
});
|
|
1289
|
-
return retVal;
|
|
1290
|
-
};
|
|
1291
1018
|
const de___listOfConnectorSummary = (output, context) => {
|
|
1292
1019
|
const retVal = (output || [])
|
|
1293
1020
|
.filter((e) => e != null)
|
|
1294
1021
|
.map((entry) => {
|
|
1295
|
-
if (entry === null) {
|
|
1296
|
-
return null;
|
|
1297
|
-
}
|
|
1298
1022
|
return de_ConnectorSummary(entry, context);
|
|
1299
1023
|
});
|
|
1300
1024
|
return retVal;
|
|
@@ -1303,248 +1027,80 @@ const de___listOfCustomPluginSummary = (output, context) => {
|
|
|
1303
1027
|
const retVal = (output || [])
|
|
1304
1028
|
.filter((e) => e != null)
|
|
1305
1029
|
.map((entry) => {
|
|
1306
|
-
if (entry === null) {
|
|
1307
|
-
return null;
|
|
1308
|
-
}
|
|
1309
1030
|
return de_CustomPluginSummary(entry, context);
|
|
1310
1031
|
});
|
|
1311
1032
|
return retVal;
|
|
1312
1033
|
};
|
|
1313
|
-
const de___listOfPluginDescription = (output, context) => {
|
|
1314
|
-
const retVal = (output || [])
|
|
1315
|
-
.filter((e) => e != null)
|
|
1316
|
-
.map((entry) => {
|
|
1317
|
-
if (entry === null) {
|
|
1318
|
-
return null;
|
|
1319
|
-
}
|
|
1320
|
-
return de_PluginDescription(entry, context);
|
|
1321
|
-
});
|
|
1322
|
-
return retVal;
|
|
1323
|
-
};
|
|
1324
1034
|
const de___listOfWorkerConfigurationSummary = (output, context) => {
|
|
1325
1035
|
const retVal = (output || [])
|
|
1326
1036
|
.filter((e) => e != null)
|
|
1327
1037
|
.map((entry) => {
|
|
1328
|
-
if (entry === null) {
|
|
1329
|
-
return null;
|
|
1330
|
-
}
|
|
1331
1038
|
return de_WorkerConfigurationSummary(entry, context);
|
|
1332
1039
|
});
|
|
1333
1040
|
return retVal;
|
|
1334
1041
|
};
|
|
1335
|
-
const de___sensitive__mapOf__string = (output, context) => {
|
|
1336
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1337
|
-
if (value === null) {
|
|
1338
|
-
return acc;
|
|
1339
|
-
}
|
|
1340
|
-
acc[key] = __expectString(value);
|
|
1341
|
-
return acc;
|
|
1342
|
-
}, {});
|
|
1343
|
-
};
|
|
1344
|
-
const de_ApacheKafkaClusterDescription = (output, context) => {
|
|
1345
|
-
return {
|
|
1346
|
-
bootstrapServers: __expectString(output.bootstrapServers),
|
|
1347
|
-
vpc: output.vpc != null ? de_VpcDescription(output.vpc, context) : undefined,
|
|
1348
|
-
};
|
|
1349
|
-
};
|
|
1350
|
-
const de_AutoScalingDescription = (output, context) => {
|
|
1351
|
-
return {
|
|
1352
|
-
maxWorkerCount: __expectInt32(output.maxWorkerCount),
|
|
1353
|
-
mcuCount: __expectInt32(output.mcuCount),
|
|
1354
|
-
minWorkerCount: __expectInt32(output.minWorkerCount),
|
|
1355
|
-
scaleInPolicy: output.scaleInPolicy != null ? de_ScaleInPolicyDescription(output.scaleInPolicy, context) : undefined,
|
|
1356
|
-
scaleOutPolicy: output.scaleOutPolicy != null ? de_ScaleOutPolicyDescription(output.scaleOutPolicy, context) : undefined,
|
|
1357
|
-
};
|
|
1358
|
-
};
|
|
1359
|
-
const de_CapacityDescription = (output, context) => {
|
|
1360
|
-
return {
|
|
1361
|
-
autoScaling: output.autoScaling != null ? de_AutoScalingDescription(output.autoScaling, context) : undefined,
|
|
1362
|
-
provisionedCapacity: output.provisionedCapacity != null
|
|
1363
|
-
? de_ProvisionedCapacityDescription(output.provisionedCapacity, context)
|
|
1364
|
-
: undefined,
|
|
1365
|
-
};
|
|
1366
|
-
};
|
|
1367
|
-
const de_CloudWatchLogsLogDeliveryDescription = (output, context) => {
|
|
1368
|
-
return {
|
|
1369
|
-
enabled: __expectBoolean(output.enabled),
|
|
1370
|
-
logGroup: __expectString(output.logGroup),
|
|
1371
|
-
};
|
|
1372
|
-
};
|
|
1373
1042
|
const de_ConnectorSummary = (output, context) => {
|
|
1374
|
-
return {
|
|
1375
|
-
capacity:
|
|
1376
|
-
connectorArn: __expectString
|
|
1377
|
-
connectorDescription: __expectString
|
|
1378
|
-
connectorName: __expectString
|
|
1379
|
-
connectorState: __expectString
|
|
1380
|
-
creationTime:
|
|
1381
|
-
currentVersion: __expectString
|
|
1382
|
-
kafkaCluster:
|
|
1383
|
-
kafkaClusterClientAuthentication:
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
plugins: output.plugins != null ? de___listOfPluginDescription(output.plugins, context) : undefined,
|
|
1392
|
-
serviceExecutionRoleArn: __expectString(output.serviceExecutionRoleArn),
|
|
1393
|
-
workerConfiguration: output.workerConfiguration != null
|
|
1394
|
-
? de_WorkerConfigurationDescription(output.workerConfiguration, context)
|
|
1395
|
-
: undefined,
|
|
1396
|
-
};
|
|
1397
|
-
};
|
|
1398
|
-
const de_CustomPluginDescription = (output, context) => {
|
|
1399
|
-
return {
|
|
1400
|
-
customPluginArn: __expectString(output.customPluginArn),
|
|
1401
|
-
revision: __expectLong(output.revision),
|
|
1402
|
-
};
|
|
1403
|
-
};
|
|
1404
|
-
const de_CustomPluginFileDescription = (output, context) => {
|
|
1405
|
-
return {
|
|
1406
|
-
fileMd5: __expectString(output.fileMd5),
|
|
1407
|
-
fileSize: __expectLong(output.fileSize),
|
|
1408
|
-
};
|
|
1409
|
-
};
|
|
1410
|
-
const de_CustomPluginLocationDescription = (output, context) => {
|
|
1411
|
-
return {
|
|
1412
|
-
s3Location: output.s3Location != null ? de_S3LocationDescription(output.s3Location, context) : undefined,
|
|
1413
|
-
};
|
|
1043
|
+
return take(output, {
|
|
1044
|
+
capacity: _json,
|
|
1045
|
+
connectorArn: __expectString,
|
|
1046
|
+
connectorDescription: __expectString,
|
|
1047
|
+
connectorName: __expectString,
|
|
1048
|
+
connectorState: __expectString,
|
|
1049
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1050
|
+
currentVersion: __expectString,
|
|
1051
|
+
kafkaCluster: _json,
|
|
1052
|
+
kafkaClusterClientAuthentication: _json,
|
|
1053
|
+
kafkaClusterEncryptionInTransit: _json,
|
|
1054
|
+
kafkaConnectVersion: __expectString,
|
|
1055
|
+
logDelivery: _json,
|
|
1056
|
+
plugins: _json,
|
|
1057
|
+
serviceExecutionRoleArn: __expectString,
|
|
1058
|
+
workerConfiguration: _json,
|
|
1059
|
+
});
|
|
1414
1060
|
};
|
|
1415
1061
|
const de_CustomPluginRevisionSummary = (output, context) => {
|
|
1416
|
-
return {
|
|
1417
|
-
contentType: __expectString
|
|
1418
|
-
creationTime:
|
|
1419
|
-
description: __expectString
|
|
1420
|
-
fileDescription:
|
|
1421
|
-
location:
|
|
1422
|
-
revision: __expectLong
|
|
1423
|
-
};
|
|
1062
|
+
return take(output, {
|
|
1063
|
+
contentType: __expectString,
|
|
1064
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1065
|
+
description: __expectString,
|
|
1066
|
+
fileDescription: _json,
|
|
1067
|
+
location: _json,
|
|
1068
|
+
revision: __expectLong,
|
|
1069
|
+
});
|
|
1424
1070
|
};
|
|
1425
1071
|
const de_CustomPluginSummary = (output, context) => {
|
|
1426
|
-
return {
|
|
1427
|
-
creationTime:
|
|
1428
|
-
customPluginArn: __expectString
|
|
1429
|
-
customPluginState: __expectString
|
|
1430
|
-
description: __expectString
|
|
1431
|
-
latestRevision:
|
|
1432
|
-
name: __expectString
|
|
1433
|
-
};
|
|
1434
|
-
};
|
|
1435
|
-
const de_FirehoseLogDeliveryDescription = (output, context) => {
|
|
1436
|
-
return {
|
|
1437
|
-
deliveryStream: __expectString(output.deliveryStream),
|
|
1438
|
-
enabled: __expectBoolean(output.enabled),
|
|
1439
|
-
};
|
|
1440
|
-
};
|
|
1441
|
-
const de_KafkaClusterClientAuthenticationDescription = (output, context) => {
|
|
1442
|
-
return {
|
|
1443
|
-
authenticationType: __expectString(output.authenticationType),
|
|
1444
|
-
};
|
|
1445
|
-
};
|
|
1446
|
-
const de_KafkaClusterDescription = (output, context) => {
|
|
1447
|
-
return {
|
|
1448
|
-
apacheKafkaCluster: output.apacheKafkaCluster != null
|
|
1449
|
-
? de_ApacheKafkaClusterDescription(output.apacheKafkaCluster, context)
|
|
1450
|
-
: undefined,
|
|
1451
|
-
};
|
|
1452
|
-
};
|
|
1453
|
-
const de_KafkaClusterEncryptionInTransitDescription = (output, context) => {
|
|
1454
|
-
return {
|
|
1455
|
-
encryptionType: __expectString(output.encryptionType),
|
|
1456
|
-
};
|
|
1457
|
-
};
|
|
1458
|
-
const de_LogDeliveryDescription = (output, context) => {
|
|
1459
|
-
return {
|
|
1460
|
-
workerLogDelivery: output.workerLogDelivery != null ? de_WorkerLogDeliveryDescription(output.workerLogDelivery, context) : undefined,
|
|
1461
|
-
};
|
|
1462
|
-
};
|
|
1463
|
-
const de_PluginDescription = (output, context) => {
|
|
1464
|
-
return {
|
|
1465
|
-
customPlugin: output.customPlugin != null ? de_CustomPluginDescription(output.customPlugin, context) : undefined,
|
|
1466
|
-
};
|
|
1467
|
-
};
|
|
1468
|
-
const de_ProvisionedCapacityDescription = (output, context) => {
|
|
1469
|
-
return {
|
|
1470
|
-
mcuCount: __expectInt32(output.mcuCount),
|
|
1471
|
-
workerCount: __expectInt32(output.workerCount),
|
|
1472
|
-
};
|
|
1473
|
-
};
|
|
1474
|
-
const de_S3LocationDescription = (output, context) => {
|
|
1475
|
-
return {
|
|
1476
|
-
bucketArn: __expectString(output.bucketArn),
|
|
1477
|
-
fileKey: __expectString(output.fileKey),
|
|
1478
|
-
objectVersion: __expectString(output.objectVersion),
|
|
1479
|
-
};
|
|
1480
|
-
};
|
|
1481
|
-
const de_S3LogDeliveryDescription = (output, context) => {
|
|
1482
|
-
return {
|
|
1483
|
-
bucket: __expectString(output.bucket),
|
|
1484
|
-
enabled: __expectBoolean(output.enabled),
|
|
1485
|
-
prefix: __expectString(output.prefix),
|
|
1486
|
-
};
|
|
1487
|
-
};
|
|
1488
|
-
const de_ScaleInPolicyDescription = (output, context) => {
|
|
1489
|
-
return {
|
|
1490
|
-
cpuUtilizationPercentage: __expectInt32(output.cpuUtilizationPercentage),
|
|
1491
|
-
};
|
|
1492
|
-
};
|
|
1493
|
-
const de_ScaleOutPolicyDescription = (output, context) => {
|
|
1494
|
-
return {
|
|
1495
|
-
cpuUtilizationPercentage: __expectInt32(output.cpuUtilizationPercentage),
|
|
1496
|
-
};
|
|
1497
|
-
};
|
|
1498
|
-
const de_StateDescription = (output, context) => {
|
|
1499
|
-
return {
|
|
1500
|
-
code: __expectString(output.code),
|
|
1501
|
-
message: __expectString(output.message),
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
const de_VpcDescription = (output, context) => {
|
|
1505
|
-
return {
|
|
1506
|
-
securityGroups: output.securityGroups != null ? de___listOf__string(output.securityGroups, context) : undefined,
|
|
1507
|
-
subnets: output.subnets != null ? de___listOf__string(output.subnets, context) : undefined,
|
|
1508
|
-
};
|
|
1509
|
-
};
|
|
1510
|
-
const de_WorkerConfigurationDescription = (output, context) => {
|
|
1511
|
-
return {
|
|
1512
|
-
revision: __expectLong(output.revision),
|
|
1513
|
-
workerConfigurationArn: __expectString(output.workerConfigurationArn),
|
|
1514
|
-
};
|
|
1072
|
+
return take(output, {
|
|
1073
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1074
|
+
customPluginArn: __expectString,
|
|
1075
|
+
customPluginState: __expectString,
|
|
1076
|
+
description: __expectString,
|
|
1077
|
+
latestRevision: (_) => de_CustomPluginRevisionSummary(_, context),
|
|
1078
|
+
name: __expectString,
|
|
1079
|
+
});
|
|
1515
1080
|
};
|
|
1516
1081
|
const de_WorkerConfigurationRevisionDescription = (output, context) => {
|
|
1517
|
-
return {
|
|
1518
|
-
creationTime:
|
|
1519
|
-
description: __expectString
|
|
1520
|
-
propertiesFileContent: __expectString
|
|
1521
|
-
revision: __expectLong
|
|
1522
|
-
};
|
|
1082
|
+
return take(output, {
|
|
1083
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1084
|
+
description: __expectString,
|
|
1085
|
+
propertiesFileContent: __expectString,
|
|
1086
|
+
revision: __expectLong,
|
|
1087
|
+
});
|
|
1523
1088
|
};
|
|
1524
1089
|
const de_WorkerConfigurationRevisionSummary = (output, context) => {
|
|
1525
|
-
return {
|
|
1526
|
-
creationTime:
|
|
1527
|
-
description: __expectString
|
|
1528
|
-
revision: __expectLong
|
|
1529
|
-
};
|
|
1090
|
+
return take(output, {
|
|
1091
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1092
|
+
description: __expectString,
|
|
1093
|
+
revision: __expectLong,
|
|
1094
|
+
});
|
|
1530
1095
|
};
|
|
1531
1096
|
const de_WorkerConfigurationSummary = (output, context) => {
|
|
1532
|
-
return {
|
|
1533
|
-
creationTime:
|
|
1534
|
-
description: __expectString
|
|
1535
|
-
latestRevision:
|
|
1536
|
-
name: __expectString
|
|
1537
|
-
workerConfigurationArn: __expectString
|
|
1538
|
-
};
|
|
1539
|
-
};
|
|
1540
|
-
const de_WorkerLogDeliveryDescription = (output, context) => {
|
|
1541
|
-
return {
|
|
1542
|
-
cloudWatchLogs: output.cloudWatchLogs != null
|
|
1543
|
-
? de_CloudWatchLogsLogDeliveryDescription(output.cloudWatchLogs, context)
|
|
1544
|
-
: undefined,
|
|
1545
|
-
firehose: output.firehose != null ? de_FirehoseLogDeliveryDescription(output.firehose, context) : undefined,
|
|
1546
|
-
s3: output.s3 != null ? de_S3LogDeliveryDescription(output.s3, context) : undefined,
|
|
1547
|
-
};
|
|
1097
|
+
return take(output, {
|
|
1098
|
+
creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1099
|
+
description: __expectString,
|
|
1100
|
+
latestRevision: (_) => de_WorkerConfigurationRevisionSummary(_, context),
|
|
1101
|
+
name: __expectString,
|
|
1102
|
+
workerConfigurationArn: __expectString,
|
|
1103
|
+
});
|
|
1548
1104
|
};
|
|
1549
1105
|
const deserializeMetadata = (output) => ({
|
|
1550
1106
|
httpStatusCode: output.statusCode,
|