@aws-sdk/client-backup 3.928.0 → 3.930.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.
Files changed (123) hide show
  1. package/dist-cjs/index.js +4508 -4514
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/BackupClient.js +2 -0
  4. package/dist-es/commands/AssociateBackupVaultMpaApprovalTeamCommand.js +3 -10
  5. package/dist-es/commands/CancelLegalHoldCommand.js +3 -9
  6. package/dist-es/commands/CreateBackupPlanCommand.js +3 -10
  7. package/dist-es/commands/CreateBackupSelectionCommand.js +3 -9
  8. package/dist-es/commands/CreateBackupVaultCommand.js +3 -10
  9. package/dist-es/commands/CreateFrameworkCommand.js +3 -9
  10. package/dist-es/commands/CreateLegalHoldCommand.js +3 -10
  11. package/dist-es/commands/CreateLogicallyAirGappedBackupVaultCommand.js +3 -10
  12. package/dist-es/commands/CreateReportPlanCommand.js +3 -9
  13. package/dist-es/commands/CreateRestoreAccessBackupVaultCommand.js +3 -10
  14. package/dist-es/commands/CreateRestoreTestingPlanCommand.js +3 -10
  15. package/dist-es/commands/CreateRestoreTestingSelectionCommand.js +3 -10
  16. package/dist-es/commands/DeleteBackupPlanCommand.js +3 -9
  17. package/dist-es/commands/DeleteBackupSelectionCommand.js +3 -9
  18. package/dist-es/commands/DeleteBackupVaultAccessPolicyCommand.js +3 -9
  19. package/dist-es/commands/DeleteBackupVaultCommand.js +3 -9
  20. package/dist-es/commands/DeleteBackupVaultLockConfigurationCommand.js +3 -9
  21. package/dist-es/commands/DeleteBackupVaultNotificationsCommand.js +3 -9
  22. package/dist-es/commands/DeleteFrameworkCommand.js +3 -9
  23. package/dist-es/commands/DeleteRecoveryPointCommand.js +3 -9
  24. package/dist-es/commands/DeleteReportPlanCommand.js +3 -9
  25. package/dist-es/commands/DeleteRestoreTestingPlanCommand.js +3 -9
  26. package/dist-es/commands/DeleteRestoreTestingSelectionCommand.js +3 -9
  27. package/dist-es/commands/DescribeBackupJobCommand.js +3 -9
  28. package/dist-es/commands/DescribeBackupVaultCommand.js +3 -9
  29. package/dist-es/commands/DescribeCopyJobCommand.js +3 -9
  30. package/dist-es/commands/DescribeFrameworkCommand.js +3 -9
  31. package/dist-es/commands/DescribeGlobalSettingsCommand.js +3 -9
  32. package/dist-es/commands/DescribeProtectedResourceCommand.js +3 -9
  33. package/dist-es/commands/DescribeRecoveryPointCommand.js +3 -9
  34. package/dist-es/commands/DescribeRegionSettingsCommand.js +3 -9
  35. package/dist-es/commands/DescribeReportJobCommand.js +3 -9
  36. package/dist-es/commands/DescribeReportPlanCommand.js +3 -9
  37. package/dist-es/commands/DescribeRestoreJobCommand.js +3 -9
  38. package/dist-es/commands/DisassociateBackupVaultMpaApprovalTeamCommand.js +3 -10
  39. package/dist-es/commands/DisassociateRecoveryPointCommand.js +3 -9
  40. package/dist-es/commands/DisassociateRecoveryPointFromParentCommand.js +3 -9
  41. package/dist-es/commands/ExportBackupPlanTemplateCommand.js +3 -9
  42. package/dist-es/commands/GetBackupPlanCommand.js +3 -10
  43. package/dist-es/commands/GetBackupPlanFromJSONCommand.js +3 -10
  44. package/dist-es/commands/GetBackupPlanFromTemplateCommand.js +3 -10
  45. package/dist-es/commands/GetBackupSelectionCommand.js +3 -9
  46. package/dist-es/commands/GetBackupVaultAccessPolicyCommand.js +3 -9
  47. package/dist-es/commands/GetBackupVaultNotificationsCommand.js +3 -9
  48. package/dist-es/commands/GetLegalHoldCommand.js +3 -9
  49. package/dist-es/commands/GetRecoveryPointIndexDetailsCommand.js +3 -9
  50. package/dist-es/commands/GetRecoveryPointRestoreMetadataCommand.js +3 -10
  51. package/dist-es/commands/GetRestoreJobMetadataCommand.js +3 -10
  52. package/dist-es/commands/GetRestoreTestingInferredMetadataCommand.js +3 -9
  53. package/dist-es/commands/GetRestoreTestingPlanCommand.js +3 -9
  54. package/dist-es/commands/GetRestoreTestingSelectionCommand.js +3 -10
  55. package/dist-es/commands/GetSupportedResourceTypesCommand.js +3 -9
  56. package/dist-es/commands/ListBackupJobSummariesCommand.js +3 -9
  57. package/dist-es/commands/ListBackupJobsCommand.js +3 -9
  58. package/dist-es/commands/ListBackupPlanTemplatesCommand.js +3 -9
  59. package/dist-es/commands/ListBackupPlanVersionsCommand.js +3 -9
  60. package/dist-es/commands/ListBackupPlansCommand.js +3 -9
  61. package/dist-es/commands/ListBackupSelectionsCommand.js +3 -9
  62. package/dist-es/commands/ListBackupVaultsCommand.js +3 -9
  63. package/dist-es/commands/ListCopyJobSummariesCommand.js +3 -9
  64. package/dist-es/commands/ListCopyJobsCommand.js +3 -9
  65. package/dist-es/commands/ListFrameworksCommand.js +3 -9
  66. package/dist-es/commands/ListIndexedRecoveryPointsCommand.js +3 -9
  67. package/dist-es/commands/ListLegalHoldsCommand.js +3 -9
  68. package/dist-es/commands/ListProtectedResourcesByBackupVaultCommand.js +3 -9
  69. package/dist-es/commands/ListProtectedResourcesCommand.js +3 -9
  70. package/dist-es/commands/ListRecoveryPointsByBackupVaultCommand.js +3 -9
  71. package/dist-es/commands/ListRecoveryPointsByLegalHoldCommand.js +3 -9
  72. package/dist-es/commands/ListRecoveryPointsByResourceCommand.js +3 -9
  73. package/dist-es/commands/ListReportJobsCommand.js +3 -9
  74. package/dist-es/commands/ListReportPlansCommand.js +3 -9
  75. package/dist-es/commands/ListRestoreAccessBackupVaultsCommand.js +3 -9
  76. package/dist-es/commands/ListRestoreJobSummariesCommand.js +3 -9
  77. package/dist-es/commands/ListRestoreJobsByProtectedResourceCommand.js +3 -9
  78. package/dist-es/commands/ListRestoreJobsCommand.js +3 -9
  79. package/dist-es/commands/ListRestoreTestingPlansCommand.js +3 -9
  80. package/dist-es/commands/ListRestoreTestingSelectionsCommand.js +3 -9
  81. package/dist-es/commands/ListTagsCommand.js +3 -10
  82. package/dist-es/commands/PutBackupVaultAccessPolicyCommand.js +3 -9
  83. package/dist-es/commands/PutBackupVaultLockConfigurationCommand.js +3 -9
  84. package/dist-es/commands/PutBackupVaultNotificationsCommand.js +3 -9
  85. package/dist-es/commands/PutRestoreValidationResultCommand.js +3 -9
  86. package/dist-es/commands/RevokeRestoreAccessBackupVaultCommand.js +3 -10
  87. package/dist-es/commands/StartBackupJobCommand.js +3 -10
  88. package/dist-es/commands/StartCopyJobCommand.js +3 -9
  89. package/dist-es/commands/StartReportJobCommand.js +3 -9
  90. package/dist-es/commands/StartRestoreJobCommand.js +3 -10
  91. package/dist-es/commands/StopBackupJobCommand.js +3 -9
  92. package/dist-es/commands/TagResourceCommand.js +3 -10
  93. package/dist-es/commands/UntagResourceCommand.js +3 -10
  94. package/dist-es/commands/UpdateBackupPlanCommand.js +3 -10
  95. package/dist-es/commands/UpdateFrameworkCommand.js +3 -9
  96. package/dist-es/commands/UpdateGlobalSettingsCommand.js +3 -9
  97. package/dist-es/commands/UpdateRecoveryPointIndexSettingsCommand.js +3 -9
  98. package/dist-es/commands/UpdateRecoveryPointLifecycleCommand.js +3 -9
  99. package/dist-es/commands/UpdateRegionSettingsCommand.js +3 -9
  100. package/dist-es/commands/UpdateReportPlanCommand.js +3 -9
  101. package/dist-es/commands/UpdateRestoreTestingPlanCommand.js +3 -9
  102. package/dist-es/commands/UpdateRestoreTestingSelectionCommand.js +3 -10
  103. package/dist-es/models/models_0.js +0 -129
  104. package/dist-es/runtimeConfig.shared.js +2 -0
  105. package/dist-es/schemas/schemas_0.js +4363 -0
  106. package/dist-types/BackupClient.d.ts +10 -1
  107. package/dist-types/models/models_0.d.ts +0 -120
  108. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  109. package/dist-types/runtimeConfig.d.ts +1 -0
  110. package/dist-types/runtimeConfig.native.d.ts +1 -0
  111. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  112. package/dist-types/schemas/schemas_0.d.ts +398 -0
  113. package/dist-types/ts3.4/BackupClient.d.ts +4 -0
  114. package/dist-types/ts3.4/models/models_0.d.ts +0 -86
  115. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  116. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  117. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  118. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  119. package/dist-types/ts3.4/schemas/schemas_0.d.ts +405 -0
  120. package/package.json +33 -34
  121. package/dist-es/protocols/Aws_restJson1.js +0 -3702
  122. package/dist-types/protocols/Aws_restJson1.d.ts +0 -893
  123. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -1193
