@aws-sdk/client-backup 3.126.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.
@@ -15,10 +15,7 @@ export var serializeAws_restJson1CreateBackupPlanCommand = function (input, cont
15
15
  "content-type": "application/json",
16
16
  };
17
17
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/plans";
18
- body = JSON.stringify(__assign(__assign(__assign({}, (input.BackupPlan !== undefined &&
19
- input.BackupPlan !== null && { BackupPlan: serializeAws_restJson1BackupPlanInput(input.BackupPlan, context) })), (input.BackupPlanTags !== undefined &&
20
- input.BackupPlanTags !== null && { BackupPlanTags: serializeAws_restJson1Tags(input.BackupPlanTags, context) })), (input.CreatorRequestId !== undefined &&
21
- input.CreatorRequestId !== null && { CreatorRequestId: input.CreatorRequestId })));
18
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.BackupPlan != null && { BackupPlan: serializeAws_restJson1BackupPlanInput(input.BackupPlan, context) })), (input.BackupPlanTags != null && { BackupPlanTags: serializeAws_restJson1Tags(input.BackupPlanTags, context) })), (input.CreatorRequestId != null && { CreatorRequestId: input.CreatorRequestId })));
22
19
  return [2, new __HttpRequest({
23
20
  protocol: protocol,
24
21
  hostname: hostname,
@@ -52,11 +49,9 @@ export var serializeAws_restJson1CreateBackupSelectionCommand = function (input,
52
49
  else {
53
50
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
54
51
  }
55
- body = JSON.stringify(__assign(__assign({}, (input.BackupSelection !== undefined &&
56
- input.BackupSelection !== null && {
52
+ body = JSON.stringify(__assign(__assign({}, (input.BackupSelection != null && {
57
53
  BackupSelection: serializeAws_restJson1BackupSelection(input.BackupSelection, context),
58
- })), (input.CreatorRequestId !== undefined &&
59
- input.CreatorRequestId !== null && { CreatorRequestId: input.CreatorRequestId })));
54
+ })), (input.CreatorRequestId != null && { CreatorRequestId: input.CreatorRequestId })));
60
55
  return [2, new __HttpRequest({
61
56
  protocol: protocol,
62
57
  hostname: hostname,
@@ -90,12 +85,9 @@ export var serializeAws_restJson1CreateBackupVaultCommand = function (input, con
90
85
  else {
91
86
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
92
87
  }
93
- body = JSON.stringify(__assign(__assign(__assign({}, (input.BackupVaultTags !== undefined &&
94
- input.BackupVaultTags !== null && {
88
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.BackupVaultTags != null && {
95
89
  BackupVaultTags: serializeAws_restJson1Tags(input.BackupVaultTags, context),
96
- })), (input.CreatorRequestId !== undefined &&
97
- input.CreatorRequestId !== null && { CreatorRequestId: input.CreatorRequestId })), (input.EncryptionKeyArn !== undefined &&
98
- input.EncryptionKeyArn !== null && { EncryptionKeyArn: input.EncryptionKeyArn })));
90
+ })), (input.CreatorRequestId != null && { CreatorRequestId: input.CreatorRequestId })), (input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn })));
99
91
  return [2, new __HttpRequest({
100
92
  protocol: protocol,
101
93
  hostname: hostname,
@@ -120,12 +112,11 @@ export var serializeAws_restJson1CreateFrameworkCommand = function (input, conte
120
112
  "content-type": "application/json",
121
113
  };
122
114
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/frameworks";
123
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FrameworkControls !== undefined &&
124
- input.FrameworkControls !== null && {
115
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.FrameworkControls != null && {
125
116
  FrameworkControls: serializeAws_restJson1FrameworkControls(input.FrameworkControls, context),
126
- })), (input.FrameworkDescription !== undefined &&
127
- input.FrameworkDescription !== null && { FrameworkDescription: input.FrameworkDescription })), (input.FrameworkName !== undefined && input.FrameworkName !== null && { FrameworkName: input.FrameworkName })), (input.FrameworkTags !== undefined &&
128
- input.FrameworkTags !== null && { FrameworkTags: serializeAws_restJson1stringMap(input.FrameworkTags, context) })), { IdempotencyToken: (_c = input.IdempotencyToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
117
+ })), (input.FrameworkDescription != null && { FrameworkDescription: input.FrameworkDescription })), (input.FrameworkName != null && { FrameworkName: input.FrameworkName })), (input.FrameworkTags != null && {
118
+ FrameworkTags: serializeAws_restJson1stringMap(input.FrameworkTags, context),
119
+ })), { IdempotencyToken: (_c = input.IdempotencyToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
129
120
  return [2, new __HttpRequest({
130
121
  protocol: protocol,
131
122
  hostname: hostname,
@@ -150,16 +141,11 @@ export var serializeAws_restJson1CreateReportPlanCommand = function (input, cont
150
141
  "content-type": "application/json",
151
142
  };
152
143
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/report-plans";
153
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ IdempotencyToken: (_c = input.IdempotencyToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ReportDeliveryChannel !== undefined &&
154
- input.ReportDeliveryChannel !== null && {
144
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ IdempotencyToken: (_c = input.IdempotencyToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ReportDeliveryChannel != null && {
155
145
  ReportDeliveryChannel: serializeAws_restJson1ReportDeliveryChannel(input.ReportDeliveryChannel, context),
156
- })), (input.ReportPlanDescription !== undefined &&
157
- input.ReportPlanDescription !== null && { ReportPlanDescription: input.ReportPlanDescription })), (input.ReportPlanName !== undefined &&
158
- input.ReportPlanName !== null && { ReportPlanName: input.ReportPlanName })), (input.ReportPlanTags !== undefined &&
159
- input.ReportPlanTags !== null && {
146
+ })), (input.ReportPlanDescription != null && { ReportPlanDescription: input.ReportPlanDescription })), (input.ReportPlanName != null && { ReportPlanName: input.ReportPlanName })), (input.ReportPlanTags != null && {
160
147
  ReportPlanTags: serializeAws_restJson1stringMap(input.ReportPlanTags, context),
161
- })), (input.ReportSetting !== undefined &&
162
- input.ReportSetting !== null && {
148
+ })), (input.ReportSetting != null && {
163
149
  ReportSetting: serializeAws_restJson1ReportSetting(input.ReportSetting, context),
164
150
  })));
