@aws-sdk/client-budgets 3.121.0 → 3.127.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.
@@ -1984,41 +1984,28 @@ var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput,
1984
1984
  });
1985
1985
  }); };
1986
1986
  var serializeAws_json1_1ActionThreshold = function (input, context) {
1987
- return __assign(__assign({}, (input.ActionThresholdType !== undefined &&
1988
- input.ActionThresholdType !== null && { ActionThresholdType: input.ActionThresholdType })), (input.ActionThresholdValue !== undefined &&
1989
- input.ActionThresholdValue !== null && { ActionThresholdValue: __serializeFloat(input.ActionThresholdValue) }));
1987
+ return __assign(__assign({}, (input.ActionThresholdType != null && { ActionThresholdType: input.ActionThresholdType })), (input.ActionThresholdValue != null && { ActionThresholdValue: __serializeFloat(input.ActionThresholdValue) }));
1990
1988
  };
1991
1989
  var serializeAws_json1_1AutoAdjustData = function (input, context) {
1992
- return __assign(__assign(__assign({}, (input.AutoAdjustType !== undefined &&
1993
- input.AutoAdjustType !== null && { AutoAdjustType: input.AutoAdjustType })), (input.HistoricalOptions !== undefined &&
1994
- input.HistoricalOptions !== null && {
1990
+ return __assign(__assign(__assign({}, (input.AutoAdjustType != null && { AutoAdjustType: input.AutoAdjustType })), (input.HistoricalOptions != null && {
1995
1991
  HistoricalOptions: serializeAws_json1_1HistoricalOptions(input.HistoricalOptions, context),
1996
- })), (input.LastAutoAdjustTime !== undefined &&
1997
- input.LastAutoAdjustTime !== null && {
1992
+ })), (input.LastAutoAdjustTime != null && {
1998
1993
  LastAutoAdjustTime: Math.round(input.LastAutoAdjustTime.getTime() / 1000),
1999
1994
  }));
2000
1995
  };
2001
1996
  var serializeAws_json1_1Budget = function (input, context) {
2002
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoAdjustData !== undefined &&
2003
- input.AutoAdjustData !== null && {
1997
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoAdjustData != null && {
2004
1998
  AutoAdjustData: serializeAws_json1_1AutoAdjustData(input.AutoAdjustData, context),
2005
- })), (input.BudgetLimit !== undefined &&
2006
- input.BudgetLimit !== null && { BudgetLimit: serializeAws_json1_1Spend(input.BudgetLimit, context) })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.BudgetType !== undefined && input.BudgetType !== null && { BudgetType: input.BudgetType })), (input.CalculatedSpend !== undefined &&
2007
- input.CalculatedSpend !== null && {
1999
+ })), (input.BudgetLimit != null && { BudgetLimit: serializeAws_json1_1Spend(input.BudgetLimit, context) })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.BudgetType != null && { BudgetType: input.BudgetType })), (input.CalculatedSpend != null && {
2008
2000
  CalculatedSpend: serializeAws_json1_1CalculatedSpend(input.CalculatedSpend, context),
2009
- })), (input.CostFilters !== undefined &&
2010
- input.CostFilters !== null && { CostFilters: serializeAws_json1_1CostFilters(input.CostFilters, context) })), (input.CostTypes !== undefined &&
2011
- input.CostTypes !== null && { CostTypes: serializeAws_json1_1CostTypes(input.CostTypes, context) })), (input.LastUpdatedTime !== undefined &&
2012
- input.LastUpdatedTime !== null && { LastUpdatedTime: Math.round(input.LastUpdatedTime.getTime() / 1000) })), (input.PlannedBudgetLimits !== undefined &&
2013
- input.PlannedBudgetLimits !== null && {
2001
+ })), (input.CostFilters != null && { CostFilters: serializeAws_json1_1CostFilters(input.CostFilters, context) })), (input.CostTypes != null && { CostTypes: serializeAws_json1_1CostTypes(input.CostTypes, context) })), (input.LastUpdatedTime != null && { LastUpdatedTime: Math.round(input.LastUpdatedTime.getTime() / 1000) })), (input.PlannedBudgetLimits != null && {
2014
2002
  PlannedBudgetLimits: serializeAws_json1_1PlannedBudgetLimits(input.PlannedBudgetLimits, context),
2015
- })), (input.TimePeriod !== undefined &&
2016
- input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) })), (input.TimeUnit !== undefined && input.TimeUnit !== null && { TimeUnit: input.TimeUnit }));
2003
+ })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) })), (input.TimeUnit != null && { TimeUnit: input.TimeUnit }));
2017
2004
  };
2018
2005
  var serializeAws_json1_1CalculatedSpend = function (input, context) {
2019
- return __assign(__assign({}, (input.ActualSpend !== undefined &&
2020
- input.ActualSpend !== null && { ActualSpend: serializeAws_json1_1Spend(input.ActualSpend, context) })), (input.ForecastedSpend !== undefined &&
2021
- input.ForecastedSpend !== null && { ForecastedSpend: serializeAws_json1_1Spend(input.ForecastedSpend, context) }));
2006
+ return __assign(__assign({}, (input.ActualSpend != null && { ActualSpend: serializeAws_json1_1Spend(input.ActualSpend, context) })), (input.ForecastedSpend != null && {
2007
+ ForecastedSpend: serializeAws_json1_1Spend(input.ForecastedSpend, context),
2008
+ }));
2022
2009
  };
