@aws-sdk/client-backup 3.216.0 → 3.218.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/README.md +7 -7
- package/dist-cjs/Backup.js +90 -0
- package/dist-cjs/commands/CancelLegalHoldCommand.js +46 -0
- package/dist-cjs/commands/CreateLegalHoldCommand.js +46 -0
- package/dist-cjs/commands/DisassociateRecoveryPointFromParentCommand.js +46 -0
- package/dist-cjs/commands/GetLegalHoldCommand.js +46 -0
- package/dist-cjs/commands/ListLegalHoldsCommand.js +46 -0
- package/dist-cjs/commands/ListRecoveryPointsByLegalHoldCommand.js +46 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +116 -46
- package/dist-cjs/pagination/ListLegalHoldsPaginator.js +36 -0
- package/dist-cjs/pagination/ListRecoveryPointsByLegalHoldPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +615 -3
- package/dist-es/Backup.js +90 -0
- package/dist-es/commands/CancelLegalHoldCommand.js +42 -0
- package/dist-es/commands/CreateLegalHoldCommand.js +42 -0
- package/dist-es/commands/DisassociateRecoveryPointFromParentCommand.js +42 -0
- package/dist-es/commands/GetLegalHoldCommand.js +42 -0
- package/dist-es/commands/ListLegalHoldsCommand.js +42 -0
- package/dist-es/commands/ListRecoveryPointsByLegalHoldCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +90 -35
- package/dist-es/pagination/ListLegalHoldsPaginator.js +32 -0
- package/dist-es/pagination/ListRecoveryPointsByLegalHoldPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +600 -0
- package/dist-types/Backup.d.ts +63 -0
- package/dist-types/BackupClient.d.ts +8 -2
- package/dist-types/commands/CancelLegalHoldCommand.d.ts +38 -0
- package/dist-types/commands/CreateLegalHoldCommand.d.ts +40 -0
- package/dist-types/commands/DeleteRecoveryPointCommand.d.ts +10 -0
- package/dist-types/commands/DisassociateRecoveryPointFromParentCommand.d.ts +38 -0
- package/dist-types/commands/GetLegalHoldCommand.d.ts +38 -0
- package/dist-types/commands/ListLegalHoldsCommand.d.ts +37 -0
- package/dist-types/commands/ListRecoveryPointsByLegalHoldCommand.d.ts +38 -0
- package/dist-types/commands/StopBackupJobCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +653 -128
- package/dist-types/pagination/ListLegalHoldsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRecoveryPointsByLegalHoldPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Backup.d.ts +108 -0
- package/dist-types/ts3.4/BackupClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/CancelLegalHoldCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateLegalHoldCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DisassociateRecoveryPointFromParentCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetLegalHoldCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListLegalHoldsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListRecoveryPointsByLegalHoldCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +210 -55
- package/dist-types/ts3.4/pagination/ListLegalHoldsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecoveryPointsByLegalHoldPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +3 -3
|
@@ -26,6 +26,7 @@ export var BackupJobState;
|
|
|
26
26
|
BackupJobState["CREATED"] = "CREATED";
|
|
27
27
|
BackupJobState["EXPIRED"] = "EXPIRED";
|
|
28
28
|
BackupJobState["FAILED"] = "FAILED";
|
|
29
|
+
BackupJobState["PARTIAL"] = "PARTIAL";
|
|
29
30
|
BackupJobState["PENDING"] = "PENDING";
|
|
30
31
|
BackupJobState["RUNNING"] = "RUNNING";
|
|
31
32
|
})(BackupJobState || (BackupJobState = {}));
|
|
@@ -53,71 +54,64 @@ export var BackupVaultEvent;
|
|
|
53
54
|
BackupVaultEvent["S3_BACKUP_OBJECT_FAILED"] = "S3_BACKUP_OBJECT_FAILED";
|
|
54
55
|
BackupVaultEvent["S3_RESTORE_OBJECT_FAILED"] = "S3_RESTORE_OBJECT_FAILED";
|
|
55
56
|
})(BackupVaultEvent || (BackupVaultEvent = {}));
|
|
56
|
-
export class
|
|
57
|
+
export class InvalidParameterValueException extends __BaseException {
|
|
57
58
|
constructor(opts) {
|
|
58
59
|
super({
|
|
59
|
-
name: "
|
|
60
|
+
name: "InvalidParameterValueException",
|
|
60
61
|
$fault: "client",
|
|
61
62
|
...opts,
|
|
62
63
|
});
|
|
63
|
-
this.name = "
|
|
64
|
+
this.name = "InvalidParameterValueException";
|
|
64
65
|
this.$fault = "client";
|
|
65
|
-
Object.setPrototypeOf(this,
|
|
66
|
+
Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
|
|
66
67
|
this.Code = opts.Code;
|
|
67
68
|
this.Message = opts.Message;
|
|
68
69
|
this.Type = opts.Type;
|
|
69
70
|
this.Context = opts.Context;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
export
|
|
73
|
-
(function (CopyJobState) {
|
|
74
|
-
CopyJobState["COMPLETED"] = "COMPLETED";
|
|
75
|
-
CopyJobState["CREATED"] = "CREATED";
|
|
76
|
-
CopyJobState["FAILED"] = "FAILED";
|
|
77
|
-
CopyJobState["RUNNING"] = "RUNNING";
|
|
78
|
-
})(CopyJobState || (CopyJobState = {}));
|
|
79
|
-
export class InvalidParameterValueException extends __BaseException {
|
|
73
|
+
export class InvalidResourceStateException extends __BaseException {
|
|
80
74
|
constructor(opts) {
|
|
81
75
|
super({
|
|
82
|
-
name: "
|
|
76
|
+
name: "InvalidResourceStateException",
|
|
83
77
|
$fault: "client",
|
|
84
78
|
...opts,
|
|
85
79
|
});
|
|
86
|
-
this.name = "
|
|
80
|
+
this.name = "InvalidResourceStateException";
|
|
87
81
|
this.$fault = "client";
|
|
88
|
-
Object.setPrototypeOf(this,
|
|
82
|
+
Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
|
|
89
83
|
this.Code = opts.Code;
|
|
90
84
|
this.Message = opts.Message;
|
|
91
85
|
this.Type = opts.Type;
|
|
92
86
|
this.Context = opts.Context;
|
|
93
87
|
}
|
|
94
88
|
}
|
|
95
|
-
export class
|
|
89
|
+
export class MissingParameterValueException extends __BaseException {
|
|
96
90
|
constructor(opts) {
|
|
97
91
|
super({
|
|
98
|
-
name: "
|
|
92
|
+
name: "MissingParameterValueException",
|
|
99
93
|
$fault: "client",
|
|
100
94
|
...opts,
|
|
101
95
|
});
|
|
102
|
-
this.name = "
|
|
96
|
+
this.name = "MissingParameterValueException";
|
|
103
97
|
this.$fault = "client";
|
|
104
|
-
Object.setPrototypeOf(this,
|
|
98
|
+
Object.setPrototypeOf(this, MissingParameterValueException.prototype);
|
|
105
99
|
this.Code = opts.Code;
|
|
106
100
|
this.Message = opts.Message;
|
|
107
101
|
this.Type = opts.Type;
|
|
108
102
|
this.Context = opts.Context;
|
|
109
103
|
}
|
|
110
104
|
}
|
|
111
|
-
export class
|
|
105
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
112
106
|
constructor(opts) {
|
|
113
107
|
super({
|
|
114
|
-
name: "
|
|
108
|
+
name: "ResourceNotFoundException",
|
|
115
109
|
$fault: "client",
|
|
116
110
|
...opts,
|
|
117
111
|
});
|
|
118
|
-
this.name = "
|
|
112
|
+
this.name = "ResourceNotFoundException";
|
|
119
113
|
this.$fault = "client";
|
|
120
|
-
Object.setPrototypeOf(this,
|
|
114
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
121
115
|
this.Code = opts.Code;
|
|
122
116
|
this.Message = opts.Message;
|
|
123
117
|
this.Type = opts.Type;
|
|
@@ -140,48 +134,63 @@ export class ServiceUnavailableException extends __BaseException {
|
|
|
140
134
|
this.Context = opts.Context;
|
|
141
135
|
}
|
|
142
136
|
}
|
|
143
|
-
export class
|
|
137
|
+
export class ConflictException extends __BaseException {
|
|
144
138
|
constructor(opts) {
|
|
145
139
|
super({
|
|
146
|
-
name: "
|
|
140
|
+
name: "ConflictException",
|
|
147
141
|
$fault: "client",
|
|
148
142
|
...opts,
|
|
149
143
|
});
|
|
150
|
-
this.name = "
|
|
144
|
+
this.name = "ConflictException";
|
|
151
145
|
this.$fault = "client";
|
|
152
|
-
Object.setPrototypeOf(this,
|
|
146
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
153
147
|
this.Code = opts.Code;
|
|
154
148
|
this.Message = opts.Message;
|
|
155
149
|
this.Type = opts.Type;
|
|
156
150
|
this.Context = opts.Context;
|
|
157
151
|
}
|
|
158
152
|
}
|
|
159
|
-
export
|
|
153
|
+
export var CopyJobState;
|
|
154
|
+
(function (CopyJobState) {
|
|
155
|
+
CopyJobState["COMPLETED"] = "COMPLETED";
|
|
156
|
+
CopyJobState["CREATED"] = "CREATED";
|
|
157
|
+
CopyJobState["FAILED"] = "FAILED";
|
|
158
|
+
CopyJobState["PARTIAL"] = "PARTIAL";
|
|
159
|
+
CopyJobState["RUNNING"] = "RUNNING";
|
|
160
|
+
})(CopyJobState || (CopyJobState = {}));
|
|
161
|
+
export class LimitExceededException extends __BaseException {
|
|
160
162
|
constructor(opts) {
|
|
161
163
|
super({
|
|
162
|
-
name: "
|
|
164
|
+
name: "LimitExceededException",
|
|
163
165
|
$fault: "client",
|
|
164
166
|
...opts,
|
|
165
167
|
});
|
|
166
|
-
this.name = "
|
|
168
|
+
this.name = "LimitExceededException";
|
|
167
169
|
this.$fault = "client";
|
|
168
|
-
Object.setPrototypeOf(this,
|
|
170
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
169
171
|
this.Code = opts.Code;
|
|
170
172
|
this.Message = opts.Message;
|
|
171
173
|
this.Type = opts.Type;
|
|
172
174
|
this.Context = opts.Context;
|
|
173
175
|
}
|
|
174
176
|
}
|
|
175
|
-
export
|
|
177
|
+
export var LegalHoldStatus;
|
|
178
|
+
(function (LegalHoldStatus) {
|
|
179
|
+
LegalHoldStatus["ACTIVE"] = "ACTIVE";
|
|
180
|
+
LegalHoldStatus["CANCELED"] = "CANCELED";
|
|
181
|
+
LegalHoldStatus["CANCELING"] = "CANCELING";
|
|
182
|
+
LegalHoldStatus["CREATING"] = "CREATING";
|
|
183
|
+
})(LegalHoldStatus || (LegalHoldStatus = {}));
|
|
184
|
+
export class InvalidRequestException extends __BaseException {
|
|
176
185
|
constructor(opts) {
|
|
177
186
|
super({
|
|
178
|
-
name: "
|
|
187
|
+
name: "InvalidRequestException",
|
|
179
188
|
$fault: "client",
|
|
180
189
|
...opts,
|
|
181
190
|
});
|
|
182
|
-
this.name = "
|
|
191
|
+
this.name = "InvalidRequestException";
|
|
183
192
|
this.$fault = "client";
|
|
184
|
-
Object.setPrototypeOf(this,
|
|
193
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
185
194
|
this.Code = opts.Code;
|
|
186
195
|
this.Message = opts.Message;
|
|
187
196
|
this.Type = opts.Type;
|
|
@@ -283,6 +292,12 @@ export const BackupVaultListMemberFilterSensitiveLog = (obj) => ({
|
|
|
283
292
|
export const CalculatedLifecycleFilterSensitiveLog = (obj) => ({
|
|
284
293
|
...obj,
|
|
285
294
|
});
|
|
295
|
+
export const CancelLegalHoldInputFilterSensitiveLog = (obj) => ({
|
|
296
|
+
...obj,
|
|
297
|
+
});
|
|
298
|
+
export const CancelLegalHoldOutputFilterSensitiveLog = (obj) => ({
|
|
299
|
+
...obj,
|
|
300
|
+
});
|
|
286
301
|
export const ControlInputParameterFilterSensitiveLog = (obj) => ({
|
|
287
302
|
...obj,
|
|
288
303
|
});
|
|
@@ -322,6 +337,19 @@ export const CreateFrameworkInputFilterSensitiveLog = (obj) => ({
|
|
|
322
337
|
export const CreateFrameworkOutputFilterSensitiveLog = (obj) => ({
|
|
323
338
|
...obj,
|
|
324
339
|
});
|
|
340
|
+
export const DateRangeFilterSensitiveLog = (obj) => ({
|
|
341
|
+
...obj,
|
|
342
|
+
});
|
|
343
|
+
export const RecoveryPointSelectionFilterSensitiveLog = (obj) => ({
|
|
344
|
+
...obj,
|
|
345
|
+
});
|
|
346
|
+
export const CreateLegalHoldInputFilterSensitiveLog = (obj) => ({
|
|
347
|
+
...obj,
|
|
348
|
+
...(obj.Tags && { Tags: SENSITIVE_STRING }),
|
|
349
|
+
});
|
|
350
|
+
export const CreateLegalHoldOutputFilterSensitiveLog = (obj) => ({
|
|
351
|
+
...obj,
|
|
352
|
+
});
|
|
325
353
|
export const ReportDeliveryChannelFilterSensitiveLog = (obj) => ({
|
|
326
354
|
...obj,
|
|
327
355
|
});
|
|
@@ -442,6 +470,9 @@ export const DescribeRestoreJobOutputFilterSensitiveLog = (obj) => ({
|
|
|
442
470
|
export const DisassociateRecoveryPointInputFilterSensitiveLog = (obj) => ({
|
|
443
471
|
...obj,
|
|
444
472
|
});
|
|
473
|
+
export const DisassociateRecoveryPointFromParentInputFilterSensitiveLog = (obj) => ({
|
|
474
|
+
...obj,
|
|
475
|
+
});
|
|
445
476
|
export const ExportBackupPlanTemplateInputFilterSensitiveLog = (obj) => ({
|
|
446
477
|
...obj,
|
|
447
478
|
});
|
|
@@ -487,6 +518,12 @@ export const GetBackupVaultNotificationsInputFilterSensitiveLog = (obj) => ({
|
|
|
487
518
|
export const GetBackupVaultNotificationsOutputFilterSensitiveLog = (obj) => ({
|
|
488
519
|
...obj,
|
|
489
520
|
});
|
|
521
|
+
export const GetLegalHoldInputFilterSensitiveLog = (obj) => ({
|
|
522
|
+
...obj,
|
|
523
|
+
});
|
|
524
|
+
export const GetLegalHoldOutputFilterSensitiveLog = (obj) => ({
|
|
525
|
+
...obj,
|
|
526
|
+
});
|
|
490
527
|
export const GetRecoveryPointRestoreMetadataInputFilterSensitiveLog = (obj) => ({
|
|
491
528
|
...obj,
|
|
492
529
|
});
|
|
@@ -548,6 +585,15 @@ export const FrameworkFilterSensitiveLog = (obj) => ({
|
|
|
548
585
|
export const ListFrameworksOutputFilterSensitiveLog = (obj) => ({
|
|
549
586
|
...obj,
|
|
550
587
|
});
|
|
588
|
+
export const ListLegalHoldsInputFilterSensitiveLog = (obj) => ({
|
|
589
|
+
...obj,
|
|
590
|
+
});
|
|
591
|
+
export const LegalHoldFilterSensitiveLog = (obj) => ({
|
|
592
|
+
...obj,
|
|
593
|
+
});
|
|
594
|
+
export const ListLegalHoldsOutputFilterSensitiveLog = (obj) => ({
|
|
595
|
+
...obj,
|
|
596
|
+
});
|
|
551
597
|
export const ListProtectedResourcesInputFilterSensitiveLog = (obj) => ({
|
|
552
598
|
...obj,
|
|
553
599
|
});
|
|
@@ -566,6 +612,15 @@ export const RecoveryPointByBackupVaultFilterSensitiveLog = (obj) => ({
|
|
|
566
612
|
export const ListRecoveryPointsByBackupVaultOutputFilterSensitiveLog = (obj) => ({
|
|
567
613
|
...obj,
|
|
568
614
|
});
|
|
615
|
+
export const ListRecoveryPointsByLegalHoldInputFilterSensitiveLog = (obj) => ({
|
|
616
|
+
...obj,
|
|
617
|
+
});
|
|
618
|
+
export const RecoveryPointMemberFilterSensitiveLog = (obj) => ({
|
|
619
|
+
...obj,
|
|
620
|
+
});
|
|
621
|
+
export const ListRecoveryPointsByLegalHoldOutputFilterSensitiveLog = (obj) => ({
|
|
622
|
+
...obj,
|
|
623
|
+
});
|
|
569
624
|
export const ListRecoveryPointsByResourceInputFilterSensitiveLog = (obj) => ({
|
|
570
625
|
...obj,
|
|
571
626
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Backup } from "../Backup";
|
|
2
|
+
import { BackupClient } from "../BackupClient";
|
|
3
|
+
import { ListLegalHoldsCommand, } from "../commands/ListLegalHoldsCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListLegalHoldsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listLegalHolds(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListLegalHolds(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Backup) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof BackupClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Backup | BackupClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Backup } from "../Backup";
|
|
2
|
+
import { BackupClient } from "../BackupClient";
|
|
3
|
+
import { ListRecoveryPointsByLegalHoldCommand, } from "../commands/ListRecoveryPointsByLegalHoldCommand";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListRecoveryPointsByLegalHoldCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listRecoveryPointsByLegalHold(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListRecoveryPointsByLegalHold(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.NextToken = token;
|
|
16
|
+
input["MaxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof Backup) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof BackupClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected Backup | BackupClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.NextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -7,8 +7,10 @@ export * from "./ListBackupSelectionsPaginator";
|
|
|
7
7
|
export * from "./ListBackupVaultsPaginator";
|
|
8
8
|
export * from "./ListCopyJobsPaginator";
|
|
9
9
|
export * from "./ListFrameworksPaginator";
|
|
10
|
+
export * from "./ListLegalHoldsPaginator";
|
|
10
11
|
export * from "./ListProtectedResourcesPaginator";
|
|
11
12
|
export * from "./ListRecoveryPointsByBackupVaultPaginator";
|
|
13
|
+
export * from "./ListRecoveryPointsByLegalHoldPaginator";
|
|
12
14
|
export * from "./ListRecoveryPointsByResourcePaginator";
|
|
13
15
|
export * from "./ListReportJobsPaginator";
|
|
14
16
|
export * from "./ListReportPlansPaginator";
|