165
151
  return [2, new __HttpRequest({
@@ -933,8 +919,7 @@ export var serializeAws_restJson1GetBackupPlanFromJSONCommand = function (input,
933
919
  "content-type": "application/json",
934
920
  };
935
921
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup/template/json/toPlan";
936
- body = JSON.stringify(__assign({}, (input.BackupPlanTemplateJson !== undefined &&
937
- input.BackupPlanTemplateJson !== null && { BackupPlanTemplateJson: input.BackupPlanTemplateJson })));
922
+ body = JSON.stringify(__assign({}, (input.BackupPlanTemplateJson != null && { BackupPlanTemplateJson: input.BackupPlanTemplateJson })));
938
923
  return [2, new __HttpRequest({
939
924
  protocol: protocol,
940
925
  hostname: hostname,
@@ -1601,7 +1586,7 @@ export var serializeAws_restJson1PutBackupVaultAccessPolicyCommand = function (i
1601
1586
  else {
1602
1587
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
1603
1588
  }
1604
- body = JSON.stringify(__assign({}, (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })));
1589
+ body = JSON.stringify(__assign({}, (input.Policy != null && { Policy: input.Policy })));
1605
1590
  return [2, new __HttpRequest({
1606
1591
  protocol: protocol,
1607
1592
  hostname: hostname,
@@ -1636,10 +1621,7 @@ export var serializeAws_restJson1PutBackupVaultLockConfigurationCommand = functi
1636
1621
  else {
1637
1622
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
1638
1623
  }
1639
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ChangeableForDays !== undefined &&
1640
- input.ChangeableForDays !== null && { ChangeableForDays: input.ChangeableForDays })), (input.MaxRetentionDays !== undefined &&
1641
- input.MaxRetentionDays !== null && { MaxRetentionDays: input.MaxRetentionDays })), (input.MinRetentionDays !== undefined &&
1642
- input.MinRetentionDays !== null && { MinRetentionDays: input.MinRetentionDays })));
1624
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ChangeableForDays != null && { ChangeableForDays: input.ChangeableForDays })), (input.MaxRetentionDays != null && { MaxRetentionDays: input.MaxRetentionDays })), (input.MinRetentionDays != null && { MinRetentionDays: input.MinRetentionDays })));
1643
1625
  return [2, new __HttpRequest({
1644
1626
  protocol: protocol,
1645
1627
  hostname: hostname,
@@ -1674,10 +1656,9 @@ export var serializeAws_restJson1PutBackupVaultNotificationsCommand = function (
1674
1656
  else {
1675
1657
  throw new Error("No value provided for input HTTP label: BackupVaultName.");
1676
1658
  }
1677
- body = JSON.stringify(__assign(__assign({}, (input.BackupVaultEvents !== undefined &&
1678
- input.BackupVaultEvents !== null && {
1659
+ body = JSON.stringify(__assign(__assign({}, (input.BackupVaultEvents != null && {
1679
1660
  BackupVaultEvents: serializeAws_restJson1BackupVaultEvents(input.BackupVaultEvents, context),
1680
- })), (input.SNSTopicArn !== undefined && input.SNSTopicArn !== null && { SNSTopicArn: input.SNSTopicArn })));
1661
+ })), (input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn })));
1681
1662
  return [2, new __HttpRequest({
1682
1663
  protocol: protocol,
1683
1664
  hostname: hostname,
@@ -1701,18 +1682,11 @@ export var serializeAws_restJson1StartBackupJobCommand = function (input, contex
1701
1682
  "content-type": "application/json",
1702
1683
  };
1703
1684
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backup-jobs";
1704
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupOptions !== undefined &&
1705
- input.BackupOptions !== null && {
1685
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BackupOptions != null && {
1706
1686
  BackupOptions: serializeAws_restJson1BackupOptions(input.BackupOptions, context),
1707
- })), (input.BackupVaultName !== undefined &&
1708
- input.BackupVaultName !== null && { BackupVaultName: input.BackupVaultName })), (input.CompleteWindowMinutes !== undefined &&
1709
- input.CompleteWindowMinutes !== null && { CompleteWindowMinutes: input.CompleteWindowMinutes })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.IdempotencyToken !== undefined &&
1710
- input.IdempotencyToken !== null && { IdempotencyToken: input.IdempotencyToken })), (input.Lifecycle !== undefined &&
1711
- input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) })), (input.RecoveryPointTags !== undefined &&
1712
- input.RecoveryPointTags !== null && {
1687
+ })), (input.BackupVaultName != null && { BackupVaultName: input.BackupVaultName })), (input.CompleteWindowMinutes != null && { CompleteWindowMinutes: input.CompleteWindowMinutes })), (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn })), (input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken })), (input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) })), (input.RecoveryPointTags != null && {
1713
1688
  RecoveryPointTags: serializeAws_restJson1Tags(input.RecoveryPointTags, context),
1714
- })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.StartWindowMinutes !== undefined &&
1715
- input.StartWindowMinutes !== null && { StartWindowMinutes: input.StartWindowMinutes })));
1689
+ })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.StartWindowMinutes != null && { StartWindowMinutes: input.StartWindowMinutes })));
1716
1690
  return [2, new __HttpRequest({
1717
1691
  protocol: protocol,
1718
1692
  hostname: hostname,
@@ -1736,12 +1710,7 @@ export var serializeAws_restJson1StartCopyJobCommand = function (input, context)
1736
1710
  "content-type": "application/json",
1737
1711
  };
1738
1712
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/copy-jobs";
1739
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationBackupVaultArn !== undefined &&
1740
- input.DestinationBackupVaultArn !== null && { DestinationBackupVaultArn: input.DestinationBackupVaultArn })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.IdempotencyToken !== undefined &&
1741
- input.IdempotencyToken !== null && { IdempotencyToken: input.IdempotencyToken })), (input.Lifecycle !== undefined &&
1742
- input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) })), (input.RecoveryPointArn !== undefined &&
1743
- input.RecoveryPointArn !== null && { RecoveryPointArn: input.RecoveryPointArn })), (input.SourceBackupVaultName !== undefined &&
1744
- input.SourceBackupVaultName !== null && { SourceBackupVaultName: input.SourceBackupVaultName })));
1713
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DestinationBackupVaultArn != null && { DestinationBackupVaultArn: input.DestinationBackupVaultArn })), (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn })), (input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken })), (input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) })), (input.RecoveryPointArn != null && { RecoveryPointArn: input.RecoveryPointArn })), (input.SourceBackupVaultName != null && { SourceBackupVaultName: input.SourceBackupVaultName })));
1745
1714
  return [2, new __HttpRequest({
1746
1715
  protocol: protocol,
1747
1716
  hostname: hostname,
@@ -1802,10 +1771,7 @@ export var serializeAws_restJson1StartRestoreJobCommand = function (input, conte
1802
1771
  "content-type": "application/json",
1803
1772
  };
1804
1773
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/restore-jobs";
1805
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.IdempotencyToken !== undefined &&
1806
- input.IdempotencyToken !== null && { IdempotencyToken: input.IdempotencyToken })), (input.Metadata !== undefined &&
1807
- input.Metadata !== null && { Metadata: serializeAws_restJson1Metadata(input.Metadata, context) })), (input.RecoveryPointArn !== undefined &&
1808
- input.RecoveryPointArn !== null && { RecoveryPointArn: input.RecoveryPointArn })), (input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType })));
1774
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn })), (input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken })), (input.Metadata != null && { Metadata: serializeAws_restJson1Metadata(input.Metadata, context) })), (input.RecoveryPointArn != null && { RecoveryPointArn: input.RecoveryPointArn })), (input.ResourceType != null && { ResourceType: input.ResourceType })));
1809
1775
  return [2, new __HttpRequest({
1810
1776
  protocol: protocol,
1811
1777
  hostname: hostname,
@@ -1870,7 +1836,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1870
1836
  else {
1871
1837
  throw new Error("No value provided for input HTTP label: ResourceArn.");
1872
1838
  }
1873
- body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
1839
+ body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
1874
1840
  return [2, new __HttpRequest({
1875
1841
  protocol: protocol,
1876
1842
  hostname: hostname,
@@ -1904,8 +1870,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
1904
1870
  else {
1905
1871
  throw new Error("No value provided for input HTTP label: ResourceArn.");
1906
1872
  }
1907
- body = JSON.stringify(__assign({}, (input.TagKeyList !== undefined &&
1908
- input.TagKeyList !== null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) })));
1873
+ body = JSON.stringify(__assign({}, (input.TagKeyList != null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) })));
1909
1874
  return [2, new __HttpRequest({
1910
1875
  protocol: protocol,
1911
1876
  hostname: hostname,
@@ -1939,8 +1904,7 @@ export var serializeAws_restJson1UpdateBackupPlanCommand = function (input, cont
1939
1904
  else {
1940
1905
  throw new Error("No value provided for input HTTP label: BackupPlanId.");
1941
1906
  }
1942
- body = JSON.stringify(__assign({}, (input.BackupPlan !== undefined &&
1943
- input.BackupPlan !== null && { BackupPlan: serializeAws_restJson1BackupPlanInput(input.BackupPlan, context) })));
1907
+ body = JSON.stringify(__assign({}, (input.BackupPlan != null && { BackupPlan: serializeAws_restJson1BackupPlanInput(input.BackupPlan, context) })));
1944
1908
  return [2, new __HttpRequest({
1945
1909
  protocol: protocol,
1946
1910
  hostname: hostname,
@@ -1975,11 +1939,9 @@ export var serializeAws_restJson1UpdateFrameworkCommand = function (input, conte
1975
1939
  else {
1976
1940
  throw new Error("No value provided for input HTTP label: FrameworkName.");
1977
1941
  }
1978
- body = JSON.stringify(__assign(__assign(__assign({}, (input.FrameworkControls !== undefined &&
1979
- input.FrameworkControls !== null && {
1942
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.FrameworkControls != null && {
1980
1943
  FrameworkControls: serializeAws_restJson1FrameworkControls(input.FrameworkControls, context),
1981
- })), (input.FrameworkDescription !== undefined &&
1982
- input.FrameworkDescription !== null && { FrameworkDescription: input.FrameworkDescription })), { IdempotencyToken: (_c = input.IdempotencyToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
1944
+ })), (input.FrameworkDescription != null && { FrameworkDescription: input.FrameworkDescription })), { IdempotencyToken: (_c = input.IdempotencyToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
1983
1945
  return [2, new __HttpRequest({
1984
1946
  protocol: protocol,
1985
1947
  hostname: hostname,
@@ -2003,8 +1965,7 @@ export var serializeAws_restJson1UpdateGlobalSettingsCommand = function (input,
2003
1965
  "content-type": "application/json",
2004
1966
  };
2005
1967
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/global-settings";
2006
- body = JSON.stringify(__assign({}, (input.GlobalSettings !== undefined &&
2007
- input.GlobalSettings !== null && {
1968
+ body = JSON.stringify(__assign({}, (input.GlobalSettings != null && {
2008
1969
  GlobalSettings: serializeAws_restJson1GlobalSettings(input.GlobalSettings, context),
2009
1970
  })));
2010
1971
  return [2, new __HttpRequest({
@@ -2051,8 +2012,7 @@ export var serializeAws_restJson1UpdateRecoveryPointLifecycleCommand = function
2051
2012
  else {
2052
2013
  throw new Error("No value provided for input HTTP label: RecoveryPointArn.");
2053
2014
  }
2054
- body = JSON.stringify(__assign({}, (input.Lifecycle !== undefined &&
2055
- input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) })));
2015
+ body = JSON.stringify(__assign({}, (input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) })));
2056
2016
  return [2, new __HttpRequest({
2057
2017
  protocol: protocol,
2058
2018
  hostname: hostname,
@@ -2076,11 +2036,9 @@ export var serializeAws_restJson1UpdateRegionSettingsCommand = function (input,
2076
2036
  "content-type": "application/json",
2077
2037
  };
2078
2038
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account-settings";
2079
- body = JSON.stringify(__assign(__assign({}, (input.ResourceTypeManagementPreference !== undefined &&
2080
- input.ResourceTypeManagementPreference !== null && {
2039
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceTypeManagementPreference != null && {
2081
2040
  ResourceTypeManagementPreference: serializeAws_restJson1ResourceTypeManagementPreference(input.ResourceTypeManagementPreference, context),
2082
- })), (input.ResourceTypeOptInPreference !== undefined &&
2083
- input.ResourceTypeOptInPreference !== null && {
2041
+ })), (input.ResourceTypeOptInPreference != null && {
2084
2042
  ResourceTypeOptInPreference: serializeAws_restJson1ResourceTypeOptInPreference(input.ResourceTypeOptInPreference, context),
2085
2043
  })));
2086
2044
  return [2, new __HttpRequest({
@@ -2117,12 +2075,9 @@ export var serializeAws_restJson1UpdateReportPlanCommand = function (input, cont
2117
2075
  else {
2118
2076
  throw new Error("No value provided for input HTTP label: ReportPlanName.");
2119
2077
  }
2120
- body = JSON.stringify(__assign(__assign(__assign({ IdempotencyToken: (_c = input.IdempotencyToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ReportDeliveryChannel !== undefined &&
2121
- input.ReportDeliveryChannel !== null && {
2078
+ body = JSON.stringify(__assign(__assign(__assign({ IdempotencyToken: (_c = input.IdempotencyToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ReportDeliveryChannel != null && {
2122
2079
  ReportDeliveryChannel: serializeAws_restJson1ReportDeliveryChannel(input.ReportDeliveryChannel, context),
2123
- })), (input.ReportPlanDescription !== undefined &&
2124
- input.ReportPlanDescription !== null && { ReportPlanDescription: input.ReportPlanDescription })), (input.ReportSetting !== undefined &&
2125
- input.ReportSetting !== null && {
2080
+ })), (input.ReportPlanDescription != null && { ReportPlanDescription: input.ReportPlanDescription })), (input.ReportSetting != null && {
2126
2081
  ReportSetting: serializeAws_restJson1ReportSetting(input.ReportSetting, context),
2127
2082
  })));
2128
2083
  return [2, new __HttpRequest({
@@ -7358,10 +7313,9 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
7358
7313
  });
7359
7314
  }); };
7360
7315
  var serializeAws_restJson1AdvancedBackupSetting = function (input, context) {
7361
- return __assign(__assign({}, (input.BackupOptions !== undefined &&
7362
- input.BackupOptions !== null && {
7316
+ return __assign(__assign({}, (input.BackupOptions != null && {
7363
7317
  BackupOptions: serializeAws_restJson1BackupOptions(input.BackupOptions, context),
7364
- })), (input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }));
7318
+ })), (input.ResourceType != null && { ResourceType: input.ResourceType }));
7365
7319
  };
7366
7320
  var serializeAws_restJson1AdvancedBackupSettings = function (input, context) {
7367
7321
  return input
@@ -7384,25 +7338,14 @@ var serializeAws_restJson1BackupOptions = function (input, context) {
7384
7338
  }, {});
7385
7339
  };
7386
7340
  var serializeAws_restJson1BackupPlanInput = function (input, context) {
7387
- return __assign(__assign(__assign({}, (input.AdvancedBackupSettings !== undefined &&
7388
- input.AdvancedBackupSettings !== null && {
7341
+ return __assign(__assign(__assign({}, (input.AdvancedBackupSettings != null && {
7389
7342
  AdvancedBackupSettings: serializeAws_restJson1AdvancedBackupSettings(input.AdvancedBackupSettings, context),
7390
- })), (input.BackupPlanName !== undefined &&
7391
- input.BackupPlanName !== null && { BackupPlanName: input.BackupPlanName })), (input.Rules !== undefined &&
7392
- input.Rules !== null && { Rules: serializeAws_restJson1BackupRulesInput(input.Rules, context) }));
7343
+ })), (input.BackupPlanName != null && { BackupPlanName: input.BackupPlanName })), (input.Rules != null && { Rules: serializeAws_restJson1BackupRulesInput(input.Rules, context) }));
7393
7344
  };
7394
7345
  var serializeAws_restJson1BackupRuleInput = function (input, context) {
7395
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CompletionWindowMinutes !== undefined &&
7396
- input.CompletionWindowMinutes !== null && { CompletionWindowMinutes: input.CompletionWindowMinutes })), (input.CopyActions !== undefined &&
7397
- input.CopyActions !== null && { CopyActions: serializeAws_restJson1CopyActions(input.CopyActions, context) })), (input.EnableContinuousBackup !== undefined &&
7398
- input.EnableContinuousBackup !== null && { EnableContinuousBackup: input.EnableContinuousBackup })), (input.Lifecycle !== undefined &&
7399
- input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) })), (input.RecoveryPointTags !== undefined &&
7400
- input.RecoveryPointTags !== null && {
7346
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CompletionWindowMinutes != null && { CompletionWindowMinutes: input.CompletionWindowMinutes })), (input.CopyActions != null && { CopyActions: serializeAws_restJson1CopyActions(input.CopyActions, context) })), (input.EnableContinuousBackup != null && { EnableContinuousBackup: input.EnableContinuousBackup })), (input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) })), (input.RecoveryPointTags != null && {
7401
7347
  RecoveryPointTags: serializeAws_restJson1Tags(input.RecoveryPointTags, context),
7402
- })), (input.RuleName !== undefined && input.RuleName !== null && { RuleName: input.RuleName })), (input.ScheduleExpression !== undefined &&
7403
- input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression })), (input.StartWindowMinutes !== undefined &&
7404
- input.StartWindowMinutes !== null && { StartWindowMinutes: input.StartWindowMinutes })), (input.TargetBackupVaultName !== undefined &&
7405
- input.TargetBackupVaultName !== null && { TargetBackupVaultName: input.TargetBackupVaultName }));
7348
+ })), (input.RuleName != null && { RuleName: input.RuleName })), (input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression })), (input.StartWindowMinutes != null && { StartWindowMinutes: input.StartWindowMinutes })), (input.TargetBackupVaultName != null && { TargetBackupVaultName: input.TargetBackupVaultName }));
7406
7349
  };
7407
7350
  var serializeAws_restJson1BackupRulesInput = function (input, context) {
7408
7351
  return input
@@ -7415,11 +7358,9 @@ var serializeAws_restJson1BackupRulesInput = function (input, context) {
7415
7358
  });
7416
7359
  };
7417
7360
  var serializeAws_restJson1BackupSelection = function (input, context) {
7418
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Conditions !== undefined &&
7419
- input.Conditions !== null && { Conditions: serializeAws_restJson1Conditions(input.Conditions, context) })), (input.IamRoleArn !== undefined && input.IamRoleArn !== null && { IamRoleArn: input.IamRoleArn })), (input.ListOfTags !== undefined &&
7420
- input.ListOfTags !== null && { ListOfTags: serializeAws_restJson1ListOfTags(input.ListOfTags, context) })), (input.NotResources !== undefined &&
7421
- input.NotResources !== null && { NotResources: serializeAws_restJson1ResourceArns(input.NotResources, context) })), (input.Resources !== undefined &&
7422
- input.Resources !== null && { Resources: serializeAws_restJson1ResourceArns(input.Resources, context) })), (input.SelectionName !== undefined && input.SelectionName !== null && { SelectionName: input.SelectionName }));
7361
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Conditions != null && { Conditions: serializeAws_restJson1Conditions(input.Conditions, context) })), (input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn })), (input.ListOfTags != null && { ListOfTags: serializeAws_restJson1ListOfTags(input.ListOfTags, context) })), (input.NotResources != null && {
7362
+ NotResources: serializeAws_restJson1ResourceArns(input.NotResources, context),
7363
+ })), (input.Resources != null && { Resources: serializeAws_restJson1ResourceArns(input.Resources, context) })), (input.SelectionName != null && { SelectionName: input.SelectionName }));
7423
7364
  };