2023
2010
  var serializeAws_json1_1CostFilters = function (input, context) {
2024
2011
  return Object.entries(input).reduce(function (acc, _a) {
@@ -2031,100 +2018,74 @@ var serializeAws_json1_1CostFilters = function (input, context) {
2031
2018
  }, {});
2032
2019
  };
2033
2020
  var serializeAws_json1_1CostTypes = function (input, context) {
2034
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.IncludeCredit !== undefined && input.IncludeCredit !== null && { IncludeCredit: input.IncludeCredit })), (input.IncludeDiscount !== undefined &&
2035
- input.IncludeDiscount !== null && { IncludeDiscount: input.IncludeDiscount })), (input.IncludeOtherSubscription !== undefined &&
2036
- input.IncludeOtherSubscription !== null && { IncludeOtherSubscription: input.IncludeOtherSubscription })), (input.IncludeRecurring !== undefined &&
2037
- input.IncludeRecurring !== null && { IncludeRecurring: input.IncludeRecurring })), (input.IncludeRefund !== undefined && input.IncludeRefund !== null && { IncludeRefund: input.IncludeRefund })), (input.IncludeSubscription !== undefined &&
2038
- input.IncludeSubscription !== null && { IncludeSubscription: input.IncludeSubscription })), (input.IncludeSupport !== undefined &&
2039
- input.IncludeSupport !== null && { IncludeSupport: input.IncludeSupport })), (input.IncludeTax !== undefined && input.IncludeTax !== null && { IncludeTax: input.IncludeTax })), (input.IncludeUpfront !== undefined &&
2040
- input.IncludeUpfront !== null && { IncludeUpfront: input.IncludeUpfront })), (input.UseAmortized !== undefined && input.UseAmortized !== null && { UseAmortized: input.UseAmortized })), (input.UseBlended !== undefined && input.UseBlended !== null && { UseBlended: input.UseBlended }));
2021
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.IncludeCredit != null && { IncludeCredit: input.IncludeCredit })), (input.IncludeDiscount != null && { IncludeDiscount: input.IncludeDiscount })), (input.IncludeOtherSubscription != null && { IncludeOtherSubscription: input.IncludeOtherSubscription })), (input.IncludeRecurring != null && { IncludeRecurring: input.IncludeRecurring })), (input.IncludeRefund != null && { IncludeRefund: input.IncludeRefund })), (input.IncludeSubscription != null && { IncludeSubscription: input.IncludeSubscription })), (input.IncludeSupport != null && { IncludeSupport: input.IncludeSupport })), (input.IncludeTax != null && { IncludeTax: input.IncludeTax })), (input.IncludeUpfront != null && { IncludeUpfront: input.IncludeUpfront })), (input.UseAmortized != null && { UseAmortized: input.UseAmortized })), (input.UseBlended != null && { UseBlended: input.UseBlended }));
2041
2022
  };
2042
2023
  var serializeAws_json1_1CreateBudgetActionRequest = function (input, context) {
2043
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionThreshold !== undefined &&
2044
- input.ActionThreshold !== null && {
2024
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionThreshold != null && {
2045
2025
  ActionThreshold: serializeAws_json1_1ActionThreshold(input.ActionThreshold, context),
2046
- })), (input.ActionType !== undefined && input.ActionType !== null && { ActionType: input.ActionType })), (input.ApprovalModel !== undefined && input.ApprovalModel !== null && { ApprovalModel: input.ApprovalModel })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Definition !== undefined &&
2047
- input.Definition !== null && { Definition: serializeAws_json1_1Definition(input.Definition, context) })), (input.ExecutionRoleArn !== undefined &&
2048
- input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.NotificationType !== undefined &&
2049
- input.NotificationType !== null && { NotificationType: input.NotificationType })), (input.Subscribers !== undefined &&
2050
- input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2026
+ })), (input.ActionType != null && { ActionType: input.ActionType })), (input.ApprovalModel != null && { ApprovalModel: input.ApprovalModel })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Definition != null && { Definition: serializeAws_json1_1Definition(input.Definition, context) })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.NotificationType != null && { NotificationType: input.NotificationType })), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2051
2027
  };
2052
2028
  var serializeAws_json1_1CreateBudgetRequest = function (input, context) {
2053
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.Budget !== undefined &&
2054
- input.Budget !== null && { Budget: serializeAws_json1_1Budget(input.Budget, context) })), (input.NotificationsWithSubscribers !== undefined &&
2055
- input.NotificationsWithSubscribers !== null && {
2029
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.Budget != null && { Budget: serializeAws_json1_1Budget(input.Budget, context) })), (input.NotificationsWithSubscribers != null && {
2056
2030
  NotificationsWithSubscribers: serializeAws_json1_1NotificationWithSubscribersList(input.NotificationsWithSubscribers, context),
2057
2031
  }));
2058
2032
  };
2059
2033
  var serializeAws_json1_1CreateNotificationRequest = function (input, context) {
2060
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Notification !== undefined &&
2061
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscribers !== undefined &&
2062
- input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2034
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2063
2035
  };
2064
2036
  var serializeAws_json1_1CreateSubscriberRequest = function (input, context) {
2065
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Notification !== undefined &&
2066
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscriber !== undefined &&
2067
- input.Subscriber !== null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }));
2037
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscriber != null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }));
2068
2038
  };
2069
2039
  var serializeAws_json1_1Definition = function (input, context) {
2070
- return __assign(__assign(__assign({}, (input.IamActionDefinition !== undefined &&
2071
- input.IamActionDefinition !== null && {
2040
+ return __assign(__assign(__assign({}, (input.IamActionDefinition != null && {
2072
2041
  IamActionDefinition: serializeAws_json1_1IamActionDefinition(input.IamActionDefinition, context),
2073
- })), (input.ScpActionDefinition !== undefined &&
2074
- input.ScpActionDefinition !== null && {
2042
+ })), (input.ScpActionDefinition != null && {
2075
2043
  ScpActionDefinition: serializeAws_json1_1ScpActionDefinition(input.ScpActionDefinition, context),
2076
- })), (input.SsmActionDefinition !== undefined &&
2077
- input.SsmActionDefinition !== null && {
2044
+ })), (input.SsmActionDefinition != null && {
2078
2045
  SsmActionDefinition: serializeAws_json1_1SsmActionDefinition(input.SsmActionDefinition, context),
2079
2046
  }));
2080
2047
  };
2081
2048
  var serializeAws_json1_1DeleteBudgetActionRequest = function (input, context) {
2082
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName }));
2049
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.BudgetName != null && { BudgetName: input.BudgetName }));
2083
2050
  };
2084
2051
  var serializeAws_json1_1DeleteBudgetRequest = function (input, context) {
2085
- return __assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName }));
2052
+ return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName }));
2086
2053
  };
2087
2054
  var serializeAws_json1_1DeleteNotificationRequest = function (input, context) {
2088
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Notification !== undefined &&
2089
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }));
2055
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }));
2090
2056
  };
