@aws-sdk/client-cost-explorer 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_1.js +358 -577
- package/dist-es/protocols/Aws_json1_1.js +204 -423
- package/package.json +26 -26
|
@@ -2501,26 +2501,17 @@ var deserializeAws_json1_1UnresolvableUsageUnitExceptionResponse = function (par
|
|
|
2501
2501
|
});
|
|
2502
2502
|
}); };
|
|
2503
2503
|
var serializeAws_json1_1AnomalyDateInterval = function (input, context) {
|
|
2504
|
-
return __assign(__assign({}, (input.EndDate
|
|
2504
|
+
return __assign(__assign({}, (input.EndDate != null && { EndDate: input.EndDate })), (input.StartDate != null && { StartDate: input.StartDate }));
|
|
2505
2505
|
};
|
|
2506
2506
|
var serializeAws_json1_1AnomalyMonitor = function (input, context) {
|
|
2507
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CreationDate
|
|
2508
|
-
input.DimensionalValueCount !== null && { DimensionalValueCount: input.DimensionalValueCount })), (input.LastEvaluatedDate !== undefined &&
|
|
2509
|
-
input.LastEvaluatedDate !== null && { LastEvaluatedDate: input.LastEvaluatedDate })), (input.LastUpdatedDate !== undefined &&
|
|
2510
|
-
input.LastUpdatedDate !== null && { LastUpdatedDate: input.LastUpdatedDate })), (input.MonitorArn !== undefined && input.MonitorArn !== null && { MonitorArn: input.MonitorArn })), (input.MonitorDimension !== undefined &&
|
|
2511
|
-
input.MonitorDimension !== null && { MonitorDimension: input.MonitorDimension })), (input.MonitorName !== undefined && input.MonitorName !== null && { MonitorName: input.MonitorName })), (input.MonitorSpecification !== undefined &&
|
|
2512
|
-
input.MonitorSpecification !== null && {
|
|
2507
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CreationDate != null && { CreationDate: input.CreationDate })), (input.DimensionalValueCount != null && { DimensionalValueCount: input.DimensionalValueCount })), (input.LastEvaluatedDate != null && { LastEvaluatedDate: input.LastEvaluatedDate })), (input.LastUpdatedDate != null && { LastUpdatedDate: input.LastUpdatedDate })), (input.MonitorArn != null && { MonitorArn: input.MonitorArn })), (input.MonitorDimension != null && { MonitorDimension: input.MonitorDimension })), (input.MonitorName != null && { MonitorName: input.MonitorName })), (input.MonitorSpecification != null && {
|
|
2513
2508
|
MonitorSpecification: serializeAws_json1_1Expression(input.MonitorSpecification, context),
|
|
2514
|
-
})), (input.MonitorType
|
|
2509
|
+
})), (input.MonitorType != null && { MonitorType: input.MonitorType }));
|
|
2515
2510
|
};
|
|
2516
2511
|
var serializeAws_json1_1AnomalySubscription = function (input, context) {
|
|
2517
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId
|
|
2518
|
-
input.MonitorArnList !== null && {
|
|
2512
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.Frequency != null && { Frequency: input.Frequency })), (input.MonitorArnList != null && {
|
|
2519
2513
|
MonitorArnList: serializeAws_json1_1MonitorArnList(input.MonitorArnList, context),
|
|
2520
|
-
})), (input.Subscribers
|
|
2521
|
-
input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) })), (input.SubscriptionArn !== undefined &&
|
|
2522
|
-
input.SubscriptionArn !== null && { SubscriptionArn: input.SubscriptionArn })), (input.SubscriptionName !== undefined &&
|
|
2523
|
-
input.SubscriptionName !== null && { SubscriptionName: input.SubscriptionName })), (input.Threshold !== undefined && input.Threshold !== null && { Threshold: __serializeFloat(input.Threshold) }));
|
|
2514
|
+
})), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) })), (input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn })), (input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName })), (input.Threshold != null && { Threshold: __serializeFloat(input.Threshold) }));
|
|
2524
2515
|
};
|
|
2525
2516
|
var serializeAws_json1_1CostAllocationTagKeyList = function (input, context) {
|
|
2526
2517
|
return input
|
|
@@ -2533,7 +2524,7 @@ var serializeAws_json1_1CostAllocationTagKeyList = function (input, context) {
|
|
|
2533
2524
|
});
|
|
2534
2525
|
};
|
|
2535
2526
|
var serializeAws_json1_1CostAllocationTagStatusEntry = function (input, context) {
|
|
2536
|
-
return __assign(__assign({}, (input.Status
|
|
2527
|
+
return __assign(__assign({}, (input.Status != null && { Status: input.Status })), (input.TagKey != null && { TagKey: input.TagKey }));
|
|
2537
2528
|
};
|
|
2538
2529
|
var serializeAws_json1_1CostAllocationTagStatusList = function (input, context) {
|
|
2539
2530
|
return input
|
|
@@ -2546,14 +2537,12 @@ var serializeAws_json1_1CostAllocationTagStatusList = function (input, context)
|
|
|
2546
2537
|
});
|
|
2547
2538
|
};
|
|
2548
2539
|
var serializeAws_json1_1CostCategoryInheritedValueDimension = function (input, context) {
|
|
2549
|
-
return __assign(__assign({}, (input.DimensionKey
|
|
2540
|
+
return __assign(__assign({}, (input.DimensionKey != null && { DimensionKey: input.DimensionKey })), (input.DimensionName != null && { DimensionName: input.DimensionName }));
|
|
2550
2541
|
};
|
|
2551
2542
|
var serializeAws_json1_1CostCategoryRule = function (input, context) {
|
|
2552
|
-
return __assign(__assign(__assign(__assign({}, (input.InheritedValue
|
|
2553
|
-
input.InheritedValue !== null && {
|
|
2543
|
+
return __assign(__assign(__assign(__assign({}, (input.InheritedValue != null && {
|
|
2554
2544
|
InheritedValue: serializeAws_json1_1CostCategoryInheritedValueDimension(input.InheritedValue, context),
|
|
2555
|
-
})), (input.Rule
|
|
2556
|
-
input.Rule !== null && { Rule: serializeAws_json1_1Expression(input.Rule, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
2545
|
+
})), (input.Rule != null && { Rule: serializeAws_json1_1Expression(input.Rule, context) })), (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
|
|
2557
2546
|
};
|
|
2558
2547
|
var serializeAws_json1_1CostCategoryRulesList = function (input, context) {
|
|
2559
2548
|
return input
|
|
@@ -2566,17 +2555,14 @@ var serializeAws_json1_1CostCategoryRulesList = function (input, context) {
|
|
|
2566
2555
|
});
|
|
2567
2556
|
};
|
|
2568
2557
|
var serializeAws_json1_1CostCategorySplitChargeRule = function (input, context) {
|
|
2569
|
-
return __assign(__assign(__assign(__assign({}, (input.Method
|
|
2570
|
-
input.Parameters !== null && {
|
|
2558
|
+
return __assign(__assign(__assign(__assign({}, (input.Method != null && { Method: input.Method })), (input.Parameters != null && {
|
|
2571
2559
|
Parameters: serializeAws_json1_1CostCategorySplitChargeRuleParametersList(input.Parameters, context),
|
|
2572
|
-
})), (input.Source
|
|
2573
|
-
input.Targets !== null && {
|
|
2560
|
+
})), (input.Source != null && { Source: input.Source })), (input.Targets != null && {
|
|
2574
2561
|
Targets: serializeAws_json1_1CostCategorySplitChargeRuleTargetsList(input.Targets, context),
|
|
2575
2562
|
}));
|
|
2576
2563
|
};
|
|
2577
2564
|
var serializeAws_json1_1CostCategorySplitChargeRuleParameter = function (input, context) {
|
|
2578
|
-
return __assign(__assign({}, (input.Type
|
|
2579
|
-
input.Values !== null && {
|
|
2565
|
+
return __assign(__assign({}, (input.Type != null && { Type: input.Type })), (input.Values != null && {
|
|
2580
2566
|
Values: serializeAws_json1_1CostCategorySplitChargeRuleParameterValuesList(input.Values, context),
|
|
2581
2567
|
}));
|
|
2582
2568
|
};
|
|
@@ -2621,71 +2607,54 @@ var serializeAws_json1_1CostCategorySplitChargeRuleTargetsList = function (input
|
|
|
2621
2607
|
});
|
|
2622
2608
|
};
|
|
2623
2609
|
var serializeAws_json1_1CostCategoryValues = function (input, context) {
|
|
2624
|
-
return __assign(__assign(__assign({}, (input.Key
|
|
2625
|
-
input.MatchOptions !== null && { MatchOptions: serializeAws_json1_1MatchOptions(input.MatchOptions, context) })), (input.Values !== undefined &&
|
|
2626
|
-
input.Values !== null && { Values: serializeAws_json1_1Values(input.Values, context) }));
|
|
2610
|
+
return __assign(__assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.MatchOptions != null && { MatchOptions: serializeAws_json1_1MatchOptions(input.MatchOptions, context) })), (input.Values != null && { Values: serializeAws_json1_1Values(input.Values, context) }));
|
|
2627
2611
|
};
|
|
2628
2612
|
var serializeAws_json1_1CreateAnomalyMonitorRequest = function (input, context) {
|
|
2629
|
-
return __assign(__assign({}, (input.AnomalyMonitor
|
|
2630
|
-
input.AnomalyMonitor !== null && {
|
|
2613
|
+
return __assign(__assign({}, (input.AnomalyMonitor != null && {
|
|
2631
2614
|
AnomalyMonitor: serializeAws_json1_1AnomalyMonitor(input.AnomalyMonitor, context),
|
|
2632
|
-
})), (input.ResourceTags
|
|
2633
|
-
input.ResourceTags !== null && {
|
|
2615
|
+
})), (input.ResourceTags != null && {
|
|
2634
2616
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2635
2617
|
}));
|
|
2636
2618
|
};
|
|
2637
2619
|
var serializeAws_json1_1CreateAnomalySubscriptionRequest = function (input, context) {
|
|
2638
|
-
return __assign(__assign({}, (input.AnomalySubscription
|
|
2639
|
-
input.AnomalySubscription !== null && {
|
|
2620
|
+
return __assign(__assign({}, (input.AnomalySubscription != null && {
|
|
2640
2621
|
AnomalySubscription: serializeAws_json1_1AnomalySubscription(input.AnomalySubscription, context),
|
|
2641
|
-
})), (input.ResourceTags
|
|
2642
|
-
input.ResourceTags !== null && {
|
|
2622
|
+
})), (input.ResourceTags != null && {
|
|
2643
2623
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2644
2624
|
}));
|
|
2645
2625
|
};
|
|
2646
2626
|
var serializeAws_json1_1CreateCostCategoryDefinitionRequest = function (input, context) {
|
|
2647
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultValue
|
|
2648
|
-
input.ResourceTags !== null && {
|
|
2627
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultValue != null && { DefaultValue: input.DefaultValue })), (input.Name != null && { Name: input.Name })), (input.ResourceTags != null && {
|
|
2649
2628
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2650
|
-
})), (input.RuleVersion
|
|
2651
|
-
input.Rules !== null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) })), (input.SplitChargeRules !== undefined &&
|
|
2652
|
-
input.SplitChargeRules !== null && {
|
|
2629
|
+
})), (input.RuleVersion != null && { RuleVersion: input.RuleVersion })), (input.Rules != null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) })), (input.SplitChargeRules != null && {
|
|
2653
2630
|
SplitChargeRules: serializeAws_json1_1CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
|
|
2654
2631
|
}));
|
|
2655
2632
|
};
|
|
2656
2633
|
var serializeAws_json1_1DateInterval = function (input, context) {
|
|
2657
|
-
return __assign(__assign({}, (input.End
|
|
2634
|
+
return __assign(__assign({}, (input.End != null && { End: input.End })), (input.Start != null && { Start: input.Start }));
|
|
2658
2635
|
};
|
|
2659
2636
|
var serializeAws_json1_1DeleteAnomalyMonitorRequest = function (input, context) {
|
|
2660
|
-
return __assign({}, (input.MonitorArn
|
|
2637
|
+
return __assign({}, (input.MonitorArn != null && { MonitorArn: input.MonitorArn }));
|
|
2661
2638
|
};
|
|
2662
2639
|
var serializeAws_json1_1DeleteAnomalySubscriptionRequest = function (input, context) {
|
|
2663
|
-
return __assign({}, (input.SubscriptionArn
|
|
2664
|
-
input.SubscriptionArn !== null && { SubscriptionArn: input.SubscriptionArn }));
|
|
2640
|
+
return __assign({}, (input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn }));
|
|
2665
2641
|
};
|
|
2666
2642
|
var serializeAws_json1_1DeleteCostCategoryDefinitionRequest = function (input, context) {
|
|
2667
|
-
return __assign({}, (input.CostCategoryArn
|
|
2668
|
-
input.CostCategoryArn !== null && { CostCategoryArn: input.CostCategoryArn }));
|
|
2643
|
+
return __assign({}, (input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }));
|
|
2669
2644
|
};
|
|
2670
2645
|
var serializeAws_json1_1DescribeCostCategoryDefinitionRequest = function (input, context) {
|
|
2671
|
-
return __assign(__assign({}, (input.CostCategoryArn
|
|
2672
|
-
input.CostCategoryArn !== null && { CostCategoryArn: input.CostCategoryArn })), (input.EffectiveOn !== undefined && input.EffectiveOn !== null && { EffectiveOn: input.EffectiveOn }));
|
|
2646
|
+
return __assign(__assign({}, (input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn })), (input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn }));
|
|
2673
2647
|
};
|
|
2674
2648
|
var serializeAws_json1_1DimensionValues = function (input, context) {
|
|
2675
|
-
return __assign(__assign(__assign({}, (input.Key
|
|
2676
|
-
input.MatchOptions !== null && { MatchOptions: serializeAws_json1_1MatchOptions(input.MatchOptions, context) })), (input.Values !== undefined &&
|
|
2677
|
-
input.Values !== null && { Values: serializeAws_json1_1Values(input.Values, context) }));
|
|
2649
|
+
return __assign(__assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.MatchOptions != null && { MatchOptions: serializeAws_json1_1MatchOptions(input.MatchOptions, context) })), (input.Values != null && { Values: serializeAws_json1_1Values(input.Values, context) }));
|
|
2678
2650
|
};
|
|
2679
2651
|
var serializeAws_json1_1EC2Specification = function (input, context) {
|
|
2680
|
-
return __assign({}, (input.OfferingClass
|
|
2652
|
+
return __assign({}, (input.OfferingClass != null && { OfferingClass: input.OfferingClass }));
|
|
2681
2653
|
};
|
|
2682
2654
|
var serializeAws_json1_1Expression = function (input, context) {
|
|
2683
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.And
|
|
2684
|
-
input.CostCategories !== null && {
|
|
2655
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.And != null && { And: serializeAws_json1_1Expressions(input.And, context) })), (input.CostCategories != null && {
|
|
2685
2656
|
CostCategories: serializeAws_json1_1CostCategoryValues(input.CostCategories, context),
|
|
2686
|
-
})), (input.Dimensions
|
|
2687
|
-
input.Dimensions !== null && { Dimensions: serializeAws_json1_1DimensionValues(input.Dimensions, context) })), (input.Not !== undefined && input.Not !== null && { Not: serializeAws_json1_1Expression(input.Not, context) })), (input.Or !== undefined && input.Or !== null && { Or: serializeAws_json1_1Expressions(input.Or, context) })), (input.Tags !== undefined &&
|
|
2688
|
-
input.Tags !== null && { Tags: serializeAws_json1_1TagValues(input.Tags, context) }));
|
|
2657
|
+
})), (input.Dimensions != null && { Dimensions: serializeAws_json1_1DimensionValues(input.Dimensions, context) })), (input.Not != null && { Not: serializeAws_json1_1Expression(input.Not, context) })), (input.Or != null && { Or: serializeAws_json1_1Expressions(input.Or, context) })), (input.Tags != null && { Tags: serializeAws_json1_1TagValues(input.Tags, context) }));
|
|
2689
2658
|
};
|
|
2690
2659
|
var serializeAws_json1_1Expressions = function (input, context) {
|
|
2691
2660
|
return input
|
|
@@ -2698,126 +2667,71 @@ var serializeAws_json1_1Expressions = function (input, context) {
|
|
|
2698
2667
|
});
|
|
2699
2668
|
};
|
|
2700
2669
|
var serializeAws_json1_1GetAnomaliesRequest = function (input, context) {
|
|
2701
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DateInterval
|
|
2702
|
-
input.DateInterval !== null && {
|
|
2670
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DateInterval != null && {
|
|
2703
2671
|
DateInterval: serializeAws_json1_1AnomalyDateInterval(input.DateInterval, context),
|
|
2704
|
-
})), (input.Feedback
|
|
2705
|
-
|
|
2672
|
+
})), (input.Feedback != null && { Feedback: input.Feedback })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.MonitorArn != null && { MonitorArn: input.MonitorArn })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.TotalImpact != null && {
|
|
2673
|
+
TotalImpact: serializeAws_json1_1TotalImpactFilter(input.TotalImpact, context),
|
|
2674
|
+
}));
|
|
2706
2675
|
};
|
|
2707
2676
|
var serializeAws_json1_1GetAnomalyMonitorsRequest = function (input, context) {
|
|
2708
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
2709
|
-
input.MonitorArnList !== null && { MonitorArnList: serializeAws_json1_1Values(input.MonitorArnList, context) })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken }));
|
|
2677
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.MonitorArnList != null && { MonitorArnList: serializeAws_json1_1Values(input.MonitorArnList, context) })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken }));
|
|
2710
2678
|
};
|
|
2711
2679
|
var serializeAws_json1_1GetAnomalySubscriptionsRequest = function (input, context) {
|
|
2712
|
-
return __assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
2713
|
-
input.SubscriptionArnList !== null && {
|
|
2680
|
+
return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.MonitorArn != null && { MonitorArn: input.MonitorArn })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.SubscriptionArnList != null && {
|
|
2714
2681
|
SubscriptionArnList: serializeAws_json1_1Values(input.SubscriptionArnList, context),
|
|
2715
2682
|
}));
|
|
2716
2683
|
};
|
|
2717
2684
|
var serializeAws_json1_1GetCostAndUsageRequest = function (input, context) {
|
|
2718
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter
|
|
2719
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity !== undefined && input.Granularity !== null && { Granularity: input.Granularity })), (input.GroupBy !== undefined &&
|
|
2720
|
-
input.GroupBy !== null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.Metrics !== undefined &&
|
|
2721
|
-
input.Metrics !== null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.TimePeriod !== undefined &&
|
|
2722
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2685
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity != null && { Granularity: input.Granularity })), (input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.Metrics != null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2723
2686
|
};
|
|
2724
2687
|
var serializeAws_json1_1GetCostAndUsageWithResourcesRequest = function (input, context) {
|
|
2725
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter
|
|
2726
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity !== undefined && input.Granularity !== null && { Granularity: input.Granularity })), (input.GroupBy !== undefined &&
|
|
2727
|
-
input.GroupBy !== null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.Metrics !== undefined &&
|
|
2728
|
-
input.Metrics !== null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.TimePeriod !== undefined &&
|
|
2729
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2688
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity != null && { Granularity: input.Granularity })), (input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.Metrics != null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2730
2689
|
};
|
|
2731
2690
|
var serializeAws_json1_1GetCostCategoriesRequest = function (input, context) {
|
|
2732
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CostCategoryName
|
|
2733
|
-
input.CostCategoryName !== null && { CostCategoryName: input.CostCategoryName })), (input.Filter !== undefined &&
|
|
2734
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.SearchString !== undefined && input.SearchString !== null && { SearchString: input.SearchString })), (input.SortBy !== undefined &&
|
|
2735
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) })), (input.TimePeriod !== undefined &&
|
|
2736
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2691
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CostCategoryName != null && { CostCategoryName: input.CostCategoryName })), (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.SearchString != null && { SearchString: input.SearchString })), (input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2737
2692
|
};
|
|
2738
2693
|
var serializeAws_json1_1GetCostForecastRequest = function (input, context) {
|
|
2739
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Filter
|
|
2740
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity !== undefined && input.Granularity !== null && { Granularity: input.Granularity })), (input.Metric !== undefined && input.Metric !== null && { Metric: input.Metric })), (input.PredictionIntervalLevel !== undefined &&
|
|
2741
|
-
input.PredictionIntervalLevel !== null && { PredictionIntervalLevel: input.PredictionIntervalLevel })), (input.TimePeriod !== undefined &&
|
|
2742
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2694
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity != null && { Granularity: input.Granularity })), (input.Metric != null && { Metric: input.Metric })), (input.PredictionIntervalLevel != null && { PredictionIntervalLevel: input.PredictionIntervalLevel })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2743
2695
|
};
|
|
2744
2696
|
var serializeAws_json1_1GetDimensionValuesRequest = function (input, context) {
|
|
2745
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Context
|
|
2746
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.SearchString !== undefined && input.SearchString !== null && { SearchString: input.SearchString })), (input.SortBy !== undefined &&
|
|
2747
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) })), (input.TimePeriod !== undefined &&
|
|
2748
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2697
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Context != null && { Context: input.Context })), (input.Dimension != null && { Dimension: input.Dimension })), (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.SearchString != null && { SearchString: input.SearchString })), (input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2749
2698
|
};
|
|
2750
2699
|
var serializeAws_json1_1GetReservationCoverageRequest = function (input, context) {
|
|
2751
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter
|
|
2752
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity !== undefined && input.Granularity !== null && { Granularity: input.Granularity })), (input.GroupBy !== undefined &&
|
|
2753
|
-
input.GroupBy !== null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Metrics !== undefined &&
|
|
2754
|
-
input.Metrics !== null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.SortBy !== undefined &&
|
|
2755
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod !== undefined &&
|
|
2756
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2700
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity != null && { Granularity: input.Granularity })), (input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Metrics != null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2757
2701
|
};
|
|
2758
2702
|
var serializeAws_json1_1GetReservationPurchaseRecommendationRequest = function (input, context) {
|
|
2759
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId
|
|
2760
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.LookbackPeriodInDays !== undefined &&
|
|
2761
|
-
input.LookbackPeriodInDays !== null && { LookbackPeriodInDays: input.LookbackPeriodInDays })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.PageSize !== undefined && input.PageSize !== null && { PageSize: input.PageSize })), (input.PaymentOption !== undefined && input.PaymentOption !== null && { PaymentOption: input.PaymentOption })), (input.Service !== undefined && input.Service !== null && { Service: input.Service })), (input.ServiceSpecification !== undefined &&
|
|
2762
|
-
input.ServiceSpecification !== null && {
|
|
2703
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.AccountScope != null && { AccountScope: input.AccountScope })), (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.LookbackPeriodInDays != null && { LookbackPeriodInDays: input.LookbackPeriodInDays })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.PageSize != null && { PageSize: input.PageSize })), (input.PaymentOption != null && { PaymentOption: input.PaymentOption })), (input.Service != null && { Service: input.Service })), (input.ServiceSpecification != null && {
|
|
2763
2704
|
ServiceSpecification: serializeAws_json1_1ServiceSpecification(input.ServiceSpecification, context),
|
|
2764
|
-
})), (input.TermInYears
|
|
2705
|
+
})), (input.TermInYears != null && { TermInYears: input.TermInYears }));
|
|
2765
2706
|
};
|
|
2766
2707
|
var serializeAws_json1_1GetReservationUtilizationRequest = function (input, context) {
|
|
2767
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter
|
|
2768
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity !== undefined && input.Granularity !== null && { Granularity: input.Granularity })), (input.GroupBy !== undefined &&
|
|
2769
|
-
input.GroupBy !== null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.SortBy !== undefined &&
|
|
2770
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod !== undefined &&
|
|
2771
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2708
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity != null && { Granularity: input.Granularity })), (input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2772
2709
|
};
|
|
2773
2710
|
var serializeAws_json1_1GetRightsizingRecommendationRequest = function (input, context) {
|
|
2774
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Configuration
|
|
2775
|
-
input.Configuration !== null && {
|
|
2711
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Configuration != null && {
|
|
2776
2712
|
Configuration: serializeAws_json1_1RightsizingRecommendationConfiguration(input.Configuration, context),
|
|
2777
|
-
})), (input.Filter
|
|
2778
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.PageSize !== undefined && input.PageSize !== null && { PageSize: input.PageSize })), (input.Service !== undefined && input.Service !== null && { Service: input.Service }));
|
|
2713
|
+
})), (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.PageSize != null && { PageSize: input.PageSize })), (input.Service != null && { Service: input.Service }));
|
|
2779
2714
|
};
|
|
2780
2715
|
var serializeAws_json1_1GetSavingsPlansCoverageRequest = function (input, context) {
|
|
2781
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter
|
|
2782
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity !== undefined && input.Granularity !== null && { Granularity: input.Granularity })), (input.GroupBy !== undefined &&
|
|
2783
|
-
input.GroupBy !== null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Metrics !== undefined &&
|
|
2784
|
-
input.Metrics !== null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SortBy !== undefined &&
|
|
2785
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod !== undefined &&
|
|
2786
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2716
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity != null && { Granularity: input.Granularity })), (input.GroupBy != null && { GroupBy: serializeAws_json1_1GroupDefinitions(input.GroupBy, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Metrics != null && { Metrics: serializeAws_json1_1MetricNames(input.Metrics, context) })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2787
2717
|
};
|
|
2788
2718
|
var serializeAws_json1_1GetSavingsPlansPurchaseRecommendationRequest = function (input, context) {
|
|
2789
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountScope
|
|
2790
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.LookbackPeriodInDays !== undefined &&
|
|
2791
|
-
input.LookbackPeriodInDays !== null && { LookbackPeriodInDays: input.LookbackPeriodInDays })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.PageSize !== undefined && input.PageSize !== null && { PageSize: input.PageSize })), (input.PaymentOption !== undefined && input.PaymentOption !== null && { PaymentOption: input.PaymentOption })), (input.SavingsPlansType !== undefined &&
|
|
2792
|
-
input.SavingsPlansType !== null && { SavingsPlansType: input.SavingsPlansType })), (input.TermInYears !== undefined && input.TermInYears !== null && { TermInYears: input.TermInYears }));
|
|
2719
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountScope != null && { AccountScope: input.AccountScope })), (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.LookbackPeriodInDays != null && { LookbackPeriodInDays: input.LookbackPeriodInDays })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.PageSize != null && { PageSize: input.PageSize })), (input.PaymentOption != null && { PaymentOption: input.PaymentOption })), (input.SavingsPlansType != null && { SavingsPlansType: input.SavingsPlansType })), (input.TermInYears != null && { TermInYears: input.TermInYears }));
|
|
2793
2720
|
};
|
|
2794
2721
|
var serializeAws_json1_1GetSavingsPlansUtilizationDetailsRequest = function (input, context) {
|
|
2795
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataType
|
|
2796
|
-
input.DataType !== null && { DataType: serializeAws_json1_1SavingsPlansDataTypes(input.DataType, context) })), (input.Filter !== undefined &&
|
|
2797
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.SortBy !== undefined &&
|
|
2798
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod !== undefined &&
|
|
2799
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2722
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataType != null && { DataType: serializeAws_json1_1SavingsPlansDataTypes(input.DataType, context) })), (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2800
2723
|
};
|
|
2801
2724
|
var serializeAws_json1_1GetSavingsPlansUtilizationRequest = function (input, context) {
|
|
2802
|
-
return __assign(__assign(__assign(__assign({}, (input.Filter
|
|
2803
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity !== undefined && input.Granularity !== null && { Granularity: input.Granularity })), (input.SortBy !== undefined &&
|
|
2804
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod !== undefined &&
|
|
2805
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2725
|
+
return __assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity != null && { Granularity: input.Granularity })), (input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinition(input.SortBy, context) })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2806
2726
|
};
|
|
2807
2727
|
var serializeAws_json1_1GetTagsRequest = function (input, context) {
|
|
2808
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter
|
|
2809
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextPageToken !== undefined && input.NextPageToken !== null && { NextPageToken: input.NextPageToken })), (input.SearchString !== undefined && input.SearchString !== null && { SearchString: input.SearchString })), (input.SortBy !== undefined &&
|
|
2810
|
-
input.SortBy !== null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) })), (input.TagKey !== undefined && input.TagKey !== null && { TagKey: input.TagKey })), (input.TimePeriod !== undefined &&
|
|
2811
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2728
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextPageToken != null && { NextPageToken: input.NextPageToken })), (input.SearchString != null && { SearchString: input.SearchString })), (input.SortBy != null && { SortBy: serializeAws_json1_1SortDefinitions(input.SortBy, context) })), (input.TagKey != null && { TagKey: input.TagKey })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2812
2729
|
};
|
|
2813
2730
|
var serializeAws_json1_1GetUsageForecastRequest = function (input, context) {
|
|
2814
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Filter
|
|
2815
|
-
input.Filter !== null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity !== undefined && input.Granularity !== null && { Granularity: input.Granularity })), (input.Metric !== undefined && input.Metric !== null && { Metric: input.Metric })), (input.PredictionIntervalLevel !== undefined &&
|
|
2816
|
-
input.PredictionIntervalLevel !== null && { PredictionIntervalLevel: input.PredictionIntervalLevel })), (input.TimePeriod !== undefined &&
|
|
2817
|
-
input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2731
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Filter != null && { Filter: serializeAws_json1_1Expression(input.Filter, context) })), (input.Granularity != null && { Granularity: input.Granularity })), (input.Metric != null && { Metric: input.Metric })), (input.PredictionIntervalLevel != null && { PredictionIntervalLevel: input.PredictionIntervalLevel })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1DateInterval(input.TimePeriod, context) }));
|
|
2818
2732
|
};
|
|
2819
2733
|
var serializeAws_json1_1GroupDefinition = function (input, context) {
|
|
2820
|
-
return __assign(__assign({}, (input.Key
|
|
2734
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Type != null && { Type: input.Type }));
|
|
2821
2735
|
};
|
|
2822
2736
|
var serializeAws_json1_1GroupDefinitions = function (input, context) {
|
|
2823
2737
|
return input
|
|
@@ -2830,14 +2744,13 @@ var serializeAws_json1_1GroupDefinitions = function (input, context) {
|
|
|
2830
2744
|
});
|
|
2831
2745
|
};
|
|
2832
2746
|
var serializeAws_json1_1ListCostAllocationTagsRequest = function (input, context) {
|
|
2833
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
2834
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1CostAllocationTagKeyList(input.TagKeys, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
2747
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Status != null && { Status: input.Status })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1CostAllocationTagKeyList(input.TagKeys, context) })), (input.Type != null && { Type: input.Type }));
|
|
2835
2748
|
};
|
|
2836
2749
|
var serializeAws_json1_1ListCostCategoryDefinitionsRequest = function (input, context) {
|
|
2837
|
-
return __assign(__assign(__assign({}, (input.EffectiveOn
|
|
2750
|
+
return __assign(__assign(__assign({}, (input.EffectiveOn != null && { EffectiveOn: input.EffectiveOn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2838
2751
|
};
|
|
2839
2752
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
2840
|
-
return __assign({}, (input.ResourceArn
|
|
2753
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
2841
2754
|
};
|
|
2842
2755
|
var serializeAws_json1_1MatchOptions = function (input, context) {
|
|
2843
2756
|
return input
|
|
@@ -2870,10 +2783,10 @@ var serializeAws_json1_1MonitorArnList = function (input, context) {
|
|
|
2870
2783
|
});
|
|
2871
2784
|
};
|
|
2872
2785
|
var serializeAws_json1_1ProvideAnomalyFeedbackRequest = function (input, context) {
|
|
2873
|
-
return __assign(__assign({}, (input.AnomalyId
|
|
2786
|
+
return __assign(__assign({}, (input.AnomalyId != null && { AnomalyId: input.AnomalyId })), (input.Feedback != null && { Feedback: input.Feedback }));
|
|
2874
2787
|
};
|
|
2875
2788
|
var serializeAws_json1_1ResourceTag = function (input, context) {
|
|
2876
|
-
return __assign(__assign({}, (input.Key
|
|
2789
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
2877
2790
|
};
|
|
2878
2791
|
var serializeAws_json1_1ResourceTagKeyList = function (input, context) {
|
|
2879
2792
|
return input
|
|
@@ -2896,9 +2809,7 @@ var serializeAws_json1_1ResourceTagList = function (input, context) {
|
|
|
2896
2809
|
});
|
|
2897
2810
|
};
|
|
2898
2811
|
var serializeAws_json1_1RightsizingRecommendationConfiguration = function (input, context) {
|
|
2899
|
-
return __assign(__assign({}, (input.BenefitsConsidered
|
|
2900
|
-
input.BenefitsConsidered !== null && { BenefitsConsidered: input.BenefitsConsidered })), (input.RecommendationTarget !== undefined &&
|
|
2901
|
-
input.RecommendationTarget !== null && { RecommendationTarget: input.RecommendationTarget }));
|
|
2812
|
+
return __assign(__assign({}, (input.BenefitsConsidered != null && { BenefitsConsidered: input.BenefitsConsidered })), (input.RecommendationTarget != null && { RecommendationTarget: input.RecommendationTarget }));
|
|
2902
2813
|
};
|
|
2903
2814
|
var serializeAws_json1_1SavingsPlansDataTypes = function (input, context) {
|
|
2904
2815
|
return input
|
|
@@ -2911,13 +2822,12 @@ var serializeAws_json1_1SavingsPlansDataTypes = function (input, context) {
|
|
|
2911
2822
|
});
|
|
2912
2823
|
};
|
|
2913
2824
|
var serializeAws_json1_1ServiceSpecification = function (input, context) {
|
|
2914
|
-
return __assign({}, (input.EC2Specification
|
|
2915
|
-
input.EC2Specification !== null && {
|
|
2825
|
+
return __assign({}, (input.EC2Specification != null && {
|
|
2916
2826
|
EC2Specification: serializeAws_json1_1EC2Specification(input.EC2Specification, context),
|
|
2917
2827
|
}));
|
|
2918
2828
|
};
|
|
2919
2829
|
var serializeAws_json1_1SortDefinition = function (input, context) {
|
|
2920
|
-
return __assign(__assign({}, (input.Key
|
|
2830
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.SortOrder != null && { SortOrder: input.SortOrder }));
|
|
2921
2831
|
};
|
|
2922
2832
|
var serializeAws_json1_1SortDefinitions = function (input, context) {
|
|
2923
2833
|
return input
|
|
@@ -2930,7 +2840,7 @@ var serializeAws_json1_1SortDefinitions = function (input, context) {
|
|
|
2930
2840
|
});
|
|
2931
2841
|
};
|
|
2932
2842
|
var serializeAws_json1_1Subscriber = function (input, context) {
|
|
2933
|
-
return __assign(__assign(__assign({}, (input.Address
|
|
2843
|
+
return __assign(__assign(__assign({}, (input.Address != null && { Address: input.Address })), (input.Status != null && { Status: input.Status })), (input.Type != null && { Type: input.Type }));
|
|
2934
2844
|
};
|
|
2935
2845
|
var serializeAws_json1_1Subscribers = function (input, context) {
|
|
2936
2846
|
return input
|
|
@@ -2943,50 +2853,36 @@ var serializeAws_json1_1Subscribers = function (input, context) {
|
|
|
2943
2853
|
});
|
|
2944
2854
|
};
|
|
2945
2855
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
2946
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
2947
|
-
input.ResourceTags !== null && {
|
|
2856
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.ResourceTags != null && {
|
|
2948
2857
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2949
2858
|
}));
|
|
2950
2859
|
};
|
|
2951
2860
|
var serializeAws_json1_1TagValues = function (input, context) {
|
|
2952
|
-
return __assign(__assign(__assign({}, (input.Key
|
|
2953
|
-
input.MatchOptions !== null && { MatchOptions: serializeAws_json1_1MatchOptions(input.MatchOptions, context) })), (input.Values !== undefined &&
|
|
2954
|
-
input.Values !== null && { Values: serializeAws_json1_1Values(input.Values, context) }));
|
|
2861
|
+
return __assign(__assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.MatchOptions != null && { MatchOptions: serializeAws_json1_1MatchOptions(input.MatchOptions, context) })), (input.Values != null && { Values: serializeAws_json1_1Values(input.Values, context) }));
|
|
2955
2862
|
};
|
|
2956
2863
|
var serializeAws_json1_1TotalImpactFilter = function (input, context) {
|
|
2957
|
-
return __assign(__assign(__assign({}, (input.EndValue
|
|
2958
|
-
input.NumericOperator !== null && { NumericOperator: input.NumericOperator })), (input.StartValue !== undefined &&
|
|
2959
|
-
input.StartValue !== null && { StartValue: __serializeFloat(input.StartValue) }));
|
|
2864
|
+
return __assign(__assign(__assign({}, (input.EndValue != null && { EndValue: __serializeFloat(input.EndValue) })), (input.NumericOperator != null && { NumericOperator: input.NumericOperator })), (input.StartValue != null && { StartValue: __serializeFloat(input.StartValue) }));
|
|
2960
2865
|
};
|
|
2961
2866
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
2962
|
-
return __assign(__assign({}, (input.ResourceArn
|
|
2963
|
-
input.ResourceTagKeys !== null && {
|
|
2867
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.ResourceTagKeys != null && {
|
|
2964
2868
|
ResourceTagKeys: serializeAws_json1_1ResourceTagKeyList(input.ResourceTagKeys, context),
|
|
2965
2869
|
}));
|
|
2966
2870
|
};
|
|
2967
2871
|
var serializeAws_json1_1UpdateAnomalyMonitorRequest = function (input, context) {
|
|
2968
|
-
return __assign(__assign({}, (input.MonitorArn
|
|
2872
|
+
return __assign(__assign({}, (input.MonitorArn != null && { MonitorArn: input.MonitorArn })), (input.MonitorName != null && { MonitorName: input.MonitorName }));
|
|
2969
2873
|
};
|
|
2970
2874
|
var serializeAws_json1_1UpdateAnomalySubscriptionRequest = function (input, context) {
|
|
2971
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Frequency
|
|
2972
|
-
input.MonitorArnList !== null && {
|
|
2875
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Frequency != null && { Frequency: input.Frequency })), (input.MonitorArnList != null && {
|
|
2973
2876
|
MonitorArnList: serializeAws_json1_1MonitorArnList(input.MonitorArnList, context),
|
|
2974
|
-
})), (input.Subscribers
|
|
2975
|
-
input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) })), (input.SubscriptionArn !== undefined &&
|
|
2976
|
-
input.SubscriptionArn !== null && { SubscriptionArn: input.SubscriptionArn })), (input.SubscriptionName !== undefined &&
|
|
2977
|
-
input.SubscriptionName !== null && { SubscriptionName: input.SubscriptionName })), (input.Threshold !== undefined && input.Threshold !== null && { Threshold: __serializeFloat(input.Threshold) }));
|
|
2877
|
+
})), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) })), (input.SubscriptionArn != null && { SubscriptionArn: input.SubscriptionArn })), (input.SubscriptionName != null && { SubscriptionName: input.SubscriptionName })), (input.Threshold != null && { Threshold: __serializeFloat(input.Threshold) }));
|
|
2978
2878
|
};
|
|
2979
2879
|
var serializeAws_json1_1UpdateCostAllocationTagsStatusRequest = function (input, context) {
|
|
2980
|
-
return __assign({}, (input.CostAllocationTagsStatus
|
|
2981
|
-
input.CostAllocationTagsStatus !== null && {
|
|
2880
|
+
return __assign({}, (input.CostAllocationTagsStatus != null && {
|
|
2982
2881
|
CostAllocationTagsStatus: serializeAws_json1_1CostAllocationTagStatusList(input.CostAllocationTagsStatus, context),
|
|
2983
2882
|
}));
|
|
2984
2883
|
};
|
|
2985
2884
|
var serializeAws_json1_1UpdateCostCategoryDefinitionRequest = function (input, context) {
|
|
2986
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CostCategoryArn
|
|
2987
|
-
input.CostCategoryArn !== null && { CostCategoryArn: input.CostCategoryArn })), (input.DefaultValue !== undefined && input.DefaultValue !== null && { DefaultValue: input.DefaultValue })), (input.RuleVersion !== undefined && input.RuleVersion !== null && { RuleVersion: input.RuleVersion })), (input.Rules !== undefined &&
|
|
2988
|
-
input.Rules !== null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) })), (input.SplitChargeRules !== undefined &&
|
|
2989
|
-
input.SplitChargeRules !== null && {
|
|
2885
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn })), (input.DefaultValue != null && { DefaultValue: input.DefaultValue })), (input.RuleVersion != null && { RuleVersion: input.RuleVersion })), (input.Rules != null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) })), (input.SplitChargeRules != null && {
|
|
2990
2886
|
SplitChargeRules: serializeAws_json1_1CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
|
|
2991
2887
|
}));
|
|
2992
2888
|
};
|
|
@@ -3015,19 +2911,13 @@ var deserializeAws_json1_1Anomaly = function (output, context) {
|
|
|
3015
2911
|
return {
|
|
3016
2912
|
AnomalyEndDate: __expectString(output.AnomalyEndDate),
|
|
3017
2913
|
AnomalyId: __expectString(output.AnomalyId),
|
|
3018
|
-
AnomalyScore: output.AnomalyScore
|
|
3019
|
-
? deserializeAws_json1_1AnomalyScore(output.AnomalyScore, context)
|
|
3020
|
-
: undefined,
|
|
2914
|
+
AnomalyScore: output.AnomalyScore != null ? deserializeAws_json1_1AnomalyScore(output.AnomalyScore, context) : undefined,
|
|
3021
2915
|
AnomalyStartDate: __expectString(output.AnomalyStartDate),
|
|
3022
2916
|
DimensionValue: __expectString(output.DimensionValue),
|
|
3023
2917
|
Feedback: __expectString(output.Feedback),
|
|
3024
|
-
Impact: output.Impact
|
|
3025
|
-
? deserializeAws_json1_1Impact(output.Impact, context)
|
|
3026
|
-
: undefined,
|
|
2918
|
+
Impact: output.Impact != null ? deserializeAws_json1_1Impact(output.Impact, context) : undefined,
|
|
3027
2919
|
MonitorArn: __expectString(output.MonitorArn),
|
|
3028
|
-
RootCauses: output.RootCauses
|
|
3029
|
-
? deserializeAws_json1_1RootCauses(output.RootCauses, context)
|
|
3030
|
-
: undefined,
|
|
2920
|
+
RootCauses: output.RootCauses != null ? deserializeAws_json1_1RootCauses(output.RootCauses, context) : undefined,
|
|
3031
2921
|
};
|
|
3032
2922
|
};
|
|
3033
2923
|
var deserializeAws_json1_1AnomalyMonitor = function (output, context) {
|
|
@@ -3039,7 +2929,7 @@ var deserializeAws_json1_1AnomalyMonitor = function (output, context) {
|
|
|
3039
2929
|
MonitorArn: __expectString(output.MonitorArn),
|
|
3040
2930
|
MonitorDimension: __expectString(output.MonitorDimension),
|
|
3041
2931
|
MonitorName: __expectString(output.MonitorName),
|
|
3042
|
-
MonitorSpecification: output.MonitorSpecification
|
|
2932
|
+
MonitorSpecification: output.MonitorSpecification != null
|
|
3043
2933
|
? deserializeAws_json1_1Expression(output.MonitorSpecification, context)
|
|
3044
2934
|
: undefined,
|
|
3045
2935
|
MonitorType: __expectString(output.MonitorType),
|
|
@@ -3066,12 +2956,8 @@ var deserializeAws_json1_1AnomalySubscription = function (output, context) {
|
|
|
3066
2956
|
return {
|
|
3067
2957
|
AccountId: __expectString(output.AccountId),
|
|
3068
2958
|
Frequency: __expectString(output.Frequency),
|
|
3069
|
-
MonitorArnList: output.MonitorArnList
|
|
3070
|
-
|
|
3071
|
-
: undefined,
|
|
3072
|
-
Subscribers: output.Subscribers !== undefined && output.Subscribers !== null
|
|
3073
|
-
? deserializeAws_json1_1Subscribers(output.Subscribers, context)
|
|
3074
|
-
: undefined,
|
|
2959
|
+
MonitorArnList: output.MonitorArnList != null ? deserializeAws_json1_1MonitorArnList(output.MonitorArnList, context) : undefined,
|
|
2960
|
+
Subscribers: output.Subscribers != null ? deserializeAws_json1_1Subscribers(output.Subscribers, context) : undefined,
|
|
3075
2961
|
SubscriptionArn: __expectString(output.SubscriptionArn),
|
|
3076
2962
|
SubscriptionName: __expectString(output.SubscriptionName),
|
|
3077
2963
|
Threshold: __limitedParseDouble(output.Threshold),
|
|
@@ -3128,14 +3014,12 @@ var deserializeAws_json1_1CostCategory = function (output, context) {
|
|
|
3128
3014
|
EffectiveEnd: __expectString(output.EffectiveEnd),
|
|
3129
3015
|
EffectiveStart: __expectString(output.EffectiveStart),
|
|
3130
3016
|
Name: __expectString(output.Name),
|
|
3131
|
-
ProcessingStatus: output.ProcessingStatus
|
|
3017
|
+
ProcessingStatus: output.ProcessingStatus != null
|
|
3132
3018
|
? deserializeAws_json1_1CostCategoryProcessingStatusList(output.ProcessingStatus, context)
|
|
3133
3019
|
: undefined,
|
|
3134
3020
|
RuleVersion: __expectString(output.RuleVersion),
|
|
3135
|
-
Rules: output.Rules
|
|
3136
|
-
|
|
3137
|
-
: undefined,
|
|
3138
|
-
SplitChargeRules: output.SplitChargeRules !== undefined && output.SplitChargeRules !== null
|
|
3021
|
+
Rules: output.Rules != null ? deserializeAws_json1_1CostCategoryRulesList(output.Rules, context) : undefined,
|
|
3022
|
+
SplitChargeRules: output.SplitChargeRules != null
|
|
3139
3023
|
? deserializeAws_json1_1CostCategorySplitChargeRulesList(output.SplitChargeRules, context)
|
|
3140
3024
|
: undefined,
|
|
3141
3025
|
};
|
|
@@ -3182,12 +3066,10 @@ var deserializeAws_json1_1CostCategoryReference = function (output, context) {
|
|
|
3182
3066
|
EffectiveStart: __expectString(output.EffectiveStart),
|
|
3183
3067
|
Name: __expectString(output.Name),
|
|
3184
3068
|
NumberOfRules: __expectInt32(output.NumberOfRules),
|
|
3185
|
-
ProcessingStatus: output.ProcessingStatus
|
|
3069
|
+
ProcessingStatus: output.ProcessingStatus != null
|
|
3186
3070
|
? deserializeAws_json1_1CostCategoryProcessingStatusList(output.ProcessingStatus, context)
|
|
3187
3071
|
: undefined,
|
|
3188
|
-
Values: output.Values
|
|
3189
|
-
? deserializeAws_json1_1CostCategoryValuesList(output.Values, context)
|
|
3190
|
-
: undefined,
|
|
3072
|
+
Values: output.Values != null ? deserializeAws_json1_1CostCategoryValuesList(output.Values, context) : undefined,
|
|
3191
3073
|
};
|
|
3192
3074
|
};
|
|
3193
3075
|
var deserializeAws_json1_1CostCategoryReferencesList = function (output, context) {
|
|
@@ -3203,12 +3085,10 @@ var deserializeAws_json1_1CostCategoryReferencesList = function (output, context
|
|
|
3203
3085
|
};
|
|
3204
3086
|
var deserializeAws_json1_1CostCategoryRule = function (output, context) {
|
|
3205
3087
|
return {
|
|
3206
|
-
InheritedValue: output.InheritedValue
|
|
3088
|
+
InheritedValue: output.InheritedValue != null
|
|
3207
3089
|
? deserializeAws_json1_1CostCategoryInheritedValueDimension(output.InheritedValue, context)
|
|
3208
3090
|
: undefined,
|
|
3209
|
-
Rule: output.Rule
|
|
3210
|
-
? deserializeAws_json1_1Expression(output.Rule, context)
|
|
3211
|
-
: undefined,
|
|
3091
|
+
Rule: output.Rule != null ? deserializeAws_json1_1Expression(output.Rule, context) : undefined,
|
|
3212
3092
|
Type: __expectString(output.Type),
|
|
3213
3093
|
Value: __expectString(output.Value),
|
|
3214
3094
|
};
|
|
@@ -3227,11 +3107,11 @@ var deserializeAws_json1_1CostCategoryRulesList = function (output, context) {
|
|
|
3227
3107
|
var deserializeAws_json1_1CostCategorySplitChargeRule = function (output, context) {
|
|
3228
3108
|
return {
|
|
3229
3109
|
Method: __expectString(output.Method),
|
|
3230
|
-
Parameters: output.Parameters
|
|
3110
|
+
Parameters: output.Parameters != null
|
|
3231
3111
|
? deserializeAws_json1_1CostCategorySplitChargeRuleParametersList(output.Parameters, context)
|
|
3232
3112
|
: undefined,
|
|
3233
3113
|
Source: __expectString(output.Source),
|
|
3234
|
-
Targets: output.Targets
|
|
3114
|
+
Targets: output.Targets != null
|
|
3235
3115
|
? deserializeAws_json1_1CostCategorySplitChargeRuleTargetsList(output.Targets, context)
|
|
3236
3116
|
: undefined,
|
|
3237
3117
|
};
|
|
@@ -3239,7 +3119,7 @@ var deserializeAws_json1_1CostCategorySplitChargeRule = function (output, contex
|
|
|
3239
3119
|
var deserializeAws_json1_1CostCategorySplitChargeRuleParameter = function (output, context) {
|
|
3240
3120
|
return {
|
|
3241
3121
|
Type: __expectString(output.Type),
|
|
3242
|
-
Values: output.Values
|
|
3122
|
+
Values: output.Values != null
|
|
3243
3123
|
? deserializeAws_json1_1CostCategorySplitChargeRuleParameterValuesList(output.Values, context)
|
|
3244
3124
|
: undefined,
|
|
3245
3125
|
};
|
|
@@ -3291,12 +3171,8 @@ var deserializeAws_json1_1CostCategorySplitChargeRuleTargetsList = function (out
|
|
|
3291
3171
|
var deserializeAws_json1_1CostCategoryValues = function (output, context) {
|
|
3292
3172
|
return {
|
|
3293
3173
|
Key: __expectString(output.Key),
|
|
3294
|
-
MatchOptions: output.MatchOptions
|
|
3295
|
-
|
|
3296
|
-
: undefined,
|
|
3297
|
-
Values: output.Values !== undefined && output.Values !== null
|
|
3298
|
-
? deserializeAws_json1_1Values(output.Values, context)
|
|
3299
|
-
: undefined,
|
|
3174
|
+
MatchOptions: output.MatchOptions != null ? deserializeAws_json1_1MatchOptions(output.MatchOptions, context) : undefined,
|
|
3175
|
+
Values: output.Values != null ? deserializeAws_json1_1Values(output.Values, context) : undefined,
|
|
3300
3176
|
};
|
|
3301
3177
|
};
|
|
3302
3178
|
var deserializeAws_json1_1CostCategoryValuesList = function (output, context) {
|
|
@@ -3312,28 +3188,18 @@ var deserializeAws_json1_1CostCategoryValuesList = function (output, context) {
|
|
|
3312
3188
|
};
|
|
3313
3189
|
var deserializeAws_json1_1Coverage = function (output, context) {
|
|
3314
3190
|
return {
|
|
3315
|
-
CoverageCost: output.CoverageCost
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
CoverageHours: output.CoverageHours !== undefined && output.CoverageHours !== null
|
|
3319
|
-
? deserializeAws_json1_1CoverageHours(output.CoverageHours, context)
|
|
3320
|
-
: undefined,
|
|
3321
|
-
CoverageNormalizedUnits: output.CoverageNormalizedUnits !== undefined && output.CoverageNormalizedUnits !== null
|
|
3191
|
+
CoverageCost: output.CoverageCost != null ? deserializeAws_json1_1CoverageCost(output.CoverageCost, context) : undefined,
|
|
3192
|
+
CoverageHours: output.CoverageHours != null ? deserializeAws_json1_1CoverageHours(output.CoverageHours, context) : undefined,
|
|
3193
|
+
CoverageNormalizedUnits: output.CoverageNormalizedUnits != null
|
|
3322
3194
|
? deserializeAws_json1_1CoverageNormalizedUnits(output.CoverageNormalizedUnits, context)
|
|
3323
3195
|
: undefined,
|
|
3324
3196
|
};
|
|
3325
3197
|
};
|
|
3326
3198
|
var deserializeAws_json1_1CoverageByTime = function (output, context) {
|
|
3327
3199
|
return {
|
|
3328
|
-
Groups: output.Groups
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
3332
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
3333
|
-
: undefined,
|
|
3334
|
-
Total: output.Total !== undefined && output.Total !== null
|
|
3335
|
-
? deserializeAws_json1_1Coverage(output.Total, context)
|
|
3336
|
-
: undefined,
|
|
3200
|
+
Groups: output.Groups != null ? deserializeAws_json1_1ReservationCoverageGroups(output.Groups, context) : undefined,
|
|
3201
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
3202
|
+
Total: output.Total != null ? deserializeAws_json1_1Coverage(output.Total, context) : undefined,
|
|
3337
3203
|
};
|
|
3338
3204
|
};
|
|
3339
3205
|
var deserializeAws_json1_1CoverageCost = function (output, context) {
|
|
@@ -3391,17 +3257,15 @@ var deserializeAws_json1_1CurrentInstance = function (output, context) {
|
|
|
3391
3257
|
MonthlyCost: __expectString(output.MonthlyCost),
|
|
3392
3258
|
OnDemandHoursInLookbackPeriod: __expectString(output.OnDemandHoursInLookbackPeriod),
|
|
3393
3259
|
ReservationCoveredHoursInLookbackPeriod: __expectString(output.ReservationCoveredHoursInLookbackPeriod),
|
|
3394
|
-
ResourceDetails: output.ResourceDetails
|
|
3260
|
+
ResourceDetails: output.ResourceDetails != null
|
|
3395
3261
|
? deserializeAws_json1_1ResourceDetails(output.ResourceDetails, context)
|
|
3396
3262
|
: undefined,
|
|
3397
3263
|
ResourceId: __expectString(output.ResourceId),
|
|
3398
|
-
ResourceUtilization: output.ResourceUtilization
|
|
3264
|
+
ResourceUtilization: output.ResourceUtilization != null
|
|
3399
3265
|
? deserializeAws_json1_1ResourceUtilization(output.ResourceUtilization, context)
|
|
3400
3266
|
: undefined,
|
|
3401
3267
|
SavingsPlansCoveredHoursInLookbackPeriod: __expectString(output.SavingsPlansCoveredHoursInLookbackPeriod),
|
|
3402
|
-
Tags: output.Tags
|
|
3403
|
-
? deserializeAws_json1_1TagValuesList(output.Tags, context)
|
|
3404
|
-
: undefined,
|
|
3268
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagValuesList(output.Tags, context) : undefined,
|
|
3405
3269
|
TotalRunningHoursInLookbackPeriod: __expectString(output.TotalRunningHoursInLookbackPeriod),
|
|
3406
3270
|
};
|
|
3407
3271
|
};
|
|
@@ -3430,27 +3294,19 @@ var deserializeAws_json1_1DeleteCostCategoryDefinitionResponse = function (outpu
|
|
|
3430
3294
|
};
|
|
3431
3295
|
var deserializeAws_json1_1DescribeCostCategoryDefinitionResponse = function (output, context) {
|
|
3432
3296
|
return {
|
|
3433
|
-
CostCategory: output.CostCategory
|
|
3434
|
-
? deserializeAws_json1_1CostCategory(output.CostCategory, context)
|
|
3435
|
-
: undefined,
|
|
3297
|
+
CostCategory: output.CostCategory != null ? deserializeAws_json1_1CostCategory(output.CostCategory, context) : undefined,
|
|
3436
3298
|
};
|
|
3437
3299
|
};
|
|
3438
3300
|
var deserializeAws_json1_1DimensionValues = function (output, context) {
|
|
3439
3301
|
return {
|
|
3440
3302
|
Key: __expectString(output.Key),
|
|
3441
|
-
MatchOptions: output.MatchOptions
|
|
3442
|
-
|
|
3443
|
-
: undefined,
|
|
3444
|
-
Values: output.Values !== undefined && output.Values !== null
|
|
3445
|
-
? deserializeAws_json1_1Values(output.Values, context)
|
|
3446
|
-
: undefined,
|
|
3303
|
+
MatchOptions: output.MatchOptions != null ? deserializeAws_json1_1MatchOptions(output.MatchOptions, context) : undefined,
|
|
3304
|
+
Values: output.Values != null ? deserializeAws_json1_1Values(output.Values, context) : undefined,
|
|
3447
3305
|
};
|
|
3448
3306
|
};
|
|
3449
3307
|
var deserializeAws_json1_1DimensionValuesWithAttributes = function (output, context) {
|
|
3450
3308
|
return {
|
|
3451
|
-
Attributes: output.Attributes
|
|
3452
|
-
? deserializeAws_json1_1Attributes(output.Attributes, context)
|
|
3453
|
-
: undefined,
|
|
3309
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
3454
3310
|
Value: __expectString(output.Value),
|
|
3455
3311
|
};
|
|
3456
3312
|
};
|
|
@@ -3508,16 +3364,16 @@ var deserializeAws_json1_1EC2ResourceDetails = function (output, context) {
|
|
|
3508
3364
|
};
|
|
3509
3365
|
var deserializeAws_json1_1EC2ResourceUtilization = function (output, context) {
|
|
3510
3366
|
return {
|
|
3511
|
-
DiskResourceUtilization: output.DiskResourceUtilization
|
|
3367
|
+
DiskResourceUtilization: output.DiskResourceUtilization != null
|
|
3512
3368
|
? deserializeAws_json1_1DiskResourceUtilization(output.DiskResourceUtilization, context)
|
|
3513
3369
|
: undefined,
|
|
3514
|
-
EBSResourceUtilization: output.EBSResourceUtilization
|
|
3370
|
+
EBSResourceUtilization: output.EBSResourceUtilization != null
|
|
3515
3371
|
? deserializeAws_json1_1EBSResourceUtilization(output.EBSResourceUtilization, context)
|
|
3516
3372
|
: undefined,
|
|
3517
3373
|
MaxCpuUtilizationPercentage: __expectString(output.MaxCpuUtilizationPercentage),
|
|
3518
3374
|
MaxMemoryUtilizationPercentage: __expectString(output.MaxMemoryUtilizationPercentage),
|
|
3519
3375
|
MaxStorageUtilizationPercentage: __expectString(output.MaxStorageUtilizationPercentage),
|
|
3520
|
-
NetworkResourceUtilization: output.NetworkResourceUtilization
|
|
3376
|
+
NetworkResourceUtilization: output.NetworkResourceUtilization != null
|
|
3521
3377
|
? deserializeAws_json1_1NetworkResourceUtilization(output.NetworkResourceUtilization, context)
|
|
3522
3378
|
: undefined,
|
|
3523
3379
|
};
|
|
@@ -3548,22 +3404,14 @@ var deserializeAws_json1_1ESInstanceDetails = function (output, context) {
|
|
|
3548
3404
|
};
|
|
3549
3405
|
var deserializeAws_json1_1Expression = function (output, context) {
|
|
3550
3406
|
return {
|
|
3551
|
-
And: output.And
|
|
3552
|
-
|
|
3553
|
-
: undefined,
|
|
3554
|
-
CostCategories: output.CostCategories !== undefined && output.CostCategories !== null
|
|
3407
|
+
And: output.And != null ? deserializeAws_json1_1Expressions(output.And, context) : undefined,
|
|
3408
|
+
CostCategories: output.CostCategories != null
|
|
3555
3409
|
? deserializeAws_json1_1CostCategoryValues(output.CostCategories, context)
|
|
3556
3410
|
: undefined,
|
|
3557
|
-
Dimensions: output.Dimensions
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
? deserializeAws_json1_1Expression(output.Not, context)
|
|
3562
|
-
: undefined,
|
|
3563
|
-
Or: output.Or !== undefined && output.Or !== null ? deserializeAws_json1_1Expressions(output.Or, context) : undefined,
|
|
3564
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
3565
|
-
? deserializeAws_json1_1TagValues(output.Tags, context)
|
|
3566
|
-
: undefined,
|
|
3411
|
+
Dimensions: output.Dimensions != null ? deserializeAws_json1_1DimensionValues(output.Dimensions, context) : undefined,
|
|
3412
|
+
Not: output.Not != null ? deserializeAws_json1_1Expression(output.Not, context) : undefined,
|
|
3413
|
+
Or: output.Or != null ? deserializeAws_json1_1Expressions(output.Or, context) : undefined,
|
|
3414
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagValues(output.Tags, context) : undefined,
|
|
3567
3415
|
};
|
|
3568
3416
|
};
|
|
3569
3417
|
var deserializeAws_json1_1Expressions = function (output, context) {
|
|
@@ -3593,9 +3441,7 @@ var deserializeAws_json1_1ForecastResult = function (output, context) {
|
|
|
3593
3441
|
MeanValue: __expectString(output.MeanValue),
|
|
3594
3442
|
PredictionIntervalLowerBound: __expectString(output.PredictionIntervalLowerBound),
|
|
3595
3443
|
PredictionIntervalUpperBound: __expectString(output.PredictionIntervalUpperBound),
|
|
3596
|
-
TimePeriod: output.TimePeriod
|
|
3597
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
3598
|
-
: undefined,
|
|
3444
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
3599
3445
|
};
|
|
3600
3446
|
};
|
|
3601
3447
|
var deserializeAws_json1_1ForecastResultsByTime = function (output, context) {
|
|
@@ -3611,15 +3457,13 @@ var deserializeAws_json1_1ForecastResultsByTime = function (output, context) {
|
|
|
3611
3457
|
};
|
|
3612
3458
|
var deserializeAws_json1_1GetAnomaliesResponse = function (output, context) {
|
|
3613
3459
|
return {
|
|
3614
|
-
Anomalies: output.Anomalies
|
|
3615
|
-
? deserializeAws_json1_1Anomalies(output.Anomalies, context)
|
|
3616
|
-
: undefined,
|
|
3460
|
+
Anomalies: output.Anomalies != null ? deserializeAws_json1_1Anomalies(output.Anomalies, context) : undefined,
|
|
3617
3461
|
NextPageToken: __expectString(output.NextPageToken),
|
|
3618
3462
|
};
|
|
3619
3463
|
};
|
|
3620
3464
|
var deserializeAws_json1_1GetAnomalyMonitorsResponse = function (output, context) {
|
|
3621
3465
|
return {
|
|
3622
|
-
AnomalyMonitors: output.AnomalyMonitors
|
|
3466
|
+
AnomalyMonitors: output.AnomalyMonitors != null
|
|
3623
3467
|
? deserializeAws_json1_1AnomalyMonitors(output.AnomalyMonitors, context)
|
|
3624
3468
|
: undefined,
|
|
3625
3469
|
NextPageToken: __expectString(output.NextPageToken),
|
|
@@ -3627,7 +3471,7 @@ var deserializeAws_json1_1GetAnomalyMonitorsResponse = function (output, context
|
|
|
3627
3471
|
};
|
|
3628
3472
|
var deserializeAws_json1_1GetAnomalySubscriptionsResponse = function (output, context) {
|
|
3629
3473
|
return {
|
|
3630
|
-
AnomalySubscriptions: output.AnomalySubscriptions
|
|
3474
|
+
AnomalySubscriptions: output.AnomalySubscriptions != null
|
|
3631
3475
|
? deserializeAws_json1_1AnomalySubscriptions(output.AnomalySubscriptions, context)
|
|
3632
3476
|
: undefined,
|
|
3633
3477
|
NextPageToken: __expectString(output.NextPageToken),
|
|
@@ -3635,38 +3479,34 @@ var deserializeAws_json1_1GetAnomalySubscriptionsResponse = function (output, co
|
|
|
3635
3479
|
};
|
|
3636
3480
|
var deserializeAws_json1_1GetCostAndUsageResponse = function (output, context) {
|
|
3637
3481
|
return {
|
|
3638
|
-
DimensionValueAttributes: output.DimensionValueAttributes
|
|
3482
|
+
DimensionValueAttributes: output.DimensionValueAttributes != null
|
|
3639
3483
|
? deserializeAws_json1_1DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
|
|
3640
3484
|
: undefined,
|
|
3641
|
-
GroupDefinitions: output.GroupDefinitions
|
|
3485
|
+
GroupDefinitions: output.GroupDefinitions != null
|
|
3642
3486
|
? deserializeAws_json1_1GroupDefinitions(output.GroupDefinitions, context)
|
|
3643
3487
|
: undefined,
|
|
3644
3488
|
NextPageToken: __expectString(output.NextPageToken),
|
|
3645
|
-
ResultsByTime: output.ResultsByTime
|
|
3646
|
-
? deserializeAws_json1_1ResultsByTime(output.ResultsByTime, context)
|
|
3647
|
-
: undefined,
|
|
3489
|
+
ResultsByTime: output.ResultsByTime != null ? deserializeAws_json1_1ResultsByTime(output.ResultsByTime, context) : undefined,
|
|
3648
3490
|
};
|
|
3649
3491
|
};
|
|
3650
3492
|
var deserializeAws_json1_1GetCostAndUsageWithResourcesResponse = function (output, context) {
|
|
3651
3493
|
return {
|
|
3652
|
-
DimensionValueAttributes: output.DimensionValueAttributes
|
|
3494
|
+
DimensionValueAttributes: output.DimensionValueAttributes != null
|
|
3653
3495
|
? deserializeAws_json1_1DimensionValuesWithAttributesList(output.DimensionValueAttributes, context)
|
|
3654
3496
|
: undefined,
|
|
3655
|
-
GroupDefinitions: output.GroupDefinitions
|
|
3497
|
+
GroupDefinitions: output.GroupDefinitions != null
|
|
3656
3498
|
? deserializeAws_json1_1GroupDefinitions(output.GroupDefinitions, context)
|
|
3657
3499
|
: undefined,
|
|
3658
3500
|
NextPageToken: __expectString(output.NextPageToken),
|
|
3659
|
-
ResultsByTime: output.ResultsByTime
|
|
3660
|
-
? deserializeAws_json1_1ResultsByTime(output.ResultsByTime, context)
|
|
3661
|
-
: undefined,
|
|
3501
|
+
ResultsByTime: output.ResultsByTime != null ? deserializeAws_json1_1ResultsByTime(output.ResultsByTime, context) : undefined,
|
|
3662
3502
|
};
|
|
3663
3503
|
};
|
|
3664
3504
|
var deserializeAws_json1_1GetCostCategoriesResponse = function (output, context) {
|
|
3665
3505
|
return {
|
|
3666
|
-
CostCategoryNames: output.CostCategoryNames
|
|
3506
|
+
CostCategoryNames: output.CostCategoryNames != null
|
|
3667
3507
|
? deserializeAws_json1_1CostCategoryNamesList(output.CostCategoryNames, context)
|
|
3668
3508
|
: undefined,
|
|
3669
|
-
CostCategoryValues: output.CostCategoryValues
|
|
3509
|
+
CostCategoryValues: output.CostCategoryValues != null
|
|
3670
3510
|
? deserializeAws_json1_1CostCategoryValuesList(output.CostCategoryValues, context)
|
|
3671
3511
|
: undefined,
|
|
3672
3512
|
NextPageToken: __expectString(output.NextPageToken),
|
|
@@ -3676,17 +3516,15 @@ var deserializeAws_json1_1GetCostCategoriesResponse = function (output, context)
|
|
|
3676
3516
|
};
|
|
3677
3517
|
var deserializeAws_json1_1GetCostForecastResponse = function (output, context) {
|
|
3678
3518
|
return {
|
|
3679
|
-
ForecastResultsByTime: output.ForecastResultsByTime
|
|
3519
|
+
ForecastResultsByTime: output.ForecastResultsByTime != null
|
|
3680
3520
|
? deserializeAws_json1_1ForecastResultsByTime(output.ForecastResultsByTime, context)
|
|
3681
3521
|
: undefined,
|
|
3682
|
-
Total: output.Total
|
|
3683
|
-
? deserializeAws_json1_1MetricValue(output.Total, context)
|
|
3684
|
-
: undefined,
|
|
3522
|
+
Total: output.Total != null ? deserializeAws_json1_1MetricValue(output.Total, context) : undefined,
|
|
3685
3523
|
};
|
|
3686
3524
|
};
|
|
3687
3525
|
var deserializeAws_json1_1GetDimensionValuesResponse = function (output, context) {
|
|
3688
3526
|
return {
|
|
3689
|
-
DimensionValues: output.DimensionValues
|
|
3527
|
+
DimensionValues: output.DimensionValues != null
|
|
3690
3528
|
? deserializeAws_json1_1DimensionValuesWithAttributesList(output.DimensionValues, context)
|
|
3691
3529
|
: undefined,
|
|
3692
3530
|
NextPageToken: __expectString(output.NextPageToken),
|
|
@@ -3696,22 +3534,20 @@ var deserializeAws_json1_1GetDimensionValuesResponse = function (output, context
|
|
|
3696
3534
|
};
|
|
3697
3535
|
var deserializeAws_json1_1GetReservationCoverageResponse = function (output, context) {
|
|
3698
3536
|
return {
|
|
3699
|
-
CoveragesByTime: output.CoveragesByTime
|
|
3537
|
+
CoveragesByTime: output.CoveragesByTime != null
|
|
3700
3538
|
? deserializeAws_json1_1CoveragesByTime(output.CoveragesByTime, context)
|
|
3701
3539
|
: undefined,
|
|
3702
3540
|
NextPageToken: __expectString(output.NextPageToken),
|
|
3703
|
-
Total: output.Total
|
|
3704
|
-
? deserializeAws_json1_1Coverage(output.Total, context)
|
|
3705
|
-
: undefined,
|
|
3541
|
+
Total: output.Total != null ? deserializeAws_json1_1Coverage(output.Total, context) : undefined,
|
|
3706
3542
|
};
|
|
3707
3543
|
};
|
|
3708
3544
|
var deserializeAws_json1_1GetReservationPurchaseRecommendationResponse = function (output, context) {
|
|
3709
3545
|
return {
|
|
3710
|
-
Metadata: output.Metadata
|
|
3546
|
+
Metadata: output.Metadata != null
|
|
3711
3547
|
? deserializeAws_json1_1ReservationPurchaseRecommendationMetadata(output.Metadata, context)
|
|
3712
3548
|
: undefined,
|
|
3713
3549
|
NextPageToken: __expectString(output.NextPageToken),
|
|
3714
|
-
Recommendations: output.Recommendations
|
|
3550
|
+
Recommendations: output.Recommendations != null
|
|
3715
3551
|
? deserializeAws_json1_1ReservationPurchaseRecommendations(output.Recommendations, context)
|
|
3716
3552
|
: undefined,
|
|
3717
3553
|
};
|
|
@@ -3719,27 +3555,25 @@ var deserializeAws_json1_1GetReservationPurchaseRecommendationResponse = functio
|
|
|
3719
3555
|
var deserializeAws_json1_1GetReservationUtilizationResponse = function (output, context) {
|
|
3720
3556
|
return {
|
|
3721
3557
|
NextPageToken: __expectString(output.NextPageToken),
|
|
3722
|
-
Total: output.Total
|
|
3723
|
-
|
|
3724
|
-
: undefined,
|
|
3725
|
-
UtilizationsByTime: output.UtilizationsByTime !== undefined && output.UtilizationsByTime !== null
|
|
3558
|
+
Total: output.Total != null ? deserializeAws_json1_1ReservationAggregates(output.Total, context) : undefined,
|
|
3559
|
+
UtilizationsByTime: output.UtilizationsByTime != null
|
|
3726
3560
|
? deserializeAws_json1_1UtilizationsByTime(output.UtilizationsByTime, context)
|
|
3727
3561
|
: undefined,
|
|
3728
3562
|
};
|
|
3729
3563
|
};
|
|
3730
3564
|
var deserializeAws_json1_1GetRightsizingRecommendationResponse = function (output, context) {
|
|
3731
3565
|
return {
|
|
3732
|
-
Configuration: output.Configuration
|
|
3566
|
+
Configuration: output.Configuration != null
|
|
3733
3567
|
? deserializeAws_json1_1RightsizingRecommendationConfiguration(output.Configuration, context)
|
|
3734
3568
|
: undefined,
|
|
3735
|
-
Metadata: output.Metadata
|
|
3569
|
+
Metadata: output.Metadata != null
|
|
3736
3570
|
? deserializeAws_json1_1RightsizingRecommendationMetadata(output.Metadata, context)
|
|
3737
3571
|
: undefined,
|
|
3738
3572
|
NextPageToken: __expectString(output.NextPageToken),
|
|
3739
|
-
RightsizingRecommendations: output.RightsizingRecommendations
|
|
3573
|
+
RightsizingRecommendations: output.RightsizingRecommendations != null
|
|
3740
3574
|
? deserializeAws_json1_1RightsizingRecommendationList(output.RightsizingRecommendations, context)
|
|
3741
3575
|
: undefined,
|
|
3742
|
-
Summary: output.Summary
|
|
3576
|
+
Summary: output.Summary != null
|
|
3743
3577
|
? deserializeAws_json1_1RightsizingRecommendationSummary(output.Summary, context)
|
|
3744
3578
|
: undefined,
|
|
3745
3579
|
};
|
|
@@ -3747,18 +3581,18 @@ var deserializeAws_json1_1GetRightsizingRecommendationResponse = function (outpu
|
|
|
3747
3581
|
var deserializeAws_json1_1GetSavingsPlansCoverageResponse = function (output, context) {
|
|
3748
3582
|
return {
|
|
3749
3583
|
NextToken: __expectString(output.NextToken),
|
|
3750
|
-
SavingsPlansCoverages: output.SavingsPlansCoverages
|
|
3584
|
+
SavingsPlansCoverages: output.SavingsPlansCoverages != null
|
|
3751
3585
|
? deserializeAws_json1_1SavingsPlansCoverages(output.SavingsPlansCoverages, context)
|
|
3752
3586
|
: undefined,
|
|
3753
3587
|
};
|
|
3754
3588
|
};
|
|
3755
3589
|
var deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationResponse = function (output, context) {
|
|
3756
3590
|
return {
|
|
3757
|
-
Metadata: output.Metadata
|
|
3591
|
+
Metadata: output.Metadata != null
|
|
3758
3592
|
? deserializeAws_json1_1SavingsPlansPurchaseRecommendationMetadata(output.Metadata, context)
|
|
3759
3593
|
: undefined,
|
|
3760
3594
|
NextPageToken: __expectString(output.NextPageToken),
|
|
3761
|
-
SavingsPlansPurchaseRecommendation: output.SavingsPlansPurchaseRecommendation
|
|
3595
|
+
SavingsPlansPurchaseRecommendation: output.SavingsPlansPurchaseRecommendation != null
|
|
3762
3596
|
? deserializeAws_json1_1SavingsPlansPurchaseRecommendation(output.SavingsPlansPurchaseRecommendation, context)
|
|
3763
3597
|
: undefined,
|
|
3764
3598
|
};
|
|
@@ -3766,53 +3600,41 @@ var deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationResponse = functi
|
|
|
3766
3600
|
var deserializeAws_json1_1GetSavingsPlansUtilizationDetailsResponse = function (output, context) {
|
|
3767
3601
|
return {
|
|
3768
3602
|
NextToken: __expectString(output.NextToken),
|
|
3769
|
-
SavingsPlansUtilizationDetails: output.SavingsPlansUtilizationDetails
|
|
3603
|
+
SavingsPlansUtilizationDetails: output.SavingsPlansUtilizationDetails != null
|
|
3770
3604
|
? deserializeAws_json1_1SavingsPlansUtilizationDetails(output.SavingsPlansUtilizationDetails, context)
|
|
3771
3605
|
: undefined,
|
|
3772
|
-
TimePeriod: output.TimePeriod
|
|
3773
|
-
|
|
3774
|
-
: undefined,
|
|
3775
|
-
Total: output.Total !== undefined && output.Total !== null
|
|
3776
|
-
? deserializeAws_json1_1SavingsPlansUtilizationAggregates(output.Total, context)
|
|
3777
|
-
: undefined,
|
|
3606
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
3607
|
+
Total: output.Total != null ? deserializeAws_json1_1SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
|
|
3778
3608
|
};
|
|
3779
3609
|
};
|
|
3780
3610
|
var deserializeAws_json1_1GetSavingsPlansUtilizationResponse = function (output, context) {
|
|
3781
3611
|
return {
|
|
3782
|
-
SavingsPlansUtilizationsByTime: output.SavingsPlansUtilizationsByTime
|
|
3612
|
+
SavingsPlansUtilizationsByTime: output.SavingsPlansUtilizationsByTime != null
|
|
3783
3613
|
? deserializeAws_json1_1SavingsPlansUtilizationsByTime(output.SavingsPlansUtilizationsByTime, context)
|
|
3784
3614
|
: undefined,
|
|
3785
|
-
Total: output.Total
|
|
3786
|
-
? deserializeAws_json1_1SavingsPlansUtilizationAggregates(output.Total, context)
|
|
3787
|
-
: undefined,
|
|
3615
|
+
Total: output.Total != null ? deserializeAws_json1_1SavingsPlansUtilizationAggregates(output.Total, context) : undefined,
|
|
3788
3616
|
};
|
|
3789
3617
|
};
|
|
3790
3618
|
var deserializeAws_json1_1GetTagsResponse = function (output, context) {
|
|
3791
3619
|
return {
|
|
3792
3620
|
NextPageToken: __expectString(output.NextPageToken),
|
|
3793
3621
|
ReturnSize: __expectInt32(output.ReturnSize),
|
|
3794
|
-
Tags: output.Tags
|
|
3795
|
-
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
3796
|
-
: undefined,
|
|
3622
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
3797
3623
|
TotalSize: __expectInt32(output.TotalSize),
|
|
3798
3624
|
};
|
|
3799
3625
|
};
|
|
3800
3626
|
var deserializeAws_json1_1GetUsageForecastResponse = function (output, context) {
|
|
3801
3627
|
return {
|
|
3802
|
-
ForecastResultsByTime: output.ForecastResultsByTime
|
|
3628
|
+
ForecastResultsByTime: output.ForecastResultsByTime != null
|
|
3803
3629
|
? deserializeAws_json1_1ForecastResultsByTime(output.ForecastResultsByTime, context)
|
|
3804
3630
|
: undefined,
|
|
3805
|
-
Total: output.Total
|
|
3806
|
-
? deserializeAws_json1_1MetricValue(output.Total, context)
|
|
3807
|
-
: undefined,
|
|
3631
|
+
Total: output.Total != null ? deserializeAws_json1_1MetricValue(output.Total, context) : undefined,
|
|
3808
3632
|
};
|
|
3809
3633
|
};
|
|
3810
3634
|
var deserializeAws_json1_1Group = function (output, context) {
|
|
3811
3635
|
return {
|
|
3812
|
-
Keys: output.Keys
|
|
3813
|
-
Metrics: output.Metrics
|
|
3814
|
-
? deserializeAws_json1_1Metrics(output.Metrics, context)
|
|
3815
|
-
: undefined,
|
|
3636
|
+
Keys: output.Keys != null ? deserializeAws_json1_1Keys(output.Keys, context) : undefined,
|
|
3637
|
+
Metrics: output.Metrics != null ? deserializeAws_json1_1Metrics(output.Metrics, context) : undefined,
|
|
3816
3638
|
};
|
|
3817
3639
|
};
|
|
3818
3640
|
var deserializeAws_json1_1GroupDefinition = function (output, context) {
|
|
@@ -3851,19 +3673,19 @@ var deserializeAws_json1_1Impact = function (output, context) {
|
|
|
3851
3673
|
};
|
|
3852
3674
|
var deserializeAws_json1_1InstanceDetails = function (output, context) {
|
|
3853
3675
|
return {
|
|
3854
|
-
EC2InstanceDetails: output.EC2InstanceDetails
|
|
3676
|
+
EC2InstanceDetails: output.EC2InstanceDetails != null
|
|
3855
3677
|
? deserializeAws_json1_1EC2InstanceDetails(output.EC2InstanceDetails, context)
|
|
3856
3678
|
: undefined,
|
|
3857
|
-
ESInstanceDetails: output.ESInstanceDetails
|
|
3679
|
+
ESInstanceDetails: output.ESInstanceDetails != null
|
|
3858
3680
|
? deserializeAws_json1_1ESInstanceDetails(output.ESInstanceDetails, context)
|
|
3859
3681
|
: undefined,
|
|
3860
|
-
ElastiCacheInstanceDetails: output.ElastiCacheInstanceDetails
|
|
3682
|
+
ElastiCacheInstanceDetails: output.ElastiCacheInstanceDetails != null
|
|
3861
3683
|
? deserializeAws_json1_1ElastiCacheInstanceDetails(output.ElastiCacheInstanceDetails, context)
|
|
3862
3684
|
: undefined,
|
|
3863
|
-
RDSInstanceDetails: output.RDSInstanceDetails
|
|
3685
|
+
RDSInstanceDetails: output.RDSInstanceDetails != null
|
|
3864
3686
|
? deserializeAws_json1_1RDSInstanceDetails(output.RDSInstanceDetails, context)
|
|
3865
3687
|
: undefined,
|
|
3866
|
-
RedshiftInstanceDetails: output.RedshiftInstanceDetails
|
|
3688
|
+
RedshiftInstanceDetails: output.RedshiftInstanceDetails != null
|
|
3867
3689
|
? deserializeAws_json1_1RedshiftInstanceDetails(output.RedshiftInstanceDetails, context)
|
|
3868
3690
|
: undefined,
|
|
3869
3691
|
};
|
|
@@ -3891,7 +3713,7 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
|
3891
3713
|
};
|
|
3892
3714
|
var deserializeAws_json1_1ListCostAllocationTagsResponse = function (output, context) {
|
|
3893
3715
|
return {
|
|
3894
|
-
CostAllocationTags: output.CostAllocationTags
|
|
3716
|
+
CostAllocationTags: output.CostAllocationTags != null
|
|
3895
3717
|
? deserializeAws_json1_1CostAllocationTagList(output.CostAllocationTags, context)
|
|
3896
3718
|
: undefined,
|
|
3897
3719
|
NextToken: __expectString(output.NextToken),
|
|
@@ -3899,7 +3721,7 @@ var deserializeAws_json1_1ListCostAllocationTagsResponse = function (output, con
|
|
|
3899
3721
|
};
|
|
3900
3722
|
var deserializeAws_json1_1ListCostCategoryDefinitionsResponse = function (output, context) {
|
|
3901
3723
|
return {
|
|
3902
|
-
CostCategoryReferences: output.CostCategoryReferences
|
|
3724
|
+
CostCategoryReferences: output.CostCategoryReferences != null
|
|
3903
3725
|
? deserializeAws_json1_1CostCategoryReferencesList(output.CostCategoryReferences, context)
|
|
3904
3726
|
: undefined,
|
|
3905
3727
|
NextToken: __expectString(output.NextToken),
|
|
@@ -3907,9 +3729,7 @@ var deserializeAws_json1_1ListCostCategoryDefinitionsResponse = function (output
|
|
|
3907
3729
|
};
|
|
3908
3730
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
3909
3731
|
return {
|
|
3910
|
-
ResourceTags: output.ResourceTags
|
|
3911
|
-
? deserializeAws_json1_1ResourceTagList(output.ResourceTags, context)
|
|
3912
|
-
: undefined,
|
|
3732
|
+
ResourceTags: output.ResourceTags != null ? deserializeAws_json1_1ResourceTagList(output.ResourceTags, context) : undefined,
|
|
3913
3733
|
};
|
|
3914
3734
|
};
|
|
3915
3735
|
var deserializeAws_json1_1MatchOptions = function (output, context) {
|
|
@@ -3941,7 +3761,7 @@ var deserializeAws_json1_1MetricValue = function (output, context) {
|
|
|
3941
3761
|
};
|
|
3942
3762
|
var deserializeAws_json1_1ModifyRecommendationDetail = function (output, context) {
|
|
3943
3763
|
return {
|
|
3944
|
-
TargetInstances: output.TargetInstances
|
|
3764
|
+
TargetInstances: output.TargetInstances != null
|
|
3945
3765
|
? deserializeAws_json1_1TargetInstancesList(output.TargetInstances, context)
|
|
3946
3766
|
: undefined,
|
|
3947
3767
|
};
|
|
@@ -4031,12 +3851,8 @@ var deserializeAws_json1_1ReservationAggregates = function (output, context) {
|
|
|
4031
3851
|
};
|
|
4032
3852
|
var deserializeAws_json1_1ReservationCoverageGroup = function (output, context) {
|
|
4033
3853
|
return {
|
|
4034
|
-
Attributes: output.Attributes
|
|
4035
|
-
|
|
4036
|
-
: undefined,
|
|
4037
|
-
Coverage: output.Coverage !== undefined && output.Coverage !== null
|
|
4038
|
-
? deserializeAws_json1_1Coverage(output.Coverage, context)
|
|
4039
|
-
: undefined,
|
|
3854
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
3855
|
+
Coverage: output.Coverage != null ? deserializeAws_json1_1Coverage(output.Coverage, context) : undefined,
|
|
4040
3856
|
};
|
|
4041
3857
|
};
|
|
4042
3858
|
var deserializeAws_json1_1ReservationCoverageGroups = function (output, context) {
|
|
@@ -4055,13 +3871,13 @@ var deserializeAws_json1_1ReservationPurchaseRecommendation = function (output,
|
|
|
4055
3871
|
AccountScope: __expectString(output.AccountScope),
|
|
4056
3872
|
LookbackPeriodInDays: __expectString(output.LookbackPeriodInDays),
|
|
4057
3873
|
PaymentOption: __expectString(output.PaymentOption),
|
|
4058
|
-
RecommendationDetails: output.RecommendationDetails
|
|
3874
|
+
RecommendationDetails: output.RecommendationDetails != null
|
|
4059
3875
|
? deserializeAws_json1_1ReservationPurchaseRecommendationDetails(output.RecommendationDetails, context)
|
|
4060
3876
|
: undefined,
|
|
4061
|
-
RecommendationSummary: output.RecommendationSummary
|
|
3877
|
+
RecommendationSummary: output.RecommendationSummary != null
|
|
4062
3878
|
? deserializeAws_json1_1ReservationPurchaseRecommendationSummary(output.RecommendationSummary, context)
|
|
4063
3879
|
: undefined,
|
|
4064
|
-
ServiceSpecification: output.ServiceSpecification
|
|
3880
|
+
ServiceSpecification: output.ServiceSpecification != null
|
|
4065
3881
|
? deserializeAws_json1_1ServiceSpecification(output.ServiceSpecification, context)
|
|
4066
3882
|
: undefined,
|
|
4067
3883
|
TermInYears: __expectString(output.TermInYears),
|
|
@@ -4079,7 +3895,7 @@ var deserializeAws_json1_1ReservationPurchaseRecommendationDetail = function (ou
|
|
|
4079
3895
|
EstimatedMonthlySavingsAmount: __expectString(output.EstimatedMonthlySavingsAmount),
|
|
4080
3896
|
EstimatedMonthlySavingsPercentage: __expectString(output.EstimatedMonthlySavingsPercentage),
|
|
4081
3897
|
EstimatedReservationCostForLookbackPeriod: __expectString(output.EstimatedReservationCostForLookbackPeriod),
|
|
4082
|
-
InstanceDetails: output.InstanceDetails
|
|
3898
|
+
InstanceDetails: output.InstanceDetails != null
|
|
4083
3899
|
? deserializeAws_json1_1InstanceDetails(output.InstanceDetails, context)
|
|
4084
3900
|
: undefined,
|
|
4085
3901
|
MaximumNormalizedUnitsUsedPerHour: __expectString(output.MaximumNormalizedUnitsUsedPerHour),
|
|
@@ -4129,13 +3945,9 @@ var deserializeAws_json1_1ReservationPurchaseRecommendationSummary = function (o
|
|
|
4129
3945
|
};
|
|
4130
3946
|
var deserializeAws_json1_1ReservationUtilizationGroup = function (output, context) {
|
|
4131
3947
|
return {
|
|
4132
|
-
Attributes: output.Attributes
|
|
4133
|
-
? deserializeAws_json1_1Attributes(output.Attributes, context)
|
|
4134
|
-
: undefined,
|
|
3948
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
4135
3949
|
Key: __expectString(output.Key),
|
|
4136
|
-
Utilization: output.Utilization
|
|
4137
|
-
? deserializeAws_json1_1ReservationAggregates(output.Utilization, context)
|
|
4138
|
-
: undefined,
|
|
3950
|
+
Utilization: output.Utilization != null ? deserializeAws_json1_1ReservationAggregates(output.Utilization, context) : undefined,
|
|
4139
3951
|
Value: __expectString(output.Value),
|
|
4140
3952
|
};
|
|
4141
3953
|
};
|
|
@@ -4152,7 +3964,7 @@ var deserializeAws_json1_1ReservationUtilizationGroups = function (output, conte
|
|
|
4152
3964
|
};
|
|
4153
3965
|
var deserializeAws_json1_1ResourceDetails = function (output, context) {
|
|
4154
3966
|
return {
|
|
4155
|
-
EC2ResourceDetails: output.EC2ResourceDetails
|
|
3967
|
+
EC2ResourceDetails: output.EC2ResourceDetails != null
|
|
4156
3968
|
? deserializeAws_json1_1EC2ResourceDetails(output.EC2ResourceDetails, context)
|
|
4157
3969
|
: undefined,
|
|
4158
3970
|
};
|
|
@@ -4182,7 +3994,7 @@ var deserializeAws_json1_1ResourceTagList = function (output, context) {
|
|
|
4182
3994
|
};
|
|
4183
3995
|
var deserializeAws_json1_1ResourceUtilization = function (output, context) {
|
|
4184
3996
|
return {
|
|
4185
|
-
EC2ResourceUtilization: output.EC2ResourceUtilization
|
|
3997
|
+
EC2ResourceUtilization: output.EC2ResourceUtilization != null
|
|
4186
3998
|
? deserializeAws_json1_1EC2ResourceUtilization(output.EC2ResourceUtilization, context)
|
|
4187
3999
|
: undefined,
|
|
4188
4000
|
};
|
|
@@ -4190,15 +4002,9 @@ var deserializeAws_json1_1ResourceUtilization = function (output, context) {
|
|
|
4190
4002
|
var deserializeAws_json1_1ResultByTime = function (output, context) {
|
|
4191
4003
|
return {
|
|
4192
4004
|
Estimated: __expectBoolean(output.Estimated),
|
|
4193
|
-
Groups: output.Groups
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
4197
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
4198
|
-
: undefined,
|
|
4199
|
-
Total: output.Total !== undefined && output.Total !== null
|
|
4200
|
-
? deserializeAws_json1_1Metrics(output.Total, context)
|
|
4201
|
-
: undefined,
|
|
4005
|
+
Groups: output.Groups != null ? deserializeAws_json1_1Groups(output.Groups, context) : undefined,
|
|
4006
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
4007
|
+
Total: output.Total != null ? deserializeAws_json1_1Metrics(output.Total, context) : undefined,
|
|
4202
4008
|
};
|
|
4203
4009
|
};
|
|
4204
4010
|
var deserializeAws_json1_1ResultsByTime = function (output, context) {
|
|
@@ -4215,17 +4021,17 @@ var deserializeAws_json1_1ResultsByTime = function (output, context) {
|
|
|
4215
4021
|
var deserializeAws_json1_1RightsizingRecommendation = function (output, context) {
|
|
4216
4022
|
return {
|
|
4217
4023
|
AccountId: __expectString(output.AccountId),
|
|
4218
|
-
CurrentInstance: output.CurrentInstance
|
|
4024
|
+
CurrentInstance: output.CurrentInstance != null
|
|
4219
4025
|
? deserializeAws_json1_1CurrentInstance(output.CurrentInstance, context)
|
|
4220
4026
|
: undefined,
|
|
4221
|
-
FindingReasonCodes: output.FindingReasonCodes
|
|
4027
|
+
FindingReasonCodes: output.FindingReasonCodes != null
|
|
4222
4028
|
? deserializeAws_json1_1FindingReasonCodes(output.FindingReasonCodes, context)
|
|
4223
4029
|
: undefined,
|
|
4224
|
-
ModifyRecommendationDetail: output.ModifyRecommendationDetail
|
|
4030
|
+
ModifyRecommendationDetail: output.ModifyRecommendationDetail != null
|
|
4225
4031
|
? deserializeAws_json1_1ModifyRecommendationDetail(output.ModifyRecommendationDetail, context)
|
|
4226
4032
|
: undefined,
|
|
4227
4033
|
RightsizingType: __expectString(output.RightsizingType),
|
|
4228
|
-
TerminateRecommendationDetail: output.TerminateRecommendationDetail
|
|
4034
|
+
TerminateRecommendationDetail: output.TerminateRecommendationDetail != null
|
|
4229
4035
|
? deserializeAws_json1_1TerminateRecommendationDetail(output.TerminateRecommendationDetail, context)
|
|
4230
4036
|
: undefined,
|
|
4231
4037
|
};
|
|
@@ -4291,15 +4097,9 @@ var deserializeAws_json1_1SavingsPlansAmortizedCommitment = function (output, co
|
|
|
4291
4097
|
};
|
|
4292
4098
|
var deserializeAws_json1_1SavingsPlansCoverage = function (output, context) {
|
|
4293
4099
|
return {
|
|
4294
|
-
Attributes: output.Attributes
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
Coverage: output.Coverage !== undefined && output.Coverage !== null
|
|
4298
|
-
? deserializeAws_json1_1SavingsPlansCoverageData(output.Coverage, context)
|
|
4299
|
-
: undefined,
|
|
4300
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
4301
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
4302
|
-
: undefined,
|
|
4100
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
4101
|
+
Coverage: output.Coverage != null ? deserializeAws_json1_1SavingsPlansCoverageData(output.Coverage, context) : undefined,
|
|
4102
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
4303
4103
|
};
|
|
4304
4104
|
};
|
|
4305
4105
|
var deserializeAws_json1_1SavingsPlansCoverageData = function (output, context) {
|
|
@@ -4333,12 +4133,10 @@ var deserializeAws_json1_1SavingsPlansPurchaseRecommendation = function (output,
|
|
|
4333
4133
|
AccountScope: __expectString(output.AccountScope),
|
|
4334
4134
|
LookbackPeriodInDays: __expectString(output.LookbackPeriodInDays),
|
|
4335
4135
|
PaymentOption: __expectString(output.PaymentOption),
|
|
4336
|
-
SavingsPlansPurchaseRecommendationDetails: output.SavingsPlansPurchaseRecommendationDetails
|
|
4337
|
-
output.SavingsPlansPurchaseRecommendationDetails !== null
|
|
4136
|
+
SavingsPlansPurchaseRecommendationDetails: output.SavingsPlansPurchaseRecommendationDetails != null
|
|
4338
4137
|
? deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetailList(output.SavingsPlansPurchaseRecommendationDetails, context)
|
|
4339
4138
|
: undefined,
|
|
4340
|
-
SavingsPlansPurchaseRecommendationSummary: output.SavingsPlansPurchaseRecommendationSummary
|
|
4341
|
-
output.SavingsPlansPurchaseRecommendationSummary !== null
|
|
4139
|
+
SavingsPlansPurchaseRecommendationSummary: output.SavingsPlansPurchaseRecommendationSummary != null
|
|
4342
4140
|
? deserializeAws_json1_1SavingsPlansPurchaseRecommendationSummary(output.SavingsPlansPurchaseRecommendationSummary, context)
|
|
4343
4141
|
: undefined,
|
|
4344
4142
|
SavingsPlansType: __expectString(output.SavingsPlansType),
|
|
@@ -4361,7 +4159,7 @@ var deserializeAws_json1_1SavingsPlansPurchaseRecommendationDetail = function (o
|
|
|
4361
4159
|
EstimatedSavingsAmount: __expectString(output.EstimatedSavingsAmount),
|
|
4362
4160
|
EstimatedSavingsPercentage: __expectString(output.EstimatedSavingsPercentage),
|
|
4363
4161
|
HourlyCommitmentToPurchase: __expectString(output.HourlyCommitmentToPurchase),
|
|
4364
|
-
SavingsPlansDetails: output.SavingsPlansDetails
|
|
4162
|
+
SavingsPlansDetails: output.SavingsPlansDetails != null
|
|
4365
4163
|
? deserializeAws_json1_1SavingsPlansDetails(output.SavingsPlansDetails, context)
|
|
4366
4164
|
: undefined,
|
|
4367
4165
|
UpfrontCost: __expectString(output.UpfrontCost),
|
|
@@ -4416,46 +4214,36 @@ var deserializeAws_json1_1SavingsPlansUtilization = function (output, context) {
|
|
|
4416
4214
|
};
|
|
4417
4215
|
var deserializeAws_json1_1SavingsPlansUtilizationAggregates = function (output, context) {
|
|
4418
4216
|
return {
|
|
4419
|
-
AmortizedCommitment: output.AmortizedCommitment
|
|
4217
|
+
AmortizedCommitment: output.AmortizedCommitment != null
|
|
4420
4218
|
? deserializeAws_json1_1SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
4421
4219
|
: undefined,
|
|
4422
|
-
Savings: output.Savings
|
|
4423
|
-
|
|
4424
|
-
: undefined,
|
|
4425
|
-
Utilization: output.Utilization !== undefined && output.Utilization !== null
|
|
4220
|
+
Savings: output.Savings != null ? deserializeAws_json1_1SavingsPlansSavings(output.Savings, context) : undefined,
|
|
4221
|
+
Utilization: output.Utilization != null
|
|
4426
4222
|
? deserializeAws_json1_1SavingsPlansUtilization(output.Utilization, context)
|
|
4427
4223
|
: undefined,
|
|
4428
4224
|
};
|
|
4429
4225
|
};
|
|
4430
4226
|
var deserializeAws_json1_1SavingsPlansUtilizationByTime = function (output, context) {
|
|
4431
4227
|
return {
|
|
4432
|
-
AmortizedCommitment: output.AmortizedCommitment
|
|
4228
|
+
AmortizedCommitment: output.AmortizedCommitment != null
|
|
4433
4229
|
? deserializeAws_json1_1SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
4434
4230
|
: undefined,
|
|
4435
|
-
Savings: output.Savings
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
4439
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
4440
|
-
: undefined,
|
|
4441
|
-
Utilization: output.Utilization !== undefined && output.Utilization !== null
|
|
4231
|
+
Savings: output.Savings != null ? deserializeAws_json1_1SavingsPlansSavings(output.Savings, context) : undefined,
|
|
4232
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
4233
|
+
Utilization: output.Utilization != null
|
|
4442
4234
|
? deserializeAws_json1_1SavingsPlansUtilization(output.Utilization, context)
|
|
4443
4235
|
: undefined,
|
|
4444
4236
|
};
|
|
4445
4237
|
};
|
|
4446
4238
|
var deserializeAws_json1_1SavingsPlansUtilizationDetail = function (output, context) {
|
|
4447
4239
|
return {
|
|
4448
|
-
AmortizedCommitment: output.AmortizedCommitment
|
|
4240
|
+
AmortizedCommitment: output.AmortizedCommitment != null
|
|
4449
4241
|
? deserializeAws_json1_1SavingsPlansAmortizedCommitment(output.AmortizedCommitment, context)
|
|
4450
4242
|
: undefined,
|
|
4451
|
-
Attributes: output.Attributes
|
|
4452
|
-
|
|
4453
|
-
: undefined,
|
|
4454
|
-
Savings: output.Savings !== undefined && output.Savings !== null
|
|
4455
|
-
? deserializeAws_json1_1SavingsPlansSavings(output.Savings, context)
|
|
4456
|
-
: undefined,
|
|
4243
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
|
|
4244
|
+
Savings: output.Savings != null ? deserializeAws_json1_1SavingsPlansSavings(output.Savings, context) : undefined,
|
|
4457
4245
|
SavingsPlanArn: __expectString(output.SavingsPlanArn),
|
|
4458
|
-
Utilization: output.Utilization
|
|
4246
|
+
Utilization: output.Utilization != null
|
|
4459
4247
|
? deserializeAws_json1_1SavingsPlansUtilization(output.Utilization, context)
|
|
4460
4248
|
: undefined,
|
|
4461
4249
|
};
|
|
@@ -4489,7 +4277,7 @@ var deserializeAws_json1_1ServiceQuotaExceededException = function (output, cont
|
|
|
4489
4277
|
};
|
|
4490
4278
|
var deserializeAws_json1_1ServiceSpecification = function (output, context) {
|
|
4491
4279
|
return {
|
|
4492
|
-
EC2Specification: output.EC2Specification
|
|
4280
|
+
EC2Specification: output.EC2Specification != null
|
|
4493
4281
|
? deserializeAws_json1_1EC2Specification(output.EC2Specification, context)
|
|
4494
4282
|
: undefined,
|
|
4495
4283
|
};
|
|
@@ -4529,12 +4317,8 @@ var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
|
4529
4317
|
var deserializeAws_json1_1TagValues = function (output, context) {
|
|
4530
4318
|
return {
|
|
4531
4319
|
Key: __expectString(output.Key),
|
|
4532
|
-
MatchOptions: output.MatchOptions
|
|
4533
|
-
|
|
4534
|
-
: undefined,
|
|
4535
|
-
Values: output.Values !== undefined && output.Values !== null
|
|
4536
|
-
? deserializeAws_json1_1Values(output.Values, context)
|
|
4537
|
-
: undefined,
|
|
4320
|
+
MatchOptions: output.MatchOptions != null ? deserializeAws_json1_1MatchOptions(output.MatchOptions, context) : undefined,
|
|
4321
|
+
Values: output.Values != null ? deserializeAws_json1_1Values(output.Values, context) : undefined,
|
|
4538
4322
|
};
|
|
4539
4323
|
};
|
|
4540
4324
|
var deserializeAws_json1_1TagValuesList = function (output, context) {
|
|
@@ -4554,13 +4338,13 @@ var deserializeAws_json1_1TargetInstance = function (output, context) {
|
|
|
4554
4338
|
DefaultTargetInstance: __expectBoolean(output.DefaultTargetInstance),
|
|
4555
4339
|
EstimatedMonthlyCost: __expectString(output.EstimatedMonthlyCost),
|
|
4556
4340
|
EstimatedMonthlySavings: __expectString(output.EstimatedMonthlySavings),
|
|
4557
|
-
ExpectedResourceUtilization: output.ExpectedResourceUtilization
|
|
4341
|
+
ExpectedResourceUtilization: output.ExpectedResourceUtilization != null
|
|
4558
4342
|
? deserializeAws_json1_1ResourceUtilization(output.ExpectedResourceUtilization, context)
|
|
4559
4343
|
: undefined,
|
|
4560
|
-
PlatformDifferences: output.PlatformDifferences
|
|
4344
|
+
PlatformDifferences: output.PlatformDifferences != null
|
|
4561
4345
|
? deserializeAws_json1_1PlatformDifferences(output.PlatformDifferences, context)
|
|
4562
4346
|
: undefined,
|
|
4563
|
-
ResourceDetails: output.ResourceDetails
|
|
4347
|
+
ResourceDetails: output.ResourceDetails != null
|
|
4564
4348
|
? deserializeAws_json1_1ResourceDetails(output.ResourceDetails, context)
|
|
4565
4349
|
: undefined,
|
|
4566
4350
|
};
|
|
@@ -4636,7 +4420,7 @@ var deserializeAws_json1_1UpdateCostAllocationTagsStatusErrors = function (outpu
|
|
|
4636
4420
|
};
|
|
4637
4421
|
var deserializeAws_json1_1UpdateCostAllocationTagsStatusResponse = function (output, context) {
|
|
4638
4422
|
return {
|
|
4639
|
-
Errors: output.Errors
|
|
4423
|
+
Errors: output.Errors != null
|
|
4640
4424
|
? deserializeAws_json1_1UpdateCostAllocationTagsStatusErrors(output.Errors, context)
|
|
4641
4425
|
: undefined,
|
|
4642
4426
|
};
|
|
@@ -4649,15 +4433,9 @@ var deserializeAws_json1_1UpdateCostCategoryDefinitionResponse = function (outpu
|
|
|
4649
4433
|
};
|
|
4650
4434
|
var deserializeAws_json1_1UtilizationByTime = function (output, context) {
|
|
4651
4435
|
return {
|
|
4652
|
-
Groups: output.Groups
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
|
|
4656
|
-
? deserializeAws_json1_1DateInterval(output.TimePeriod, context)
|
|
4657
|
-
: undefined,
|
|
4658
|
-
Total: output.Total !== undefined && output.Total !== null
|
|
4659
|
-
? deserializeAws_json1_1ReservationAggregates(output.Total, context)
|
|
4660
|
-
: undefined,
|
|
4436
|
+
Groups: output.Groups != null ? deserializeAws_json1_1ReservationUtilizationGroups(output.Groups, context) : undefined,
|
|
4437
|
+
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1DateInterval(output.TimePeriod, context) : undefined,
|
|
4438
|
+
Total: output.Total != null ? deserializeAws_json1_1ReservationAggregates(output.Total, context) : undefined,
|
|
4661
4439
|
};
|
|
4662
4440
|
};
|
|
4663
4441
|
var deserializeAws_json1_1UtilizationsByTime = function (output, context) {
|
|
@@ -4738,6 +4516,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4738
4516
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4739
4517
|
var sanitizeErrorCode = function (rawValue) {
|
|
4740
4518
|
var cleanValue = rawValue;
|
|
4519
|
+
if (typeof cleanValue === "number") {
|
|
4520
|
+
cleanValue = cleanValue.toString();
|
|
4521
|
+
}
|
|
4741
4522
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4742
4523
|
cleanValue = cleanValue.split(":")[0];
|
|
4743
4524
|
}
|