@aws-sdk/client-backup 3.52.0 → 3.54.1
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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/BackupServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +177 -4
- package/dist-cjs/protocols/Aws_restJson1.js +653 -2416
- package/dist-es/index.js +1 -0
- package/dist-es/models/BackupServiceException.js +12 -0
- package/dist-es/models/models_0.js +164 -1
- package/dist-es/protocols/Aws_restJson1.js +1433 -2691
- package/dist-types/BackupClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/BackupServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +72 -31
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/BackupClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/BackupServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +52 -31
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-backup
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-backup
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
34
|
|
|
8
35
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BackupServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./Backup"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./BackupClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var BackupServiceException_1 = require("./models/BackupServiceException");
|
|
11
|
+
Object.defineProperty(exports, "BackupServiceException", { enumerable: true, get: function () { return BackupServiceException_1.BackupServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BackupServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class BackupServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, BackupServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.BackupServiceException = BackupServiceException;
|
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.UpdateReportPlanOutput = exports.UpdateReportPlanInput = exports.UpdateRegionSettingsInput = void 0;
|
|
3
|
+
exports.DeleteBackupVaultInput = exports.DeleteBackupSelectionInput = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.DeleteBackupPlanOutput = exports.DeleteBackupPlanInput = exports.CreateReportPlanOutput = exports.CreateReportPlanInput = exports.ReportSetting = exports.ReportDeliveryChannel = exports.CreateFrameworkOutput = exports.CreateFrameworkInput = exports.FrameworkControl = exports.CreateBackupVaultOutput = exports.CreateBackupVaultInput = exports.CreateBackupSelectionOutput = exports.CreateBackupSelectionInput = exports.ServiceUnavailableException = exports.MissingParameterValueException = exports.LimitExceededException = exports.InvalidParameterValueException = exports.CreateBackupPlanOutput = exports.CreateBackupPlanInput = exports.CopyJob = exports.CopyJobState = exports.ControlScope = exports.ControlInputParameter = exports.ConflictException = exports.CalculatedLifecycle = exports.BackupVaultListMember = exports.BackupVaultEvent = exports.BackupSelectionsListMember = exports.BackupSelection = exports.Condition = exports.ConditionType = exports.Conditions = exports.ConditionParameter = exports.BackupPlanTemplatesListMember = exports.BackupPlansListMember = exports.BackupPlanInput = exports.BackupRuleInput = exports.BackupPlan = exports.BackupRule = exports.CopyAction = exports.Lifecycle = exports.BackupJob = exports.BackupJobState = exports.RecoveryPointCreator = exports.AlreadyExistsException = exports.AdvancedBackupSetting = void 0;
|
|
4
|
+
exports.GetBackupVaultNotificationsInput = exports.GetBackupVaultAccessPolicyOutput = exports.GetBackupVaultAccessPolicyInput = exports.GetBackupSelectionOutput = exports.GetBackupSelectionInput = exports.GetBackupPlanFromTemplateOutput = exports.GetBackupPlanFromTemplateInput = exports.GetBackupPlanFromJSONOutput = exports.GetBackupPlanFromJSONInput = exports.GetBackupPlanOutput = exports.GetBackupPlanInput = exports.ExportBackupPlanTemplateOutput = exports.ExportBackupPlanTemplateInput = exports.DisassociateRecoveryPointInput = exports.DescribeRestoreJobOutput = exports.RestoreJobStatus = exports.DescribeRestoreJobInput = exports.DescribeReportPlanOutput = exports.ReportPlan = exports.DescribeReportPlanInput = exports.DescribeReportJobOutput = exports.ReportJob = exports.ReportDestination = exports.DescribeReportJobInput = exports.DescribeRegionSettingsOutput = exports.DescribeRegionSettingsInput = exports.DescribeRecoveryPointOutput = exports.StorageClass = exports.RecoveryPointStatus = exports.DescribeRecoveryPointInput = exports.DescribeProtectedResourceOutput = exports.DescribeProtectedResourceInput = exports.DescribeGlobalSettingsOutput = exports.DescribeGlobalSettingsInput = exports.DescribeFrameworkOutput = exports.DescribeFrameworkInput = exports.DescribeCopyJobOutput = exports.DescribeCopyJobInput = exports.DescribeBackupVaultOutput = exports.DescribeBackupVaultInput = exports.DescribeBackupJobOutput = exports.DescribeBackupJobInput = exports.DependencyFailureException = exports.DeleteReportPlanInput = exports.InvalidResourceStateException = exports.DeleteRecoveryPointInput = exports.DeleteFrameworkInput = exports.DeleteBackupVaultNotificationsInput = exports.DeleteBackupVaultLockConfigurationInput = exports.DeleteBackupVaultAccessPolicyInput = void 0;
|
|
5
|
+
exports.StartRestoreJobOutput = exports.StartRestoreJobInput = exports.StartReportJobOutput = exports.StartReportJobInput = exports.StartCopyJobOutput = exports.StartCopyJobInput = exports.StartBackupJobOutput = exports.StartBackupJobInput = exports.PutBackupVaultNotificationsInput = exports.PutBackupVaultLockConfigurationInput = exports.PutBackupVaultAccessPolicyInput = exports.ListTagsOutput = exports.ListTagsInput = exports.ListRestoreJobsOutput = exports.RestoreJobsListMember = exports.ListRestoreJobsInput = exports.ListReportPlansOutput = exports.ListReportPlansInput = exports.ListReportJobsOutput = exports.ListReportJobsInput = exports.ListRecoveryPointsByResourceOutput = exports.RecoveryPointByResource = exports.ListRecoveryPointsByResourceInput = exports.ListRecoveryPointsByBackupVaultOutput = exports.RecoveryPointByBackupVault = exports.ListRecoveryPointsByBackupVaultInput = exports.ListProtectedResourcesOutput = exports.ProtectedResource = exports.ListProtectedResourcesInput = exports.ListFrameworksOutput = exports.Framework = exports.ListFrameworksInput = exports.ListCopyJobsOutput = exports.ListCopyJobsInput = exports.ListBackupVaultsOutput = exports.ListBackupVaultsInput = exports.ListBackupSelectionsOutput = exports.ListBackupSelectionsInput = exports.ListBackupPlanVersionsOutput = exports.ListBackupPlanVersionsInput = exports.ListBackupPlanTemplatesOutput = exports.ListBackupPlanTemplatesInput = exports.ListBackupPlansOutput = exports.ListBackupPlansInput = exports.ListBackupJobsOutput = exports.ListBackupJobsInput = exports.GetSupportedResourceTypesOutput = exports.GetRecoveryPointRestoreMetadataOutput = exports.GetRecoveryPointRestoreMetadataInput = exports.GetBackupVaultNotificationsOutput = void 0;
|
|
6
|
+
exports.UpdateReportPlanOutput = exports.UpdateReportPlanInput = exports.UpdateRegionSettingsInput = exports.UpdateRecoveryPointLifecycleOutput = exports.UpdateRecoveryPointLifecycleInput = exports.UpdateGlobalSettingsInput = exports.UpdateFrameworkOutput = exports.UpdateFrameworkInput = exports.UpdateBackupPlanOutput = exports.UpdateBackupPlanInput = exports.UntagResourceInput = exports.TagResourceInput = exports.StopBackupJobInput = void 0;
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
+
const BackupServiceException_1 = require("./BackupServiceException");
|
|
8
9
|
var AdvancedBackupSetting;
|
|
9
10
|
(function (AdvancedBackupSetting) {
|
|
10
11
|
AdvancedBackupSetting.filterSensitiveLog = (obj) => ({
|
|
11
12
|
...obj,
|
|
12
13
|
});
|
|
13
14
|
})(AdvancedBackupSetting = exports.AdvancedBackupSetting || (exports.AdvancedBackupSetting = {}));
|
|
15
|
+
class AlreadyExistsException extends BackupServiceException_1.BackupServiceException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "AlreadyExistsException",
|
|
19
|
+
$fault: "client",
|
|
20
|
+
...opts,
|
|
21
|
+
});
|
|
22
|
+
this.name = "AlreadyExistsException";
|
|
23
|
+
this.$fault = "client";
|
|
24
|
+
Object.setPrototypeOf(this, AlreadyExistsException.prototype);
|
|
25
|
+
this.Code = opts.Code;
|
|
26
|
+
this.Message = opts.Message;
|
|
27
|
+
this.CreatorRequestId = opts.CreatorRequestId;
|
|
28
|
+
this.Arn = opts.Arn;
|
|
29
|
+
this.Type = opts.Type;
|
|
30
|
+
this.Context = opts.Context;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.AlreadyExistsException = AlreadyExistsException;
|
|
14
34
|
var RecoveryPointCreator;
|
|
15
35
|
(function (RecoveryPointCreator) {
|
|
16
36
|
RecoveryPointCreator.filterSensitiveLog = (obj) => ({
|
|
@@ -152,6 +172,23 @@ var CalculatedLifecycle;
|
|
|
152
172
|
...obj,
|
|
153
173
|
});
|
|
154
174
|
})(CalculatedLifecycle = exports.CalculatedLifecycle || (exports.CalculatedLifecycle = {}));
|
|
175
|
+
class ConflictException extends BackupServiceException_1.BackupServiceException {
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "ConflictException",
|
|
179
|
+
$fault: "client",
|
|
180
|
+
...opts,
|
|
181
|
+
});
|
|
182
|
+
this.name = "ConflictException";
|
|
183
|
+
this.$fault = "client";
|
|
184
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
185
|
+
this.Code = opts.Code;
|
|
186
|
+
this.Message = opts.Message;
|
|
187
|
+
this.Type = opts.Type;
|
|
188
|
+
this.Context = opts.Context;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.ConflictException = ConflictException;
|
|
155
192
|
var ControlInputParameter;
|
|
156
193
|
(function (ControlInputParameter) {
|
|
157
194
|
ControlInputParameter.filterSensitiveLog = (obj) => ({
|
|
@@ -191,6 +228,74 @@ var CreateBackupPlanOutput;
|
|
|
191
228
|
...obj,
|
|
192
229
|
});
|
|
193
230
|
})(CreateBackupPlanOutput = exports.CreateBackupPlanOutput || (exports.CreateBackupPlanOutput = {}));
|
|
231
|
+
class InvalidParameterValueException extends BackupServiceException_1.BackupServiceException {
|
|
232
|
+
constructor(opts) {
|
|
233
|
+
super({
|
|
234
|
+
name: "InvalidParameterValueException",
|
|
235
|
+
$fault: "client",
|
|
236
|
+
...opts,
|
|
237
|
+
});
|
|
238
|
+
this.name = "InvalidParameterValueException";
|
|
239
|
+
this.$fault = "client";
|
|
240
|
+
Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
|
|
241
|
+
this.Code = opts.Code;
|
|
242
|
+
this.Message = opts.Message;
|
|
243
|
+
this.Type = opts.Type;
|
|
244
|
+
this.Context = opts.Context;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
exports.InvalidParameterValueException = InvalidParameterValueException;
|
|
248
|
+
class LimitExceededException extends BackupServiceException_1.BackupServiceException {
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "LimitExceededException",
|
|
252
|
+
$fault: "client",
|
|
253
|
+
...opts,
|
|
254
|
+
});
|
|
255
|
+
this.name = "LimitExceededException";
|
|
256
|
+
this.$fault = "client";
|
|
257
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
258
|
+
this.Code = opts.Code;
|
|
259
|
+
this.Message = opts.Message;
|
|
260
|
+
this.Type = opts.Type;
|
|
261
|
+
this.Context = opts.Context;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
exports.LimitExceededException = LimitExceededException;
|
|
265
|
+
class MissingParameterValueException extends BackupServiceException_1.BackupServiceException {
|
|
266
|
+
constructor(opts) {
|
|
267
|
+
super({
|
|
268
|
+
name: "MissingParameterValueException",
|
|
269
|
+
$fault: "client",
|
|
270
|
+
...opts,
|
|
271
|
+
});
|
|
272
|
+
this.name = "MissingParameterValueException";
|
|
273
|
+
this.$fault = "client";
|
|
274
|
+
Object.setPrototypeOf(this, MissingParameterValueException.prototype);
|
|
275
|
+
this.Code = opts.Code;
|
|
276
|
+
this.Message = opts.Message;
|
|
277
|
+
this.Type = opts.Type;
|
|
278
|
+
this.Context = opts.Context;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
exports.MissingParameterValueException = MissingParameterValueException;
|
|
282
|
+
class ServiceUnavailableException extends BackupServiceException_1.BackupServiceException {
|
|
283
|
+
constructor(opts) {
|
|
284
|
+
super({
|
|
285
|
+
name: "ServiceUnavailableException",
|
|
286
|
+
$fault: "server",
|
|
287
|
+
...opts,
|
|
288
|
+
});
|
|
289
|
+
this.name = "ServiceUnavailableException";
|
|
290
|
+
this.$fault = "server";
|
|
291
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
292
|
+
this.Code = opts.Code;
|
|
293
|
+
this.Message = opts.Message;
|
|
294
|
+
this.Type = opts.Type;
|
|
295
|
+
this.Context = opts.Context;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
194
299
|
var CreateBackupSelectionInput;
|
|
195
300
|
(function (CreateBackupSelectionInput) {
|
|
196
301
|
CreateBackupSelectionInput.filterSensitiveLog = (obj) => ({
|
|
@@ -270,6 +375,40 @@ var DeleteBackupPlanOutput;
|
|
|
270
375
|
...obj,
|
|
271
376
|
});
|
|
272
377
|
})(DeleteBackupPlanOutput = exports.DeleteBackupPlanOutput || (exports.DeleteBackupPlanOutput = {}));
|
|
378
|
+
class InvalidRequestException extends BackupServiceException_1.BackupServiceException {
|
|
379
|
+
constructor(opts) {
|
|
380
|
+
super({
|
|
381
|
+
name: "InvalidRequestException",
|
|
382
|
+
$fault: "client",
|
|
383
|
+
...opts,
|
|
384
|
+
});
|
|
385
|
+
this.name = "InvalidRequestException";
|
|
386
|
+
this.$fault = "client";
|
|
387
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
388
|
+
this.Code = opts.Code;
|
|
389
|
+
this.Message = opts.Message;
|
|
390
|
+
this.Type = opts.Type;
|
|
391
|
+
this.Context = opts.Context;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
395
|
+
class ResourceNotFoundException extends BackupServiceException_1.BackupServiceException {
|
|
396
|
+
constructor(opts) {
|
|
397
|
+
super({
|
|
398
|
+
name: "ResourceNotFoundException",
|
|
399
|
+
$fault: "client",
|
|
400
|
+
...opts,
|
|
401
|
+
});
|
|
402
|
+
this.name = "ResourceNotFoundException";
|
|
403
|
+
this.$fault = "client";
|
|
404
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
405
|
+
this.Code = opts.Code;
|
|
406
|
+
this.Message = opts.Message;
|
|
407
|
+
this.Type = opts.Type;
|
|
408
|
+
this.Context = opts.Context;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
273
412
|
var DeleteBackupSelectionInput;
|
|
274
413
|
(function (DeleteBackupSelectionInput) {
|
|
275
414
|
DeleteBackupSelectionInput.filterSensitiveLog = (obj) => ({
|
|
@@ -312,12 +451,46 @@ var DeleteRecoveryPointInput;
|
|
|
312
451
|
...obj,
|
|
313
452
|
});
|
|
314
453
|
})(DeleteRecoveryPointInput = exports.DeleteRecoveryPointInput || (exports.DeleteRecoveryPointInput = {}));
|
|
454
|
+
class InvalidResourceStateException extends BackupServiceException_1.BackupServiceException {
|
|
455
|
+
constructor(opts) {
|
|
456
|
+
super({
|
|
457
|
+
name: "InvalidResourceStateException",
|
|
458
|
+
$fault: "client",
|
|
459
|
+
...opts,
|
|
460
|
+
});
|
|
461
|
+
this.name = "InvalidResourceStateException";
|
|
462
|
+
this.$fault = "client";
|
|
463
|
+
Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
|
|
464
|
+
this.Code = opts.Code;
|
|
465
|
+
this.Message = opts.Message;
|
|
466
|
+
this.Type = opts.Type;
|
|
467
|
+
this.Context = opts.Context;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
exports.InvalidResourceStateException = InvalidResourceStateException;
|
|
315
471
|
var DeleteReportPlanInput;
|
|
316
472
|
(function (DeleteReportPlanInput) {
|
|
317
473
|
DeleteReportPlanInput.filterSensitiveLog = (obj) => ({
|
|
318
474
|
...obj,
|
|
319
475
|
});
|
|
320
476
|
})(DeleteReportPlanInput = exports.DeleteReportPlanInput || (exports.DeleteReportPlanInput = {}));
|
|
477
|
+
class DependencyFailureException extends BackupServiceException_1.BackupServiceException {
|
|
478
|
+
constructor(opts) {
|
|
479
|
+
super({
|
|
480
|
+
name: "DependencyFailureException",
|
|
481
|
+
$fault: "server",
|
|
482
|
+
...opts,
|
|
483
|
+
});
|
|
484
|
+
this.name = "DependencyFailureException";
|
|
485
|
+
this.$fault = "server";
|
|
486
|
+
Object.setPrototypeOf(this, DependencyFailureException.prototype);
|
|
487
|
+
this.Code = opts.Code;
|
|
488
|
+
this.Message = opts.Message;
|
|
489
|
+
this.Type = opts.Type;
|
|
490
|
+
this.Context = opts.Context;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
exports.DependencyFailureException = DependencyFailureException;
|
|
321
494
|
var DescribeBackupJobInput;
|
|
322
495
|
(function (DescribeBackupJobInput) {
|
|
323
496
|
DescribeBackupJobInput.filterSensitiveLog = (obj) => ({
|