2091
2057
  var serializeAws_json1_1DeleteSubscriberRequest = function (input, context) {
2092
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Notification !== undefined &&
2093
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscriber !== undefined &&
2094
- input.Subscriber !== null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }));
2058
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscriber != null && { Subscriber: serializeAws_json1_1Subscriber(input.Subscriber, context) }));
2095
2059
  };
2096
2060
  var serializeAws_json1_1DescribeBudgetActionHistoriesRequest = function (input, context) {
2097
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TimePeriod !== undefined &&
2098
- input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }));
2061
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }));
2099
2062
  };
2100
2063
  var serializeAws_json1_1DescribeBudgetActionRequest = function (input, context) {
2101
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName }));
2064
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.BudgetName != null && { BudgetName: input.BudgetName }));
2102
2065
  };
2103
2066
  var serializeAws_json1_1DescribeBudgetActionsForAccountRequest = function (input, context) {
2104
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2067
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2105
2068
  };
2106
2069
  var serializeAws_json1_1DescribeBudgetActionsForBudgetRequest = function (input, context) {
2107
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2070
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2108
2071
  };
2109
2072
  var serializeAws_json1_1DescribeBudgetNotificationsForAccountRequest = function (input, context) {
2110
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2073
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2111
2074
  };
2112
2075
  var serializeAws_json1_1DescribeBudgetPerformanceHistoryRequest = function (input, context) {
2113
- return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.TimePeriod !== undefined &&
2114
- input.TimePeriod !== null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }));
2076
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TimePeriod != null && { TimePeriod: serializeAws_json1_1TimePeriod(input.TimePeriod, context) }));
2115
2077
  };
2116
2078
  var serializeAws_json1_1DescribeBudgetRequest = function (input, context) {
2117
- return __assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName }));
2079
+ return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName }));
2118
2080
  };
2119
2081
  var serializeAws_json1_1DescribeBudgetsRequest = function (input, context) {
2120
- return __assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2082
+ return __assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2121
2083
  };
2122
2084
  var serializeAws_json1_1DescribeNotificationsForBudgetRequest = function (input, context) {
2123
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2085
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2124
2086
  };
2125
2087
  var serializeAws_json1_1DescribeSubscribersForNotificationRequest = function (input, context) {
2126
- return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Notification !== undefined &&
2127
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }));
2088
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) }));
2128
2089
  };
2129
2090
  var serializeAws_json1_1DimensionValues = function (input, context) {
2130
2091
  return input
@@ -2137,7 +2098,7 @@ var serializeAws_json1_1DimensionValues = function (input, context) {
2137
2098
  });
2138
2099
  };
2139
2100
  var serializeAws_json1_1ExecuteBudgetActionRequest = function (input, context) {
2140
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.ExecutionType !== undefined && input.ExecutionType !== null && { ExecutionType: input.ExecutionType }));
2101
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.ExecutionType != null && { ExecutionType: input.ExecutionType }));
2141
2102
  };
2142
2103
  var serializeAws_json1_1Groups = function (input, context) {
2143
2104
  return input
@@ -2150,15 +2111,10 @@ var serializeAws_json1_1Groups = function (input, context) {
2150
2111
  });
2151
2112
  };
2152
2113
  var serializeAws_json1_1HistoricalOptions = function (input, context) {
2153
- return __assign(__assign({}, (input.BudgetAdjustmentPeriod !== undefined &&
2154
- input.BudgetAdjustmentPeriod !== null && { BudgetAdjustmentPeriod: input.BudgetAdjustmentPeriod })), (input.LookBackAvailablePeriods !== undefined &&
2155
- input.LookBackAvailablePeriods !== null && { LookBackAvailablePeriods: input.LookBackAvailablePeriods }));
2114
+ return __assign(__assign({}, (input.BudgetAdjustmentPeriod != null && { BudgetAdjustmentPeriod: input.BudgetAdjustmentPeriod })), (input.LookBackAvailablePeriods != null && { LookBackAvailablePeriods: input.LookBackAvailablePeriods }));
2156
2115
  };
2157
2116
  var serializeAws_json1_1IamActionDefinition = function (input, context) {
2158
- return __assign(__assign(__assign(__assign({}, (input.Groups !== undefined &&
2159
- input.Groups !== null && { Groups: serializeAws_json1_1Groups(input.Groups, context) })), (input.PolicyArn !== undefined && input.PolicyArn !== null && { PolicyArn: input.PolicyArn })), (input.Roles !== undefined &&
2160
- input.Roles !== null && { Roles: serializeAws_json1_1Roles(input.Roles, context) })), (input.Users !== undefined &&
2161
- input.Users !== null && { Users: serializeAws_json1_1Users(input.Users, context) }));
2117
+ return __assign(__assign(__assign(__assign({}, (input.Groups != null && { Groups: serializeAws_json1_1Groups(input.Groups, context) })), (input.PolicyArn != null && { PolicyArn: input.PolicyArn })), (input.Roles != null && { Roles: serializeAws_json1_1Roles(input.Roles, context) })), (input.Users != null && { Users: serializeAws_json1_1Users(input.Users, context) }));
2162
2118
  };
2163
2119
  var serializeAws_json1_1InstanceIds = function (input, context) {
2164
2120
  return input
@@ -2171,15 +2127,10 @@ var serializeAws_json1_1InstanceIds = function (input, context) {
2171
2127
  });
2172
2128
  };
2173
2129
  var serializeAws_json1_1Notification = function (input, context) {
2174
- return __assign(__assign(__assign(__assign(__assign({}, (input.ComparisonOperator !== undefined &&
2175
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.NotificationState !== undefined &&
2176
- input.NotificationState !== null && { NotificationState: input.NotificationState })), (input.NotificationType !== undefined &&
2177
- input.NotificationType !== null && { NotificationType: input.NotificationType })), (input.Threshold !== undefined && input.Threshold !== null && { Threshold: __serializeFloat(input.Threshold) })), (input.ThresholdType !== undefined && input.ThresholdType !== null && { ThresholdType: input.ThresholdType }));
2130
+ return __assign(__assign(__assign(__assign(__assign({}, (input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator })), (input.NotificationState != null && { NotificationState: input.NotificationState })), (input.NotificationType != null && { NotificationType: input.NotificationType })), (input.Threshold != null && { Threshold: __serializeFloat(input.Threshold) })), (input.ThresholdType != null && { ThresholdType: input.ThresholdType }));
2178
2131
  };
