@aws-sdk/client-backup 3.301.0 → 3.303.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.
@@ -22,42 +22,39 @@ class AlreadyExistsException extends BackupServiceException_1.BackupServiceExcep
22
22
  }
23
23
  }
24
24
  exports.AlreadyExistsException = AlreadyExistsException;
25
- var BackupJobState;
26
- (function (BackupJobState) {
27
- BackupJobState["ABORTED"] = "ABORTED";
28
- BackupJobState["ABORTING"] = "ABORTING";
29
- BackupJobState["COMPLETED"] = "COMPLETED";
30
- BackupJobState["CREATED"] = "CREATED";
31
- BackupJobState["EXPIRED"] = "EXPIRED";
32
- BackupJobState["FAILED"] = "FAILED";
33
- BackupJobState["PARTIAL"] = "PARTIAL";
34
- BackupJobState["PENDING"] = "PENDING";
35
- BackupJobState["RUNNING"] = "RUNNING";
36
- })(BackupJobState = exports.BackupJobState || (exports.BackupJobState = {}));
37
- var ConditionType;
38
- (function (ConditionType) {
39
- ConditionType["STRINGEQUALS"] = "STRINGEQUALS";
40
- })(ConditionType = exports.ConditionType || (exports.ConditionType = {}));
41
- var BackupVaultEvent;
42
- (function (BackupVaultEvent) {
43
- BackupVaultEvent["BACKUP_JOB_COMPLETED"] = "BACKUP_JOB_COMPLETED";
44
- BackupVaultEvent["BACKUP_JOB_EXPIRED"] = "BACKUP_JOB_EXPIRED";
45
- BackupVaultEvent["BACKUP_JOB_FAILED"] = "BACKUP_JOB_FAILED";
46
- BackupVaultEvent["BACKUP_JOB_STARTED"] = "BACKUP_JOB_STARTED";
47
- BackupVaultEvent["BACKUP_JOB_SUCCESSFUL"] = "BACKUP_JOB_SUCCESSFUL";
48
- BackupVaultEvent["BACKUP_PLAN_CREATED"] = "BACKUP_PLAN_CREATED";
49
- BackupVaultEvent["BACKUP_PLAN_MODIFIED"] = "BACKUP_PLAN_MODIFIED";
50
- BackupVaultEvent["COPY_JOB_FAILED"] = "COPY_JOB_FAILED";
51
- BackupVaultEvent["COPY_JOB_STARTED"] = "COPY_JOB_STARTED";
52
- BackupVaultEvent["COPY_JOB_SUCCESSFUL"] = "COPY_JOB_SUCCESSFUL";
53
- BackupVaultEvent["RECOVERY_POINT_MODIFIED"] = "RECOVERY_POINT_MODIFIED";
54
- BackupVaultEvent["RESTORE_JOB_COMPLETED"] = "RESTORE_JOB_COMPLETED";
55
- BackupVaultEvent["RESTORE_JOB_FAILED"] = "RESTORE_JOB_FAILED";
56
- BackupVaultEvent["RESTORE_JOB_STARTED"] = "RESTORE_JOB_STARTED";
57
- BackupVaultEvent["RESTORE_JOB_SUCCESSFUL"] = "RESTORE_JOB_SUCCESSFUL";
58
- BackupVaultEvent["S3_BACKUP_OBJECT_FAILED"] = "S3_BACKUP_OBJECT_FAILED";
59
- BackupVaultEvent["S3_RESTORE_OBJECT_FAILED"] = "S3_RESTORE_OBJECT_FAILED";
60
- })(BackupVaultEvent = exports.BackupVaultEvent || (exports.BackupVaultEvent = {}));
25
+ exports.BackupJobState = {
26
+ ABORTED: "ABORTED",
27
+ ABORTING: "ABORTING",
28
+ COMPLETED: "COMPLETED",
29
+ CREATED: "CREATED",
30
+ EXPIRED: "EXPIRED",
31
+ FAILED: "FAILED",
32
+ PARTIAL: "PARTIAL",
33
+ PENDING: "PENDING",
34
+ RUNNING: "RUNNING",
35
+ };
36
+ exports.ConditionType = {
37
+ STRINGEQUALS: "STRINGEQUALS",
38
+ };
39
+ exports.BackupVaultEvent = {
40
+ BACKUP_JOB_COMPLETED: "BACKUP_JOB_COMPLETED",
41
+ BACKUP_JOB_EXPIRED: "BACKUP_JOB_EXPIRED",
42
+ BACKUP_JOB_FAILED: "BACKUP_JOB_FAILED",
43
+ BACKUP_JOB_STARTED: "BACKUP_JOB_STARTED",
44
+ BACKUP_JOB_SUCCESSFUL: "BACKUP_JOB_SUCCESSFUL",
45
+ BACKUP_PLAN_CREATED: "BACKUP_PLAN_CREATED",
46
+ BACKUP_PLAN_MODIFIED: "BACKUP_PLAN_MODIFIED",
47
+ COPY_JOB_FAILED: "COPY_JOB_FAILED",
48
+ COPY_JOB_STARTED: "COPY_JOB_STARTED",
49
+ COPY_JOB_SUCCESSFUL: "COPY_JOB_SUCCESSFUL",
50
+ RECOVERY_POINT_MODIFIED: "RECOVERY_POINT_MODIFIED",
51
+ RESTORE_JOB_COMPLETED: "RESTORE_JOB_COMPLETED",
52
+ RESTORE_JOB_FAILED: "RESTORE_JOB_FAILED",
53
+ RESTORE_JOB_STARTED: "RESTORE_JOB_STARTED",
54
+ RESTORE_JOB_SUCCESSFUL: "RESTORE_JOB_SUCCESSFUL",
55
+ S3_BACKUP_OBJECT_FAILED: "S3_BACKUP_OBJECT_FAILED",
56
+ S3_RESTORE_OBJECT_FAILED: "S3_RESTORE_OBJECT_FAILED",
57
+ };
61
58
  class InvalidParameterValueException extends BackupServiceException_1.BackupServiceException {
62
59
  constructor(opts) {
63
60
  super({
@@ -160,14 +157,13 @@ class ConflictException extends BackupServiceException_1.BackupServiceException
160
157
  }
161
158
  }
162
159
  exports.ConflictException = ConflictException;
163
- var CopyJobState;
164
- (function (CopyJobState) {
165
- CopyJobState["COMPLETED"] = "COMPLETED";
166
- CopyJobState["CREATED"] = "CREATED";
167
- CopyJobState["FAILED"] = "FAILED";
168
- CopyJobState["PARTIAL"] = "PARTIAL";
169
- CopyJobState["RUNNING"] = "RUNNING";
170
- })(CopyJobState = exports.CopyJobState || (exports.CopyJobState = {}));
160
+ exports.CopyJobState = {
161
+ COMPLETED: "COMPLETED",
162
+ CREATED: "CREATED",
163
+ FAILED: "FAILED",
164
+ PARTIAL: "PARTIAL",
165
+ RUNNING: "RUNNING",
166
+ };
171
167
  class LimitExceededException extends BackupServiceException_1.BackupServiceException {
172
168
  constructor(opts) {
173
169
  super({
@@ -185,13 +181,12 @@ class LimitExceededException extends BackupServiceException_1.BackupServiceExcep
185
181
  }
186
182
  }
187
183
  exports.LimitExceededException = LimitExceededException;
188
- var LegalHoldStatus;
189
- (function (LegalHoldStatus) {
190
- LegalHoldStatus["ACTIVE"] = "ACTIVE";
191
- LegalHoldStatus["CANCELED"] = "CANCELED";
192
- LegalHoldStatus["CANCELING"] = "CANCELING";
193
- LegalHoldStatus["CREATING"] = "CREATING";
194
- })(LegalHoldStatus = exports.LegalHoldStatus || (exports.LegalHoldStatus = {}));
184
+ exports.LegalHoldStatus = {
185
+ ACTIVE: "ACTIVE",
186
+ CANCELED: "CANCELED",
187
+ CANCELING: "CANCELING",
188
+ CREATING: "CREATING",
189
+ };
195
190
  class InvalidRequestException extends BackupServiceException_1.BackupServiceException {
196
191
  constructor(opts) {
197
192
  super({
@@ -226,27 +221,24 @@ class DependencyFailureException extends BackupServiceException_1.BackupServiceE
226
221
  }
227
222
  }
228
223
  exports.DependencyFailureException = DependencyFailureException;
229
- var RecoveryPointStatus;
230
- (function (RecoveryPointStatus) {
231
- RecoveryPointStatus["COMPLETED"] = "COMPLETED";
232
- RecoveryPointStatus["DELETING"] = "DELETING";
233
- RecoveryPointStatus["EXPIRED"] = "EXPIRED";
234
- RecoveryPointStatus["PARTIAL"] = "PARTIAL";
235
- })(RecoveryPointStatus = exports.RecoveryPointStatus || (exports.RecoveryPointStatus = {}));
236
- var StorageClass;
237
- (function (StorageClass) {
238
- StorageClass["COLD"] = "COLD";
239
- StorageClass["DELETED"] = "DELETED";
240
- StorageClass["WARM"] = "WARM";
241
- })(StorageClass = exports.StorageClass || (exports.StorageClass = {}));
242
- var RestoreJobStatus;
243
- (function (RestoreJobStatus) {
244
- RestoreJobStatus["ABORTED"] = "ABORTED";
245
- RestoreJobStatus["COMPLETED"] = "COMPLETED";
246
- RestoreJobStatus["FAILED"] = "FAILED";
247
- RestoreJobStatus["PENDING"] = "PENDING";
248
- RestoreJobStatus["RUNNING"] = "RUNNING";
249
- })(RestoreJobStatus = exports.RestoreJobStatus || (exports.RestoreJobStatus = {}));
224
+ exports.RecoveryPointStatus = {
225
+ COMPLETED: "COMPLETED",
226
+ DELETING: "DELETING",
227
+ EXPIRED: "EXPIRED",
228
+ PARTIAL: "PARTIAL",
229
+ };
230
+ exports.StorageClass = {
231
+ COLD: "COLD",
232
+ DELETED: "DELETED",
233
+ WARM: "WARM",
234
+ };
235
+ exports.RestoreJobStatus = {
236
+ ABORTED: "ABORTED",
237
+ COMPLETED: "COMPLETED",
238
+ FAILED: "FAILED",
239
+ PENDING: "PENDING",
240
+ RUNNING: "RUNNING",
241
+ };
250
242
  const BackupRuleFilterSensitiveLog = (obj) => ({
251
243
  ...obj,
252
244
  ...(obj.RecoveryPointTags && { RecoveryPointTags: smithy_client_1.SENSITIVE_STRING }),
@@ -18,42 +18,39 @@ export class AlreadyExistsException extends __BaseException {
18
18
  this.Context = opts.Context;
19
19
  }
20
20
  }
21
- export var BackupJobState;
22
- (function (BackupJobState) {
23
- BackupJobState["ABORTED"] = "ABORTED";
24
- BackupJobState["ABORTING"] = "ABORTING";
25
- BackupJobState["COMPLETED"] = "COMPLETED";
26
- BackupJobState["CREATED"] = "CREATED";
27
- BackupJobState["EXPIRED"] = "EXPIRED";
28
- BackupJobState["FAILED"] = "FAILED";
29
- BackupJobState["PARTIAL"] = "PARTIAL";
30
- BackupJobState["PENDING"] = "PENDING";
31
- BackupJobState["RUNNING"] = "RUNNING";
32
- })(BackupJobState || (BackupJobState = {}));
33
- export var ConditionType;
34
- (function (ConditionType) {
35
- ConditionType["STRINGEQUALS"] = "STRINGEQUALS";
36
- })(ConditionType || (ConditionType = {}));
37
- export var BackupVaultEvent;
38
- (function (BackupVaultEvent) {
39
- BackupVaultEvent["BACKUP_JOB_COMPLETED"] = "BACKUP_JOB_COMPLETED";
40
- BackupVaultEvent["BACKUP_JOB_EXPIRED"] = "BACKUP_JOB_EXPIRED";
41
- BackupVaultEvent["BACKUP_JOB_FAILED"] = "BACKUP_JOB_FAILED";
42
- BackupVaultEvent["BACKUP_JOB_STARTED"] = "BACKUP_JOB_STARTED";
43
- BackupVaultEvent["BACKUP_JOB_SUCCESSFUL"] = "BACKUP_JOB_SUCCESSFUL";
44
- BackupVaultEvent["BACKUP_PLAN_CREATED"] = "BACKUP_PLAN_CREATED";
45
- BackupVaultEvent["BACKUP_PLAN_MODIFIED"] = "BACKUP_PLAN_MODIFIED";
46
- BackupVaultEvent["COPY_JOB_FAILED"] = "COPY_JOB_FAILED";
47
- BackupVaultEvent["COPY_JOB_STARTED"] = "COPY_JOB_STARTED";
48
- BackupVaultEvent["COPY_JOB_SUCCESSFUL"] = "COPY_JOB_SUCCESSFUL";
49
- BackupVaultEvent["RECOVERY_POINT_MODIFIED"] = "RECOVERY_POINT_MODIFIED";
50
- BackupVaultEvent["RESTORE_JOB_COMPLETED"] = "RESTORE_JOB_COMPLETED";
51
- BackupVaultEvent["RESTORE_JOB_FAILED"] = "RESTORE_JOB_FAILED";
52
- BackupVaultEvent["RESTORE_JOB_STARTED"] = "RESTORE_JOB_STARTED";
53
- BackupVaultEvent["RESTORE_JOB_SUCCESSFUL"] = "RESTORE_JOB_SUCCESSFUL";
54
- BackupVaultEvent["S3_BACKUP_OBJECT_FAILED"] = "S3_BACKUP_OBJECT_FAILED";
55
- BackupVaultEvent["S3_RESTORE_OBJECT_FAILED"] = "S3_RESTORE_OBJECT_FAILED";
56
- })(BackupVaultEvent || (BackupVaultEvent = {}));
21
+ export const BackupJobState = {
22
+ ABORTED: "ABORTED",
23
+ ABORTING: "ABORTING",
24
+ COMPLETED: "COMPLETED",
25
+ CREATED: "CREATED",
26
+ EXPIRED: "EXPIRED",
27
+ FAILED: "FAILED",
28
+ PARTIAL: "PARTIAL",
29
+ PENDING: "PENDING",
30
+ RUNNING: "RUNNING",
31
+ };
32
+ export const ConditionType = {
33
+ STRINGEQUALS: "STRINGEQUALS",
34
+ };
35
+ export const BackupVaultEvent = {
36
+ BACKUP_JOB_COMPLETED: "BACKUP_JOB_COMPLETED",
37
+ BACKUP_JOB_EXPIRED: "BACKUP_JOB_EXPIRED",
38
+ BACKUP_JOB_FAILED: "BACKUP_JOB_FAILED",
39
+ BACKUP_JOB_STARTED: "BACKUP_JOB_STARTED",
40
+ BACKUP_JOB_SUCCESSFUL: "BACKUP_JOB_SUCCESSFUL",
41
+ BACKUP_PLAN_CREATED: "BACKUP_PLAN_CREATED",
42
+ BACKUP_PLAN_MODIFIED: "BACKUP_PLAN_MODIFIED",
43
+ COPY_JOB_FAILED: "COPY_JOB_FAILED",
44
+ COPY_JOB_STARTED: "COPY_JOB_STARTED",
45
+ COPY_JOB_SUCCESSFUL: "COPY_JOB_SUCCESSFUL",
46
+ RECOVERY_POINT_MODIFIED: "RECOVERY_POINT_MODIFIED",
47
+ RESTORE_JOB_COMPLETED: "RESTORE_JOB_COMPLETED",
48
+ RESTORE_JOB_FAILED: "RESTORE_JOB_FAILED",
49
+ RESTORE_JOB_STARTED: "RESTORE_JOB_STARTED",
50
+ RESTORE_JOB_SUCCESSFUL: "RESTORE_JOB_SUCCESSFUL",
51
+ S3_BACKUP_OBJECT_FAILED: "S3_BACKUP_OBJECT_FAILED",
52
+ S3_RESTORE_OBJECT_FAILED: "S3_RESTORE_OBJECT_FAILED",
53
+ };
57
54
  export class InvalidParameterValueException extends __BaseException {
58
55
  constructor(opts) {
59
56
  super({
@@ -150,14 +147,13 @@ export class ConflictException extends __BaseException {
150
147
  this.Context = opts.Context;
151
148
  }
152
149
  }
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 = {}));
150
+ export const CopyJobState = {
151
+ COMPLETED: "COMPLETED",
152
+ CREATED: "CREATED",
153
+ FAILED: "FAILED",
154
+ PARTIAL: "PARTIAL",
155
+ RUNNING: "RUNNING",
156
+ };
161
157
  export class LimitExceededException extends __BaseException {
162
158
  constructor(opts) {
163
159
  super({
@@ -174,13 +170,12 @@ export class LimitExceededException extends __BaseException {
174
170
  this.Context = opts.Context;
175
171
  }
176
172
  }
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 = {}));
173
+ export const LegalHoldStatus = {
174
+ ACTIVE: "ACTIVE",
175
+ CANCELED: "CANCELED",
176
+ CANCELING: "CANCELING",
177
+ CREATING: "CREATING",
178
+ };
184
179
  export class InvalidRequestException extends __BaseException {
185
180
  constructor(opts) {
186
181
  super({
@@ -213,27 +208,24 @@ export class DependencyFailureException extends __BaseException {
213
208
  this.Context = opts.Context;
214
209
  }
215
210
  }
216
- export var RecoveryPointStatus;
217
- (function (RecoveryPointStatus) {
218
- RecoveryPointStatus["COMPLETED"] = "COMPLETED";
219
- RecoveryPointStatus["DELETING"] = "DELETING";
220
- RecoveryPointStatus["EXPIRED"] = "EXPIRED";
221
- RecoveryPointStatus["PARTIAL"] = "PARTIAL";
222
- })(RecoveryPointStatus || (RecoveryPointStatus = {}));
223
- export var StorageClass;
224
- (function (StorageClass) {
225
- StorageClass["COLD"] = "COLD";
226
- StorageClass["DELETED"] = "DELETED";
227
- StorageClass["WARM"] = "WARM";
228
- })(StorageClass || (StorageClass = {}));
229
- export var RestoreJobStatus;
230
- (function (RestoreJobStatus) {
231
- RestoreJobStatus["ABORTED"] = "ABORTED";
232
- RestoreJobStatus["COMPLETED"] = "COMPLETED";
233
- RestoreJobStatus["FAILED"] = "FAILED";
234
- RestoreJobStatus["PENDING"] = "PENDING";
235
- RestoreJobStatus["RUNNING"] = "RUNNING";
236
- })(RestoreJobStatus || (RestoreJobStatus = {}));
211
+ export const RecoveryPointStatus = {
212
+ COMPLETED: "COMPLETED",
213
+ DELETING: "DELETING",
214
+ EXPIRED: "EXPIRED",
215
+ PARTIAL: "PARTIAL",
216
+ };
217
+ export const StorageClass = {
218
+ COLD: "COLD",
219
+ DELETED: "DELETED",
220
+ WARM: "WARM",
221
+ };
222
+ export const RestoreJobStatus = {
223
+ ABORTED: "ABORTED",
224
+ COMPLETED: "COMPLETED",
225
+ FAILED: "FAILED",
226
+ PENDING: "PENDING",
227
+ RUNNING: "RUNNING",
228
+ };
237
229
  export const BackupRuleFilterSensitiveLog = (obj) => ({
238
230
  ...obj,
239
231
  ...(obj.RecoveryPointTags && { RecoveryPointTags: SENSITIVE_STRING }),
@@ -86,18 +86,23 @@ export interface RecoveryPointCreator {
86
86
  }
87
87
  /**
88
88
  * @public
89
+ * @enum
89
90
  */
90
- export declare enum BackupJobState {
91
- ABORTED = "ABORTED",
92
- ABORTING = "ABORTING",
93
- COMPLETED = "COMPLETED",
94
- CREATED = "CREATED",
95
- EXPIRED = "EXPIRED",
96
- FAILED = "FAILED",
97
- PARTIAL = "PARTIAL",
98
- PENDING = "PENDING",
99
- RUNNING = "RUNNING"
100
- }
91
+ export declare const BackupJobState: {
92
+ readonly ABORTED: "ABORTED";
93
+ readonly ABORTING: "ABORTING";
94
+ readonly COMPLETED: "COMPLETED";
95
+ readonly CREATED: "CREATED";
96
+ readonly EXPIRED: "EXPIRED";
97
+ readonly FAILED: "FAILED";
98
+ readonly PARTIAL: "PARTIAL";
99
+ readonly PENDING: "PENDING";
100
+ readonly RUNNING: "RUNNING";
101
+ };
102
+ /**
103
+ * @public
104
+ */
105
+ export type BackupJobState = (typeof BackupJobState)[keyof typeof BackupJobState];
101
106
  /**
102
107
  * @public
103
108
  * <p>Contains detailed information about a backup job.</p>
@@ -580,10 +585,15 @@ export interface Conditions {
580
585
  }
581
586
  /**
582
587
  * @public
588
+ * @enum
583
589
  */
584
- export declare enum ConditionType {
585
- STRINGEQUALS = "STRINGEQUALS"
586
- }
590
+ export declare const ConditionType: {
591
+ readonly STRINGEQUALS: "STRINGEQUALS";
592
+ };
593
+ /**
594
+ * @public
595
+ */
596
+ export type ConditionType = (typeof ConditionType)[keyof typeof ConditionType];
587
597
  /**
588
598
  * @public
589
599
  * <p>Contains an array of triplets made up of a condition type (such as
@@ -732,26 +742,31 @@ export interface BackupSelectionsListMember {
732
742
  }
733
743
  /**
734
744
  * @public
745
+ * @enum
735
746
  */
736
- export declare enum BackupVaultEvent {
737
- BACKUP_JOB_COMPLETED = "BACKUP_JOB_COMPLETED",
738
- BACKUP_JOB_EXPIRED = "BACKUP_JOB_EXPIRED",
739
- BACKUP_JOB_FAILED = "BACKUP_JOB_FAILED",
740
- BACKUP_JOB_STARTED = "BACKUP_JOB_STARTED",
741
- BACKUP_JOB_SUCCESSFUL = "BACKUP_JOB_SUCCESSFUL",
742
- BACKUP_PLAN_CREATED = "BACKUP_PLAN_CREATED",
743
- BACKUP_PLAN_MODIFIED = "BACKUP_PLAN_MODIFIED",
744
- COPY_JOB_FAILED = "COPY_JOB_FAILED",
745
- COPY_JOB_STARTED = "COPY_JOB_STARTED",
746
- COPY_JOB_SUCCESSFUL = "COPY_JOB_SUCCESSFUL",
747
- RECOVERY_POINT_MODIFIED = "RECOVERY_POINT_MODIFIED",
748
- RESTORE_JOB_COMPLETED = "RESTORE_JOB_COMPLETED",
749
- RESTORE_JOB_FAILED = "RESTORE_JOB_FAILED",
750
- RESTORE_JOB_STARTED = "RESTORE_JOB_STARTED",
751
- RESTORE_JOB_SUCCESSFUL = "RESTORE_JOB_SUCCESSFUL",
752
- S3_BACKUP_OBJECT_FAILED = "S3_BACKUP_OBJECT_FAILED",
753
- S3_RESTORE_OBJECT_FAILED = "S3_RESTORE_OBJECT_FAILED"
754
- }
747
+ export declare const BackupVaultEvent: {
748
+ readonly BACKUP_JOB_COMPLETED: "BACKUP_JOB_COMPLETED";
749
+ readonly BACKUP_JOB_EXPIRED: "BACKUP_JOB_EXPIRED";
750
+ readonly BACKUP_JOB_FAILED: "BACKUP_JOB_FAILED";
751
+ readonly BACKUP_JOB_STARTED: "BACKUP_JOB_STARTED";
752
+ readonly BACKUP_JOB_SUCCESSFUL: "BACKUP_JOB_SUCCESSFUL";
753
+ readonly BACKUP_PLAN_CREATED: "BACKUP_PLAN_CREATED";
754
+ readonly BACKUP_PLAN_MODIFIED: "BACKUP_PLAN_MODIFIED";
755
+ readonly COPY_JOB_FAILED: "COPY_JOB_FAILED";
756
+ readonly COPY_JOB_STARTED: "COPY_JOB_STARTED";
757
+ readonly COPY_JOB_SUCCESSFUL: "COPY_JOB_SUCCESSFUL";
758
+ readonly RECOVERY_POINT_MODIFIED: "RECOVERY_POINT_MODIFIED";
759
+ readonly RESTORE_JOB_COMPLETED: "RESTORE_JOB_COMPLETED";
760
+ readonly RESTORE_JOB_FAILED: "RESTORE_JOB_FAILED";
761
+ readonly RESTORE_JOB_STARTED: "RESTORE_JOB_STARTED";
762
+ readonly RESTORE_JOB_SUCCESSFUL: "RESTORE_JOB_SUCCESSFUL";
763
+ readonly S3_BACKUP_OBJECT_FAILED: "S3_BACKUP_OBJECT_FAILED";
764
+ readonly S3_RESTORE_OBJECT_FAILED: "S3_RESTORE_OBJECT_FAILED";
765
+ };
766
+ /**
767
+ * @public
768
+ */
769
+ export type BackupVaultEvent = (typeof BackupVaultEvent)[keyof typeof BackupVaultEvent];
755
770
  /**
756
771
  * @public
757
772
  * <p>Contains metadata about a backup vault.</p>
@@ -1076,14 +1091,19 @@ export interface ControlScope {
1076
1091
  }
1077
1092
  /**
1078
1093
  * @public
1094
+ * @enum
1079
1095
  */
1080
- export declare enum CopyJobState {
1081
- COMPLETED = "COMPLETED",
1082
- CREATED = "CREATED",
1083
- FAILED = "FAILED",
1084
- PARTIAL = "PARTIAL",
1085
- RUNNING = "RUNNING"
1086
- }
1096
+ export declare const CopyJobState: {
1097
+ readonly COMPLETED: "COMPLETED";
1098
+ readonly CREATED: "CREATED";
1099
+ readonly FAILED: "FAILED";
1100
+ readonly PARTIAL: "PARTIAL";
1101
+ readonly RUNNING: "RUNNING";
1102
+ };
1103
+ /**
1104
+ * @public
1105
+ */
1106
+ export type CopyJobState = (typeof CopyJobState)[keyof typeof CopyJobState];
1087
1107
  /**
1088
1108
  * @public
1089
1109
  * <p>Contains detailed information about a copy job.</p>
@@ -1520,13 +1540,18 @@ export interface CreateLegalHoldInput {
1520
1540
  }
1521
1541
  /**
1522
1542
  * @public
1543
+ * @enum
1523
1544
  */
1524
- export declare enum LegalHoldStatus {
1525
- ACTIVE = "ACTIVE",
1526
- CANCELED = "CANCELED",
1527
- CANCELING = "CANCELING",
1528
- CREATING = "CREATING"
1529
- }
1545
+ export declare const LegalHoldStatus: {
1546
+ readonly ACTIVE: "ACTIVE";
1547
+ readonly CANCELED: "CANCELED";
1548
+ readonly CANCELING: "CANCELING";
1549
+ readonly CREATING: "CREATING";
1550
+ };
1551
+ /**
1552
+ * @public
1553
+ */
1554
+ export type LegalHoldStatus = (typeof LegalHoldStatus)[keyof typeof LegalHoldStatus];
1530
1555
  /**
1531
1556
  * @public
1532
1557
  */
@@ -2268,21 +2293,31 @@ export interface DescribeRecoveryPointInput {
2268
2293
  }
2269
2294
  /**
2270
2295
  * @public
2296
+ * @enum
2271
2297
  */
2272
- export declare enum RecoveryPointStatus {
2273
- COMPLETED = "COMPLETED",
2274
- DELETING = "DELETING",
2275
- EXPIRED = "EXPIRED",
2276
- PARTIAL = "PARTIAL"
2277
- }
2298
+ export declare const RecoveryPointStatus: {
2299
+ readonly COMPLETED: "COMPLETED";
2300
+ readonly DELETING: "DELETING";
2301
+ readonly EXPIRED: "EXPIRED";
2302
+ readonly PARTIAL: "PARTIAL";
2303
+ };
2278
2304
  /**
2279
2305
  * @public
2280
2306
  */
2281
- export declare enum StorageClass {
2282
- COLD = "COLD",
2283
- DELETED = "DELETED",
2284
- WARM = "WARM"
2285
- }
2307
+ export type RecoveryPointStatus = (typeof RecoveryPointStatus)[keyof typeof RecoveryPointStatus];
2308
+ /**
2309
+ * @public
2310
+ * @enum
2311
+ */
2312
+ export declare const StorageClass: {
2313
+ readonly COLD: "COLD";
2314
+ readonly DELETED: "DELETED";
2315
+ readonly WARM: "WARM";
2316
+ };
2317
+ /**
2318
+ * @public
2319
+ */
2320
+ export type StorageClass = (typeof StorageClass)[keyof typeof StorageClass];
2286
2321
  /**
2287
2322
  * @public
2288
2323
  */
@@ -2661,14 +2696,19 @@ export interface DescribeRestoreJobInput {
2661
2696
  }
2662
2697
  /**
2663
2698
  * @public
2699
+ * @enum
2664
2700
  */
2665
- export declare enum RestoreJobStatus {
2666
- ABORTED = "ABORTED",
2667
- COMPLETED = "COMPLETED",
2668
- FAILED = "FAILED",
2669
- PENDING = "PENDING",
2670
- RUNNING = "RUNNING"
2671
- }
2701
+ export declare const RestoreJobStatus: {
2702
+ readonly ABORTED: "ABORTED";
2703
+ readonly COMPLETED: "COMPLETED";
2704
+ readonly FAILED: "FAILED";
2705
+ readonly PENDING: "PENDING";
2706
+ readonly RUNNING: "RUNNING";
2707
+ };
2708
+ /**
2709
+ * @public
2710
+ */
2711
+ export type RestoreJobStatus = (typeof RestoreJobStatus)[keyof typeof RestoreJobStatus];
2672
2712
  /**
2673
2713
  * @public
2674
2714
  */
@@ -23,17 +23,19 @@ export interface RecoveryPointCreator {
23
23
  BackupPlanVersion?: string;
24
24
  BackupRuleId?: string;
25
25
  }
26
- export declare enum BackupJobState {
27
- ABORTED = "ABORTED",
28
- ABORTING = "ABORTING",
29
- COMPLETED = "COMPLETED",
30
- CREATED = "CREATED",
31
- EXPIRED = "EXPIRED",
32
- FAILED = "FAILED",
33
- PARTIAL = "PARTIAL",
34
- PENDING = "PENDING",
35
- RUNNING = "RUNNING",
36
- }
26
+ export declare const BackupJobState: {
27
+ readonly ABORTED: "ABORTED";
28
+ readonly ABORTING: "ABORTING";
29
+ readonly COMPLETED: "COMPLETED";
30
+ readonly CREATED: "CREATED";
31
+ readonly EXPIRED: "EXPIRED";
32
+ readonly FAILED: "FAILED";
33
+ readonly PARTIAL: "PARTIAL";
34
+ readonly PENDING: "PENDING";
35
+ readonly RUNNING: "RUNNING";
36
+ };
37
+ export type BackupJobState =
38
+ (typeof BackupJobState)[keyof typeof BackupJobState];
37
39
  export interface BackupJob {
38
40
  AccountId?: string;
39
41
  BackupJobId?: string;
@@ -125,9 +127,10 @@ export interface Conditions {
125
127
  StringLike?: ConditionParameter[];
126
128
  StringNotLike?: ConditionParameter[];
127
129
  }
128
- export declare enum ConditionType {
129
- STRINGEQUALS = "STRINGEQUALS",
130
- }
130
+ export declare const ConditionType: {
131
+ readonly STRINGEQUALS: "STRINGEQUALS";
132
+ };
133
+ export type ConditionType = (typeof ConditionType)[keyof typeof ConditionType];
131
134
  export interface Condition {
132
135
  ConditionType: ConditionType | string | undefined;
133
136
  ConditionKey: string | undefined;
@@ -149,25 +152,27 @@ export interface BackupSelectionsListMember {
149
152
  CreatorRequestId?: string;
150
153
  IamRoleArn?: string;
151
154
  }
152
- export declare enum BackupVaultEvent {
153
- BACKUP_JOB_COMPLETED = "BACKUP_JOB_COMPLETED",
154
- BACKUP_JOB_EXPIRED = "BACKUP_JOB_EXPIRED",
155
- BACKUP_JOB_FAILED = "BACKUP_JOB_FAILED",
156
- BACKUP_JOB_STARTED = "BACKUP_JOB_STARTED",
157
- BACKUP_JOB_SUCCESSFUL = "BACKUP_JOB_SUCCESSFUL",
158
- BACKUP_PLAN_CREATED = "BACKUP_PLAN_CREATED",
159
- BACKUP_PLAN_MODIFIED = "BACKUP_PLAN_MODIFIED",
160
- COPY_JOB_FAILED = "COPY_JOB_FAILED",
161
- COPY_JOB_STARTED = "COPY_JOB_STARTED",
162
- COPY_JOB_SUCCESSFUL = "COPY_JOB_SUCCESSFUL",
163
- RECOVERY_POINT_MODIFIED = "RECOVERY_POINT_MODIFIED",
164
- RESTORE_JOB_COMPLETED = "RESTORE_JOB_COMPLETED",
165
- RESTORE_JOB_FAILED = "RESTORE_JOB_FAILED",
166
- RESTORE_JOB_STARTED = "RESTORE_JOB_STARTED",
167
- RESTORE_JOB_SUCCESSFUL = "RESTORE_JOB_SUCCESSFUL",
168
- S3_BACKUP_OBJECT_FAILED = "S3_BACKUP_OBJECT_FAILED",
169
- S3_RESTORE_OBJECT_FAILED = "S3_RESTORE_OBJECT_FAILED",
170
- }
155
+ export declare const BackupVaultEvent: {
156
+ readonly BACKUP_JOB_COMPLETED: "BACKUP_JOB_COMPLETED";
157
+ readonly BACKUP_JOB_EXPIRED: "BACKUP_JOB_EXPIRED";
158
+ readonly BACKUP_JOB_FAILED: "BACKUP_JOB_FAILED";
159
+ readonly BACKUP_JOB_STARTED: "BACKUP_JOB_STARTED";
160
+ readonly BACKUP_JOB_SUCCESSFUL: "BACKUP_JOB_SUCCESSFUL";
161
+ readonly BACKUP_PLAN_CREATED: "BACKUP_PLAN_CREATED";
162
+ readonly BACKUP_PLAN_MODIFIED: "BACKUP_PLAN_MODIFIED";
163
+ readonly COPY_JOB_FAILED: "COPY_JOB_FAILED";
164
+ readonly COPY_JOB_STARTED: "COPY_JOB_STARTED";
165
+ readonly COPY_JOB_SUCCESSFUL: "COPY_JOB_SUCCESSFUL";
166
+ readonly RECOVERY_POINT_MODIFIED: "RECOVERY_POINT_MODIFIED";
167
+ readonly RESTORE_JOB_COMPLETED: "RESTORE_JOB_COMPLETED";
168
+ readonly RESTORE_JOB_FAILED: "RESTORE_JOB_FAILED";
169
+ readonly RESTORE_JOB_STARTED: "RESTORE_JOB_STARTED";
170
+ readonly RESTORE_JOB_SUCCESSFUL: "RESTORE_JOB_SUCCESSFUL";
171
+ readonly S3_BACKUP_OBJECT_FAILED: "S3_BACKUP_OBJECT_FAILED";
172
+ readonly S3_RESTORE_OBJECT_FAILED: "S3_RESTORE_OBJECT_FAILED";
173
+ };
174
+ export type BackupVaultEvent =
175
+ (typeof BackupVaultEvent)[keyof typeof BackupVaultEvent];
171
176
  export interface BackupVaultListMember {
172
177
  BackupVaultName?: string;
173
178
  BackupVaultArn?: string;
@@ -263,13 +268,14 @@ export interface ControlScope {
263
268
  ComplianceResourceTypes?: string[];
264
269
  Tags?: Record<string, string>;
265
270
  }
266
- export declare enum CopyJobState {
267
- COMPLETED = "COMPLETED",
268
- CREATED = "CREATED",
269
- FAILED = "FAILED",
270
- PARTIAL = "PARTIAL",
271
- RUNNING = "RUNNING",
272
- }
271
+ export declare const CopyJobState: {
272
+ readonly COMPLETED: "COMPLETED";
273
+ readonly CREATED: "CREATED";
274
+ readonly FAILED: "FAILED";
275
+ readonly PARTIAL: "PARTIAL";
276
+ readonly RUNNING: "RUNNING";
277
+ };
278
+ export type CopyJobState = (typeof CopyJobState)[keyof typeof CopyJobState];
273
279
  export interface CopyJob {
274
280
  AccountId?: string;
275
281
  CopyJobId?: string;
@@ -369,12 +375,14 @@ export interface CreateLegalHoldInput {
369
375
  RecoveryPointSelection?: RecoveryPointSelection;
370
376
  Tags?: Record<string, string>;
371
377
  }
372
- export declare enum LegalHoldStatus {
373
- ACTIVE = "ACTIVE",
374
- CANCELED = "CANCELED",
375
- CANCELING = "CANCELING",
376
- CREATING = "CREATING",
377
- }
378
+ export declare const LegalHoldStatus: {
379
+ readonly ACTIVE: "ACTIVE";
380
+ readonly CANCELED: "CANCELED";
381
+ readonly CANCELING: "CANCELING";
382
+ readonly CREATING: "CREATING";
383
+ };
384
+ export type LegalHoldStatus =
385
+ (typeof LegalHoldStatus)[keyof typeof LegalHoldStatus];
378
386
  export interface CreateLegalHoldOutput {
379
387
  Title?: string;
380
388
  Status?: LegalHoldStatus | string;
@@ -549,17 +557,20 @@ export interface DescribeRecoveryPointInput {
549
557
  BackupVaultName: string | undefined;
550
558
  RecoveryPointArn: string | undefined;
551
559
  }
552
- export declare enum RecoveryPointStatus {
553
- COMPLETED = "COMPLETED",
554
- DELETING = "DELETING",
555
- EXPIRED = "EXPIRED",
556
- PARTIAL = "PARTIAL",
557
- }
558
- export declare enum StorageClass {
559
- COLD = "COLD",
560
- DELETED = "DELETED",
561
- WARM = "WARM",
562
- }
560
+ export declare const RecoveryPointStatus: {
561
+ readonly COMPLETED: "COMPLETED";
562
+ readonly DELETING: "DELETING";
563
+ readonly EXPIRED: "EXPIRED";
564
+ readonly PARTIAL: "PARTIAL";
565
+ };
566
+ export type RecoveryPointStatus =
567
+ (typeof RecoveryPointStatus)[keyof typeof RecoveryPointStatus];
568
+ export declare const StorageClass: {
569
+ readonly COLD: "COLD";
570
+ readonly DELETED: "DELETED";
571
+ readonly WARM: "WARM";
572
+ };
573
+ export type StorageClass = (typeof StorageClass)[keyof typeof StorageClass];
563
574
  export interface DescribeRecoveryPointOutput {
564
575
  RecoveryPointArn?: string;
565
576
  BackupVaultName?: string;
@@ -630,13 +641,15 @@ export interface DescribeReportPlanOutput {
630
641
  export interface DescribeRestoreJobInput {
631
642
  RestoreJobId: string | undefined;
632
643
  }
633
- export declare enum RestoreJobStatus {
634
- ABORTED = "ABORTED",
635
- COMPLETED = "COMPLETED",
636
- FAILED = "FAILED",
637
- PENDING = "PENDING",
638
- RUNNING = "RUNNING",
639
- }
644
+ export declare const RestoreJobStatus: {
645
+ readonly ABORTED: "ABORTED";
646
+ readonly COMPLETED: "COMPLETED";
647
+ readonly FAILED: "FAILED";
648
+ readonly PENDING: "PENDING";
649
+ readonly RUNNING: "RUNNING";
650
+ };
651
+ export type RestoreJobStatus =
652
+ (typeof RestoreJobStatus)[keyof typeof RestoreJobStatus];
640
653
  export interface DescribeRestoreJobOutput {
641
654
  AccountId?: string;
642
655
  RestoreJobId?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-backup",
3
3
  "description": "AWS SDK for JavaScript Backup Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",