@aws-sdk/client-backup 3.183.0 → 3.185.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 (94) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Backup.js +273 -266
  4. package/dist-es/BackupClient.js +28 -22
  5. package/dist-es/commands/CreateBackupPlanCommand.js +28 -21
  6. package/dist-es/commands/CreateBackupSelectionCommand.js +28 -21
  7. package/dist-es/commands/CreateBackupVaultCommand.js +28 -21
  8. package/dist-es/commands/CreateFrameworkCommand.js +28 -21
  9. package/dist-es/commands/CreateReportPlanCommand.js +28 -21
  10. package/dist-es/commands/DeleteBackupPlanCommand.js +28 -21
  11. package/dist-es/commands/DeleteBackupSelectionCommand.js +29 -22
  12. package/dist-es/commands/DeleteBackupVaultAccessPolicyCommand.js +29 -22
  13. package/dist-es/commands/DeleteBackupVaultCommand.js +29 -22
  14. package/dist-es/commands/DeleteBackupVaultLockConfigurationCommand.js +29 -22
  15. package/dist-es/commands/DeleteBackupVaultNotificationsCommand.js +29 -22
  16. package/dist-es/commands/DeleteFrameworkCommand.js +29 -22
  17. package/dist-es/commands/DeleteRecoveryPointCommand.js +29 -22
  18. package/dist-es/commands/DeleteReportPlanCommand.js +29 -22
  19. package/dist-es/commands/DescribeBackupJobCommand.js +28 -21
  20. package/dist-es/commands/DescribeBackupVaultCommand.js +28 -21
  21. package/dist-es/commands/DescribeCopyJobCommand.js +28 -21
  22. package/dist-es/commands/DescribeFrameworkCommand.js +28 -21
  23. package/dist-es/commands/DescribeGlobalSettingsCommand.js +28 -21
  24. package/dist-es/commands/DescribeProtectedResourceCommand.js +28 -21
  25. package/dist-es/commands/DescribeRecoveryPointCommand.js +28 -21
  26. package/dist-es/commands/DescribeRegionSettingsCommand.js +28 -21
  27. package/dist-es/commands/DescribeReportJobCommand.js +28 -21
  28. package/dist-es/commands/DescribeReportPlanCommand.js +28 -21
  29. package/dist-es/commands/DescribeRestoreJobCommand.js +28 -21
  30. package/dist-es/commands/DisassociateRecoveryPointCommand.js +29 -22
  31. package/dist-es/commands/ExportBackupPlanTemplateCommand.js +28 -21
  32. package/dist-es/commands/GetBackupPlanCommand.js +28 -21
  33. package/dist-es/commands/GetBackupPlanFromJSONCommand.js +28 -21
  34. package/dist-es/commands/GetBackupPlanFromTemplateCommand.js +28 -21
  35. package/dist-es/commands/GetBackupSelectionCommand.js +28 -21
  36. package/dist-es/commands/GetBackupVaultAccessPolicyCommand.js +28 -21
  37. package/dist-es/commands/GetBackupVaultNotificationsCommand.js +28 -21
  38. package/dist-es/commands/GetRecoveryPointRestoreMetadataCommand.js +28 -21
  39. package/dist-es/commands/GetSupportedResourceTypesCommand.js +29 -22
  40. package/dist-es/commands/ListBackupJobsCommand.js +28 -21
  41. package/dist-es/commands/ListBackupPlanTemplatesCommand.js +28 -21
  42. package/dist-es/commands/ListBackupPlanVersionsCommand.js +28 -21
  43. package/dist-es/commands/ListBackupPlansCommand.js +28 -21
  44. package/dist-es/commands/ListBackupSelectionsCommand.js +28 -21
  45. package/dist-es/commands/ListBackupVaultsCommand.js +28 -21
  46. package/dist-es/commands/ListCopyJobsCommand.js +28 -21
  47. package/dist-es/commands/ListFrameworksCommand.js +28 -21
  48. package/dist-es/commands/ListProtectedResourcesCommand.js +28 -21
  49. package/dist-es/commands/ListRecoveryPointsByBackupVaultCommand.js +28 -21
  50. package/dist-es/commands/ListRecoveryPointsByResourceCommand.js +28 -21
  51. package/dist-es/commands/ListReportJobsCommand.js +28 -21
  52. package/dist-es/commands/ListReportPlansCommand.js +28 -21
  53. package/dist-es/commands/ListRestoreJobsCommand.js +28 -21
  54. package/dist-es/commands/ListTagsCommand.js +28 -21
  55. package/dist-es/commands/PutBackupVaultAccessPolicyCommand.js +29 -22
  56. package/dist-es/commands/PutBackupVaultLockConfigurationCommand.js +29 -22
  57. package/dist-es/commands/PutBackupVaultNotificationsCommand.js +29 -22
  58. package/dist-es/commands/StartBackupJobCommand.js +28 -21
  59. package/dist-es/commands/StartCopyJobCommand.js +28 -21
  60. package/dist-es/commands/StartReportJobCommand.js +28 -21
  61. package/dist-es/commands/StartRestoreJobCommand.js +28 -21
  62. package/dist-es/commands/StopBackupJobCommand.js +29 -22
  63. package/dist-es/commands/TagResourceCommand.js +29 -22
  64. package/dist-es/commands/UntagResourceCommand.js +29 -22
  65. package/dist-es/commands/UpdateBackupPlanCommand.js +28 -21
  66. package/dist-es/commands/UpdateFrameworkCommand.js +28 -21
  67. package/dist-es/commands/UpdateGlobalSettingsCommand.js +29 -22
  68. package/dist-es/commands/UpdateRecoveryPointLifecycleCommand.js +28 -21
  69. package/dist-es/commands/UpdateRegionSettingsCommand.js +29 -22
  70. package/dist-es/commands/UpdateReportPlanCommand.js +28 -21
  71. package/dist-es/endpoints.js +8 -8
  72. package/dist-es/models/BackupServiceException.js +10 -5
  73. package/dist-es/models/models_0.js +299 -607
  74. package/dist-es/pagination/ListBackupJobsPaginator.js +68 -25
  75. package/dist-es/pagination/ListBackupPlanTemplatesPaginator.js +68 -25
  76. package/dist-es/pagination/ListBackupPlanVersionsPaginator.js +68 -25
  77. package/dist-es/pagination/ListBackupPlansPaginator.js +68 -25
  78. package/dist-es/pagination/ListBackupSelectionsPaginator.js +68 -25
  79. package/dist-es/pagination/ListBackupVaultsPaginator.js +68 -25
  80. package/dist-es/pagination/ListCopyJobsPaginator.js +68 -25
  81. package/dist-es/pagination/ListFrameworksPaginator.js +68 -25
  82. package/dist-es/pagination/ListProtectedResourcesPaginator.js +68 -25
  83. package/dist-es/pagination/ListRecoveryPointsByBackupVaultPaginator.js +68 -25
  84. package/dist-es/pagination/ListRecoveryPointsByResourcePaginator.js +68 -25
  85. package/dist-es/pagination/ListReportJobsPaginator.js +68 -25
  86. package/dist-es/pagination/ListReportPlansPaginator.js +68 -25
  87. package/dist-es/pagination/ListRestoreJobsPaginator.js +68 -25
  88. package/dist-es/pagination/ListTagsPaginator.js +68 -25
  89. package/dist-es/protocols/Aws_restJson1.js +6980 -5026
  90. package/dist-es/runtimeConfig.browser.js +12 -26
  91. package/dist-es/runtimeConfig.js +12 -30
  92. package/dist-es/runtimeConfig.native.js +5 -8
  93. package/dist-es/runtimeConfig.shared.js +11 -8
  94. package/package.json +5 -5