2179
2132
  var serializeAws_json1_1NotificationWithSubscribers = function (input, context) {
2180
- return __assign(__assign({}, (input.Notification !== undefined &&
2181
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscribers !== undefined &&
2182
- input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2133
+ return __assign(__assign({}, (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2183
2134
  };
2184
2135
  var serializeAws_json1_1NotificationWithSubscribersList = function (input, context) {
2185
2136
  return input
@@ -2212,19 +2163,16 @@ var serializeAws_json1_1Roles = function (input, context) {
2212
2163
  });
2213
2164
  };
2214
2165
  var serializeAws_json1_1ScpActionDefinition = function (input, context) {
2215
- return __assign(__assign({}, (input.PolicyId !== undefined && input.PolicyId !== null && { PolicyId: input.PolicyId })), (input.TargetIds !== undefined &&
2216
- input.TargetIds !== null && { TargetIds: serializeAws_json1_1TargetIds(input.TargetIds, context) }));
2166
+ return __assign(__assign({}, (input.PolicyId != null && { PolicyId: input.PolicyId })), (input.TargetIds != null && { TargetIds: serializeAws_json1_1TargetIds(input.TargetIds, context) }));
2217
2167
  };
2218
2168
  var serializeAws_json1_1Spend = function (input, context) {
2219
- return __assign(__assign({}, (input.Amount !== undefined && input.Amount !== null && { Amount: input.Amount })), (input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }));
2169
+ return __assign(__assign({}, (input.Amount != null && { Amount: input.Amount })), (input.Unit != null && { Unit: input.Unit }));
2220
2170
  };
2221
2171
  var serializeAws_json1_1SsmActionDefinition = function (input, context) {
2222
- return __assign(__assign(__assign({}, (input.ActionSubType !== undefined && input.ActionSubType !== null && { ActionSubType: input.ActionSubType })), (input.InstanceIds !== undefined &&
2223
- input.InstanceIds !== null && { InstanceIds: serializeAws_json1_1InstanceIds(input.InstanceIds, context) })), (input.Region !== undefined && input.Region !== null && { Region: input.Region }));
2172
+ return __assign(__assign(__assign({}, (input.ActionSubType != null && { ActionSubType: input.ActionSubType })), (input.InstanceIds != null && { InstanceIds: serializeAws_json1_1InstanceIds(input.InstanceIds, context) })), (input.Region != null && { Region: input.Region }));
2224
2173
  };
2225
2174
  var serializeAws_json1_1Subscriber = function (input, context) {
2226
- return __assign(__assign({}, (input.Address !== undefined && input.Address !== null && { Address: input.Address })), (input.SubscriptionType !== undefined &&
2227
- input.SubscriptionType !== null && { SubscriptionType: input.SubscriptionType }));
2175
+ return __assign(__assign({}, (input.Address != null && { Address: input.Address })), (input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }));
2228
2176
  };
2229
2177
  var serializeAws_json1_1Subscribers = function (input, context) {
2230
2178
  return input
@@ -2247,36 +2195,25 @@ var serializeAws_json1_1TargetIds = function (input, context) {
2247
2195
  });
2248
2196
  };
2249
2197
  var serializeAws_json1_1TimePeriod = function (input, context) {
2250
- return __assign(__assign({}, (input.End !== undefined && input.End !== null && { End: Math.round(input.End.getTime() / 1000) })), (input.Start !== undefined && input.Start !== null && { Start: Math.round(input.Start.getTime() / 1000) }));
2198
+ return __assign(__assign({}, (input.End != null && { End: Math.round(input.End.getTime() / 1000) })), (input.Start != null && { Start: Math.round(input.Start.getTime() / 1000) }));
2251
2199
  };
2252
2200
  var serializeAws_json1_1UpdateBudgetActionRequest = function (input, context) {
2253
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.ActionId !== undefined && input.ActionId !== null && { ActionId: input.ActionId })), (input.ActionThreshold !== undefined &&
2254
- input.ActionThreshold !== null && {
2201
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.ActionId != null && { ActionId: input.ActionId })), (input.ActionThreshold != null && {
2255
2202
  ActionThreshold: serializeAws_json1_1ActionThreshold(input.ActionThreshold, context),
2256
- })), (input.ApprovalModel !== undefined && input.ApprovalModel !== null && { ApprovalModel: input.ApprovalModel })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.Definition !== undefined &&
2257
- input.Definition !== null && { Definition: serializeAws_json1_1Definition(input.Definition, context) })), (input.ExecutionRoleArn !== undefined &&
2258
- input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.NotificationType !== undefined &&
2259
- input.NotificationType !== null && { NotificationType: input.NotificationType })), (input.Subscribers !== undefined &&
2260
- input.Subscribers !== null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2203
+ })), (input.ApprovalModel != null && { ApprovalModel: input.ApprovalModel })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.Definition != null && { Definition: serializeAws_json1_1Definition(input.Definition, context) })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.NotificationType != null && { NotificationType: input.NotificationType })), (input.Subscribers != null && { Subscribers: serializeAws_json1_1Subscribers(input.Subscribers, context) }));
2261
2204
  };
2262
2205
  var serializeAws_json1_1UpdateBudgetRequest = function (input, context) {
2263
- return __assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.NewBudget !== undefined &&
2264
- input.NewBudget !== null && { NewBudget: serializeAws_json1_1Budget(input.NewBudget, context) }));
2206
+ return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.NewBudget != null && { NewBudget: serializeAws_json1_1Budget(input.NewBudget, context) }));
2265
2207
  };
2266
2208
  var serializeAws_json1_1UpdateNotificationRequest = function (input, context) {
2267
- return __assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.NewNotification !== undefined &&
2268
- input.NewNotification !== null && {
2209
+ return __assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.NewNotification != null && {
2269
2210
  NewNotification: serializeAws_json1_1Notification(input.NewNotification, context),
2270
- })), (input.OldNotification !== undefined &&
2271
- input.OldNotification !== null && {
2211
+ })), (input.OldNotification != null && {
2272
2212
  OldNotification: serializeAws_json1_1Notification(input.OldNotification, context),
2273
2213
  }));
