@aws-sdk/client-kafkaconnect 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +107 -168
- package/dist-es/protocols/Aws_restJson1.js +75 -136
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-kafkaconnect
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-kafkaconnect
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -13,35 +13,26 @@ const serializeAws_restJson1CreateConnectorCommand = async (input, context) => {
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/connectors";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.capacity
|
|
17
|
-
|
|
18
|
-
...(input.connectorConfiguration !== undefined &&
|
|
19
|
-
input.connectorConfiguration !== null && {
|
|
16
|
+
...(input.capacity != null && { capacity: serializeAws_restJson1Capacity(input.capacity, context) }),
|
|
17
|
+
...(input.connectorConfiguration != null && {
|
|
20
18
|
connectorConfiguration: serializeAws_restJson1__mapOf__string(input.connectorConfiguration, context),
|
|
21
19
|
}),
|
|
22
|
-
...(input.connectorDescription
|
|
23
|
-
|
|
24
|
-
...(input.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
...(input.kafkaClusterClientAuthentication
|
|
28
|
-
input.kafkaClusterClientAuthentication !== null && {
|
|
20
|
+
...(input.connectorDescription != null && { connectorDescription: input.connectorDescription }),
|
|
21
|
+
...(input.connectorName != null && { connectorName: input.connectorName }),
|
|
22
|
+
...(input.kafkaCluster != null && {
|
|
23
|
+
kafkaCluster: serializeAws_restJson1KafkaCluster(input.kafkaCluster, context),
|
|
24
|
+
}),
|
|
25
|
+
...(input.kafkaClusterClientAuthentication != null && {
|
|
29
26
|
kafkaClusterClientAuthentication: serializeAws_restJson1KafkaClusterClientAuthentication(input.kafkaClusterClientAuthentication, context),
|
|
30
27
|
}),
|
|
31
|
-
...(input.kafkaClusterEncryptionInTransit
|
|
32
|
-
input.kafkaClusterEncryptionInTransit !== null && {
|
|
28
|
+
...(input.kafkaClusterEncryptionInTransit != null && {
|
|
33
29
|
kafkaClusterEncryptionInTransit: serializeAws_restJson1KafkaClusterEncryptionInTransit(input.kafkaClusterEncryptionInTransit, context),
|
|
34
30
|
}),
|
|
35
|
-
...(input.kafkaConnectVersion
|
|
36
|
-
|
|
37
|
-
...(input.
|
|
38
|
-
|
|
39
|
-
...(input.
|
|
40
|
-
input.plugins !== null && { plugins: serializeAws_restJson1__listOfPlugin(input.plugins, context) }),
|
|
41
|
-
...(input.serviceExecutionRoleArn !== undefined &&
|
|
42
|
-
input.serviceExecutionRoleArn !== null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn }),
|
|
43
|
-
...(input.workerConfiguration !== undefined &&
|
|
44
|
-
input.workerConfiguration !== null && {
|
|
31
|
+
...(input.kafkaConnectVersion != null && { kafkaConnectVersion: input.kafkaConnectVersion }),
|
|
32
|
+
...(input.logDelivery != null && { logDelivery: serializeAws_restJson1LogDelivery(input.logDelivery, context) }),
|
|
33
|
+
...(input.plugins != null && { plugins: serializeAws_restJson1__listOfPlugin(input.plugins, context) }),
|
|
34
|
+
...(input.serviceExecutionRoleArn != null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn }),
|
|
35
|
+
...(input.workerConfiguration != null && {
|
|
45
36
|
workerConfiguration: serializeAws_restJson1WorkerConfiguration(input.workerConfiguration, context),
|
|
46
37
|
}),
|
|
47
38
|
});
|
|
@@ -64,11 +55,10 @@ const serializeAws_restJson1CreateCustomPluginCommand = async (input, context) =
|
|
|
64
55
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins";
|
|
65
56
|
let body;
|
|
66
57
|
body = JSON.stringify({
|
|
67
|
-
...(input.contentType
|
|
68
|
-
...(input.description
|
|
69
|
-
...(input.location
|
|
70
|
-
|
|
71
|
-
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
58
|
+
...(input.contentType != null && { contentType: input.contentType }),
|
|
59
|
+
...(input.description != null && { description: input.description }),
|
|
60
|
+
...(input.location != null && { location: serializeAws_restJson1CustomPluginLocation(input.location, context) }),
|
|
61
|
+
...(input.name != null && { name: input.name }),
|
|
72
62
|
});
|
|
73
63
|
return new protocol_http_1.HttpRequest({
|
|
74
64
|
protocol,
|
|
@@ -89,10 +79,9 @@ const serializeAws_restJson1CreateWorkerConfigurationCommand = async (input, con
|
|
|
89
79
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/worker-configurations";
|
|
90
80
|
let body;
|
|
91
81
|
body = JSON.stringify({
|
|
92
|
-
...(input.description
|
|
93
|
-
...(input.name
|
|
94
|
-
...(input.propertiesFileContent
|
|
95
|
-
input.propertiesFileContent !== null && { propertiesFileContent: input.propertiesFileContent }),
|
|
82
|
+
...(input.description != null && { description: input.description }),
|
|
83
|
+
...(input.name != null && { name: input.name }),
|
|
84
|
+
...(input.propertiesFileContent != null && { propertiesFileContent: input.propertiesFileContent }),
|
|
96
85
|
});
|
|
97
86
|
return new protocol_http_1.HttpRequest({
|
|
98
87
|
protocol,
|
|
@@ -325,8 +314,7 @@ const serializeAws_restJson1UpdateConnectorCommand = async (input, context) => {
|
|
|
325
314
|
};
|
|
326
315
|
let body;
|
|
327
316
|
body = JSON.stringify({
|
|
328
|
-
...(input.capacity
|
|
329
|
-
input.capacity !== null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) }),
|
|
317
|
+
...(input.capacity != null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) }),
|
|
330
318
|
});
|
|
331
319
|
return new protocol_http_1.HttpRequest({
|
|
332
320
|
protocol,
|
|
@@ -1310,203 +1298,175 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
|
|
|
1310
1298
|
};
|
|
1311
1299
|
const serializeAws_restJson1ApacheKafkaCluster = (input, context) => {
|
|
1312
1300
|
return {
|
|
1313
|
-
...(input.bootstrapServers
|
|
1314
|
-
|
|
1315
|
-
...(input.vpc !== undefined && input.vpc !== null && { vpc: serializeAws_restJson1Vpc(input.vpc, context) }),
|
|
1301
|
+
...(input.bootstrapServers != null && { bootstrapServers: input.bootstrapServers }),
|
|
1302
|
+
...(input.vpc != null && { vpc: serializeAws_restJson1Vpc(input.vpc, context) }),
|
|
1316
1303
|
};
|
|
1317
1304
|
};
|
|
1318
1305
|
const serializeAws_restJson1AutoScaling = (input, context) => {
|
|
1319
1306
|
return {
|
|
1320
|
-
...(input.maxWorkerCount
|
|
1321
|
-
|
|
1322
|
-
...(input.
|
|
1323
|
-
...(input.
|
|
1324
|
-
input.minWorkerCount !== null && { minWorkerCount: input.minWorkerCount }),
|
|
1325
|
-
...(input.scaleInPolicy !== undefined &&
|
|
1326
|
-
input.scaleInPolicy !== null && {
|
|
1307
|
+
...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
|
|
1308
|
+
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1309
|
+
...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
|
|
1310
|
+
...(input.scaleInPolicy != null && {
|
|
1327
1311
|
scaleInPolicy: serializeAws_restJson1ScaleInPolicy(input.scaleInPolicy, context),
|
|
1328
1312
|
}),
|
|
1329
|
-
...(input.scaleOutPolicy
|
|
1330
|
-
input.scaleOutPolicy !== null && {
|
|
1313
|
+
...(input.scaleOutPolicy != null && {
|
|
1331
1314
|
scaleOutPolicy: serializeAws_restJson1ScaleOutPolicy(input.scaleOutPolicy, context),
|
|
1332
1315
|
}),
|
|
1333
1316
|
};
|
|
1334
1317
|
};
|
|
1335
1318
|
const serializeAws_restJson1AutoScalingUpdate = (input, context) => {
|
|
1336
1319
|
return {
|
|
1337
|
-
...(input.maxWorkerCount
|
|
1338
|
-
|
|
1339
|
-
...(input.
|
|
1340
|
-
...(input.
|
|
1341
|
-
input.minWorkerCount !== null && { minWorkerCount: input.minWorkerCount }),
|
|
1342
|
-
...(input.scaleInPolicy !== undefined &&
|
|
1343
|
-
input.scaleInPolicy !== null && {
|
|
1320
|
+
...(input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount }),
|
|
1321
|
+
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1322
|
+
...(input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount }),
|
|
1323
|
+
...(input.scaleInPolicy != null && {
|
|
1344
1324
|
scaleInPolicy: serializeAws_restJson1ScaleInPolicyUpdate(input.scaleInPolicy, context),
|
|
1345
1325
|
}),
|
|
1346
|
-
...(input.scaleOutPolicy
|
|
1347
|
-
input.scaleOutPolicy !== null && {
|
|
1326
|
+
...(input.scaleOutPolicy != null && {
|
|
1348
1327
|
scaleOutPolicy: serializeAws_restJson1ScaleOutPolicyUpdate(input.scaleOutPolicy, context),
|
|
1349
1328
|
}),
|
|
1350
1329
|
};
|
|
1351
1330
|
};
|
|
1352
1331
|
const serializeAws_restJson1Capacity = (input, context) => {
|
|
1353
1332
|
return {
|
|
1354
|
-
...(input.autoScaling
|
|
1355
|
-
|
|
1356
|
-
...(input.provisionedCapacity !== undefined &&
|
|
1357
|
-
input.provisionedCapacity !== null && {
|
|
1333
|
+
...(input.autoScaling != null && { autoScaling: serializeAws_restJson1AutoScaling(input.autoScaling, context) }),
|
|
1334
|
+
...(input.provisionedCapacity != null && {
|
|
1358
1335
|
provisionedCapacity: serializeAws_restJson1ProvisionedCapacity(input.provisionedCapacity, context),
|
|
1359
1336
|
}),
|
|
1360
1337
|
};
|
|
1361
1338
|
};
|
|
1362
1339
|
const serializeAws_restJson1CapacityUpdate = (input, context) => {
|
|
1363
1340
|
return {
|
|
1364
|
-
...(input.autoScaling
|
|
1365
|
-
input.autoScaling !== null && {
|
|
1341
|
+
...(input.autoScaling != null && {
|
|
1366
1342
|
autoScaling: serializeAws_restJson1AutoScalingUpdate(input.autoScaling, context),
|
|
1367
1343
|
}),
|
|
1368
|
-
...(input.provisionedCapacity
|
|
1369
|
-
input.provisionedCapacity !== null && {
|
|
1344
|
+
...(input.provisionedCapacity != null && {
|
|
1370
1345
|
provisionedCapacity: serializeAws_restJson1ProvisionedCapacityUpdate(input.provisionedCapacity, context),
|
|
1371
1346
|
}),
|
|
1372
1347
|
};
|
|
1373
1348
|
};
|
|
1374
1349
|
const serializeAws_restJson1CloudWatchLogsLogDelivery = (input, context) => {
|
|
1375
1350
|
return {
|
|
1376
|
-
...(input.enabled
|
|
1377
|
-
...(input.logGroup
|
|
1351
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
1352
|
+
...(input.logGroup != null && { logGroup: input.logGroup }),
|
|
1378
1353
|
};
|
|
1379
1354
|
};
|
|
1380
1355
|
const serializeAws_restJson1CustomPlugin = (input, context) => {
|
|
1381
1356
|
return {
|
|
1382
|
-
...(input.customPluginArn
|
|
1383
|
-
|
|
1384
|
-
...(input.revision !== undefined && input.revision !== null && { revision: input.revision }),
|
|
1357
|
+
...(input.customPluginArn != null && { customPluginArn: input.customPluginArn }),
|
|
1358
|
+
...(input.revision != null && { revision: input.revision }),
|
|
1385
1359
|
};
|
|
1386
1360
|
};
|
|
1387
1361
|
const serializeAws_restJson1CustomPluginLocation = (input, context) => {
|
|
1388
1362
|
return {
|
|
1389
|
-
...(input.s3Location
|
|
1390
|
-
input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }),
|
|
1363
|
+
...(input.s3Location != null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }),
|
|
1391
1364
|
};
|
|
1392
1365
|
};
|
|
1393
1366
|
const serializeAws_restJson1FirehoseLogDelivery = (input, context) => {
|
|
1394
1367
|
return {
|
|
1395
|
-
...(input.deliveryStream
|
|
1396
|
-
|
|
1397
|
-
...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
|
|
1368
|
+
...(input.deliveryStream != null && { deliveryStream: input.deliveryStream }),
|
|
1369
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
1398
1370
|
};
|
|
1399
1371
|
};
|
|
1400
1372
|
const serializeAws_restJson1KafkaCluster = (input, context) => {
|
|
1401
1373
|
return {
|
|
1402
|
-
...(input.apacheKafkaCluster
|
|
1403
|
-
input.apacheKafkaCluster !== null && {
|
|
1374
|
+
...(input.apacheKafkaCluster != null && {
|
|
1404
1375
|
apacheKafkaCluster: serializeAws_restJson1ApacheKafkaCluster(input.apacheKafkaCluster, context),
|
|
1405
1376
|
}),
|
|
1406
1377
|
};
|
|
1407
1378
|
};
|
|
1408
1379
|
const serializeAws_restJson1KafkaClusterClientAuthentication = (input, context) => {
|
|
1409
1380
|
return {
|
|
1410
|
-
...(input.authenticationType
|
|
1411
|
-
input.authenticationType !== null && { authenticationType: input.authenticationType }),
|
|
1381
|
+
...(input.authenticationType != null && { authenticationType: input.authenticationType }),
|
|
1412
1382
|
};
|
|
1413
1383
|
};
|
|
1414
1384
|
const serializeAws_restJson1KafkaClusterEncryptionInTransit = (input, context) => {
|
|
1415
1385
|
return {
|
|
1416
|
-
...(input.encryptionType
|
|
1417
|
-
input.encryptionType !== null && { encryptionType: input.encryptionType }),
|
|
1386
|
+
...(input.encryptionType != null && { encryptionType: input.encryptionType }),
|
|
1418
1387
|
};
|
|
1419
1388
|
};
|
|
1420
1389
|
const serializeAws_restJson1LogDelivery = (input, context) => {
|
|
1421
1390
|
return {
|
|
1422
|
-
...(input.workerLogDelivery
|
|
1423
|
-
input.workerLogDelivery !== null && {
|
|
1391
|
+
...(input.workerLogDelivery != null && {
|
|
1424
1392
|
workerLogDelivery: serializeAws_restJson1WorkerLogDelivery(input.workerLogDelivery, context),
|
|
1425
1393
|
}),
|
|
1426
1394
|
};
|
|
1427
1395
|
};
|
|
1428
1396
|
const serializeAws_restJson1Plugin = (input, context) => {
|
|
1429
1397
|
return {
|
|
1430
|
-
...(input.customPlugin
|
|
1431
|
-
|
|
1398
|
+
...(input.customPlugin != null && {
|
|
1399
|
+
customPlugin: serializeAws_restJson1CustomPlugin(input.customPlugin, context),
|
|
1400
|
+
}),
|
|
1432
1401
|
};
|
|
1433
1402
|
};
|
|
1434
1403
|
const serializeAws_restJson1ProvisionedCapacity = (input, context) => {
|
|
1435
1404
|
return {
|
|
1436
|
-
...(input.mcuCount
|
|
1437
|
-
...(input.workerCount
|
|
1405
|
+
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1406
|
+
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1438
1407
|
};
|
|
1439
1408
|
};
|
|
1440
1409
|
const serializeAws_restJson1ProvisionedCapacityUpdate = (input, context) => {
|
|
1441
1410
|
return {
|
|
1442
|
-
...(input.mcuCount
|
|
1443
|
-
...(input.workerCount
|
|
1411
|
+
...(input.mcuCount != null && { mcuCount: input.mcuCount }),
|
|
1412
|
+
...(input.workerCount != null && { workerCount: input.workerCount }),
|
|
1444
1413
|
};
|
|
1445
1414
|
};
|
|
1446
1415
|
const serializeAws_restJson1S3Location = (input, context) => {
|
|
1447
1416
|
return {
|
|
1448
|
-
...(input.bucketArn
|
|
1449
|
-
...(input.fileKey
|
|
1450
|
-
...(input.objectVersion
|
|
1417
|
+
...(input.bucketArn != null && { bucketArn: input.bucketArn }),
|
|
1418
|
+
...(input.fileKey != null && { fileKey: input.fileKey }),
|
|
1419
|
+
...(input.objectVersion != null && { objectVersion: input.objectVersion }),
|
|
1451
1420
|
};
|
|
1452
1421
|
};
|
|
1453
1422
|
const serializeAws_restJson1S3LogDelivery = (input, context) => {
|
|
1454
1423
|
return {
|
|
1455
|
-
...(input.bucket
|
|
1456
|
-
...(input.enabled
|
|
1457
|
-
...(input.prefix
|
|
1424
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
1425
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
1426
|
+
...(input.prefix != null && { prefix: input.prefix }),
|
|
1458
1427
|
};
|
|
1459
1428
|
};
|
|
1460
1429
|
const serializeAws_restJson1ScaleInPolicy = (input, context) => {
|
|
1461
1430
|
return {
|
|
1462
|
-
...(input.cpuUtilizationPercentage
|
|
1463
|
-
input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1431
|
+
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1464
1432
|
};
|
|
1465
1433
|
};
|
|
1466
1434
|
const serializeAws_restJson1ScaleInPolicyUpdate = (input, context) => {
|
|
1467
1435
|
return {
|
|
1468
|
-
...(input.cpuUtilizationPercentage
|
|
1469
|
-
input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1436
|
+
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1470
1437
|
};
|
|
1471
1438
|
};
|
|
1472
1439
|
const serializeAws_restJson1ScaleOutPolicy = (input, context) => {
|
|
1473
1440
|
return {
|
|
1474
|
-
...(input.cpuUtilizationPercentage
|
|
1475
|
-
input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1441
|
+
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1476
1442
|
};
|
|
1477
1443
|
};
|
|
1478
1444
|
const serializeAws_restJson1ScaleOutPolicyUpdate = (input, context) => {
|
|
1479
1445
|
return {
|
|
1480
|
-
...(input.cpuUtilizationPercentage
|
|
1481
|
-
input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1446
|
+
...(input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }),
|
|
1482
1447
|
};
|
|
1483
1448
|
};
|
|
1484
1449
|
const serializeAws_restJson1Vpc = (input, context) => {
|
|
1485
1450
|
return {
|
|
1486
|
-
...(input.securityGroups
|
|
1487
|
-
input.securityGroups !== null && {
|
|
1451
|
+
...(input.securityGroups != null && {
|
|
1488
1452
|
securityGroups: serializeAws_restJson1__listOf__string(input.securityGroups, context),
|
|
1489
1453
|
}),
|
|
1490
|
-
...(input.subnets
|
|
1491
|
-
input.subnets !== null && { subnets: serializeAws_restJson1__listOf__string(input.subnets, context) }),
|
|
1454
|
+
...(input.subnets != null && { subnets: serializeAws_restJson1__listOf__string(input.subnets, context) }),
|
|
1492
1455
|
};
|
|
1493
1456
|
};
|
|
1494
1457
|
const serializeAws_restJson1WorkerConfiguration = (input, context) => {
|
|
1495
1458
|
return {
|
|
1496
|
-
...(input.revision
|
|
1497
|
-
...(input.workerConfigurationArn
|
|
1498
|
-
input.workerConfigurationArn !== null && { workerConfigurationArn: input.workerConfigurationArn }),
|
|
1459
|
+
...(input.revision != null && { revision: input.revision }),
|
|
1460
|
+
...(input.workerConfigurationArn != null && { workerConfigurationArn: input.workerConfigurationArn }),
|
|
1499
1461
|
};
|
|
1500
1462
|
};
|
|
1501
1463
|
const serializeAws_restJson1WorkerLogDelivery = (input, context) => {
|
|
1502
1464
|
return {
|
|
1503
|
-
...(input.cloudWatchLogs
|
|
1504
|
-
input.cloudWatchLogs !== null && {
|
|
1465
|
+
...(input.cloudWatchLogs != null && {
|
|
1505
1466
|
cloudWatchLogs: serializeAws_restJson1CloudWatchLogsLogDelivery(input.cloudWatchLogs, context),
|
|
1506
1467
|
}),
|
|
1507
|
-
...(input.firehose
|
|
1508
|
-
|
|
1509
|
-
...(input.s3 !== undefined && input.s3 !== null && { s3: serializeAws_restJson1S3LogDelivery(input.s3, context) }),
|
|
1468
|
+
...(input.firehose != null && { firehose: serializeAws_restJson1FirehoseLogDelivery(input.firehose, context) }),
|
|
1469
|
+
...(input.s3 != null && { s3: serializeAws_restJson1S3LogDelivery(input.s3, context) }),
|
|
1510
1470
|
};
|
|
1511
1471
|
};
|
|
1512
1472
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
@@ -1578,9 +1538,7 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
1578
1538
|
const deserializeAws_restJson1ApacheKafkaClusterDescription = (output, context) => {
|
|
1579
1539
|
return {
|
|
1580
1540
|
bootstrapServers: (0, smithy_client_1.expectString)(output.bootstrapServers),
|
|
1581
|
-
vpc: output.vpc
|
|
1582
|
-
? deserializeAws_restJson1VpcDescription(output.vpc, context)
|
|
1583
|
-
: undefined,
|
|
1541
|
+
vpc: output.vpc != null ? deserializeAws_restJson1VpcDescription(output.vpc, context) : undefined,
|
|
1584
1542
|
};
|
|
1585
1543
|
};
|
|
1586
1544
|
const deserializeAws_restJson1AutoScalingDescription = (output, context) => {
|
|
@@ -1588,20 +1546,20 @@ const deserializeAws_restJson1AutoScalingDescription = (output, context) => {
|
|
|
1588
1546
|
maxWorkerCount: (0, smithy_client_1.expectInt32)(output.maxWorkerCount),
|
|
1589
1547
|
mcuCount: (0, smithy_client_1.expectInt32)(output.mcuCount),
|
|
1590
1548
|
minWorkerCount: (0, smithy_client_1.expectInt32)(output.minWorkerCount),
|
|
1591
|
-
scaleInPolicy: output.scaleInPolicy
|
|
1549
|
+
scaleInPolicy: output.scaleInPolicy != null
|
|
1592
1550
|
? deserializeAws_restJson1ScaleInPolicyDescription(output.scaleInPolicy, context)
|
|
1593
1551
|
: undefined,
|
|
1594
|
-
scaleOutPolicy: output.scaleOutPolicy
|
|
1552
|
+
scaleOutPolicy: output.scaleOutPolicy != null
|
|
1595
1553
|
? deserializeAws_restJson1ScaleOutPolicyDescription(output.scaleOutPolicy, context)
|
|
1596
1554
|
: undefined,
|
|
1597
1555
|
};
|
|
1598
1556
|
};
|
|
1599
1557
|
const deserializeAws_restJson1CapacityDescription = (output, context) => {
|
|
1600
1558
|
return {
|
|
1601
|
-
autoScaling: output.autoScaling
|
|
1559
|
+
autoScaling: output.autoScaling != null
|
|
1602
1560
|
? deserializeAws_restJson1AutoScalingDescription(output.autoScaling, context)
|
|
1603
1561
|
: undefined,
|
|
1604
|
-
provisionedCapacity: output.provisionedCapacity
|
|
1562
|
+
provisionedCapacity: output.provisionedCapacity != null
|
|
1605
1563
|
? deserializeAws_restJson1ProvisionedCapacityDescription(output.provisionedCapacity, context)
|
|
1606
1564
|
: undefined,
|
|
1607
1565
|
};
|
|
@@ -1614,35 +1572,29 @@ const deserializeAws_restJson1CloudWatchLogsLogDeliveryDescription = (output, co
|
|
|
1614
1572
|
};
|
|
1615
1573
|
const deserializeAws_restJson1ConnectorSummary = (output, context) => {
|
|
1616
1574
|
return {
|
|
1617
|
-
capacity: output.capacity
|
|
1618
|
-
? deserializeAws_restJson1CapacityDescription(output.capacity, context)
|
|
1619
|
-
: undefined,
|
|
1575
|
+
capacity: output.capacity != null ? deserializeAws_restJson1CapacityDescription(output.capacity, context) : undefined,
|
|
1620
1576
|
connectorArn: (0, smithy_client_1.expectString)(output.connectorArn),
|
|
1621
1577
|
connectorDescription: (0, smithy_client_1.expectString)(output.connectorDescription),
|
|
1622
1578
|
connectorName: (0, smithy_client_1.expectString)(output.connectorName),
|
|
1623
1579
|
connectorState: (0, smithy_client_1.expectString)(output.connectorState),
|
|
1624
|
-
creationTime: output.creationTime
|
|
1625
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1626
|
-
: undefined,
|
|
1580
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1627
1581
|
currentVersion: (0, smithy_client_1.expectString)(output.currentVersion),
|
|
1628
|
-
kafkaCluster: output.kafkaCluster
|
|
1582
|
+
kafkaCluster: output.kafkaCluster != null
|
|
1629
1583
|
? deserializeAws_restJson1KafkaClusterDescription(output.kafkaCluster, context)
|
|
1630
1584
|
: undefined,
|
|
1631
|
-
kafkaClusterClientAuthentication: output.kafkaClusterClientAuthentication
|
|
1585
|
+
kafkaClusterClientAuthentication: output.kafkaClusterClientAuthentication != null
|
|
1632
1586
|
? deserializeAws_restJson1KafkaClusterClientAuthenticationDescription(output.kafkaClusterClientAuthentication, context)
|
|
1633
1587
|
: undefined,
|
|
1634
|
-
kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit
|
|
1588
|
+
kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit != null
|
|
1635
1589
|
? deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription(output.kafkaClusterEncryptionInTransit, context)
|
|
1636
1590
|
: undefined,
|
|
1637
1591
|
kafkaConnectVersion: (0, smithy_client_1.expectString)(output.kafkaConnectVersion),
|
|
1638
|
-
logDelivery: output.logDelivery
|
|
1592
|
+
logDelivery: output.logDelivery != null
|
|
1639
1593
|
? deserializeAws_restJson1LogDeliveryDescription(output.logDelivery, context)
|
|
1640
1594
|
: undefined,
|
|
1641
|
-
plugins: output.plugins
|
|
1642
|
-
? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context)
|
|
1643
|
-
: undefined,
|
|
1595
|
+
plugins: output.plugins != null ? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context) : undefined,
|
|
1644
1596
|
serviceExecutionRoleArn: (0, smithy_client_1.expectString)(output.serviceExecutionRoleArn),
|
|
1645
|
-
workerConfiguration: output.workerConfiguration
|
|
1597
|
+
workerConfiguration: output.workerConfiguration != null
|
|
1646
1598
|
? deserializeAws_restJson1WorkerConfigurationDescription(output.workerConfiguration, context)
|
|
1647
1599
|
: undefined,
|
|
1648
1600
|
};
|
|
@@ -1661,22 +1613,18 @@ const deserializeAws_restJson1CustomPluginFileDescription = (output, context) =>
|
|
|
1661
1613
|
};
|
|
1662
1614
|
const deserializeAws_restJson1CustomPluginLocationDescription = (output, context) => {
|
|
1663
1615
|
return {
|
|
1664
|
-
s3Location: output.s3Location
|
|
1665
|
-
? deserializeAws_restJson1S3LocationDescription(output.s3Location, context)
|
|
1666
|
-
: undefined,
|
|
1616
|
+
s3Location: output.s3Location != null ? deserializeAws_restJson1S3LocationDescription(output.s3Location, context) : undefined,
|
|
1667
1617
|
};
|
|
1668
1618
|
};
|
|
1669
1619
|
const deserializeAws_restJson1CustomPluginRevisionSummary = (output, context) => {
|
|
1670
1620
|
return {
|
|
1671
1621
|
contentType: (0, smithy_client_1.expectString)(output.contentType),
|
|
1672
|
-
creationTime: output.creationTime
|
|
1673
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1674
|
-
: undefined,
|
|
1622
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1675
1623
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1676
|
-
fileDescription: output.fileDescription
|
|
1624
|
+
fileDescription: output.fileDescription != null
|
|
1677
1625
|
? deserializeAws_restJson1CustomPluginFileDescription(output.fileDescription, context)
|
|
1678
1626
|
: undefined,
|
|
1679
|
-
location: output.location
|
|
1627
|
+
location: output.location != null
|
|
1680
1628
|
? deserializeAws_restJson1CustomPluginLocationDescription(output.location, context)
|
|
1681
1629
|
: undefined,
|
|
1682
1630
|
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
@@ -1684,13 +1632,11 @@ const deserializeAws_restJson1CustomPluginRevisionSummary = (output, context) =>
|
|
|
1684
1632
|
};
|
|
1685
1633
|
const deserializeAws_restJson1CustomPluginSummary = (output, context) => {
|
|
1686
1634
|
return {
|
|
1687
|
-
creationTime: output.creationTime
|
|
1688
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1689
|
-
: undefined,
|
|
1635
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1690
1636
|
customPluginArn: (0, smithy_client_1.expectString)(output.customPluginArn),
|
|
1691
1637
|
customPluginState: (0, smithy_client_1.expectString)(output.customPluginState),
|
|
1692
1638
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1693
|
-
latestRevision: output.latestRevision
|
|
1639
|
+
latestRevision: output.latestRevision != null
|
|
1694
1640
|
? deserializeAws_restJson1CustomPluginRevisionSummary(output.latestRevision, context)
|
|
1695
1641
|
: undefined,
|
|
1696
1642
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -1709,7 +1655,7 @@ const deserializeAws_restJson1KafkaClusterClientAuthenticationDescription = (out
|
|
|
1709
1655
|
};
|
|
1710
1656
|
const deserializeAws_restJson1KafkaClusterDescription = (output, context) => {
|
|
1711
1657
|
return {
|
|
1712
|
-
apacheKafkaCluster: output.apacheKafkaCluster
|
|
1658
|
+
apacheKafkaCluster: output.apacheKafkaCluster != null
|
|
1713
1659
|
? deserializeAws_restJson1ApacheKafkaClusterDescription(output.apacheKafkaCluster, context)
|
|
1714
1660
|
: undefined,
|
|
1715
1661
|
};
|
|
@@ -1721,14 +1667,14 @@ const deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription = (outp
|
|
|
1721
1667
|
};
|
|
1722
1668
|
const deserializeAws_restJson1LogDeliveryDescription = (output, context) => {
|
|
1723
1669
|
return {
|
|
1724
|
-
workerLogDelivery: output.workerLogDelivery
|
|
1670
|
+
workerLogDelivery: output.workerLogDelivery != null
|
|
1725
1671
|
? deserializeAws_restJson1WorkerLogDeliveryDescription(output.workerLogDelivery, context)
|
|
1726
1672
|
: undefined,
|
|
1727
1673
|
};
|
|
1728
1674
|
};
|
|
1729
1675
|
const deserializeAws_restJson1PluginDescription = (output, context) => {
|
|
1730
1676
|
return {
|
|
1731
|
-
customPlugin: output.customPlugin
|
|
1677
|
+
customPlugin: output.customPlugin != null
|
|
1732
1678
|
? deserializeAws_restJson1CustomPluginDescription(output.customPlugin, context)
|
|
1733
1679
|
: undefined,
|
|
1734
1680
|
};
|
|
@@ -1771,12 +1717,10 @@ const deserializeAws_restJson1StateDescription = (output, context) => {
|
|
|
1771
1717
|
};
|
|
1772
1718
|
const deserializeAws_restJson1VpcDescription = (output, context) => {
|
|
1773
1719
|
return {
|
|
1774
|
-
securityGroups: output.securityGroups
|
|
1720
|
+
securityGroups: output.securityGroups != null
|
|
1775
1721
|
? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
|
|
1776
1722
|
: undefined,
|
|
1777
|
-
subnets: output.subnets
|
|
1778
|
-
? deserializeAws_restJson1__listOf__string(output.subnets, context)
|
|
1779
|
-
: undefined,
|
|
1723
|
+
subnets: output.subnets != null ? deserializeAws_restJson1__listOf__string(output.subnets, context) : undefined,
|
|
1780
1724
|
};
|
|
1781
1725
|
};
|
|
1782
1726
|
const deserializeAws_restJson1WorkerConfigurationDescription = (output, context) => {
|
|
@@ -1787,9 +1731,7 @@ const deserializeAws_restJson1WorkerConfigurationDescription = (output, context)
|
|
|
1787
1731
|
};
|
|
1788
1732
|
const deserializeAws_restJson1WorkerConfigurationRevisionDescription = (output, context) => {
|
|
1789
1733
|
return {
|
|
1790
|
-
creationTime: output.creationTime
|
|
1791
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1792
|
-
: undefined,
|
|
1734
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1793
1735
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1794
1736
|
propertiesFileContent: (0, smithy_client_1.expectString)(output.propertiesFileContent),
|
|
1795
1737
|
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
@@ -1797,20 +1739,16 @@ const deserializeAws_restJson1WorkerConfigurationRevisionDescription = (output,
|
|
|
1797
1739
|
};
|
|
1798
1740
|
const deserializeAws_restJson1WorkerConfigurationRevisionSummary = (output, context) => {
|
|
1799
1741
|
return {
|
|
1800
|
-
creationTime: output.creationTime
|
|
1801
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1802
|
-
: undefined,
|
|
1742
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1803
1743
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1804
1744
|
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
1805
1745
|
};
|
|
1806
1746
|
};
|
|
1807
1747
|
const deserializeAws_restJson1WorkerConfigurationSummary = (output, context) => {
|
|
1808
1748
|
return {
|
|
1809
|
-
creationTime: output.creationTime
|
|
1810
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1811
|
-
: undefined,
|
|
1749
|
+
creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
|
|
1812
1750
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1813
|
-
latestRevision: output.latestRevision
|
|
1751
|
+
latestRevision: output.latestRevision != null
|
|
1814
1752
|
? deserializeAws_restJson1WorkerConfigurationRevisionSummary(output.latestRevision, context)
|
|
1815
1753
|
: undefined,
|
|
1816
1754
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
@@ -1819,15 +1757,13 @@ const deserializeAws_restJson1WorkerConfigurationSummary = (output, context) =>
|
|
|
1819
1757
|
};
|
|
1820
1758
|
const deserializeAws_restJson1WorkerLogDeliveryDescription = (output, context) => {
|
|
1821
1759
|
return {
|
|
1822
|
-
cloudWatchLogs: output.cloudWatchLogs
|
|
1760
|
+
cloudWatchLogs: output.cloudWatchLogs != null
|
|
1823
1761
|
? deserializeAws_restJson1CloudWatchLogsLogDeliveryDescription(output.cloudWatchLogs, context)
|
|
1824
1762
|
: undefined,
|
|
1825
|
-
firehose: output.firehose
|
|
1763
|
+
firehose: output.firehose != null
|
|
1826
1764
|
? deserializeAws_restJson1FirehoseLogDeliveryDescription(output.firehose, context)
|
|
1827
1765
|
: undefined,
|
|
1828
|
-
s3: output.s3
|
|
1829
|
-
? deserializeAws_restJson1S3LogDeliveryDescription(output.s3, context)
|
|
1830
|
-
: undefined,
|
|
1766
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3LogDeliveryDescription(output.s3, context) : undefined,
|
|
1831
1767
|
};
|
|
1832
1768
|
};
|
|
1833
1769
|
const deserializeMetadata = (output) => {
|
|
@@ -1861,6 +1797,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1861
1797
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1862
1798
|
const sanitizeErrorCode = (rawValue) => {
|
|
1863
1799
|
let cleanValue = rawValue;
|
|
1800
|
+
if (typeof cleanValue === "number") {
|
|
1801
|
+
cleanValue = cleanValue.toString();
|
|
1802
|
+
}
|
|
1864
1803
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1865
1804
|
cleanValue = cleanValue.split(":")[0];
|
|
1866
1805
|
}
|
|
@@ -14,24 +14,15 @@ export var serializeAws_restJson1CreateConnectorCommand = function (input, conte
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/connectors";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacity
|
|
18
|
-
input.capacity !== null && { capacity: serializeAws_restJson1Capacity(input.capacity, context) })), (input.connectorConfiguration !== undefined &&
|
|
19
|
-
input.connectorConfiguration !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.capacity != null && { capacity: serializeAws_restJson1Capacity(input.capacity, context) })), (input.connectorConfiguration != null && {
|
|
20
18
|
connectorConfiguration: serializeAws_restJson1__mapOf__string(input.connectorConfiguration, context),
|
|
21
|
-
})), (input.connectorDescription
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
input.kafkaClusterClientAuthentication !== null && {
|
|
19
|
+
})), (input.connectorDescription != null && { connectorDescription: input.connectorDescription })), (input.connectorName != null && { connectorName: input.connectorName })), (input.kafkaCluster != null && {
|
|
20
|
+
kafkaCluster: serializeAws_restJson1KafkaCluster(input.kafkaCluster, context),
|
|
21
|
+
})), (input.kafkaClusterClientAuthentication != null && {
|
|
25
22
|
kafkaClusterClientAuthentication: serializeAws_restJson1KafkaClusterClientAuthentication(input.kafkaClusterClientAuthentication, context),
|
|
26
|
-
})), (input.kafkaClusterEncryptionInTransit
|
|
27
|
-
input.kafkaClusterEncryptionInTransit !== null && {
|
|
23
|
+
})), (input.kafkaClusterEncryptionInTransit != null && {
|
|
28
24
|
kafkaClusterEncryptionInTransit: serializeAws_restJson1KafkaClusterEncryptionInTransit(input.kafkaClusterEncryptionInTransit, context),
|
|
29
|
-
})), (input.kafkaConnectVersion
|
|
30
|
-
input.kafkaConnectVersion !== null && { kafkaConnectVersion: input.kafkaConnectVersion })), (input.logDelivery !== undefined &&
|
|
31
|
-
input.logDelivery !== null && { logDelivery: serializeAws_restJson1LogDelivery(input.logDelivery, context) })), (input.plugins !== undefined &&
|
|
32
|
-
input.plugins !== null && { plugins: serializeAws_restJson1__listOfPlugin(input.plugins, context) })), (input.serviceExecutionRoleArn !== undefined &&
|
|
33
|
-
input.serviceExecutionRoleArn !== null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn })), (input.workerConfiguration !== undefined &&
|
|
34
|
-
input.workerConfiguration !== null && {
|
|
25
|
+
})), (input.kafkaConnectVersion != null && { kafkaConnectVersion: input.kafkaConnectVersion })), (input.logDelivery != null && { logDelivery: serializeAws_restJson1LogDelivery(input.logDelivery, context) })), (input.plugins != null && { plugins: serializeAws_restJson1__listOfPlugin(input.plugins, context) })), (input.serviceExecutionRoleArn != null && { serviceExecutionRoleArn: input.serviceExecutionRoleArn })), (input.workerConfiguration != null && {
|
|
35
26
|
workerConfiguration: serializeAws_restJson1WorkerConfiguration(input.workerConfiguration, context),
|
|
36
27
|
})));
|
|
37
28
|
return [2, new __HttpRequest({
|
|
@@ -57,8 +48,7 @@ export var serializeAws_restJson1CreateCustomPluginCommand = function (input, co
|
|
|
57
48
|
"content-type": "application/json",
|
|
58
49
|
};
|
|
59
50
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/custom-plugins";
|
|
60
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentType
|
|
61
|
-
input.location !== null && { location: serializeAws_restJson1CustomPluginLocation(input.location, context) })), (input.name !== undefined && input.name !== null && { name: input.name })));
|
|
51
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.contentType != null && { contentType: input.contentType })), (input.description != null && { description: input.description })), (input.location != null && { location: serializeAws_restJson1CustomPluginLocation(input.location, context) })), (input.name != null && { name: input.name })));
|
|
62
52
|
return [2, new __HttpRequest({
|
|
63
53
|
protocol: protocol,
|
|
64
54
|
hostname: hostname,
|
|
@@ -82,8 +72,7 @@ export var serializeAws_restJson1CreateWorkerConfigurationCommand = function (in
|
|
|
82
72
|
"content-type": "application/json",
|
|
83
73
|
};
|
|
84
74
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/worker-configurations";
|
|
85
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.description
|
|
86
|
-
input.propertiesFileContent !== null && { propertiesFileContent: input.propertiesFileContent })));
|
|
75
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.propertiesFileContent != null && { propertiesFileContent: input.propertiesFileContent })));
|
|
87
76
|
return [2, new __HttpRequest({
|
|
88
77
|
protocol: protocol,
|
|
89
78
|
hostname: hostname,
|
|
@@ -345,8 +334,7 @@ export var serializeAws_restJson1UpdateConnectorCommand = function (input, conte
|
|
|
345
334
|
throw new Error("No value provided for input HTTP label: connectorArn.");
|
|
346
335
|
}
|
|
347
336
|
query = __assign({}, (input.currentVersion !== undefined && { currentVersion: input.currentVersion }));
|
|
348
|
-
body = JSON.stringify(__assign({}, (input.capacity
|
|
349
|
-
input.capacity !== null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) })));
|
|
337
|
+
body = JSON.stringify(__assign({}, (input.capacity != null && { capacity: serializeAws_restJson1CapacityUpdate(input.capacity, context) })));
|
|
350
338
|
return [2, new __HttpRequest({
|
|
351
339
|
protocol: protocol,
|
|
352
340
|
hostname: hostname,
|
|
@@ -1631,131 +1619,103 @@ var serializeAws_restJson1__mapOf__string = function (input, context) {
|
|
|
1631
1619
|
}, {});
|
|
1632
1620
|
};
|
|
1633
1621
|
var serializeAws_restJson1ApacheKafkaCluster = function (input, context) {
|
|
1634
|
-
return __assign(__assign({}, (input.bootstrapServers
|
|
1635
|
-
input.bootstrapServers !== null && { bootstrapServers: input.bootstrapServers })), (input.vpc !== undefined && input.vpc !== null && { vpc: serializeAws_restJson1Vpc(input.vpc, context) }));
|
|
1622
|
+
return __assign(__assign({}, (input.bootstrapServers != null && { bootstrapServers: input.bootstrapServers })), (input.vpc != null && { vpc: serializeAws_restJson1Vpc(input.vpc, context) }));
|
|
1636
1623
|
};
|
|
1637
1624
|
var serializeAws_restJson1AutoScaling = function (input, context) {
|
|
1638
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.maxWorkerCount
|
|
1639
|
-
input.maxWorkerCount !== null && { maxWorkerCount: input.maxWorkerCount })), (input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount })), (input.minWorkerCount !== undefined &&
|
|
1640
|
-
input.minWorkerCount !== null && { minWorkerCount: input.minWorkerCount })), (input.scaleInPolicy !== undefined &&
|
|
1641
|
-
input.scaleInPolicy !== null && {
|
|
1625
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount })), (input.mcuCount != null && { mcuCount: input.mcuCount })), (input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount })), (input.scaleInPolicy != null && {
|
|
1642
1626
|
scaleInPolicy: serializeAws_restJson1ScaleInPolicy(input.scaleInPolicy, context),
|
|
1643
|
-
})), (input.scaleOutPolicy
|
|
1644
|
-
input.scaleOutPolicy !== null && {
|
|
1627
|
+
})), (input.scaleOutPolicy != null && {
|
|
1645
1628
|
scaleOutPolicy: serializeAws_restJson1ScaleOutPolicy(input.scaleOutPolicy, context),
|
|
1646
1629
|
}));
|
|
1647
1630
|
};
|
|
1648
1631
|
var serializeAws_restJson1AutoScalingUpdate = function (input, context) {
|
|
1649
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.maxWorkerCount
|
|
1650
|
-
input.maxWorkerCount !== null && { maxWorkerCount: input.maxWorkerCount })), (input.mcuCount !== undefined && input.mcuCount !== null && { mcuCount: input.mcuCount })), (input.minWorkerCount !== undefined &&
|
|
1651
|
-
input.minWorkerCount !== null && { minWorkerCount: input.minWorkerCount })), (input.scaleInPolicy !== undefined &&
|
|
1652
|
-
input.scaleInPolicy !== null && {
|
|
1632
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.maxWorkerCount != null && { maxWorkerCount: input.maxWorkerCount })), (input.mcuCount != null && { mcuCount: input.mcuCount })), (input.minWorkerCount != null && { minWorkerCount: input.minWorkerCount })), (input.scaleInPolicy != null && {
|
|
1653
1633
|
scaleInPolicy: serializeAws_restJson1ScaleInPolicyUpdate(input.scaleInPolicy, context),
|
|
1654
|
-
})), (input.scaleOutPolicy
|
|
1655
|
-
input.scaleOutPolicy !== null && {
|
|
1634
|
+
})), (input.scaleOutPolicy != null && {
|
|
1656
1635
|
scaleOutPolicy: serializeAws_restJson1ScaleOutPolicyUpdate(input.scaleOutPolicy, context),
|
|
1657
1636
|
}));
|
|
1658
1637
|
};
|
|
1659
1638
|
var serializeAws_restJson1Capacity = function (input, context) {
|
|
1660
|
-
return __assign(__assign({}, (input.autoScaling
|
|
1661
|
-
input.autoScaling !== null && { autoScaling: serializeAws_restJson1AutoScaling(input.autoScaling, context) })), (input.provisionedCapacity !== undefined &&
|
|
1662
|
-
input.provisionedCapacity !== null && {
|
|
1639
|
+
return __assign(__assign({}, (input.autoScaling != null && { autoScaling: serializeAws_restJson1AutoScaling(input.autoScaling, context) })), (input.provisionedCapacity != null && {
|
|
1663
1640
|
provisionedCapacity: serializeAws_restJson1ProvisionedCapacity(input.provisionedCapacity, context),
|
|
1664
1641
|
}));
|
|
1665
1642
|
};
|
|
1666
1643
|
var serializeAws_restJson1CapacityUpdate = function (input, context) {
|
|
1667
|
-
return __assign(__assign({}, (input.autoScaling
|
|
1668
|
-
input.autoScaling !== null && {
|
|
1644
|
+
return __assign(__assign({}, (input.autoScaling != null && {
|
|
1669
1645
|
autoScaling: serializeAws_restJson1AutoScalingUpdate(input.autoScaling, context),
|
|
1670
|
-
})), (input.provisionedCapacity
|
|
1671
|
-
input.provisionedCapacity !== null && {
|
|
1646
|
+
})), (input.provisionedCapacity != null && {
|
|
1672
1647
|
provisionedCapacity: serializeAws_restJson1ProvisionedCapacityUpdate(input.provisionedCapacity, context),
|
|
1673
1648
|
}));
|
|
1674
1649
|
};
|
|
1675
1650
|
var serializeAws_restJson1CloudWatchLogsLogDelivery = function (input, context) {
|
|
1676
|
-
return __assign(__assign({}, (input.enabled
|
|
1651
|
+
return __assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.logGroup != null && { logGroup: input.logGroup }));
|
|
1677
1652
|
};
|
|
1678
1653
|
var serializeAws_restJson1CustomPlugin = function (input, context) {
|
|
1679
|
-
return __assign(__assign({}, (input.customPluginArn
|
|
1680
|
-
input.customPluginArn !== null && { customPluginArn: input.customPluginArn })), (input.revision !== undefined && input.revision !== null && { revision: input.revision }));
|
|
1654
|
+
return __assign(__assign({}, (input.customPluginArn != null && { customPluginArn: input.customPluginArn })), (input.revision != null && { revision: input.revision }));
|
|
1681
1655
|
};
|
|
1682
1656
|
var serializeAws_restJson1CustomPluginLocation = function (input, context) {
|
|
1683
|
-
return __assign({}, (input.s3Location
|
|
1684
|
-
input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }));
|
|
1657
|
+
return __assign({}, (input.s3Location != null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }));
|
|
1685
1658
|
};
|
|
1686
1659
|
var serializeAws_restJson1FirehoseLogDelivery = function (input, context) {
|
|
1687
|
-
return __assign(__assign({}, (input.deliveryStream
|
|
1688
|
-
input.deliveryStream !== null && { deliveryStream: input.deliveryStream })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }));
|
|
1660
|
+
return __assign(__assign({}, (input.deliveryStream != null && { deliveryStream: input.deliveryStream })), (input.enabled != null && { enabled: input.enabled }));
|
|
1689
1661
|
};
|
|
1690
1662
|
var serializeAws_restJson1KafkaCluster = function (input, context) {
|
|
1691
|
-
return __assign({}, (input.apacheKafkaCluster
|
|
1692
|
-
input.apacheKafkaCluster !== null && {
|
|
1663
|
+
return __assign({}, (input.apacheKafkaCluster != null && {
|
|
1693
1664
|
apacheKafkaCluster: serializeAws_restJson1ApacheKafkaCluster(input.apacheKafkaCluster, context),
|
|
1694
1665
|
}));
|
|
1695
1666
|
};
|
|
1696
1667
|
var serializeAws_restJson1KafkaClusterClientAuthentication = function (input, context) {
|
|
1697
|
-
return __assign({}, (input.authenticationType
|
|
1698
|
-
input.authenticationType !== null && { authenticationType: input.authenticationType }));
|
|
1668
|
+
return __assign({}, (input.authenticationType != null && { authenticationType: input.authenticationType }));
|
|
1699
1669
|
};
|
|
1700
1670
|
var serializeAws_restJson1KafkaClusterEncryptionInTransit = function (input, context) {
|
|
1701
|
-
return __assign({}, (input.encryptionType
|
|
1702
|
-
input.encryptionType !== null && { encryptionType: input.encryptionType }));
|
|
1671
|
+
return __assign({}, (input.encryptionType != null && { encryptionType: input.encryptionType }));
|
|
1703
1672
|
};
|
|
1704
1673
|
var serializeAws_restJson1LogDelivery = function (input, context) {
|
|
1705
|
-
return __assign({}, (input.workerLogDelivery
|
|
1706
|
-
input.workerLogDelivery !== null && {
|
|
1674
|
+
return __assign({}, (input.workerLogDelivery != null && {
|
|
1707
1675
|
workerLogDelivery: serializeAws_restJson1WorkerLogDelivery(input.workerLogDelivery, context),
|
|
1708
1676
|
}));
|
|
1709
1677
|
};
|
|
1710
1678
|
var serializeAws_restJson1Plugin = function (input, context) {
|
|
1711
|
-
return __assign({}, (input.customPlugin
|
|
1712
|
-
|
|
1679
|
+
return __assign({}, (input.customPlugin != null && {
|
|
1680
|
+
customPlugin: serializeAws_restJson1CustomPlugin(input.customPlugin, context),
|
|
1681
|
+
}));
|
|
1713
1682
|
};
|
|
1714
1683
|
var serializeAws_restJson1ProvisionedCapacity = function (input, context) {
|
|
1715
|
-
return __assign(__assign({}, (input.mcuCount
|
|
1684
|
+
return __assign(__assign({}, (input.mcuCount != null && { mcuCount: input.mcuCount })), (input.workerCount != null && { workerCount: input.workerCount }));
|
|
1716
1685
|
};
|
|
1717
1686
|
var serializeAws_restJson1ProvisionedCapacityUpdate = function (input, context) {
|
|
1718
|
-
return __assign(__assign({}, (input.mcuCount
|
|
1687
|
+
return __assign(__assign({}, (input.mcuCount != null && { mcuCount: input.mcuCount })), (input.workerCount != null && { workerCount: input.workerCount }));
|
|
1719
1688
|
};
|
|
1720
1689
|
var serializeAws_restJson1S3Location = function (input, context) {
|
|
1721
|
-
return __assign(__assign(__assign({}, (input.bucketArn
|
|
1690
|
+
return __assign(__assign(__assign({}, (input.bucketArn != null && { bucketArn: input.bucketArn })), (input.fileKey != null && { fileKey: input.fileKey })), (input.objectVersion != null && { objectVersion: input.objectVersion }));
|
|
1722
1691
|
};
|
|
1723
1692
|
var serializeAws_restJson1S3LogDelivery = function (input, context) {
|
|
1724
|
-
return __assign(__assign(__assign({}, (input.bucket
|
|
1693
|
+
return __assign(__assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.enabled != null && { enabled: input.enabled })), (input.prefix != null && { prefix: input.prefix }));
|
|
1725
1694
|
};
|
|
1726
1695
|
var serializeAws_restJson1ScaleInPolicy = function (input, context) {
|
|
1727
|
-
return __assign({}, (input.cpuUtilizationPercentage
|
|
1728
|
-
input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
|
|
1696
|
+
return __assign({}, (input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
|
|
1729
1697
|
};
|
|
1730
1698
|
var serializeAws_restJson1ScaleInPolicyUpdate = function (input, context) {
|
|
1731
|
-
return __assign({}, (input.cpuUtilizationPercentage
|
|
1732
|
-
input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
|
|
1699
|
+
return __assign({}, (input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
|
|
1733
1700
|
};
|
|
1734
1701
|
var serializeAws_restJson1ScaleOutPolicy = function (input, context) {
|
|
1735
|
-
return __assign({}, (input.cpuUtilizationPercentage
|
|
1736
|
-
input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
|
|
1702
|
+
return __assign({}, (input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
|
|
1737
1703
|
};
|
|
1738
1704
|
var serializeAws_restJson1ScaleOutPolicyUpdate = function (input, context) {
|
|
1739
|
-
return __assign({}, (input.cpuUtilizationPercentage
|
|
1740
|
-
input.cpuUtilizationPercentage !== null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
|
|
1705
|
+
return __assign({}, (input.cpuUtilizationPercentage != null && { cpuUtilizationPercentage: input.cpuUtilizationPercentage }));
|
|
1741
1706
|
};
|
|
1742
1707
|
var serializeAws_restJson1Vpc = function (input, context) {
|
|
1743
|
-
return __assign(__assign({}, (input.securityGroups
|
|
1744
|
-
input.securityGroups !== null && {
|
|
1708
|
+
return __assign(__assign({}, (input.securityGroups != null && {
|
|
1745
1709
|
securityGroups: serializeAws_restJson1__listOf__string(input.securityGroups, context),
|
|
1746
|
-
})), (input.subnets
|
|
1747
|
-
input.subnets !== null && { subnets: serializeAws_restJson1__listOf__string(input.subnets, context) }));
|
|
1710
|
+
})), (input.subnets != null && { subnets: serializeAws_restJson1__listOf__string(input.subnets, context) }));
|
|
1748
1711
|
};
|
|
1749
1712
|
var serializeAws_restJson1WorkerConfiguration = function (input, context) {
|
|
1750
|
-
return __assign(__assign({}, (input.revision
|
|
1751
|
-
input.workerConfigurationArn !== null && { workerConfigurationArn: input.workerConfigurationArn }));
|
|
1713
|
+
return __assign(__assign({}, (input.revision != null && { revision: input.revision })), (input.workerConfigurationArn != null && { workerConfigurationArn: input.workerConfigurationArn }));
|
|
1752
1714
|
};
|
|
1753
1715
|
var serializeAws_restJson1WorkerLogDelivery = function (input, context) {
|
|
1754
|
-
return __assign(__assign(__assign({}, (input.cloudWatchLogs
|
|
1755
|
-
input.cloudWatchLogs !== null && {
|
|
1716
|
+
return __assign(__assign(__assign({}, (input.cloudWatchLogs != null && {
|
|
1756
1717
|
cloudWatchLogs: serializeAws_restJson1CloudWatchLogsLogDelivery(input.cloudWatchLogs, context),
|
|
1757
|
-
})), (input.firehose
|
|
1758
|
-
input.firehose !== null && { firehose: serializeAws_restJson1FirehoseLogDelivery(input.firehose, context) })), (input.s3 !== undefined && input.s3 !== null && { s3: serializeAws_restJson1S3LogDelivery(input.s3, context) }));
|
|
1718
|
+
})), (input.firehose != null && { firehose: serializeAws_restJson1FirehoseLogDelivery(input.firehose, context) })), (input.s3 != null && { s3: serializeAws_restJson1S3LogDelivery(input.s3, context) }));
|
|
1759
1719
|
};
|
|
1760
1720
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
1761
1721
|
var retVal = (output || [])
|
|
@@ -1825,9 +1785,7 @@ var deserializeAws_restJson1__mapOf__string = function (output, context) {
|
|
|
1825
1785
|
var deserializeAws_restJson1ApacheKafkaClusterDescription = function (output, context) {
|
|
1826
1786
|
return {
|
|
1827
1787
|
bootstrapServers: __expectString(output.bootstrapServers),
|
|
1828
|
-
vpc: output.vpc
|
|
1829
|
-
? deserializeAws_restJson1VpcDescription(output.vpc, context)
|
|
1830
|
-
: undefined,
|
|
1788
|
+
vpc: output.vpc != null ? deserializeAws_restJson1VpcDescription(output.vpc, context) : undefined,
|
|
1831
1789
|
};
|
|
1832
1790
|
};
|
|
1833
1791
|
var deserializeAws_restJson1AutoScalingDescription = function (output, context) {
|
|
@@ -1835,20 +1793,20 @@ var deserializeAws_restJson1AutoScalingDescription = function (output, context)
|
|
|
1835
1793
|
maxWorkerCount: __expectInt32(output.maxWorkerCount),
|
|
1836
1794
|
mcuCount: __expectInt32(output.mcuCount),
|
|
1837
1795
|
minWorkerCount: __expectInt32(output.minWorkerCount),
|
|
1838
|
-
scaleInPolicy: output.scaleInPolicy
|
|
1796
|
+
scaleInPolicy: output.scaleInPolicy != null
|
|
1839
1797
|
? deserializeAws_restJson1ScaleInPolicyDescription(output.scaleInPolicy, context)
|
|
1840
1798
|
: undefined,
|
|
1841
|
-
scaleOutPolicy: output.scaleOutPolicy
|
|
1799
|
+
scaleOutPolicy: output.scaleOutPolicy != null
|
|
1842
1800
|
? deserializeAws_restJson1ScaleOutPolicyDescription(output.scaleOutPolicy, context)
|
|
1843
1801
|
: undefined,
|
|
1844
1802
|
};
|
|
1845
1803
|
};
|
|
1846
1804
|
var deserializeAws_restJson1CapacityDescription = function (output, context) {
|
|
1847
1805
|
return {
|
|
1848
|
-
autoScaling: output.autoScaling
|
|
1806
|
+
autoScaling: output.autoScaling != null
|
|
1849
1807
|
? deserializeAws_restJson1AutoScalingDescription(output.autoScaling, context)
|
|
1850
1808
|
: undefined,
|
|
1851
|
-
provisionedCapacity: output.provisionedCapacity
|
|
1809
|
+
provisionedCapacity: output.provisionedCapacity != null
|
|
1852
1810
|
? deserializeAws_restJson1ProvisionedCapacityDescription(output.provisionedCapacity, context)
|
|
1853
1811
|
: undefined,
|
|
1854
1812
|
};
|
|
@@ -1861,35 +1819,29 @@ var deserializeAws_restJson1CloudWatchLogsLogDeliveryDescription = function (out
|
|
|
1861
1819
|
};
|
|
1862
1820
|
var deserializeAws_restJson1ConnectorSummary = function (output, context) {
|
|
1863
1821
|
return {
|
|
1864
|
-
capacity: output.capacity
|
|
1865
|
-
? deserializeAws_restJson1CapacityDescription(output.capacity, context)
|
|
1866
|
-
: undefined,
|
|
1822
|
+
capacity: output.capacity != null ? deserializeAws_restJson1CapacityDescription(output.capacity, context) : undefined,
|
|
1867
1823
|
connectorArn: __expectString(output.connectorArn),
|
|
1868
1824
|
connectorDescription: __expectString(output.connectorDescription),
|
|
1869
1825
|
connectorName: __expectString(output.connectorName),
|
|
1870
1826
|
connectorState: __expectString(output.connectorState),
|
|
1871
|
-
creationTime: output.creationTime
|
|
1872
|
-
? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
|
|
1873
|
-
: undefined,
|
|
1827
|
+
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
1874
1828
|
currentVersion: __expectString(output.currentVersion),
|
|
1875
|
-
kafkaCluster: output.kafkaCluster
|
|
1829
|
+
kafkaCluster: output.kafkaCluster != null
|
|
1876
1830
|
? deserializeAws_restJson1KafkaClusterDescription(output.kafkaCluster, context)
|
|
1877
1831
|
: undefined,
|
|
1878
|
-
kafkaClusterClientAuthentication: output.kafkaClusterClientAuthentication
|
|
1832
|
+
kafkaClusterClientAuthentication: output.kafkaClusterClientAuthentication != null
|
|
1879
1833
|
? deserializeAws_restJson1KafkaClusterClientAuthenticationDescription(output.kafkaClusterClientAuthentication, context)
|
|
1880
1834
|
: undefined,
|
|
1881
|
-
kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit
|
|
1835
|
+
kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit != null
|
|
1882
1836
|
? deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription(output.kafkaClusterEncryptionInTransit, context)
|
|
1883
1837
|
: undefined,
|
|
1884
1838
|
kafkaConnectVersion: __expectString(output.kafkaConnectVersion),
|
|
1885
|
-
logDelivery: output.logDelivery
|
|
1839
|
+
logDelivery: output.logDelivery != null
|
|
1886
1840
|
? deserializeAws_restJson1LogDeliveryDescription(output.logDelivery, context)
|
|
1887
1841
|
: undefined,
|
|
1888
|
-
plugins: output.plugins
|
|
1889
|
-
? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context)
|
|
1890
|
-
: undefined,
|
|
1842
|
+
plugins: output.plugins != null ? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context) : undefined,
|
|
1891
1843
|
serviceExecutionRoleArn: __expectString(output.serviceExecutionRoleArn),
|
|
1892
|
-
workerConfiguration: output.workerConfiguration
|
|
1844
|
+
workerConfiguration: output.workerConfiguration != null
|
|
1893
1845
|
? deserializeAws_restJson1WorkerConfigurationDescription(output.workerConfiguration, context)
|
|
1894
1846
|
: undefined,
|
|
1895
1847
|
};
|
|
@@ -1908,22 +1860,18 @@ var deserializeAws_restJson1CustomPluginFileDescription = function (output, cont
|
|
|
1908
1860
|
};
|
|
1909
1861
|
var deserializeAws_restJson1CustomPluginLocationDescription = function (output, context) {
|
|
1910
1862
|
return {
|
|
1911
|
-
s3Location: output.s3Location
|
|
1912
|
-
? deserializeAws_restJson1S3LocationDescription(output.s3Location, context)
|
|
1913
|
-
: undefined,
|
|
1863
|
+
s3Location: output.s3Location != null ? deserializeAws_restJson1S3LocationDescription(output.s3Location, context) : undefined,
|
|
1914
1864
|
};
|
|
1915
1865
|
};
|
|
1916
1866
|
var deserializeAws_restJson1CustomPluginRevisionSummary = function (output, context) {
|
|
1917
1867
|
return {
|
|
1918
1868
|
contentType: __expectString(output.contentType),
|
|
1919
|
-
creationTime: output.creationTime
|
|
1920
|
-
? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
|
|
1921
|
-
: undefined,
|
|
1869
|
+
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
1922
1870
|
description: __expectString(output.description),
|
|
1923
|
-
fileDescription: output.fileDescription
|
|
1871
|
+
fileDescription: output.fileDescription != null
|
|
1924
1872
|
? deserializeAws_restJson1CustomPluginFileDescription(output.fileDescription, context)
|
|
1925
1873
|
: undefined,
|
|
1926
|
-
location: output.location
|
|
1874
|
+
location: output.location != null
|
|
1927
1875
|
? deserializeAws_restJson1CustomPluginLocationDescription(output.location, context)
|
|
1928
1876
|
: undefined,
|
|
1929
1877
|
revision: __expectLong(output.revision),
|
|
@@ -1931,13 +1879,11 @@ var deserializeAws_restJson1CustomPluginRevisionSummary = function (output, cont
|
|
|
1931
1879
|
};
|
|
1932
1880
|
var deserializeAws_restJson1CustomPluginSummary = function (output, context) {
|
|
1933
1881
|
return {
|
|
1934
|
-
creationTime: output.creationTime
|
|
1935
|
-
? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
|
|
1936
|
-
: undefined,
|
|
1882
|
+
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
1937
1883
|
customPluginArn: __expectString(output.customPluginArn),
|
|
1938
1884
|
customPluginState: __expectString(output.customPluginState),
|
|
1939
1885
|
description: __expectString(output.description),
|
|
1940
|
-
latestRevision: output.latestRevision
|
|
1886
|
+
latestRevision: output.latestRevision != null
|
|
1941
1887
|
? deserializeAws_restJson1CustomPluginRevisionSummary(output.latestRevision, context)
|
|
1942
1888
|
: undefined,
|
|
1943
1889
|
name: __expectString(output.name),
|
|
@@ -1956,7 +1902,7 @@ var deserializeAws_restJson1KafkaClusterClientAuthenticationDescription = functi
|
|
|
1956
1902
|
};
|
|
1957
1903
|
var deserializeAws_restJson1KafkaClusterDescription = function (output, context) {
|
|
1958
1904
|
return {
|
|
1959
|
-
apacheKafkaCluster: output.apacheKafkaCluster
|
|
1905
|
+
apacheKafkaCluster: output.apacheKafkaCluster != null
|
|
1960
1906
|
? deserializeAws_restJson1ApacheKafkaClusterDescription(output.apacheKafkaCluster, context)
|
|
1961
1907
|
: undefined,
|
|
1962
1908
|
};
|
|
@@ -1968,14 +1914,14 @@ var deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription = functio
|
|
|
1968
1914
|
};
|
|
1969
1915
|
var deserializeAws_restJson1LogDeliveryDescription = function (output, context) {
|
|
1970
1916
|
return {
|
|
1971
|
-
workerLogDelivery: output.workerLogDelivery
|
|
1917
|
+
workerLogDelivery: output.workerLogDelivery != null
|
|
1972
1918
|
? deserializeAws_restJson1WorkerLogDeliveryDescription(output.workerLogDelivery, context)
|
|
1973
1919
|
: undefined,
|
|
1974
1920
|
};
|
|
1975
1921
|
};
|
|
1976
1922
|
var deserializeAws_restJson1PluginDescription = function (output, context) {
|
|
1977
1923
|
return {
|
|
1978
|
-
customPlugin: output.customPlugin
|
|
1924
|
+
customPlugin: output.customPlugin != null
|
|
1979
1925
|
? deserializeAws_restJson1CustomPluginDescription(output.customPlugin, context)
|
|
1980
1926
|
: undefined,
|
|
1981
1927
|
};
|
|
@@ -2018,12 +1964,10 @@ var deserializeAws_restJson1StateDescription = function (output, context) {
|
|
|
2018
1964
|
};
|
|
2019
1965
|
var deserializeAws_restJson1VpcDescription = function (output, context) {
|
|
2020
1966
|
return {
|
|
2021
|
-
securityGroups: output.securityGroups
|
|
1967
|
+
securityGroups: output.securityGroups != null
|
|
2022
1968
|
? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
|
|
2023
1969
|
: undefined,
|
|
2024
|
-
subnets: output.subnets
|
|
2025
|
-
? deserializeAws_restJson1__listOf__string(output.subnets, context)
|
|
2026
|
-
: undefined,
|
|
1970
|
+
subnets: output.subnets != null ? deserializeAws_restJson1__listOf__string(output.subnets, context) : undefined,
|
|
2027
1971
|
};
|
|
2028
1972
|
};
|
|
2029
1973
|
var deserializeAws_restJson1WorkerConfigurationDescription = function (output, context) {
|
|
@@ -2034,9 +1978,7 @@ var deserializeAws_restJson1WorkerConfigurationDescription = function (output, c
|
|
|
2034
1978
|
};
|
|
2035
1979
|
var deserializeAws_restJson1WorkerConfigurationRevisionDescription = function (output, context) {
|
|
2036
1980
|
return {
|
|
2037
|
-
creationTime: output.creationTime
|
|
2038
|
-
? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
|
|
2039
|
-
: undefined,
|
|
1981
|
+
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
2040
1982
|
description: __expectString(output.description),
|
|
2041
1983
|
propertiesFileContent: __expectString(output.propertiesFileContent),
|
|
2042
1984
|
revision: __expectLong(output.revision),
|
|
@@ -2044,20 +1986,16 @@ var deserializeAws_restJson1WorkerConfigurationRevisionDescription = function (o
|
|
|
2044
1986
|
};
|
|
2045
1987
|
var deserializeAws_restJson1WorkerConfigurationRevisionSummary = function (output, context) {
|
|
2046
1988
|
return {
|
|
2047
|
-
creationTime: output.creationTime
|
|
2048
|
-
? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
|
|
2049
|
-
: undefined,
|
|
1989
|
+
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
2050
1990
|
description: __expectString(output.description),
|
|
2051
1991
|
revision: __expectLong(output.revision),
|
|
2052
1992
|
};
|
|
2053
1993
|
};
|
|
2054
1994
|
var deserializeAws_restJson1WorkerConfigurationSummary = function (output, context) {
|
|
2055
1995
|
return {
|
|
2056
|
-
creationTime: output.creationTime
|
|
2057
|
-
? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
|
|
2058
|
-
: undefined,
|
|
1996
|
+
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
2059
1997
|
description: __expectString(output.description),
|
|
2060
|
-
latestRevision: output.latestRevision
|
|
1998
|
+
latestRevision: output.latestRevision != null
|
|
2061
1999
|
? deserializeAws_restJson1WorkerConfigurationRevisionSummary(output.latestRevision, context)
|
|
2062
2000
|
: undefined,
|
|
2063
2001
|
name: __expectString(output.name),
|
|
@@ -2066,15 +2004,13 @@ var deserializeAws_restJson1WorkerConfigurationSummary = function (output, conte
|
|
|
2066
2004
|
};
|
|
2067
2005
|
var deserializeAws_restJson1WorkerLogDeliveryDescription = function (output, context) {
|
|
2068
2006
|
return {
|
|
2069
|
-
cloudWatchLogs: output.cloudWatchLogs
|
|
2007
|
+
cloudWatchLogs: output.cloudWatchLogs != null
|
|
2070
2008
|
? deserializeAws_restJson1CloudWatchLogsLogDeliveryDescription(output.cloudWatchLogs, context)
|
|
2071
2009
|
: undefined,
|
|
2072
|
-
firehose: output.firehose
|
|
2010
|
+
firehose: output.firehose != null
|
|
2073
2011
|
? deserializeAws_restJson1FirehoseLogDeliveryDescription(output.firehose, context)
|
|
2074
2012
|
: undefined,
|
|
2075
|
-
s3: output.s3
|
|
2076
|
-
? deserializeAws_restJson1S3LogDeliveryDescription(output.s3, context)
|
|
2077
|
-
: undefined,
|
|
2013
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3LogDeliveryDescription(output.s3, context) : undefined,
|
|
2078
2014
|
};
|
|
2079
2015
|
};
|
|
2080
2016
|
var deserializeMetadata = function (output) {
|
|
@@ -2115,6 +2051,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2115
2051
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2116
2052
|
var sanitizeErrorCode = function (rawValue) {
|
|
2117
2053
|
var cleanValue = rawValue;
|
|
2054
|
+
if (typeof cleanValue === "number") {
|
|
2055
|
+
cleanValue = cleanValue.toString();
|
|
2056
|
+
}
|
|
2118
2057
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2119
2058
|
cleanValue = cleanValue.split(":")[0];
|
|
2120
2059
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kafkaconnect",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kafkaconnect Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|