package/dist-es/Backup.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { BackupClient } from "./BackupClient";
2
3
  import { CreateBackupPlanCommand, } from "./commands/CreateBackupPlanCommand";
3
4
  import { CreateBackupSelectionCommand, } from "./commands/CreateBackupSelectionCommand";
@@ -65,929 +66,935 @@ import { UpdateGlobalSettingsCommand, } from "./commands/UpdateGlobalSettingsCom
65
66
  import { UpdateRecoveryPointLifecycleCommand, } from "./commands/UpdateRecoveryPointLifecycleCommand";
66
67
  import { UpdateRegionSettingsCommand, } from "./commands/UpdateRegionSettingsCommand";
67
68
  import { UpdateReportPlanCommand, } from "./commands/UpdateReportPlanCommand";
68
- export class Backup extends BackupClient {
69
- createBackupPlan(args, optionsOrCb, cb) {
70
- const command = new CreateBackupPlanCommand(args);
69
+ var Backup = (function (_super) {
70
+ __extends(Backup, _super);
71
+ function Backup() {
72
+ return _super !== null && _super.apply(this, arguments) || this;
73
+ }
74
+ Backup.prototype.createBackupPlan = function (args, optionsOrCb, cb) {
75
+ var command = new CreateBackupPlanCommand(args);
71
76
  if (typeof optionsOrCb === "function") {
72
77
  this.send(command, optionsOrCb);
73
78
  }
74
79
  else if (typeof cb === "function") {
75
80
  if (typeof optionsOrCb !== "object")
76
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
81
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
77
82
  this.send(command, optionsOrCb || {}, cb);
78
83
  }
79
84
  else {
80
85
  return this.send(command, optionsOrCb);
81
86
  }
82
- }
83
- createBackupSelection(args, optionsOrCb, cb) {
84
- const command = new CreateBackupSelectionCommand(args);
87
+ };
88
+ Backup.prototype.createBackupSelection = function (args, optionsOrCb, cb) {
89
+ var command = new CreateBackupSelectionCommand(args);
85
90
  if (typeof optionsOrCb === "function") {
86
91
  this.send(command, optionsOrCb);
87
92
  }
88
93
  else if (typeof cb === "function") {
89
94
  if (typeof optionsOrCb !== "object")
90
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
95
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
91
96
  this.send(command, optionsOrCb || {}, cb);
92
97
  }
93
98
  else {
94
99
  return this.send(command, optionsOrCb);
95
100
  }
96
- }
97
- createBackupVault(args, optionsOrCb, cb) {
98
- const command = new CreateBackupVaultCommand(args);
101
+ };
102
+ Backup.prototype.createBackupVault = function (args, optionsOrCb, cb) {
103
+ var command = new CreateBackupVaultCommand(args);
99
104
  if (typeof optionsOrCb === "function") {
100
105
  this.send(command, optionsOrCb);
101
106
  }
102
107
  else if (typeof cb === "function") {
103
108
  if (typeof optionsOrCb !== "object")
104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
105
110
  this.send(command, optionsOrCb || {}, cb);
106
111
  }
107
112
  else {
108
113
  return this.send(command, optionsOrCb);
109
114
  }
110
- }
111
- createFramework(args, optionsOrCb, cb) {
112
- const command = new CreateFrameworkCommand(args);
115
+ };
116
+ Backup.prototype.createFramework = function (args, optionsOrCb, cb) {
117
+ var command = new CreateFrameworkCommand(args);
113
118
  if (typeof optionsOrCb === "function") {
114
119
  this.send(command, optionsOrCb);
115
120
  }
116
121
  else if (typeof cb === "function") {
117
122
  if (typeof optionsOrCb !== "object")
118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
119
124
  this.send(command, optionsOrCb || {}, cb);
120
125
  }
121
126
  else {
122
127
  return this.send(command, optionsOrCb);
123
128
  }
124
- }
125
- createReportPlan(args, optionsOrCb, cb) {
126
- const command = new CreateReportPlanCommand(args);
129
+ };
130
+ Backup.prototype.createReportPlan = function (args, optionsOrCb, cb) {
131
+ var command = new CreateReportPlanCommand(args);
127
132
  if (typeof optionsOrCb === "function") {
128
133
  this.send(command, optionsOrCb);
129
134
  }
130
135
  else if (typeof cb === "function") {
131
136
  if (typeof optionsOrCb !== "object")
132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
133
138
  this.send(command, optionsOrCb || {}, cb);
134
139
  }
135
140
  else {
136
141
  return this.send(command, optionsOrCb);
137
142
  }
138
- }
139
- deleteBackupPlan(args, optionsOrCb, cb) {
140
- const command = new DeleteBackupPlanCommand(args);
143
+ };
144
+ Backup.prototype.deleteBackupPlan = function (args, optionsOrCb, cb) {
145
+ var command = new DeleteBackupPlanCommand(args);
141
146
  if (typeof optionsOrCb === "function") {
142
147
  this.send(command, optionsOrCb);
143
148
  }
144
149
  else if (typeof cb === "function") {
145
150
  if (typeof optionsOrCb !== "object")
146
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
151
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
147
152
  this.send(command, optionsOrCb || {}, cb);
148
153
  }
149
154
  else {
150
155
  return this.send(command, optionsOrCb);
151
156
  }
152
- }
153
- deleteBackupSelection(args, optionsOrCb, cb) {
154
- const command = new DeleteBackupSelectionCommand(args);
157
+ };
158
+ Backup.prototype.deleteBackupSelection = function (args, optionsOrCb, cb) {
159
+ var command = new DeleteBackupSelectionCommand(args);
155
160
  if (typeof optionsOrCb === "function") {
156
161
  this.send(command, optionsOrCb);
157
162
  }
158
163
  else if (typeof cb === "function") {
159
164
  if (typeof optionsOrCb !== "object")
160
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
165
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
161
166
  this.send(command, optionsOrCb || {}, cb);
162
167
  }
163
168
  else {
164
169
  return this.send(command, optionsOrCb);
165
170
  }
166
- }
167
- deleteBackupVault(args, optionsOrCb, cb) {
168
- const command = new DeleteBackupVaultCommand(args);
171
+ };
172
+ Backup.prototype.deleteBackupVault = function (args, optionsOrCb, cb) {
173
+ var command = new DeleteBackupVaultCommand(args);
169
174
  if (typeof optionsOrCb === "function") {
170
175
  this.send(command, optionsOrCb);
171
176
  }
172
177
  else if (typeof cb === "function") {
173
178
  if (typeof optionsOrCb !== "object")
174
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
179
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
175
180
  this.send(command, optionsOrCb || {}, cb);
176
181
  }
177
182
  else {
178
183
  return this.send(command, optionsOrCb);
179
184
  }
180
- }
181
- deleteBackupVaultAccessPolicy(args, optionsOrCb, cb) {
182
- const command = new DeleteBackupVaultAccessPolicyCommand(args);
185
+ };
186
+ Backup.prototype.deleteBackupVaultAccessPolicy = function (args, optionsOrCb, cb) {
187
+ var command = new DeleteBackupVaultAccessPolicyCommand(args);
183
188
  if (typeof optionsOrCb === "function") {
184
189
  this.send(command, optionsOrCb);
185
190
  }
186
191
  else if (typeof cb === "function") {
187
192
  if (typeof optionsOrCb !== "object")
188
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
193
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
189
194
  this.send(command, optionsOrCb || {}, cb);
190
195
  }
191
196
  else {
192
197
  return this.send(command, optionsOrCb);
193
198
  }
194
- }
195
- deleteBackupVaultLockConfiguration(args, optionsOrCb, cb) {
196
- const command = new DeleteBackupVaultLockConfigurationCommand(args);
199
+ };
200
+ Backup.prototype.deleteBackupVaultLockConfiguration = function (args, optionsOrCb, cb) {
201
+ var command = new DeleteBackupVaultLockConfigurationCommand(args);
197
202
  if (typeof optionsOrCb === "function") {
198
203
  this.send(command, optionsOrCb);
199
204
  }
200
205
  else if (typeof cb === "function") {
201
206
  if (typeof optionsOrCb !== "object")
202
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
207
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
203
208
  this.send(command, optionsOrCb || {}, cb);
204
209
  }
205
210
  else {
206
211
  return this.send(command, optionsOrCb);
207
212
  }
208
- }
209
- deleteBackupVaultNotifications(args, optionsOrCb, cb) {
210
- const command = new DeleteBackupVaultNotificationsCommand(args);
213
+ };
214
+ Backup.prototype.deleteBackupVaultNotifications = function (args, optionsOrCb, cb) {
215
+ var command = new DeleteBackupVaultNotificationsCommand(args);
211
216
  if (typeof optionsOrCb === "function") {
212
217
  this.send(command, optionsOrCb);
213
218
  }
214
219
  else if (typeof cb === "function") {
215
220
  if (typeof optionsOrCb !== "object")
216
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
221
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
217
222
  this.send(command, optionsOrCb || {}, cb);
218
223
  }
219
224
  else {
220
225
  return this.send(command, optionsOrCb);
221
226
  }
222
- }
223
- deleteFramework(args, optionsOrCb, cb) {
224
- const command = new DeleteFrameworkCommand(args);
227
+ };
228
+ Backup.prototype.deleteFramework = function (args, optionsOrCb, cb) {
229
+ var command = new DeleteFrameworkCommand(args);
225
230
  if (typeof optionsOrCb === "function") {
226
231
  this.send(command, optionsOrCb);
227
232
  }
228
233
  else if (typeof cb === "function") {
229
234
  if (typeof optionsOrCb !== "object")
230
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
235
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
231
236
  this.send(command, optionsOrCb || {}, cb);
232
237
  }
233
238
  else {
234
239
  return this.send(command, optionsOrCb);
235
240
  }
236
- }
237
- deleteRecoveryPoint(args, optionsOrCb, cb) {
238
- const command = new DeleteRecoveryPointCommand(args);
241
+ };
242
+ Backup.prototype.deleteRecoveryPoint = function (args, optionsOrCb, cb) {
243
+ var command = new DeleteRecoveryPointCommand(args);
239
244
  if (typeof optionsOrCb === "function") {
240
245
  this.send(command, optionsOrCb);
241
246
  }
242
247
  else if (typeof cb === "function") {
243
248
  if (typeof optionsOrCb !== "object")
244
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
249
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
245
250
  this.send(command, optionsOrCb || {}, cb);
246
251
  }
247
252
  else {
248
253
  return this.send(command, optionsOrCb);
249
254
  }
250
- }
251
- deleteReportPlan(args, optionsOrCb, cb) {
252
- const command = new DeleteReportPlanCommand(args);
255
+ };
256
+ Backup.prototype.deleteReportPlan = function (args, optionsOrCb, cb) {
257
+ var command = new DeleteReportPlanCommand(args);
253
258
  if (typeof optionsOrCb === "function") {
254
259
  this.send(command, optionsOrCb);
255
260
  }
256
261
  else if (typeof cb === "function") {
257
262
  if (typeof optionsOrCb !== "object")
258
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
263
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
259
264
  this.send(command, optionsOrCb || {}, cb);
260
265
  }
261
266
  else {
262
267
  return this.send(command, optionsOrCb);
263
268
  }
264
- }
265
- describeBackupJob(args, optionsOrCb, cb) {
266
- const command = new DescribeBackupJobCommand(args);
269
+ };
270
+ Backup.prototype.describeBackupJob = function (args, optionsOrCb, cb) {
271
+ var command = new DescribeBackupJobCommand(args);
267
272
  if (typeof optionsOrCb === "function") {
268
273
  this.send(command, optionsOrCb);
269
274
  }
270
275
  else if (typeof cb === "function") {
271
276
  if (typeof optionsOrCb !== "object")
272
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
277
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
273
278
  this.send(command, optionsOrCb || {}, cb);
274
279
  }
275
280
  else {
276
281
  return this.send(command, optionsOrCb);
277
282
  }
278
- }
279
- describeBackupVault(args, optionsOrCb, cb) {
280
- const command = new DescribeBackupVaultCommand(args);
283
+ };
284
+ Backup.prototype.describeBackupVault = function (args, optionsOrCb, cb) {
285
+ var command = new DescribeBackupVaultCommand(args);
281
286
  if (typeof optionsOrCb === "function") {
282
287
  this.send(command, optionsOrCb);
283
288
  }
284
289
  else if (typeof cb === "function") {
285
290
  if (typeof optionsOrCb !== "object")
286
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
291
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
287
292
  this.send(command, optionsOrCb || {}, cb);
288
293
  }
289
294
  else {
290
295
  return this.send(command, optionsOrCb);
291
296
  }
292
- }
293
- describeCopyJob(args, optionsOrCb, cb) {
294
- const command = new DescribeCopyJobCommand(args);
297
+ };
298
+ Backup.prototype.describeCopyJob = function (args, optionsOrCb, cb) {
299
+ var command = new DescribeCopyJobCommand(args);
295
300
  if (typeof optionsOrCb === "function") {
296
301
  this.send(command, optionsOrCb);
297
302
  }
298
303
  else if (typeof cb === "function") {
299
304
  if (typeof optionsOrCb !== "object")
300
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
305
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
301
306
  this.send(command, optionsOrCb || {}, cb);
302
307
  }
303
308
  else {
304
309
  return this.send(command, optionsOrCb);
305
310
  }
306
- }
307
- describeFramework(args, optionsOrCb, cb) {
308
- const command = new DescribeFrameworkCommand(args);
311
+ };
312
+ Backup.prototype.describeFramework = function (args, optionsOrCb, cb) {
313
+ var command = new DescribeFrameworkCommand(args);
309
314
  if (typeof optionsOrCb === "function") {
310
315
  this.send(command, optionsOrCb);
311
316
  }
312
317
  else if (typeof cb === "function") {
313
318
  if (typeof optionsOrCb !== "object")
314
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
319
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
315
320
  this.send(command, optionsOrCb || {}, cb);
316
321
  }
317
322
  else {
318
323
  return this.send(command, optionsOrCb);
319
324
  }
320
- }
321
- describeGlobalSettings(args, optionsOrCb, cb) {
322
- const command = new DescribeGlobalSettingsCommand(args);
325
+ };
326
+ Backup.prototype.describeGlobalSettings = function (args, optionsOrCb, cb) {
327
+ var command = new DescribeGlobalSettingsCommand(args);
323
328
  if (typeof optionsOrCb === "function") {
324
329
  this.send(command, optionsOrCb);
325
330
  }
326
331
  else if (typeof cb === "function") {
327
332
  if (typeof optionsOrCb !== "object")
328
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
333
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
329
334
  this.send(command, optionsOrCb || {}, cb);
330
335
  }
331
336
  else {
332
337
  return this.send(command, optionsOrCb);
333
338
  }
334
- }
335
- describeProtectedResource(args, optionsOrCb, cb) {
336
- const command = new DescribeProtectedResourceCommand(args);
339
+ };
340
+ Backup.prototype.describeProtectedResource = function (args, optionsOrCb, cb) {
341
+ var command = new DescribeProtectedResourceCommand(args);
337
342
  if (typeof optionsOrCb === "function") {
338
343
  this.send(command, optionsOrCb);
339
344
  }
340
345
  else if (typeof cb === "function") {
341
346
  if (typeof optionsOrCb !== "object")
342
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
347
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
343
348
  this.send(command, optionsOrCb || {}, cb);
344
349
  }
345
350
  else {
346
351
  return this.send(command, optionsOrCb);
347
352
  }
348
- }
349
- describeRecoveryPoint(args, optionsOrCb, cb) {
350
- const command = new DescribeRecoveryPointCommand(args);
353
+ };
354
+ Backup.prototype.describeRecoveryPoint = function (args, optionsOrCb, cb) {
355
+ var command = new DescribeRecoveryPointCommand(args);
351
356
  if (typeof optionsOrCb === "function") {
352
357
  this.send(command, optionsOrCb);
353
358
  }
354
359
  else if (typeof cb === "function") {
355
360
  if (typeof optionsOrCb !== "object")
356
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
361
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
357
362
  this.send(command, optionsOrCb || {}, cb);
358
363
  }
359
364
  else {
360
365
  return this.send(command, optionsOrCb);
361
366
  }
362
- }
363
- describeRegionSettings(args, optionsOrCb, cb) {
364
- const command = new DescribeRegionSettingsCommand(args);
367
+ };
368
+ Backup.prototype.describeRegionSettings = function (args, optionsOrCb, cb) {
369
+ var command = new DescribeRegionSettingsCommand(args);
365
370
  if (typeof optionsOrCb === "function") {
366
371
  this.send(command, optionsOrCb);
367
372
  }
368
373
  else if (typeof cb === "function") {
369
374
  if (typeof optionsOrCb !== "object")
370
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
375
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
371
376
  this.send(command, optionsOrCb || {}, cb);
372
377
  }
373
378
  else {
374
379
  return this.send(command, optionsOrCb);
375
380
  }
376
- }
377
- describeReportJob(args, optionsOrCb, cb) {
378
- const command = new DescribeReportJobCommand(args);
381
+ };
382
+ Backup.prototype.describeReportJob = function (args, optionsOrCb, cb) {
383
+ var command = new DescribeReportJobCommand(args);
379
384
  if (typeof optionsOrCb === "function") {
380
385
  this.send(command, optionsOrCb);
381
386
  }
382
387
  else if (typeof cb === "function") {
383
388
  if (typeof optionsOrCb !== "object")
384
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
389
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
385
390
  this.send(command, optionsOrCb || {}, cb);
386
391
  }
387
392
  else {
388
393
  return this.send(command, optionsOrCb);
389
394
  }
390
- }
391
- describeReportPlan(args, optionsOrCb, cb) {
392
- const command = new DescribeReportPlanCommand(args);
395
+ };
396
+ Backup.prototype.describeReportPlan = function (args, optionsOrCb, cb) {
397
+ var command = new DescribeReportPlanCommand(args);
393
398
  if (typeof optionsOrCb === "function") {
394
399
  this.send(command, optionsOrCb);
395
400
  }
396
401
  else if (typeof cb === "function") {
397
402
  if (typeof optionsOrCb !== "object")
398
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
403
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
399
404
  this.send(command, optionsOrCb || {}, cb);
400
405
  }
401
406
  else {
402
407
  return this.send(command, optionsOrCb);
403
408
  }
404
- }
405
- describeRestoreJob(args, optionsOrCb, cb) {
406
- const command = new DescribeRestoreJobCommand(args);
409
+ };
410
+ Backup.prototype.describeRestoreJob = function (args, optionsOrCb, cb) {
411
+ var command = new DescribeRestoreJobCommand(args);
407
412
  if (typeof optionsOrCb === "function") {
408
413
  this.send(command, optionsOrCb);
409
414
  }
410
415
  else if (typeof cb === "function") {
411
416
  if (typeof optionsOrCb !== "object")
412
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
417
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
413
418
  this.send(command, optionsOrCb || {}, cb);
414
419
  }
415
420
  else {
416
421
  return this.send(command, optionsOrCb);
417
422
  }
418
- }
419
- disassociateRecoveryPoint(args, optionsOrCb, cb) {
420
- const command = new DisassociateRecoveryPointCommand(args);
423
+ };
424
+ Backup.prototype.disassociateRecoveryPoint = function (args, optionsOrCb, cb) {
425
+ var command = new DisassociateRecoveryPointCommand(args);
421
426
  if (typeof optionsOrCb === "function") {
422
427
  this.send(command, optionsOrCb);
423
428
  }
424
429
  else if (typeof cb === "function") {
425
430
  if (typeof optionsOrCb !== "object")
426
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
431
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
427
432
  this.send(command, optionsOrCb || {}, cb);
428
433
  }
429
434
  else {
430
435
  return this.send(command, optionsOrCb);
431
436
  }
432
- }
433
- exportBackupPlanTemplate(args, optionsOrCb, cb) {
434
- const command = new ExportBackupPlanTemplateCommand(args);
437
+ };
438
+ Backup.prototype.exportBackupPlanTemplate = function (args, optionsOrCb, cb) {
439
+ var command = new ExportBackupPlanTemplateCommand(args);
435
440
  if (typeof optionsOrCb === "function") {
436
441
  this.send(command, optionsOrCb);
437
442
  }
438
443
  else if (typeof cb === "function") {
439
444
  if (typeof optionsOrCb !== "object")
440
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
445
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
441
446
  this.send(command, optionsOrCb || {}, cb);
442
447
  }
443
448
  else {
444
449
  return this.send(command, optionsOrCb);
445
450
  }
446
- }
447
- getBackupPlan(args, optionsOrCb, cb) {
448
- const command = new GetBackupPlanCommand(args);
451
+ };
452
+ Backup.prototype.getBackupPlan = function (args, optionsOrCb, cb) {
453
+ var command = new GetBackupPlanCommand(args);
449
454
  if (typeof optionsOrCb === "function") {
450
455
  this.send(command, optionsOrCb);
451
456
  }
452
457
  else if (typeof cb === "function") {
453
458
  if (typeof optionsOrCb !== "object")
454
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
459
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
455
460
  this.send(command, optionsOrCb || {}, cb);
456
461
  }
457
462
  else {
458
463
  return this.send(command, optionsOrCb);
459
464
  }
460
- }
461
- getBackupPlanFromJSON(args, optionsOrCb, cb) {
462
- const command = new GetBackupPlanFromJSONCommand(args);
465
+ };
466
+ Backup.prototype.getBackupPlanFromJSON = function (args, optionsOrCb, cb) {
467
+ var command = new GetBackupPlanFromJSONCommand(args);
463
468
  if (typeof optionsOrCb === "function") {
464
469
  this.send(command, optionsOrCb);
465
470
  }
466
471
  else if (typeof cb === "function") {
467
472
  if (typeof optionsOrCb !== "object")
468
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
473
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
469
474
  this.send(command, optionsOrCb || {}, cb);
470
475
  }
471
476
  else {
472
477
  return this.send(command, optionsOrCb);
473
478
  }
474
- }
475
- getBackupPlanFromTemplate(args, optionsOrCb, cb) {
476
- const command = new GetBackupPlanFromTemplateCommand(args);
479
+ };
480
+ Backup.prototype.getBackupPlanFromTemplate = function (args, optionsOrCb, cb) {
481
+ var command = new GetBackupPlanFromTemplateCommand(args);
477
482
  if (typeof optionsOrCb === "function") {
478
483
  this.send(command, optionsOrCb);
479
484
  }
480
485
  else if (typeof cb === "function") {
481
486
  if (typeof optionsOrCb !== "object")
482
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
487
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
483
488
  this.send(command, optionsOrCb || {}, cb);
484
489
  }
485
490
  else {
486
491
  return this.send(command, optionsOrCb);
487
492
  }
488
- }
489
- getBackupSelection(args, optionsOrCb, cb) {
490
- const command = new GetBackupSelectionCommand(args);
493
+ };
494
+ Backup.prototype.getBackupSelection = function (args, optionsOrCb, cb) {
495
+ var command = new GetBackupSelectionCommand(args);
491
496
  if (typeof optionsOrCb === "function") {
492
497
  this.send(command, optionsOrCb);
493
498
  }
494
499
  else if (typeof cb === "function") {
495
500
  if (typeof optionsOrCb !== "object")
496
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
501
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
497
502
  this.send(command, optionsOrCb || {}, cb);
498
503
  }
499
504
  else {
500
505
  return this.send(command, optionsOrCb);
501
506
  }
502
- }
503
- getBackupVaultAccessPolicy(args, optionsOrCb, cb) {
504
- const command = new GetBackupVaultAccessPolicyCommand(args);
507
+ };
508
+ Backup.prototype.getBackupVaultAccessPolicy = function (args, optionsOrCb, cb) {
509
+ var command = new GetBackupVaultAccessPolicyCommand(args);
505
510
  if (typeof optionsOrCb === "function") {
506
511
  this.send(command, optionsOrCb);
507
512
  }
508
513
  else if (typeof cb === "function") {
509
514
  if (typeof optionsOrCb !== "object")
510
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
515
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
511
516
  this.send(command, optionsOrCb || {}, cb);
512
517
  }
513
518
  else {
514
519
  return this.send(command, optionsOrCb);
515
520
  }
516
- }
517
- getBackupVaultNotifications(args, optionsOrCb, cb) {
518
- const command = new GetBackupVaultNotificationsCommand(args);
521
+ };
522
+ Backup.prototype.getBackupVaultNotifications = function (args, optionsOrCb, cb) {
523
+ var command = new GetBackupVaultNotificationsCommand(args);
519
524
  if (typeof optionsOrCb === "function") {
520
525
  this.send(command, optionsOrCb);
521
526
  }
522
527
  else if (typeof cb === "function") {
523
528
  if (typeof optionsOrCb !== "object")
524
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
529
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
525
530
  this.send(command, optionsOrCb || {}, cb);
526
531
  }
527
532
  else {
528
533
  return this.send(command, optionsOrCb);
529
534
  }
530
- }
531
- getRecoveryPointRestoreMetadata(args, optionsOrCb, cb) {
532
- const command = new GetRecoveryPointRestoreMetadataCommand(args);
535
+ };
536
+ Backup.prototype.getRecoveryPointRestoreMetadata = function (args, optionsOrCb, cb) {
537
+ var command = new GetRecoveryPointRestoreMetadataCommand(args);
533
538
  if (typeof optionsOrCb === "function") {
534
539
  this.send(command, optionsOrCb);
535
540
  }
536
541
  else if (typeof cb === "function") {
537
542
  if (typeof optionsOrCb !== "object")
538
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
543
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
539
544
  this.send(command, optionsOrCb || {}, cb);
540
545
  }
541
546
  else {
542
547
  return this.send(command, optionsOrCb);
543
548
  }
544
- }
545
- getSupportedResourceTypes(args, optionsOrCb, cb) {
546
- const command = new GetSupportedResourceTypesCommand(args);
549
+ };
550
+ Backup.prototype.getSupportedResourceTypes = function (args, optionsOrCb, cb) {
551
+ var command = new GetSupportedResourceTypesCommand(args);
547
552
  if (typeof optionsOrCb === "function") {
548
553
  this.send(command, optionsOrCb);
549
554
  }
550
555
  else if (typeof cb === "function") {
551
556
  if (typeof optionsOrCb !== "object")
552
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
557
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
553
558
  this.send(command, optionsOrCb || {}, cb);
554
559
  }
555
560
  else {
556
561
  return this.send(command, optionsOrCb);
557
562
  }
558
- }
559
- listBackupJobs(args, optionsOrCb, cb) {
560
- const command = new ListBackupJobsCommand(args);
563
+ };
564
+ Backup.prototype.listBackupJobs = function (args, optionsOrCb, cb) {
565
+ var command = new ListBackupJobsCommand(args);
561
566
  if (typeof optionsOrCb === "function") {
562
567
  this.send(command, optionsOrCb);
563
568
  }
564
569
  else if (typeof cb === "function") {
565
570
  if (typeof optionsOrCb !== "object")
566
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
571
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
567
572
  this.send(command, optionsOrCb || {}, cb);
568
573
  }
569
574
  else {
570
575
  return this.send(command, optionsOrCb);
571
576
  }
572
- }
573
- listBackupPlans(args, optionsOrCb, cb) {
574
- const command = new ListBackupPlansCommand(args);
577
+ };
578
+ Backup.prototype.listBackupPlans = function (args, optionsOrCb, cb) {
579
+ var command = new ListBackupPlansCommand(args);
575
580
  if (typeof optionsOrCb === "function") {
576
581
  this.send(command, optionsOrCb);
577
582
  }
578
583
  else if (typeof cb === "function") {
579
584
  if (typeof optionsOrCb !== "object")
580
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
585
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
581
586
  this.send(command, optionsOrCb || {}, cb);
582
587
  }
583
588
  else {
584
589
  return this.send(command, optionsOrCb);
585
590
  }
586
- }
587
- listBackupPlanTemplates(args, optionsOrCb, cb) {
588
- const command = new ListBackupPlanTemplatesCommand(args);
591
+ };
592
+ Backup.prototype.listBackupPlanTemplates = function (args, optionsOrCb, cb) {
593
+ var command = new ListBackupPlanTemplatesCommand(args);
589
594
  if (typeof optionsOrCb === "function") {
590
595
  this.send(command, optionsOrCb);
591
596
  }
592
597
  else if (typeof cb === "function") {
593
598
  if (typeof optionsOrCb !== "object")
594
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
599
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
595
600
  this.send(command, optionsOrCb || {}, cb);
596
601
  }
597
602
  else {
598
603
  return this.send(command, optionsOrCb);
599
604
  }
600
- }
601
- listBackupPlanVersions(args, optionsOrCb, cb) {
602
- const command = new ListBackupPlanVersionsCommand(args);
605
+ };
606
+ Backup.prototype.listBackupPlanVersions = function (args, optionsOrCb, cb) {
607
+ var command = new ListBackupPlanVersionsCommand(args);
603
608
  if (typeof optionsOrCb === "function") {
604
609
  this.send(command, optionsOrCb);
605
610
  }
606
611
  else if (typeof cb === "function") {
607
612
  if (typeof optionsOrCb !== "object")
608
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
613
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
609
614
  this.send(command, optionsOrCb || {}, cb);
610
615
  }
611
616
  else {
612
617
  return this.send(command, optionsOrCb);
613
618
  }
614
- }
615
- listBackupSelections(args, optionsOrCb, cb) {
616
- const command = new ListBackupSelectionsCommand(args);
619
+ };
620
+ Backup.prototype.listBackupSelections = function (args, optionsOrCb, cb) {
621
+ var command = new ListBackupSelectionsCommand(args);
617
622
  if (typeof optionsOrCb === "function") {
618
623
  this.send(command, optionsOrCb);
619
624
  }
620
625
  else if (typeof cb === "function") {
621
626
  if (typeof optionsOrCb !== "object")
622
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
627
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
623
628
  this.send(command, optionsOrCb || {}, cb);
624
629
  }
625
630
  else {
626
631
  return this.send(command, optionsOrCb);
627
632
  }
628
- }
629
- listBackupVaults(args, optionsOrCb, cb) {
630
- const command = new ListBackupVaultsCommand(args);
633
+ };
634
+ Backup.prototype.listBackupVaults = function (args, optionsOrCb, cb) {
635
+ var command = new ListBackupVaultsCommand(args);
631
636
  if (typeof optionsOrCb === "function") {
632
637
  this.send(command, optionsOrCb);
633
638
  }
634
639
  else if (typeof cb === "function") {
635
640
  if (typeof optionsOrCb !== "object")
636
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
641
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
637
642
  this.send(command, optionsOrCb || {}, cb);
638
643
  }
639
644
  else {
640
645
  return this.send(command, optionsOrCb);
641
646
  }
642
- }
643
- listCopyJobs(args, optionsOrCb, cb) {
644
- const command = new ListCopyJobsCommand(args);
647
+ };
648
+ Backup.prototype.listCopyJobs = function (args, optionsOrCb, cb) {
649
+ var command = new ListCopyJobsCommand(args);
645
650
  if (typeof optionsOrCb === "function") {
646
651
  this.send(command, optionsOrCb);
647
652
  }
648
653
  else if (typeof cb === "function") {
649
654
  if (typeof optionsOrCb !== "object")
650
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
655
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
651
656
  this.send(command, optionsOrCb || {}, cb);
652
657
  }
653
658
  else {
654
659
  return this.send(command, optionsOrCb);
655
660
  }
656
- }
657
- listFrameworks(args, optionsOrCb, cb) {
658
- const command = new ListFrameworksCommand(args);
661
+ };
662
+ Backup.prototype.listFrameworks = function (args, optionsOrCb, cb) {
663
+ var command = new ListFrameworksCommand(args);
659
664
  if (typeof optionsOrCb === "function") {
660
665
  this.send(command, optionsOrCb);
661
666
  }
662
667
  else if (typeof cb === "function") {
663
668
  if (typeof optionsOrCb !== "object")
664
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
669
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
665
670
  this.send(command, optionsOrCb || {}, cb);
666
671
  }
667
672
  else {
668
673
  return this.send(command, optionsOrCb);
669
674
  }
670
- }
671
- listProtectedResources(args, optionsOrCb, cb) {
672
- const command = new ListProtectedResourcesCommand(args);
675
+ };
676
+ Backup.prototype.listProtectedResources = function (args, optionsOrCb, cb) {
677
+ var command = new ListProtectedResourcesCommand(args);
673
678
  if (typeof optionsOrCb === "function") {
674
679
  this.send(command, optionsOrCb);
675
680
  }
676
681
  else if (typeof cb === "function") {
677
682
  if (typeof optionsOrCb !== "object")
678
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
683
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
679
684
  this.send(command, optionsOrCb || {}, cb);
680
685
  }
681
686
  else {
682
687
  return this.send(command, optionsOrCb);
683
688
  }
684
- }
685
- listRecoveryPointsByBackupVault(args, optionsOrCb, cb) {
686
- const command = new ListRecoveryPointsByBackupVaultCommand(args);
689
+ };
690
+ Backup.prototype.listRecoveryPointsByBackupVault = function (args, optionsOrCb, cb) {
691
+ var command = new ListRecoveryPointsByBackupVaultCommand(args);
687
692
  if (typeof optionsOrCb === "function") {
688
693
  this.send(command, optionsOrCb);
689
694
  }
690
695
  else if (typeof cb === "function") {
691
696
  if (typeof optionsOrCb !== "object")
692
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
697
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
693
698
  this.send(command, optionsOrCb || {}, cb);
694
699
  }
695
700
  else {
696
701
  return this.send(command, optionsOrCb);
697
702
  }
698
- }
699
- listRecoveryPointsByResource(args, optionsOrCb, cb) {
700
- const command = new ListRecoveryPointsByResourceCommand(args);
703
+ };
704
+ Backup.prototype.listRecoveryPointsByResource = function (args, optionsOrCb, cb) {
705
+ var command = new ListRecoveryPointsByResourceCommand(args);
701
706
  if (typeof optionsOrCb === "function") {
702
707
  this.send(command, optionsOrCb);
703
708
  }
704
709
  else if (typeof cb === "function") {
705
710
  if (typeof optionsOrCb !== "object")
706
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
711
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
707
712
  this.send(command, optionsOrCb || {}, cb);
708
713
  }
709
714
  else {
710
715
  return this.send(command, optionsOrCb);
711
716
  }
712
- }
713
- listReportJobs(args, optionsOrCb, cb) {
714
- const command = new ListReportJobsCommand(args);
717
+ };
718
+ Backup.prototype.listReportJobs = function (args, optionsOrCb, cb) {
719
+ var command = new ListReportJobsCommand(args);
715
720
  if (typeof optionsOrCb === "function") {
716
721
  this.send(command, optionsOrCb);
717
722
  }
718
723
  else if (typeof cb === "function") {
719
724
  if (typeof optionsOrCb !== "object")
720
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
725
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
721
726
  this.send(command, optionsOrCb || {}, cb);
722
727
  }
723
728
  else {
724
729
  return this.send(command, optionsOrCb);
725
730
  }
726
- }
727
- listReportPlans(args, optionsOrCb, cb) {
728
- const command = new ListReportPlansCommand(args);
731
+ };
732
+ Backup.prototype.listReportPlans = function (args, optionsOrCb, cb) {
733
+ var command = new ListReportPlansCommand(args);
729
734
  if (typeof optionsOrCb === "function") {
730
735
  this.send(command, optionsOrCb);
731
736
  }
732
737
  else if (typeof cb === "function") {
733
738
  if (typeof optionsOrCb !== "object")
734
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
739
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
735
740
  this.send(command, optionsOrCb || {}, cb);
736
741
  }
737
742
  else {
738
743
  return this.send(command, optionsOrCb);
739
744
  }
740
- }
741
- listRestoreJobs(args, optionsOrCb, cb) {
742
- const command = new ListRestoreJobsCommand(args);
745
+ };
746
+ Backup.prototype.listRestoreJobs = function (args, optionsOrCb, cb) {
747
+ var command = new ListRestoreJobsCommand(args);
743
748
  if (typeof optionsOrCb === "function") {
744
749
  this.send(command, optionsOrCb);
745
750
  }
746
751
  else if (typeof cb === "function") {
747
752
  if (typeof optionsOrCb !== "object")
748
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
753
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
749
754
  this.send(command, optionsOrCb || {}, cb);
750
755
  }
751
756
  else {
752
757
  return this.send(command, optionsOrCb);
753
758
  }
754
- }
755
- listTags(args, optionsOrCb, cb) {
756
- const command = new ListTagsCommand(args);
759
+ };
760
+ Backup.prototype.listTags = function (args, optionsOrCb, cb) {
761
+ var command = new ListTagsCommand(args);
757
762
  if (typeof optionsOrCb === "function") {
758
763
  this.send(command, optionsOrCb);
759
764
  }
760
765
  else if (typeof cb === "function") {
761
766
  if (typeof optionsOrCb !== "object")
762
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
767
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
763
768
  this.send(command, optionsOrCb || {}, cb);
764
769
  }
765
770
  else {
766
771
  return this.send(command, optionsOrCb);
767
772
  }
768
- }
769
- putBackupVaultAccessPolicy(args, optionsOrCb, cb) {
770
- const command = new PutBackupVaultAccessPolicyCommand(args);
773
+ };
774
+ Backup.prototype.putBackupVaultAccessPolicy = function (args, optionsOrCb, cb) {
775
+ var command = new PutBackupVaultAccessPolicyCommand(args);
771
776
  if (typeof optionsOrCb === "function") {
772
777
  this.send(command, optionsOrCb);
773
778
  }
774
779
  else if (typeof cb === "function") {
775
780
  if (typeof optionsOrCb !== "object")
776
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
781
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
777
782
  this.send(command, optionsOrCb || {}, cb);
778
783
  }
779
784
  else {
780
785
  return this.send(command, optionsOrCb);
781
786
  }
782
- }
783
- putBackupVaultLockConfiguration(args, optionsOrCb, cb) {
784
- const command = new PutBackupVaultLockConfigurationCommand(args);
787
+ };
788
+ Backup.prototype.putBackupVaultLockConfiguration = function (args, optionsOrCb, cb) {
789
+ var command = new PutBackupVaultLockConfigurationCommand(args);
785
790
  if (typeof optionsOrCb === "function") {
786
791
  this.send(command, optionsOrCb);
787
792
  }
788
793
  else if (typeof cb === "function") {
789
794
  if (typeof optionsOrCb !== "object")
790
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
795
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
791
796
  this.send(command, optionsOrCb || {}, cb);
792
797
  }
793
798
  else {
794
799
  return this.send(command, optionsOrCb);
795
800
  }
796
- }
797
- putBackupVaultNotifications(args, optionsOrCb, cb) {
798
- const command = new PutBackupVaultNotificationsCommand(args);
801
+ };
802
+ Backup.prototype.putBackupVaultNotifications = function (args, optionsOrCb, cb) {
803
+ var command = new PutBackupVaultNotificationsCommand(args);
799
804
  if (typeof optionsOrCb === "function") {
800
805
  this.send(command, optionsOrCb);
801
806
  }
802
807
  else if (typeof cb === "function") {
803
808
  if (typeof optionsOrCb !== "object")
804
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
809
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
805
810
  this.send(command, optionsOrCb || {}, cb);
806
811
  }
807
812
  else {
808
813
  return this.send(command, optionsOrCb);
809
814
  }
810
- }
811
- startBackupJob(args, optionsOrCb, cb) {
812
- const command = new StartBackupJobCommand(args);
815
+ };
816
+ Backup.prototype.startBackupJob = function (args, optionsOrCb, cb) {
817
+ var command = new StartBackupJobCommand(args);
813
818
  if (typeof optionsOrCb === "function") {
814
819
  this.send(command, optionsOrCb);
815
820
  }
816
821
  else if (typeof cb === "function") {
817
822
  if (typeof optionsOrCb !== "object")
818
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
823
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
819
824
  this.send(command, optionsOrCb || {}, cb);
820
825
  }
821
826
  else {
822
827
  return this.send(command, optionsOrCb);
823
828
  }
824
- }
825
- startCopyJob(args, optionsOrCb, cb) {
826
- const command = new StartCopyJobCommand(args);
829
+ };
830
+ Backup.prototype.startCopyJob = function (args, optionsOrCb, cb) {
831
+ var command = new StartCopyJobCommand(args);
827
832
  if (typeof optionsOrCb === "function") {
828
833
  this.send(command, optionsOrCb);
829
834
  }
830
835
  else if (typeof cb === "function") {
831
836
  if (typeof optionsOrCb !== "object")
832
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
837
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
833
838
  this.send(command, optionsOrCb || {}, cb);
834
839
  }
835
840
  else {
836
841
  return this.send(command, optionsOrCb);
837
842
  }
838
- }
839
- startReportJob(args, optionsOrCb, cb) {
840
- const command = new StartReportJobCommand(args);
843
+ };
844
+ Backup.prototype.startReportJob = function (args, optionsOrCb, cb) {
845
+ var command = new StartReportJobCommand(args);
841
846
  if (typeof optionsOrCb === "function") {
842
847
  this.send(command, optionsOrCb);
843
848
  }
844
849
  else if (typeof cb === "function") {
845
850
  if (typeof optionsOrCb !== "object")
846
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
851
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
847
852
  this.send(command, optionsOrCb || {}, cb);
848
853
  }
849
854
  else {
850
855
  return this.send(command, optionsOrCb);
851
856
  }
852
- }
853
- startRestoreJob(args, optionsOrCb, cb) {
854
- const command = new StartRestoreJobCommand(args);
857
+ };
858
+ Backup.prototype.startRestoreJob = function (args, optionsOrCb, cb) {
859
+ var command = new StartRestoreJobCommand(args);
855
860
  if (typeof optionsOrCb === "function") {
856
861
  this.send(command, optionsOrCb);
857
862
  }
858
863
  else if (typeof cb === "function") {
859
864
  if (typeof optionsOrCb !== "object")
860
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
865
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
861
866
  this.send(command, optionsOrCb || {}, cb);
862
867
  }
863
868
  else {
864
869
  return this.send(command, optionsOrCb);
865
870
  }
866
- }
867
- stopBackupJob(args, optionsOrCb, cb) {
868
- const command = new StopBackupJobCommand(args);
871
+ };
872
+ Backup.prototype.stopBackupJob = function (args, optionsOrCb, cb) {
873
+ var command = new StopBackupJobCommand(args);
869
874
  if (typeof optionsOrCb === "function") {
870
875
  this.send(command, optionsOrCb);
871
876
  }
872
877
  else if (typeof cb === "function") {
873
878
  if (typeof optionsOrCb !== "object")
874
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
879
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
875
880
  this.send(command, optionsOrCb || {}, cb);
876
881
  }
877
882
  else {
878
883
  return this.send(command, optionsOrCb);
879
884
  }
880
- }
881
- tagResource(args, optionsOrCb, cb) {
882
- const command = new TagResourceCommand(args);
885
+ };
886
+ Backup.prototype.tagResource = function (args, optionsOrCb, cb) {
887
+ var command = new TagResourceCommand(args);
883
888
  if (typeof optionsOrCb === "function") {
884
889
  this.send(command, optionsOrCb);
885
890
  }
886
891
  else if (typeof cb === "function") {
887
892
  if (typeof optionsOrCb !== "object")
888
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
893
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
889
894
  this.send(command, optionsOrCb || {}, cb);
890
895
  }
891
896
  else {
892
897
  return this.send(command, optionsOrCb);
893
898
  }
894
- }
895
- untagResource(args, optionsOrCb, cb) {
896
- const command = new UntagResourceCommand(args);
899
+ };
900
+ Backup.prototype.untagResource = function (args, optionsOrCb, cb) {
901
+ var command = new UntagResourceCommand(args);
897
902
  if (typeof optionsOrCb === "function") {
898
903
  this.send(command, optionsOrCb);
899
904
  }
900
905
  else if (typeof cb === "function") {
901
906
  if (typeof optionsOrCb !== "object")
902
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
907
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
903
908
  this.send(command, optionsOrCb || {}, cb);
904
909
  }
905
910
  else {
906
911
  return this.send(command, optionsOrCb);
907
912
  }
908
- }
909
- updateBackupPlan(args, optionsOrCb, cb) {
910
- const command = new UpdateBackupPlanCommand(args);
913
+ };
914
+ Backup.prototype.updateBackupPlan = function (args, optionsOrCb, cb) {
915
+ var command = new UpdateBackupPlanCommand(args);
911
916
  if (typeof optionsOrCb === "function") {
912
917
  this.send(command, optionsOrCb);
913
918
  }
914
919
  else if (typeof cb === "function") {
915
920
  if (typeof optionsOrCb !== "object")
916
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
921
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
917
922
  this.send(command, optionsOrCb || {}, cb);
918
923
  }
919
924
  else {
920
925
  return this.send(command, optionsOrCb);
921
926
  }
922
- }
923
- updateFramework(args, optionsOrCb, cb) {
924
- const command = new UpdateFrameworkCommand(args);
927
+ };
928
+ Backup.prototype.updateFramework = function (args, optionsOrCb, cb) {
929
+ var command = new UpdateFrameworkCommand(args);
925
930
  if (typeof optionsOrCb === "function") {
926
931
  this.send(command, optionsOrCb);
927
932
  }
928
933
  else if (typeof cb === "function") {
929
934
  if (typeof optionsOrCb !== "object")
930
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
935
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
931
936
  this.send(command, optionsOrCb || {}, cb);
932
937
  }
933
938
  else {
934
939
  return this.send(command, optionsOrCb);
935
940
  }
936
- }
937
- updateGlobalSettings(args, optionsOrCb, cb) {
938
- const command = new UpdateGlobalSettingsCommand(args);
941
+ };
942
+ Backup.prototype.updateGlobalSettings = function (args, optionsOrCb, cb) {
943
+ var command = new UpdateGlobalSettingsCommand(args);
939
944
  if (typeof optionsOrCb === "function") {
940
945
  this.send(command, optionsOrCb);
941
946
  }
942
947
  else if (typeof cb === "function") {
943
948
  if (typeof optionsOrCb !== "object")
944
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
949
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
945
950
  this.send(command, optionsOrCb || {}, cb);
946
951
  }
947
952
  else {
948
953
  return this.send(command, optionsOrCb);
949
954
  }
950
- }
951
- updateRecoveryPointLifecycle(args, optionsOrCb, cb) {
952
- const command = new UpdateRecoveryPointLifecycleCommand(args);
955
+ };
956
+ Backup.prototype.updateRecoveryPointLifecycle = function (args, optionsOrCb, cb) {
957
+ var command = new UpdateRecoveryPointLifecycleCommand(args);
953
958
  if (typeof optionsOrCb === "function") {
954
959
  this.send(command, optionsOrCb);
955
960
  }
956
961
  else if (typeof cb === "function") {
957
962
  if (typeof optionsOrCb !== "object")
958
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
963
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
959
964
  this.send(command, optionsOrCb || {}, cb);
960
965
  }
961
966
  else {
962
967
  return this.send(command, optionsOrCb);
963
968
  }
964
- }
965
- updateRegionSettings(args, optionsOrCb, cb) {
966
- const command = new UpdateRegionSettingsCommand(args);
969
+ };
970
+ Backup.prototype.updateRegionSettings = function (args, optionsOrCb, cb) {
971
+ var command = new UpdateRegionSettingsCommand(args);
967
972
  if (typeof optionsOrCb === "function") {
968
973
  this.send(command, optionsOrCb);
969
974
  }
970
975
  else if (typeof cb === "function") {
971
976
  if (typeof optionsOrCb !== "object")
972
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
977
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
973
978
  this.send(command, optionsOrCb || {}, cb);
974
979
  }
975
980
  else {
976
981
  return this.send(command, optionsOrCb);
977
982
  }
978
- }
979
- updateReportPlan(args, optionsOrCb, cb) {
980
- const command = new UpdateReportPlanCommand(args);
983
+ };
984
+ Backup.prototype.updateReportPlan = function (args, optionsOrCb, cb) {
985
+ var command = new UpdateReportPlanCommand(args);
981
986
  if (typeof optionsOrCb === "function") {
982
987
  this.send(command, optionsOrCb);
983
988
  }
984
989
  else if (typeof cb === "function") {
985
990
  if (typeof optionsOrCb !== "object")
986
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
991
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
987
992
  this.send(command, optionsOrCb || {}, cb);
988
993
  }
989
994
  else {
990
995
  return this.send(command, optionsOrCb);
991
996
  }
992
- }
993
- }
997
+ };
998
+ return Backup;
999
+ }(BackupClient));
1000
+ export { Backup };