7424
7365
  var serializeAws_restJson1BackupVaultEvents = function (input, context) {
7425
7366
  return input
@@ -7442,12 +7383,10 @@ var serializeAws_restJson1ComplianceResourceIdList = function (input, context) {
7442
7383
  });
7443
7384
  };
7444
7385
  var serializeAws_restJson1Condition = function (input, context) {
7445
- return __assign(__assign(__assign({}, (input.ConditionKey !== undefined && input.ConditionKey !== null && { ConditionKey: input.ConditionKey })), (input.ConditionType !== undefined && input.ConditionType !== null && { ConditionType: input.ConditionType })), (input.ConditionValue !== undefined &&
7446
- input.ConditionValue !== null && { ConditionValue: input.ConditionValue }));
7386
+ return __assign(__assign(__assign({}, (input.ConditionKey != null && { ConditionKey: input.ConditionKey })), (input.ConditionType != null && { ConditionType: input.ConditionType })), (input.ConditionValue != null && { ConditionValue: input.ConditionValue }));
7447
7387
  };
7448
7388
  var serializeAws_restJson1ConditionParameter = function (input, context) {
7449
- return __assign(__assign({}, (input.ConditionKey !== undefined && input.ConditionKey !== null && { ConditionKey: input.ConditionKey })), (input.ConditionValue !== undefined &&
7450
- input.ConditionValue !== null && { ConditionValue: input.ConditionValue }));
7389
+ return __assign(__assign({}, (input.ConditionKey != null && { ConditionKey: input.ConditionKey })), (input.ConditionValue != null && { ConditionValue: input.ConditionValue }));
7451
7390
  };
