@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.
- package/CHANGELOG.md +16 -0
- package/dist-es/Backup.js +266 -273
- package/dist-es/BackupClient.js +22 -28
- package/dist-es/commands/CreateBackupPlanCommand.js +21 -28
- package/dist-es/commands/CreateBackupSelectionCommand.js +21 -28
- package/dist-es/commands/CreateBackupVaultCommand.js +21 -28
- package/dist-es/commands/CreateFrameworkCommand.js +21 -28
- package/dist-es/commands/CreateReportPlanCommand.js +21 -28
- package/dist-es/commands/DeleteBackupPlanCommand.js +21 -28
- package/dist-es/commands/DeleteBackupSelectionCommand.js +22 -29
- package/dist-es/commands/DeleteBackupVaultAccessPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteBackupVaultCommand.js +22 -29
- package/dist-es/commands/DeleteBackupVaultLockConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBackupVaultNotificationsCommand.js +22 -29
- package/dist-es/commands/DeleteFrameworkCommand.js +22 -29
- package/dist-es/commands/DeleteRecoveryPointCommand.js +22 -29
- package/dist-es/commands/DeleteReportPlanCommand.js +22 -29
- package/dist-es/commands/DescribeBackupJobCommand.js +21 -28
- package/dist-es/commands/DescribeBackupVaultCommand.js +21 -28
- package/dist-es/commands/DescribeCopyJobCommand.js +21 -28
- package/dist-es/commands/DescribeFrameworkCommand.js +21 -28
- package/dist-es/commands/DescribeGlobalSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeProtectedResourceCommand.js +21 -28
- package/dist-es/commands/DescribeRecoveryPointCommand.js +21 -28
- package/dist-es/commands/DescribeRegionSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeReportJobCommand.js +21 -28
- package/dist-es/commands/DescribeReportPlanCommand.js +21 -28
- package/dist-es/commands/DescribeRestoreJobCommand.js +21 -28
- package/dist-es/commands/DisassociateRecoveryPointCommand.js +22 -29
- package/dist-es/commands/ExportBackupPlanTemplateCommand.js +21 -28
- package/dist-es/commands/GetBackupPlanCommand.js +21 -28
- package/dist-es/commands/GetBackupPlanFromJSONCommand.js +21 -28
- package/dist-es/commands/GetBackupPlanFromTemplateCommand.js +21 -28
- package/dist-es/commands/GetBackupSelectionCommand.js +21 -28
- package/dist-es/commands/GetBackupVaultAccessPolicyCommand.js +21 -28
- package/dist-es/commands/GetBackupVaultNotificationsCommand.js +21 -28
- package/dist-es/commands/GetRecoveryPointRestoreMetadataCommand.js +21 -28
- package/dist-es/commands/GetSupportedResourceTypesCommand.js +22 -29
- package/dist-es/commands/ListBackupJobsCommand.js +21 -28
- package/dist-es/commands/ListBackupPlanTemplatesCommand.js +21 -28
- package/dist-es/commands/ListBackupPlanVersionsCommand.js +21 -28
- package/dist-es/commands/ListBackupPlansCommand.js +21 -28
- package/dist-es/commands/ListBackupSelectionsCommand.js +21 -28
- package/dist-es/commands/ListBackupVaultsCommand.js +21 -28
- package/dist-es/commands/ListCopyJobsCommand.js +21 -28
- package/dist-es/commands/ListFrameworksCommand.js +21 -28
- package/dist-es/commands/ListProtectedResourcesCommand.js +21 -28
- package/dist-es/commands/ListRecoveryPointsByBackupVaultCommand.js +21 -28
- package/dist-es/commands/ListRecoveryPointsByResourceCommand.js +21 -28
- package/dist-es/commands/ListReportJobsCommand.js +21 -28
- package/dist-es/commands/ListReportPlansCommand.js +21 -28
- package/dist-es/commands/ListRestoreJobsCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/PutBackupVaultAccessPolicyCommand.js +22 -29
- package/dist-es/commands/PutBackupVaultLockConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBackupVaultNotificationsCommand.js +22 -29
- package/dist-es/commands/StartBackupJobCommand.js +21 -28
- package/dist-es/commands/StartCopyJobCommand.js +21 -28
- package/dist-es/commands/StartReportJobCommand.js +21 -28
- package/dist-es/commands/StartRestoreJobCommand.js +21 -28
- package/dist-es/commands/StopBackupJobCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateBackupPlanCommand.js +21 -28
- package/dist-es/commands/UpdateFrameworkCommand.js +21 -28
- package/dist-es/commands/UpdateGlobalSettingsCommand.js +22 -29
- package/dist-es/commands/UpdateRecoveryPointLifecycleCommand.js +21 -28
- package/dist-es/commands/UpdateRegionSettingsCommand.js +22 -29
- package/dist-es/commands/UpdateReportPlanCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/BackupServiceException.js +5 -10
- package/dist-es/models/models_0.js +607 -299
- package/dist-es/pagination/ListBackupJobsPaginator.js +25 -68
- package/dist-es/pagination/ListBackupPlanTemplatesPaginator.js +25 -68
- package/dist-es/pagination/ListBackupPlanVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListBackupPlansPaginator.js +25 -68
- package/dist-es/pagination/ListBackupSelectionsPaginator.js +25 -68
- package/dist-es/pagination/ListBackupVaultsPaginator.js +25 -68
- package/dist-es/pagination/ListCopyJobsPaginator.js +25 -68
- package/dist-es/pagination/ListFrameworksPaginator.js +25 -68
- package/dist-es/pagination/ListProtectedResourcesPaginator.js +25 -68
- package/dist-es/pagination/ListRecoveryPointsByBackupVaultPaginator.js +25 -68
- package/dist-es/pagination/ListRecoveryPointsByResourcePaginator.js +25 -68
- package/dist-es/pagination/ListReportJobsPaginator.js +25 -68
- package/dist-es/pagination/ListReportPlansPaginator.js +25 -68
- package/dist-es/pagination/ListRestoreJobsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +5026 -6980
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- 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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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(
|
|
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
|
-
|
|
89
|
-
|
|
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(
|
|
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
|
-
|
|
103
|
-
|
|
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(
|
|
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
|
-
|
|
117
|
-
|
|
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(
|
|
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
|
-
|
|
131
|
-
|
|
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(
|
|
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
|
-
|
|
145
|
-
|
|
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(
|
|
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
|
-
|
|
159
|
-
|
|
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(
|
|
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
|
-
|
|
173
|
-
|
|
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(
|
|
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
|
-
|
|
187
|
-
|
|
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(
|
|
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
|
-
|
|
201
|
-
|
|
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(
|
|
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
|
-
|
|
215
|
-
|
|
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(
|
|
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
|
-
|
|
229
|
-
|
|
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(
|
|
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
|
-
|
|
243
|
-
|
|
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(
|
|
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
|
-
|
|
257
|
-
|
|
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(
|
|
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
|
-
|
|
271
|
-
|
|
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(
|
|
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
|
-
|
|
285
|
-
|
|
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(
|
|
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
|
-
|
|
299
|
-
|
|
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(
|
|
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
|
-
|
|
313
|
-
|
|
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(
|
|
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
|
-
|
|
327
|
-
|
|
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(
|
|
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
|
-
|
|
341
|
-
|
|
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(
|
|
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
|
-
|
|
355
|
-
|
|
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(
|
|
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
|
-
|
|
369
|
-
|
|
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(
|
|
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
|
-
|
|
383
|
-
|
|
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(
|
|
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
|
-
|
|
397
|
-
|
|
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(
|
|
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
|
-
|
|
411
|
-
|
|
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(
|
|
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
|
-
|
|
425
|
-
|
|
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(
|
|
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
|
-
|
|
439
|
-
|
|
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(
|
|
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
|
-
|
|
453
|
-
|
|
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(
|
|
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
|
-
|
|
467
|
-
|
|
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(
|
|
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
|
-
|
|
481
|
-
|
|
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(
|
|
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
|
-
|
|
495
|
-
|
|
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(
|
|
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
|
-
|
|
509
|
-
|
|
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(
|
|
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
|
-
|
|
523
|
-
|
|
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(
|
|
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
|
-
|
|
537
|
-
|
|
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(
|
|
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
|
-
|
|
551
|
-
|
|
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(
|
|
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
|
-
|
|
565
|
-
|
|
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(
|
|
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
|
-
|
|
579
|
-
|
|
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(
|
|
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
|
-
|
|
593
|
-
|
|
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(
|
|
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
|
-
|
|
607
|
-
|
|
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(
|
|
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
|
-
|
|
621
|
-
|
|
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(
|
|
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
|
-
|
|
635
|
-
|
|
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(
|
|
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
|
-
|
|
649
|
-
|
|
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(
|
|
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
|
-
|
|
663
|
-
|
|
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(
|
|
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
|
-
|
|
677
|
-
|
|
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(
|
|
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
|
-
|
|
691
|
-
|
|
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(
|
|
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
|
-
|
|
705
|
-
|
|
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(
|
|
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
|
-
|
|
719
|
-
|
|
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(
|
|
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
|
-
|
|
733
|
-
|
|
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(
|
|
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
|
-
|
|
747
|
-
|
|
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(
|
|
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
|
-
|
|
761
|
-
|
|
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(
|
|
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
|
-
|
|
775
|
-
|
|
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(
|
|
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
|
-
|
|
789
|
-
|
|
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(
|
|
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
|
-
|
|
803
|
-
|
|
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(
|
|
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
|
-
|
|
817
|
-
|
|
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(
|
|
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
|
-
|
|
831
|
-
|
|
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(
|
|
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
|
-
|
|
845
|
-
|
|
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(
|
|
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
|
-
|
|
859
|
-
|
|
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(
|
|
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
|
-
|
|
873
|
-
|
|
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(
|
|
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
|
-
|
|
887
|
-
|
|
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(
|
|
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
|
-
|
|
901
|
-
|
|
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(
|
|
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
|
-
|
|
915
|
-
|
|
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(
|
|
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
|
-
|
|
929
|
-
|
|
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(
|
|
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
|
-
|
|
943
|
-
|
|
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(
|
|
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
|
-
|
|
957
|
-
|
|
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(
|
|
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
|
-
|
|
971
|
-
|
|
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(
|
|
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
|
-
|
|
985
|
-
|
|
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(
|
|
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
|
-
|
|
999
|
-
}(BackupClient));
|
|
1000
|
-
export { Backup };
|
|
992
|
+
}
|
|
993
|
+
}
|