@@ -1,3702 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { BackupServiceException as __BaseException } from "../models/BackupServiceException";
6
- import { AlreadyExistsException, ConflictException, DependencyFailureException, InvalidParameterValueException, InvalidRequestException, InvalidResourceStateException, LimitExceededException, MissingParameterValueException, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
7
- export const se_AssociateBackupVaultMpaApprovalTeamCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {
10
- "content-type": "application/json",
11
- };
12
- b.bp("/backup-vaults/{BackupVaultName}/mpaApprovalTeam");
13
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
14
- let body;
15
- body = JSON.stringify(take(input, {
16
- MpaApprovalTeamArn: [],
17
- RequesterComment: [],
18
- }));
19
- b.m("PUT").h(headers).b(body);
20
- return b.build();
21
- };
22
- export const se_CancelLegalHoldCommand = async (input, context) => {
23
- const b = rb(input, context);
24
- const headers = {};
25
- b.bp("/legal-holds/{LegalHoldId}");
26
- b.p("LegalHoldId", () => input.LegalHoldId, "{LegalHoldId}", false);
27
- const query = map({
28
- [_cD]: [, __expectNonNull(input[_CD], `CancelDescription`)],
29
- [_rRID]: [() => input.RetainRecordInDays !== void 0, () => input[_RRID].toString()],
30
- });
31
- let body;
32
- b.m("DELETE").h(headers).q(query).b(body);
33
- return b.build();
34
- };
35
- export const se_CreateBackupPlanCommand = async (input, context) => {
36
- const b = rb(input, context);
37
- const headers = {
38
- "content-type": "application/json",
39
- };
40
- b.bp("/backup/plans");
41
- let body;
42
- body = JSON.stringify(take(input, {
43
- BackupPlan: (_) => _json(_),
44
- BackupPlanTags: (_) => _json(_),
45
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
46
- }));
47
- b.m("PUT").h(headers).b(body);
48
- return b.build();
49
- };
50
- export const se_CreateBackupSelectionCommand = async (input, context) => {
51
- const b = rb(input, context);
52
- const headers = {
53
- "content-type": "application/json",
54
- };
55
- b.bp("/backup/plans/{BackupPlanId}/selections");
56
- b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
57
- let body;
58
- body = JSON.stringify(take(input, {
59
- BackupSelection: (_) => _json(_),
60
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
61
- }));
62
- b.m("PUT").h(headers).b(body);
63
- return b.build();
64
- };
65
- export const se_CreateBackupVaultCommand = async (input, context) => {
66
- const b = rb(input, context);
67
- const headers = {
68
- "content-type": "application/json",
69
- };
70
- b.bp("/backup-vaults/{BackupVaultName}");
71
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
72
- let body;
73
- body = JSON.stringify(take(input, {
74
- BackupVaultTags: (_) => _json(_),
75
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
76
- EncryptionKeyArn: [],
77
- }));
78
- b.m("PUT").h(headers).b(body);
79
- return b.build();
80
- };
81
- export const se_CreateFrameworkCommand = async (input, context) => {
82
- const b = rb(input, context);
83
- const headers = {
84
- "content-type": "application/json",
85
- };
86
- b.bp("/audit/frameworks");
87
- let body;
88
- body = JSON.stringify(take(input, {
89
- FrameworkControls: (_) => _json(_),
90
- FrameworkDescription: [],
91
- FrameworkName: [],
92
- FrameworkTags: (_) => _json(_),
93
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
94
- }));
95
- b.m("POST").h(headers).b(body);
96
- return b.build();
97
- };
98
- export const se_CreateLegalHoldCommand = async (input, context) => {
99
- const b = rb(input, context);
100
- const headers = {
101
- "content-type": "application/json",
102
- };
103
- b.bp("/legal-holds");
104
- let body;
105
- body = JSON.stringify(take(input, {
106
- Description: [],
107
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
108
- RecoveryPointSelection: (_) => se_RecoveryPointSelection(_, context),
109
- Tags: (_) => _json(_),
110
- Title: [],
111
- }));
112
- b.m("POST").h(headers).b(body);
113
- return b.build();
114
- };
115
- export const se_CreateLogicallyAirGappedBackupVaultCommand = async (input, context) => {
116
- const b = rb(input, context);
117
- const headers = {
118
- "content-type": "application/json",
119
- };
120
- b.bp("/logically-air-gapped-backup-vaults/{BackupVaultName}");
121
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
122
- let body;
123
- body = JSON.stringify(take(input, {
124
- BackupVaultTags: (_) => _json(_),
125
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
126
- EncryptionKeyArn: [],
127
- MaxRetentionDays: [],
128
- MinRetentionDays: [],
129
- }));
130
- b.m("PUT").h(headers).b(body);
131
- return b.build();
132
- };
133
- export const se_CreateReportPlanCommand = async (input, context) => {
134
- const b = rb(input, context);
135
- const headers = {
136
- "content-type": "application/json",
137
- };
138
- b.bp("/audit/report-plans");
139
- let body;
140
- body = JSON.stringify(take(input, {
141
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
142
- ReportDeliveryChannel: (_) => _json(_),
143
- ReportPlanDescription: [],
144
- ReportPlanName: [],
145
- ReportPlanTags: (_) => _json(_),
146
- ReportSetting: (_) => _json(_),
147
- }));
148
- b.m("POST").h(headers).b(body);
149
- return b.build();
150
- };
151
- export const se_CreateRestoreAccessBackupVaultCommand = async (input, context) => {
152
- const b = rb(input, context);
153
- const headers = {
154
- "content-type": "application/json",
155
- };
156
- b.bp("/restore-access-backup-vaults");
157
- let body;
158
- body = JSON.stringify(take(input, {
159
- BackupVaultName: [],
160
- BackupVaultTags: (_) => _json(_),
161
- CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
162
- RequesterComment: [],
163
- SourceBackupVaultArn: [],
164
- }));
165
- b.m("PUT").h(headers).b(body);
166
- return b.build();
167
- };
168
- export const se_CreateRestoreTestingPlanCommand = async (input, context) => {
169
- const b = rb(input, context);
170
- const headers = {
171
- "content-type": "application/json",
172
- };
173
- b.bp("/restore-testing/plans");
174
- let body;
175
- body = JSON.stringify(take(input, {
176
- CreatorRequestId: [],
177
- RestoreTestingPlan: (_) => _json(_),
178
- Tags: (_) => _json(_),
179
- }));
180
- b.m("PUT").h(headers).b(body);
181
- return b.build();
182
- };
183
- export const se_CreateRestoreTestingSelectionCommand = async (input, context) => {
184
- const b = rb(input, context);
185
- const headers = {
186
- "content-type": "application/json",
187
- };
188
- b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections");
189
- b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
190
- let body;
191
- body = JSON.stringify(take(input, {
192
- CreatorRequestId: [],
193
- RestoreTestingSelection: (_) => _json(_),
194
- }));
195
- b.m("PUT").h(headers).b(body);
196
- return b.build();
197
- };
198
- export const se_DeleteBackupPlanCommand = async (input, context) => {
199
- const b = rb(input, context);
200
- const headers = {};
201
- b.bp("/backup/plans/{BackupPlanId}");
202
- b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
203
- let body;
204
- b.m("DELETE").h(headers).b(body);
205
- return b.build();
206
- };
207
- export const se_DeleteBackupSelectionCommand = async (input, context) => {
208
- const b = rb(input, context);
209
- const headers = {};
210
- b.bp("/backup/plans/{BackupPlanId}/selections/{SelectionId}");
211
- b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
212
- b.p("SelectionId", () => input.SelectionId, "{SelectionId}", false);
213
- let body;
214
- b.m("DELETE").h(headers).b(body);
215
- return b.build();
216
- };
217
- export const se_DeleteBackupVaultCommand = async (input, context) => {
218
- const b = rb(input, context);
219
- const headers = {};
220
- b.bp("/backup-vaults/{BackupVaultName}");
221
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
222
- let body;
223
- b.m("DELETE").h(headers).b(body);
224
- return b.build();
225
- };
226
- export const se_DeleteBackupVaultAccessPolicyCommand = async (input, context) => {
227
- const b = rb(input, context);
228
- const headers = {};
229
- b.bp("/backup-vaults/{BackupVaultName}/access-policy");
230
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
231
- let body;
232
- b.m("DELETE").h(headers).b(body);
233
- return b.build();
234
- };
235
- export const se_DeleteBackupVaultLockConfigurationCommand = async (input, context) => {
236
- const b = rb(input, context);
237
- const headers = {};
238
- b.bp("/backup-vaults/{BackupVaultName}/vault-lock");
239
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
240
- let body;
241
- b.m("DELETE").h(headers).b(body);
242
- return b.build();
243
- };
244
- export const se_DeleteBackupVaultNotificationsCommand = async (input, context) => {
245
- const b = rb(input, context);
246
- const headers = {};
247
- b.bp("/backup-vaults/{BackupVaultName}/notification-configuration");
248
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
249
- let body;
250
- b.m("DELETE").h(headers).b(body);
251
- return b.build();
252
- };
253
- export const se_DeleteFrameworkCommand = async (input, context) => {
254
- const b = rb(input, context);
255
- const headers = {};
256
- b.bp("/audit/frameworks/{FrameworkName}");
257
- b.p("FrameworkName", () => input.FrameworkName, "{FrameworkName}", false);
258
- let body;
259
- b.m("DELETE").h(headers).b(body);
260
- return b.build();
261
- };
262
- export const se_DeleteRecoveryPointCommand = async (input, context) => {
263
- const b = rb(input, context);
264
- const headers = {};
265
- b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}");
266
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
267
- b.p("RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
268
- let body;
269
- b.m("DELETE").h(headers).b(body);
270
- return b.build();
271
- };
272
- export const se_DeleteReportPlanCommand = async (input, context) => {
273
- const b = rb(input, context);
274
- const headers = {};
275
- b.bp("/audit/report-plans/{ReportPlanName}");
276
- b.p("ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
277
- let body;
278
- b.m("DELETE").h(headers).b(body);
279
- return b.build();
280
- };
281
- export const se_DeleteRestoreTestingPlanCommand = async (input, context) => {
282
- const b = rb(input, context);
283
- const headers = {};
284
- b.bp("/restore-testing/plans/{RestoreTestingPlanName}");
285
- b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
286
- let body;
287
- b.m("DELETE").h(headers).b(body);
288
- return b.build();
289
- };
290
- export const se_DeleteRestoreTestingSelectionCommand = async (input, context) => {
291
- const b = rb(input, context);
292
- const headers = {};
293
- b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}");
294
- b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
295
- b.p("RestoreTestingSelectionName", () => input.RestoreTestingSelectionName, "{RestoreTestingSelectionName}", false);
296
- let body;
297
- b.m("DELETE").h(headers).b(body);
298
- return b.build();
299
- };
300
- export const se_DescribeBackupJobCommand = async (input, context) => {
301
- const b = rb(input, context);
302
- const headers = {};
303
- b.bp("/backup-jobs/{BackupJobId}");
304
- b.p("BackupJobId", () => input.BackupJobId, "{BackupJobId}", false);
305
- let body;
306
- b.m("GET").h(headers).b(body);
307
- return b.build();
308
- };
309
- export const se_DescribeBackupVaultCommand = async (input, context) => {
310
- const b = rb(input, context);
311
- const headers = {};
312
- b.bp("/backup-vaults/{BackupVaultName}");
313
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
314
- const query = map({
315
- [_bVAI]: [, input[_BVAI]],
316
- });
317
- let body;
318
- b.m("GET").h(headers).q(query).b(body);
319
- return b.build();
320
- };
321
- export const se_DescribeCopyJobCommand = async (input, context) => {
322
- const b = rb(input, context);
323
- const headers = {};
324
- b.bp("/copy-jobs/{CopyJobId}");
325
- b.p("CopyJobId", () => input.CopyJobId, "{CopyJobId}", false);
326
- let body;
327
- b.m("GET").h(headers).b(body);
328
- return b.build();
329
- };
330
- export const se_DescribeFrameworkCommand = async (input, context) => {
331
- const b = rb(input, context);
332
- const headers = {};
333
- b.bp("/audit/frameworks/{FrameworkName}");
334
- b.p("FrameworkName", () => input.FrameworkName, "{FrameworkName}", false);
335
- let body;
336
- b.m("GET").h(headers).b(body);
337
- return b.build();
338
- };
339
- export const se_DescribeGlobalSettingsCommand = async (input, context) => {
340
- const b = rb(input, context);
341
- const headers = {};
342
- b.bp("/global-settings");
343
- let body;
344
- b.m("GET").h(headers).b(body);
345
- return b.build();
346
- };
347
- export const se_DescribeProtectedResourceCommand = async (input, context) => {
348
- const b = rb(input, context);
349
- const headers = {};
350
- b.bp("/resources/{ResourceArn}");
351
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
352
- let body;
353
- b.m("GET").h(headers).b(body);
354
- return b.build();
355
- };
356
- export const se_DescribeRecoveryPointCommand = async (input, context) => {
357
- const b = rb(input, context);
358
- const headers = {};
359
- b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}");
360
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
361
- b.p("RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
362
- const query = map({
363
- [_bVAI]: [, input[_BVAI]],
364
- });
365
- let body;
366
- b.m("GET").h(headers).q(query).b(body);
367
- return b.build();
368
- };
369
- export const se_DescribeRegionSettingsCommand = async (input, context) => {
370
- const b = rb(input, context);
371
- const headers = {};
372
- b.bp("/account-settings");
373
- let body;
374
- b.m("GET").h(headers).b(body);
375
- return b.build();
376
- };
377
- export const se_DescribeReportJobCommand = async (input, context) => {
378
- const b = rb(input, context);
379
- const headers = {};
380
- b.bp("/audit/report-jobs/{ReportJobId}");
381
- b.p("ReportJobId", () => input.ReportJobId, "{ReportJobId}", false);
382
- let body;
383
- b.m("GET").h(headers).b(body);
384
- return b.build();
385
- };
386
- export const se_DescribeReportPlanCommand = async (input, context) => {
387
- const b = rb(input, context);
388
- const headers = {};
389
- b.bp("/audit/report-plans/{ReportPlanName}");
390
- b.p("ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
391
- let body;
392
- b.m("GET").h(headers).b(body);
393
- return b.build();
394
- };
395
- export const se_DescribeRestoreJobCommand = async (input, context) => {
396
- const b = rb(input, context);
397
- const headers = {};
398
- b.bp("/restore-jobs/{RestoreJobId}");
399
- b.p("RestoreJobId", () => input.RestoreJobId, "{RestoreJobId}", false);
400
- let body;
401
- b.m("GET").h(headers).b(body);
402
- return b.build();
403
- };
404
- export const se_DisassociateBackupVaultMpaApprovalTeamCommand = async (input, context) => {
405
- const b = rb(input, context);
406
- const headers = {
407
- "content-type": "application/json",
408
- };
409
- b.bp("/backup-vaults/{BackupVaultName}/mpaApprovalTeam");
410
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
411
- const query = map({
412
- [_d]: [, ""],
413
- });
414
- let body;
415
- body = JSON.stringify(take(input, {
416
- RequesterComment: [],
417
- }));
418
- b.m("POST").h(headers).q(query).b(body);
419
- return b.build();
420
- };
421
- export const se_DisassociateRecoveryPointCommand = async (input, context) => {
422
- const b = rb(input, context);
423
- const headers = {};
424
- b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/disassociate");
425
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
426
- b.p("RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
427
- let body;
428
- b.m("POST").h(headers).b(body);
429
- return b.build();
430
- };
431
- export const se_DisassociateRecoveryPointFromParentCommand = async (input, context) => {
432
- const b = rb(input, context);
433
- const headers = {};
434
- b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/parentAssociation");
435
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
436
- b.p("RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
437
- let body;
438
- b.m("DELETE").h(headers).b(body);
439
- return b.build();
440
- };
441
- export const se_ExportBackupPlanTemplateCommand = async (input, context) => {
442
- const b = rb(input, context);
443
- const headers = {};
444
- b.bp("/backup/plans/{BackupPlanId}/toTemplate");
445
- b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
446
- let body;
447
- b.m("GET").h(headers).b(body);
448
- return b.build();
449
- };
450
- export const se_GetBackupPlanCommand = async (input, context) => {
451
- const b = rb(input, context);
452
- const headers = {};
453
- b.bp("/backup/plans/{BackupPlanId}");
454
- b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
455
- const query = map({
456
- [_vI]: [, input[_VI]],
457
- [_MSRP]: [() => input.MaxScheduledRunsPreview !== void 0, () => input[_MSRP].toString()],
458
- });
459
- let body;
460
- b.m("GET").h(headers).q(query).b(body);
461
- return b.build();
462
- };
463
- export const se_GetBackupPlanFromJSONCommand = async (input, context) => {
464
- const b = rb(input, context);
465
- const headers = {
466
- "content-type": "application/json",
467
- };
468
- b.bp("/backup/template/json/toPlan");
469
- let body;
470
- body = JSON.stringify(take(input, {
471
- BackupPlanTemplateJson: [],
472
- }));
473
- b.m("POST").h(headers).b(body);
474
- return b.build();
475
- };
476
- export const se_GetBackupPlanFromTemplateCommand = async (input, context) => {
477
- const b = rb(input, context);
478
- const headers = {};
479
- b.bp("/backup/template/plans/{BackupPlanTemplateId}/toPlan");
480
- b.p("BackupPlanTemplateId", () => input.BackupPlanTemplateId, "{BackupPlanTemplateId}", false);
481
- let body;
482
- b.m("GET").h(headers).b(body);
483
- return b.build();
484
- };
485
- export const se_GetBackupSelectionCommand = async (input, context) => {
486
- const b = rb(input, context);
487
- const headers = {};
488
- b.bp("/backup/plans/{BackupPlanId}/selections/{SelectionId}");
489
- b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
490
- b.p("SelectionId", () => input.SelectionId, "{SelectionId}", false);
491
- let body;
492
- b.m("GET").h(headers).b(body);
493
- return b.build();
494
- };
495
- export const se_GetBackupVaultAccessPolicyCommand = async (input, context) => {
496
- const b = rb(input, context);
497
- const headers = {};
498
- b.bp("/backup-vaults/{BackupVaultName}/access-policy");
499
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
500
- let body;
501
- b.m("GET").h(headers).b(body);
502
- return b.build();
503
- };
504
- export const se_GetBackupVaultNotificationsCommand = async (input, context) => {
505
- const b = rb(input, context);
506
- const headers = {};
507
- b.bp("/backup-vaults/{BackupVaultName}/notification-configuration");
508
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
509
- let body;
510
- b.m("GET").h(headers).b(body);
511
- return b.build();
512
- };
513
- export const se_GetLegalHoldCommand = async (input, context) => {
514
- const b = rb(input, context);
515
- const headers = {};
516
- b.bp("/legal-holds/{LegalHoldId}");
517
- b.p("LegalHoldId", () => input.LegalHoldId, "{LegalHoldId}", false);
518
- let body;
519
- b.m("GET").h(headers).b(body);
520
- return b.build();
521
- };
522
- export const se_GetRecoveryPointIndexDetailsCommand = async (input, context) => {
523
- const b = rb(input, context);
524
- const headers = {};
525
- b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/index");
526
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
527
- b.p("RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
528
- let body;
529
- b.m("GET").h(headers).b(body);
530
- return b.build();
531
- };
532
- export const se_GetRecoveryPointRestoreMetadataCommand = async (input, context) => {
533
- const b = rb(input, context);
534
- const headers = {};
535
- b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/restore-metadata");
536
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
537
- b.p("RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
538
- const query = map({
539
- [_bVAI]: [, input[_BVAI]],
540
- });
541
- let body;
542
- b.m("GET").h(headers).q(query).b(body);
543
- return b.build();
544
- };
545
- export const se_GetRestoreJobMetadataCommand = async (input, context) => {
546
- const b = rb(input, context);
547
- const headers = {};
548
- b.bp("/restore-jobs/{RestoreJobId}/metadata");
549
- b.p("RestoreJobId", () => input.RestoreJobId, "{RestoreJobId}", false);
550
- let body;
551
- b.m("GET").h(headers).b(body);
552
- return b.build();
553
- };
554
- export const se_GetRestoreTestingInferredMetadataCommand = async (input, context) => {
555
- const b = rb(input, context);
556
- const headers = {};
557
- b.bp("/restore-testing/inferred-metadata");
558
- const query = map({
559
- [_BVAI]: [, input[_BVAI]],
560
- [_BVN]: [, __expectNonNull(input[_BVN], `BackupVaultName`)],
561
- [_RPA]: [, __expectNonNull(input[_RPA], `RecoveryPointArn`)],
562
- });
563
- let body;
564
- b.m("GET").h(headers).q(query).b(body);
565
- return b.build();
566
- };
567
- export const se_GetRestoreTestingPlanCommand = async (input, context) => {
568
- const b = rb(input, context);
569
- const headers = {};
570
- b.bp("/restore-testing/plans/{RestoreTestingPlanName}");
571
- b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
572
- let body;
573
- b.m("GET").h(headers).b(body);
574
- return b.build();
575
- };
576
- export const se_GetRestoreTestingSelectionCommand = async (input, context) => {
577
- const b = rb(input, context);
578
- const headers = {};
579
- b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}");
580
- b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
581
- b.p("RestoreTestingSelectionName", () => input.RestoreTestingSelectionName, "{RestoreTestingSelectionName}", false);
582
- let body;
583
- b.m("GET").h(headers).b(body);
584
- return b.build();
585
- };
586
- export const se_GetSupportedResourceTypesCommand = async (input, context) => {
587
- const b = rb(input, context);
588
- const headers = {};
589
- b.bp("/supported-resource-types");
590
- let body;
591
- b.m("GET").h(headers).b(body);
592
- return b.build();
593
- };
594
- export const se_ListBackupJobsCommand = async (input, context) => {
595
- const b = rb(input, context);
596
- const headers = {};
597
- b.bp("/backup-jobs");
598
- const query = map({
599
- [_nT]: [, input[_NT]],
600
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
601
- [_rA]: [, input[_BRA]],
602
- [_s]: [, input[_BS]],
603
- [_bVN]: [, input[_BBVN]],
604
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => __serializeDateTime(input[_BCB]).toString()],
605
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => __serializeDateTime(input[_BCA]).toString()],
606
- [_rT]: [, input[_BRT]],
607
- [_aI]: [, input[_BAI]],
608
- [_cAo]: [() => input.ByCompleteAfter !== void 0, () => __serializeDateTime(input[_BCAy]).toString()],
609
- [_cBo]: [() => input.ByCompleteBefore !== void 0, () => __serializeDateTime(input[_BCBy]).toString()],
610
- [_pJI]: [, input[_BPJI]],
611
- [_mC]: [, input[_BMC]],
612
- });
613
- let body;
614
- b.m("GET").h(headers).q(query).b(body);
615
- return b.build();
616
- };
617
- export const se_ListBackupJobSummariesCommand = async (input, context) => {
618
- const b = rb(input, context);
619
- const headers = {};
620
- b.bp("/audit/backup-job-summaries");
621
- const query = map({
622
- [_AI]: [, input[_AI]],
623
- [_S]: [, input[_S]],
624
- [_RT]: [, input[_RT]],
625
- [_MC]: [, input[_MC]],
626
- [_AP]: [, input[_AP]],
627
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
628
- [_NT]: [, input[_NT]],
629
- });
630
- let body;
631
- b.m("GET").h(headers).q(query).b(body);
632
- return b.build();
633
- };
634
- export const se_ListBackupPlansCommand = async (input, context) => {
635
- const b = rb(input, context);
636
- const headers = {};
637
- b.bp("/backup/plans");
638
- const query = map({
639
- [_nT]: [, input[_NT]],
640
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
641
- [_iD]: [() => input.IncludeDeleted !== void 0, () => input[_ID].toString()],
642
- });
643
- let body;
644
- b.m("GET").h(headers).q(query).b(body);
645
- return b.build();
646
- };
647
- export const se_ListBackupPlanTemplatesCommand = async (input, context) => {
648
- const b = rb(input, context);
649
- const headers = {};
650
- b.bp("/backup/template/plans");
651
- const query = map({
652
- [_nT]: [, input[_NT]],
653
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
654
- });
655
- let body;
656
- b.m("GET").h(headers).q(query).b(body);
657
- return b.build();
658
- };
659
- export const se_ListBackupPlanVersionsCommand = async (input, context) => {
660
- const b = rb(input, context);
661
- const headers = {};
662
- b.bp("/backup/plans/{BackupPlanId}/versions");
663
- b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
664
- const query = map({
665
- [_nT]: [, input[_NT]],
666
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
667
- });
668
- let body;
669
- b.m("GET").h(headers).q(query).b(body);
670
- return b.build();
671
- };
672
- export const se_ListBackupSelectionsCommand = async (input, context) => {
673
- const b = rb(input, context);
674
- const headers = {};
675
- b.bp("/backup/plans/{BackupPlanId}/selections");
676
- b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
677
- const query = map({
678
- [_nT]: [, input[_NT]],
679
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
680
- });
681
- let body;
682
- b.m("GET").h(headers).q(query).b(body);
683
- return b.build();
684
- };
685
- export const se_ListBackupVaultsCommand = async (input, context) => {
686
- const b = rb(input, context);
687
- const headers = {};
688
- b.bp("/backup-vaults");
689
- const query = map({
690
- [_vT]: [, input[_BVT]],
691
- [_sh]: [() => input.ByShared !== void 0, () => input[_BSy].toString()],
692
- [_nT]: [, input[_NT]],
693
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
694
- });
695
- let body;
696
- b.m("GET").h(headers).q(query).b(body);
697
- return b.build();
698
- };
699
- export const se_ListCopyJobsCommand = async (input, context) => {
700
- const b = rb(input, context);
701
- const headers = {};
702
- b.bp("/copy-jobs");
703
- const query = map({
704
- [_nT]: [, input[_NT]],
705
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
706
- [_rA]: [, input[_BRA]],
707
- [_s]: [, input[_BS]],
708
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => __serializeDateTime(input[_BCB]).toString()],
709
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => __serializeDateTime(input[_BCA]).toString()],
710
- [_rT]: [, input[_BRT]],
711
- [_dVA]: [, input[_BDVA]],
712
- [_aI]: [, input[_BAI]],
713
- [_cBo]: [() => input.ByCompleteBefore !== void 0, () => __serializeDateTime(input[_BCBy]).toString()],
714
- [_cAo]: [() => input.ByCompleteAfter !== void 0, () => __serializeDateTime(input[_BCAy]).toString()],
715
- [_pJI]: [, input[_BPJI]],
716
- [_mC]: [, input[_BMC]],
717
- });
718
- let body;
719
- b.m("GET").h(headers).q(query).b(body);
720
- return b.build();
721
- };
722
- export const se_ListCopyJobSummariesCommand = async (input, context) => {
723
- const b = rb(input, context);
724
- const headers = {};
725
- b.bp("/audit/copy-job-summaries");
726
- const query = map({
727
- [_AI]: [, input[_AI]],
728
- [_S]: [, input[_S]],
729
- [_RT]: [, input[_RT]],
730
- [_MC]: [, input[_MC]],
731
- [_AP]: [, input[_AP]],
732
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
733
- [_NT]: [, input[_NT]],
734
- });
735
- let body;
736
- b.m("GET").h(headers).q(query).b(body);
737
- return b.build();
738
- };
739
- export const se_ListFrameworksCommand = async (input, context) => {
740
- const b = rb(input, context);
741
- const headers = {};
742
- b.bp("/audit/frameworks");
743
- const query = map({
744
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
745
- [_NT]: [, input[_NT]],
746
- });
747
- let body;
748
- b.m("GET").h(headers).q(query).b(body);
749
- return b.build();
750
- };
751
- export const se_ListIndexedRecoveryPointsCommand = async (input, context) => {
752
- const b = rb(input, context);
753
- const headers = {};
754
- b.bp("/indexes/recovery-point");
755
- const query = map({
756
- [_nT]: [, input[_NT]],
757
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
758
- [_sRA]: [, input[_SRA]],
759
- [_cB]: [() => input.CreatedBefore !== void 0, () => __serializeDateTime(input[_CB]).toString()],
760
- [_cA]: [() => input.CreatedAfter !== void 0, () => __serializeDateTime(input[_CA]).toString()],
761
- [_rT]: [, input[_RT]],
762
- [_iS]: [, input[_IS]],
763
- });
764
- let body;
765
- b.m("GET").h(headers).q(query).b(body);
766
- return b.build();
767
- };
768
- export const se_ListLegalHoldsCommand = async (input, context) => {
769
- const b = rb(input, context);
770
- const headers = {};
771
- b.bp("/legal-holds");
772
- const query = map({
773
- [_nT]: [, input[_NT]],
774
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
775
- });
776
- let body;
777
- b.m("GET").h(headers).q(query).b(body);
778
- return b.build();
779
- };
780
- export const se_ListProtectedResourcesCommand = async (input, context) => {
781
- const b = rb(input, context);
782
- const headers = {};
783
- b.bp("/resources");
784
- const query = map({
785
- [_nT]: [, input[_NT]],
786
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
787
- });
788
- let body;
789
- b.m("GET").h(headers).q(query).b(body);
790
- return b.build();
791
- };
792
- export const se_ListProtectedResourcesByBackupVaultCommand = async (input, context) => {
793
- const b = rb(input, context);
794
- const headers = {};
795
- b.bp("/backup-vaults/{BackupVaultName}/resources");
796
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
797
- const query = map({
798
- [_bVAI]: [, input[_BVAI]],
799
- [_nT]: [, input[_NT]],
800
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
801
- });
802
- let body;
803
- b.m("GET").h(headers).q(query).b(body);
804
- return b.build();
805
- };
806
- export const se_ListRecoveryPointsByBackupVaultCommand = async (input, context) => {
807
- const b = rb(input, context);
808
- const headers = {};
809
- b.bp("/backup-vaults/{BackupVaultName}/recovery-points");
810
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
811
- const query = map({
812
- [_bVAI]: [, input[_BVAI]],
813
- [_nT]: [, input[_NT]],
814
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
815
- [_rA]: [, input[_BRA]],
816
- [_rT]: [, input[_BRT]],
817
- [_bPI]: [, input[_BBPI]],
818
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => __serializeDateTime(input[_BCB]).toString()],
819
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => __serializeDateTime(input[_BCA]).toString()],
820
- [_pRPA]: [, input[_BPRPA]],
821
- });
822
- let body;
823
- b.m("GET").h(headers).q(query).b(body);
824
- return b.build();
825
- };
826
- export const se_ListRecoveryPointsByLegalHoldCommand = async (input, context) => {
827
- const b = rb(input, context);
828
- const headers = {};
829
- b.bp("/legal-holds/{LegalHoldId}/recovery-points");
830
- b.p("LegalHoldId", () => input.LegalHoldId, "{LegalHoldId}", false);
831
- const query = map({
832
- [_nT]: [, input[_NT]],
833
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
834
- });
835
- let body;
836
- b.m("GET").h(headers).q(query).b(body);
837
- return b.build();
838
- };
839
- export const se_ListRecoveryPointsByResourceCommand = async (input, context) => {
840
- const b = rb(input, context);
841
- const headers = {};
842
- b.bp("/resources/{ResourceArn}/recovery-points");
843
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
844
- const query = map({
845
- [_nT]: [, input[_NT]],
846
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
847
- [_mBAWSBO]: [() => input.ManagedByAWSBackupOnly !== void 0, () => input[_MBAWSBO].toString()],
848
- });
849
- let body;
850
- b.m("GET").h(headers).q(query).b(body);
851
- return b.build();
852
- };
853
- export const se_ListReportJobsCommand = async (input, context) => {
854
- const b = rb(input, context);
855
- const headers = {};
856
- b.bp("/audit/report-jobs");
857
- const query = map({
858
- [_RPN]: [, input[_BRPN]],
859
- [_CBr]: [() => input.ByCreationBefore !== void 0, () => __serializeDateTime(input[_BCByr]).toString()],
860
- [_CAr]: [() => input.ByCreationAfter !== void 0, () => __serializeDateTime(input[_BCAyr]).toString()],
861
- [_St]: [, input[_BSyt]],
862
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
863
- [_NT]: [, input[_NT]],
864
- });
865
- let body;
866
- b.m("GET").h(headers).q(query).b(body);
867
- return b.build();
868
- };
869
- export const se_ListReportPlansCommand = async (input, context) => {
870
- const b = rb(input, context);
871
- const headers = {};
872
- b.bp("/audit/report-plans");
873
- const query = map({
874
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
875
- [_NT]: [, input[_NT]],
876
- });
877
- let body;
878
- b.m("GET").h(headers).q(query).b(body);
879
- return b.build();
880
- };
881
- export const se_ListRestoreAccessBackupVaultsCommand = async (input, context) => {
882
- const b = rb(input, context);
883
- const headers = {};
884
- b.bp("/logically-air-gapped-backup-vaults/{BackupVaultName}/restore-access-backup-vaults");
885
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
886
- const query = map({
887
- [_nT]: [, input[_NT]],
888
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
889
- });
890
- let body;
891
- b.m("GET").h(headers).q(query).b(body);
892
- return b.build();
893
- };
894
- export const se_ListRestoreJobsCommand = async (input, context) => {
895
- const b = rb(input, context);
896
- const headers = {};
897
- b.bp("/restore-jobs");
898
- const query = map({
899
- [_nT]: [, input[_NT]],
900
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
901
- [_aI]: [, input[_BAI]],
902
- [_rT]: [, input[_BRT]],
903
- [_cB]: [() => input.ByCreatedBefore !== void 0, () => __serializeDateTime(input[_BCB]).toString()],
904
- [_cA]: [() => input.ByCreatedAfter !== void 0, () => __serializeDateTime(input[_BCA]).toString()],
905
- [_st]: [, input[_BSyt]],
906
- [_cBo]: [() => input.ByCompleteBefore !== void 0, () => __serializeDateTime(input[_BCBy]).toString()],
907
- [_cAo]: [() => input.ByCompleteAfter !== void 0, () => __serializeDateTime(input[_BCAy]).toString()],
908
- [_rTPA]: [, input[_BRTPA]],
909
- [_pJI]: [, input[_BPJI]],
910
- });
911
- let body;
912
- b.m("GET").h(headers).q(query).b(body);
913
- return b.build();
914
- };
915
- export const se_ListRestoreJobsByProtectedResourceCommand = async (input, context) => {
916
- const b = rb(input, context);
917
- const headers = {};
918
- b.bp("/resources/{ResourceArn}/restore-jobs");
919
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
920
- const query = map({
921
- [_st]: [, input[_BSyt]],
922
- [_rPCDA]: [
923
- () => input.ByRecoveryPointCreationDateAfter !== void 0,
924
- () => __serializeDateTime(input[_BRPCDA]).toString(),
925
- ],
926
- [_rPCDB]: [
927
- () => input.ByRecoveryPointCreationDateBefore !== void 0,
928
- () => __serializeDateTime(input[_BRPCDB]).toString(),
929
- ],
930
- [_nT]: [, input[_NT]],
931
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
932
- });
933
- let body;
934
- b.m("GET").h(headers).q(query).b(body);
935
- return b.build();
936
- };
937
- export const se_ListRestoreJobSummariesCommand = async (input, context) => {
938
- const b = rb(input, context);
939
- const headers = {};
940
- b.bp("/audit/restore-job-summaries");
941
- const query = map({
942
- [_AI]: [, input[_AI]],
943
- [_S]: [, input[_S]],
944
- [_RT]: [, input[_RT]],
945
- [_AP]: [, input[_AP]],
946
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
947
- [_NT]: [, input[_NT]],
948
- });
949
- let body;
950
- b.m("GET").h(headers).q(query).b(body);
951
- return b.build();
952
- };
953
- export const se_ListRestoreTestingPlansCommand = async (input, context) => {
954
- const b = rb(input, context);
955
- const headers = {};
956
- b.bp("/restore-testing/plans");
957
- const query = map({
958
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
959
- [_NT]: [, input[_NT]],
960
- });
961
- let body;
962
- b.m("GET").h(headers).q(query).b(body);
963
- return b.build();
964
- };
965
- export const se_ListRestoreTestingSelectionsCommand = async (input, context) => {
966
- const b = rb(input, context);
967
- const headers = {};
968
- b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections");
969
- b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
970
- const query = map({
971
- [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
972
- [_NT]: [, input[_NT]],
973
- });
974
- let body;
975
- b.m("GET").h(headers).q(query).b(body);
976
- return b.build();
977
- };
978
- export const se_ListTagsCommand = async (input, context) => {
979
- const b = rb(input, context);
980
- const headers = {};
981
- b.bp("/tags/{ResourceArn}");
982
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
983
- const query = map({
984
- [_nT]: [, input[_NT]],
985
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
986
- });
987
- let body;
988
- b.m("GET").h(headers).q(query).b(body);
989
- return b.build();
990
- };
991
- export const se_PutBackupVaultAccessPolicyCommand = async (input, context) => {
992
- const b = rb(input, context);
993
- const headers = {
994
- "content-type": "application/json",
995
- };
996
- b.bp("/backup-vaults/{BackupVaultName}/access-policy");
997
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
998
- let body;
999
- body = JSON.stringify(take(input, {
1000
- Policy: [],
1001
- }));
1002
- b.m("PUT").h(headers).b(body);
1003
- return b.build();
1004
- };
1005
- export const se_PutBackupVaultLockConfigurationCommand = async (input, context) => {
1006
- const b = rb(input, context);
1007
- const headers = {
1008
- "content-type": "application/json",
1009
- };
1010
- b.bp("/backup-vaults/{BackupVaultName}/vault-lock");
1011
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
1012
- let body;
1013
- body = JSON.stringify(take(input, {
1014
- ChangeableForDays: [],
1015
- MaxRetentionDays: [],
1016
- MinRetentionDays: [],
1017
- }));
1018
- b.m("PUT").h(headers).b(body);
1019
- return b.build();
1020
- };
1021
- export const se_PutBackupVaultNotificationsCommand = async (input, context) => {
1022
- const b = rb(input, context);
1023
- const headers = {
1024
- "content-type": "application/json",
1025
- };
1026
- b.bp("/backup-vaults/{BackupVaultName}/notification-configuration");
1027
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
1028
- let body;
1029
- body = JSON.stringify(take(input, {
1030
- BackupVaultEvents: (_) => _json(_),
1031
- SNSTopicArn: [],
1032
- }));
1033
- b.m("PUT").h(headers).b(body);
1034
- return b.build();
1035
- };
1036
- export const se_PutRestoreValidationResultCommand = async (input, context) => {
1037
- const b = rb(input, context);
1038
- const headers = {
1039
- "content-type": "application/json",
1040
- };
1041
- b.bp("/restore-jobs/{RestoreJobId}/validations");
1042
- b.p("RestoreJobId", () => input.RestoreJobId, "{RestoreJobId}", false);
1043
- let body;
1044
- body = JSON.stringify(take(input, {
1045
- ValidationStatus: [],
1046
- ValidationStatusMessage: [],
1047
- }));
1048
- b.m("PUT").h(headers).b(body);
1049
- return b.build();
1050
- };
1051
- export const se_RevokeRestoreAccessBackupVaultCommand = async (input, context) => {
1052
- const b = rb(input, context);
1053
- const headers = {};
1054
- b.bp("/logically-air-gapped-backup-vaults/{BackupVaultName}/restore-access-backup-vaults/{RestoreAccessBackupVaultArn}");
1055
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
1056
- b.p("RestoreAccessBackupVaultArn", () => input.RestoreAccessBackupVaultArn, "{RestoreAccessBackupVaultArn}", false);
1057
- const query = map({
1058
- [_rC]: [, input[_RC]],
1059
- });
1060
- let body;
1061
- b.m("DELETE").h(headers).q(query).b(body);
1062
- return b.build();
1063
- };
1064
- export const se_StartBackupJobCommand = async (input, context) => {
1065
- const b = rb(input, context);
1066
- const headers = {
1067
- "content-type": "application/json",
1068
- };
1069
- b.bp("/backup-jobs");
1070
- let body;
1071
- body = JSON.stringify(take(input, {
1072
- BackupOptions: (_) => _json(_),
1073
- BackupVaultName: [],
1074
- CompleteWindowMinutes: [],
1075
- IamRoleArn: [],
1076
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1077
- Index: [],
1078
- Lifecycle: (_) => _json(_),
1079
- RecoveryPointTags: (_) => _json(_),
1080
- ResourceArn: [],
1081
- StartWindowMinutes: [],
1082
- }));
1083
- b.m("PUT").h(headers).b(body);
1084
- return b.build();
1085
- };
1086
- export const se_StartCopyJobCommand = async (input, context) => {
1087
- const b = rb(input, context);
1088
- const headers = {
1089
- "content-type": "application/json",
1090
- };
1091
- b.bp("/copy-jobs");
1092
- let body;
1093
- body = JSON.stringify(take(input, {
1094
- DestinationBackupVaultArn: [],
1095
- IamRoleArn: [],
1096
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1097
- Lifecycle: (_) => _json(_),
1098
- RecoveryPointArn: [],
1099
- SourceBackupVaultName: [],
1100
- }));
1101
- b.m("PUT").h(headers).b(body);
1102
- return b.build();
1103
- };
1104
- export const se_StartReportJobCommand = async (input, context) => {
1105
- const b = rb(input, context);
1106
- const headers = {
1107
- "content-type": "application/json",
1108
- };
1109
- b.bp("/audit/report-jobs/{ReportPlanName}");
1110
- b.p("ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
1111
- let body;
1112
- body = JSON.stringify(take(input, {
1113
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1114
- }));
1115
- b.m("POST").h(headers).b(body);
1116
- return b.build();
1117
- };
1118
- export const se_StartRestoreJobCommand = async (input, context) => {
1119
- const b = rb(input, context);
1120
- const headers = {
1121
- "content-type": "application/json",
1122
- };
1123
- b.bp("/restore-jobs");
1124
- let body;
1125
- body = JSON.stringify(take(input, {
1126
- CopySourceTagsToRestoredResource: [],
1127
- IamRoleArn: [],
1128
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1129
- Metadata: (_) => _json(_),
1130
- RecoveryPointArn: [],
1131
- ResourceType: [],
1132
- }));
1133
- b.m("PUT").h(headers).b(body);
1134
- return b.build();
1135
- };
1136
- export const se_StopBackupJobCommand = async (input, context) => {
1137
- const b = rb(input, context);
1138
- const headers = {};
1139
- b.bp("/backup-jobs/{BackupJobId}");
1140
- b.p("BackupJobId", () => input.BackupJobId, "{BackupJobId}", false);
1141
- let body;
1142
- b.m("POST").h(headers).b(body);
1143
- return b.build();
1144
- };
1145
- export const se_TagResourceCommand = async (input, context) => {
1146
- const b = rb(input, context);
1147
- const headers = {
1148
- "content-type": "application/json",
1149
- };
1150
- b.bp("/tags/{ResourceArn}");
1151
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1152
- let body;
1153
- body = JSON.stringify(take(input, {
1154
- Tags: (_) => _json(_),
1155
- }));
1156
- b.m("POST").h(headers).b(body);
1157
- return b.build();
1158
- };
1159
- export const se_UntagResourceCommand = async (input, context) => {
1160
- const b = rb(input, context);
1161
- const headers = {
1162
- "content-type": "application/json",
1163
- };
1164
- b.bp("/untag/{ResourceArn}");
1165
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1166
- let body;
1167
- body = JSON.stringify(take(input, {
1168
- TagKeyList: (_) => _json(_),
1169
- }));
1170
- b.m("POST").h(headers).b(body);
1171
- return b.build();
1172
- };
1173
- export const se_UpdateBackupPlanCommand = async (input, context) => {
1174
- const b = rb(input, context);
1175
- const headers = {
1176
- "content-type": "application/json",
1177
- };
1178
- b.bp("/backup/plans/{BackupPlanId}");
1179
- b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
1180
- let body;
1181
- body = JSON.stringify(take(input, {
1182
- BackupPlan: (_) => _json(_),
1183
- }));
1184
- b.m("POST").h(headers).b(body);
1185
- return b.build();
1186
- };
1187
- export const se_UpdateFrameworkCommand = async (input, context) => {
1188
- const b = rb(input, context);
1189
- const headers = {
1190
- "content-type": "application/json",
1191
- };
1192
- b.bp("/audit/frameworks/{FrameworkName}");
1193
- b.p("FrameworkName", () => input.FrameworkName, "{FrameworkName}", false);
1194
- let body;
1195
- body = JSON.stringify(take(input, {
1196
- FrameworkControls: (_) => _json(_),
1197
- FrameworkDescription: [],
1198
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1199
- }));
1200
- b.m("PUT").h(headers).b(body);
1201
- return b.build();
1202
- };
1203
- export const se_UpdateGlobalSettingsCommand = async (input, context) => {
1204
- const b = rb(input, context);
1205
- const headers = {
1206
- "content-type": "application/json",
1207
- };
1208
- b.bp("/global-settings");
1209
- let body;
1210
- body = JSON.stringify(take(input, {
1211
- GlobalSettings: (_) => _json(_),
1212
- }));
1213
- b.m("PUT").h(headers).b(body);
1214
- return b.build();
1215
- };
1216
- export const se_UpdateRecoveryPointIndexSettingsCommand = async (input, context) => {
1217
- const b = rb(input, context);
1218
- const headers = {
1219
- "content-type": "application/json",
1220
- };
1221
- b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/index");
1222
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
1223
- b.p("RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
1224
- let body;
1225
- body = JSON.stringify(take(input, {
1226
- IamRoleArn: [],
1227
- Index: [],
1228
- }));
1229
- b.m("POST").h(headers).b(body);
1230
- return b.build();
1231
- };
1232
- export const se_UpdateRecoveryPointLifecycleCommand = async (input, context) => {
1233
- const b = rb(input, context);
1234
- const headers = {
1235
- "content-type": "application/json",
1236
- };
1237
- b.bp("/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}");
1238
- b.p("BackupVaultName", () => input.BackupVaultName, "{BackupVaultName}", false);
1239
- b.p("RecoveryPointArn", () => input.RecoveryPointArn, "{RecoveryPointArn}", false);
1240
- let body;
1241
- body = JSON.stringify(take(input, {
1242
- Lifecycle: (_) => _json(_),
1243
- }));
1244
- b.m("POST").h(headers).b(body);
1245
- return b.build();
1246
- };
1247
- export const se_UpdateRegionSettingsCommand = async (input, context) => {
1248
- const b = rb(input, context);
1249
- const headers = {
1250
- "content-type": "application/json",
1251
- };
1252
- b.bp("/account-settings");
1253
- let body;
1254
- body = JSON.stringify(take(input, {
1255
- ResourceTypeManagementPreference: (_) => _json(_),
1256
- ResourceTypeOptInPreference: (_) => _json(_),
1257
- }));
1258
- b.m("PUT").h(headers).b(body);
1259
- return b.build();
1260
- };
1261
- export const se_UpdateReportPlanCommand = async (input, context) => {
1262
- const b = rb(input, context);
1263
- const headers = {
1264
- "content-type": "application/json",
1265
- };
1266
- b.bp("/audit/report-plans/{ReportPlanName}");
1267
- b.p("ReportPlanName", () => input.ReportPlanName, "{ReportPlanName}", false);
1268
- let body;
1269
- body = JSON.stringify(take(input, {
1270
- IdempotencyToken: [true, (_) => _ ?? generateIdempotencyToken()],
1271
- ReportDeliveryChannel: (_) => _json(_),
1272
- ReportPlanDescription: [],
1273
- ReportSetting: (_) => _json(_),
1274
- }));
1275
- b.m("PUT").h(headers).b(body);
1276
- return b.build();
1277
- };
1278
- export const se_UpdateRestoreTestingPlanCommand = async (input, context) => {
1279
- const b = rb(input, context);
1280
- const headers = {
1281
- "content-type": "application/json",
1282
- };
1283
- b.bp("/restore-testing/plans/{RestoreTestingPlanName}");
1284
- b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
1285
- let body;
1286
- body = JSON.stringify(take(input, {
1287
- RestoreTestingPlan: (_) => _json(_),
1288
- }));
1289
- b.m("PUT").h(headers).b(body);
1290
- return b.build();
1291
- };
1292
- export const se_UpdateRestoreTestingSelectionCommand = async (input, context) => {
1293
- const b = rb(input, context);
1294
- const headers = {
1295
- "content-type": "application/json",
1296
- };
1297
- b.bp("/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}");
1298
- b.p("RestoreTestingPlanName", () => input.RestoreTestingPlanName, "{RestoreTestingPlanName}", false);
1299
- b.p("RestoreTestingSelectionName", () => input.RestoreTestingSelectionName, "{RestoreTestingSelectionName}", false);
1300
- let body;
1301
- body = JSON.stringify(take(input, {
1302
- RestoreTestingSelection: (_) => _json(_),
1303
- }));
1304
- b.m("PUT").h(headers).b(body);
1305
- return b.build();
1306
- };
1307
- export const de_AssociateBackupVaultMpaApprovalTeamCommand = async (output, context) => {
1308
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1309
- return de_CommandError(output, context);
1310
- }
1311
- const contents = map({
1312
- $metadata: deserializeMetadata(output),
1313
- });
1314
- await collectBody(output.body, context);
1315
- return contents;
1316
- };
1317
- export const de_CancelLegalHoldCommand = async (output, context) => {
1318
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1319
- return de_CommandError(output, context);
1320
- }
1321
- const contents = map({
1322
- $metadata: deserializeMetadata(output),
1323
- });
1324
- await collectBody(output.body, context);
1325
- return contents;
1326
- };
1327
- export const de_CreateBackupPlanCommand = async (output, context) => {
1328
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1329
- return de_CommandError(output, context);
1330
- }
1331
- const contents = map({
1332
- $metadata: deserializeMetadata(output),
1333
- });
1334
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1335
- const doc = take(data, {
1336
- AdvancedBackupSettings: _json,
1337
- BackupPlanArn: __expectString,
1338
- BackupPlanId: __expectString,
1339
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1340
- VersionId: __expectString,
1341
- });
1342
- Object.assign(contents, doc);
1343
- return contents;
1344
- };
1345
- export const de_CreateBackupSelectionCommand = async (output, context) => {
1346
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1347
- return de_CommandError(output, context);
1348
- }
1349
- const contents = map({
1350
- $metadata: deserializeMetadata(output),
1351
- });
1352
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1353
- const doc = take(data, {
1354
- BackupPlanId: __expectString,
1355
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1356
- SelectionId: __expectString,
1357
- });
1358
- Object.assign(contents, doc);
1359
- return contents;
1360
- };
1361
- export const de_CreateBackupVaultCommand = async (output, context) => {
1362
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1363
- return de_CommandError(output, context);
1364
- }
1365
- const contents = map({
1366
- $metadata: deserializeMetadata(output),
1367
- });
1368
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1369
- const doc = take(data, {
1370
- BackupVaultArn: __expectString,
1371
- BackupVaultName: __expectString,
1372
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1373
- });
1374
- Object.assign(contents, doc);
1375
- return contents;
1376
- };
1377
- export const de_CreateFrameworkCommand = async (output, context) => {
1378
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1379
- return de_CommandError(output, context);
1380
- }
1381
- const contents = map({
1382
- $metadata: deserializeMetadata(output),
1383
- });
1384
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1385
- const doc = take(data, {
1386
- FrameworkArn: __expectString,
1387
- FrameworkName: __expectString,
1388
- });
1389
- Object.assign(contents, doc);
1390
- return contents;
1391
- };
1392
- export const de_CreateLegalHoldCommand = async (output, context) => {
1393
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1394
- return de_CommandError(output, context);
1395
- }
1396
- const contents = map({
1397
- $metadata: deserializeMetadata(output),
1398
- });
1399
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1400
- const doc = take(data, {
1401
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1402
- Description: __expectString,
1403
- LegalHoldArn: __expectString,
1404
- LegalHoldId: __expectString,
1405
- RecoveryPointSelection: (_) => de_RecoveryPointSelection(_, context),
1406
- Status: __expectString,
1407
- Title: __expectString,
1408
- });
1409
- Object.assign(contents, doc);
1410
- return contents;
1411
- };
1412
- export const de_CreateLogicallyAirGappedBackupVaultCommand = async (output, context) => {
1413
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1414
- return de_CommandError(output, context);
1415
- }
1416
- const contents = map({
1417
- $metadata: deserializeMetadata(output),
1418
- });
1419
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1420
- const doc = take(data, {
1421
- BackupVaultArn: __expectString,
1422
- BackupVaultName: __expectString,
1423
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1424
- VaultState: __expectString,
1425
- });
1426
- Object.assign(contents, doc);
1427
- return contents;
1428
- };
1429
- export const de_CreateReportPlanCommand = async (output, context) => {
1430
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1431
- return de_CommandError(output, context);
1432
- }
1433
- const contents = map({
1434
- $metadata: deserializeMetadata(output),
1435
- });
1436
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1437
- const doc = take(data, {
1438
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1439
- ReportPlanArn: __expectString,
1440
- ReportPlanName: __expectString,
1441
- });
1442
- Object.assign(contents, doc);
1443
- return contents;
1444
- };
1445
- export const de_CreateRestoreAccessBackupVaultCommand = async (output, context) => {
1446
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1447
- return de_CommandError(output, context);
1448
- }
1449
- const contents = map({
1450
- $metadata: deserializeMetadata(output),
1451
- });
1452
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1453
- const doc = take(data, {
1454
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1455
- RestoreAccessBackupVaultArn: __expectString,
1456
- RestoreAccessBackupVaultName: __expectString,
1457
- VaultState: __expectString,
1458
- });
1459
- Object.assign(contents, doc);
1460
- return contents;
1461
- };
1462
- export const de_CreateRestoreTestingPlanCommand = async (output, context) => {
1463
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1464
- return de_CommandError(output, context);
1465
- }
1466
- const contents = map({
1467
- $metadata: deserializeMetadata(output),
1468
- });
1469
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1470
- const doc = take(data, {
1471
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1472
- RestoreTestingPlanArn: __expectString,
1473
- RestoreTestingPlanName: __expectString,
1474
- });
1475
- Object.assign(contents, doc);
1476
- return contents;
1477
- };
1478
- export const de_CreateRestoreTestingSelectionCommand = async (output, context) => {
1479
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1480
- return de_CommandError(output, context);
1481
- }
1482
- const contents = map({
1483
- $metadata: deserializeMetadata(output),
1484
- });
1485
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1486
- const doc = take(data, {
1487
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1488
- RestoreTestingPlanArn: __expectString,
1489
- RestoreTestingPlanName: __expectString,
1490
- RestoreTestingSelectionName: __expectString,
1491
- });
1492
- Object.assign(contents, doc);
1493
- return contents;
1494
- };
1495
- export const de_DeleteBackupPlanCommand = async (output, context) => {
1496
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1497
- return de_CommandError(output, context);
1498
- }
1499
- const contents = map({
1500
- $metadata: deserializeMetadata(output),
1501
- });
1502
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1503
- const doc = take(data, {
1504
- BackupPlanArn: __expectString,
1505
- BackupPlanId: __expectString,
1506
- DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1507
- VersionId: __expectString,
1508
- });
1509
- Object.assign(contents, doc);
1510
- return contents;
1511
- };
1512
- export const de_DeleteBackupSelectionCommand = async (output, context) => {
1513
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1514
- return de_CommandError(output, context);
1515
- }
1516
- const contents = map({
1517
- $metadata: deserializeMetadata(output),
1518
- });
1519
- await collectBody(output.body, context);
1520
- return contents;
1521
- };
1522
- export const de_DeleteBackupVaultCommand = async (output, context) => {
1523
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1524
- return de_CommandError(output, context);
1525
- }
1526
- const contents = map({
1527
- $metadata: deserializeMetadata(output),
1528
- });
1529
- await collectBody(output.body, context);
1530
- return contents;
1531
- };
1532
- export const de_DeleteBackupVaultAccessPolicyCommand = async (output, context) => {
1533
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1534
- return de_CommandError(output, context);
1535
- }
1536
- const contents = map({
1537
- $metadata: deserializeMetadata(output),
1538
- });
1539
- await collectBody(output.body, context);
1540
- return contents;
1541
- };
1542
- export const de_DeleteBackupVaultLockConfigurationCommand = async (output, context) => {
1543
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1544
- return de_CommandError(output, context);
1545
- }
1546
- const contents = map({
1547
- $metadata: deserializeMetadata(output),
1548
- });
1549
- await collectBody(output.body, context);
1550
- return contents;
1551
- };
1552
- export const de_DeleteBackupVaultNotificationsCommand = async (output, context) => {
1553
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1554
- return de_CommandError(output, context);
1555
- }
1556
- const contents = map({
1557
- $metadata: deserializeMetadata(output),
1558
- });
1559
- await collectBody(output.body, context);
1560
- return contents;
1561
- };
1562
- export const de_DeleteFrameworkCommand = async (output, context) => {
1563
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1564
- return de_CommandError(output, context);
1565
- }
1566
- const contents = map({
1567
- $metadata: deserializeMetadata(output),
1568
- });
1569
- await collectBody(output.body, context);
1570
- return contents;
1571
- };
1572
- export const de_DeleteRecoveryPointCommand = async (output, context) => {
1573
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1574
- return de_CommandError(output, context);
1575
- }
1576
- const contents = map({
1577
- $metadata: deserializeMetadata(output),
1578
- });
1579
- await collectBody(output.body, context);
1580
- return contents;
1581
- };
1582
- export const de_DeleteReportPlanCommand = async (output, context) => {
1583
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1584
- return de_CommandError(output, context);
1585
- }
1586
- const contents = map({
1587
- $metadata: deserializeMetadata(output),
1588
- });
1589
- await collectBody(output.body, context);
1590
- return contents;
1591
- };
1592
- export const de_DeleteRestoreTestingPlanCommand = async (output, context) => {
1593
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1594
- return de_CommandError(output, context);
1595
- }
1596
- const contents = map({
1597
- $metadata: deserializeMetadata(output),
1598
- });
1599
- await collectBody(output.body, context);
1600
- return contents;
1601
- };
1602
- export const de_DeleteRestoreTestingSelectionCommand = async (output, context) => {
1603
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1604
- return de_CommandError(output, context);
1605
- }
1606
- const contents = map({
1607
- $metadata: deserializeMetadata(output),
1608
- });
1609
- await collectBody(output.body, context);
1610
- return contents;
1611
- };
1612
- export const de_DescribeBackupJobCommand = async (output, context) => {
1613
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1614
- return de_CommandError(output, context);
1615
- }
1616
- const contents = map({
1617
- $metadata: deserializeMetadata(output),
1618
- });
1619
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1620
- const doc = take(data, {
1621
- AccountId: __expectString,
1622
- BackupJobId: __expectString,
1623
- BackupOptions: _json,
1624
- BackupSizeInBytes: __expectLong,
1625
- BackupType: __expectString,
1626
- BackupVaultArn: __expectString,
1627
- BackupVaultName: __expectString,
1628
- BytesTransferred: __expectLong,
1629
- ChildJobsInState: _json,
1630
- CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1631
- CreatedBy: _json,
1632
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1633
- EncryptionKeyArn: __expectString,
1634
- ExpectedCompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1635
- IamRoleArn: __expectString,
1636
- InitiationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1637
- IsEncrypted: __expectBoolean,
1638
- IsParent: __expectBoolean,
1639
- MessageCategory: __expectString,
1640
- NumberOfChildJobs: __expectLong,
1641
- ParentJobId: __expectString,
1642
- PercentDone: __expectString,
1643
- RecoveryPointArn: __expectString,
1644
- RecoveryPointLifecycle: _json,
1645
- ResourceArn: __expectString,
1646
- ResourceName: __expectString,
1647
- ResourceType: __expectString,
1648
- StartBy: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1649
- State: __expectString,
1650
- StatusMessage: __expectString,
1651
- VaultLockState: __expectString,
1652
- VaultType: __expectString,
1653
- });
1654
- Object.assign(contents, doc);
1655
- return contents;
1656
- };
1657
- export const de_DescribeBackupVaultCommand = async (output, context) => {
1658
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1659
- return de_CommandError(output, context);
1660
- }
1661
- const contents = map({
1662
- $metadata: deserializeMetadata(output),
1663
- });
1664
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1665
- const doc = take(data, {
1666
- BackupVaultArn: __expectString,
1667
- BackupVaultName: __expectString,
1668
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1669
- CreatorRequestId: __expectString,
1670
- EncryptionKeyArn: __expectString,
1671
- EncryptionKeyType: __expectString,
1672
- LatestMpaApprovalTeamUpdate: (_) => de_LatestMpaApprovalTeamUpdate(_, context),
1673
- LockDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1674
- Locked: __expectBoolean,
1675
- MaxRetentionDays: __expectLong,
1676
- MinRetentionDays: __expectLong,
1677
- MpaApprovalTeamArn: __expectString,
1678
- MpaSessionArn: __expectString,
1679
- NumberOfRecoveryPoints: __expectLong,
1680
- SourceBackupVaultArn: __expectString,
1681
- VaultState: __expectString,
1682
- VaultType: __expectString,
1683
- });
1684
- Object.assign(contents, doc);
1685
- return contents;
1686
- };
1687
- export const de_DescribeCopyJobCommand = async (output, context) => {
1688
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1689
- return de_CommandError(output, context);
1690
- }
1691
- const contents = map({
1692
- $metadata: deserializeMetadata(output),
1693
- });
1694
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1695
- const doc = take(data, {
1696
- CopyJob: (_) => de_CopyJob(_, context),
1697
- });
1698
- Object.assign(contents, doc);
1699
- return contents;
1700
- };
1701
- export const de_DescribeFrameworkCommand = async (output, context) => {
1702
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1703
- return de_CommandError(output, context);
1704
- }
1705
- const contents = map({
1706
- $metadata: deserializeMetadata(output),
1707
- });
1708
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1709
- const doc = take(data, {
1710
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1711
- DeploymentStatus: __expectString,
1712
- FrameworkArn: __expectString,
1713
- FrameworkControls: _json,
1714
- FrameworkDescription: __expectString,
1715
- FrameworkName: __expectString,
1716
- FrameworkStatus: __expectString,
1717
- IdempotencyToken: __expectString,
1718
- });
1719
- Object.assign(contents, doc);
1720
- return contents;
1721
- };
1722
- export const de_DescribeGlobalSettingsCommand = async (output, context) => {
1723
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1724
- return de_CommandError(output, context);
1725
- }
1726
- const contents = map({
1727
- $metadata: deserializeMetadata(output),
1728
- });
1729
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1730
- const doc = take(data, {
1731
- GlobalSettings: _json,
1732
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1733
- });
1734
- Object.assign(contents, doc);
1735
- return contents;
1736
- };
1737
- export const de_DescribeProtectedResourceCommand = async (output, context) => {
1738
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1739
- return de_CommandError(output, context);
1740
- }
1741
- const contents = map({
1742
- $metadata: deserializeMetadata(output),
1743
- });
1744
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1745
- const doc = take(data, {
1746
- LastBackupTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1747
- LastBackupVaultArn: __expectString,
1748
- LastRecoveryPointArn: __expectString,
1749
- LatestRestoreExecutionTimeMinutes: __expectLong,
1750
- LatestRestoreJobCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1751
- LatestRestoreRecoveryPointCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1752
- ResourceArn: __expectString,
1753
- ResourceName: __expectString,
1754
- ResourceType: __expectString,
1755
- });
1756
- Object.assign(contents, doc);
1757
- return contents;
1758
- };
1759
- export const de_DescribeRecoveryPointCommand = async (output, context) => {
1760
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1761
- return de_CommandError(output, context);
1762
- }
1763
- const contents = map({
1764
- $metadata: deserializeMetadata(output),
1765
- });
1766
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1767
- const doc = take(data, {
1768
- BackupSizeInBytes: __expectLong,
1769
- BackupVaultArn: __expectString,
1770
- BackupVaultName: __expectString,
1771
- CalculatedLifecycle: (_) => de_CalculatedLifecycle(_, context),
1772
- CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1773
- CompositeMemberIdentifier: __expectString,
1774
- CreatedBy: _json,
1775
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1776
- EncryptionKeyArn: __expectString,
1777
- EncryptionKeyType: __expectString,
1778
- IamRoleArn: __expectString,
1779
- IndexStatus: __expectString,
1780
- IndexStatusMessage: __expectString,
1781
- InitiationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1782
- IsEncrypted: __expectBoolean,
1783
- IsParent: __expectBoolean,
1784
- LastRestoreTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1785
- Lifecycle: _json,
1786
- ParentRecoveryPointArn: __expectString,
1787
- RecoveryPointArn: __expectString,
1788
- ResourceArn: __expectString,
1789
- ResourceName: __expectString,
1790
- ResourceType: __expectString,
1791
- SourceBackupVaultArn: __expectString,
1792
- Status: __expectString,
1793
- StatusMessage: __expectString,
1794
- StorageClass: __expectString,
1795
- VaultType: __expectString,
1796
- });
1797
- Object.assign(contents, doc);
1798
- return contents;
1799
- };
1800
- export const de_DescribeRegionSettingsCommand = async (output, context) => {
1801
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1802
- return de_CommandError(output, context);
1803
- }
1804
- const contents = map({
1805
- $metadata: deserializeMetadata(output),
1806
- });
1807
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1808
- const doc = take(data, {
1809
- ResourceTypeManagementPreference: _json,
1810
- ResourceTypeOptInPreference: _json,
1811
- });
1812
- Object.assign(contents, doc);
1813
- return contents;
1814
- };
1815
- export const de_DescribeReportJobCommand = async (output, context) => {
1816
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1817
- return de_CommandError(output, context);
1818
- }
1819
- const contents = map({
1820
- $metadata: deserializeMetadata(output),
1821
- });
1822
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1823
- const doc = take(data, {
1824
- ReportJob: (_) => de_ReportJob(_, context),
1825
- });
1826
- Object.assign(contents, doc);
1827
- return contents;
1828
- };
1829
- export const de_DescribeReportPlanCommand = async (output, context) => {
1830
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1831
- return de_CommandError(output, context);
1832
- }
1833
- const contents = map({
1834
- $metadata: deserializeMetadata(output),
1835
- });
1836
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1837
- const doc = take(data, {
1838
- ReportPlan: (_) => de_ReportPlan(_, context),
1839
- });
1840
- Object.assign(contents, doc);
1841
- return contents;
1842
- };
1843
- export const de_DescribeRestoreJobCommand = async (output, context) => {
1844
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1845
- return de_CommandError(output, context);
1846
- }
1847
- const contents = map({
1848
- $metadata: deserializeMetadata(output),
1849
- });
1850
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1851
- const doc = take(data, {
1852
- AccountId: __expectString,
1853
- BackupSizeInBytes: __expectLong,
1854
- BackupVaultArn: __expectString,
1855
- CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1856
- CreatedBy: _json,
1857
- CreatedResourceArn: __expectString,
1858
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1859
- DeletionStatus: __expectString,
1860
- DeletionStatusMessage: __expectString,
1861
- ExpectedCompletionTimeMinutes: __expectLong,
1862
- IamRoleArn: __expectString,
1863
- IsParent: __expectBoolean,
1864
- ParentJobId: __expectString,
1865
- PercentDone: __expectString,
1866
- RecoveryPointArn: __expectString,
1867
- RecoveryPointCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1868
- ResourceType: __expectString,
1869
- RestoreJobId: __expectString,
1870
- SourceResourceArn: __expectString,
1871
- Status: __expectString,
1872
- StatusMessage: __expectString,
1873
- ValidationStatus: __expectString,
1874
- ValidationStatusMessage: __expectString,
1875
- });
1876
- Object.assign(contents, doc);
1877
- return contents;
1878
- };
1879
- export const de_DisassociateBackupVaultMpaApprovalTeamCommand = async (output, context) => {
1880
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1881
- return de_CommandError(output, context);
1882
- }
1883
- const contents = map({
1884
- $metadata: deserializeMetadata(output),
1885
- });
1886
- await collectBody(output.body, context);
1887
- return contents;
1888
- };
1889
- export const de_DisassociateRecoveryPointCommand = async (output, context) => {
1890
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1891
- return de_CommandError(output, context);
1892
- }
1893
- const contents = map({
1894
- $metadata: deserializeMetadata(output),
1895
- });
1896
- await collectBody(output.body, context);
1897
- return contents;
1898
- };
1899
- export const de_DisassociateRecoveryPointFromParentCommand = async (output, context) => {
1900
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1901
- return de_CommandError(output, context);
1902
- }
1903
- const contents = map({
1904
- $metadata: deserializeMetadata(output),
1905
- });
1906
- await collectBody(output.body, context);
1907
- return contents;
1908
- };
1909
- export const de_ExportBackupPlanTemplateCommand = async (output, context) => {
1910
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1911
- return de_CommandError(output, context);
1912
- }
1913
- const contents = map({
1914
- $metadata: deserializeMetadata(output),
1915
- });
1916
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1917
- const doc = take(data, {
1918
- BackupPlanTemplateJson: __expectString,
1919
- });
1920
- Object.assign(contents, doc);
1921
- return contents;
1922
- };
1923
- export const de_GetBackupPlanCommand = async (output, context) => {
1924
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1925
- return de_CommandError(output, context);
1926
- }
1927
- const contents = map({
1928
- $metadata: deserializeMetadata(output),
1929
- });
1930
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1931
- const doc = take(data, {
1932
- AdvancedBackupSettings: _json,
1933
- BackupPlan: _json,
1934
- BackupPlanArn: __expectString,
1935
- BackupPlanId: __expectString,
1936
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1937
- CreatorRequestId: __expectString,
1938
- DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1939
- LastExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1940
- ScheduledRunsPreview: (_) => de_ScheduledRunsPreview(_, context),
1941
- VersionId: __expectString,
1942
- });
1943
- Object.assign(contents, doc);
1944
- return contents;
1945
- };
1946
- export const de_GetBackupPlanFromJSONCommand = async (output, context) => {
1947
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1948
- return de_CommandError(output, context);
1949
- }
1950
- const contents = map({
1951
- $metadata: deserializeMetadata(output),
1952
- });
1953
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1954
- const doc = take(data, {
1955
- BackupPlan: _json,
1956
- });
1957
- Object.assign(contents, doc);
1958
- return contents;
1959
- };
1960
- export const de_GetBackupPlanFromTemplateCommand = async (output, context) => {
1961
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1962
- return de_CommandError(output, context);
1963
- }
1964
- const contents = map({
1965
- $metadata: deserializeMetadata(output),
1966
- });
1967
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1968
- const doc = take(data, {
1969
- BackupPlanDocument: _json,
1970
- });
1971
- Object.assign(contents, doc);
1972
- return contents;
1973
- };
1974
- export const de_GetBackupSelectionCommand = async (output, context) => {
1975
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1976
- return de_CommandError(output, context);
1977
- }
1978
- const contents = map({
1979
- $metadata: deserializeMetadata(output),
1980
- });
1981
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1982
- const doc = take(data, {
1983
- BackupPlanId: __expectString,
1984
- BackupSelection: _json,
1985
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1986
- CreatorRequestId: __expectString,
1987
- SelectionId: __expectString,
1988
- });
1989
- Object.assign(contents, doc);
1990
- return contents;
1991
- };
1992
- export const de_GetBackupVaultAccessPolicyCommand = async (output, context) => {
1993
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1994
- return de_CommandError(output, context);
1995
- }
1996
- const contents = map({
1997
- $metadata: deserializeMetadata(output),
1998
- });
1999
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2000
- const doc = take(data, {
2001
- BackupVaultArn: __expectString,
2002
- BackupVaultName: __expectString,
2003
- Policy: __expectString,
2004
- });
2005
- Object.assign(contents, doc);
2006
- return contents;
2007
- };
2008
- export const de_GetBackupVaultNotificationsCommand = async (output, context) => {
2009
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2010
- return de_CommandError(output, context);
2011
- }
2012
- const contents = map({
2013
- $metadata: deserializeMetadata(output),
2014
- });
2015
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2016
- const doc = take(data, {
2017
- BackupVaultArn: __expectString,
2018
- BackupVaultEvents: _json,
2019
- BackupVaultName: __expectString,
2020
- SNSTopicArn: __expectString,
2021
- });
2022
- Object.assign(contents, doc);
2023
- return contents;
2024
- };
2025
- export const de_GetLegalHoldCommand = async (output, context) => {
2026
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2027
- return de_CommandError(output, context);
2028
- }
2029
- const contents = map({
2030
- $metadata: deserializeMetadata(output),
2031
- });
2032
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2033
- const doc = take(data, {
2034
- CancelDescription: __expectString,
2035
- CancellationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2036
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2037
- Description: __expectString,
2038
- LegalHoldArn: __expectString,
2039
- LegalHoldId: __expectString,
2040
- RecoveryPointSelection: (_) => de_RecoveryPointSelection(_, context),
2041
- RetainRecordUntil: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2042
- Status: __expectString,
2043
- Title: __expectString,
2044
- });
2045
- Object.assign(contents, doc);
2046
- return contents;
2047
- };
2048
- export const de_GetRecoveryPointIndexDetailsCommand = async (output, context) => {
2049
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2050
- return de_CommandError(output, context);
2051
- }
2052
- const contents = map({
2053
- $metadata: deserializeMetadata(output),
2054
- });
2055
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2056
- const doc = take(data, {
2057
- BackupVaultArn: __expectString,
2058
- IndexCompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2059
- IndexCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2060
- IndexDeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2061
- IndexStatus: __expectString,
2062
- IndexStatusMessage: __expectString,
2063
- RecoveryPointArn: __expectString,
2064
- SourceResourceArn: __expectString,
2065
- TotalItemsIndexed: __expectLong,
2066
- });
2067
- Object.assign(contents, doc);
2068
- return contents;
2069
- };
2070
- export const de_GetRecoveryPointRestoreMetadataCommand = async (output, context) => {
2071
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2072
- return de_CommandError(output, context);
2073
- }
2074
- const contents = map({
2075
- $metadata: deserializeMetadata(output),
2076
- });
2077
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2078
- const doc = take(data, {
2079
- BackupVaultArn: __expectString,
2080
- RecoveryPointArn: __expectString,
2081
- ResourceType: __expectString,
2082
- RestoreMetadata: _json,
2083
- });
2084
- Object.assign(contents, doc);
2085
- return contents;
2086
- };
2087
- export const de_GetRestoreJobMetadataCommand = async (output, context) => {
2088
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2089
- return de_CommandError(output, context);
2090
- }
2091
- const contents = map({
2092
- $metadata: deserializeMetadata(output),
2093
- });
2094
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2095
- const doc = take(data, {
2096
- Metadata: _json,
2097
- RestoreJobId: __expectString,
2098
- });
2099
- Object.assign(contents, doc);
2100
- return contents;
2101
- };
2102
- export const de_GetRestoreTestingInferredMetadataCommand = async (output, context) => {
2103
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2104
- return de_CommandError(output, context);
2105
- }
2106
- const contents = map({
2107
- $metadata: deserializeMetadata(output),
2108
- });
2109
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2110
- const doc = take(data, {
2111
- InferredMetadata: _json,
2112
- });
2113
- Object.assign(contents, doc);
2114
- return contents;
2115
- };
2116
- export const de_GetRestoreTestingPlanCommand = async (output, context) => {
2117
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2118
- return de_CommandError(output, context);
2119
- }
2120
- const contents = map({
2121
- $metadata: deserializeMetadata(output),
2122
- });
2123
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2124
- const doc = take(data, {
2125
- RestoreTestingPlan: (_) => de_RestoreTestingPlanForGet(_, context),
2126
- });
2127
- Object.assign(contents, doc);
2128
- return contents;
2129
- };
2130
- export const de_GetRestoreTestingSelectionCommand = async (output, context) => {
2131
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2132
- return de_CommandError(output, context);
2133
- }
2134
- const contents = map({
2135
- $metadata: deserializeMetadata(output),
2136
- });
2137
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2138
- const doc = take(data, {
2139
- RestoreTestingSelection: (_) => de_RestoreTestingSelectionForGet(_, context),
2140
- });
2141
- Object.assign(contents, doc);
2142
- return contents;
2143
- };
2144
- export const de_GetSupportedResourceTypesCommand = async (output, context) => {
2145
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2146
- return de_CommandError(output, context);
2147
- }
2148
- const contents = map({
2149
- $metadata: deserializeMetadata(output),
2150
- });
2151
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2152
- const doc = take(data, {
2153
- ResourceTypes: _json,
2154
- });
2155
- Object.assign(contents, doc);
2156
- return contents;
2157
- };
2158
- export const de_ListBackupJobsCommand = async (output, context) => {
2159
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2160
- return de_CommandError(output, context);
2161
- }
2162
- const contents = map({
2163
- $metadata: deserializeMetadata(output),
2164
- });
2165
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2166
- const doc = take(data, {
2167
- BackupJobs: (_) => de_BackupJobsList(_, context),
2168
- NextToken: __expectString,
2169
- });
2170
- Object.assign(contents, doc);
2171
- return contents;
2172
- };
2173
- export const de_ListBackupJobSummariesCommand = async (output, context) => {
2174
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2175
- return de_CommandError(output, context);
2176
- }
2177
- const contents = map({
2178
- $metadata: deserializeMetadata(output),
2179
- });
2180
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2181
- const doc = take(data, {
2182
- AggregationPeriod: __expectString,
2183
- BackupJobSummaries: (_) => de_BackupJobSummaryList(_, context),
2184
- NextToken: __expectString,
2185
- });
2186
- Object.assign(contents, doc);
2187
- return contents;
2188
- };
2189
- export const de_ListBackupPlansCommand = async (output, context) => {
2190
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2191
- return de_CommandError(output, context);
2192
- }
2193
- const contents = map({
2194
- $metadata: deserializeMetadata(output),
2195
- });
2196
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2197
- const doc = take(data, {
2198
- BackupPlansList: (_) => de_BackupPlansList(_, context),
2199
- NextToken: __expectString,
2200
- });
2201
- Object.assign(contents, doc);
2202
- return contents;
2203
- };
2204
- export const de_ListBackupPlanTemplatesCommand = async (output, context) => {
2205
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2206
- return de_CommandError(output, context);
2207
- }
2208
- const contents = map({
2209
- $metadata: deserializeMetadata(output),
2210
- });
2211
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2212
- const doc = take(data, {
2213
- BackupPlanTemplatesList: _json,
2214
- NextToken: __expectString,
2215
- });
2216
- Object.assign(contents, doc);
2217
- return contents;
2218
- };
2219
- export const de_ListBackupPlanVersionsCommand = async (output, context) => {
2220
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2221
- return de_CommandError(output, context);
2222
- }
2223
- const contents = map({
2224
- $metadata: deserializeMetadata(output),
2225
- });
2226
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2227
- const doc = take(data, {
2228
- BackupPlanVersionsList: (_) => de_BackupPlanVersionsList(_, context),
2229
- NextToken: __expectString,
2230
- });
2231
- Object.assign(contents, doc);
2232
- return contents;
2233
- };
2234
- export const de_ListBackupSelectionsCommand = async (output, context) => {
2235
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2236
- return de_CommandError(output, context);
2237
- }
2238
- const contents = map({
2239
- $metadata: deserializeMetadata(output),
2240
- });
2241
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2242
- const doc = take(data, {
2243
- BackupSelectionsList: (_) => de_BackupSelectionsList(_, context),
2244
- NextToken: __expectString,
2245
- });
2246
- Object.assign(contents, doc);
2247
- return contents;
2248
- };
2249
- export const de_ListBackupVaultsCommand = async (output, context) => {
2250
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2251
- return de_CommandError(output, context);
2252
- }
2253
- const contents = map({
2254
- $metadata: deserializeMetadata(output),
2255
- });
2256
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2257
- const doc = take(data, {
2258
- BackupVaultList: (_) => de_BackupVaultList(_, context),
2259
- NextToken: __expectString,
2260
- });
2261
- Object.assign(contents, doc);
2262
- return contents;
2263
- };
2264
- export const de_ListCopyJobsCommand = async (output, context) => {
2265
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2266
- return de_CommandError(output, context);
2267
- }
2268
- const contents = map({
2269
- $metadata: deserializeMetadata(output),
2270
- });
2271
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2272
- const doc = take(data, {
2273
- CopyJobs: (_) => de_CopyJobsList(_, context),
2274
- NextToken: __expectString,
2275
- });
2276
- Object.assign(contents, doc);
2277
- return contents;
2278
- };
2279
- export const de_ListCopyJobSummariesCommand = async (output, context) => {
2280
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2281
- return de_CommandError(output, context);
2282
- }
2283
- const contents = map({
2284
- $metadata: deserializeMetadata(output),
2285
- });
2286
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2287
- const doc = take(data, {
2288
- AggregationPeriod: __expectString,
2289
- CopyJobSummaries: (_) => de_CopyJobSummaryList(_, context),
2290
- NextToken: __expectString,
2291
- });
2292
- Object.assign(contents, doc);
2293
- return contents;
2294
- };
2295
- export const de_ListFrameworksCommand = async (output, context) => {
2296
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2297
- return de_CommandError(output, context);
2298
- }
2299
- const contents = map({
2300
- $metadata: deserializeMetadata(output),
2301
- });
2302
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2303
- const doc = take(data, {
2304
- Frameworks: (_) => de_FrameworkList(_, context),
2305
- NextToken: __expectString,
2306
- });
2307
- Object.assign(contents, doc);
2308
- return contents;
2309
- };
2310
- export const de_ListIndexedRecoveryPointsCommand = async (output, context) => {
2311
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2312
- return de_CommandError(output, context);
2313
- }
2314
- const contents = map({
2315
- $metadata: deserializeMetadata(output),
2316
- });
2317
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2318
- const doc = take(data, {
2319
- IndexedRecoveryPoints: (_) => de_IndexedRecoveryPointList(_, context),
2320
- NextToken: __expectString,
2321
- });
2322
- Object.assign(contents, doc);
2323
- return contents;
2324
- };
2325
- export const de_ListLegalHoldsCommand = async (output, context) => {
2326
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2327
- return de_CommandError(output, context);
2328
- }
2329
- const contents = map({
2330
- $metadata: deserializeMetadata(output),
2331
- });
2332
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2333
- const doc = take(data, {
2334
- LegalHolds: (_) => de_LegalHoldsList(_, context),
2335
- NextToken: __expectString,
2336
- });
2337
- Object.assign(contents, doc);
2338
- return contents;
2339
- };
2340
- export const de_ListProtectedResourcesCommand = async (output, context) => {
2341
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2342
- return de_CommandError(output, context);
2343
- }
2344
- const contents = map({
2345
- $metadata: deserializeMetadata(output),
2346
- });
2347
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2348
- const doc = take(data, {
2349
- NextToken: __expectString,
2350
- Results: (_) => de_ProtectedResourcesList(_, context),
2351
- });
2352
- Object.assign(contents, doc);
2353
- return contents;
2354
- };
2355
- export const de_ListProtectedResourcesByBackupVaultCommand = async (output, context) => {
2356
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2357
- return de_CommandError(output, context);
2358
- }
2359
- const contents = map({
2360
- $metadata: deserializeMetadata(output),
2361
- });
2362
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2363
- const doc = take(data, {
2364
- NextToken: __expectString,
2365
- Results: (_) => de_ProtectedResourcesList(_, context),
2366
- });
2367
- Object.assign(contents, doc);
2368
- return contents;
2369
- };
2370
- export const de_ListRecoveryPointsByBackupVaultCommand = async (output, context) => {
2371
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2372
- return de_CommandError(output, context);
2373
- }
2374
- const contents = map({
2375
- $metadata: deserializeMetadata(output),
2376
- });
2377
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2378
- const doc = take(data, {
2379
- NextToken: __expectString,
2380
- RecoveryPoints: (_) => de_RecoveryPointByBackupVaultList(_, context),
2381
- });
2382
- Object.assign(contents, doc);
2383
- return contents;
2384
- };
2385
- export const de_ListRecoveryPointsByLegalHoldCommand = async (output, context) => {
2386
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2387
- return de_CommandError(output, context);
2388
- }
2389
- const contents = map({
2390
- $metadata: deserializeMetadata(output),
2391
- });
2392
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2393
- const doc = take(data, {
2394
- NextToken: __expectString,
2395
- RecoveryPoints: _json,
2396
- });
2397
- Object.assign(contents, doc);
2398
- return contents;
2399
- };
2400
- export const de_ListRecoveryPointsByResourceCommand = async (output, context) => {
2401
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2402
- return de_CommandError(output, context);
2403
- }
2404
- const contents = map({
2405
- $metadata: deserializeMetadata(output),
2406
- });
2407
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2408
- const doc = take(data, {
2409
- NextToken: __expectString,
2410
- RecoveryPoints: (_) => de_RecoveryPointByResourceList(_, context),
2411
- });
2412
- Object.assign(contents, doc);
2413
- return contents;
2414
- };
2415
- export const de_ListReportJobsCommand = async (output, context) => {
2416
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2417
- return de_CommandError(output, context);
2418
- }
2419
- const contents = map({
2420
- $metadata: deserializeMetadata(output),
2421
- });
2422
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2423
- const doc = take(data, {
2424
- NextToken: __expectString,
2425
- ReportJobs: (_) => de_ReportJobList(_, context),
2426
- });
2427
- Object.assign(contents, doc);
2428
- return contents;
2429
- };
2430
- export const de_ListReportPlansCommand = async (output, context) => {
2431
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2432
- return de_CommandError(output, context);
2433
- }
2434
- const contents = map({
2435
- $metadata: deserializeMetadata(output),
2436
- });
2437
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2438
- const doc = take(data, {
2439
- NextToken: __expectString,
2440
- ReportPlans: (_) => de_ReportPlanList(_, context),
2441
- });
2442
- Object.assign(contents, doc);
2443
- return contents;
2444
- };
2445
- export const de_ListRestoreAccessBackupVaultsCommand = async (output, context) => {
2446
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2447
- return de_CommandError(output, context);
2448
- }
2449
- const contents = map({
2450
- $metadata: deserializeMetadata(output),
2451
- });
2452
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2453
- const doc = take(data, {
2454
- NextToken: __expectString,
2455
- RestoreAccessBackupVaults: (_) => de_RestoreAccessBackupVaultList(_, context),
2456
- });
2457
- Object.assign(contents, doc);
2458
- return contents;
2459
- };
2460
- export const de_ListRestoreJobsCommand = async (output, context) => {
2461
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2462
- return de_CommandError(output, context);
2463
- }
2464
- const contents = map({
2465
- $metadata: deserializeMetadata(output),
2466
- });
2467
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2468
- const doc = take(data, {
2469
- NextToken: __expectString,
2470
- RestoreJobs: (_) => de_RestoreJobsList(_, context),
2471
- });
2472
- Object.assign(contents, doc);
2473
- return contents;
2474
- };
2475
- export const de_ListRestoreJobsByProtectedResourceCommand = async (output, context) => {
2476
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2477
- return de_CommandError(output, context);
2478
- }
2479
- const contents = map({
2480
- $metadata: deserializeMetadata(output),
2481
- });
2482
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2483
- const doc = take(data, {
2484
- NextToken: __expectString,
2485
- RestoreJobs: (_) => de_RestoreJobsList(_, context),
2486
- });
2487
- Object.assign(contents, doc);
2488
- return contents;
2489
- };
2490
- export const de_ListRestoreJobSummariesCommand = async (output, context) => {
2491
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2492
- return de_CommandError(output, context);
2493
- }
2494
- const contents = map({
2495
- $metadata: deserializeMetadata(output),
2496
- });
2497
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2498
- const doc = take(data, {
2499
- AggregationPeriod: __expectString,
2500
- NextToken: __expectString,
2501
- RestoreJobSummaries: (_) => de_RestoreJobSummaryList(_, context),
2502
- });
2503
- Object.assign(contents, doc);
2504
- return contents;
2505
- };
2506
- export const de_ListRestoreTestingPlansCommand = async (output, context) => {
2507
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2508
- return de_CommandError(output, context);
2509
- }
2510
- const contents = map({
2511
- $metadata: deserializeMetadata(output),
2512
- });
2513
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2514
- const doc = take(data, {
2515
- NextToken: __expectString,
2516
- RestoreTestingPlans: (_) => de_RestoreTestingPlans(_, context),
2517
- });
2518
- Object.assign(contents, doc);
2519
- return contents;
2520
- };
2521
- export const de_ListRestoreTestingSelectionsCommand = async (output, context) => {
2522
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2523
- return de_CommandError(output, context);
2524
- }
2525
- const contents = map({
2526
- $metadata: deserializeMetadata(output),
2527
- });
2528
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2529
- const doc = take(data, {
2530
- NextToken: __expectString,
2531
- RestoreTestingSelections: (_) => de_RestoreTestingSelections(_, context),
2532
- });
2533
- Object.assign(contents, doc);
2534
- return contents;
2535
- };
2536
- export const de_ListTagsCommand = async (output, context) => {
2537
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2538
- return de_CommandError(output, context);
2539
- }
2540
- const contents = map({
2541
- $metadata: deserializeMetadata(output),
2542
- });
2543
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2544
- const doc = take(data, {
2545
- NextToken: __expectString,
2546
- Tags: _json,
2547
- });
2548
- Object.assign(contents, doc);
2549
- return contents;
2550
- };
2551
- export const de_PutBackupVaultAccessPolicyCommand = async (output, context) => {
2552
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2553
- return de_CommandError(output, context);
2554
- }
2555
- const contents = map({
2556
- $metadata: deserializeMetadata(output),
2557
- });
2558
- await collectBody(output.body, context);
2559
- return contents;
2560
- };
2561
- export const de_PutBackupVaultLockConfigurationCommand = async (output, context) => {
2562
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2563
- return de_CommandError(output, context);
2564
- }
2565
- const contents = map({
2566
- $metadata: deserializeMetadata(output),
2567
- });
2568
- await collectBody(output.body, context);
2569
- return contents;
2570
- };
2571
- export const de_PutBackupVaultNotificationsCommand = async (output, context) => {
2572
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2573
- return de_CommandError(output, context);
2574
- }
2575
- const contents = map({
2576
- $metadata: deserializeMetadata(output),
2577
- });
2578
- await collectBody(output.body, context);
2579
- return contents;
2580
- };
2581
- export const de_PutRestoreValidationResultCommand = async (output, context) => {
2582
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2583
- return de_CommandError(output, context);
2584
- }
2585
- const contents = map({
2586
- $metadata: deserializeMetadata(output),
2587
- });
2588
- await collectBody(output.body, context);
2589
- return contents;
2590
- };
2591
- export const de_RevokeRestoreAccessBackupVaultCommand = async (output, context) => {
2592
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2593
- return de_CommandError(output, context);
2594
- }
2595
- const contents = map({
2596
- $metadata: deserializeMetadata(output),
2597
- });
2598
- await collectBody(output.body, context);
2599
- return contents;
2600
- };
2601
- export const de_StartBackupJobCommand = async (output, context) => {
2602
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2603
- return de_CommandError(output, context);
2604
- }
2605
- const contents = map({
2606
- $metadata: deserializeMetadata(output),
2607
- });
2608
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2609
- const doc = take(data, {
2610
- BackupJobId: __expectString,
2611
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2612
- IsParent: __expectBoolean,
2613
- RecoveryPointArn: __expectString,
2614
- });
2615
- Object.assign(contents, doc);
2616
- return contents;
2617
- };
2618
- export const de_StartCopyJobCommand = async (output, context) => {
2619
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2620
- return de_CommandError(output, context);
2621
- }
2622
- const contents = map({
2623
- $metadata: deserializeMetadata(output),
2624
- });
2625
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2626
- const doc = take(data, {
2627
- CopyJobId: __expectString,
2628
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2629
- IsParent: __expectBoolean,
2630
- });
2631
- Object.assign(contents, doc);
2632
- return contents;
2633
- };
2634
- export const de_StartReportJobCommand = async (output, context) => {
2635
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2636
- return de_CommandError(output, context);
2637
- }
2638
- const contents = map({
2639
- $metadata: deserializeMetadata(output),
2640
- });
2641
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2642
- const doc = take(data, {
2643
- ReportJobId: __expectString,
2644
- });
2645
- Object.assign(contents, doc);
2646
- return contents;
2647
- };
2648
- export const de_StartRestoreJobCommand = async (output, context) => {
2649
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2650
- return de_CommandError(output, context);
2651
- }
2652
- const contents = map({
2653
- $metadata: deserializeMetadata(output),
2654
- });
2655
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2656
- const doc = take(data, {
2657
- RestoreJobId: __expectString,
2658
- });
2659
- Object.assign(contents, doc);
2660
- return contents;
2661
- };
2662
- export const de_StopBackupJobCommand = async (output, context) => {
2663
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2664
- return de_CommandError(output, context);
2665
- }
2666
- const contents = map({
2667
- $metadata: deserializeMetadata(output),
2668
- });
2669
- await collectBody(output.body, context);
2670
- return contents;
2671
- };
2672
- export const de_TagResourceCommand = async (output, context) => {
2673
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2674
- return de_CommandError(output, context);
2675
- }
2676
- const contents = map({
2677
- $metadata: deserializeMetadata(output),
2678
- });
2679
- await collectBody(output.body, context);
2680
- return contents;
2681
- };
2682
- export const de_UntagResourceCommand = async (output, context) => {
2683
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2684
- return de_CommandError(output, context);
2685
- }
2686
- const contents = map({
2687
- $metadata: deserializeMetadata(output),
2688
- });
2689
- await collectBody(output.body, context);
2690
- return contents;
2691
- };
2692
- export const de_UpdateBackupPlanCommand = async (output, context) => {
2693
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2694
- return de_CommandError(output, context);
2695
- }
2696
- const contents = map({
2697
- $metadata: deserializeMetadata(output),
2698
- });
2699
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2700
- const doc = take(data, {
2701
- AdvancedBackupSettings: _json,
2702
- BackupPlanArn: __expectString,
2703
- BackupPlanId: __expectString,
2704
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2705
- VersionId: __expectString,
2706
- });
2707
- Object.assign(contents, doc);
2708
- return contents;
2709
- };
2710
- export const de_UpdateFrameworkCommand = async (output, context) => {
2711
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2712
- return de_CommandError(output, context);
2713
- }
2714
- const contents = map({
2715
- $metadata: deserializeMetadata(output),
2716
- });
2717
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2718
- const doc = take(data, {
2719
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2720
- FrameworkArn: __expectString,
2721
- FrameworkName: __expectString,
2722
- });
2723
- Object.assign(contents, doc);
2724
- return contents;
2725
- };
2726
- export const de_UpdateGlobalSettingsCommand = async (output, context) => {
2727
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2728
- return de_CommandError(output, context);
2729
- }
2730
- const contents = map({
2731
- $metadata: deserializeMetadata(output),
2732
- });
2733
- await collectBody(output.body, context);
2734
- return contents;
2735
- };
2736
- export const de_UpdateRecoveryPointIndexSettingsCommand = async (output, context) => {
2737
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2738
- return de_CommandError(output, context);
2739
- }
2740
- const contents = map({
2741
- $metadata: deserializeMetadata(output),
2742
- });
2743
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2744
- const doc = take(data, {
2745
- BackupVaultName: __expectString,
2746
- Index: __expectString,
2747
- IndexStatus: __expectString,
2748
- RecoveryPointArn: __expectString,
2749
- });
2750
- Object.assign(contents, doc);
2751
- return contents;
2752
- };
2753
- export const de_UpdateRecoveryPointLifecycleCommand = async (output, context) => {
2754
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2755
- return de_CommandError(output, context);
2756
- }
2757
- const contents = map({
2758
- $metadata: deserializeMetadata(output),
2759
- });
2760
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2761
- const doc = take(data, {
2762
- BackupVaultArn: __expectString,
2763
- CalculatedLifecycle: (_) => de_CalculatedLifecycle(_, context),
2764
- Lifecycle: _json,
2765
- RecoveryPointArn: __expectString,
2766
- });
2767
- Object.assign(contents, doc);
2768
- return contents;
2769
- };
2770
- export const de_UpdateRegionSettingsCommand = async (output, context) => {
2771
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2772
- return de_CommandError(output, context);
2773
- }
2774
- const contents = map({
2775
- $metadata: deserializeMetadata(output),
2776
- });
2777
- await collectBody(output.body, context);
2778
- return contents;
2779
- };
2780
- export const de_UpdateReportPlanCommand = async (output, context) => {
2781
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2782
- return de_CommandError(output, context);
2783
- }
2784
- const contents = map({
2785
- $metadata: deserializeMetadata(output),
2786
- });
2787
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2788
- const doc = take(data, {
2789
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2790
- ReportPlanArn: __expectString,
2791
- ReportPlanName: __expectString,
2792
- });
2793
- Object.assign(contents, doc);
2794
- return contents;
2795
- };
2796
- export const de_UpdateRestoreTestingPlanCommand = async (output, context) => {
2797
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2798
- return de_CommandError(output, context);
2799
- }
2800
- const contents = map({
2801
- $metadata: deserializeMetadata(output),
2802
- });
2803
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2804
- const doc = take(data, {
2805
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2806
- RestoreTestingPlanArn: __expectString,
2807
- RestoreTestingPlanName: __expectString,
2808
- UpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2809
- });
2810
- Object.assign(contents, doc);
2811
- return contents;
2812
- };
2813
- export const de_UpdateRestoreTestingSelectionCommand = async (output, context) => {
2814
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2815
- return de_CommandError(output, context);
2816
- }
2817
- const contents = map({
2818
- $metadata: deserializeMetadata(output),
2819
- });
2820
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2821
- const doc = take(data, {
2822
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2823
- RestoreTestingPlanArn: __expectString,
2824
- RestoreTestingPlanName: __expectString,
2825
- RestoreTestingSelectionName: __expectString,
2826
- UpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2827
- });
2828
- Object.assign(contents, doc);
2829
- return contents;
2830
- };
2831
- const de_CommandError = async (output, context) => {
2832
- const parsedOutput = {
2833
- ...output,
2834
- body: await parseErrorBody(output.body, context),
2835
- };
2836
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2837
- switch (errorCode) {
2838
- case "InvalidParameterValueException":
2839
- case "com.amazonaws.backup#InvalidParameterValueException":
2840
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2841
- case "InvalidRequestException":
2842
- case "com.amazonaws.backup#InvalidRequestException":
2843
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2844
- case "MissingParameterValueException":
2845
- case "com.amazonaws.backup#MissingParameterValueException":
2846
- throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
2847
- case "ResourceNotFoundException":
2848
- case "com.amazonaws.backup#ResourceNotFoundException":
2849
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2850
- case "ServiceUnavailableException":
2851
- case "com.amazonaws.backup#ServiceUnavailableException":
2852
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2853
- case "InvalidResourceStateException":
2854
- case "com.amazonaws.backup#InvalidResourceStateException":
2855
- throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
2856
- case "AlreadyExistsException":
2857
- case "com.amazonaws.backup#AlreadyExistsException":
2858
- throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
2859
- case "LimitExceededException":
2860
- case "com.amazonaws.backup#LimitExceededException":
2861
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2862
- case "ConflictException":
2863
- case "com.amazonaws.backup#ConflictException":
2864
- throw await de_ConflictExceptionRes(parsedOutput, context);
2865
- case "DependencyFailureException":
2866
- case "com.amazonaws.backup#DependencyFailureException":
2867
- throw await de_DependencyFailureExceptionRes(parsedOutput, context);
2868
- default:
2869
- const parsedBody = parsedOutput.body;
2870
- return throwDefaultError({
2871
- output,
2872
- parsedBody,
2873
- errorCode,
2874
- });
2875
- }
2876
- };
2877
- const throwDefaultError = withBaseException(__BaseException);
2878
- const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
2879
- const contents = map({});
2880
- const data = parsedOutput.body;
2881
- const doc = take(data, {
2882
- Arn: __expectString,
2883
- Code: __expectString,
2884
- Context: __expectString,
2885
- CreatorRequestId: __expectString,
2886
- Message: __expectString,
2887
- Type: __expectString,
2888
- });
2889
- Object.assign(contents, doc);
2890
- const exception = new AlreadyExistsException({
2891
- $metadata: deserializeMetadata(parsedOutput),
2892
- ...contents,
2893
- });
2894
- return __decorateServiceException(exception, parsedOutput.body);
2895
- };
2896
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
2897
- const contents = map({});
2898
- const data = parsedOutput.body;
2899
- const doc = take(data, {
2900
- Code: __expectString,
2901
- Context: __expectString,
2902
- Message: __expectString,
2903
- Type: __expectString,
2904
- });
2905
- Object.assign(contents, doc);
2906
- const exception = new ConflictException({
2907
- $metadata: deserializeMetadata(parsedOutput),
2908
- ...contents,
2909
- });
2910
- return __decorateServiceException(exception, parsedOutput.body);
2911
- };
2912
- const de_DependencyFailureExceptionRes = async (parsedOutput, context) => {
2913
- const contents = map({});
2914
- const data = parsedOutput.body;
2915
- const doc = take(data, {
2916
- Code: __expectString,
2917
- Context: __expectString,
2918
- Message: __expectString,
2919
- Type: __expectString,
2920
- });
2921
- Object.assign(contents, doc);
2922
- const exception = new DependencyFailureException({
2923
- $metadata: deserializeMetadata(parsedOutput),
2924
- ...contents,
2925
- });
2926
- return __decorateServiceException(exception, parsedOutput.body);
2927
- };
2928
- const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
2929
- const contents = map({});
2930
- const data = parsedOutput.body;
2931
- const doc = take(data, {
2932
- Code: __expectString,
2933
- Context: __expectString,
2934
- Message: __expectString,
2935
- Type: __expectString,
2936
- });
2937
- Object.assign(contents, doc);
2938
- const exception = new InvalidParameterValueException({
2939
- $metadata: deserializeMetadata(parsedOutput),
2940
- ...contents,
2941
- });
2942
- return __decorateServiceException(exception, parsedOutput.body);
2943
- };
2944
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
2945
- const contents = map({});
2946
- const data = parsedOutput.body;
2947
- const doc = take(data, {
2948
- Code: __expectString,
2949
- Context: __expectString,
2950
- Message: __expectString,
2951
- Type: __expectString,
2952
- });
2953
- Object.assign(contents, doc);
2954
- const exception = new InvalidRequestException({
2955
- $metadata: deserializeMetadata(parsedOutput),
2956
- ...contents,
2957
- });
2958
- return __decorateServiceException(exception, parsedOutput.body);
2959
- };
2960
- const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
2961
- const contents = map({});
2962
- const data = parsedOutput.body;
2963
- const doc = take(data, {
2964
- Code: __expectString,
2965
- Context: __expectString,
2966
- Message: __expectString,
2967
- Type: __expectString,
2968
- });
2969
- Object.assign(contents, doc);
2970
- const exception = new InvalidResourceStateException({
2971
- $metadata: deserializeMetadata(parsedOutput),
2972
- ...contents,
2973
- });
2974
- return __decorateServiceException(exception, parsedOutput.body);
2975
- };
2976
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2977
- const contents = map({});
2978
- const data = parsedOutput.body;
2979
- const doc = take(data, {
2980
- Code: __expectString,
2981
- Context: __expectString,
2982
- Message: __expectString,
2983
- Type: __expectString,
2984
- });
2985
- Object.assign(contents, doc);
2986
- const exception = new LimitExceededException({
2987
- $metadata: deserializeMetadata(parsedOutput),
2988
- ...contents,
2989
- });
2990
- return __decorateServiceException(exception, parsedOutput.body);
2991
- };
2992
- const de_MissingParameterValueExceptionRes = async (parsedOutput, context) => {
2993
- const contents = map({});
2994
- const data = parsedOutput.body;
2995
- const doc = take(data, {
2996
- Code: __expectString,
2997
- Context: __expectString,
2998
- Message: __expectString,
2999
- Type: __expectString,
3000
- });
3001
- Object.assign(contents, doc);
3002
- const exception = new MissingParameterValueException({
3003
- $metadata: deserializeMetadata(parsedOutput),
3004
- ...contents,
3005
- });
3006
- return __decorateServiceException(exception, parsedOutput.body);
3007
- };
3008
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3009
- const contents = map({});
3010
- const data = parsedOutput.body;
3011
- const doc = take(data, {
3012
- Code: __expectString,
3013
- Context: __expectString,
3014
- Message: __expectString,
3015
- Type: __expectString,
3016
- });
3017
- Object.assign(contents, doc);
3018
- const exception = new ResourceNotFoundException({
3019
- $metadata: deserializeMetadata(parsedOutput),
3020
- ...contents,
3021
- });
3022
- return __decorateServiceException(exception, parsedOutput.body);
3023
- };
3024
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
3025
- const contents = map({});
3026
- const data = parsedOutput.body;
3027
- const doc = take(data, {
3028
- Code: __expectString,
3029
- Context: __expectString,
3030
- Message: __expectString,
3031
- Type: __expectString,
3032
- });
3033
- Object.assign(contents, doc);
3034
- const exception = new ServiceUnavailableException({
3035
- $metadata: deserializeMetadata(parsedOutput),
3036
- ...contents,
3037
- });
3038
- return __decorateServiceException(exception, parsedOutput.body);
3039
- };
3040
- const se_DateRange = (input, context) => {
3041
- return take(input, {
3042
- FromDate: (_) => _.getTime() / 1_000,
3043
- ToDate: (_) => _.getTime() / 1_000,
3044
- });
3045
- };
3046
- const se_RecoveryPointSelection = (input, context) => {
3047
- return take(input, {
3048
- DateRange: (_) => se_DateRange(_, context),
3049
- ResourceIdentifiers: _json,
3050
- VaultNames: _json,
3051
- });
3052
- };
3053
- const de_BackupJob = (output, context) => {
3054
- return take(output, {
3055
- AccountId: __expectString,
3056
- BackupJobId: __expectString,
3057
- BackupOptions: _json,
3058
- BackupSizeInBytes: __expectLong,
3059
- BackupType: __expectString,
3060
- BackupVaultArn: __expectString,
3061
- BackupVaultName: __expectString,
3062
- BytesTransferred: __expectLong,
3063
- CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3064
- CreatedBy: _json,
3065
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3066
- EncryptionKeyArn: __expectString,
3067
- ExpectedCompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3068
- IamRoleArn: __expectString,
3069
- InitiationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3070
- IsEncrypted: __expectBoolean,
3071
- IsParent: __expectBoolean,
3072
- MessageCategory: __expectString,
3073
- ParentJobId: __expectString,
3074
- PercentDone: __expectString,
3075
- RecoveryPointArn: __expectString,
3076
- RecoveryPointLifecycle: _json,
3077
- ResourceArn: __expectString,
3078
- ResourceName: __expectString,
3079
- ResourceType: __expectString,
3080
- StartBy: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3081
- State: __expectString,
3082
- StatusMessage: __expectString,
3083
- VaultLockState: __expectString,
3084
- VaultType: __expectString,
3085
- });
3086
- };
3087
- const de_BackupJobsList = (output, context) => {
3088
- const retVal = (output || [])
3089
- .filter((e) => e != null)
3090
- .map((entry) => {
3091
- return de_BackupJob(entry, context);
3092
- });
3093
- return retVal;
3094
- };
3095
- const de_BackupJobSummary = (output, context) => {
3096
- return take(output, {
3097
- AccountId: __expectString,
3098
- Count: __expectInt32,
3099
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3100
- MessageCategory: __expectString,
3101
- Region: __expectString,
3102
- ResourceType: __expectString,
3103
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3104
- State: __expectString,
3105
- });
3106
- };
3107
- const de_BackupJobSummaryList = (output, context) => {
3108
- const retVal = (output || [])
3109
- .filter((e) => e != null)
3110
- .map((entry) => {
3111
- return de_BackupJobSummary(entry, context);
3112
- });
3113
- return retVal;
3114
- };
3115
- const de_BackupPlansList = (output, context) => {
3116
- const retVal = (output || [])
3117
- .filter((e) => e != null)
3118
- .map((entry) => {
3119
- return de_BackupPlansListMember(entry, context);
3120
- });
3121
- return retVal;
3122
- };
3123
- const de_BackupPlansListMember = (output, context) => {
3124
- return take(output, {
3125
- AdvancedBackupSettings: _json,
3126
- BackupPlanArn: __expectString,
3127
- BackupPlanId: __expectString,
3128
- BackupPlanName: __expectString,
3129
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3130
- CreatorRequestId: __expectString,
3131
- DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3132
- LastExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3133
- VersionId: __expectString,
3134
- });
3135
- };
3136
- const de_BackupPlanVersionsList = (output, context) => {
3137
- const retVal = (output || [])
3138
- .filter((e) => e != null)
3139
- .map((entry) => {
3140
- return de_BackupPlansListMember(entry, context);
3141
- });
3142
- return retVal;
3143
- };
3144
- const de_BackupSelectionsList = (output, context) => {
3145
- const retVal = (output || [])
3146
- .filter((e) => e != null)
3147
- .map((entry) => {
3148
- return de_BackupSelectionsListMember(entry, context);
3149
- });
3150
- return retVal;
3151
- };
3152
- const de_BackupSelectionsListMember = (output, context) => {
3153
- return take(output, {
3154
- BackupPlanId: __expectString,
3155
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3156
- CreatorRequestId: __expectString,
3157
- IamRoleArn: __expectString,
3158
- SelectionId: __expectString,
3159
- SelectionName: __expectString,
3160
- });
3161
- };
3162
- const de_BackupVaultList = (output, context) => {
3163
- const retVal = (output || [])
3164
- .filter((e) => e != null)
3165
- .map((entry) => {
3166
- return de_BackupVaultListMember(entry, context);
3167
- });
3168
- return retVal;
3169
- };
3170
- const de_BackupVaultListMember = (output, context) => {
3171
- return take(output, {
3172
- BackupVaultArn: __expectString,
3173
- BackupVaultName: __expectString,
3174
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3175
- CreatorRequestId: __expectString,
3176
- EncryptionKeyArn: __expectString,
3177
- EncryptionKeyType: __expectString,
3178
- LockDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3179
- Locked: __expectBoolean,
3180
- MaxRetentionDays: __expectLong,
3181
- MinRetentionDays: __expectLong,
3182
- NumberOfRecoveryPoints: __expectLong,
3183
- VaultState: __expectString,
3184
- VaultType: __expectString,
3185
- });
3186
- };
3187
- const de_CalculatedLifecycle = (output, context) => {
3188
- return take(output, {
3189
- DeleteAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3190
- MoveToColdStorageAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3191
- });
3192
- };
3193
- const de_CopyJob = (output, context) => {
3194
- return take(output, {
3195
- AccountId: __expectString,
3196
- BackupSizeInBytes: __expectLong,
3197
- ChildJobsInState: _json,
3198
- CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3199
- CompositeMemberIdentifier: __expectString,
3200
- CopyJobId: __expectString,
3201
- CreatedBy: _json,
3202
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3203
- DestinationBackupVaultArn: __expectString,
3204
- DestinationEncryptionKeyArn: __expectString,
3205
- DestinationRecoveryPointArn: __expectString,
3206
- DestinationRecoveryPointLifecycle: _json,
3207
- DestinationVaultLockState: __expectString,
3208
- DestinationVaultType: __expectString,
3209
- IamRoleArn: __expectString,
3210
- IsParent: __expectBoolean,
3211
- MessageCategory: __expectString,
3212
- NumberOfChildJobs: __expectLong,
3213
- ParentJobId: __expectString,
3214
- ResourceArn: __expectString,
3215
- ResourceName: __expectString,
3216
- ResourceType: __expectString,
3217
- SourceBackupVaultArn: __expectString,
3218
- SourceRecoveryPointArn: __expectString,
3219
- State: __expectString,
3220
- StatusMessage: __expectString,
3221
- });
3222
- };
3223
- const de_CopyJobsList = (output, context) => {
3224
- const retVal = (output || [])
3225
- .filter((e) => e != null)
3226
- .map((entry) => {
3227
- return de_CopyJob(entry, context);
3228
- });
3229
- return retVal;
3230
- };
3231
- const de_CopyJobSummary = (output, context) => {
3232
- return take(output, {
3233
- AccountId: __expectString,
3234
- Count: __expectInt32,
3235
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3236
- MessageCategory: __expectString,
3237
- Region: __expectString,
3238
- ResourceType: __expectString,
3239
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3240
- State: __expectString,
3241
- });
3242
- };
3243
- const de_CopyJobSummaryList = (output, context) => {
3244
- const retVal = (output || [])
3245
- .filter((e) => e != null)
3246
- .map((entry) => {
3247
- return de_CopyJobSummary(entry, context);
3248
- });
3249
- return retVal;
3250
- };
3251
- const de_DateRange = (output, context) => {
3252
- return take(output, {
3253
- FromDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3254
- ToDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3255
- });
3256
- };
3257
- const de_Framework = (output, context) => {
3258
- return take(output, {
3259
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3260
- DeploymentStatus: __expectString,
3261
- FrameworkArn: __expectString,
3262
- FrameworkDescription: __expectString,
3263
- FrameworkName: __expectString,
3264
- NumberOfControls: __expectInt32,
3265
- });
3266
- };
3267
- const de_FrameworkList = (output, context) => {
3268
- const retVal = (output || [])
3269
- .filter((e) => e != null)
3270
- .map((entry) => {
3271
- return de_Framework(entry, context);
3272
- });
3273
- return retVal;
3274
- };
3275
- const de_IndexedRecoveryPoint = (output, context) => {
3276
- return take(output, {
3277
- BackupCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3278
- BackupVaultArn: __expectString,
3279
- IamRoleArn: __expectString,
3280
- IndexCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3281
- IndexStatus: __expectString,
3282
- IndexStatusMessage: __expectString,
3283
- RecoveryPointArn: __expectString,
3284
- ResourceType: __expectString,
3285
- SourceResourceArn: __expectString,
3286
- });
3287
- };
3288
- const de_IndexedRecoveryPointList = (output, context) => {
3289
- const retVal = (output || [])
3290
- .filter((e) => e != null)
3291
- .map((entry) => {
3292
- return de_IndexedRecoveryPoint(entry, context);
3293
- });
3294
- return retVal;
3295
- };
3296
- const de_LatestMpaApprovalTeamUpdate = (output, context) => {
3297
- return take(output, {
3298
- ExpiryDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3299
- InitiationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3300
- MpaSessionArn: __expectString,
3301
- Status: __expectString,
3302
- StatusMessage: __expectString,
3303
- });
3304
- };
3305
- const de_LatestRevokeRequest = (output, context) => {
3306
- return take(output, {
3307
- ExpiryDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3308
- InitiationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3309
- MpaSessionArn: __expectString,
3310
- Status: __expectString,
3311
- StatusMessage: __expectString,
3312
- });
3313
- };
3314
- const de_LegalHold = (output, context) => {
3315
- return take(output, {
3316
- CancellationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3317
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3318
- Description: __expectString,
3319
- LegalHoldArn: __expectString,
3320
- LegalHoldId: __expectString,
3321
- Status: __expectString,
3322
- Title: __expectString,
3323
- });
3324
- };
3325
- const de_LegalHoldsList = (output, context) => {
3326
- const retVal = (output || [])
3327
- .filter((e) => e != null)
3328
- .map((entry) => {
3329
- return de_LegalHold(entry, context);
3330
- });
3331
- return retVal;
3332
- };
3333
- const de_ProtectedResource = (output, context) => {
3334
- return take(output, {
3335
- LastBackupTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3336
- LastBackupVaultArn: __expectString,
3337
- LastRecoveryPointArn: __expectString,
3338
- ResourceArn: __expectString,
3339
- ResourceName: __expectString,
3340
- ResourceType: __expectString,
3341
- });
3342
- };
3343
- const de_ProtectedResourcesList = (output, context) => {
3344
- const retVal = (output || [])
3345
- .filter((e) => e != null)
3346
- .map((entry) => {
3347
- return de_ProtectedResource(entry, context);
3348
- });
3349
- return retVal;
3350
- };
3351
- const de_RecoveryPointByBackupVault = (output, context) => {
3352
- return take(output, {
3353
- BackupSizeInBytes: __expectLong,
3354
- BackupVaultArn: __expectString,
3355
- BackupVaultName: __expectString,
3356
- CalculatedLifecycle: (_) => de_CalculatedLifecycle(_, context),
3357
- CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3358
- CompositeMemberIdentifier: __expectString,
3359
- CreatedBy: _json,
3360
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3361
- EncryptionKeyArn: __expectString,
3362
- EncryptionKeyType: __expectString,
3363
- IamRoleArn: __expectString,
3364
- IndexStatus: __expectString,
3365
- IndexStatusMessage: __expectString,
3366
- InitiationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3367
- IsEncrypted: __expectBoolean,
3368
- IsParent: __expectBoolean,
3369
- LastRestoreTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3370
- Lifecycle: _json,
3371
- ParentRecoveryPointArn: __expectString,
3372
- RecoveryPointArn: __expectString,
3373
- ResourceArn: __expectString,
3374
- ResourceName: __expectString,
3375
- ResourceType: __expectString,
3376
- SourceBackupVaultArn: __expectString,
3377
- Status: __expectString,
3378
- StatusMessage: __expectString,
3379
- VaultType: __expectString,
3380
- });
3381
- };
3382
- const de_RecoveryPointByBackupVaultList = (output, context) => {
3383
- const retVal = (output || [])
3384
- .filter((e) => e != null)
3385
- .map((entry) => {
3386
- return de_RecoveryPointByBackupVault(entry, context);
3387
- });
3388
- return retVal;
3389
- };
3390
- const de_RecoveryPointByResource = (output, context) => {
3391
- return take(output, {
3392
- BackupSizeBytes: __expectLong,
3393
- BackupVaultName: __expectString,
3394
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3395
- EncryptionKeyArn: __expectString,
3396
- EncryptionKeyType: __expectString,
3397
- IndexStatus: __expectString,
3398
- IndexStatusMessage: __expectString,
3399
- IsParent: __expectBoolean,
3400
- ParentRecoveryPointArn: __expectString,
3401
- RecoveryPointArn: __expectString,
3402
- ResourceName: __expectString,
3403
- Status: __expectString,
3404
- StatusMessage: __expectString,
3405
- VaultType: __expectString,
3406
- });
3407
- };
3408
- const de_RecoveryPointByResourceList = (output, context) => {
3409
- const retVal = (output || [])
3410
- .filter((e) => e != null)
3411
- .map((entry) => {
3412
- return de_RecoveryPointByResource(entry, context);
3413
- });
3414
- return retVal;
3415
- };
3416
- const de_RecoveryPointSelection = (output, context) => {
3417
- return take(output, {
3418
- DateRange: (_) => de_DateRange(_, context),
3419
- ResourceIdentifiers: _json,
3420
- VaultNames: _json,
3421
- });
3422
- };
3423
- const de_ReportJob = (output, context) => {
3424
- return take(output, {
3425
- CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3426
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3427
- ReportDestination: _json,
3428
- ReportJobId: __expectString,
3429
- ReportPlanArn: __expectString,
3430
- ReportTemplate: __expectString,
3431
- Status: __expectString,
3432
- StatusMessage: __expectString,
3433
- });
3434
- };
3435
- const de_ReportJobList = (output, context) => {
3436
- const retVal = (output || [])
3437
- .filter((e) => e != null)
3438
- .map((entry) => {
3439
- return de_ReportJob(entry, context);
3440
- });
3441
- return retVal;
3442
- };
3443
- const de_ReportPlan = (output, context) => {
3444
- return take(output, {
3445
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3446
- DeploymentStatus: __expectString,
3447
- LastAttemptedExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3448
- LastSuccessfulExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3449
- ReportDeliveryChannel: _json,
3450
- ReportPlanArn: __expectString,
3451
- ReportPlanDescription: __expectString,
3452
- ReportPlanName: __expectString,
3453
- ReportSetting: _json,
3454
- });
3455
- };
3456
- const de_ReportPlanList = (output, context) => {
3457
- const retVal = (output || [])
3458
- .filter((e) => e != null)
3459
- .map((entry) => {
3460
- return de_ReportPlan(entry, context);
3461
- });
3462
- return retVal;
3463
- };
3464
- const de_RestoreAccessBackupVaultList = (output, context) => {
3465
- const retVal = (output || [])
3466
- .filter((e) => e != null)
3467
- .map((entry) => {
3468
- return de_RestoreAccessBackupVaultListMember(entry, context);
3469
- });
3470
- return retVal;
3471
- };
3472
- const de_RestoreAccessBackupVaultListMember = (output, context) => {
3473
- return take(output, {
3474
- ApprovalDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3475
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3476
- LatestRevokeRequest: (_) => de_LatestRevokeRequest(_, context),
3477
- RestoreAccessBackupVaultArn: __expectString,
3478
- VaultState: __expectString,
3479
- });
3480
- };
3481
- const de_RestoreJobsList = (output, context) => {
3482
- const retVal = (output || [])
3483
- .filter((e) => e != null)
3484
- .map((entry) => {
3485
- return de_RestoreJobsListMember(entry, context);
3486
- });
3487
- return retVal;
3488
- };
3489
- const de_RestoreJobsListMember = (output, context) => {
3490
- return take(output, {
3491
- AccountId: __expectString,
3492
- BackupSizeInBytes: __expectLong,
3493
- BackupVaultArn: __expectString,
3494
- CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3495
- CreatedBy: _json,
3496
- CreatedResourceArn: __expectString,
3497
- CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3498
- DeletionStatus: __expectString,
3499
- DeletionStatusMessage: __expectString,
3500
- ExpectedCompletionTimeMinutes: __expectLong,
3501
- IamRoleArn: __expectString,
3502
- IsParent: __expectBoolean,
3503
- ParentJobId: __expectString,
3504
- PercentDone: __expectString,
3505
- RecoveryPointArn: __expectString,
3506
- RecoveryPointCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3507
- ResourceType: __expectString,
3508
- RestoreJobId: __expectString,
3509
- SourceResourceArn: __expectString,
3510
- Status: __expectString,
3511
- StatusMessage: __expectString,
3512
- ValidationStatus: __expectString,
3513
- ValidationStatusMessage: __expectString,
3514
- });
3515
- };
3516
- const de_RestoreJobSummary = (output, context) => {
3517
- return take(output, {
3518
- AccountId: __expectString,
3519
- Count: __expectInt32,
3520
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3521
- Region: __expectString,
3522
- ResourceType: __expectString,
3523
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3524
- State: __expectString,
3525
- });
3526
- };
3527
- const de_RestoreJobSummaryList = (output, context) => {
3528
- const retVal = (output || [])
3529
- .filter((e) => e != null)
3530
- .map((entry) => {
3531
- return de_RestoreJobSummary(entry, context);
3532
- });
3533
- return retVal;
3534
- };
3535
- const de_RestoreTestingPlanForGet = (output, context) => {
3536
- return take(output, {
3537
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3538
- CreatorRequestId: __expectString,
3539
- LastExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3540
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3541
- RecoveryPointSelection: _json,
3542
- RestoreTestingPlanArn: __expectString,
3543
- RestoreTestingPlanName: __expectString,
3544
- ScheduleExpression: __expectString,
3545
- ScheduleExpressionTimezone: __expectString,
3546
- StartWindowHours: __expectInt32,
3547
- });
3548
- };
3549
- const de_RestoreTestingPlanForList = (output, context) => {
3550
- return take(output, {
3551
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3552
- LastExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3553
- LastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3554
- RestoreTestingPlanArn: __expectString,
3555
- RestoreTestingPlanName: __expectString,
3556
- ScheduleExpression: __expectString,
3557
- ScheduleExpressionTimezone: __expectString,
3558
- StartWindowHours: __expectInt32,
3559
- });
3560
- };
3561
- const de_RestoreTestingPlans = (output, context) => {
3562
- const retVal = (output || [])
3563
- .filter((e) => e != null)
3564
- .map((entry) => {
3565
- return de_RestoreTestingPlanForList(entry, context);
3566
- });
3567
- return retVal;
3568
- };
3569
- const de_RestoreTestingSelectionForGet = (output, context) => {
3570
- return take(output, {
3571
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3572
- CreatorRequestId: __expectString,
3573
- IamRoleArn: __expectString,
3574
- ProtectedResourceArns: _json,
3575
- ProtectedResourceConditions: _json,
3576
- ProtectedResourceType: __expectString,
3577
- RestoreMetadataOverrides: _json,
3578
- RestoreTestingPlanName: __expectString,
3579
- RestoreTestingSelectionName: __expectString,
3580
- ValidationWindowHours: __expectInt32,
3581
- });
3582
- };
3583
- const de_RestoreTestingSelectionForList = (output, context) => {
3584
- return take(output, {
3585
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3586
- IamRoleArn: __expectString,
3587
- ProtectedResourceType: __expectString,
3588
- RestoreTestingPlanName: __expectString,
3589
- RestoreTestingSelectionName: __expectString,
3590
- ValidationWindowHours: __expectInt32,
3591
- });
3592
- };
3593
- const de_RestoreTestingSelections = (output, context) => {
3594
- const retVal = (output || [])
3595
- .filter((e) => e != null)
3596
- .map((entry) => {
3597
- return de_RestoreTestingSelectionForList(entry, context);
3598
- });
3599
- return retVal;
3600
- };
3601
- const de_ScheduledPlanExecutionMember = (output, context) => {
3602
- return take(output, {
3603
- ExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3604
- RuleExecutionType: __expectString,
3605
- RuleId: __expectString,
3606
- });
3607
- };
3608
- const de_ScheduledRunsPreview = (output, context) => {
3609
- const retVal = (output || [])
3610
- .filter((e) => e != null)
3611
- .map((entry) => {
3612
- return de_ScheduledPlanExecutionMember(entry, context);
3613
- });
3614
- return retVal;
3615
- };
3616
- const deserializeMetadata = (output) => ({
3617
- httpStatusCode: output.statusCode,
3618
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3619
- extendedRequestId: output.headers["x-amz-id-2"],
3620
- cfId: output.headers["x-amz-cf-id"],
3621
- });
3622
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3623
- const _AI = "AccountId";
3624
- const _AP = "AggregationPeriod";
3625
- const _BAI = "ByAccountId";
3626
- const _BBPI = "ByBackupPlanId";
3627
- const _BBVN = "ByBackupVaultName";
3628
- const _BCA = "ByCreatedAfter";
3629
- const _BCAy = "ByCompleteAfter";
3630
- const _BCAyr = "ByCreationAfter";
3631
- const _BCB = "ByCreatedBefore";
3632
- const _BCBy = "ByCompleteBefore";
3633
- const _BCByr = "ByCreationBefore";
3634
- const _BDVA = "ByDestinationVaultArn";
3635
- const _BMC = "ByMessageCategory";
3636
- const _BPJI = "ByParentJobId";
3637
- const _BPRPA = "ByParentRecoveryPointArn";
3638
- const _BRA = "ByResourceArn";
3639
- const _BRPCDA = "ByRecoveryPointCreationDateAfter";
3640
- const _BRPCDB = "ByRecoveryPointCreationDateBefore";
3641
- const _BRPN = "ByReportPlanName";
3642
- const _BRT = "ByResourceType";
3643
- const _BRTPA = "ByRestoreTestingPlanArn";
3644
- const _BS = "ByState";
3645
- const _BSy = "ByShared";
3646
- const _BSyt = "ByStatus";
3647
- const _BVAI = "BackupVaultAccountId";
3648
- const _BVN = "BackupVaultName";
3649
- const _BVT = "ByVaultType";
3650
- const _CA = "CreatedAfter";
3651
- const _CAr = "CreationAfter";
3652
- const _CB = "CreatedBefore";
3653
- const _CBr = "CreationBefore";
3654
- const _CD = "CancelDescription";
3655
- const _ID = "IncludeDeleted";
3656
- const _IS = "IndexStatus";
3657
- const _MBAWSBO = "ManagedByAWSBackupOnly";
3658
- const _MC = "MessageCategory";
3659
- const _MR = "MaxResults";
3660
- const _MSRP = "MaxScheduledRunsPreview";
3661
- const _NT = "NextToken";
3662
- const _RC = "RequesterComment";
3663
- const _RPA = "RecoveryPointArn";
3664
- const _RPN = "ReportPlanName";
3665
- const _RRID = "RetainRecordInDays";
3666
- const _RT = "ResourceType";
3667
- const _S = "State";
3668
- const _SRA = "SourceResourceArn";
3669
- const _St = "Status";
3670
- const _VI = "VersionId";
3671
- const _aI = "accountId";
3672
- const _bPI = "backupPlanId";
3673
- const _bVAI = "backupVaultAccountId";
3674
- const _bVN = "backupVaultName";
3675
- const _cA = "createdAfter";
3676
- const _cAo = "completeAfter";
3677
- const _cB = "createdBefore";
3678
- const _cBo = "completeBefore";
3679
- const _cD = "cancelDescription";
3680
- const _d = "delete";
3681
- const _dVA = "destinationVaultArn";
3682
- const _iD = "includeDeleted";
3683
- const _iS = "indexStatus";
3684
- const _mBAWSBO = "managedByAWSBackupOnly";
3685
- const _mC = "messageCategory";
3686
- const _mR = "maxResults";
3687
- const _nT = "nextToken";
3688
- const _pJI = "parentJobId";
3689
- const _pRPA = "parentRecoveryPointArn";
3690
- const _rA = "resourceArn";
3691
- const _rC = "requesterComment";
3692
- const _rPCDA = "recoveryPointCreationDateAfter";
3693
- const _rPCDB = "recoveryPointCreationDateBefore";
3694
- const _rRID = "retainRecordInDays";
3695
- const _rT = "resourceType";
3696
- const _rTPA = "restoreTestingPlanArn";
3697
- const _s = "state";
3698
- const _sRA = "sourceResourceArn";
3699
- const _sh = "shared";
3700
- const _st = "status";
3701
- const _vI = "versionId";
3702
- const _vT = "vaultType";