7452
7391
  var serializeAws_restJson1ConditionParameters = function (input, context) {
7453
7392
  return input
@@ -7460,23 +7399,18 @@ var serializeAws_restJson1ConditionParameters = function (input, context) {
7460
7399
  });
7461
7400
  };
7462
7401
  var serializeAws_restJson1Conditions = function (input, context) {
7463
- return __assign(__assign(__assign(__assign({}, (input.StringEquals !== undefined &&
7464
- input.StringEquals !== null && {
7402
+ return __assign(__assign(__assign(__assign({}, (input.StringEquals != null && {
7465
7403
  StringEquals: serializeAws_restJson1ConditionParameters(input.StringEquals, context),
7466
- })), (input.StringLike !== undefined &&
7467
- input.StringLike !== null && {
7404
+ })), (input.StringLike != null && {
7468
7405
  StringLike: serializeAws_restJson1ConditionParameters(input.StringLike, context),
7469
- })), (input.StringNotEquals !== undefined &&
7470
- input.StringNotEquals !== null && {
7406
+ })), (input.StringNotEquals != null && {
7471
7407
  StringNotEquals: serializeAws_restJson1ConditionParameters(input.StringNotEquals, context),
7472
- })), (input.StringNotLike !== undefined &&
7473
- input.StringNotLike !== null && {
7408
+ })), (input.StringNotLike != null && {
7474
7409
  StringNotLike: serializeAws_restJson1ConditionParameters(input.StringNotLike, context),
7475
7410
  }));
7476
7411
  };
7477
7412
  var serializeAws_restJson1ControlInputParameter = function (input, context) {
7478
- return __assign(__assign({}, (input.ParameterName !== undefined && input.ParameterName !== null && { ParameterName: input.ParameterName })), (input.ParameterValue !== undefined &&
7479
- input.ParameterValue !== null && { ParameterValue: input.ParameterValue }));
7413
+ return __assign(__assign({}, (input.ParameterName != null && { ParameterName: input.ParameterName })), (input.ParameterValue != null && { ParameterValue: input.ParameterValue }));
7480
7414
  };
7481
7415
  var serializeAws_restJson1ControlInputParameters = function (input, context) {
7482
7416
  return input
@@ -7489,19 +7423,14 @@ var serializeAws_restJson1ControlInputParameters = function (input, context) {
7489
7423
  });
7490
7424
  };
7491
7425
  var serializeAws_restJson1ControlScope = function (input, context) {
7492
- return __assign(__assign(__assign({}, (input.ComplianceResourceIds !== undefined &&
7493
- input.ComplianceResourceIds !== null && {
7426
+ return __assign(__assign(__assign({}, (input.ComplianceResourceIds != null && {
7494
7427
  ComplianceResourceIds: serializeAws_restJson1ComplianceResourceIdList(input.ComplianceResourceIds, context),
7495
- })), (input.ComplianceResourceTypes !== undefined &&
7496
- input.ComplianceResourceTypes !== null && {
7428
+ })), (input.ComplianceResourceTypes != null && {
7497
7429
  ComplianceResourceTypes: serializeAws_restJson1ResourceTypeList(input.ComplianceResourceTypes, context),
7498
- })), (input.Tags !== undefined &&
7499
- input.Tags !== null && { Tags: serializeAws_restJson1stringMap(input.Tags, context) }));
7430
+ })), (input.Tags != null && { Tags: serializeAws_restJson1stringMap(input.Tags, context) }));
7500
7431
  };
7501
7432
  var serializeAws_restJson1CopyAction = function (input, context) {
7502
- return __assign(__assign({}, (input.DestinationBackupVaultArn !== undefined &&
7503
- input.DestinationBackupVaultArn !== null && { DestinationBackupVaultArn: input.DestinationBackupVaultArn })), (input.Lifecycle !== undefined &&
7504
- input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }));
7433
+ return __assign(__assign({}, (input.DestinationBackupVaultArn != null && { DestinationBackupVaultArn: input.DestinationBackupVaultArn })), (input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }));
7505
7434
  };
