@aws-sdk/client-backup 3.118.1 → 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.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/protocols/Aws_restJson1.js +499 -561
- package/dist-es/protocols/Aws_restJson1.js +451 -513
- package/dist-types/Backup.d.ts +3 -4
- package/dist-types/commands/UpdateRecoveryPointLifecycleCommand.d.ts +3 -4
- package/dist-types/models/models_0.d.ts +42 -43
- package/dist-types/ts3.4/models/models_0.d.ts +1 -1
- package/package.json +26 -26
|
@@ -16,12 +16,9 @@ const serializeAws_restJson1CreateBackupPlanCommand = async (input, context) =>
|
|
|
16
16
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/backup/plans";
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
|
-
...(input.BackupPlan
|
|
20
|
-
|
|
21
|
-
...(input.
|
|
22
|
-
input.BackupPlanTags !== null && { BackupPlanTags: serializeAws_restJson1Tags(input.BackupPlanTags, context) }),
|
|
23
|
-
...(input.CreatorRequestId !== undefined &&
|
|
24
|
-
input.CreatorRequestId !== null && { CreatorRequestId: input.CreatorRequestId }),
|
|
19
|
+
...(input.BackupPlan != null && { BackupPlan: serializeAws_restJson1BackupPlanInput(input.BackupPlan, context) }),
|
|
20
|
+
...(input.BackupPlanTags != null && { BackupPlanTags: serializeAws_restJson1Tags(input.BackupPlanTags, context) }),
|
|
21
|
+
...(input.CreatorRequestId != null && { CreatorRequestId: input.CreatorRequestId }),
|
|
25
22
|
});
|
|
26
23
|
return new protocol_http_1.HttpRequest({
|
|
27
24
|
protocol,
|
|
@@ -52,12 +49,10 @@ const serializeAws_restJson1CreateBackupSelectionCommand = async (input, context
|
|
|
52
49
|
}
|
|
53
50
|
let body;
|
|
54
51
|
body = JSON.stringify({
|
|
55
|
-
...(input.BackupSelection
|
|
56
|
-
input.BackupSelection !== null && {
|
|
52
|
+
...(input.BackupSelection != null && {
|
|
57
53
|
BackupSelection: serializeAws_restJson1BackupSelection(input.BackupSelection, context),
|
|
58
54
|
}),
|
|
59
|
-
...(input.CreatorRequestId
|
|
60
|
-
input.CreatorRequestId !== null && { CreatorRequestId: input.CreatorRequestId }),
|
|
55
|
+
...(input.CreatorRequestId != null && { CreatorRequestId: input.CreatorRequestId }),
|
|
61
56
|
});
|
|
62
57
|
return new protocol_http_1.HttpRequest({
|
|
63
58
|
protocol,
|
|
@@ -88,14 +83,11 @@ const serializeAws_restJson1CreateBackupVaultCommand = async (input, context) =>
|
|
|
88
83
|
}
|
|
89
84
|
let body;
|
|
90
85
|
body = JSON.stringify({
|
|
91
|
-
...(input.BackupVaultTags
|
|
92
|
-
input.BackupVaultTags !== null && {
|
|
86
|
+
...(input.BackupVaultTags != null && {
|
|
93
87
|
BackupVaultTags: serializeAws_restJson1Tags(input.BackupVaultTags, context),
|
|
94
88
|
}),
|
|
95
|
-
...(input.CreatorRequestId
|
|
96
|
-
|
|
97
|
-
...(input.EncryptionKeyArn !== undefined &&
|
|
98
|
-
input.EncryptionKeyArn !== null && { EncryptionKeyArn: input.EncryptionKeyArn }),
|
|
89
|
+
...(input.CreatorRequestId != null && { CreatorRequestId: input.CreatorRequestId }),
|
|
90
|
+
...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
|
|
99
91
|
});
|
|
100
92
|
return new protocol_http_1.HttpRequest({
|
|
101
93
|
protocol,
|
|
@@ -117,15 +109,14 @@ const serializeAws_restJson1CreateFrameworkCommand = async (input, context) => {
|
|
|
117
109
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/frameworks";
|
|
118
110
|
let body;
|
|
119
111
|
body = JSON.stringify({
|
|
120
|
-
...(input.FrameworkControls
|
|
121
|
-
input.FrameworkControls !== null && {
|
|
112
|
+
...(input.FrameworkControls != null && {
|
|
122
113
|
FrameworkControls: serializeAws_restJson1FrameworkControls(input.FrameworkControls, context),
|
|
123
114
|
}),
|
|
124
|
-
...(input.FrameworkDescription
|
|
125
|
-
|
|
126
|
-
...(input.
|
|
127
|
-
|
|
128
|
-
|
|
115
|
+
...(input.FrameworkDescription != null && { FrameworkDescription: input.FrameworkDescription }),
|
|
116
|
+
...(input.FrameworkName != null && { FrameworkName: input.FrameworkName }),
|
|
117
|
+
...(input.FrameworkTags != null && {
|
|
118
|
+
FrameworkTags: serializeAws_restJson1stringMap(input.FrameworkTags, context),
|
|
119
|
+
}),
|
|
129
120
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
130
121
|
});
|
|
131
122
|
return new protocol_http_1.HttpRequest({
|
|
@@ -149,20 +140,15 @@ const serializeAws_restJson1CreateReportPlanCommand = async (input, context) =>
|
|
|
149
140
|
let body;
|
|
150
141
|
body = JSON.stringify({
|
|
151
142
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
152
|
-
...(input.ReportDeliveryChannel
|
|
153
|
-
input.ReportDeliveryChannel !== null && {
|
|
143
|
+
...(input.ReportDeliveryChannel != null && {
|
|
154
144
|
ReportDeliveryChannel: serializeAws_restJson1ReportDeliveryChannel(input.ReportDeliveryChannel, context),
|
|
155
145
|
}),
|
|
156
|
-
...(input.ReportPlanDescription
|
|
157
|
-
|
|
158
|
-
...(input.
|
|
159
|
-
input.ReportPlanName !== null && { ReportPlanName: input.ReportPlanName }),
|
|
160
|
-
...(input.ReportPlanTags !== undefined &&
|
|
161
|
-
input.ReportPlanTags !== null && {
|
|
146
|
+
...(input.ReportPlanDescription != null && { ReportPlanDescription: input.ReportPlanDescription }),
|
|
147
|
+
...(input.ReportPlanName != null && { ReportPlanName: input.ReportPlanName }),
|
|
148
|
+
...(input.ReportPlanTags != null && {
|
|
162
149
|
ReportPlanTags: serializeAws_restJson1stringMap(input.ReportPlanTags, context),
|
|
163
150
|
}),
|
|
164
|
-
...(input.ReportSetting
|
|
165
|
-
input.ReportSetting !== null && {
|
|
151
|
+
...(input.ReportSetting != null && {
|
|
166
152
|
ReportSetting: serializeAws_restJson1ReportSetting(input.ReportSetting, context),
|
|
167
153
|
}),
|
|
168
154
|
});
|
|
@@ -820,8 +806,7 @@ const serializeAws_restJson1GetBackupPlanFromJSONCommand = async (input, context
|
|
|
820
806
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/backup/template/json/toPlan";
|
|
821
807
|
let body;
|
|
822
808
|
body = JSON.stringify({
|
|
823
|
-
...(input.BackupPlanTemplateJson
|
|
824
|
-
input.BackupPlanTemplateJson !== null && { BackupPlanTemplateJson: input.BackupPlanTemplateJson }),
|
|
809
|
+
...(input.BackupPlanTemplateJson != null && { BackupPlanTemplateJson: input.BackupPlanTemplateJson }),
|
|
825
810
|
});
|
|
826
811
|
return new protocol_http_1.HttpRequest({
|
|
827
812
|
protocol,
|
|
@@ -1459,7 +1444,7 @@ const serializeAws_restJson1PutBackupVaultAccessPolicyCommand = async (input, co
|
|
|
1459
1444
|
}
|
|
1460
1445
|
let body;
|
|
1461
1446
|
body = JSON.stringify({
|
|
1462
|
-
...(input.Policy
|
|
1447
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
1463
1448
|
});
|
|
1464
1449
|
return new protocol_http_1.HttpRequest({
|
|
1465
1450
|
protocol,
|
|
@@ -1491,12 +1476,9 @@ const serializeAws_restJson1PutBackupVaultLockConfigurationCommand = async (inpu
|
|
|
1491
1476
|
}
|
|
1492
1477
|
let body;
|
|
1493
1478
|
body = JSON.stringify({
|
|
1494
|
-
...(input.ChangeableForDays
|
|
1495
|
-
|
|
1496
|
-
...(input.
|
|
1497
|
-
input.MaxRetentionDays !== null && { MaxRetentionDays: input.MaxRetentionDays }),
|
|
1498
|
-
...(input.MinRetentionDays !== undefined &&
|
|
1499
|
-
input.MinRetentionDays !== null && { MinRetentionDays: input.MinRetentionDays }),
|
|
1479
|
+
...(input.ChangeableForDays != null && { ChangeableForDays: input.ChangeableForDays }),
|
|
1480
|
+
...(input.MaxRetentionDays != null && { MaxRetentionDays: input.MaxRetentionDays }),
|
|
1481
|
+
...(input.MinRetentionDays != null && { MinRetentionDays: input.MinRetentionDays }),
|
|
1500
1482
|
});
|
|
1501
1483
|
return new protocol_http_1.HttpRequest({
|
|
1502
1484
|
protocol,
|
|
@@ -1528,11 +1510,10 @@ const serializeAws_restJson1PutBackupVaultNotificationsCommand = async (input, c
|
|
|
1528
1510
|
}
|
|
1529
1511
|
let body;
|
|
1530
1512
|
body = JSON.stringify({
|
|
1531
|
-
...(input.BackupVaultEvents
|
|
1532
|
-
input.BackupVaultEvents !== null && {
|
|
1513
|
+
...(input.BackupVaultEvents != null && {
|
|
1533
1514
|
BackupVaultEvents: serializeAws_restJson1BackupVaultEvents(input.BackupVaultEvents, context),
|
|
1534
1515
|
}),
|
|
1535
|
-
...(input.SNSTopicArn
|
|
1516
|
+
...(input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }),
|
|
1536
1517
|
});
|
|
1537
1518
|
return new protocol_http_1.HttpRequest({
|
|
1538
1519
|
protocol,
|
|
@@ -1553,26 +1534,19 @@ const serializeAws_restJson1StartBackupJobCommand = async (input, context) => {
|
|
|
1553
1534
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/backup-jobs";
|
|
1554
1535
|
let body;
|
|
1555
1536
|
body = JSON.stringify({
|
|
1556
|
-
...(input.BackupOptions
|
|
1557
|
-
input.BackupOptions !== null && {
|
|
1537
|
+
...(input.BackupOptions != null && {
|
|
1558
1538
|
BackupOptions: serializeAws_restJson1BackupOptions(input.BackupOptions, context),
|
|
1559
1539
|
}),
|
|
1560
|
-
...(input.BackupVaultName
|
|
1561
|
-
|
|
1562
|
-
...(input.
|
|
1563
|
-
|
|
1564
|
-
...(input.
|
|
1565
|
-
...(input.
|
|
1566
|
-
input.IdempotencyToken !== null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1567
|
-
...(input.Lifecycle !== undefined &&
|
|
1568
|
-
input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
1569
|
-
...(input.RecoveryPointTags !== undefined &&
|
|
1570
|
-
input.RecoveryPointTags !== null && {
|
|
1540
|
+
...(input.BackupVaultName != null && { BackupVaultName: input.BackupVaultName }),
|
|
1541
|
+
...(input.CompleteWindowMinutes != null && { CompleteWindowMinutes: input.CompleteWindowMinutes }),
|
|
1542
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1543
|
+
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1544
|
+
...(input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
1545
|
+
...(input.RecoveryPointTags != null && {
|
|
1571
1546
|
RecoveryPointTags: serializeAws_restJson1Tags(input.RecoveryPointTags, context),
|
|
1572
1547
|
}),
|
|
1573
|
-
...(input.ResourceArn
|
|
1574
|
-
...(input.StartWindowMinutes
|
|
1575
|
-
input.StartWindowMinutes !== null && { StartWindowMinutes: input.StartWindowMinutes }),
|
|
1548
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1549
|
+
...(input.StartWindowMinutes != null && { StartWindowMinutes: input.StartWindowMinutes }),
|
|
1576
1550
|
});
|
|
1577
1551
|
return new protocol_http_1.HttpRequest({
|
|
1578
1552
|
protocol,
|
|
@@ -1593,17 +1567,12 @@ const serializeAws_restJson1StartCopyJobCommand = async (input, context) => {
|
|
|
1593
1567
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/copy-jobs";
|
|
1594
1568
|
let body;
|
|
1595
1569
|
body = JSON.stringify({
|
|
1596
|
-
...(input.DestinationBackupVaultArn
|
|
1597
|
-
|
|
1598
|
-
...(input.
|
|
1599
|
-
...(input.
|
|
1600
|
-
|
|
1601
|
-
...(input.
|
|
1602
|
-
input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
1603
|
-
...(input.RecoveryPointArn !== undefined &&
|
|
1604
|
-
input.RecoveryPointArn !== null && { RecoveryPointArn: input.RecoveryPointArn }),
|
|
1605
|
-
...(input.SourceBackupVaultName !== undefined &&
|
|
1606
|
-
input.SourceBackupVaultName !== null && { SourceBackupVaultName: input.SourceBackupVaultName }),
|
|
1570
|
+
...(input.DestinationBackupVaultArn != null && { DestinationBackupVaultArn: input.DestinationBackupVaultArn }),
|
|
1571
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1572
|
+
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1573
|
+
...(input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
1574
|
+
...(input.RecoveryPointArn != null && { RecoveryPointArn: input.RecoveryPointArn }),
|
|
1575
|
+
...(input.SourceBackupVaultName != null && { SourceBackupVaultName: input.SourceBackupVaultName }),
|
|
1607
1576
|
});
|
|
1608
1577
|
return new protocol_http_1.HttpRequest({
|
|
1609
1578
|
protocol,
|
|
@@ -1656,14 +1625,11 @@ const serializeAws_restJson1StartRestoreJobCommand = async (input, context) => {
|
|
|
1656
1625
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs";
|
|
1657
1626
|
let body;
|
|
1658
1627
|
body = JSON.stringify({
|
|
1659
|
-
...(input.IamRoleArn
|
|
1660
|
-
...(input.IdempotencyToken
|
|
1661
|
-
|
|
1662
|
-
...(input.
|
|
1663
|
-
|
|
1664
|
-
...(input.RecoveryPointArn !== undefined &&
|
|
1665
|
-
input.RecoveryPointArn !== null && { RecoveryPointArn: input.RecoveryPointArn }),
|
|
1666
|
-
...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
|
|
1628
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1629
|
+
...(input.IdempotencyToken != null && { IdempotencyToken: input.IdempotencyToken }),
|
|
1630
|
+
...(input.Metadata != null && { Metadata: serializeAws_restJson1Metadata(input.Metadata, context) }),
|
|
1631
|
+
...(input.RecoveryPointArn != null && { RecoveryPointArn: input.RecoveryPointArn }),
|
|
1632
|
+
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
1667
1633
|
});
|
|
1668
1634
|
return new protocol_http_1.HttpRequest({
|
|
1669
1635
|
protocol,
|
|
@@ -1720,7 +1686,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1720
1686
|
}
|
|
1721
1687
|
let body;
|
|
1722
1688
|
body = JSON.stringify({
|
|
1723
|
-
...(input.Tags
|
|
1689
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
1724
1690
|
});
|
|
1725
1691
|
return new protocol_http_1.HttpRequest({
|
|
1726
1692
|
protocol,
|
|
@@ -1751,8 +1717,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1751
1717
|
}
|
|
1752
1718
|
let body;
|
|
1753
1719
|
body = JSON.stringify({
|
|
1754
|
-
...(input.TagKeyList
|
|
1755
|
-
input.TagKeyList !== null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) }),
|
|
1720
|
+
...(input.TagKeyList != null && { TagKeyList: serializeAws_restJson1TagKeyList(input.TagKeyList, context) }),
|
|
1756
1721
|
});
|
|
1757
1722
|
return new protocol_http_1.HttpRequest({
|
|
1758
1723
|
protocol,
|
|
@@ -1783,8 +1748,7 @@ const serializeAws_restJson1UpdateBackupPlanCommand = async (input, context) =>
|
|
|
1783
1748
|
}
|
|
1784
1749
|
let body;
|
|
1785
1750
|
body = JSON.stringify({
|
|
1786
|
-
...(input.BackupPlan
|
|
1787
|
-
input.BackupPlan !== null && { BackupPlan: serializeAws_restJson1BackupPlanInput(input.BackupPlan, context) }),
|
|
1751
|
+
...(input.BackupPlan != null && { BackupPlan: serializeAws_restJson1BackupPlanInput(input.BackupPlan, context) }),
|
|
1788
1752
|
});
|
|
1789
1753
|
return new protocol_http_1.HttpRequest({
|
|
1790
1754
|
protocol,
|
|
@@ -1816,12 +1780,10 @@ const serializeAws_restJson1UpdateFrameworkCommand = async (input, context) => {
|
|
|
1816
1780
|
}
|
|
1817
1781
|
let body;
|
|
1818
1782
|
body = JSON.stringify({
|
|
1819
|
-
...(input.FrameworkControls
|
|
1820
|
-
input.FrameworkControls !== null && {
|
|
1783
|
+
...(input.FrameworkControls != null && {
|
|
1821
1784
|
FrameworkControls: serializeAws_restJson1FrameworkControls(input.FrameworkControls, context),
|
|
1822
1785
|
}),
|
|
1823
|
-
...(input.FrameworkDescription
|
|
1824
|
-
input.FrameworkDescription !== null && { FrameworkDescription: input.FrameworkDescription }),
|
|
1786
|
+
...(input.FrameworkDescription != null && { FrameworkDescription: input.FrameworkDescription }),
|
|
1825
1787
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1826
1788
|
});
|
|
1827
1789
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1843,8 +1805,7 @@ const serializeAws_restJson1UpdateGlobalSettingsCommand = async (input, context)
|
|
|
1843
1805
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/global-settings";
|
|
1844
1806
|
let body;
|
|
1845
1807
|
body = JSON.stringify({
|
|
1846
|
-
...(input.GlobalSettings
|
|
1847
|
-
input.GlobalSettings !== null && {
|
|
1808
|
+
...(input.GlobalSettings != null && {
|
|
1848
1809
|
GlobalSettings: serializeAws_restJson1GlobalSettings(input.GlobalSettings, context),
|
|
1849
1810
|
}),
|
|
1850
1811
|
});
|
|
@@ -1888,8 +1849,7 @@ const serializeAws_restJson1UpdateRecoveryPointLifecycleCommand = async (input,
|
|
|
1888
1849
|
}
|
|
1889
1850
|
let body;
|
|
1890
1851
|
body = JSON.stringify({
|
|
1891
|
-
...(input.Lifecycle
|
|
1892
|
-
input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
1852
|
+
...(input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
1893
1853
|
});
|
|
1894
1854
|
return new protocol_http_1.HttpRequest({
|
|
1895
1855
|
protocol,
|
|
@@ -1910,12 +1870,10 @@ const serializeAws_restJson1UpdateRegionSettingsCommand = async (input, context)
|
|
|
1910
1870
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/account-settings";
|
|
1911
1871
|
let body;
|
|
1912
1872
|
body = JSON.stringify({
|
|
1913
|
-
...(input.ResourceTypeManagementPreference
|
|
1914
|
-
input.ResourceTypeManagementPreference !== null && {
|
|
1873
|
+
...(input.ResourceTypeManagementPreference != null && {
|
|
1915
1874
|
ResourceTypeManagementPreference: serializeAws_restJson1ResourceTypeManagementPreference(input.ResourceTypeManagementPreference, context),
|
|
1916
1875
|
}),
|
|
1917
|
-
...(input.ResourceTypeOptInPreference
|
|
1918
|
-
input.ResourceTypeOptInPreference !== null && {
|
|
1876
|
+
...(input.ResourceTypeOptInPreference != null && {
|
|
1919
1877
|
ResourceTypeOptInPreference: serializeAws_restJson1ResourceTypeOptInPreference(input.ResourceTypeOptInPreference, context),
|
|
1920
1878
|
}),
|
|
1921
1879
|
});
|
|
@@ -1950,14 +1908,11 @@ const serializeAws_restJson1UpdateReportPlanCommand = async (input, context) =>
|
|
|
1950
1908
|
let body;
|
|
1951
1909
|
body = JSON.stringify({
|
|
1952
1910
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1953
|
-
...(input.ReportDeliveryChannel
|
|
1954
|
-
input.ReportDeliveryChannel !== null && {
|
|
1911
|
+
...(input.ReportDeliveryChannel != null && {
|
|
1955
1912
|
ReportDeliveryChannel: serializeAws_restJson1ReportDeliveryChannel(input.ReportDeliveryChannel, context),
|
|
1956
1913
|
}),
|
|
1957
|
-
...(input.ReportPlanDescription
|
|
1958
|
-
|
|
1959
|
-
...(input.ReportSetting !== undefined &&
|
|
1960
|
-
input.ReportSetting !== null && {
|
|
1914
|
+
...(input.ReportPlanDescription != null && { ReportPlanDescription: input.ReportPlanDescription }),
|
|
1915
|
+
...(input.ReportSetting != null && {
|
|
1961
1916
|
ReportSetting: serializeAws_restJson1ReportSetting(input.ReportSetting, context),
|
|
1962
1917
|
}),
|
|
1963
1918
|
});
|
|
@@ -2009,8 +1964,7 @@ const deserializeAws_restJson1CreateBackupPlanCommandError = async (output, cont
|
|
|
2009
1964
|
body: await parseBody(output.body, context),
|
|
2010
1965
|
};
|
|
2011
1966
|
let response;
|
|
2012
|
-
|
|
2013
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1967
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2014
1968
|
switch (errorCode) {
|
|
2015
1969
|
case "AlreadyExistsException":
|
|
2016
1970
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
@@ -2029,10 +1983,12 @@ const deserializeAws_restJson1CreateBackupPlanCommandError = async (output, cont
|
|
|
2029
1983
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2030
1984
|
default:
|
|
2031
1985
|
const parsedBody = parsedOutput.body;
|
|
1986
|
+
const $metadata = deserializeMetadata(output);
|
|
1987
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2032
1988
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2033
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1989
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2034
1990
|
$fault: "client",
|
|
2035
|
-
$metadata
|
|
1991
|
+
$metadata,
|
|
2036
1992
|
});
|
|
2037
1993
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2038
1994
|
}
|
|
@@ -2066,8 +2022,7 @@ const deserializeAws_restJson1CreateBackupSelectionCommandError = async (output,
|
|
|
2066
2022
|
body: await parseBody(output.body, context),
|
|
2067
2023
|
};
|
|
2068
2024
|
let response;
|
|
2069
|
-
|
|
2070
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
2026
|
switch (errorCode) {
|
|
2072
2027
|
case "AlreadyExistsException":
|
|
2073
2028
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
@@ -2086,10 +2041,12 @@ const deserializeAws_restJson1CreateBackupSelectionCommandError = async (output,
|
|
|
2086
2041
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2087
2042
|
default:
|
|
2088
2043
|
const parsedBody = parsedOutput.body;
|
|
2044
|
+
const $metadata = deserializeMetadata(output);
|
|
2045
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2089
2046
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2090
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2047
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2091
2048
|
$fault: "client",
|
|
2092
|
-
$metadata
|
|
2049
|
+
$metadata,
|
|
2093
2050
|
});
|
|
2094
2051
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2095
2052
|
}
|
|
@@ -2123,8 +2080,7 @@ const deserializeAws_restJson1CreateBackupVaultCommandError = async (output, con
|
|
|
2123
2080
|
body: await parseBody(output.body, context),
|
|
2124
2081
|
};
|
|
2125
2082
|
let response;
|
|
2126
|
-
|
|
2127
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
2084
|
switch (errorCode) {
|
|
2129
2085
|
case "AlreadyExistsException":
|
|
2130
2086
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
@@ -2143,10 +2099,12 @@ const deserializeAws_restJson1CreateBackupVaultCommandError = async (output, con
|
|
|
2143
2099
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2144
2100
|
default:
|
|
2145
2101
|
const parsedBody = parsedOutput.body;
|
|
2102
|
+
const $metadata = deserializeMetadata(output);
|
|
2103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2146
2104
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2147
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2148
2106
|
$fault: "client",
|
|
2149
|
-
$metadata
|
|
2107
|
+
$metadata,
|
|
2150
2108
|
});
|
|
2151
2109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2152
2110
|
}
|
|
@@ -2176,8 +2134,7 @@ const deserializeAws_restJson1CreateFrameworkCommandError = async (output, conte
|
|
|
2176
2134
|
body: await parseBody(output.body, context),
|
|
2177
2135
|
};
|
|
2178
2136
|
let response;
|
|
2179
|
-
|
|
2180
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2137
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
2138
|
switch (errorCode) {
|
|
2182
2139
|
case "AlreadyExistsException":
|
|
2183
2140
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
@@ -2196,10 +2153,12 @@ const deserializeAws_restJson1CreateFrameworkCommandError = async (output, conte
|
|
|
2196
2153
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2197
2154
|
default:
|
|
2198
2155
|
const parsedBody = parsedOutput.body;
|
|
2156
|
+
const $metadata = deserializeMetadata(output);
|
|
2157
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2199
2158
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2159
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2201
2160
|
$fault: "client",
|
|
2202
|
-
$metadata
|
|
2161
|
+
$metadata,
|
|
2203
2162
|
});
|
|
2204
2163
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2205
2164
|
}
|
|
@@ -2233,8 +2192,7 @@ const deserializeAws_restJson1CreateReportPlanCommandError = async (output, cont
|
|
|
2233
2192
|
body: await parseBody(output.body, context),
|
|
2234
2193
|
};
|
|
2235
2194
|
let response;
|
|
2236
|
-
|
|
2237
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
2196
|
switch (errorCode) {
|
|
2239
2197
|
case "AlreadyExistsException":
|
|
2240
2198
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
@@ -2253,10 +2211,12 @@ const deserializeAws_restJson1CreateReportPlanCommandError = async (output, cont
|
|
|
2253
2211
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2254
2212
|
default:
|
|
2255
2213
|
const parsedBody = parsedOutput.body;
|
|
2214
|
+
const $metadata = deserializeMetadata(output);
|
|
2215
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2256
2216
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2257
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2217
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2258
2218
|
$fault: "client",
|
|
2259
|
-
$metadata
|
|
2219
|
+
$metadata,
|
|
2260
2220
|
});
|
|
2261
2221
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2262
2222
|
}
|
|
@@ -2294,8 +2254,7 @@ const deserializeAws_restJson1DeleteBackupPlanCommandError = async (output, cont
|
|
|
2294
2254
|
body: await parseBody(output.body, context),
|
|
2295
2255
|
};
|
|
2296
2256
|
let response;
|
|
2297
|
-
|
|
2298
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
2258
|
switch (errorCode) {
|
|
2300
2259
|
case "InvalidParameterValueException":
|
|
2301
2260
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2314,10 +2273,12 @@ const deserializeAws_restJson1DeleteBackupPlanCommandError = async (output, cont
|
|
|
2314
2273
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2315
2274
|
default:
|
|
2316
2275
|
const parsedBody = parsedOutput.body;
|
|
2276
|
+
const $metadata = deserializeMetadata(output);
|
|
2277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2317
2278
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2318
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2319
2280
|
$fault: "client",
|
|
2320
|
-
$metadata
|
|
2281
|
+
$metadata,
|
|
2321
2282
|
});
|
|
2322
2283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2323
2284
|
}
|
|
@@ -2339,8 +2300,7 @@ const deserializeAws_restJson1DeleteBackupSelectionCommandError = async (output,
|
|
|
2339
2300
|
body: await parseBody(output.body, context),
|
|
2340
2301
|
};
|
|
2341
2302
|
let response;
|
|
2342
|
-
|
|
2343
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
2304
|
switch (errorCode) {
|
|
2345
2305
|
case "InvalidParameterValueException":
|
|
2346
2306
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2356,10 +2316,12 @@ const deserializeAws_restJson1DeleteBackupSelectionCommandError = async (output,
|
|
|
2356
2316
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2357
2317
|
default:
|
|
2358
2318
|
const parsedBody = parsedOutput.body;
|
|
2319
|
+
const $metadata = deserializeMetadata(output);
|
|
2320
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2359
2321
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2360
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2322
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2361
2323
|
$fault: "client",
|
|
2362
|
-
$metadata
|
|
2324
|
+
$metadata,
|
|
2363
2325
|
});
|
|
2364
2326
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2365
2327
|
}
|
|
@@ -2381,8 +2343,7 @@ const deserializeAws_restJson1DeleteBackupVaultCommandError = async (output, con
|
|
|
2381
2343
|
body: await parseBody(output.body, context),
|
|
2382
2344
|
};
|
|
2383
2345
|
let response;
|
|
2384
|
-
|
|
2385
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2386
2347
|
switch (errorCode) {
|
|
2387
2348
|
case "InvalidParameterValueException":
|
|
2388
2349
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2401,10 +2362,12 @@ const deserializeAws_restJson1DeleteBackupVaultCommandError = async (output, con
|
|
|
2401
2362
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2402
2363
|
default:
|
|
2403
2364
|
const parsedBody = parsedOutput.body;
|
|
2365
|
+
const $metadata = deserializeMetadata(output);
|
|
2366
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2404
2367
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2405
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2368
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2406
2369
|
$fault: "client",
|
|
2407
|
-
$metadata
|
|
2370
|
+
$metadata,
|
|
2408
2371
|
});
|
|
2409
2372
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2410
2373
|
}
|
|
@@ -2426,8 +2389,7 @@ const deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommandError = async
|
|
|
2426
2389
|
body: await parseBody(output.body, context),
|
|
2427
2390
|
};
|
|
2428
2391
|
let response;
|
|
2429
|
-
|
|
2430
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2392
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2431
2393
|
switch (errorCode) {
|
|
2432
2394
|
case "InvalidParameterValueException":
|
|
2433
2395
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2443,10 +2405,12 @@ const deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommandError = async
|
|
|
2443
2405
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2444
2406
|
default:
|
|
2445
2407
|
const parsedBody = parsedOutput.body;
|
|
2408
|
+
const $metadata = deserializeMetadata(output);
|
|
2409
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2446
2410
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2447
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2411
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2448
2412
|
$fault: "client",
|
|
2449
|
-
$metadata
|
|
2413
|
+
$metadata,
|
|
2450
2414
|
});
|
|
2451
2415
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2452
2416
|
}
|
|
@@ -2468,8 +2432,7 @@ const deserializeAws_restJson1DeleteBackupVaultLockConfigurationCommandError = a
|
|
|
2468
2432
|
body: await parseBody(output.body, context),
|
|
2469
2433
|
};
|
|
2470
2434
|
let response;
|
|
2471
|
-
|
|
2472
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2473
2436
|
switch (errorCode) {
|
|
2474
2437
|
case "InvalidParameterValueException":
|
|
2475
2438
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2488,10 +2451,12 @@ const deserializeAws_restJson1DeleteBackupVaultLockConfigurationCommandError = a
|
|
|
2488
2451
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2489
2452
|
default:
|
|
2490
2453
|
const parsedBody = parsedOutput.body;
|
|
2454
|
+
const $metadata = deserializeMetadata(output);
|
|
2455
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2491
2456
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2492
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2457
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2493
2458
|
$fault: "client",
|
|
2494
|
-
$metadata
|
|
2459
|
+
$metadata,
|
|
2495
2460
|
});
|
|
2496
2461
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2497
2462
|
}
|
|
@@ -2513,8 +2478,7 @@ const deserializeAws_restJson1DeleteBackupVaultNotificationsCommandError = async
|
|
|
2513
2478
|
body: await parseBody(output.body, context),
|
|
2514
2479
|
};
|
|
2515
2480
|
let response;
|
|
2516
|
-
|
|
2517
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2481
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2518
2482
|
switch (errorCode) {
|
|
2519
2483
|
case "InvalidParameterValueException":
|
|
2520
2484
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2530,10 +2494,12 @@ const deserializeAws_restJson1DeleteBackupVaultNotificationsCommandError = async
|
|
|
2530
2494
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2531
2495
|
default:
|
|
2532
2496
|
const parsedBody = parsedOutput.body;
|
|
2497
|
+
const $metadata = deserializeMetadata(output);
|
|
2498
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2533
2499
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2534
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2500
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2535
2501
|
$fault: "client",
|
|
2536
|
-
$metadata
|
|
2502
|
+
$metadata,
|
|
2537
2503
|
});
|
|
2538
2504
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2539
2505
|
}
|
|
@@ -2555,8 +2521,7 @@ const deserializeAws_restJson1DeleteFrameworkCommandError = async (output, conte
|
|
|
2555
2521
|
body: await parseBody(output.body, context),
|
|
2556
2522
|
};
|
|
2557
2523
|
let response;
|
|
2558
|
-
|
|
2559
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2560
2525
|
switch (errorCode) {
|
|
2561
2526
|
case "ConflictException":
|
|
2562
2527
|
case "com.amazonaws.backup#ConflictException":
|
|
@@ -2575,10 +2540,12 @@ const deserializeAws_restJson1DeleteFrameworkCommandError = async (output, conte
|
|
|
2575
2540
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2576
2541
|
default:
|
|
2577
2542
|
const parsedBody = parsedOutput.body;
|
|
2543
|
+
const $metadata = deserializeMetadata(output);
|
|
2544
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2578
2545
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2579
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2546
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2580
2547
|
$fault: "client",
|
|
2581
|
-
$metadata
|
|
2548
|
+
$metadata,
|
|
2582
2549
|
});
|
|
2583
2550
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2584
2551
|
}
|
|
@@ -2600,8 +2567,7 @@ const deserializeAws_restJson1DeleteRecoveryPointCommandError = async (output, c
|
|
|
2600
2567
|
body: await parseBody(output.body, context),
|
|
2601
2568
|
};
|
|
2602
2569
|
let response;
|
|
2603
|
-
|
|
2604
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2605
2571
|
switch (errorCode) {
|
|
2606
2572
|
case "InvalidParameterValueException":
|
|
2607
2573
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2623,10 +2589,12 @@ const deserializeAws_restJson1DeleteRecoveryPointCommandError = async (output, c
|
|
|
2623
2589
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2624
2590
|
default:
|
|
2625
2591
|
const parsedBody = parsedOutput.body;
|
|
2592
|
+
const $metadata = deserializeMetadata(output);
|
|
2593
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2626
2594
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2627
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2595
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2628
2596
|
$fault: "client",
|
|
2629
|
-
$metadata
|
|
2597
|
+
$metadata,
|
|
2630
2598
|
});
|
|
2631
2599
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2632
2600
|
}
|
|
@@ -2648,8 +2616,7 @@ const deserializeAws_restJson1DeleteReportPlanCommandError = async (output, cont
|
|
|
2648
2616
|
body: await parseBody(output.body, context),
|
|
2649
2617
|
};
|
|
2650
2618
|
let response;
|
|
2651
|
-
|
|
2652
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2619
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2653
2620
|
switch (errorCode) {
|
|
2654
2621
|
case "ConflictException":
|
|
2655
2622
|
case "com.amazonaws.backup#ConflictException":
|
|
@@ -2668,10 +2635,12 @@ const deserializeAws_restJson1DeleteReportPlanCommandError = async (output, cont
|
|
|
2668
2635
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2669
2636
|
default:
|
|
2670
2637
|
const parsedBody = parsedOutput.body;
|
|
2638
|
+
const $metadata = deserializeMetadata(output);
|
|
2639
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2671
2640
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2672
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2641
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2673
2642
|
$fault: "client",
|
|
2674
|
-
$metadata
|
|
2643
|
+
$metadata,
|
|
2675
2644
|
});
|
|
2676
2645
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2677
2646
|
}
|
|
@@ -2773,8 +2742,7 @@ const deserializeAws_restJson1DescribeBackupJobCommandError = async (output, con
|
|
|
2773
2742
|
body: await parseBody(output.body, context),
|
|
2774
2743
|
};
|
|
2775
2744
|
let response;
|
|
2776
|
-
|
|
2777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2745
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2778
2746
|
switch (errorCode) {
|
|
2779
2747
|
case "DependencyFailureException":
|
|
2780
2748
|
case "com.amazonaws.backup#DependencyFailureException":
|
|
@@ -2793,10 +2761,12 @@ const deserializeAws_restJson1DescribeBackupJobCommandError = async (output, con
|
|
|
2793
2761
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2794
2762
|
default:
|
|
2795
2763
|
const parsedBody = parsedOutput.body;
|
|
2764
|
+
const $metadata = deserializeMetadata(output);
|
|
2765
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2796
2766
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2797
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2767
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2798
2768
|
$fault: "client",
|
|
2799
|
-
$metadata
|
|
2769
|
+
$metadata,
|
|
2800
2770
|
});
|
|
2801
2771
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2802
2772
|
}
|
|
@@ -2858,8 +2828,7 @@ const deserializeAws_restJson1DescribeBackupVaultCommandError = async (output, c
|
|
|
2858
2828
|
body: await parseBody(output.body, context),
|
|
2859
2829
|
};
|
|
2860
2830
|
let response;
|
|
2861
|
-
|
|
2862
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2831
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2863
2832
|
switch (errorCode) {
|
|
2864
2833
|
case "InvalidParameterValueException":
|
|
2865
2834
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2875,10 +2844,12 @@ const deserializeAws_restJson1DescribeBackupVaultCommandError = async (output, c
|
|
|
2875
2844
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2876
2845
|
default:
|
|
2877
2846
|
const parsedBody = parsedOutput.body;
|
|
2847
|
+
const $metadata = deserializeMetadata(output);
|
|
2848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2878
2849
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2879
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2880
2851
|
$fault: "client",
|
|
2881
|
-
$metadata
|
|
2852
|
+
$metadata,
|
|
2882
2853
|
});
|
|
2883
2854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2884
2855
|
}
|
|
@@ -2904,8 +2875,7 @@ const deserializeAws_restJson1DescribeCopyJobCommandError = async (output, conte
|
|
|
2904
2875
|
body: await parseBody(output.body, context),
|
|
2905
2876
|
};
|
|
2906
2877
|
let response;
|
|
2907
|
-
|
|
2908
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2909
2879
|
switch (errorCode) {
|
|
2910
2880
|
case "InvalidParameterValueException":
|
|
2911
2881
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2921,10 +2891,12 @@ const deserializeAws_restJson1DescribeCopyJobCommandError = async (output, conte
|
|
|
2921
2891
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2922
2892
|
default:
|
|
2923
2893
|
const parsedBody = parsedOutput.body;
|
|
2894
|
+
const $metadata = deserializeMetadata(output);
|
|
2895
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2924
2896
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2925
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2897
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2926
2898
|
$fault: "client",
|
|
2927
|
-
$metadata
|
|
2899
|
+
$metadata,
|
|
2928
2900
|
});
|
|
2929
2901
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2930
2902
|
}
|
|
@@ -2978,8 +2950,7 @@ const deserializeAws_restJson1DescribeFrameworkCommandError = async (output, con
|
|
|
2978
2950
|
body: await parseBody(output.body, context),
|
|
2979
2951
|
};
|
|
2980
2952
|
let response;
|
|
2981
|
-
|
|
2982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2983
2954
|
switch (errorCode) {
|
|
2984
2955
|
case "InvalidParameterValueException":
|
|
2985
2956
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -2995,10 +2966,12 @@ const deserializeAws_restJson1DescribeFrameworkCommandError = async (output, con
|
|
|
2995
2966
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2996
2967
|
default:
|
|
2997
2968
|
const parsedBody = parsedOutput.body;
|
|
2969
|
+
const $metadata = deserializeMetadata(output);
|
|
2970
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2998
2971
|
response = new BackupServiceException_1.BackupServiceException({
|
|
2999
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2972
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3000
2973
|
$fault: "client",
|
|
3001
|
-
$metadata
|
|
2974
|
+
$metadata,
|
|
3002
2975
|
});
|
|
3003
2976
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3004
2977
|
}
|
|
@@ -3028,8 +3001,7 @@ const deserializeAws_restJson1DescribeGlobalSettingsCommandError = async (output
|
|
|
3028
3001
|
body: await parseBody(output.body, context),
|
|
3029
3002
|
};
|
|
3030
3003
|
let response;
|
|
3031
|
-
|
|
3032
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3004
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3033
3005
|
switch (errorCode) {
|
|
3034
3006
|
case "InvalidRequestException":
|
|
3035
3007
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
@@ -3039,10 +3011,12 @@ const deserializeAws_restJson1DescribeGlobalSettingsCommandError = async (output
|
|
|
3039
3011
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3040
3012
|
default:
|
|
3041
3013
|
const parsedBody = parsedOutput.body;
|
|
3014
|
+
const $metadata = deserializeMetadata(output);
|
|
3015
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3042
3016
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3017
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3044
3018
|
$fault: "client",
|
|
3045
|
-
$metadata
|
|
3019
|
+
$metadata,
|
|
3046
3020
|
});
|
|
3047
3021
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3048
3022
|
}
|
|
@@ -3076,8 +3050,7 @@ const deserializeAws_restJson1DescribeProtectedResourceCommandError = async (out
|
|
|
3076
3050
|
body: await parseBody(output.body, context),
|
|
3077
3051
|
};
|
|
3078
3052
|
let response;
|
|
3079
|
-
|
|
3080
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3081
3054
|
switch (errorCode) {
|
|
3082
3055
|
case "InvalidParameterValueException":
|
|
3083
3056
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3093,10 +3066,12 @@ const deserializeAws_restJson1DescribeProtectedResourceCommandError = async (out
|
|
|
3093
3066
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3094
3067
|
default:
|
|
3095
3068
|
const parsedBody = parsedOutput.body;
|
|
3069
|
+
const $metadata = deserializeMetadata(output);
|
|
3070
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3096
3071
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3097
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3098
3073
|
$fault: "client",
|
|
3099
|
-
$metadata
|
|
3074
|
+
$metadata,
|
|
3100
3075
|
});
|
|
3101
3076
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3102
3077
|
}
|
|
@@ -3194,8 +3169,7 @@ const deserializeAws_restJson1DescribeRecoveryPointCommandError = async (output,
|
|
|
3194
3169
|
body: await parseBody(output.body, context),
|
|
3195
3170
|
};
|
|
3196
3171
|
let response;
|
|
3197
|
-
|
|
3198
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3199
3173
|
switch (errorCode) {
|
|
3200
3174
|
case "InvalidParameterValueException":
|
|
3201
3175
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3211,10 +3185,12 @@ const deserializeAws_restJson1DescribeRecoveryPointCommandError = async (output,
|
|
|
3211
3185
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3212
3186
|
default:
|
|
3213
3187
|
const parsedBody = parsedOutput.body;
|
|
3188
|
+
const $metadata = deserializeMetadata(output);
|
|
3189
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3214
3190
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3215
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3191
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3216
3192
|
$fault: "client",
|
|
3217
|
-
$metadata
|
|
3193
|
+
$metadata,
|
|
3218
3194
|
});
|
|
3219
3195
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3220
3196
|
}
|
|
@@ -3244,18 +3220,19 @@ const deserializeAws_restJson1DescribeRegionSettingsCommandError = async (output
|
|
|
3244
3220
|
body: await parseBody(output.body, context),
|
|
3245
3221
|
};
|
|
3246
3222
|
let response;
|
|
3247
|
-
|
|
3248
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3223
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3249
3224
|
switch (errorCode) {
|
|
3250
3225
|
case "ServiceUnavailableException":
|
|
3251
3226
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3252
3227
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3253
3228
|
default:
|
|
3254
3229
|
const parsedBody = parsedOutput.body;
|
|
3230
|
+
const $metadata = deserializeMetadata(output);
|
|
3231
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3255
3232
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3256
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3257
3234
|
$fault: "client",
|
|
3258
|
-
$metadata
|
|
3235
|
+
$metadata,
|
|
3259
3236
|
});
|
|
3260
3237
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3261
3238
|
}
|
|
@@ -3281,8 +3258,7 @@ const deserializeAws_restJson1DescribeReportJobCommandError = async (output, con
|
|
|
3281
3258
|
body: await parseBody(output.body, context),
|
|
3282
3259
|
};
|
|
3283
3260
|
let response;
|
|
3284
|
-
|
|
3285
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3261
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3286
3262
|
switch (errorCode) {
|
|
3287
3263
|
case "MissingParameterValueException":
|
|
3288
3264
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
@@ -3295,10 +3271,12 @@ const deserializeAws_restJson1DescribeReportJobCommandError = async (output, con
|
|
|
3295
3271
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3296
3272
|
default:
|
|
3297
3273
|
const parsedBody = parsedOutput.body;
|
|
3274
|
+
const $metadata = deserializeMetadata(output);
|
|
3275
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3298
3276
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3299
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3277
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3300
3278
|
$fault: "client",
|
|
3301
|
-
$metadata
|
|
3279
|
+
$metadata,
|
|
3302
3280
|
});
|
|
3303
3281
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3304
3282
|
}
|
|
@@ -3324,8 +3302,7 @@ const deserializeAws_restJson1DescribeReportPlanCommandError = async (output, co
|
|
|
3324
3302
|
body: await parseBody(output.body, context),
|
|
3325
3303
|
};
|
|
3326
3304
|
let response;
|
|
3327
|
-
|
|
3328
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3305
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3329
3306
|
switch (errorCode) {
|
|
3330
3307
|
case "InvalidParameterValueException":
|
|
3331
3308
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3341,10 +3318,12 @@ const deserializeAws_restJson1DescribeReportPlanCommandError = async (output, co
|
|
|
3341
3318
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3342
3319
|
default:
|
|
3343
3320
|
const parsedBody = parsedOutput.body;
|
|
3321
|
+
const $metadata = deserializeMetadata(output);
|
|
3322
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3344
3323
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3345
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3346
3325
|
$fault: "client",
|
|
3347
|
-
$metadata
|
|
3326
|
+
$metadata,
|
|
3348
3327
|
});
|
|
3349
3328
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3350
3329
|
}
|
|
@@ -3418,8 +3397,7 @@ const deserializeAws_restJson1DescribeRestoreJobCommandError = async (output, co
|
|
|
3418
3397
|
body: await parseBody(output.body, context),
|
|
3419
3398
|
};
|
|
3420
3399
|
let response;
|
|
3421
|
-
|
|
3422
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3400
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3423
3401
|
switch (errorCode) {
|
|
3424
3402
|
case "DependencyFailureException":
|
|
3425
3403
|
case "com.amazonaws.backup#DependencyFailureException":
|
|
@@ -3438,10 +3416,12 @@ const deserializeAws_restJson1DescribeRestoreJobCommandError = async (output, co
|
|
|
3438
3416
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3439
3417
|
default:
|
|
3440
3418
|
const parsedBody = parsedOutput.body;
|
|
3419
|
+
const $metadata = deserializeMetadata(output);
|
|
3420
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3441
3421
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3442
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3422
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3443
3423
|
$fault: "client",
|
|
3444
|
-
$metadata
|
|
3424
|
+
$metadata,
|
|
3445
3425
|
});
|
|
3446
3426
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3447
3427
|
}
|
|
@@ -3463,8 +3443,7 @@ const deserializeAws_restJson1DisassociateRecoveryPointCommandError = async (out
|
|
|
3463
3443
|
body: await parseBody(output.body, context),
|
|
3464
3444
|
};
|
|
3465
3445
|
let response;
|
|
3466
|
-
|
|
3467
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3446
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3468
3447
|
switch (errorCode) {
|
|
3469
3448
|
case "InvalidParameterValueException":
|
|
3470
3449
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3486,10 +3465,12 @@ const deserializeAws_restJson1DisassociateRecoveryPointCommandError = async (out
|
|
|
3486
3465
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3487
3466
|
default:
|
|
3488
3467
|
const parsedBody = parsedOutput.body;
|
|
3468
|
+
const $metadata = deserializeMetadata(output);
|
|
3469
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3489
3470
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3490
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3471
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3491
3472
|
$fault: "client",
|
|
3492
|
-
$metadata
|
|
3473
|
+
$metadata,
|
|
3493
3474
|
});
|
|
3494
3475
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3495
3476
|
}
|
|
@@ -3515,8 +3496,7 @@ const deserializeAws_restJson1ExportBackupPlanTemplateCommandError = async (outp
|
|
|
3515
3496
|
body: await parseBody(output.body, context),
|
|
3516
3497
|
};
|
|
3517
3498
|
let response;
|
|
3518
|
-
|
|
3519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3499
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3520
3500
|
switch (errorCode) {
|
|
3521
3501
|
case "InvalidParameterValueException":
|
|
3522
3502
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3532,10 +3512,12 @@ const deserializeAws_restJson1ExportBackupPlanTemplateCommandError = async (outp
|
|
|
3532
3512
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3533
3513
|
default:
|
|
3534
3514
|
const parsedBody = parsedOutput.body;
|
|
3515
|
+
const $metadata = deserializeMetadata(output);
|
|
3516
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3535
3517
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3536
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3518
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3537
3519
|
$fault: "client",
|
|
3538
|
-
$metadata
|
|
3520
|
+
$metadata,
|
|
3539
3521
|
});
|
|
3540
3522
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3541
3523
|
}
|
|
@@ -3593,8 +3575,7 @@ const deserializeAws_restJson1GetBackupPlanCommandError = async (output, context
|
|
|
3593
3575
|
body: await parseBody(output.body, context),
|
|
3594
3576
|
};
|
|
3595
3577
|
let response;
|
|
3596
|
-
|
|
3597
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3598
3579
|
switch (errorCode) {
|
|
3599
3580
|
case "InvalidParameterValueException":
|
|
3600
3581
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3610,10 +3591,12 @@ const deserializeAws_restJson1GetBackupPlanCommandError = async (output, context
|
|
|
3610
3591
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3611
3592
|
default:
|
|
3612
3593
|
const parsedBody = parsedOutput.body;
|
|
3594
|
+
const $metadata = deserializeMetadata(output);
|
|
3595
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3613
3596
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3614
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3597
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3615
3598
|
$fault: "client",
|
|
3616
|
-
$metadata
|
|
3599
|
+
$metadata,
|
|
3617
3600
|
});
|
|
3618
3601
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3619
3602
|
}
|
|
@@ -3639,8 +3622,7 @@ const deserializeAws_restJson1GetBackupPlanFromJSONCommandError = async (output,
|
|
|
3639
3622
|
body: await parseBody(output.body, context),
|
|
3640
3623
|
};
|
|
3641
3624
|
let response;
|
|
3642
|
-
|
|
3643
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3644
3626
|
switch (errorCode) {
|
|
3645
3627
|
case "InvalidParameterValueException":
|
|
3646
3628
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3659,10 +3641,12 @@ const deserializeAws_restJson1GetBackupPlanFromJSONCommandError = async (output,
|
|
|
3659
3641
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3660
3642
|
default:
|
|
3661
3643
|
const parsedBody = parsedOutput.body;
|
|
3644
|
+
const $metadata = deserializeMetadata(output);
|
|
3645
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3662
3646
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3663
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3647
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3664
3648
|
$fault: "client",
|
|
3665
|
-
$metadata
|
|
3649
|
+
$metadata,
|
|
3666
3650
|
});
|
|
3667
3651
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3668
3652
|
}
|
|
@@ -3688,8 +3672,7 @@ const deserializeAws_restJson1GetBackupPlanFromTemplateCommandError = async (out
|
|
|
3688
3672
|
body: await parseBody(output.body, context),
|
|
3689
3673
|
};
|
|
3690
3674
|
let response;
|
|
3691
|
-
|
|
3692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3675
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3693
3676
|
switch (errorCode) {
|
|
3694
3677
|
case "InvalidParameterValueException":
|
|
3695
3678
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3705,10 +3688,12 @@ const deserializeAws_restJson1GetBackupPlanFromTemplateCommandError = async (out
|
|
|
3705
3688
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3706
3689
|
default:
|
|
3707
3690
|
const parsedBody = parsedOutput.body;
|
|
3691
|
+
const $metadata = deserializeMetadata(output);
|
|
3692
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3708
3693
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3709
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3694
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3710
3695
|
$fault: "client",
|
|
3711
|
-
$metadata
|
|
3696
|
+
$metadata,
|
|
3712
3697
|
});
|
|
3713
3698
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3714
3699
|
}
|
|
@@ -3750,8 +3735,7 @@ const deserializeAws_restJson1GetBackupSelectionCommandError = async (output, co
|
|
|
3750
3735
|
body: await parseBody(output.body, context),
|
|
3751
3736
|
};
|
|
3752
3737
|
let response;
|
|
3753
|
-
|
|
3754
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3738
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3755
3739
|
switch (errorCode) {
|
|
3756
3740
|
case "InvalidParameterValueException":
|
|
3757
3741
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3767,10 +3751,12 @@ const deserializeAws_restJson1GetBackupSelectionCommandError = async (output, co
|
|
|
3767
3751
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3768
3752
|
default:
|
|
3769
3753
|
const parsedBody = parsedOutput.body;
|
|
3754
|
+
const $metadata = deserializeMetadata(output);
|
|
3755
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3770
3756
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3771
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3757
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3772
3758
|
$fault: "client",
|
|
3773
|
-
$metadata
|
|
3759
|
+
$metadata,
|
|
3774
3760
|
});
|
|
3775
3761
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3776
3762
|
}
|
|
@@ -3804,8 +3790,7 @@ const deserializeAws_restJson1GetBackupVaultAccessPolicyCommandError = async (ou
|
|
|
3804
3790
|
body: await parseBody(output.body, context),
|
|
3805
3791
|
};
|
|
3806
3792
|
let response;
|
|
3807
|
-
|
|
3808
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3793
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3809
3794
|
switch (errorCode) {
|
|
3810
3795
|
case "InvalidParameterValueException":
|
|
3811
3796
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3821,10 +3806,12 @@ const deserializeAws_restJson1GetBackupVaultAccessPolicyCommandError = async (ou
|
|
|
3821
3806
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3822
3807
|
default:
|
|
3823
3808
|
const parsedBody = parsedOutput.body;
|
|
3809
|
+
const $metadata = deserializeMetadata(output);
|
|
3810
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3824
3811
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3812
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3826
3813
|
$fault: "client",
|
|
3827
|
-
$metadata
|
|
3814
|
+
$metadata,
|
|
3828
3815
|
});
|
|
3829
3816
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3830
3817
|
}
|
|
@@ -3862,8 +3849,7 @@ const deserializeAws_restJson1GetBackupVaultNotificationsCommandError = async (o
|
|
|
3862
3849
|
body: await parseBody(output.body, context),
|
|
3863
3850
|
};
|
|
3864
3851
|
let response;
|
|
3865
|
-
|
|
3866
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3852
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3867
3853
|
switch (errorCode) {
|
|
3868
3854
|
case "InvalidParameterValueException":
|
|
3869
3855
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3879,10 +3865,12 @@ const deserializeAws_restJson1GetBackupVaultNotificationsCommandError = async (o
|
|
|
3879
3865
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3880
3866
|
default:
|
|
3881
3867
|
const parsedBody = parsedOutput.body;
|
|
3868
|
+
const $metadata = deserializeMetadata(output);
|
|
3869
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3882
3870
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3883
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3871
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3884
3872
|
$fault: "client",
|
|
3885
|
-
$metadata
|
|
3873
|
+
$metadata,
|
|
3886
3874
|
});
|
|
3887
3875
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3888
3876
|
}
|
|
@@ -3916,8 +3904,7 @@ const deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommandError = asyn
|
|
|
3916
3904
|
body: await parseBody(output.body, context),
|
|
3917
3905
|
};
|
|
3918
3906
|
let response;
|
|
3919
|
-
|
|
3920
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3921
3908
|
switch (errorCode) {
|
|
3922
3909
|
case "InvalidParameterValueException":
|
|
3923
3910
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -3933,10 +3920,12 @@ const deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommandError = asyn
|
|
|
3933
3920
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3934
3921
|
default:
|
|
3935
3922
|
const parsedBody = parsedOutput.body;
|
|
3923
|
+
const $metadata = deserializeMetadata(output);
|
|
3924
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3936
3925
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3937
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3938
3927
|
$fault: "client",
|
|
3939
|
-
$metadata
|
|
3928
|
+
$metadata,
|
|
3940
3929
|
});
|
|
3941
3930
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3942
3931
|
}
|
|
@@ -3962,18 +3951,19 @@ const deserializeAws_restJson1GetSupportedResourceTypesCommandError = async (out
|
|
|
3962
3951
|
body: await parseBody(output.body, context),
|
|
3963
3952
|
};
|
|
3964
3953
|
let response;
|
|
3965
|
-
|
|
3966
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3954
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3967
3955
|
switch (errorCode) {
|
|
3968
3956
|
case "ServiceUnavailableException":
|
|
3969
3957
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3970
3958
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3971
3959
|
default:
|
|
3972
3960
|
const parsedBody = parsedOutput.body;
|
|
3961
|
+
const $metadata = deserializeMetadata(output);
|
|
3962
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3973
3963
|
response = new BackupServiceException_1.BackupServiceException({
|
|
3974
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3964
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3975
3965
|
$fault: "client",
|
|
3976
|
-
$metadata
|
|
3966
|
+
$metadata,
|
|
3977
3967
|
});
|
|
3978
3968
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3979
3969
|
}
|
|
@@ -4003,8 +3993,7 @@ const deserializeAws_restJson1ListBackupJobsCommandError = async (output, contex
|
|
|
4003
3993
|
body: await parseBody(output.body, context),
|
|
4004
3994
|
};
|
|
4005
3995
|
let response;
|
|
4006
|
-
|
|
4007
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3996
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4008
3997
|
switch (errorCode) {
|
|
4009
3998
|
case "InvalidParameterValueException":
|
|
4010
3999
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4014,10 +4003,12 @@ const deserializeAws_restJson1ListBackupJobsCommandError = async (output, contex
|
|
|
4014
4003
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4015
4004
|
default:
|
|
4016
4005
|
const parsedBody = parsedOutput.body;
|
|
4006
|
+
const $metadata = deserializeMetadata(output);
|
|
4007
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4017
4008
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4018
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4009
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4019
4010
|
$fault: "client",
|
|
4020
|
-
$metadata
|
|
4011
|
+
$metadata,
|
|
4021
4012
|
});
|
|
4022
4013
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4023
4014
|
}
|
|
@@ -4047,8 +4038,7 @@ const deserializeAws_restJson1ListBackupPlansCommandError = async (output, conte
|
|
|
4047
4038
|
body: await parseBody(output.body, context),
|
|
4048
4039
|
};
|
|
4049
4040
|
let response;
|
|
4050
|
-
|
|
4051
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4052
4042
|
switch (errorCode) {
|
|
4053
4043
|
case "InvalidParameterValueException":
|
|
4054
4044
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4064,10 +4054,12 @@ const deserializeAws_restJson1ListBackupPlansCommandError = async (output, conte
|
|
|
4064
4054
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4065
4055
|
default:
|
|
4066
4056
|
const parsedBody = parsedOutput.body;
|
|
4057
|
+
const $metadata = deserializeMetadata(output);
|
|
4058
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4067
4059
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4068
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4060
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4069
4061
|
$fault: "client",
|
|
4070
|
-
$metadata
|
|
4062
|
+
$metadata,
|
|
4071
4063
|
});
|
|
4072
4064
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4073
4065
|
}
|
|
@@ -4097,8 +4089,7 @@ const deserializeAws_restJson1ListBackupPlanTemplatesCommandError = async (outpu
|
|
|
4097
4089
|
body: await parseBody(output.body, context),
|
|
4098
4090
|
};
|
|
4099
4091
|
let response;
|
|
4100
|
-
|
|
4101
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4092
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4102
4093
|
switch (errorCode) {
|
|
4103
4094
|
case "InvalidParameterValueException":
|
|
4104
4095
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4114,10 +4105,12 @@ const deserializeAws_restJson1ListBackupPlanTemplatesCommandError = async (outpu
|
|
|
4114
4105
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4115
4106
|
default:
|
|
4116
4107
|
const parsedBody = parsedOutput.body;
|
|
4108
|
+
const $metadata = deserializeMetadata(output);
|
|
4109
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4117
4110
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4118
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4111
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4119
4112
|
$fault: "client",
|
|
4120
|
-
$metadata
|
|
4113
|
+
$metadata,
|
|
4121
4114
|
});
|
|
4122
4115
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4123
4116
|
}
|
|
@@ -4147,8 +4140,7 @@ const deserializeAws_restJson1ListBackupPlanVersionsCommandError = async (output
|
|
|
4147
4140
|
body: await parseBody(output.body, context),
|
|
4148
4141
|
};
|
|
4149
4142
|
let response;
|
|
4150
|
-
|
|
4151
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4143
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4152
4144
|
switch (errorCode) {
|
|
4153
4145
|
case "InvalidParameterValueException":
|
|
4154
4146
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4164,10 +4156,12 @@ const deserializeAws_restJson1ListBackupPlanVersionsCommandError = async (output
|
|
|
4164
4156
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4165
4157
|
default:
|
|
4166
4158
|
const parsedBody = parsedOutput.body;
|
|
4159
|
+
const $metadata = deserializeMetadata(output);
|
|
4160
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4167
4161
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4168
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4162
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4169
4163
|
$fault: "client",
|
|
4170
|
-
$metadata
|
|
4164
|
+
$metadata,
|
|
4171
4165
|
});
|
|
4172
4166
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4173
4167
|
}
|
|
@@ -4197,8 +4191,7 @@ const deserializeAws_restJson1ListBackupSelectionsCommandError = async (output,
|
|
|
4197
4191
|
body: await parseBody(output.body, context),
|
|
4198
4192
|
};
|
|
4199
4193
|
let response;
|
|
4200
|
-
|
|
4201
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4202
4195
|
switch (errorCode) {
|
|
4203
4196
|
case "InvalidParameterValueException":
|
|
4204
4197
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4214,10 +4207,12 @@ const deserializeAws_restJson1ListBackupSelectionsCommandError = async (output,
|
|
|
4214
4207
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4215
4208
|
default:
|
|
4216
4209
|
const parsedBody = parsedOutput.body;
|
|
4210
|
+
const $metadata = deserializeMetadata(output);
|
|
4211
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4217
4212
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4218
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4213
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4219
4214
|
$fault: "client",
|
|
4220
|
-
$metadata
|
|
4215
|
+
$metadata,
|
|
4221
4216
|
});
|
|
4222
4217
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4223
4218
|
}
|
|
@@ -4247,8 +4242,7 @@ const deserializeAws_restJson1ListBackupVaultsCommandError = async (output, cont
|
|
|
4247
4242
|
body: await parseBody(output.body, context),
|
|
4248
4243
|
};
|
|
4249
4244
|
let response;
|
|
4250
|
-
|
|
4251
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4252
4246
|
switch (errorCode) {
|
|
4253
4247
|
case "InvalidParameterValueException":
|
|
4254
4248
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4264,10 +4258,12 @@ const deserializeAws_restJson1ListBackupVaultsCommandError = async (output, cont
|
|
|
4264
4258
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4265
4259
|
default:
|
|
4266
4260
|
const parsedBody = parsedOutput.body;
|
|
4261
|
+
const $metadata = deserializeMetadata(output);
|
|
4262
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4267
4263
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4268
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4264
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4269
4265
|
$fault: "client",
|
|
4270
|
-
$metadata
|
|
4266
|
+
$metadata,
|
|
4271
4267
|
});
|
|
4272
4268
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4273
4269
|
}
|
|
@@ -4297,8 +4293,7 @@ const deserializeAws_restJson1ListCopyJobsCommandError = async (output, context)
|
|
|
4297
4293
|
body: await parseBody(output.body, context),
|
|
4298
4294
|
};
|
|
4299
4295
|
let response;
|
|
4300
|
-
|
|
4301
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4296
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4302
4297
|
switch (errorCode) {
|
|
4303
4298
|
case "InvalidParameterValueException":
|
|
4304
4299
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4308,10 +4303,12 @@ const deserializeAws_restJson1ListCopyJobsCommandError = async (output, context)
|
|
|
4308
4303
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4309
4304
|
default:
|
|
4310
4305
|
const parsedBody = parsedOutput.body;
|
|
4306
|
+
const $metadata = deserializeMetadata(output);
|
|
4307
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4311
4308
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4312
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4309
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4313
4310
|
$fault: "client",
|
|
4314
|
-
$metadata
|
|
4311
|
+
$metadata,
|
|
4315
4312
|
});
|
|
4316
4313
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4317
4314
|
}
|
|
@@ -4341,8 +4338,7 @@ const deserializeAws_restJson1ListFrameworksCommandError = async (output, contex
|
|
|
4341
4338
|
body: await parseBody(output.body, context),
|
|
4342
4339
|
};
|
|
4343
4340
|
let response;
|
|
4344
|
-
|
|
4345
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4341
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4346
4342
|
switch (errorCode) {
|
|
4347
4343
|
case "InvalidParameterValueException":
|
|
4348
4344
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4352,10 +4348,12 @@ const deserializeAws_restJson1ListFrameworksCommandError = async (output, contex
|
|
|
4352
4348
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4353
4349
|
default:
|
|
4354
4350
|
const parsedBody = parsedOutput.body;
|
|
4351
|
+
const $metadata = deserializeMetadata(output);
|
|
4352
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4355
4353
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4356
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4354
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4357
4355
|
$fault: "client",
|
|
4358
|
-
$metadata
|
|
4356
|
+
$metadata,
|
|
4359
4357
|
});
|
|
4360
4358
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4361
4359
|
}
|
|
@@ -4385,8 +4383,7 @@ const deserializeAws_restJson1ListProtectedResourcesCommandError = async (output
|
|
|
4385
4383
|
body: await parseBody(output.body, context),
|
|
4386
4384
|
};
|
|
4387
4385
|
let response;
|
|
4388
|
-
|
|
4389
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4386
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4390
4387
|
switch (errorCode) {
|
|
4391
4388
|
case "InvalidParameterValueException":
|
|
4392
4389
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4396,10 +4393,12 @@ const deserializeAws_restJson1ListProtectedResourcesCommandError = async (output
|
|
|
4396
4393
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4397
4394
|
default:
|
|
4398
4395
|
const parsedBody = parsedOutput.body;
|
|
4396
|
+
const $metadata = deserializeMetadata(output);
|
|
4397
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4399
4398
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4399
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4401
4400
|
$fault: "client",
|
|
4402
|
-
$metadata
|
|
4401
|
+
$metadata,
|
|
4403
4402
|
});
|
|
4404
4403
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4405
4404
|
}
|
|
@@ -4429,8 +4428,7 @@ const deserializeAws_restJson1ListRecoveryPointsByBackupVaultCommandError = asyn
|
|
|
4429
4428
|
body: await parseBody(output.body, context),
|
|
4430
4429
|
};
|
|
4431
4430
|
let response;
|
|
4432
|
-
|
|
4433
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4431
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4434
4432
|
switch (errorCode) {
|
|
4435
4433
|
case "InvalidParameterValueException":
|
|
4436
4434
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4446,10 +4444,12 @@ const deserializeAws_restJson1ListRecoveryPointsByBackupVaultCommandError = asyn
|
|
|
4446
4444
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4447
4445
|
default:
|
|
4448
4446
|
const parsedBody = parsedOutput.body;
|
|
4447
|
+
const $metadata = deserializeMetadata(output);
|
|
4448
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4449
4449
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4450
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4451
4451
|
$fault: "client",
|
|
4452
|
-
$metadata
|
|
4452
|
+
$metadata,
|
|
4453
4453
|
});
|
|
4454
4454
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4455
4455
|
}
|
|
@@ -4479,8 +4479,7 @@ const deserializeAws_restJson1ListRecoveryPointsByResourceCommandError = async (
|
|
|
4479
4479
|
body: await parseBody(output.body, context),
|
|
4480
4480
|
};
|
|
4481
4481
|
let response;
|
|
4482
|
-
|
|
4483
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4482
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4484
4483
|
switch (errorCode) {
|
|
4485
4484
|
case "InvalidParameterValueException":
|
|
4486
4485
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4496,10 +4495,12 @@ const deserializeAws_restJson1ListRecoveryPointsByResourceCommandError = async (
|
|
|
4496
4495
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4497
4496
|
default:
|
|
4498
4497
|
const parsedBody = parsedOutput.body;
|
|
4498
|
+
const $metadata = deserializeMetadata(output);
|
|
4499
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4499
4500
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4501
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4501
4502
|
$fault: "client",
|
|
4502
|
-
$metadata
|
|
4503
|
+
$metadata,
|
|
4503
4504
|
});
|
|
4504
4505
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4505
4506
|
}
|
|
@@ -4529,8 +4530,7 @@ const deserializeAws_restJson1ListReportJobsCommandError = async (output, contex
|
|
|
4529
4530
|
body: await parseBody(output.body, context),
|
|
4530
4531
|
};
|
|
4531
4532
|
let response;
|
|
4532
|
-
|
|
4533
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4534
4534
|
switch (errorCode) {
|
|
4535
4535
|
case "InvalidParameterValueException":
|
|
4536
4536
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4540,10 +4540,12 @@ const deserializeAws_restJson1ListReportJobsCommandError = async (output, contex
|
|
|
4540
4540
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4541
4541
|
default:
|
|
4542
4542
|
const parsedBody = parsedOutput.body;
|
|
4543
|
+
const $metadata = deserializeMetadata(output);
|
|
4544
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4543
4545
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4544
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4546
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4545
4547
|
$fault: "client",
|
|
4546
|
-
$metadata
|
|
4548
|
+
$metadata,
|
|
4547
4549
|
});
|
|
4548
4550
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4549
4551
|
}
|
|
@@ -4573,8 +4575,7 @@ const deserializeAws_restJson1ListReportPlansCommandError = async (output, conte
|
|
|
4573
4575
|
body: await parseBody(output.body, context),
|
|
4574
4576
|
};
|
|
4575
4577
|
let response;
|
|
4576
|
-
|
|
4577
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4578
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4578
4579
|
switch (errorCode) {
|
|
4579
4580
|
case "InvalidParameterValueException":
|
|
4580
4581
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4584,10 +4585,12 @@ const deserializeAws_restJson1ListReportPlansCommandError = async (output, conte
|
|
|
4584
4585
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4585
4586
|
default:
|
|
4586
4587
|
const parsedBody = parsedOutput.body;
|
|
4588
|
+
const $metadata = deserializeMetadata(output);
|
|
4589
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4587
4590
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4588
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4591
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4589
4592
|
$fault: "client",
|
|
4590
|
-
$metadata
|
|
4593
|
+
$metadata,
|
|
4591
4594
|
});
|
|
4592
4595
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4593
4596
|
}
|
|
@@ -4617,8 +4620,7 @@ const deserializeAws_restJson1ListRestoreJobsCommandError = async (output, conte
|
|
|
4617
4620
|
body: await parseBody(output.body, context),
|
|
4618
4621
|
};
|
|
4619
4622
|
let response;
|
|
4620
|
-
|
|
4621
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4623
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4622
4624
|
switch (errorCode) {
|
|
4623
4625
|
case "InvalidParameterValueException":
|
|
4624
4626
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4634,10 +4636,12 @@ const deserializeAws_restJson1ListRestoreJobsCommandError = async (output, conte
|
|
|
4634
4636
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4635
4637
|
default:
|
|
4636
4638
|
const parsedBody = parsedOutput.body;
|
|
4639
|
+
const $metadata = deserializeMetadata(output);
|
|
4640
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4637
4641
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4638
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4642
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4639
4643
|
$fault: "client",
|
|
4640
|
-
$metadata
|
|
4644
|
+
$metadata,
|
|
4641
4645
|
});
|
|
4642
4646
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4643
4647
|
}
|
|
@@ -4667,8 +4671,7 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
4667
4671
|
body: await parseBody(output.body, context),
|
|
4668
4672
|
};
|
|
4669
4673
|
let response;
|
|
4670
|
-
|
|
4671
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4674
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4672
4675
|
switch (errorCode) {
|
|
4673
4676
|
case "InvalidParameterValueException":
|
|
4674
4677
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4684,10 +4687,12 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
4684
4687
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4685
4688
|
default:
|
|
4686
4689
|
const parsedBody = parsedOutput.body;
|
|
4690
|
+
const $metadata = deserializeMetadata(output);
|
|
4691
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4687
4692
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4688
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4693
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4689
4694
|
$fault: "client",
|
|
4690
|
-
$metadata
|
|
4695
|
+
$metadata,
|
|
4691
4696
|
});
|
|
4692
4697
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4693
4698
|
}
|
|
@@ -4709,8 +4714,7 @@ const deserializeAws_restJson1PutBackupVaultAccessPolicyCommandError = async (ou
|
|
|
4709
4714
|
body: await parseBody(output.body, context),
|
|
4710
4715
|
};
|
|
4711
4716
|
let response;
|
|
4712
|
-
|
|
4713
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4714
4718
|
switch (errorCode) {
|
|
4715
4719
|
case "InvalidParameterValueException":
|
|
4716
4720
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4726,10 +4730,12 @@ const deserializeAws_restJson1PutBackupVaultAccessPolicyCommandError = async (ou
|
|
|
4726
4730
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4727
4731
|
default:
|
|
4728
4732
|
const parsedBody = parsedOutput.body;
|
|
4733
|
+
const $metadata = deserializeMetadata(output);
|
|
4734
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4729
4735
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4730
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4736
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4731
4737
|
$fault: "client",
|
|
4732
|
-
$metadata
|
|
4738
|
+
$metadata,
|
|
4733
4739
|
});
|
|
4734
4740
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4735
4741
|
}
|
|
@@ -4751,8 +4757,7 @@ const deserializeAws_restJson1PutBackupVaultLockConfigurationCommandError = asyn
|
|
|
4751
4757
|
body: await parseBody(output.body, context),
|
|
4752
4758
|
};
|
|
4753
4759
|
let response;
|
|
4754
|
-
|
|
4755
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4756
4761
|
switch (errorCode) {
|
|
4757
4762
|
case "InvalidParameterValueException":
|
|
4758
4763
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4771,10 +4776,12 @@ const deserializeAws_restJson1PutBackupVaultLockConfigurationCommandError = asyn
|
|
|
4771
4776
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4772
4777
|
default:
|
|
4773
4778
|
const parsedBody = parsedOutput.body;
|
|
4779
|
+
const $metadata = deserializeMetadata(output);
|
|
4780
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4774
4781
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4775
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4782
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4776
4783
|
$fault: "client",
|
|
4777
|
-
$metadata
|
|
4784
|
+
$metadata,
|
|
4778
4785
|
});
|
|
4779
4786
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4780
4787
|
}
|
|
@@ -4796,8 +4803,7 @@ const deserializeAws_restJson1PutBackupVaultNotificationsCommandError = async (o
|
|
|
4796
4803
|
body: await parseBody(output.body, context),
|
|
4797
4804
|
};
|
|
4798
4805
|
let response;
|
|
4799
|
-
|
|
4800
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4806
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4801
4807
|
switch (errorCode) {
|
|
4802
4808
|
case "InvalidParameterValueException":
|
|
4803
4809
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4813,10 +4819,12 @@ const deserializeAws_restJson1PutBackupVaultNotificationsCommandError = async (o
|
|
|
4813
4819
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4814
4820
|
default:
|
|
4815
4821
|
const parsedBody = parsedOutput.body;
|
|
4822
|
+
const $metadata = deserializeMetadata(output);
|
|
4823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4816
4824
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4817
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4818
4826
|
$fault: "client",
|
|
4819
|
-
$metadata
|
|
4827
|
+
$metadata,
|
|
4820
4828
|
});
|
|
4821
4829
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4822
4830
|
}
|
|
@@ -4850,8 +4858,7 @@ const deserializeAws_restJson1StartBackupJobCommandError = async (output, contex
|
|
|
4850
4858
|
body: await parseBody(output.body, context),
|
|
4851
4859
|
};
|
|
4852
4860
|
let response;
|
|
4853
|
-
|
|
4854
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4861
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4855
4862
|
switch (errorCode) {
|
|
4856
4863
|
case "InvalidParameterValueException":
|
|
4857
4864
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4873,10 +4880,12 @@ const deserializeAws_restJson1StartBackupJobCommandError = async (output, contex
|
|
|
4873
4880
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4874
4881
|
default:
|
|
4875
4882
|
const parsedBody = parsedOutput.body;
|
|
4883
|
+
const $metadata = deserializeMetadata(output);
|
|
4884
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4876
4885
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4877
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4886
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4878
4887
|
$fault: "client",
|
|
4879
|
-
$metadata
|
|
4888
|
+
$metadata,
|
|
4880
4889
|
});
|
|
4881
4890
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4882
4891
|
}
|
|
@@ -4906,8 +4915,7 @@ const deserializeAws_restJson1StartCopyJobCommandError = async (output, context)
|
|
|
4906
4915
|
body: await parseBody(output.body, context),
|
|
4907
4916
|
};
|
|
4908
4917
|
let response;
|
|
4909
|
-
|
|
4910
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4911
4919
|
switch (errorCode) {
|
|
4912
4920
|
case "InvalidParameterValueException":
|
|
4913
4921
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4929,10 +4937,12 @@ const deserializeAws_restJson1StartCopyJobCommandError = async (output, context)
|
|
|
4929
4937
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4930
4938
|
default:
|
|
4931
4939
|
const parsedBody = parsedOutput.body;
|
|
4940
|
+
const $metadata = deserializeMetadata(output);
|
|
4941
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4932
4942
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4933
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4943
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4934
4944
|
$fault: "client",
|
|
4935
|
-
$metadata
|
|
4945
|
+
$metadata,
|
|
4936
4946
|
});
|
|
4937
4947
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4938
4948
|
}
|
|
@@ -4958,8 +4968,7 @@ const deserializeAws_restJson1StartReportJobCommandError = async (output, contex
|
|
|
4958
4968
|
body: await parseBody(output.body, context),
|
|
4959
4969
|
};
|
|
4960
4970
|
let response;
|
|
4961
|
-
|
|
4962
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4963
4972
|
switch (errorCode) {
|
|
4964
4973
|
case "InvalidParameterValueException":
|
|
4965
4974
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -4975,10 +4984,12 @@ const deserializeAws_restJson1StartReportJobCommandError = async (output, contex
|
|
|
4975
4984
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4976
4985
|
default:
|
|
4977
4986
|
const parsedBody = parsedOutput.body;
|
|
4987
|
+
const $metadata = deserializeMetadata(output);
|
|
4988
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4978
4989
|
response = new BackupServiceException_1.BackupServiceException({
|
|
4979
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4980
4991
|
$fault: "client",
|
|
4981
|
-
$metadata
|
|
4992
|
+
$metadata,
|
|
4982
4993
|
});
|
|
4983
4994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4984
4995
|
}
|
|
@@ -5004,8 +5015,7 @@ const deserializeAws_restJson1StartRestoreJobCommandError = async (output, conte
|
|
|
5004
5015
|
body: await parseBody(output.body, context),
|
|
5005
5016
|
};
|
|
5006
5017
|
let response;
|
|
5007
|
-
|
|
5008
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5018
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5009
5019
|
switch (errorCode) {
|
|
5010
5020
|
case "InvalidParameterValueException":
|
|
5011
5021
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -5021,10 +5031,12 @@ const deserializeAws_restJson1StartRestoreJobCommandError = async (output, conte
|
|
|
5021
5031
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5022
5032
|
default:
|
|
5023
5033
|
const parsedBody = parsedOutput.body;
|
|
5034
|
+
const $metadata = deserializeMetadata(output);
|
|
5035
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5024
5036
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5025
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5037
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5026
5038
|
$fault: "client",
|
|
5027
|
-
$metadata
|
|
5039
|
+
$metadata,
|
|
5028
5040
|
});
|
|
5029
5041
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5030
5042
|
}
|
|
@@ -5046,8 +5058,7 @@ const deserializeAws_restJson1StopBackupJobCommandError = async (output, context
|
|
|
5046
5058
|
body: await parseBody(output.body, context),
|
|
5047
5059
|
};
|
|
5048
5060
|
let response;
|
|
5049
|
-
|
|
5050
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5051
5062
|
switch (errorCode) {
|
|
5052
5063
|
case "InvalidParameterValueException":
|
|
5053
5064
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -5066,10 +5077,12 @@ const deserializeAws_restJson1StopBackupJobCommandError = async (output, context
|
|
|
5066
5077
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5067
5078
|
default:
|
|
5068
5079
|
const parsedBody = parsedOutput.body;
|
|
5080
|
+
const $metadata = deserializeMetadata(output);
|
|
5081
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5069
5082
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5070
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5071
5084
|
$fault: "client",
|
|
5072
|
-
$metadata
|
|
5085
|
+
$metadata,
|
|
5073
5086
|
});
|
|
5074
5087
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5075
5088
|
}
|
|
@@ -5091,8 +5104,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5091
5104
|
body: await parseBody(output.body, context),
|
|
5092
5105
|
};
|
|
5093
5106
|
let response;
|
|
5094
|
-
|
|
5095
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5096
5108
|
switch (errorCode) {
|
|
5097
5109
|
case "InvalidParameterValueException":
|
|
5098
5110
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -5111,10 +5123,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5111
5123
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5112
5124
|
default:
|
|
5113
5125
|
const parsedBody = parsedOutput.body;
|
|
5126
|
+
const $metadata = deserializeMetadata(output);
|
|
5127
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5114
5128
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5115
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5129
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5116
5130
|
$fault: "client",
|
|
5117
|
-
$metadata
|
|
5131
|
+
$metadata,
|
|
5118
5132
|
});
|
|
5119
5133
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5120
5134
|
}
|
|
@@ -5136,8 +5150,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5136
5150
|
body: await parseBody(output.body, context),
|
|
5137
5151
|
};
|
|
5138
5152
|
let response;
|
|
5139
|
-
|
|
5140
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5153
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5141
5154
|
switch (errorCode) {
|
|
5142
5155
|
case "InvalidParameterValueException":
|
|
5143
5156
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -5153,10 +5166,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5153
5166
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5154
5167
|
default:
|
|
5155
5168
|
const parsedBody = parsedOutput.body;
|
|
5169
|
+
const $metadata = deserializeMetadata(output);
|
|
5170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5156
5171
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5157
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5158
5173
|
$fault: "client",
|
|
5159
|
-
$metadata
|
|
5174
|
+
$metadata,
|
|
5160
5175
|
});
|
|
5161
5176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5162
5177
|
}
|
|
@@ -5198,8 +5213,7 @@ const deserializeAws_restJson1UpdateBackupPlanCommandError = async (output, cont
|
|
|
5198
5213
|
body: await parseBody(output.body, context),
|
|
5199
5214
|
};
|
|
5200
5215
|
let response;
|
|
5201
|
-
|
|
5202
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5216
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5203
5217
|
switch (errorCode) {
|
|
5204
5218
|
case "InvalidParameterValueException":
|
|
5205
5219
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -5215,10 +5229,12 @@ const deserializeAws_restJson1UpdateBackupPlanCommandError = async (output, cont
|
|
|
5215
5229
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5216
5230
|
default:
|
|
5217
5231
|
const parsedBody = parsedOutput.body;
|
|
5232
|
+
const $metadata = deserializeMetadata(output);
|
|
5233
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5218
5234
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5235
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5220
5236
|
$fault: "client",
|
|
5221
|
-
$metadata
|
|
5237
|
+
$metadata,
|
|
5222
5238
|
});
|
|
5223
5239
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5224
5240
|
}
|
|
@@ -5252,8 +5268,7 @@ const deserializeAws_restJson1UpdateFrameworkCommandError = async (output, conte
|
|
|
5252
5268
|
body: await parseBody(output.body, context),
|
|
5253
5269
|
};
|
|
5254
5270
|
let response;
|
|
5255
|
-
|
|
5256
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5271
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5257
5272
|
switch (errorCode) {
|
|
5258
5273
|
case "AlreadyExistsException":
|
|
5259
5274
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
@@ -5278,10 +5293,12 @@ const deserializeAws_restJson1UpdateFrameworkCommandError = async (output, conte
|
|
|
5278
5293
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5279
5294
|
default:
|
|
5280
5295
|
const parsedBody = parsedOutput.body;
|
|
5296
|
+
const $metadata = deserializeMetadata(output);
|
|
5297
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5281
5298
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5282
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5299
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5283
5300
|
$fault: "client",
|
|
5284
|
-
$metadata
|
|
5301
|
+
$metadata,
|
|
5285
5302
|
});
|
|
5286
5303
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5287
5304
|
}
|
|
@@ -5303,8 +5320,7 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
|
|
|
5303
5320
|
body: await parseBody(output.body, context),
|
|
5304
5321
|
};
|
|
5305
5322
|
let response;
|
|
5306
|
-
|
|
5307
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5323
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5308
5324
|
switch (errorCode) {
|
|
5309
5325
|
case "InvalidParameterValueException":
|
|
5310
5326
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -5320,10 +5336,12 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
|
|
|
5320
5336
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5321
5337
|
default:
|
|
5322
5338
|
const parsedBody = parsedOutput.body;
|
|
5339
|
+
const $metadata = deserializeMetadata(output);
|
|
5340
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5323
5341
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5324
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5342
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5325
5343
|
$fault: "client",
|
|
5326
|
-
$metadata
|
|
5344
|
+
$metadata,
|
|
5327
5345
|
});
|
|
5328
5346
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5329
5347
|
}
|
|
@@ -5361,8 +5379,7 @@ const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommandError = async (
|
|
|
5361
5379
|
body: await parseBody(output.body, context),
|
|
5362
5380
|
};
|
|
5363
5381
|
let response;
|
|
5364
|
-
|
|
5365
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5366
5383
|
switch (errorCode) {
|
|
5367
5384
|
case "InvalidParameterValueException":
|
|
5368
5385
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -5381,10 +5398,12 @@ const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommandError = async (
|
|
|
5381
5398
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5382
5399
|
default:
|
|
5383
5400
|
const parsedBody = parsedOutput.body;
|
|
5401
|
+
const $metadata = deserializeMetadata(output);
|
|
5402
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5384
5403
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5385
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5404
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5386
5405
|
$fault: "client",
|
|
5387
|
-
$metadata
|
|
5406
|
+
$metadata,
|
|
5388
5407
|
});
|
|
5389
5408
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5390
5409
|
}
|
|
@@ -5406,8 +5425,7 @@ const deserializeAws_restJson1UpdateRegionSettingsCommandError = async (output,
|
|
|
5406
5425
|
body: await parseBody(output.body, context),
|
|
5407
5426
|
};
|
|
5408
5427
|
let response;
|
|
5409
|
-
|
|
5410
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5428
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5411
5429
|
switch (errorCode) {
|
|
5412
5430
|
case "InvalidParameterValueException":
|
|
5413
5431
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
@@ -5420,10 +5438,12 @@ const deserializeAws_restJson1UpdateRegionSettingsCommandError = async (output,
|
|
|
5420
5438
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5421
5439
|
default:
|
|
5422
5440
|
const parsedBody = parsedOutput.body;
|
|
5441
|
+
const $metadata = deserializeMetadata(output);
|
|
5442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5423
5443
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5424
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5425
5445
|
$fault: "client",
|
|
5426
|
-
$metadata
|
|
5446
|
+
$metadata,
|
|
5427
5447
|
});
|
|
5428
5448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5429
5449
|
}
|
|
@@ -5457,8 +5477,7 @@ const deserializeAws_restJson1UpdateReportPlanCommandError = async (output, cont
|
|
|
5457
5477
|
body: await parseBody(output.body, context),
|
|
5458
5478
|
};
|
|
5459
5479
|
let response;
|
|
5460
|
-
|
|
5461
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5480
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5462
5481
|
switch (errorCode) {
|
|
5463
5482
|
case "ConflictException":
|
|
5464
5483
|
case "com.amazonaws.backup#ConflictException":
|
|
@@ -5477,10 +5496,12 @@ const deserializeAws_restJson1UpdateReportPlanCommandError = async (output, cont
|
|
|
5477
5496
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5478
5497
|
default:
|
|
5479
5498
|
const parsedBody = parsedOutput.body;
|
|
5499
|
+
const $metadata = deserializeMetadata(output);
|
|
5500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5480
5501
|
response = new BackupServiceException_1.BackupServiceException({
|
|
5481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5482
5503
|
$fault: "client",
|
|
5483
|
-
$metadata
|
|
5504
|
+
$metadata,
|
|
5484
5505
|
});
|
|
5485
5506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5486
5507
|
}
|
|
@@ -5703,11 +5724,10 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
5703
5724
|
};
|
|
5704
5725
|
const serializeAws_restJson1AdvancedBackupSetting = (input, context) => {
|
|
5705
5726
|
return {
|
|
5706
|
-
...(input.BackupOptions
|
|
5707
|
-
input.BackupOptions !== null && {
|
|
5727
|
+
...(input.BackupOptions != null && {
|
|
5708
5728
|
BackupOptions: serializeAws_restJson1BackupOptions(input.BackupOptions, context),
|
|
5709
5729
|
}),
|
|
5710
|
-
...(input.ResourceType
|
|
5730
|
+
...(input.ResourceType != null && { ResourceType: input.ResourceType }),
|
|
5711
5731
|
};
|
|
5712
5732
|
};
|
|
5713
5733
|
const serializeAws_restJson1AdvancedBackupSettings = (input, context) => {
|
|
@@ -5733,37 +5753,26 @@ const serializeAws_restJson1BackupOptions = (input, context) => {
|
|
|
5733
5753
|
};
|
|
5734
5754
|
const serializeAws_restJson1BackupPlanInput = (input, context) => {
|
|
5735
5755
|
return {
|
|
5736
|
-
...(input.AdvancedBackupSettings
|
|
5737
|
-
input.AdvancedBackupSettings !== null && {
|
|
5756
|
+
...(input.AdvancedBackupSettings != null && {
|
|
5738
5757
|
AdvancedBackupSettings: serializeAws_restJson1AdvancedBackupSettings(input.AdvancedBackupSettings, context),
|
|
5739
5758
|
}),
|
|
5740
|
-
...(input.BackupPlanName
|
|
5741
|
-
|
|
5742
|
-
...(input.Rules !== undefined &&
|
|
5743
|
-
input.Rules !== null && { Rules: serializeAws_restJson1BackupRulesInput(input.Rules, context) }),
|
|
5759
|
+
...(input.BackupPlanName != null && { BackupPlanName: input.BackupPlanName }),
|
|
5760
|
+
...(input.Rules != null && { Rules: serializeAws_restJson1BackupRulesInput(input.Rules, context) }),
|
|
5744
5761
|
};
|
|
5745
5762
|
};
|
|
5746
5763
|
const serializeAws_restJson1BackupRuleInput = (input, context) => {
|
|
5747
5764
|
return {
|
|
5748
|
-
...(input.CompletionWindowMinutes
|
|
5749
|
-
|
|
5750
|
-
...(input.
|
|
5751
|
-
|
|
5752
|
-
...(input.
|
|
5753
|
-
input.EnableContinuousBackup !== null && { EnableContinuousBackup: input.EnableContinuousBackup }),
|
|
5754
|
-
...(input.Lifecycle !== undefined &&
|
|
5755
|
-
input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
5756
|
-
...(input.RecoveryPointTags !== undefined &&
|
|
5757
|
-
input.RecoveryPointTags !== null && {
|
|
5765
|
+
...(input.CompletionWindowMinutes != null && { CompletionWindowMinutes: input.CompletionWindowMinutes }),
|
|
5766
|
+
...(input.CopyActions != null && { CopyActions: serializeAws_restJson1CopyActions(input.CopyActions, context) }),
|
|
5767
|
+
...(input.EnableContinuousBackup != null && { EnableContinuousBackup: input.EnableContinuousBackup }),
|
|
5768
|
+
...(input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
5769
|
+
...(input.RecoveryPointTags != null && {
|
|
5758
5770
|
RecoveryPointTags: serializeAws_restJson1Tags(input.RecoveryPointTags, context),
|
|
5759
5771
|
}),
|
|
5760
|
-
...(input.RuleName
|
|
5761
|
-
...(input.ScheduleExpression
|
|
5762
|
-
|
|
5763
|
-
...(input.
|
|
5764
|
-
input.StartWindowMinutes !== null && { StartWindowMinutes: input.StartWindowMinutes }),
|
|
5765
|
-
...(input.TargetBackupVaultName !== undefined &&
|
|
5766
|
-
input.TargetBackupVaultName !== null && { TargetBackupVaultName: input.TargetBackupVaultName }),
|
|
5772
|
+
...(input.RuleName != null && { RuleName: input.RuleName }),
|
|
5773
|
+
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
5774
|
+
...(input.StartWindowMinutes != null && { StartWindowMinutes: input.StartWindowMinutes }),
|
|
5775
|
+
...(input.TargetBackupVaultName != null && { TargetBackupVaultName: input.TargetBackupVaultName }),
|
|
5767
5776
|
};
|
|
5768
5777
|
};
|
|
5769
5778
|
const serializeAws_restJson1BackupRulesInput = (input, context) => {
|
|
@@ -5778,16 +5787,14 @@ const serializeAws_restJson1BackupRulesInput = (input, context) => {
|
|
|
5778
5787
|
};
|
|
5779
5788
|
const serializeAws_restJson1BackupSelection = (input, context) => {
|
|
5780
5789
|
return {
|
|
5781
|
-
...(input.Conditions
|
|
5782
|
-
|
|
5783
|
-
...(input.
|
|
5784
|
-
...(input.
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
...(input.
|
|
5789
|
-
input.Resources !== null && { Resources: serializeAws_restJson1ResourceArns(input.Resources, context) }),
|
|
5790
|
-
...(input.SelectionName !== undefined && input.SelectionName !== null && { SelectionName: input.SelectionName }),
|
|
5790
|
+
...(input.Conditions != null && { Conditions: serializeAws_restJson1Conditions(input.Conditions, context) }),
|
|
5791
|
+
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
5792
|
+
...(input.ListOfTags != null && { ListOfTags: serializeAws_restJson1ListOfTags(input.ListOfTags, context) }),
|
|
5793
|
+
...(input.NotResources != null && {
|
|
5794
|
+
NotResources: serializeAws_restJson1ResourceArns(input.NotResources, context),
|
|
5795
|
+
}),
|
|
5796
|
+
...(input.Resources != null && { Resources: serializeAws_restJson1ResourceArns(input.Resources, context) }),
|
|
5797
|
+
...(input.SelectionName != null && { SelectionName: input.SelectionName }),
|
|
5791
5798
|
};
|
|
5792
5799
|
};
|
|
5793
5800
|
const serializeAws_restJson1BackupVaultEvents = (input, context) => {
|
|
@@ -5812,17 +5819,15 @@ const serializeAws_restJson1ComplianceResourceIdList = (input, context) => {
|
|
|
5812
5819
|
};
|
|
5813
5820
|
const serializeAws_restJson1Condition = (input, context) => {
|
|
5814
5821
|
return {
|
|
5815
|
-
...(input.ConditionKey
|
|
5816
|
-
...(input.ConditionType
|
|
5817
|
-
...(input.ConditionValue
|
|
5818
|
-
input.ConditionValue !== null && { ConditionValue: input.ConditionValue }),
|
|
5822
|
+
...(input.ConditionKey != null && { ConditionKey: input.ConditionKey }),
|
|
5823
|
+
...(input.ConditionType != null && { ConditionType: input.ConditionType }),
|
|
5824
|
+
...(input.ConditionValue != null && { ConditionValue: input.ConditionValue }),
|
|
5819
5825
|
};
|
|
5820
5826
|
};
|
|
5821
5827
|
const serializeAws_restJson1ConditionParameter = (input, context) => {
|
|
5822
5828
|
return {
|
|
5823
|
-
...(input.ConditionKey
|
|
5824
|
-
...(input.ConditionValue
|
|
5825
|
-
input.ConditionValue !== null && { ConditionValue: input.ConditionValue }),
|
|
5829
|
+
...(input.ConditionKey != null && { ConditionKey: input.ConditionKey }),
|
|
5830
|
+
...(input.ConditionValue != null && { ConditionValue: input.ConditionValue }),
|
|
5826
5831
|
};
|
|
5827
5832
|
};
|
|
5828
5833
|
const serializeAws_restJson1ConditionParameters = (input, context) => {
|
|
@@ -5837,29 +5842,24 @@ const serializeAws_restJson1ConditionParameters = (input, context) => {
|
|
|
5837
5842
|
};
|
|
5838
5843
|
const serializeAws_restJson1Conditions = (input, context) => {
|
|
5839
5844
|
return {
|
|
5840
|
-
...(input.StringEquals
|
|
5841
|
-
input.StringEquals !== null && {
|
|
5845
|
+
...(input.StringEquals != null && {
|
|
5842
5846
|
StringEquals: serializeAws_restJson1ConditionParameters(input.StringEquals, context),
|
|
5843
5847
|
}),
|
|
5844
|
-
...(input.StringLike
|
|
5845
|
-
input.StringLike !== null && {
|
|
5848
|
+
...(input.StringLike != null && {
|
|
5846
5849
|
StringLike: serializeAws_restJson1ConditionParameters(input.StringLike, context),
|
|
5847
5850
|
}),
|
|
5848
|
-
...(input.StringNotEquals
|
|
5849
|
-
input.StringNotEquals !== null && {
|
|
5851
|
+
...(input.StringNotEquals != null && {
|
|
5850
5852
|
StringNotEquals: serializeAws_restJson1ConditionParameters(input.StringNotEquals, context),
|
|
5851
5853
|
}),
|
|
5852
|
-
...(input.StringNotLike
|
|
5853
|
-
input.StringNotLike !== null && {
|
|
5854
|
+
...(input.StringNotLike != null && {
|
|
5854
5855
|
StringNotLike: serializeAws_restJson1ConditionParameters(input.StringNotLike, context),
|
|
5855
5856
|
}),
|
|
5856
5857
|
};
|
|
5857
5858
|
};
|
|
5858
5859
|
const serializeAws_restJson1ControlInputParameter = (input, context) => {
|
|
5859
5860
|
return {
|
|
5860
|
-
...(input.ParameterName
|
|
5861
|
-
...(input.ParameterValue
|
|
5862
|
-
input.ParameterValue !== null && { ParameterValue: input.ParameterValue }),
|
|
5861
|
+
...(input.ParameterName != null && { ParameterName: input.ParameterName }),
|
|
5862
|
+
...(input.ParameterValue != null && { ParameterValue: input.ParameterValue }),
|
|
5863
5863
|
};
|
|
5864
5864
|
};
|
|
5865
5865
|
const serializeAws_restJson1ControlInputParameters = (input, context) => {
|
|
@@ -5874,24 +5874,19 @@ const serializeAws_restJson1ControlInputParameters = (input, context) => {
|
|
|
5874
5874
|
};
|
|
5875
5875
|
const serializeAws_restJson1ControlScope = (input, context) => {
|
|
5876
5876
|
return {
|
|
5877
|
-
...(input.ComplianceResourceIds
|
|
5878
|
-
input.ComplianceResourceIds !== null && {
|
|
5877
|
+
...(input.ComplianceResourceIds != null && {
|
|
5879
5878
|
ComplianceResourceIds: serializeAws_restJson1ComplianceResourceIdList(input.ComplianceResourceIds, context),
|
|
5880
5879
|
}),
|
|
5881
|
-
...(input.ComplianceResourceTypes
|
|
5882
|
-
input.ComplianceResourceTypes !== null && {
|
|
5880
|
+
...(input.ComplianceResourceTypes != null && {
|
|
5883
5881
|
ComplianceResourceTypes: serializeAws_restJson1ResourceTypeList(input.ComplianceResourceTypes, context),
|
|
5884
5882
|
}),
|
|
5885
|
-
...(input.Tags
|
|
5886
|
-
input.Tags !== null && { Tags: serializeAws_restJson1stringMap(input.Tags, context) }),
|
|
5883
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1stringMap(input.Tags, context) }),
|
|
5887
5884
|
};
|
|
5888
5885
|
};
|
|
5889
5886
|
const serializeAws_restJson1CopyAction = (input, context) => {
|
|
5890
5887
|
return {
|
|
5891
|
-
...(input.DestinationBackupVaultArn
|
|
5892
|
-
|
|
5893
|
-
...(input.Lifecycle !== undefined &&
|
|
5894
|
-
input.Lifecycle !== null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
5888
|
+
...(input.DestinationBackupVaultArn != null && { DestinationBackupVaultArn: input.DestinationBackupVaultArn }),
|
|
5889
|
+
...(input.Lifecycle != null && { Lifecycle: serializeAws_restJson1Lifecycle(input.Lifecycle, context) }),
|
|
5895
5890
|
};
|
|
5896
5891
|
};
|
|
5897
5892
|
const serializeAws_restJson1CopyActions = (input, context) => {
|
|
@@ -5916,13 +5911,13 @@ const serializeAws_restJson1FormatList = (input, context) => {
|
|
|
5916
5911
|
};
|
|
5917
5912
|
const serializeAws_restJson1FrameworkControl = (input, context) => {
|
|
5918
5913
|
return {
|
|
5919
|
-
...(input.ControlInputParameters
|
|
5920
|
-
input.ControlInputParameters !== null && {
|
|
5914
|
+
...(input.ControlInputParameters != null && {
|
|
5921
5915
|
ControlInputParameters: serializeAws_restJson1ControlInputParameters(input.ControlInputParameters, context),
|
|
5922
5916
|
}),
|
|
5923
|
-
...(input.ControlName
|
|
5924
|
-
...(input.ControlScope
|
|
5925
|
-
|
|
5917
|
+
...(input.ControlName != null && { ControlName: input.ControlName }),
|
|
5918
|
+
...(input.ControlScope != null && {
|
|
5919
|
+
ControlScope: serializeAws_restJson1ControlScope(input.ControlScope, context),
|
|
5920
|
+
}),
|
|
5926
5921
|
};
|
|
5927
5922
|
};
|
|
5928
5923
|
const serializeAws_restJson1FrameworkControls = (input, context) => {
|
|
@@ -5948,10 +5943,8 @@ const serializeAws_restJson1GlobalSettings = (input, context) => {
|
|
|
5948
5943
|
};
|
|
5949
5944
|
const serializeAws_restJson1Lifecycle = (input, context) => {
|
|
5950
5945
|
return {
|
|
5951
|
-
...(input.DeleteAfterDays
|
|
5952
|
-
|
|
5953
|
-
...(input.MoveToColdStorageAfterDays !== undefined &&
|
|
5954
|
-
input.MoveToColdStorageAfterDays !== null && { MoveToColdStorageAfterDays: input.MoveToColdStorageAfterDays }),
|
|
5946
|
+
...(input.DeleteAfterDays != null && { DeleteAfterDays: input.DeleteAfterDays }),
|
|
5947
|
+
...(input.MoveToColdStorageAfterDays != null && { MoveToColdStorageAfterDays: input.MoveToColdStorageAfterDays }),
|
|
5955
5948
|
};
|
|
5956
5949
|
};
|
|
5957
5950
|
const serializeAws_restJson1ListOfTags = (input, context) => {
|
|
@@ -5977,22 +5970,18 @@ const serializeAws_restJson1Metadata = (input, context) => {
|
|
|
5977
5970
|
};
|
|
5978
5971
|
const serializeAws_restJson1ReportDeliveryChannel = (input, context) => {
|
|
5979
5972
|
return {
|
|
5980
|
-
...(input.Formats
|
|
5981
|
-
|
|
5982
|
-
...(input.
|
|
5983
|
-
...(input.S3KeyPrefix !== undefined && input.S3KeyPrefix !== null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
5973
|
+
...(input.Formats != null && { Formats: serializeAws_restJson1FormatList(input.Formats, context) }),
|
|
5974
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
5975
|
+
...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
|
|
5984
5976
|
};
|
|
5985
5977
|
};
|
|
5986
5978
|
const serializeAws_restJson1ReportSetting = (input, context) => {
|
|
5987
5979
|
return {
|
|
5988
|
-
...(input.FrameworkArns
|
|
5989
|
-
input.FrameworkArns !== null && {
|
|
5980
|
+
...(input.FrameworkArns != null && {
|
|
5990
5981
|
FrameworkArns: serializeAws_restJson1stringList(input.FrameworkArns, context),
|
|
5991
5982
|
}),
|
|
5992
|
-
...(input.NumberOfFrameworks
|
|
5993
|
-
|
|
5994
|
-
...(input.ReportTemplate !== undefined &&
|
|
5995
|
-
input.ReportTemplate !== null && { ReportTemplate: input.ReportTemplate }),
|
|
5983
|
+
...(input.NumberOfFrameworks != null && { NumberOfFrameworks: input.NumberOfFrameworks }),
|
|
5984
|
+
...(input.ReportTemplate != null && { ReportTemplate: input.ReportTemplate }),
|
|
5996
5985
|
};
|
|
5997
5986
|
};
|
|
5998
5987
|
const serializeAws_restJson1ResourceArns = (input, context) => {
|
|
@@ -6081,9 +6070,7 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
6081
6070
|
};
|
|
6082
6071
|
const deserializeAws_restJson1AdvancedBackupSetting = (output, context) => {
|
|
6083
6072
|
return {
|
|
6084
|
-
BackupOptions: output.BackupOptions
|
|
6085
|
-
? deserializeAws_restJson1BackupOptions(output.BackupOptions, context)
|
|
6086
|
-
: undefined,
|
|
6073
|
+
BackupOptions: output.BackupOptions != null ? deserializeAws_restJson1BackupOptions(output.BackupOptions, context) : undefined,
|
|
6087
6074
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
6088
6075
|
};
|
|
6089
6076
|
};
|
|
@@ -6102,24 +6089,20 @@ const deserializeAws_restJson1BackupJob = (output, context) => {
|
|
|
6102
6089
|
return {
|
|
6103
6090
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
6104
6091
|
BackupJobId: (0, smithy_client_1.expectString)(output.BackupJobId),
|
|
6105
|
-
BackupOptions: output.BackupOptions
|
|
6106
|
-
? deserializeAws_restJson1BackupOptions(output.BackupOptions, context)
|
|
6107
|
-
: undefined,
|
|
6092
|
+
BackupOptions: output.BackupOptions != null ? deserializeAws_restJson1BackupOptions(output.BackupOptions, context) : undefined,
|
|
6108
6093
|
BackupSizeInBytes: (0, smithy_client_1.expectLong)(output.BackupSizeInBytes),
|
|
6109
6094
|
BackupType: (0, smithy_client_1.expectString)(output.BackupType),
|
|
6110
6095
|
BackupVaultArn: (0, smithy_client_1.expectString)(output.BackupVaultArn),
|
|
6111
6096
|
BackupVaultName: (0, smithy_client_1.expectString)(output.BackupVaultName),
|
|
6112
6097
|
BytesTransferred: (0, smithy_client_1.expectLong)(output.BytesTransferred),
|
|
6113
|
-
CompletionDate: output.CompletionDate
|
|
6098
|
+
CompletionDate: output.CompletionDate != null
|
|
6114
6099
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDate)))
|
|
6115
6100
|
: undefined,
|
|
6116
|
-
CreatedBy: output.CreatedBy
|
|
6117
|
-
|
|
6118
|
-
: undefined,
|
|
6119
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
6101
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context) : undefined,
|
|
6102
|
+
CreationDate: output.CreationDate != null
|
|
6120
6103
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
6121
6104
|
: undefined,
|
|
6122
|
-
ExpectedCompletionDate: output.ExpectedCompletionDate
|
|
6105
|
+
ExpectedCompletionDate: output.ExpectedCompletionDate != null
|
|
6123
6106
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpectedCompletionDate)))
|
|
6124
6107
|
: undefined,
|
|
6125
6108
|
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
@@ -6127,9 +6110,7 @@ const deserializeAws_restJson1BackupJob = (output, context) => {
|
|
|
6127
6110
|
RecoveryPointArn: (0, smithy_client_1.expectString)(output.RecoveryPointArn),
|
|
6128
6111
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
6129
6112
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
6130
|
-
StartBy: output.StartBy
|
|
6131
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartBy)))
|
|
6132
|
-
: undefined,
|
|
6113
|
+
StartBy: output.StartBy != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartBy))) : undefined,
|
|
6133
6114
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
6134
6115
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
6135
6116
|
};
|
|
@@ -6158,13 +6139,11 @@ const deserializeAws_restJson1BackupOptions = (output, context) => {
|
|
|
6158
6139
|
};
|
|
6159
6140
|
const deserializeAws_restJson1BackupPlan = (output, context) => {
|
|
6160
6141
|
return {
|
|
6161
|
-
AdvancedBackupSettings: output.AdvancedBackupSettings
|
|
6142
|
+
AdvancedBackupSettings: output.AdvancedBackupSettings != null
|
|
6162
6143
|
? deserializeAws_restJson1AdvancedBackupSettings(output.AdvancedBackupSettings, context)
|
|
6163
6144
|
: undefined,
|
|
6164
6145
|
BackupPlanName: (0, smithy_client_1.expectString)(output.BackupPlanName),
|
|
6165
|
-
Rules: output.Rules
|
|
6166
|
-
? deserializeAws_restJson1BackupRules(output.Rules, context)
|
|
6167
|
-
: undefined,
|
|
6146
|
+
Rules: output.Rules != null ? deserializeAws_restJson1BackupRules(output.Rules, context) : undefined,
|
|
6168
6147
|
};
|
|
6169
6148
|
};
|
|
6170
6149
|
const deserializeAws_restJson1BackupPlansList = (output, context) => {
|
|
@@ -6180,20 +6159,20 @@ const deserializeAws_restJson1BackupPlansList = (output, context) => {
|
|
|
6180
6159
|
};
|
|
6181
6160
|
const deserializeAws_restJson1BackupPlansListMember = (output, context) => {
|
|
6182
6161
|
return {
|
|
6183
|
-
AdvancedBackupSettings: output.AdvancedBackupSettings
|
|
6162
|
+
AdvancedBackupSettings: output.AdvancedBackupSettings != null
|
|
6184
6163
|
? deserializeAws_restJson1AdvancedBackupSettings(output.AdvancedBackupSettings, context)
|
|
6185
6164
|
: undefined,
|
|
6186
6165
|
BackupPlanArn: (0, smithy_client_1.expectString)(output.BackupPlanArn),
|
|
6187
6166
|
BackupPlanId: (0, smithy_client_1.expectString)(output.BackupPlanId),
|
|
6188
6167
|
BackupPlanName: (0, smithy_client_1.expectString)(output.BackupPlanName),
|
|
6189
|
-
CreationDate: output.CreationDate
|
|
6168
|
+
CreationDate: output.CreationDate != null
|
|
6190
6169
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
6191
6170
|
: undefined,
|
|
6192
6171
|
CreatorRequestId: (0, smithy_client_1.expectString)(output.CreatorRequestId),
|
|
6193
|
-
DeletionDate: output.DeletionDate
|
|
6172
|
+
DeletionDate: output.DeletionDate != null
|
|
6194
6173
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletionDate)))
|
|
6195
6174
|
: undefined,
|
|
6196
|
-
LastExecutionDate: output.LastExecutionDate
|
|
6175
|
+
LastExecutionDate: output.LastExecutionDate != null
|
|
6197
6176
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastExecutionDate)))
|
|
6198
6177
|
: undefined,
|
|
6199
6178
|
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
@@ -6230,16 +6209,10 @@ const deserializeAws_restJson1BackupPlanVersionsList = (output, context) => {
|
|
|
6230
6209
|
const deserializeAws_restJson1BackupRule = (output, context) => {
|
|
6231
6210
|
return {
|
|
6232
6211
|
CompletionWindowMinutes: (0, smithy_client_1.expectLong)(output.CompletionWindowMinutes),
|
|
6233
|
-
CopyActions: output.CopyActions
|
|
6234
|
-
? deserializeAws_restJson1CopyActions(output.CopyActions, context)
|
|
6235
|
-
: undefined,
|
|
6212
|
+
CopyActions: output.CopyActions != null ? deserializeAws_restJson1CopyActions(output.CopyActions, context) : undefined,
|
|
6236
6213
|
EnableContinuousBackup: (0, smithy_client_1.expectBoolean)(output.EnableContinuousBackup),
|
|
6237
|
-
Lifecycle: output.Lifecycle
|
|
6238
|
-
|
|
6239
|
-
: undefined,
|
|
6240
|
-
RecoveryPointTags: output.RecoveryPointTags !== undefined && output.RecoveryPointTags !== null
|
|
6241
|
-
? deserializeAws_restJson1Tags(output.RecoveryPointTags, context)
|
|
6242
|
-
: undefined,
|
|
6214
|
+
Lifecycle: output.Lifecycle != null ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context) : undefined,
|
|
6215
|
+
RecoveryPointTags: output.RecoveryPointTags != null ? deserializeAws_restJson1Tags(output.RecoveryPointTags, context) : undefined,
|
|
6243
6216
|
RuleId: (0, smithy_client_1.expectString)(output.RuleId),
|
|
6244
6217
|
RuleName: (0, smithy_client_1.expectString)(output.RuleName),
|
|
6245
6218
|
ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
|
|
@@ -6260,19 +6233,11 @@ const deserializeAws_restJson1BackupRules = (output, context) => {
|
|
|
6260
6233
|
};
|
|
6261
6234
|
const deserializeAws_restJson1BackupSelection = (output, context) => {
|
|
6262
6235
|
return {
|
|
6263
|
-
Conditions: output.Conditions
|
|
6264
|
-
? deserializeAws_restJson1Conditions(output.Conditions, context)
|
|
6265
|
-
: undefined,
|
|
6236
|
+
Conditions: output.Conditions != null ? deserializeAws_restJson1Conditions(output.Conditions, context) : undefined,
|
|
6266
6237
|
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
6267
|
-
ListOfTags: output.ListOfTags
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
NotResources: output.NotResources !== undefined && output.NotResources !== null
|
|
6271
|
-
? deserializeAws_restJson1ResourceArns(output.NotResources, context)
|
|
6272
|
-
: undefined,
|
|
6273
|
-
Resources: output.Resources !== undefined && output.Resources !== null
|
|
6274
|
-
? deserializeAws_restJson1ResourceArns(output.Resources, context)
|
|
6275
|
-
: undefined,
|
|
6238
|
+
ListOfTags: output.ListOfTags != null ? deserializeAws_restJson1ListOfTags(output.ListOfTags, context) : undefined,
|
|
6239
|
+
NotResources: output.NotResources != null ? deserializeAws_restJson1ResourceArns(output.NotResources, context) : undefined,
|
|
6240
|
+
Resources: output.Resources != null ? deserializeAws_restJson1ResourceArns(output.Resources, context) : undefined,
|
|
6276
6241
|
SelectionName: (0, smithy_client_1.expectString)(output.SelectionName),
|
|
6277
6242
|
};
|
|
6278
6243
|
};
|
|
@@ -6290,7 +6255,7 @@ const deserializeAws_restJson1BackupSelectionsList = (output, context) => {
|
|
|
6290
6255
|
const deserializeAws_restJson1BackupSelectionsListMember = (output, context) => {
|
|
6291
6256
|
return {
|
|
6292
6257
|
BackupPlanId: (0, smithy_client_1.expectString)(output.BackupPlanId),
|
|
6293
|
-
CreationDate: output.CreationDate
|
|
6258
|
+
CreationDate: output.CreationDate != null
|
|
6294
6259
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
6295
6260
|
: undefined,
|
|
6296
6261
|
CreatorRequestId: (0, smithy_client_1.expectString)(output.CreatorRequestId),
|
|
@@ -6325,14 +6290,12 @@ const deserializeAws_restJson1BackupVaultListMember = (output, context) => {
|
|
|
6325
6290
|
return {
|
|
6326
6291
|
BackupVaultArn: (0, smithy_client_1.expectString)(output.BackupVaultArn),
|
|
6327
6292
|
BackupVaultName: (0, smithy_client_1.expectString)(output.BackupVaultName),
|
|
6328
|
-
CreationDate: output.CreationDate
|
|
6293
|
+
CreationDate: output.CreationDate != null
|
|
6329
6294
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
6330
6295
|
: undefined,
|
|
6331
6296
|
CreatorRequestId: (0, smithy_client_1.expectString)(output.CreatorRequestId),
|
|
6332
6297
|
EncryptionKeyArn: (0, smithy_client_1.expectString)(output.EncryptionKeyArn),
|
|
6333
|
-
LockDate: output.LockDate
|
|
6334
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LockDate)))
|
|
6335
|
-
: undefined,
|
|
6298
|
+
LockDate: output.LockDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LockDate))) : undefined,
|
|
6336
6299
|
Locked: (0, smithy_client_1.expectBoolean)(output.Locked),
|
|
6337
6300
|
MaxRetentionDays: (0, smithy_client_1.expectLong)(output.MaxRetentionDays),
|
|
6338
6301
|
MinRetentionDays: (0, smithy_client_1.expectLong)(output.MinRetentionDays),
|
|
@@ -6341,10 +6304,8 @@ const deserializeAws_restJson1BackupVaultListMember = (output, context) => {
|
|
|
6341
6304
|
};
|
|
6342
6305
|
const deserializeAws_restJson1CalculatedLifecycle = (output, context) => {
|
|
6343
6306
|
return {
|
|
6344
|
-
DeleteAt: output.DeleteAt
|
|
6345
|
-
|
|
6346
|
-
: undefined,
|
|
6347
|
-
MoveToColdStorageAt: output.MoveToColdStorageAt !== undefined && output.MoveToColdStorageAt !== null
|
|
6307
|
+
DeleteAt: output.DeleteAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeleteAt))) : undefined,
|
|
6308
|
+
MoveToColdStorageAt: output.MoveToColdStorageAt != null
|
|
6348
6309
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.MoveToColdStorageAt)))
|
|
6349
6310
|
: undefined,
|
|
6350
6311
|
};
|
|
@@ -6386,16 +6347,14 @@ const deserializeAws_restJson1ConditionParameters = (output, context) => {
|
|
|
6386
6347
|
};
|
|
6387
6348
|
const deserializeAws_restJson1Conditions = (output, context) => {
|
|
6388
6349
|
return {
|
|
6389
|
-
StringEquals: output.StringEquals
|
|
6350
|
+
StringEquals: output.StringEquals != null
|
|
6390
6351
|
? deserializeAws_restJson1ConditionParameters(output.StringEquals, context)
|
|
6391
6352
|
: undefined,
|
|
6392
|
-
StringLike: output.StringLike
|
|
6393
|
-
|
|
6394
|
-
: undefined,
|
|
6395
|
-
StringNotEquals: output.StringNotEquals !== undefined && output.StringNotEquals !== null
|
|
6353
|
+
StringLike: output.StringLike != null ? deserializeAws_restJson1ConditionParameters(output.StringLike, context) : undefined,
|
|
6354
|
+
StringNotEquals: output.StringNotEquals != null
|
|
6396
6355
|
? deserializeAws_restJson1ConditionParameters(output.StringNotEquals, context)
|
|
6397
6356
|
: undefined,
|
|
6398
|
-
StringNotLike: output.StringNotLike
|
|
6357
|
+
StringNotLike: output.StringNotLike != null
|
|
6399
6358
|
? deserializeAws_restJson1ConditionParameters(output.StringNotLike, context)
|
|
6400
6359
|
: undefined,
|
|
6401
6360
|
};
|
|
@@ -6419,23 +6378,19 @@ const deserializeAws_restJson1ControlInputParameters = (output, context) => {
|
|
|
6419
6378
|
};
|
|
6420
6379
|
const deserializeAws_restJson1ControlScope = (output, context) => {
|
|
6421
6380
|
return {
|
|
6422
|
-
ComplianceResourceIds: output.ComplianceResourceIds
|
|
6381
|
+
ComplianceResourceIds: output.ComplianceResourceIds != null
|
|
6423
6382
|
? deserializeAws_restJson1ComplianceResourceIdList(output.ComplianceResourceIds, context)
|
|
6424
6383
|
: undefined,
|
|
6425
|
-
ComplianceResourceTypes: output.ComplianceResourceTypes
|
|
6384
|
+
ComplianceResourceTypes: output.ComplianceResourceTypes != null
|
|
6426
6385
|
? deserializeAws_restJson1ResourceTypeList(output.ComplianceResourceTypes, context)
|
|
6427
6386
|
: undefined,
|
|
6428
|
-
Tags: output.Tags
|
|
6429
|
-
? deserializeAws_restJson1stringMap(output.Tags, context)
|
|
6430
|
-
: undefined,
|
|
6387
|
+
Tags: output.Tags != null ? deserializeAws_restJson1stringMap(output.Tags, context) : undefined,
|
|
6431
6388
|
};
|
|
6432
6389
|
};
|
|
6433
6390
|
const deserializeAws_restJson1CopyAction = (output, context) => {
|
|
6434
6391
|
return {
|
|
6435
6392
|
DestinationBackupVaultArn: (0, smithy_client_1.expectString)(output.DestinationBackupVaultArn),
|
|
6436
|
-
Lifecycle: output.Lifecycle
|
|
6437
|
-
? deserializeAws_restJson1Lifecycle(output.Lifecycle, context)
|
|
6438
|
-
: undefined,
|
|
6393
|
+
Lifecycle: output.Lifecycle != null ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context) : undefined,
|
|
6439
6394
|
};
|
|
6440
6395
|
};
|
|
6441
6396
|
const deserializeAws_restJson1CopyActions = (output, context) => {
|
|
@@ -6453,14 +6408,12 @@ const deserializeAws_restJson1CopyJob = (output, context) => {
|
|
|
6453
6408
|
return {
|
|
6454
6409
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
6455
6410
|
BackupSizeInBytes: (0, smithy_client_1.expectLong)(output.BackupSizeInBytes),
|
|
6456
|
-
CompletionDate: output.CompletionDate
|
|
6411
|
+
CompletionDate: output.CompletionDate != null
|
|
6457
6412
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDate)))
|
|
6458
6413
|
: undefined,
|
|
6459
6414
|
CopyJobId: (0, smithy_client_1.expectString)(output.CopyJobId),
|
|
6460
|
-
CreatedBy: output.CreatedBy
|
|
6461
|
-
|
|
6462
|
-
: undefined,
|
|
6463
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
6415
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context) : undefined,
|
|
6416
|
+
CreationDate: output.CreationDate != null
|
|
6464
6417
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
6465
6418
|
: undefined,
|
|
6466
6419
|
DestinationBackupVaultArn: (0, smithy_client_1.expectString)(output.DestinationBackupVaultArn),
|
|
@@ -6498,7 +6451,7 @@ const deserializeAws_restJson1FormatList = (output, context) => {
|
|
|
6498
6451
|
};
|
|
6499
6452
|
const deserializeAws_restJson1Framework = (output, context) => {
|
|
6500
6453
|
return {
|
|
6501
|
-
CreationTime: output.CreationTime
|
|
6454
|
+
CreationTime: output.CreationTime != null
|
|
6502
6455
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
6503
6456
|
: undefined,
|
|
6504
6457
|
DeploymentStatus: (0, smithy_client_1.expectString)(output.DeploymentStatus),
|
|
@@ -6510,13 +6463,11 @@ const deserializeAws_restJson1Framework = (output, context) => {
|
|
|
6510
6463
|
};
|
|
6511
6464
|
const deserializeAws_restJson1FrameworkControl = (output, context) => {
|
|
6512
6465
|
return {
|
|
6513
|
-
ControlInputParameters: output.ControlInputParameters
|
|
6466
|
+
ControlInputParameters: output.ControlInputParameters != null
|
|
6514
6467
|
? deserializeAws_restJson1ControlInputParameters(output.ControlInputParameters, context)
|
|
6515
6468
|
: undefined,
|
|
6516
6469
|
ControlName: (0, smithy_client_1.expectString)(output.ControlName),
|
|
6517
|
-
ControlScope: output.ControlScope
|
|
6518
|
-
? deserializeAws_restJson1ControlScope(output.ControlScope, context)
|
|
6519
|
-
: undefined,
|
|
6470
|
+
ControlScope: output.ControlScope != null ? deserializeAws_restJson1ControlScope(output.ControlScope, context) : undefined,
|
|
6520
6471
|
};
|
|
6521
6472
|
};
|
|
6522
6473
|
const deserializeAws_restJson1FrameworkControls = (output, context) => {
|
|
@@ -6582,7 +6533,7 @@ const deserializeAws_restJson1Metadata = (output, context) => {
|
|
|
6582
6533
|
};
|
|
6583
6534
|
const deserializeAws_restJson1ProtectedResource = (output, context) => {
|
|
6584
6535
|
return {
|
|
6585
|
-
LastBackupTime: output.LastBackupTime
|
|
6536
|
+
LastBackupTime: output.LastBackupTime != null
|
|
6586
6537
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastBackupTime)))
|
|
6587
6538
|
: undefined,
|
|
6588
6539
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
@@ -6605,27 +6556,23 @@ const deserializeAws_restJson1RecoveryPointByBackupVault = (output, context) =>
|
|
|
6605
6556
|
BackupSizeInBytes: (0, smithy_client_1.expectLong)(output.BackupSizeInBytes),
|
|
6606
6557
|
BackupVaultArn: (0, smithy_client_1.expectString)(output.BackupVaultArn),
|
|
6607
6558
|
BackupVaultName: (0, smithy_client_1.expectString)(output.BackupVaultName),
|
|
6608
|
-
CalculatedLifecycle: output.CalculatedLifecycle
|
|
6559
|
+
CalculatedLifecycle: output.CalculatedLifecycle != null
|
|
6609
6560
|
? deserializeAws_restJson1CalculatedLifecycle(output.CalculatedLifecycle, context)
|
|
6610
6561
|
: undefined,
|
|
6611
|
-
CompletionDate: output.CompletionDate
|
|
6562
|
+
CompletionDate: output.CompletionDate != null
|
|
6612
6563
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDate)))
|
|
6613
6564
|
: undefined,
|
|
6614
|
-
CreatedBy: output.CreatedBy
|
|
6615
|
-
|
|
6616
|
-
: undefined,
|
|
6617
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
6565
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1RecoveryPointCreator(output.CreatedBy, context) : undefined,
|
|
6566
|
+
CreationDate: output.CreationDate != null
|
|
6618
6567
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
6619
6568
|
: undefined,
|
|
6620
6569
|
EncryptionKeyArn: (0, smithy_client_1.expectString)(output.EncryptionKeyArn),
|
|
6621
6570
|
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
6622
6571
|
IsEncrypted: (0, smithy_client_1.expectBoolean)(output.IsEncrypted),
|
|
6623
|
-
LastRestoreTime: output.LastRestoreTime
|
|
6572
|
+
LastRestoreTime: output.LastRestoreTime != null
|
|
6624
6573
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRestoreTime)))
|
|
6625
6574
|
: undefined,
|
|
6626
|
-
Lifecycle: output.Lifecycle
|
|
6627
|
-
? deserializeAws_restJson1Lifecycle(output.Lifecycle, context)
|
|
6628
|
-
: undefined,
|
|
6575
|
+
Lifecycle: output.Lifecycle != null ? deserializeAws_restJson1Lifecycle(output.Lifecycle, context) : undefined,
|
|
6629
6576
|
RecoveryPointArn: (0, smithy_client_1.expectString)(output.RecoveryPointArn),
|
|
6630
6577
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
6631
6578
|
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
@@ -6649,7 +6596,7 @@ const deserializeAws_restJson1RecoveryPointByResource = (output, context) => {
|
|
|
6649
6596
|
return {
|
|
6650
6597
|
BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes),
|
|
6651
6598
|
BackupVaultName: (0, smithy_client_1.expectString)(output.BackupVaultName),
|
|
6652
|
-
CreationDate: output.CreationDate
|
|
6599
|
+
CreationDate: output.CreationDate != null
|
|
6653
6600
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
6654
6601
|
: undefined,
|
|
6655
6602
|
EncryptionKeyArn: (0, smithy_client_1.expectString)(output.EncryptionKeyArn),
|
|
@@ -6679,9 +6626,7 @@ const deserializeAws_restJson1RecoveryPointCreator = (output, context) => {
|
|
|
6679
6626
|
};
|
|
6680
6627
|
const deserializeAws_restJson1ReportDeliveryChannel = (output, context) => {
|
|
6681
6628
|
return {
|
|
6682
|
-
Formats: output.Formats
|
|
6683
|
-
? deserializeAws_restJson1FormatList(output.Formats, context)
|
|
6684
|
-
: undefined,
|
|
6629
|
+
Formats: output.Formats != null ? deserializeAws_restJson1FormatList(output.Formats, context) : undefined,
|
|
6685
6630
|
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
6686
6631
|
S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix),
|
|
6687
6632
|
};
|
|
@@ -6689,20 +6634,18 @@ const deserializeAws_restJson1ReportDeliveryChannel = (output, context) => {
|
|
|
6689
6634
|
const deserializeAws_restJson1ReportDestination = (output, context) => {
|
|
6690
6635
|
return {
|
|
6691
6636
|
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
6692
|
-
S3Keys: output.S3Keys
|
|
6693
|
-
? deserializeAws_restJson1stringList(output.S3Keys, context)
|
|
6694
|
-
: undefined,
|
|
6637
|
+
S3Keys: output.S3Keys != null ? deserializeAws_restJson1stringList(output.S3Keys, context) : undefined,
|
|
6695
6638
|
};
|
|
6696
6639
|
};
|
|
6697
6640
|
const deserializeAws_restJson1ReportJob = (output, context) => {
|
|
6698
6641
|
return {
|
|
6699
|
-
CompletionTime: output.CompletionTime
|
|
6642
|
+
CompletionTime: output.CompletionTime != null
|
|
6700
6643
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionTime)))
|
|
6701
6644
|
: undefined,
|
|
6702
|
-
CreationTime: output.CreationTime
|
|
6645
|
+
CreationTime: output.CreationTime != null
|
|
6703
6646
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
6704
6647
|
: undefined,
|
|
6705
|
-
ReportDestination: output.ReportDestination
|
|
6648
|
+
ReportDestination: output.ReportDestination != null
|
|
6706
6649
|
? deserializeAws_restJson1ReportDestination(output.ReportDestination, context)
|
|
6707
6650
|
: undefined,
|
|
6708
6651
|
ReportJobId: (0, smithy_client_1.expectString)(output.ReportJobId),
|
|
@@ -6725,25 +6668,23 @@ const deserializeAws_restJson1ReportJobList = (output, context) => {
|
|
|
6725
6668
|
};
|
|
6726
6669
|
const deserializeAws_restJson1ReportPlan = (output, context) => {
|
|
6727
6670
|
return {
|
|
6728
|
-
CreationTime: output.CreationTime
|
|
6671
|
+
CreationTime: output.CreationTime != null
|
|
6729
6672
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
6730
6673
|
: undefined,
|
|
6731
6674
|
DeploymentStatus: (0, smithy_client_1.expectString)(output.DeploymentStatus),
|
|
6732
|
-
LastAttemptedExecutionTime: output.LastAttemptedExecutionTime
|
|
6675
|
+
LastAttemptedExecutionTime: output.LastAttemptedExecutionTime != null
|
|
6733
6676
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAttemptedExecutionTime)))
|
|
6734
6677
|
: undefined,
|
|
6735
|
-
LastSuccessfulExecutionTime: output.LastSuccessfulExecutionTime
|
|
6678
|
+
LastSuccessfulExecutionTime: output.LastSuccessfulExecutionTime != null
|
|
6736
6679
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSuccessfulExecutionTime)))
|
|
6737
6680
|
: undefined,
|
|
6738
|
-
ReportDeliveryChannel: output.ReportDeliveryChannel
|
|
6681
|
+
ReportDeliveryChannel: output.ReportDeliveryChannel != null
|
|
6739
6682
|
? deserializeAws_restJson1ReportDeliveryChannel(output.ReportDeliveryChannel, context)
|
|
6740
6683
|
: undefined,
|
|
6741
6684
|
ReportPlanArn: (0, smithy_client_1.expectString)(output.ReportPlanArn),
|
|
6742
6685
|
ReportPlanDescription: (0, smithy_client_1.expectString)(output.ReportPlanDescription),
|
|
6743
6686
|
ReportPlanName: (0, smithy_client_1.expectString)(output.ReportPlanName),
|
|
6744
|
-
ReportSetting: output.ReportSetting
|
|
6745
|
-
? deserializeAws_restJson1ReportSetting(output.ReportSetting, context)
|
|
6746
|
-
: undefined,
|
|
6687
|
+
ReportSetting: output.ReportSetting != null ? deserializeAws_restJson1ReportSetting(output.ReportSetting, context) : undefined,
|
|
6747
6688
|
};
|
|
6748
6689
|
};
|
|
6749
6690
|
const deserializeAws_restJson1ReportPlanList = (output, context) => {
|
|
@@ -6759,9 +6700,7 @@ const deserializeAws_restJson1ReportPlanList = (output, context) => {
|
|
|
6759
6700
|
};
|
|
6760
6701
|
const deserializeAws_restJson1ReportSetting = (output, context) => {
|
|
6761
6702
|
return {
|
|
6762
|
-
FrameworkArns: output.FrameworkArns
|
|
6763
|
-
? deserializeAws_restJson1stringList(output.FrameworkArns, context)
|
|
6764
|
-
: undefined,
|
|
6703
|
+
FrameworkArns: output.FrameworkArns != null ? deserializeAws_restJson1stringList(output.FrameworkArns, context) : undefined,
|
|
6765
6704
|
NumberOfFrameworks: (0, smithy_client_1.expectInt32)(output.NumberOfFrameworks),
|
|
6766
6705
|
ReportTemplate: (0, smithy_client_1.expectString)(output.ReportTemplate),
|
|
6767
6706
|
};
|
|
@@ -6836,11 +6775,11 @@ const deserializeAws_restJson1RestoreJobsListMember = (output, context) => {
|
|
|
6836
6775
|
return {
|
|
6837
6776
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
6838
6777
|
BackupSizeInBytes: (0, smithy_client_1.expectLong)(output.BackupSizeInBytes),
|
|
6839
|
-
CompletionDate: output.CompletionDate
|
|
6778
|
+
CompletionDate: output.CompletionDate != null
|
|
6840
6779
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDate)))
|
|
6841
6780
|
: undefined,
|
|
6842
6781
|
CreatedResourceArn: (0, smithy_client_1.expectString)(output.CreatedResourceArn),
|
|
6843
|
-
CreationDate: output.CreationDate
|
|
6782
|
+
CreationDate: output.CreationDate != null
|
|
6844
6783
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
6845
6784
|
: undefined,
|
|
6846
6785
|
ExpectedCompletionTimeMinutes: (0, smithy_client_1.expectLong)(output.ExpectedCompletionTimeMinutes),
|
|
@@ -6935,5 +6874,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6935
6874
|
if (data["__type"] !== undefined) {
|
|
6936
6875
|
return sanitizeErrorCode(data["__type"]);
|
|
6937
6876
|
}
|
|
6938
|
-
return "";
|
|
6939
6877
|
};
|