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