7506
7435
  var serializeAws_restJson1CopyActions = function (input, context) {
7507
7436
  return input
@@ -7524,11 +7453,11 @@ var serializeAws_restJson1FormatList = function (input, context) {
7524
7453
  });
7525
7454
  };
7526
7455
  var serializeAws_restJson1FrameworkControl = function (input, context) {
7527
- return __assign(__assign(__assign({}, (input.ControlInputParameters !== undefined &&
7528
- input.ControlInputParameters !== null && {
7456
+ return __assign(__assign(__assign({}, (input.ControlInputParameters != null && {
7529
7457
  ControlInputParameters: serializeAws_restJson1ControlInputParameters(input.ControlInputParameters, context),
7530
- })), (input.ControlName !== undefined && input.ControlName !== null && { ControlName: input.ControlName })), (input.ControlScope !== undefined &&
7531
- input.ControlScope !== null && { ControlScope: serializeAws_restJson1ControlScope(input.ControlScope, context) }));
7458
+ })), (input.ControlName != null && { ControlName: input.ControlName })), (input.ControlScope != null && {
7459
+ ControlScope: serializeAws_restJson1ControlScope(input.ControlScope, context),
7460
+ }));
7532
7461
  };
7533
7462
  var serializeAws_restJson1FrameworkControls = function (input, context) {
7534
7463
  return input
@@ -7551,9 +7480,7 @@ var serializeAws_restJson1GlobalSettings = function (input, context) {
7551
7480
  }, {});
7552
7481
  };
7553
7482
  var serializeAws_restJson1Lifecycle = function (input, context) {
7554
- return __assign(__assign({}, (input.DeleteAfterDays !== undefined &&
7555
- input.DeleteAfterDays !== null && { DeleteAfterDays: input.DeleteAfterDays })), (input.MoveToColdStorageAfterDays !== undefined &&
7556
- input.MoveToColdStorageAfterDays !== null && { MoveToColdStorageAfterDays: input.MoveToColdStorageAfterDays }));
7483
+ return __assign(__assign({}, (input.DeleteAfterDays != null && { DeleteAfterDays: input.DeleteAfterDays })), (input.MoveToColdStorageAfterDays != null && { MoveToColdStorageAfterDays: input.MoveToColdStorageAfterDays }));
7557
7484
  };
7558
7485
  var serializeAws_restJson1ListOfTags = function (input, context) {
7559
7486
  return input
@@ -7576,16 +7503,12 @@ var serializeAws_restJson1Metadata = function (input, context) {
7576
7503
  }, {});
7577
7504
  };
7578
7505
  var serializeAws_restJson1ReportDeliveryChannel = function (input, context) {
7579
- return __assign(__assign(__assign({}, (input.Formats !== undefined &&
7580
- input.Formats !== null && { Formats: serializeAws_restJson1FormatList(input.Formats, context) })), (input.S3BucketName !== undefined && input.S3BucketName !== null && { S3BucketName: input.S3BucketName })), (input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix }));
7506
+ return __assign(__assign(__assign({}, (input.Formats != null && { Formats: serializeAws_restJson1FormatList(input.Formats, context) })), (input.S3BucketName != null && { S3BucketName: input.S3BucketName })), (input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }));
7581
7507
  };
7582
7508
  var serializeAws_restJson1ReportSetting = function (input, context) {
7583
- return __assign(__assign(__assign({}, (input.FrameworkArns !== undefined &&
7584
- input.FrameworkArns !== null && {
7509
+ return __assign(__assign(__assign({}, (input.FrameworkArns != null && {
7585
7510
  FrameworkArns: serializeAws_restJson1stringList(input.FrameworkArns, context),
7586
- })), (input.NumberOfFrameworks !== undefined &&
7587
- input.NumberOfFrameworks !== null && { NumberOfFrameworks: input.NumberOfFrameworks })), (input.ReportTemplate !== undefined &&
7588
- input.ReportTemplate !== null && { ReportTemplate: input.ReportTemplate }));
7511
+ })), (input.NumberOfFrameworks != null && { NumberOfFrameworks: input.NumberOfFrameworks })), (input.ReportTemplate != null && { ReportTemplate: input.ReportTemplate }));
7589
7512
  };
7590
7513
  var serializeAws_restJson1ResourceArns = function (input, context) {
7591
7514
  return input
@@ -7669,9 +7592,7 @@ var serializeAws_restJson1Tags = function (input, context) {
7669
7592
  };
7670
7593
  var deserializeAws_restJson1AdvancedBackupSetting = function (output, context) {
7671
7594
  return {
7672
- BackupOptions: output.BackupOptions !== undefined && output.BackupOptions !== null
7673
- ? deserializeAws_restJson1BackupOptions(output.BackupOptions, context)
7674
- : undefined,
7595
+ BackupOptions: output.BackupOptions != null ? deserializeAws_restJson1BackupOptions(output.BackupOptions, context) : undefined,
7675
7596
  ResourceType: __expectString(output.ResourceType),
7676
7597
  };
7677
7598
  };
@@ -7690,24 +7611,20 @@ var deserializeAws_restJson1BackupJob = function (output, context) {
7690
7611
  return {
7691
7612
  AccountId: __expectString(output.AccountId),
7692
7613
  BackupJobId: __expectString(output.BackupJobId),
7693
- BackupOptions: output.BackupOptions !== undefined && output.BackupOptions !== null
7694
- ? deserializeAws_restJson1BackupOptions(output.BackupOptions, context)
7695
- : undefined,
7614
+ BackupOptions: output.BackupOptions != null ? deserializeAws_restJson1BackupOptions(output.BackupOptions, context) : undefined,
7696
7615
  BackupSizeInBytes: __expectLong(output.BackupSizeInBytes),
7697
7616
  BackupType: __expectString(output.BackupType),
7698
7617
  BackupVaultArn: __expectString(output.BackupVaultArn),
7699
7618
  BackupVaultName: __expectString(output.BackupVaultName),
7700
7619
  BytesTransferred: __expectLong(output.BytesTransferred),
7701
- CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null
7620
+ CompletionDate: output.CompletionDate != null
7702
7621
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionDate)))
7703
7622
  : undefined,
7704
- CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
7705
- ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context)
7706
- : undefined,
7707
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
7623
+ CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context) : undefined,
7624
+ CreationDate: output.CreationDate != null
7708
7625
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
7709
7626
  : undefined,
7710
- ExpectedCompletionDate: output.ExpectedCompletionDate !== undefined && output.ExpectedCompletionDate !== null
7627
+ ExpectedCompletionDate: output.ExpectedCompletionDate != null
7711
7628
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpectedCompletionDate)))
7712
7629
  : undefined,
7713
7630
  IamRoleArn: __expectString(output.IamRoleArn),
@@ -7715,9 +7632,7 @@ var deserializeAws_restJson1BackupJob = function (output, context) {
7715
7632
  RecoveryPointArn: __expectString(output.RecoveryPointArn),
7716
7633
  ResourceArn: __expectString(output.ResourceArn),
7717
7634
  ResourceType: __expectString(output.ResourceType),
7718
- StartBy: output.StartBy !== undefined && output.StartBy !== null
7719
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartBy)))
7720
- : undefined,
7635
+ StartBy: output.StartBy != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartBy))) : undefined,
7721
7636
  State: __expectString(output.State),