2274
2214
  };
2275
2215
  var serializeAws_json1_1UpdateSubscriberRequest = function (input, context) {
2276
- return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName })), (input.NewSubscriber !== undefined &&
2277
- input.NewSubscriber !== null && { NewSubscriber: serializeAws_json1_1Subscriber(input.NewSubscriber, context) })), (input.Notification !== undefined &&
2278
- input.Notification !== null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.OldSubscriber !== undefined &&
2279
- input.OldSubscriber !== null && { OldSubscriber: serializeAws_json1_1Subscriber(input.OldSubscriber, context) }));
2216
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.BudgetName != null && { BudgetName: input.BudgetName })), (input.NewSubscriber != null && { NewSubscriber: serializeAws_json1_1Subscriber(input.NewSubscriber, context) })), (input.Notification != null && { Notification: serializeAws_json1_1Notification(input.Notification, context) })), (input.OldSubscriber != null && { OldSubscriber: serializeAws_json1_1Subscriber(input.OldSubscriber, context) }));
2280
2217
  };
2281
2218
  var serializeAws_json1_1Users = function (input, context) {
2282
2219
  return input
@@ -2296,21 +2233,17 @@ var deserializeAws_json1_1AccessDeniedException = function (output, context) {
2296
2233
  var deserializeAws_json1_1Action = function (output, context) {
2297
2234
  return {
2298
2235
  ActionId: __expectString(output.ActionId),
2299
- ActionThreshold: output.ActionThreshold !== undefined && output.ActionThreshold !== null
2236
+ ActionThreshold: output.ActionThreshold != null
2300
2237
  ? deserializeAws_json1_1ActionThreshold(output.ActionThreshold, context)
2301
2238
  : undefined,
2302
2239
  ActionType: __expectString(output.ActionType),
2303
2240
  ApprovalModel: __expectString(output.ApprovalModel),
2304
2241
  BudgetName: __expectString(output.BudgetName),
2305
- Definition: output.Definition !== undefined && output.Definition !== null
2306
- ? deserializeAws_json1_1Definition(output.Definition, context)
2307
- : undefined,
2242
+ Definition: output.Definition != null ? deserializeAws_json1_1Definition(output.Definition, context) : undefined,
2308
2243
  ExecutionRoleArn: __expectString(output.ExecutionRoleArn),
2309
2244
  NotificationType: __expectString(output.NotificationType),
2310
2245
  Status: __expectString(output.Status),
2311
- Subscribers: output.Subscribers !== undefined && output.Subscribers !== null
2312
- ? deserializeAws_json1_1Subscribers(output.Subscribers, context)
2313
- : undefined,
2246
+ Subscribers: output.Subscribers != null ? deserializeAws_json1_1Subscribers(output.Subscribers, context) : undefined,
2314
2247
  };
2315
2248
  };
2316
2249
  var deserializeAws_json1_1ActionHistories = function (output, context) {
@@ -2326,21 +2259,17 @@ var deserializeAws_json1_1ActionHistories = function (output, context) {
2326
2259
  };
2327
2260
  var deserializeAws_json1_1ActionHistory = function (output, context) {
2328
2261
  return {
2329
- ActionHistoryDetails: output.ActionHistoryDetails !== undefined && output.ActionHistoryDetails !== null
2262
+ ActionHistoryDetails: output.ActionHistoryDetails != null
2330
2263
  ? deserializeAws_json1_1ActionHistoryDetails(output.ActionHistoryDetails, context)
2331
2264
  : undefined,
2332
2265
  EventType: __expectString(output.EventType),
2333
2266
  Status: __expectString(output.Status),
2334
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
2335
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
2336
- : undefined,
2267
+ Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
2337
2268
  };
2338
2269
  };
2339
2270
  var deserializeAws_json1_1ActionHistoryDetails = function (output, context) {
2340
2271
  return {
2341
- Action: output.Action !== undefined && output.Action !== null
2342
- ? deserializeAws_json1_1Action(output.Action, context)
2343
- : undefined,
2272
+ Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
2344
2273
  Message: __expectString(output.Message),
2345
2274
  };
2346
2275
  };
@@ -2364,56 +2293,40 @@ var deserializeAws_json1_1ActionThreshold = function (output, context) {
2364
2293
  var deserializeAws_json1_1AutoAdjustData = function (output, context) {
2365
2294
  return {
2366
2295
  AutoAdjustType: __expectString(output.AutoAdjustType),
2367
- HistoricalOptions: output.HistoricalOptions !== undefined && output.HistoricalOptions !== null
2296
+ HistoricalOptions: output.HistoricalOptions != null
2368
2297
  ? deserializeAws_json1_1HistoricalOptions(output.HistoricalOptions, context)
2369
2298
  : undefined,
2370
- LastAutoAdjustTime: output.LastAutoAdjustTime !== undefined && output.LastAutoAdjustTime !== null
2299
+ LastAutoAdjustTime: output.LastAutoAdjustTime != null
2371
2300
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAutoAdjustTime)))
2372
2301
  : undefined,
2373
2302
  };
2374
2303
  };
2375
2304
  var deserializeAws_json1_1Budget = function (output, context) {
2376
2305
  return {
2377
- AutoAdjustData: output.AutoAdjustData !== undefined && output.AutoAdjustData !== null
2378
- ? deserializeAws_json1_1AutoAdjustData(output.AutoAdjustData, context)
2379
- : undefined,
2380
- BudgetLimit: output.BudgetLimit !== undefined && output.BudgetLimit !== null
2381
- ? deserializeAws_json1_1Spend(output.BudgetLimit, context)
2382
- : undefined,
2306
+ AutoAdjustData: output.AutoAdjustData != null ? deserializeAws_json1_1AutoAdjustData(output.AutoAdjustData, context) : undefined,
2307
+ BudgetLimit: output.BudgetLimit != null ? deserializeAws_json1_1Spend(output.BudgetLimit, context) : undefined,
2383
2308
  BudgetName: __expectString(output.BudgetName),
2384
2309
  BudgetType: __expectString(output.BudgetType),
2385
- CalculatedSpend: output.CalculatedSpend !== undefined && output.CalculatedSpend !== null
2310
+ CalculatedSpend: output.CalculatedSpend != null
2386
2311
  ? deserializeAws_json1_1CalculatedSpend(output.CalculatedSpend, context)
2387
2312
  : undefined,
2388
- CostFilters: output.CostFilters !== undefined && output.CostFilters !== null
2389
- ? deserializeAws_json1_1CostFilters(output.CostFilters, context)
2390
- : undefined,
2391
- CostTypes: output.CostTypes !== undefined && output.CostTypes !== null
2392
- ? deserializeAws_json1_1CostTypes(output.CostTypes, context)
2393
- : undefined,
2394
- LastUpdatedTime: output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null
2313
+ CostFilters: output.CostFilters != null ? deserializeAws_json1_1CostFilters(output.CostFilters, context) : undefined,
2314
+ CostTypes: output.CostTypes != null ? deserializeAws_json1_1CostTypes(output.CostTypes, context) : undefined,
2315
+ LastUpdatedTime: output.LastUpdatedTime != null
2395
2316
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
2396
2317
  : undefined,
2397
- PlannedBudgetLimits: output.PlannedBudgetLimits !== undefined && output.PlannedBudgetLimits !== null
2318
+ PlannedBudgetLimits: output.PlannedBudgetLimits != null
2398
2319
  ? deserializeAws_json1_1PlannedBudgetLimits(output.PlannedBudgetLimits, context)
2399
2320
  : undefined,
2400
- TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
2401
- ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context)
2402
- : undefined,
2321
+ TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context) : undefined,
2403
2322
  TimeUnit: __expectString(output.TimeUnit),
2404
2323
  };
