@aws-sdk/client-compute-optimizer 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_json1_0.js +159 -238
- package/dist-es/protocols/Aws_json1_0.js +103 -182
- package/package.json +26 -26
|
@@ -1321,30 +1321,25 @@ const serializeAws_json1_0CpuVendorArchitectures = (input, context) => {
|
|
|
1321
1321
|
};
|
|
1322
1322
|
const serializeAws_json1_0DeleteRecommendationPreferencesRequest = (input, context) => {
|
|
1323
1323
|
return {
|
|
1324
|
-
...(input.recommendationPreferenceNames
|
|
1325
|
-
input.recommendationPreferenceNames !== null && {
|
|
1324
|
+
...(input.recommendationPreferenceNames != null && {
|
|
1326
1325
|
recommendationPreferenceNames: serializeAws_json1_0RecommendationPreferenceNames(input.recommendationPreferenceNames, context),
|
|
1327
1326
|
}),
|
|
1328
|
-
...(input.resourceType
|
|
1329
|
-
...(input.scope
|
|
1330
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1327
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1328
|
+
...(input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1331
1329
|
};
|
|
1332
1330
|
};
|
|
1333
1331
|
const serializeAws_json1_0DescribeRecommendationExportJobsRequest = (input, context) => {
|
|
1334
1332
|
return {
|
|
1335
|
-
...(input.filters
|
|
1336
|
-
|
|
1337
|
-
...(input.
|
|
1338
|
-
|
|
1339
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
1340
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1333
|
+
...(input.filters != null && { filters: serializeAws_json1_0JobFilters(input.filters, context) }),
|
|
1334
|
+
...(input.jobIds != null && { jobIds: serializeAws_json1_0JobIds(input.jobIds, context) }),
|
|
1335
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1336
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1341
1337
|
};
|
|
1342
1338
|
};
|
|
1343
1339
|
const serializeAws_json1_0EBSFilter = (input, context) => {
|
|
1344
1340
|
return {
|
|
1345
|
-
...(input.name
|
|
1346
|
-
...(input.values
|
|
1347
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1341
|
+
...(input.name != null && { name: input.name }),
|
|
1342
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1348
1343
|
};
|
|
1349
1344
|
};
|
|
1350
1345
|
const serializeAws_json1_0EBSFilters = (input, context) => {
|
|
@@ -1359,9 +1354,8 @@ const serializeAws_json1_0EBSFilters = (input, context) => {
|
|
|
1359
1354
|
};
|
|
1360
1355
|
const serializeAws_json1_0EnrollmentFilter = (input, context) => {
|
|
1361
1356
|
return {
|
|
1362
|
-
...(input.name
|
|
1363
|
-
...(input.values
|
|
1364
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1357
|
+
...(input.name != null && { name: input.name }),
|
|
1358
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1365
1359
|
};
|
|
1366
1360
|
};
|
|
1367
1361
|
const serializeAws_json1_0EnrollmentFilters = (input, context) => {
|
|
@@ -1416,95 +1410,72 @@ const serializeAws_json1_0ExportableVolumeFields = (input, context) => {
|
|
|
1416
1410
|
};
|
|
1417
1411
|
const serializeAws_json1_0ExportAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1418
1412
|
return {
|
|
1419
|
-
...(input.accountIds
|
|
1420
|
-
|
|
1421
|
-
...(input.fieldsToExport !== undefined &&
|
|
1422
|
-
input.fieldsToExport !== null && {
|
|
1413
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1414
|
+
...(input.fieldsToExport != null && {
|
|
1423
1415
|
fieldsToExport: serializeAws_json1_0ExportableAutoScalingGroupFields(input.fieldsToExport, context),
|
|
1424
1416
|
}),
|
|
1425
|
-
...(input.fileFormat
|
|
1426
|
-
...(input.filters
|
|
1427
|
-
|
|
1428
|
-
...(input.
|
|
1429
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1430
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1431
|
-
input.recommendationPreferences !== null && {
|
|
1417
|
+
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1418
|
+
...(input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) }),
|
|
1419
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1420
|
+
...(input.recommendationPreferences != null && {
|
|
1432
1421
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1433
1422
|
}),
|
|
1434
|
-
...(input.s3DestinationConfig
|
|
1435
|
-
input.s3DestinationConfig !== null && {
|
|
1423
|
+
...(input.s3DestinationConfig != null && {
|
|
1436
1424
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1437
1425
|
}),
|
|
1438
1426
|
};
|
|
1439
1427
|
};
|
|
1440
1428
|
const serializeAws_json1_0ExportEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1441
1429
|
return {
|
|
1442
|
-
...(input.accountIds
|
|
1443
|
-
|
|
1444
|
-
...(input.fieldsToExport !== undefined &&
|
|
1445
|
-
input.fieldsToExport !== null && {
|
|
1430
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1431
|
+
...(input.fieldsToExport != null && {
|
|
1446
1432
|
fieldsToExport: serializeAws_json1_0ExportableVolumeFields(input.fieldsToExport, context),
|
|
1447
1433
|
}),
|
|
1448
|
-
...(input.fileFormat
|
|
1449
|
-
...(input.filters
|
|
1450
|
-
|
|
1451
|
-
...(input.
|
|
1452
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1453
|
-
...(input.s3DestinationConfig !== undefined &&
|
|
1454
|
-
input.s3DestinationConfig !== null && {
|
|
1434
|
+
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1435
|
+
...(input.filters != null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) }),
|
|
1436
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1437
|
+
...(input.s3DestinationConfig != null && {
|
|
1455
1438
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1456
1439
|
}),
|
|
1457
1440
|
};
|
|
1458
1441
|
};
|
|
1459
1442
|
const serializeAws_json1_0ExportEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1460
1443
|
return {
|
|
1461
|
-
...(input.accountIds
|
|
1462
|
-
|
|
1463
|
-
...(input.fieldsToExport !== undefined &&
|
|
1464
|
-
input.fieldsToExport !== null && {
|
|
1444
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1445
|
+
...(input.fieldsToExport != null && {
|
|
1465
1446
|
fieldsToExport: serializeAws_json1_0ExportableInstanceFields(input.fieldsToExport, context),
|
|
1466
1447
|
}),
|
|
1467
|
-
...(input.fileFormat
|
|
1468
|
-
...(input.filters
|
|
1469
|
-
|
|
1470
|
-
...(input.
|
|
1471
|
-
input.includeMemberAccounts !== null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1472
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1473
|
-
input.recommendationPreferences !== null && {
|
|
1448
|
+
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1449
|
+
...(input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) }),
|
|
1450
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1451
|
+
...(input.recommendationPreferences != null && {
|
|
1474
1452
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1475
1453
|
}),
|
|
1476
|
-
...(input.s3DestinationConfig
|
|
1477
|
-
input.s3DestinationConfig !== null && {
|
|
1454
|
+
...(input.s3DestinationConfig != null && {
|
|
1478
1455
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1479
1456
|
}),
|
|
1480
1457
|
};
|
|
1481
1458
|
};
|
|
1482
1459
|
const serializeAws_json1_0ExportLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1483
1460
|
return {
|
|
1484
|
-
...(input.accountIds
|
|
1485
|
-
|
|
1486
|
-
...(input.fieldsToExport !== undefined &&
|
|
1487
|
-
input.fieldsToExport !== null && {
|
|
1461
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1462
|
+
...(input.fieldsToExport != null && {
|
|
1488
1463
|
fieldsToExport: serializeAws_json1_0ExportableLambdaFunctionFields(input.fieldsToExport, context),
|
|
1489
1464
|
}),
|
|
1490
|
-
...(input.fileFormat
|
|
1491
|
-
...(input.filters
|
|
1492
|
-
input.filters !== null && {
|
|
1465
|
+
...(input.fileFormat != null && { fileFormat: input.fileFormat }),
|
|
1466
|
+
...(input.filters != null && {
|
|
1493
1467
|
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1494
1468
|
}),
|
|
1495
|
-
...(input.includeMemberAccounts
|
|
1496
|
-
|
|
1497
|
-
...(input.s3DestinationConfig !== undefined &&
|
|
1498
|
-
input.s3DestinationConfig !== null && {
|
|
1469
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1470
|
+
...(input.s3DestinationConfig != null && {
|
|
1499
1471
|
s3DestinationConfig: serializeAws_json1_0S3DestinationConfig(input.s3DestinationConfig, context),
|
|
1500
1472
|
}),
|
|
1501
1473
|
};
|
|
1502
1474
|
};
|
|
1503
1475
|
const serializeAws_json1_0Filter = (input, context) => {
|
|
1504
1476
|
return {
|
|
1505
|
-
...(input.name
|
|
1506
|
-
...(input.values
|
|
1507
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1477
|
+
...(input.name != null && { name: input.name }),
|
|
1478
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1508
1479
|
};
|
|
1509
1480
|
};
|
|
1510
1481
|
const serializeAws_json1_0Filters = (input, context) => {
|
|
@@ -1539,76 +1510,61 @@ const serializeAws_json1_0FunctionArns = (input, context) => {
|
|
|
1539
1510
|
};
|
|
1540
1511
|
const serializeAws_json1_0GetAutoScalingGroupRecommendationsRequest = (input, context) => {
|
|
1541
1512
|
return {
|
|
1542
|
-
...(input.accountIds
|
|
1543
|
-
|
|
1544
|
-
...(input.autoScalingGroupArns !== undefined &&
|
|
1545
|
-
input.autoScalingGroupArns !== null && {
|
|
1513
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1514
|
+
...(input.autoScalingGroupArns != null && {
|
|
1546
1515
|
autoScalingGroupArns: serializeAws_json1_0AutoScalingGroupArns(input.autoScalingGroupArns, context),
|
|
1547
1516
|
}),
|
|
1548
|
-
...(input.filters
|
|
1549
|
-
|
|
1550
|
-
...(input.
|
|
1551
|
-
...(input.
|
|
1552
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1553
|
-
input.recommendationPreferences !== null && {
|
|
1517
|
+
...(input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) }),
|
|
1518
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1519
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1520
|
+
...(input.recommendationPreferences != null && {
|
|
1554
1521
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1555
1522
|
}),
|
|
1556
1523
|
};
|
|
1557
1524
|
};
|
|
1558
1525
|
const serializeAws_json1_0GetEBSVolumeRecommendationsRequest = (input, context) => {
|
|
1559
1526
|
return {
|
|
1560
|
-
...(input.accountIds
|
|
1561
|
-
|
|
1562
|
-
...(input.
|
|
1563
|
-
|
|
1564
|
-
...(input.
|
|
1565
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1566
|
-
...(input.volumeArns !== undefined &&
|
|
1567
|
-
input.volumeArns !== null && { volumeArns: serializeAws_json1_0VolumeArns(input.volumeArns, context) }),
|
|
1527
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1528
|
+
...(input.filters != null && { filters: serializeAws_json1_0EBSFilters(input.filters, context) }),
|
|
1529
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1530
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1531
|
+
...(input.volumeArns != null && { volumeArns: serializeAws_json1_0VolumeArns(input.volumeArns, context) }),
|
|
1568
1532
|
};
|
|
1569
1533
|
};
|
|
1570
1534
|
const serializeAws_json1_0GetEC2InstanceRecommendationsRequest = (input, context) => {
|
|
1571
1535
|
return {
|
|
1572
|
-
...(input.accountIds
|
|
1573
|
-
|
|
1574
|
-
...(input.
|
|
1575
|
-
|
|
1576
|
-
...(input.
|
|
1577
|
-
|
|
1578
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
1579
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1580
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1581
|
-
input.recommendationPreferences !== null && {
|
|
1536
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1537
|
+
...(input.filters != null && { filters: serializeAws_json1_0Filters(input.filters, context) }),
|
|
1538
|
+
...(input.instanceArns != null && { instanceArns: serializeAws_json1_0InstanceArns(input.instanceArns, context) }),
|
|
1539
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1540
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1541
|
+
...(input.recommendationPreferences != null && {
|
|
1582
1542
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1583
1543
|
}),
|
|
1584
1544
|
};
|
|
1585
1545
|
};
|
|
1586
1546
|
const serializeAws_json1_0GetEC2RecommendationProjectedMetricsRequest = (input, context) => {
|
|
1587
1547
|
return {
|
|
1588
|
-
...(input.endTime
|
|
1589
|
-
|
|
1590
|
-
...(input.
|
|
1591
|
-
...(input.
|
|
1592
|
-
...(input.recommendationPreferences !== undefined &&
|
|
1593
|
-
input.recommendationPreferences !== null && {
|
|
1548
|
+
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
1549
|
+
...(input.instanceArn != null && { instanceArn: input.instanceArn }),
|
|
1550
|
+
...(input.period != null && { period: input.period }),
|
|
1551
|
+
...(input.recommendationPreferences != null && {
|
|
1594
1552
|
recommendationPreferences: serializeAws_json1_0RecommendationPreferences(input.recommendationPreferences, context),
|
|
1595
1553
|
}),
|
|
1596
|
-
...(input.startTime
|
|
1597
|
-
|
|
1598
|
-
...(input.stat !== undefined && input.stat !== null && { stat: input.stat }),
|
|
1554
|
+
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
1555
|
+
...(input.stat != null && { stat: input.stat }),
|
|
1599
1556
|
};
|
|
1600
1557
|
};
|
|
1601
1558
|
const serializeAws_json1_0GetEffectiveRecommendationPreferencesRequest = (input, context) => {
|
|
1602
1559
|
return {
|
|
1603
|
-
...(input.resourceArn
|
|
1560
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1604
1561
|
};
|
|
1605
1562
|
};
|
|
1606
1563
|
const serializeAws_json1_0GetEnrollmentStatusesForOrganizationRequest = (input, context) => {
|
|
1607
1564
|
return {
|
|
1608
|
-
...(input.filters
|
|
1609
|
-
|
|
1610
|
-
...(input.
|
|
1611
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1565
|
+
...(input.filters != null && { filters: serializeAws_json1_0EnrollmentFilters(input.filters, context) }),
|
|
1566
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1567
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1612
1568
|
};
|
|
1613
1569
|
};
|
|
1614
1570
|
const serializeAws_json1_0GetEnrollmentStatusRequest = (input, context) => {
|
|
@@ -1616,33 +1572,28 @@ const serializeAws_json1_0GetEnrollmentStatusRequest = (input, context) => {
|
|
|
1616
1572
|
};
|
|
1617
1573
|
const serializeAws_json1_0GetLambdaFunctionRecommendationsRequest = (input, context) => {
|
|
1618
1574
|
return {
|
|
1619
|
-
...(input.accountIds
|
|
1620
|
-
|
|
1621
|
-
...(input.filters !== undefined &&
|
|
1622
|
-
input.filters !== null && {
|
|
1575
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1576
|
+
...(input.filters != null && {
|
|
1623
1577
|
filters: serializeAws_json1_0LambdaFunctionRecommendationFilters(input.filters, context),
|
|
1624
1578
|
}),
|
|
1625
|
-
...(input.functionArns
|
|
1626
|
-
|
|
1627
|
-
...(input.
|
|
1628
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1579
|
+
...(input.functionArns != null && { functionArns: serializeAws_json1_0FunctionArns(input.functionArns, context) }),
|
|
1580
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1581
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1629
1582
|
};
|
|
1630
1583
|
};
|
|
1631
1584
|
const serializeAws_json1_0GetRecommendationPreferencesRequest = (input, context) => {
|
|
1632
1585
|
return {
|
|
1633
|
-
...(input.maxResults
|
|
1634
|
-
...(input.nextToken
|
|
1635
|
-
...(input.resourceType
|
|
1636
|
-
...(input.scope
|
|
1637
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1586
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1587
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1588
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1589
|
+
...(input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1638
1590
|
};
|
|
1639
1591
|
};
|
|
1640
1592
|
const serializeAws_json1_0GetRecommendationSummariesRequest = (input, context) => {
|
|
1641
1593
|
return {
|
|
1642
|
-
...(input.accountIds
|
|
1643
|
-
|
|
1644
|
-
...(input.
|
|
1645
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1594
|
+
...(input.accountIds != null && { accountIds: serializeAws_json1_0AccountIds(input.accountIds, context) }),
|
|
1595
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1596
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1646
1597
|
};
|
|
1647
1598
|
};
|
|
1648
1599
|
const serializeAws_json1_0InstanceArns = (input, context) => {
|
|
@@ -1657,9 +1608,8 @@ const serializeAws_json1_0InstanceArns = (input, context) => {
|
|
|
1657
1608
|
};
|
|
1658
1609
|
const serializeAws_json1_0JobFilter = (input, context) => {
|
|
1659
1610
|
return {
|
|
1660
|
-
...(input.name
|
|
1661
|
-
...(input.values
|
|
1662
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1611
|
+
...(input.name != null && { name: input.name }),
|
|
1612
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1663
1613
|
};
|
|
1664
1614
|
};
|
|
1665
1615
|
const serializeAws_json1_0JobFilters = (input, context) => {
|
|
@@ -1684,9 +1634,8 @@ const serializeAws_json1_0JobIds = (input, context) => {
|
|
|
1684
1634
|
};
|
|
1685
1635
|
const serializeAws_json1_0LambdaFunctionRecommendationFilter = (input, context) => {
|
|
1686
1636
|
return {
|
|
1687
|
-
...(input.name
|
|
1688
|
-
...(input.values
|
|
1689
|
-
input.values !== null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1637
|
+
...(input.name != null && { name: input.name }),
|
|
1638
|
+
...(input.values != null && { values: serializeAws_json1_0FilterValues(input.values, context) }),
|
|
1690
1639
|
};
|
|
1691
1640
|
};
|
|
1692
1641
|
const serializeAws_json1_0LambdaFunctionRecommendationFilters = (input, context) => {
|
|
@@ -1701,15 +1650,12 @@ const serializeAws_json1_0LambdaFunctionRecommendationFilters = (input, context)
|
|
|
1701
1650
|
};
|
|
1702
1651
|
const serializeAws_json1_0PutRecommendationPreferencesRequest = (input, context) => {
|
|
1703
1652
|
return {
|
|
1704
|
-
...(input.enhancedInfrastructureMetrics
|
|
1705
|
-
input.enhancedInfrastructureMetrics !== null && {
|
|
1653
|
+
...(input.enhancedInfrastructureMetrics != null && {
|
|
1706
1654
|
enhancedInfrastructureMetrics: input.enhancedInfrastructureMetrics,
|
|
1707
1655
|
}),
|
|
1708
|
-
...(input.inferredWorkloadTypes
|
|
1709
|
-
|
|
1710
|
-
...(input.
|
|
1711
|
-
...(input.scope !== undefined &&
|
|
1712
|
-
input.scope !== null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1656
|
+
...(input.inferredWorkloadTypes != null && { inferredWorkloadTypes: input.inferredWorkloadTypes }),
|
|
1657
|
+
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1658
|
+
...(input.scope != null && { scope: serializeAws_json1_0Scope(input.scope, context) }),
|
|
1713
1659
|
};
|
|
1714
1660
|
};
|
|
1715
1661
|
const serializeAws_json1_0RecommendationPreferenceNames = (input, context) => {
|
|
@@ -1724,29 +1670,27 @@ const serializeAws_json1_0RecommendationPreferenceNames = (input, context) => {
|
|
|
1724
1670
|
};
|
|
1725
1671
|
const serializeAws_json1_0RecommendationPreferences = (input, context) => {
|
|
1726
1672
|
return {
|
|
1727
|
-
...(input.cpuVendorArchitectures
|
|
1728
|
-
input.cpuVendorArchitectures !== null && {
|
|
1673
|
+
...(input.cpuVendorArchitectures != null && {
|
|
1729
1674
|
cpuVendorArchitectures: serializeAws_json1_0CpuVendorArchitectures(input.cpuVendorArchitectures, context),
|
|
1730
1675
|
}),
|
|
1731
1676
|
};
|
|
1732
1677
|
};
|
|
1733
1678
|
const serializeAws_json1_0S3DestinationConfig = (input, context) => {
|
|
1734
1679
|
return {
|
|
1735
|
-
...(input.bucket
|
|
1736
|
-
...(input.keyPrefix
|
|
1680
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
1681
|
+
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
1737
1682
|
};
|
|
1738
1683
|
};
|
|
1739
1684
|
const serializeAws_json1_0Scope = (input, context) => {
|
|
1740
1685
|
return {
|
|
1741
|
-
...(input.name
|
|
1742
|
-
...(input.value
|
|
1686
|
+
...(input.name != null && { name: input.name }),
|
|
1687
|
+
...(input.value != null && { value: input.value }),
|
|
1743
1688
|
};
|
|
1744
1689
|
};
|
|
1745
1690
|
const serializeAws_json1_0UpdateEnrollmentStatusRequest = (input, context) => {
|
|
1746
1691
|
return {
|
|
1747
|
-
...(input.includeMemberAccounts
|
|
1748
|
-
|
|
1749
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
1692
|
+
...(input.includeMemberAccounts != null && { includeMemberAccounts: input.includeMemberAccounts }),
|
|
1693
|
+
...(input.status != null && { status: input.status }),
|
|
1750
1694
|
};
|
|
1751
1695
|
};
|
|
1752
1696
|
const serializeAws_json1_0VolumeArns = (input, context) => {
|
|
@@ -1767,7 +1711,7 @@ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
|
1767
1711
|
const deserializeAws_json1_0AccountEnrollmentStatus = (output, context) => {
|
|
1768
1712
|
return {
|
|
1769
1713
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
1770
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
1714
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
1771
1715
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTimestamp)))
|
|
1772
1716
|
: undefined,
|
|
1773
1717
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -1798,41 +1742,41 @@ const deserializeAws_json1_0AutoScalingGroupRecommendation = (output, context) =
|
|
|
1798
1742
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
1799
1743
|
autoScalingGroupArn: (0, smithy_client_1.expectString)(output.autoScalingGroupArn),
|
|
1800
1744
|
autoScalingGroupName: (0, smithy_client_1.expectString)(output.autoScalingGroupName),
|
|
1801
|
-
currentConfiguration: output.currentConfiguration
|
|
1745
|
+
currentConfiguration: output.currentConfiguration != null
|
|
1802
1746
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.currentConfiguration, context)
|
|
1803
1747
|
: undefined,
|
|
1804
1748
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
1805
|
-
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences
|
|
1749
|
+
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
1806
1750
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
1807
1751
|
: undefined,
|
|
1808
1752
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
1809
|
-
inferredWorkloadTypes: output.inferredWorkloadTypes
|
|
1753
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
1810
1754
|
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
1811
1755
|
: undefined,
|
|
1812
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
1756
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
1813
1757
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
1814
1758
|
: undefined,
|
|
1815
1759
|
lookBackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookBackPeriodInDays),
|
|
1816
|
-
recommendationOptions: output.recommendationOptions
|
|
1760
|
+
recommendationOptions: output.recommendationOptions != null
|
|
1817
1761
|
? deserializeAws_json1_0AutoScalingGroupRecommendationOptions(output.recommendationOptions, context)
|
|
1818
1762
|
: undefined,
|
|
1819
|
-
utilizationMetrics: output.utilizationMetrics
|
|
1763
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
1820
1764
|
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
1821
1765
|
: undefined,
|
|
1822
1766
|
};
|
|
1823
1767
|
};
|
|
1824
1768
|
const deserializeAws_json1_0AutoScalingGroupRecommendationOption = (output, context) => {
|
|
1825
1769
|
return {
|
|
1826
|
-
configuration: output.configuration
|
|
1770
|
+
configuration: output.configuration != null
|
|
1827
1771
|
? deserializeAws_json1_0AutoScalingGroupConfiguration(output.configuration, context)
|
|
1828
1772
|
: undefined,
|
|
1829
1773
|
migrationEffort: (0, smithy_client_1.expectString)(output.migrationEffort),
|
|
1830
1774
|
performanceRisk: (0, smithy_client_1.limitedParseDouble)(output.performanceRisk),
|
|
1831
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
1775
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
1832
1776
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
1833
1777
|
: undefined,
|
|
1834
1778
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
1835
|
-
savingsOpportunity: output.savingsOpportunity
|
|
1779
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
1836
1780
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
1837
1781
|
: undefined,
|
|
1838
1782
|
};
|
|
@@ -1884,7 +1828,7 @@ const deserializeAws_json1_0DeleteRecommendationPreferencesResponse = (output, c
|
|
|
1884
1828
|
const deserializeAws_json1_0DescribeRecommendationExportJobsResponse = (output, context) => {
|
|
1885
1829
|
return {
|
|
1886
1830
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1887
|
-
recommendationExportJobs: output.recommendationExportJobs
|
|
1831
|
+
recommendationExportJobs: output.recommendationExportJobs != null
|
|
1888
1832
|
? deserializeAws_json1_0RecommendationExportJobs(output.recommendationExportJobs, context)
|
|
1889
1833
|
: undefined,
|
|
1890
1834
|
};
|
|
@@ -1909,7 +1853,7 @@ const deserializeAws_json1_0EBSUtilizationMetrics = (output, context) => {
|
|
|
1909
1853
|
};
|
|
1910
1854
|
const deserializeAws_json1_0EffectiveRecommendationPreferences = (output, context) => {
|
|
1911
1855
|
return {
|
|
1912
|
-
cpuVendorArchitectures: output.cpuVendorArchitectures
|
|
1856
|
+
cpuVendorArchitectures: output.cpuVendorArchitectures != null
|
|
1913
1857
|
? deserializeAws_json1_0CpuVendorArchitectures(output.cpuVendorArchitectures, context)
|
|
1914
1858
|
: undefined,
|
|
1915
1859
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
@@ -1925,70 +1869,54 @@ const deserializeAws_json1_0EstimatedMonthlySavings = (output, context) => {
|
|
|
1925
1869
|
const deserializeAws_json1_0ExportAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
1926
1870
|
return {
|
|
1927
1871
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1928
|
-
s3Destination: output.s3Destination
|
|
1929
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
1930
|
-
: undefined,
|
|
1872
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1931
1873
|
};
|
|
1932
1874
|
};
|
|
1933
1875
|
const deserializeAws_json1_0ExportDestination = (output, context) => {
|
|
1934
1876
|
return {
|
|
1935
|
-
s3: output.s3
|
|
1936
|
-
? deserializeAws_json1_0S3Destination(output.s3, context)
|
|
1937
|
-
: undefined,
|
|
1877
|
+
s3: output.s3 != null ? deserializeAws_json1_0S3Destination(output.s3, context) : undefined,
|
|
1938
1878
|
};
|
|
1939
1879
|
};
|
|
1940
1880
|
const deserializeAws_json1_0ExportEBSVolumeRecommendationsResponse = (output, context) => {
|
|
1941
1881
|
return {
|
|
1942
1882
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1943
|
-
s3Destination: output.s3Destination
|
|
1944
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
1945
|
-
: undefined,
|
|
1883
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1946
1884
|
};
|
|
1947
1885
|
};
|
|
1948
1886
|
const deserializeAws_json1_0ExportEC2InstanceRecommendationsResponse = (output, context) => {
|
|
1949
1887
|
return {
|
|
1950
1888
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1951
|
-
s3Destination: output.s3Destination
|
|
1952
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
1953
|
-
: undefined,
|
|
1889
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1954
1890
|
};
|
|
1955
1891
|
};
|
|
1956
1892
|
const deserializeAws_json1_0ExportLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
1957
1893
|
return {
|
|
1958
1894
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
1959
|
-
s3Destination: output.s3Destination
|
|
1960
|
-
? deserializeAws_json1_0S3Destination(output.s3Destination, context)
|
|
1961
|
-
: undefined,
|
|
1895
|
+
s3Destination: output.s3Destination != null ? deserializeAws_json1_0S3Destination(output.s3Destination, context) : undefined,
|
|
1962
1896
|
};
|
|
1963
1897
|
};
|
|
1964
1898
|
const deserializeAws_json1_0GetAutoScalingGroupRecommendationsResponse = (output, context) => {
|
|
1965
1899
|
return {
|
|
1966
|
-
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations
|
|
1900
|
+
autoScalingGroupRecommendations: output.autoScalingGroupRecommendations != null
|
|
1967
1901
|
? deserializeAws_json1_0AutoScalingGroupRecommendations(output.autoScalingGroupRecommendations, context)
|
|
1968
1902
|
: undefined,
|
|
1969
|
-
errors: output.errors
|
|
1970
|
-
? deserializeAws_json1_0GetRecommendationErrors(output.errors, context)
|
|
1971
|
-
: undefined,
|
|
1903
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
1972
1904
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1973
1905
|
};
|
|
1974
1906
|
};
|
|
1975
1907
|
const deserializeAws_json1_0GetEBSVolumeRecommendationsResponse = (output, context) => {
|
|
1976
1908
|
return {
|
|
1977
|
-
errors: output.errors
|
|
1978
|
-
? deserializeAws_json1_0GetRecommendationErrors(output.errors, context)
|
|
1979
|
-
: undefined,
|
|
1909
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
1980
1910
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1981
|
-
volumeRecommendations: output.volumeRecommendations
|
|
1911
|
+
volumeRecommendations: output.volumeRecommendations != null
|
|
1982
1912
|
? deserializeAws_json1_0VolumeRecommendations(output.volumeRecommendations, context)
|
|
1983
1913
|
: undefined,
|
|
1984
1914
|
};
|
|
1985
1915
|
};
|
|
1986
1916
|
const deserializeAws_json1_0GetEC2InstanceRecommendationsResponse = (output, context) => {
|
|
1987
1917
|
return {
|
|
1988
|
-
errors: output.errors
|
|
1989
|
-
|
|
1990
|
-
: undefined,
|
|
1991
|
-
instanceRecommendations: output.instanceRecommendations !== undefined && output.instanceRecommendations !== null
|
|
1918
|
+
errors: output.errors != null ? deserializeAws_json1_0GetRecommendationErrors(output.errors, context) : undefined,
|
|
1919
|
+
instanceRecommendations: output.instanceRecommendations != null
|
|
1992
1920
|
? deserializeAws_json1_0InstanceRecommendations(output.instanceRecommendations, context)
|
|
1993
1921
|
: undefined,
|
|
1994
1922
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -1996,7 +1924,7 @@ const deserializeAws_json1_0GetEC2InstanceRecommendationsResponse = (output, con
|
|
|
1996
1924
|
};
|
|
1997
1925
|
const deserializeAws_json1_0GetEC2RecommendationProjectedMetricsResponse = (output, context) => {
|
|
1998
1926
|
return {
|
|
1999
|
-
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics
|
|
1927
|
+
recommendedOptionProjectedMetrics: output.recommendedOptionProjectedMetrics != null
|
|
2000
1928
|
? deserializeAws_json1_0RecommendedOptionProjectedMetrics(output.recommendedOptionProjectedMetrics, context)
|
|
2001
1929
|
: undefined,
|
|
2002
1930
|
};
|
|
@@ -2008,7 +1936,7 @@ const deserializeAws_json1_0GetEffectiveRecommendationPreferencesResponse = (out
|
|
|
2008
1936
|
};
|
|
2009
1937
|
const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = (output, context) => {
|
|
2010
1938
|
return {
|
|
2011
|
-
accountEnrollmentStatuses: output.accountEnrollmentStatuses
|
|
1939
|
+
accountEnrollmentStatuses: output.accountEnrollmentStatuses != null
|
|
2012
1940
|
? deserializeAws_json1_0AccountEnrollmentStatuses(output.accountEnrollmentStatuses, context)
|
|
2013
1941
|
: undefined,
|
|
2014
1942
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -2016,7 +1944,7 @@ const deserializeAws_json1_0GetEnrollmentStatusesForOrganizationResponse = (outp
|
|
|
2016
1944
|
};
|
|
2017
1945
|
const deserializeAws_json1_0GetEnrollmentStatusResponse = (output, context) => {
|
|
2018
1946
|
return {
|
|
2019
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
1947
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2020
1948
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTimestamp)))
|
|
2021
1949
|
: undefined,
|
|
2022
1950
|
memberAccountsEnrolled: (0, smithy_client_1.expectBoolean)(output.memberAccountsEnrolled),
|
|
@@ -2027,7 +1955,7 @@ const deserializeAws_json1_0GetEnrollmentStatusResponse = (output, context) => {
|
|
|
2027
1955
|
};
|
|
2028
1956
|
const deserializeAws_json1_0GetLambdaFunctionRecommendationsResponse = (output, context) => {
|
|
2029
1957
|
return {
|
|
2030
|
-
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations
|
|
1958
|
+
lambdaFunctionRecommendations: output.lambdaFunctionRecommendations != null
|
|
2031
1959
|
? deserializeAws_json1_0LambdaFunctionRecommendations(output.lambdaFunctionRecommendations, context)
|
|
2032
1960
|
: undefined,
|
|
2033
1961
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -2054,7 +1982,7 @@ const deserializeAws_json1_0GetRecommendationErrors = (output, context) => {
|
|
|
2054
1982
|
const deserializeAws_json1_0GetRecommendationPreferencesResponse = (output, context) => {
|
|
2055
1983
|
return {
|
|
2056
1984
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2057
|
-
recommendationPreferencesDetails: output.recommendationPreferencesDetails
|
|
1985
|
+
recommendationPreferencesDetails: output.recommendationPreferencesDetails != null
|
|
2058
1986
|
? deserializeAws_json1_0RecommendationPreferencesDetails(output.recommendationPreferencesDetails, context)
|
|
2059
1987
|
: undefined,
|
|
2060
1988
|
};
|
|
@@ -2062,7 +1990,7 @@ const deserializeAws_json1_0GetRecommendationPreferencesResponse = (output, cont
|
|
|
2062
1990
|
const deserializeAws_json1_0GetRecommendationSummariesResponse = (output, context) => {
|
|
2063
1991
|
return {
|
|
2064
1992
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2065
|
-
recommendationSummaries: output.recommendationSummaries
|
|
1993
|
+
recommendationSummaries: output.recommendationSummaries != null
|
|
2066
1994
|
? deserializeAws_json1_0RecommendationSummaries(output.recommendationSummaries, context)
|
|
2067
1995
|
: undefined,
|
|
2068
1996
|
};
|
|
@@ -2083,29 +2011,29 @@ const deserializeAws_json1_0InstanceRecommendation = (output, context) => {
|
|
|
2083
2011
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2084
2012
|
currentInstanceType: (0, smithy_client_1.expectString)(output.currentInstanceType),
|
|
2085
2013
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2086
|
-
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences
|
|
2014
|
+
effectiveRecommendationPreferences: output.effectiveRecommendationPreferences != null
|
|
2087
2015
|
? deserializeAws_json1_0EffectiveRecommendationPreferences(output.effectiveRecommendationPreferences, context)
|
|
2088
2016
|
: undefined,
|
|
2089
2017
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2090
|
-
findingReasonCodes: output.findingReasonCodes
|
|
2018
|
+
findingReasonCodes: output.findingReasonCodes != null
|
|
2091
2019
|
? deserializeAws_json1_0InstanceRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2092
2020
|
: undefined,
|
|
2093
|
-
inferredWorkloadTypes: output.inferredWorkloadTypes
|
|
2021
|
+
inferredWorkloadTypes: output.inferredWorkloadTypes != null
|
|
2094
2022
|
? deserializeAws_json1_0InferredWorkloadTypes(output.inferredWorkloadTypes, context)
|
|
2095
2023
|
: undefined,
|
|
2096
2024
|
instanceArn: (0, smithy_client_1.expectString)(output.instanceArn),
|
|
2097
2025
|
instanceName: (0, smithy_client_1.expectString)(output.instanceName),
|
|
2098
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2026
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2099
2027
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
2100
2028
|
: undefined,
|
|
2101
2029
|
lookBackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookBackPeriodInDays),
|
|
2102
|
-
recommendationOptions: output.recommendationOptions
|
|
2030
|
+
recommendationOptions: output.recommendationOptions != null
|
|
2103
2031
|
? deserializeAws_json1_0RecommendationOptions(output.recommendationOptions, context)
|
|
2104
2032
|
: undefined,
|
|
2105
|
-
recommendationSources: output.recommendationSources
|
|
2033
|
+
recommendationSources: output.recommendationSources != null
|
|
2106
2034
|
? deserializeAws_json1_0RecommendationSources(output.recommendationSources, context)
|
|
2107
2035
|
: undefined,
|
|
2108
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2036
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2109
2037
|
? deserializeAws_json1_0UtilizationMetrics(output.utilizationMetrics, context)
|
|
2110
2038
|
: undefined,
|
|
2111
2039
|
};
|
|
@@ -2126,14 +2054,14 @@ const deserializeAws_json1_0InstanceRecommendationOption = (output, context) =>
|
|
|
2126
2054
|
instanceType: (0, smithy_client_1.expectString)(output.instanceType),
|
|
2127
2055
|
migrationEffort: (0, smithy_client_1.expectString)(output.migrationEffort),
|
|
2128
2056
|
performanceRisk: (0, smithy_client_1.limitedParseDouble)(output.performanceRisk),
|
|
2129
|
-
platformDifferences: output.platformDifferences
|
|
2057
|
+
platformDifferences: output.platformDifferences != null
|
|
2130
2058
|
? deserializeAws_json1_0PlatformDifferences(output.platformDifferences, context)
|
|
2131
2059
|
: undefined,
|
|
2132
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2060
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2133
2061
|
? deserializeAws_json1_0ProjectedUtilizationMetrics(output.projectedUtilizationMetrics, context)
|
|
2134
2062
|
: undefined,
|
|
2135
2063
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2136
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2064
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2137
2065
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2138
2066
|
: undefined,
|
|
2139
2067
|
};
|
|
@@ -2180,11 +2108,11 @@ const deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics = (output, cont
|
|
|
2180
2108
|
const deserializeAws_json1_0LambdaFunctionMemoryRecommendationOption = (output, context) => {
|
|
2181
2109
|
return {
|
|
2182
2110
|
memorySize: (0, smithy_client_1.expectInt32)(output.memorySize),
|
|
2183
|
-
projectedUtilizationMetrics: output.projectedUtilizationMetrics
|
|
2111
|
+
projectedUtilizationMetrics: output.projectedUtilizationMetrics != null
|
|
2184
2112
|
? deserializeAws_json1_0LambdaFunctionMemoryProjectedMetrics(output.projectedUtilizationMetrics, context)
|
|
2185
2113
|
: undefined,
|
|
2186
2114
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2187
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2115
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2188
2116
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2189
2117
|
: undefined,
|
|
2190
2118
|
};
|
|
@@ -2206,20 +2134,20 @@ const deserializeAws_json1_0LambdaFunctionRecommendation = (output, context) =>
|
|
|
2206
2134
|
currentMemorySize: (0, smithy_client_1.expectInt32)(output.currentMemorySize),
|
|
2207
2135
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2208
2136
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2209
|
-
findingReasonCodes: output.findingReasonCodes
|
|
2137
|
+
findingReasonCodes: output.findingReasonCodes != null
|
|
2210
2138
|
? deserializeAws_json1_0LambdaFunctionRecommendationFindingReasonCodes(output.findingReasonCodes, context)
|
|
2211
2139
|
: undefined,
|
|
2212
2140
|
functionArn: (0, smithy_client_1.expectString)(output.functionArn),
|
|
2213
2141
|
functionVersion: (0, smithy_client_1.expectString)(output.functionVersion),
|
|
2214
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2142
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2215
2143
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
2216
2144
|
: undefined,
|
|
2217
2145
|
lookbackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookbackPeriodInDays),
|
|
2218
|
-
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions
|
|
2146
|
+
memorySizeRecommendationOptions: output.memorySizeRecommendationOptions != null
|
|
2219
2147
|
? deserializeAws_json1_0LambdaFunctionMemoryRecommendationOptions(output.memorySizeRecommendationOptions, context)
|
|
2220
2148
|
: undefined,
|
|
2221
2149
|
numberOfInvocations: (0, smithy_client_1.expectLong)(output.numberOfInvocations),
|
|
2222
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2150
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2223
2151
|
? deserializeAws_json1_0LambdaFunctionUtilizationMetrics(output.utilizationMetrics, context)
|
|
2224
2152
|
: undefined,
|
|
2225
2153
|
};
|
|
@@ -2304,12 +2232,8 @@ const deserializeAws_json1_0PlatformDifferences = (output, context) => {
|
|
|
2304
2232
|
const deserializeAws_json1_0ProjectedMetric = (output, context) => {
|
|
2305
2233
|
return {
|
|
2306
2234
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2307
|
-
timestamps: output.timestamps
|
|
2308
|
-
|
|
2309
|
-
: undefined,
|
|
2310
|
-
values: output.values !== undefined && output.values !== null
|
|
2311
|
-
? deserializeAws_json1_0MetricValues(output.values, context)
|
|
2312
|
-
: undefined,
|
|
2235
|
+
timestamps: output.timestamps != null ? deserializeAws_json1_0Timestamps(output.timestamps, context) : undefined,
|
|
2236
|
+
values: output.values != null ? deserializeAws_json1_0MetricValues(output.values, context) : undefined,
|
|
2313
2237
|
};
|
|
2314
2238
|
};
|
|
2315
2239
|
const deserializeAws_json1_0ProjectedMetrics = (output, context) => {
|
|
@@ -2356,15 +2280,13 @@ const deserializeAws_json1_0ReasonCodeSummary = (output, context) => {
|
|
|
2356
2280
|
};
|
|
2357
2281
|
const deserializeAws_json1_0RecommendationExportJob = (output, context) => {
|
|
2358
2282
|
return {
|
|
2359
|
-
creationTimestamp: output.creationTimestamp
|
|
2283
|
+
creationTimestamp: output.creationTimestamp != null
|
|
2360
2284
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTimestamp)))
|
|
2361
2285
|
: undefined,
|
|
2362
|
-
destination: output.destination
|
|
2363
|
-
? deserializeAws_json1_0ExportDestination(output.destination, context)
|
|
2364
|
-
: undefined,
|
|
2286
|
+
destination: output.destination != null ? deserializeAws_json1_0ExportDestination(output.destination, context) : undefined,
|
|
2365
2287
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
2366
2288
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2367
|
-
lastUpdatedTimestamp: output.lastUpdatedTimestamp
|
|
2289
|
+
lastUpdatedTimestamp: output.lastUpdatedTimestamp != null
|
|
2368
2290
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedTimestamp)))
|
|
2369
2291
|
: undefined,
|
|
2370
2292
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
@@ -2398,9 +2320,7 @@ const deserializeAws_json1_0RecommendationPreferencesDetail = (output, context)
|
|
|
2398
2320
|
enhancedInfrastructureMetrics: (0, smithy_client_1.expectString)(output.enhancedInfrastructureMetrics),
|
|
2399
2321
|
inferredWorkloadTypes: (0, smithy_client_1.expectString)(output.inferredWorkloadTypes),
|
|
2400
2322
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2401
|
-
scope: output.scope
|
|
2402
|
-
? deserializeAws_json1_0Scope(output.scope, context)
|
|
2403
|
-
: undefined,
|
|
2323
|
+
scope: output.scope != null ? deserializeAws_json1_0Scope(output.scope, context) : undefined,
|
|
2404
2324
|
};
|
|
2405
2325
|
};
|
|
2406
2326
|
const deserializeAws_json1_0RecommendationPreferencesDetails = (output, context) => {
|
|
@@ -2445,21 +2365,19 @@ const deserializeAws_json1_0RecommendationSummaries = (output, context) => {
|
|
|
2445
2365
|
const deserializeAws_json1_0RecommendationSummary = (output, context) => {
|
|
2446
2366
|
return {
|
|
2447
2367
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2448
|
-
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings
|
|
2368
|
+
currentPerformanceRiskRatings: output.currentPerformanceRiskRatings != null
|
|
2449
2369
|
? deserializeAws_json1_0CurrentPerformanceRiskRatings(output.currentPerformanceRiskRatings, context)
|
|
2450
2370
|
: undefined,
|
|
2451
2371
|
recommendationResourceType: (0, smithy_client_1.expectString)(output.recommendationResourceType),
|
|
2452
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2372
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2453
2373
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2454
2374
|
: undefined,
|
|
2455
|
-
summaries: output.summaries
|
|
2456
|
-
? deserializeAws_json1_0Summaries(output.summaries, context)
|
|
2457
|
-
: undefined,
|
|
2375
|
+
summaries: output.summaries != null ? deserializeAws_json1_0Summaries(output.summaries, context) : undefined,
|
|
2458
2376
|
};
|
|
2459
2377
|
};
|
|
2460
2378
|
const deserializeAws_json1_0RecommendedOptionProjectedMetric = (output, context) => {
|
|
2461
2379
|
return {
|
|
2462
|
-
projectedMetrics: output.projectedMetrics
|
|
2380
|
+
projectedMetrics: output.projectedMetrics != null
|
|
2463
2381
|
? deserializeAws_json1_0ProjectedMetrics(output.projectedMetrics, context)
|
|
2464
2382
|
: undefined,
|
|
2465
2383
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
@@ -2491,7 +2409,7 @@ const deserializeAws_json1_0S3Destination = (output, context) => {
|
|
|
2491
2409
|
};
|
|
2492
2410
|
const deserializeAws_json1_0SavingsOpportunity = (output, context) => {
|
|
2493
2411
|
return {
|
|
2494
|
-
estimatedMonthlySavings: output.estimatedMonthlySavings
|
|
2412
|
+
estimatedMonthlySavings: output.estimatedMonthlySavings != null
|
|
2495
2413
|
? deserializeAws_json1_0EstimatedMonthlySavings(output.estimatedMonthlySavings, context)
|
|
2496
2414
|
: undefined,
|
|
2497
2415
|
savingsOpportunityPercentage: (0, smithy_client_1.limitedParseDouble)(output.savingsOpportunityPercentage),
|
|
@@ -2522,7 +2440,7 @@ const deserializeAws_json1_0Summaries = (output, context) => {
|
|
|
2522
2440
|
const deserializeAws_json1_0Summary = (output, context) => {
|
|
2523
2441
|
return {
|
|
2524
2442
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2525
|
-
reasonCodeSummaries: output.reasonCodeSummaries
|
|
2443
|
+
reasonCodeSummaries: output.reasonCodeSummaries != null
|
|
2526
2444
|
? deserializeAws_json1_0ReasonCodeSummaries(output.reasonCodeSummaries, context)
|
|
2527
2445
|
: undefined,
|
|
2528
2446
|
value: (0, smithy_client_1.limitedParseDouble)(output.value),
|
|
@@ -2581,32 +2499,32 @@ const deserializeAws_json1_0VolumeConfiguration = (output, context) => {
|
|
|
2581
2499
|
const deserializeAws_json1_0VolumeRecommendation = (output, context) => {
|
|
2582
2500
|
return {
|
|
2583
2501
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
2584
|
-
currentConfiguration: output.currentConfiguration
|
|
2502
|
+
currentConfiguration: output.currentConfiguration != null
|
|
2585
2503
|
? deserializeAws_json1_0VolumeConfiguration(output.currentConfiguration, context)
|
|
2586
2504
|
: undefined,
|
|
2587
2505
|
currentPerformanceRisk: (0, smithy_client_1.expectString)(output.currentPerformanceRisk),
|
|
2588
2506
|
finding: (0, smithy_client_1.expectString)(output.finding),
|
|
2589
|
-
lastRefreshTimestamp: output.lastRefreshTimestamp
|
|
2507
|
+
lastRefreshTimestamp: output.lastRefreshTimestamp != null
|
|
2590
2508
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastRefreshTimestamp)))
|
|
2591
2509
|
: undefined,
|
|
2592
2510
|
lookBackPeriodInDays: (0, smithy_client_1.limitedParseDouble)(output.lookBackPeriodInDays),
|
|
2593
|
-
utilizationMetrics: output.utilizationMetrics
|
|
2511
|
+
utilizationMetrics: output.utilizationMetrics != null
|
|
2594
2512
|
? deserializeAws_json1_0EBSUtilizationMetrics(output.utilizationMetrics, context)
|
|
2595
2513
|
: undefined,
|
|
2596
2514
|
volumeArn: (0, smithy_client_1.expectString)(output.volumeArn),
|
|
2597
|
-
volumeRecommendationOptions: output.volumeRecommendationOptions
|
|
2515
|
+
volumeRecommendationOptions: output.volumeRecommendationOptions != null
|
|
2598
2516
|
? deserializeAws_json1_0VolumeRecommendationOptions(output.volumeRecommendationOptions, context)
|
|
2599
2517
|
: undefined,
|
|
2600
2518
|
};
|
|
2601
2519
|
};
|
|
2602
2520
|
const deserializeAws_json1_0VolumeRecommendationOption = (output, context) => {
|
|
2603
2521
|
return {
|
|
2604
|
-
configuration: output.configuration
|
|
2522
|
+
configuration: output.configuration != null
|
|
2605
2523
|
? deserializeAws_json1_0VolumeConfiguration(output.configuration, context)
|
|
2606
2524
|
: undefined,
|
|
2607
2525
|
performanceRisk: (0, smithy_client_1.limitedParseDouble)(output.performanceRisk),
|
|
2608
2526
|
rank: (0, smithy_client_1.expectInt32)(output.rank),
|
|
2609
|
-
savingsOpportunity: output.savingsOpportunity
|
|
2527
|
+
savingsOpportunity: output.savingsOpportunity != null
|
|
2610
2528
|
? deserializeAws_json1_0SavingsOpportunity(output.savingsOpportunity, context)
|
|
2611
2529
|
: undefined,
|
|
2612
2530
|
};
|
|
@@ -2677,6 +2595,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2677
2595
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2678
2596
|
const sanitizeErrorCode = (rawValue) => {
|
|
2679
2597
|
let cleanValue = rawValue;
|
|
2598
|
+
if (typeof cleanValue === "number") {
|
|
2599
|
+
cleanValue = cleanValue.toString();
|
|
2600
|
+
}
|
|
2680
2601
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2681
2602
|
cleanValue = cleanValue.split(":")[0];
|
|
2682
2603
|
}
|