7722
7637
  StatusMessage: __expectString(output.StatusMessage),
7723
7638
  };
@@ -7745,13 +7660,11 @@ var deserializeAws_restJson1BackupOptions = function (output, context) {
7745
7660
  };
7746
7661
  var deserializeAws_restJson1BackupPlan = function (output, context) {
7747
7662
  return {
7748
- AdvancedBackupSettings: output.AdvancedBackupSettings !== undefined && output.AdvancedBackupSettings !== null
7663
+ AdvancedBackupSettings: output.AdvancedBackupSettings != null
7749
7664
  ? deserializeAws_restJson1AdvancedBackupSettings(output.AdvancedBackupSettings, context)
7750
7665
  : undefined,
7751
7666
  BackupPlanName: __expectString(output.BackupPlanName),
7752
- Rules: output.Rules !== undefined && output.Rules !== null
7753
- ? deserializeAws_restJson1BackupRules(output.Rules, context)
7754
- : undefined,
7667
+ Rules: output.Rules != null ? deserializeAws_restJson1BackupRules(output.Rules, context) : undefined,
7755
7668
  };
7756
7669
  };
7757
7670
  var deserializeAws_restJson1BackupPlansList = function (output, context) {
@@ -7767,20 +7680,20 @@ var deserializeAws_restJson1BackupPlansList = function (output, context) {
7767
7680
  };
7768
7681
  var deserializeAws_restJson1BackupPlansListMember = function (output, context) {
7769
7682
  return {
7770
- AdvancedBackupSettings: output.AdvancedBackupSettings !== undefined && output.AdvancedBackupSettings !== null
7683
+ AdvancedBackupSettings: output.AdvancedBackupSettings != null
7771
7684
  ? deserializeAws_restJson1AdvancedBackupSettings(output.AdvancedBackupSettings, context)
7772
7685
  : undefined,
7773
7686
  BackupPlanArn: __expectString(output.BackupPlanArn),
7774
7687
  BackupPlanId: __expectString(output.BackupPlanId),
7775
7688
  BackupPlanName: __expectString(output.BackupPlanName),
7776
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
7689
+ CreationDate: output.CreationDate != null
7777
7690
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
7778
7691
  : undefined,
7779
7692
  CreatorRequestId: __expectString(output.CreatorRequestId),
7780
- DeletionDate: output.DeletionDate !== undefined && output.DeletionDate !== null
7693
+ DeletionDate: output.DeletionDate != null
7781
7694
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletionDate)))
7782
7695
  : undefined,
7783
- LastExecutionDate: output.LastExecutionDate !== undefined && output.LastExecutionDate !== null
7696
+ LastExecutionDate: output.LastExecutionDate != null
7784
7697
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastExecutionDate)))
7785
7698
  : undefined,
7786
7699
  VersionId: __expectString(output.VersionId),
@@ -7817,16 +7730,10 @@ var deserializeAws_restJson1BackupPlanVersionsList = function (output, context)
7817
7730
  var deserializeAws_restJson1BackupRule = function (output, context) {
7818
7731
  return {
7819
7732
  CompletionWindowMinutes: __expectLong(output.CompletionWindowMinutes),
7820
- CopyActions: output.CopyActions !== undefined && output.CopyActions !== null
7821
- ? deserializeAws_restJson1CopyActions(output.CopyActions, context)
7822
- : undefined,
7733
+ CopyActions: output.CopyActions != null ? deserializeAws_restJson1CopyActions(output.CopyActions, context) : undefined,
7823
7734
  EnableContinuousBackup: __expectBoolean(output.EnableContinuousBackup),
7824
- Lifecycle: output.Lifecycle !== undefined && output.Lifecycle !== null
7825
- ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context)
7826
- : undefined,
7827
- RecoveryPointTags: output.RecoveryPointTags !== undefined && output.RecoveryPointTags !== null
7828
- ? deserializeAws_restJson1Tags(output.RecoveryPointTags, context)
7829
- : undefined,
7735
+ Lifecycle: output.Lifecycle != null ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context) : undefined,
7736
+ RecoveryPointTags: output.RecoveryPointTags != null ? deserializeAws_restJson1Tags(output.RecoveryPointTags, context) : undefined,
7830
7737
  RuleId: __expectString(output.RuleId),
7831
7738
  RuleName: __expectString(output.RuleName),
7832
7739
  ScheduleExpression: __expectString(output.ScheduleExpression),
@@ -7847,19 +7754,11 @@ var deserializeAws_restJson1BackupRules = function (output, context) {
7847
7754
  };
7848
7755
  var deserializeAws_restJson1BackupSelection = function (output, context) {
7849
7756
  return {
7850
- Conditions: output.Conditions !== undefined && output.Conditions !== null
7851
- ? deserializeAws_restJson1Conditions(output.Conditions, context)
7852
- : undefined,
7757
+ Conditions: output.Conditions != null ? deserializeAws_restJson1Conditions(output.Conditions, context) : undefined,
7853
7758
  IamRoleArn: __expectString(output.IamRoleArn),
7854
- ListOfTags: output.ListOfTags !== undefined && output.ListOfTags !== null
7855
- ? deserializeAws_restJson1ListOfTags(output.ListOfTags, context)
7856
- : undefined,
7857
- NotResources: output.NotResources !== undefined && output.NotResources !== null
7858
- ? deserializeAws_restJson1ResourceArns(output.NotResources, context)
7859
- : undefined,
7860
- Resources: output.Resources !== undefined && output.Resources !== null
7861
- ? deserializeAws_restJson1ResourceArns(output.Resources, context)
7862
- : undefined,
7759
+ ListOfTags: output.ListOfTags != null ? deserializeAws_restJson1ListOfTags(output.ListOfTags, context) : undefined,
7760
+ NotResources: output.NotResources != null ? deserializeAws_restJson1ResourceArns(output.NotResources, context) : undefined,
7761
+ Resources: output.Resources != null ? deserializeAws_restJson1ResourceArns(output.Resources, context) : undefined,
7863
7762
  SelectionName: __expectString(output.SelectionName),
7864
7763
  };
7865
7764
  };
@@ -7877,7 +7776,7 @@ var deserializeAws_restJson1BackupSelectionsList = function (output, context) {
7877
7776
  var deserializeAws_restJson1BackupSelectionsListMember = function (output, context) {
7878
7777
  return {
7879
7778
  BackupPlanId: __expectString(output.BackupPlanId),
7880
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
7779
+ CreationDate: output.CreationDate != null
7881
7780
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
7882
7781
  : undefined,
7883
7782
  CreatorRequestId: __expectString(output.CreatorRequestId),
@@ -7912,14 +7811,12 @@ var deserializeAws_restJson1BackupVaultListMember = function (output, context) {
7912
7811
  return {
7913
7812
  BackupVaultArn: __expectString(output.BackupVaultArn),
7914
7813
  BackupVaultName: __expectString(output.BackupVaultName),
7915
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
7814
+ CreationDate: output.CreationDate != null
7916
7815
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
7917
7816
  : undefined,
7918
7817
  CreatorRequestId: __expectString(output.CreatorRequestId),
7919
7818
  EncryptionKeyArn: __expectString(output.EncryptionKeyArn),
7920
- LockDate: output.LockDate !== undefined && output.LockDate !== null
7921
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LockDate)))
7922
- : undefined,
7819
+ LockDate: output.LockDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LockDate))) : undefined,
7923
7820
  Locked: __expectBoolean(output.Locked),
7924
7821
  MaxRetentionDays: __expectLong(output.MaxRetentionDays),
7925
7822
  MinRetentionDays: __expectLong(output.MinRetentionDays),
@@ -7928,10 +7825,8 @@ var deserializeAws_restJson1BackupVaultListMember = function (output, context) {
7928
7825
  };