2405
2324
  };
2406
2325
  var deserializeAws_json1_1BudgetedAndActualAmounts = function (output, context) {
2407
2326
  return {
2408
- ActualAmount: output.ActualAmount !== undefined && output.ActualAmount !== null
2409
- ? deserializeAws_json1_1Spend(output.ActualAmount, context)
2410
- : undefined,
2411
- BudgetedAmount: output.BudgetedAmount !== undefined && output.BudgetedAmount !== null
2412
- ? deserializeAws_json1_1Spend(output.BudgetedAmount, context)
2413
- : undefined,
2414
- TimePeriod: output.TimePeriod !== undefined && output.TimePeriod !== null
2415
- ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context)
2416
- : undefined,
2327
+ ActualAmount: output.ActualAmount != null ? deserializeAws_json1_1Spend(output.ActualAmount, context) : undefined,
2328
+ BudgetedAmount: output.BudgetedAmount != null ? deserializeAws_json1_1Spend(output.BudgetedAmount, context) : undefined,
2329
+ TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context) : undefined,
2417
2330
  };
2418
2331
  };
2419
2332
  var deserializeAws_json1_1BudgetedAndActualAmountsList = function (output, context) {
@@ -2430,9 +2343,7 @@ var deserializeAws_json1_1BudgetedAndActualAmountsList = function (output, conte
2430
2343
  var deserializeAws_json1_1BudgetNotificationsForAccount = function (output, context) {
2431
2344
  return {
2432
2345
  BudgetName: __expectString(output.BudgetName),
2433
- Notifications: output.Notifications !== undefined && output.Notifications !== null
2434
- ? deserializeAws_json1_1Notifications(output.Notifications, context)
2435
- : undefined,
2346
+ Notifications: output.Notifications != null ? deserializeAws_json1_1Notifications(output.Notifications, context) : undefined,
2436
2347
  };
2437
2348
  };
2438
2349
  var deserializeAws_json1_1BudgetNotificationsForAccountList = function (output, context) {
@@ -2450,15 +2361,11 @@ var deserializeAws_json1_1BudgetPerformanceHistory = function (output, context)
2450
2361
  return {
2451
2362
  BudgetName: __expectString(output.BudgetName),
2452
2363
  BudgetType: __expectString(output.BudgetType),
2453
- BudgetedAndActualAmountsList: output.BudgetedAndActualAmountsList !== undefined && output.BudgetedAndActualAmountsList !== null
2364
+ BudgetedAndActualAmountsList: output.BudgetedAndActualAmountsList != null
2454
2365
  ? deserializeAws_json1_1BudgetedAndActualAmountsList(output.BudgetedAndActualAmountsList, context)
2455
2366
  : undefined,
2456
- CostFilters: output.CostFilters !== undefined && output.CostFilters !== null
2457
- ? deserializeAws_json1_1CostFilters(output.CostFilters, context)
2458
- : undefined,
2459
- CostTypes: output.CostTypes !== undefined && output.CostTypes !== null
2460
- ? deserializeAws_json1_1CostTypes(output.CostTypes, context)
2461
- : undefined,
2367
+ CostFilters: output.CostFilters != null ? deserializeAws_json1_1CostFilters(output.CostFilters, context) : undefined,
2368
+ CostTypes: output.CostTypes != null ? deserializeAws_json1_1CostTypes(output.CostTypes, context) : undefined,
2462
2369
  TimeUnit: __expectString(output.TimeUnit),
2463
2370
  };
2464
2371
  };
@@ -2475,12 +2382,8 @@ var deserializeAws_json1_1Budgets = function (output, context) {
2475
2382
  };
2476
2383
  var deserializeAws_json1_1CalculatedSpend = function (output, context) {
2477
2384
  return {
2478
- ActualSpend: output.ActualSpend !== undefined && output.ActualSpend !== null
2479
- ? deserializeAws_json1_1Spend(output.ActualSpend, context)
2480
- : undefined,
2481
- ForecastedSpend: output.ForecastedSpend !== undefined && output.ForecastedSpend !== null
2482
- ? deserializeAws_json1_1Spend(output.ForecastedSpend, context)
2483
- : undefined,
2385
+ ActualSpend: output.ActualSpend != null ? deserializeAws_json1_1Spend(output.ActualSpend, context) : undefined,
2386
+ ForecastedSpend: output.ForecastedSpend != null ? deserializeAws_json1_1Spend(output.ForecastedSpend, context) : undefined,
2484
2387
  };
2485
2388
  };
2486
2389
  var deserializeAws_json1_1CostFilters = function (output, context) {
@@ -2531,13 +2434,13 @@ var deserializeAws_json1_1CreationLimitExceededException = function (output, con
2531
2434
  };
2532
2435
  var deserializeAws_json1_1Definition = function (output, context) {
2533
2436
  return {
2534
- IamActionDefinition: output.IamActionDefinition !== undefined && output.IamActionDefinition !== null
2437
+ IamActionDefinition: output.IamActionDefinition != null
2535
2438
  ? deserializeAws_json1_1IamActionDefinition(output.IamActionDefinition, context)
2536
2439
  : undefined,
2537
- ScpActionDefinition: output.ScpActionDefinition !== undefined && output.ScpActionDefinition !== null
2440
+ ScpActionDefinition: output.ScpActionDefinition != null
2538
2441
  ? deserializeAws_json1_1ScpActionDefinition(output.ScpActionDefinition, context)
2539
2442
  : undefined,
2540
- SsmActionDefinition: output.SsmActionDefinition !== undefined && output.SsmActionDefinition !== null
2443
+ SsmActionDefinition: output.SsmActionDefinition != null
2541
2444
  ? deserializeAws_json1_1SsmActionDefinition(output.SsmActionDefinition, context)
2542
2445
  : undefined,
2543
2446
  };
@@ -2545,9 +2448,7 @@ var deserializeAws_json1_1Definition = function (output, context) {
2545
2448
  var deserializeAws_json1_1DeleteBudgetActionResponse = function (output, context) {
2546
2449
  return {
2547
2450
  AccountId: __expectString(output.AccountId),
2548
- Action: output.Action !== undefined && output.Action !== null
2549
- ? deserializeAws_json1_1Action(output.Action, context)
2550
- : undefined,
2451
+ Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
2551
2452
  BudgetName: __expectString(output.BudgetName),
2552
2453
  };
2553
2454
  };
@@ -2562,7 +2463,7 @@ var deserializeAws_json1_1DeleteSubscriberResponse = function (output, context)
2562
2463
  };
2563
2464
  var deserializeAws_json1_1DescribeBudgetActionHistoriesResponse = function (output, context) {
2564
2465
  return {
2565
- ActionHistories: output.ActionHistories !== undefined && output.ActionHistories !== null
2466
+ ActionHistories: output.ActionHistories != null
2566
2467
  ? deserializeAws_json1_1ActionHistories(output.ActionHistories, context)
2567
2468
  : undefined,
2568
2469
  NextToken: __expectString(output.NextToken),
@@ -2571,31 +2472,25 @@ var deserializeAws_json1_1DescribeBudgetActionHistoriesResponse = function (outp
2571
2472
  var deserializeAws_json1_1DescribeBudgetActionResponse = function (output, context) {
2572
2473
  return {
2573
2474
  AccountId: __expectString(output.AccountId),
2574
- Action: output.Action !== undefined && output.Action !== null
2575
- ? deserializeAws_json1_1Action(output.Action, context)
2576
- : undefined,
2475
+ Action: output.Action != null ? deserializeAws_json1_1Action(output.Action, context) : undefined,
2577
2476
  BudgetName: __expectString(output.BudgetName),
2578
2477
  };
2579
2478
  };
2580
2479
  var deserializeAws_json1_1DescribeBudgetActionsForAccountResponse = function (output, context) {
2581
2480
  return {
2582
- Actions: output.Actions !== undefined && output.Actions !== null
2583
- ? deserializeAws_json1_1Actions(output.Actions, context)
2584
- : undefined,
2481
+ Actions: output.Actions != null ? deserializeAws_json1_1Actions(output.Actions, context) : undefined,
2585
2482
  NextToken: __expectString(output.NextToken),
2586
2483
  };
2587
2484
  };
2588
2485
  var deserializeAws_json1_1DescribeBudgetActionsForBudgetResponse = function (output, context) {
2589
2486
  return {
2590
- Actions: output.Actions !== undefined && output.Actions !== null
2591
- ? deserializeAws_json1_1Actions(output.Actions, context)
2592
- : undefined,
2487
+ Actions: output.Actions != null ? deserializeAws_json1_1Actions(output.Actions, context) : undefined,
2593
2488
  NextToken: __expectString(output.NextToken),
2594
2489
  };
2595
2490
  };
2596
2491
  var deserializeAws_json1_1DescribeBudgetNotificationsForAccountResponse = function (output, context) {
2597
2492
  return {
2598
- BudgetNotificationsForAccount: output.BudgetNotificationsForAccount !== undefined && output.BudgetNotificationsForAccount !== null
2493
+ BudgetNotificationsForAccount: output.BudgetNotificationsForAccount != null
2599
2494
  ? deserializeAws_json1_1BudgetNotificationsForAccountList(output.BudgetNotificationsForAccount, context)
2600
2495
  : undefined,
2601
2496
  NextToken: __expectString(output.NextToken),
@@ -2603,7 +2498,7 @@ var deserializeAws_json1_1DescribeBudgetNotificationsForAccountResponse = functi
2603
2498
  };
2604
2499
  var deserializeAws_json1_1DescribeBudgetPerformanceHistoryResponse = function (output, context) {
2605
2500
  return {
2606
- BudgetPerformanceHistory: output.BudgetPerformanceHistory !== undefined && output.BudgetPerformanceHistory !== null
2501
+ BudgetPerformanceHistory: output.BudgetPerformanceHistory != null
2607
2502
  ? deserializeAws_json1_1BudgetPerformanceHistory(output.BudgetPerformanceHistory, context)
2608
2503
  : undefined,
2609
2504
  NextToken: __expectString(output.NextToken),
@@ -2611,33 +2506,25 @@ var deserializeAws_json1_1DescribeBudgetPerformanceHistoryResponse = function (o
2611
2506
  };
2612
2507
  var deserializeAws_json1_1DescribeBudgetResponse = function (output, context) {
2613
2508
  return {
2614
- Budget: output.Budget !== undefined && output.Budget !== null
2615
- ? deserializeAws_json1_1Budget(output.Budget, context)
2616
- : undefined,
2509
+ Budget: output.Budget != null ? deserializeAws_json1_1Budget(output.Budget, context) : undefined,
2617
2510
  };
2618
2511
  };
2619
2512
  var deserializeAws_json1_1DescribeBudgetsResponse = function (output, context) {
2620
2513
  return {
2621
- Budgets: output.Budgets !== undefined && output.Budgets !== null
2622
- ? deserializeAws_json1_1Budgets(output.Budgets, context)
2623
- : undefined,
2514
+ Budgets: output.Budgets != null ? deserializeAws_json1_1Budgets(output.Budgets, context) : undefined,
2624
2515
  NextToken: __expectString(output.NextToken),
2625
2516
  };
2626
2517
  };
2627
2518
  var deserializeAws_json1_1DescribeNotificationsForBudgetResponse = function (output, context) {
2628
2519
  return {
2629
2520
  NextToken: __expectString(output.NextToken),
2630
- Notifications: output.Notifications !== undefined && output.Notifications !== null
2631
- ? deserializeAws_json1_1Notifications(output.Notifications, context)
2632
- : undefined,
2521
+ Notifications: output.Notifications != null ? deserializeAws_json1_1Notifications(output.Notifications, context) : undefined,
2633
2522
  };
2634
2523
  };
2635
2524
  var deserializeAws_json1_1DescribeSubscribersForNotificationResponse = function (output, context) {
2636
2525
  return {
2637
2526
  NextToken: __expectString(output.NextToken),
2638
- Subscribers: output.Subscribers !== undefined && output.Subscribers !== null
2639
- ? deserializeAws_json1_1Subscribers(output.Subscribers, context)
2640
- : undefined,
2527
+ Subscribers: output.Subscribers != null ? deserializeAws_json1_1Subscribers(output.Subscribers, context) : undefined,
2641
2528
  };
2642
2529
  };
2643
2530
  var deserializeAws_json1_1DimensionValues = function (output, context) {
@@ -2688,16 +2575,10 @@ var deserializeAws_json1_1HistoricalOptions = function (output, context) {
2688
2575
  };
2689
2576
  var deserializeAws_json1_1IamActionDefinition = function (output, context) {
2690
2577
  return {
2691
- Groups: output.Groups !== undefined && output.Groups !== null
2692
- ? deserializeAws_json1_1Groups(output.Groups, context)
2693
- : undefined,
2578
+ Groups: output.Groups != null ? deserializeAws_json1_1Groups(output.Groups, context) : undefined,
2694
2579
  PolicyArn: __expectString(output.PolicyArn),
2695
- Roles: output.Roles !== undefined && output.Roles !== null
2696
- ? deserializeAws_json1_1Roles(output.Roles, context)
2697
- : undefined,
2698
- Users: output.Users !== undefined && output.Users !== null
2699
- ? deserializeAws_json1_1Users(output.Users, context)
2700
- : undefined,
2580
+ Roles: output.Roles != null ? deserializeAws_json1_1Roles(output.Roles, context) : undefined,
2581
+ Users: output.Users != null ? deserializeAws_json1_1Users(output.Users, context) : undefined,
2701
2582
  };
2702
2583
  };
2703
2584
  var deserializeAws_json1_1InstanceIds = function (output, context) {
@@ -2780,9 +2661,7 @@ var deserializeAws_json1_1Roles = function (output, context) {
2780
2661
  var deserializeAws_json1_1ScpActionDefinition = function (output, context) {
2781
2662
  return {
2782
2663
  PolicyId: __expectString(output.PolicyId),
2783
- TargetIds: output.TargetIds !== undefined && output.TargetIds !== null
2784
- ? deserializeAws_json1_1TargetIds(output.TargetIds, context)
2785
- : undefined,
2664
+ TargetIds: output.TargetIds != null ? deserializeAws_json1_1TargetIds(output.TargetIds, context) : undefined,
2786
2665
  };
2787
2666
  };
2788
2667
  var deserializeAws_json1_1Spend = function (output, context) {
@@ -2794,9 +2673,7 @@ var deserializeAws_json1_1Spend = function (output, context) {
2794
2673
  var deserializeAws_json1_1SsmActionDefinition = function (output, context) {
2795
2674
  return {
2796
2675
  ActionSubType: __expectString(output.ActionSubType),
2797
- InstanceIds: output.InstanceIds !== undefined && output.InstanceIds !== null
2798
- ? deserializeAws_json1_1InstanceIds(output.InstanceIds, context)
2799
- : undefined,
2676
+ InstanceIds: output.InstanceIds != null ? deserializeAws_json1_1InstanceIds(output.InstanceIds, context) : undefined,
2800
2677
  Region: __expectString(output.Region),
2801
2678
  };
2802
2679
  };
@@ -2835,24 +2712,16 @@ var deserializeAws_json1_1ThrottlingException = function (output, context) {
2835
2712
  };
2836
2713
  var deserializeAws_json1_1TimePeriod = function (output, context) {
2837
2714
  return {
2838
- End: output.End !== undefined && output.End !== null
2839
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.End)))
2840
- : undefined,
2841
- Start: output.Start !== undefined && output.Start !== null
2842
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Start)))
2843
- : undefined,
2715
+ End: output.End != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.End))) : undefined,
2716
+ Start: output.Start != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Start))) : undefined,
2844
2717
  };
2845
2718
  };
2846
2719
  var deserializeAws_json1_1UpdateBudgetActionResponse = function (output, context) {
2847
2720
  return {
2848
2721
  AccountId: __expectString(output.AccountId),
2849
2722
  BudgetName: __expectString(output.BudgetName),
2850
- NewAction: output.NewAction !== undefined && output.NewAction !== null
2851
- ? deserializeAws_json1_1Action(output.NewAction, context)
2852
- : undefined,
2853
- OldAction: output.OldAction !== undefined && output.OldAction !== null
2854
- ? deserializeAws_json1_1Action(output.OldAction, context)
2855
- : undefined,
2723
+ NewAction: output.NewAction != null ? deserializeAws_json1_1Action(output.NewAction, context) : undefined,
2724
+ OldAction: output.OldAction != null ? deserializeAws_json1_1Action(output.OldAction, context) : undefined,
2856
2725
  };
2857
2726
  };
2858
2727
  var deserializeAws_json1_1UpdateBudgetResponse = function (output, context) {