7929
7826
  var deserializeAws_restJson1CalculatedLifecycle = function (output, context) {
7930
7827
  return {
7931
- DeleteAt: output.DeleteAt !== undefined && output.DeleteAt !== null
7932
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeleteAt)))
7933
- : undefined,
7934
- MoveToColdStorageAt: output.MoveToColdStorageAt !== undefined && output.MoveToColdStorageAt !== null
7828
+ DeleteAt: output.DeleteAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeleteAt))) : undefined,
7829
+ MoveToColdStorageAt: output.MoveToColdStorageAt != null
7935
7830
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.MoveToColdStorageAt)))
7936
7831
  : undefined,
7937
7832
  };
@@ -7973,16 +7868,14 @@ var deserializeAws_restJson1ConditionParameters = function (output, context) {
7973
7868
  };
7974
7869
  var deserializeAws_restJson1Conditions = function (output, context) {
7975
7870
  return {
7976
- StringEquals: output.StringEquals !== undefined && output.StringEquals !== null
7871
+ StringEquals: output.StringEquals != null
7977
7872
  ? deserializeAws_restJson1ConditionParameters(output.StringEquals, context)
7978
7873
  : undefined,
7979
- StringLike: output.StringLike !== undefined && output.StringLike !== null
7980
- ? deserializeAws_restJson1ConditionParameters(output.StringLike, context)
7981
- : undefined,
7982
- StringNotEquals: output.StringNotEquals !== undefined && output.StringNotEquals !== null
7874
+ StringLike: output.StringLike != null ? deserializeAws_restJson1ConditionParameters(output.StringLike, context) : undefined,
7875
+ StringNotEquals: output.StringNotEquals != null
7983
7876
  ? deserializeAws_restJson1ConditionParameters(output.StringNotEquals, context)
7984
7877
  : undefined,
7985
- StringNotLike: output.StringNotLike !== undefined && output.StringNotLike !== null
7878
+ StringNotLike: output.StringNotLike != null
7986
7879
  ? deserializeAws_restJson1ConditionParameters(output.StringNotLike, context)
7987
7880
  : undefined,
7988
7881
  };
@@ -8006,23 +7899,19 @@ var deserializeAws_restJson1ControlInputParameters = function (output, context)
8006
7899
  };
8007
7900
  var deserializeAws_restJson1ControlScope = function (output, context) {
8008
7901
  return {
8009
- ComplianceResourceIds: output.ComplianceResourceIds !== undefined && output.ComplianceResourceIds !== null
7902
+ ComplianceResourceIds: output.ComplianceResourceIds != null
8010
7903
  ? deserializeAws_restJson1ComplianceResourceIdList(output.ComplianceResourceIds, context)
8011
7904
  : undefined,
8012
- ComplianceResourceTypes: output.ComplianceResourceTypes !== undefined && output.ComplianceResourceTypes !== null
7905
+ ComplianceResourceTypes: output.ComplianceResourceTypes != null
8013
7906
  ? deserializeAws_restJson1ResourceTypeList(output.ComplianceResourceTypes, context)
8014
7907
  : undefined,
8015
- Tags: output.Tags !== undefined && output.Tags !== null
8016
- ? deserializeAws_restJson1stringMap(output.Tags, context)
8017
- : undefined,
7908
+ Tags: output.Tags != null ? deserializeAws_restJson1stringMap(output.Tags, context) : undefined,
8018
7909
  };
8019
7910
  };
8020
7911
  var deserializeAws_restJson1CopyAction = function (output, context) {
8021
7912
  return {
8022
7913
  DestinationBackupVaultArn: __expectString(output.DestinationBackupVaultArn),
8023
- Lifecycle: output.Lifecycle !== undefined && output.Lifecycle !== null
8024
- ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context)
8025
- : undefined,
7914
+ Lifecycle: output.Lifecycle != null ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context) : undefined,
8026
7915
  };
8027
7916
  };
8028
7917
  var deserializeAws_restJson1CopyActions = function (output, context) {
@@ -8040,14 +7929,12 @@ var deserializeAws_restJson1CopyJob = function (output, context) {
8040
7929
  return {
8041
7930
  AccountId: __expectString(output.AccountId),
8042
7931
  BackupSizeInBytes: __expectLong(output.BackupSizeInBytes),
8043
- CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null
7932
+ CompletionDate: output.CompletionDate != null
8044
7933
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionDate)))
8045
7934
  : undefined,
8046
7935
  CopyJobId: __expectString(output.CopyJobId),
8047
- CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
8048
- ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context)
8049
- : undefined,
8050
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
7936
+ CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context) : undefined,
7937
+ CreationDate: output.CreationDate != null
8051
7938
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
8052
7939
  : undefined,
8053
7940
  DestinationBackupVaultArn: __expectString(output.DestinationBackupVaultArn),
@@ -8085,7 +7972,7 @@ var deserializeAws_restJson1FormatList = function (output, context) {
8085
7972
  };
8086
7973
  var deserializeAws_restJson1Framework = function (output, context) {
8087
7974
  return {
8088
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
7975
+ CreationTime: output.CreationTime != null
8089
7976
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
8090
7977
  : undefined,
8091
7978
  DeploymentStatus: __expectString(output.DeploymentStatus),
@@ -8097,13 +7984,11 @@ var deserializeAws_restJson1Framework = function (output, context) {
8097
7984
  };
8098
7985
  var deserializeAws_restJson1FrameworkControl = function (output, context) {
8099
7986
  return {
8100
- ControlInputParameters: output.ControlInputParameters !== undefined && output.ControlInputParameters !== null
7987
+ ControlInputParameters: output.ControlInputParameters != null
8101
7988
  ? deserializeAws_restJson1ControlInputParameters(output.ControlInputParameters, context)
8102
7989
  : undefined,
8103
7990
  ControlName: __expectString(output.ControlName),
8104
- ControlScope: output.ControlScope !== undefined && output.ControlScope !== null
8105
- ? deserializeAws_restJson1ControlScope(output.ControlScope, context)
8106
- : undefined,
7991
+ ControlScope: output.ControlScope != null ? deserializeAws_restJson1ControlScope(output.ControlScope, context) : undefined,
8107
7992
  };
8108
7993
  };
8109
7994
  var deserializeAws_restJson1FrameworkControls = function (output, context) {
@@ -8167,7 +8052,7 @@ var deserializeAws_restJson1Metadata = function (output, context) {
8167
8052
  };
8168
8053
  var deserializeAws_restJson1ProtectedResource = function (output, context) {
8169
8054
  return {
8170
- LastBackupTime: output.LastBackupTime !== undefined && output.LastBackupTime !== null
8055
+ LastBackupTime: output.LastBackupTime != null
8171
8056
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastBackupTime)))
8172
8057
  : undefined,
8173
8058
  ResourceArn: __expectString(output.ResourceArn),
@@ -8190,27 +8075,23 @@ var deserializeAws_restJson1RecoveryPointByBackupVault = function (output, conte
8190
8075
  BackupSizeInBytes: __expectLong(output.BackupSizeInBytes),
8191
8076
  BackupVaultArn: __expectString(output.BackupVaultArn),
8192
8077
  BackupVaultName: __expectString(output.BackupVaultName),
8193
- CalculatedLifecycle: output.CalculatedLifecycle !== undefined && output.CalculatedLifecycle !== null
8078
+ CalculatedLifecycle: output.CalculatedLifecycle != null
8194
8079
  ? deserializeAws_restJson1CalculatedLifecycle(output.CalculatedLifecycle, context)
8195
8080
  : undefined,
8196
- CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null
8081
+ CompletionDate: output.CompletionDate != null
8197
8082
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionDate)))
8198
8083
  : undefined,
8199
- CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
8200
- ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context)
8201
- : undefined,
8202
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
8084
+ CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context) : undefined,
8085
+ CreationDate: output.CreationDate != null
8203
8086
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
8204
8087
  : undefined,
8205
8088
  EncryptionKeyArn: __expectString(output.EncryptionKeyArn),
8206
8089
  IamRoleArn: __expectString(output.IamRoleArn),
8207
8090
  IsEncrypted: __expectBoolean(output.IsEncrypted),
8208
- LastRestoreTime: output.LastRestoreTime !== undefined && output.LastRestoreTime !== null
8091
+ LastRestoreTime: output.LastRestoreTime != null
8209
8092
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastRestoreTime)))
8210
8093
  : undefined,
8211
- Lifecycle: output.Lifecycle !== undefined && output.Lifecycle !== null
8212
- ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context)
8213
- : undefined,
8094
+ Lifecycle: output.Lifecycle != null ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context) : undefined,
8214
8095
  RecoveryPointArn: __expectString(output.RecoveryPointArn),
8215
8096
  ResourceArn: __expectString(output.ResourceArn),
8216
8097
  ResourceType: __expectString(output.ResourceType),
@@ -8234,7 +8115,7 @@ var deserializeAws_restJson1RecoveryPointByResource = function (output, context)
8234
8115
  return {
8235
8116
  BackupSizeBytes: __expectLong(output.BackupSizeBytes),
8236
8117
  BackupVaultName: __expectString(output.BackupVaultName),
8237
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
8118
+ CreationDate: output.CreationDate != null
8238
8119
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
8239
8120
  : undefined,
8240
8121
  EncryptionKeyArn: __expectString(output.EncryptionKeyArn),
@@ -8264,9 +8145,7 @@ var deserializeAws_restJson1RecoveryPointCreator = function (output, context) {
8264
8145
  };
8265
8146
  var deserializeAws_restJson1ReportDeliveryChannel = function (output, context) {
8266
8147
  return {
8267
- Formats: output.Formats !== undefined && output.Formats !== null
8268
- ? deserializeAws_restJson1FormatList(output.Formats, context)
8269
- : undefined,
8148
+ Formats: output.Formats != null ? deserializeAws_restJson1FormatList(output.Formats, context) : undefined,
8270
8149
  S3BucketName: __expectString(output.S3BucketName),
8271
8150
  S3KeyPrefix: __expectString(output.S3KeyPrefix),
8272
8151
  };
@@ -8274,20 +8153,18 @@ var deserializeAws_restJson1ReportDeliveryChannel = function (output, context) {
8274
8153
  var deserializeAws_restJson1ReportDestination = function (output, context) {
8275
8154
  return {
8276
8155
  S3BucketName: __expectString(output.S3BucketName),
8277
- S3Keys: output.S3Keys !== undefined && output.S3Keys !== null
8278
- ? deserializeAws_restJson1stringList(output.S3Keys, context)
8279
- : undefined,
8156
+ S3Keys: output.S3Keys != null ? deserializeAws_restJson1stringList(output.S3Keys, context) : undefined,
8280
8157
  };
8281
8158
  };
8282
8159
  var deserializeAws_restJson1ReportJob = function (output, context) {
8283
8160
  return {
8284
- CompletionTime: output.CompletionTime !== undefined && output.CompletionTime !== null
8161
+ CompletionTime: output.CompletionTime != null
8285
8162
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
8286
8163
  : undefined,
8287
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
8164
+ CreationTime: output.CreationTime != null
8288
8165
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
8289
8166
  : undefined,
8290
- ReportDestination: output.ReportDestination !== undefined && output.ReportDestination !== null
8167
+ ReportDestination: output.ReportDestination != null
8291
8168
  ? deserializeAws_restJson1ReportDestination(output.ReportDestination, context)
8292
8169
  : undefined,
8293
8170
  ReportJobId: __expectString(output.ReportJobId),
@@ -8310,25 +8187,23 @@ var deserializeAws_restJson1ReportJobList = function (output, context) {
8310
8187
  };
8311
8188
  var deserializeAws_restJson1ReportPlan = function (output, context) {
8312
8189
  return {
8313
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
8190
+ CreationTime: output.CreationTime != null
8314
8191
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
8315
8192
  : undefined,
8316
8193
  DeploymentStatus: __expectString(output.DeploymentStatus),
8317
- LastAttemptedExecutionTime: output.LastAttemptedExecutionTime !== undefined && output.LastAttemptedExecutionTime !== null
8194
+ LastAttemptedExecutionTime: output.LastAttemptedExecutionTime != null
8318
8195
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAttemptedExecutionTime)))
8319
8196
  : undefined,
8320
- LastSuccessfulExecutionTime: output.LastSuccessfulExecutionTime !== undefined && output.LastSuccessfulExecutionTime !== null
8197
+ LastSuccessfulExecutionTime: output.LastSuccessfulExecutionTime != null
8321
8198
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSuccessfulExecutionTime)))
8322
8199
  : undefined,
8323
- ReportDeliveryChannel: output.ReportDeliveryChannel !== undefined && output.ReportDeliveryChannel !== null
8200
+ ReportDeliveryChannel: output.ReportDeliveryChannel != null
8324
8201
  ? deserializeAws_restJson1ReportDeliveryChannel(output.ReportDeliveryChannel, context)
8325
8202
  : undefined,
8326
8203
  ReportPlanArn: __expectString(output.ReportPlanArn),
8327
8204
  ReportPlanDescription: __expectString(output.ReportPlanDescription),
8328
8205
  ReportPlanName: __expectString(output.ReportPlanName),
8329
- ReportSetting: output.ReportSetting !== undefined && output.ReportSetting !== null
8330
- ? deserializeAws_restJson1ReportSetting(output.ReportSetting, context)
8331
- : undefined,
8206
+ ReportSetting: output.ReportSetting != null ? deserializeAws_restJson1ReportSetting(output.ReportSetting, context) : undefined,
8332
8207
  };
8333
8208
  };
8334
8209
  var deserializeAws_restJson1ReportPlanList = function (output, context) {
@@ -8344,9 +8219,7 @@ var deserializeAws_restJson1ReportPlanList = function (output, context) {
8344
8219
  };
8345
8220
  var deserializeAws_restJson1ReportSetting = function (output, context) {
8346
8221
  return {
8347
- FrameworkArns: output.FrameworkArns !== undefined && output.FrameworkArns !== null
8348
- ? deserializeAws_restJson1stringList(output.FrameworkArns, context)
8349
- : undefined,
8222
+ FrameworkArns: output.FrameworkArns != null ? deserializeAws_restJson1stringList(output.FrameworkArns, context) : undefined,
8350
8223
  NumberOfFrameworks: __expectInt32(output.NumberOfFrameworks),
8351
8224
  ReportTemplate: __expectString(output.ReportTemplate),
8352
8225
  };
@@ -8419,11 +8292,11 @@ var deserializeAws_restJson1RestoreJobsListMember = function (output, context) {
8419
8292
  return {
8420
8293
  AccountId: __expectString(output.AccountId),
8421
8294
  BackupSizeInBytes: __expectLong(output.BackupSizeInBytes),
8422
- CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null
8295
+ CompletionDate: output.CompletionDate != null
8423
8296
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionDate)))
8424
8297
  : undefined,
8425
8298
  CreatedResourceArn: __expectString(output.CreatedResourceArn),
8426
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
8299
+ CreationDate: output.CreationDate != null
8427
8300
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
8428
8301
  : undefined,
8429
8302
  ExpectedCompletionTimeMinutes: __expectLong(output.ExpectedCompletionTimeMinutes),
@@ -8505,6 +8378,9 @@ var loadRestJsonErrorCode = function (output, data) {
8505
8378
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
8506
8379
  var sanitizeErrorCode = function (rawValue) {
8507
8380
  var cleanValue = rawValue;
8381
+ if (typeof cleanValue === "number") {
8382
+ cleanValue = cleanValue.toString();
8383
+ }
8508
8384
  if (cleanValue.indexOf(":") >= 0) {
8509
8385
  cleanValue = cleanValue.split(":")[0];
8510
8386
  }