@aws-sdk/client-backup 3.428.0 → 3.429.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.
@@ -173,7 +173,7 @@ export interface BackupJob {
173
173
  * @public
174
174
  * <p>The current state of a backup job.</p>
175
175
  */
176
- State?: BackupJobState | string;
176
+ State?: BackupJobState;
177
177
  /**
178
178
  * @public
179
179
  * <p>A detailed message explaining the status of the job to back up a resource.</p>
@@ -717,7 +717,7 @@ export interface Condition {
717
717
  * <code>BackupSelection</code>
718
718
  * </a>.</p>
719
719
  */
720
- ConditionType: ConditionType | string | undefined;
720
+ ConditionType: ConditionType | undefined;
721
721
  /**
722
722
  * @public
723
723
  * <p>The key in a key-value pair. For example, in the tag <code>Department:
@@ -1322,7 +1322,7 @@ export interface CopyJob {
1322
1322
  * @public
1323
1323
  * <p>The current state of a copy job.</p>
1324
1324
  */
1325
- State?: CopyJobState | string;
1325
+ State?: CopyJobState;
1326
1326
  /**
1327
1327
  * @public
1328
1328
  * <p>A detailed message explaining the status of the job to copy a resource.</p>
@@ -1382,7 +1382,7 @@ export interface CopyJob {
1382
1382
  * <p>This returns the statistics of the included
1383
1383
  * child (nested) copy jobs.</p>
1384
1384
  */
1385
- ChildJobsInState?: Record<string, number>;
1385
+ ChildJobsInState?: Record<CopyJobState, number>;
1386
1386
  /**
1387
1387
  * @public
1388
1388
  * <p>This is the non-unique name of the resource that
@@ -1783,7 +1783,7 @@ export interface CreateLegalHoldOutput {
1783
1783
  * Statuses can be <code>ACTIVE</code>, <code>PENDING</code>, <code>CANCELED</code>,
1784
1784
  * <code>CANCELING</code>, or <code>FAILED</code>.</p>
1785
1785
  */
1786
- Status?: LegalHoldStatus | string;
1786
+ Status?: LegalHoldStatus;
1787
1787
  /**
1788
1788
  * @public
1789
1789
  * <p>This is the returned string description of the legal hold.</p>
@@ -1898,7 +1898,7 @@ export interface CreateLogicallyAirGappedBackupVaultOutput {
1898
1898
  * @public
1899
1899
  * <p>This is the current state of the vault.</p>
1900
1900
  */
1901
- VaultState?: VaultState | string;
1901
+ VaultState?: VaultState;
1902
1902
  }
1903
1903
  /**
1904
1904
  * @public
@@ -2303,7 +2303,7 @@ export interface DescribeBackupJobOutput {
2303
2303
  * @public
2304
2304
  * <p>The current state of a backup job.</p>
2305
2305
  */
2306
- State?: BackupJobState | string;
2306
+ State?: BackupJobState;
2307
2307
  /**
2308
2308
  * @public
2309
2309
  * <p>A detailed message explaining the status of the job to back up a resource.</p>
@@ -2394,7 +2394,7 @@ export interface DescribeBackupJobOutput {
2394
2394
  * @public
2395
2395
  * <p>This returns the statistics of the included child (nested) backup jobs.</p>
2396
2396
  */
2397
- ChildJobsInState?: Record<string, number>;
2397
+ ChildJobsInState?: Record<BackupJobState, number>;
2398
2398
  /**
2399
2399
  * @public
2400
2400
  * <p>This is the non-unique name of the resource that
@@ -2453,7 +2453,7 @@ export interface DescribeBackupVaultOutput {
2453
2453
  * @public
2454
2454
  * <p>This is the type of vault described.</p>
2455
2455
  */
2456
- VaultType?: VaultType | string;
2456
+ VaultType?: VaultType;
2457
2457
  /**
2458
2458
  * @public
2459
2459
  * <p>The server-side encryption key that is used to protect your backups; for example,
@@ -2835,7 +2835,7 @@ export interface DescribeRecoveryPointOutput {
2835
2835
  * misconfiguration, or backup failure. To ensure that future continuous backups succeed,
2836
2836
  * refer to the recovery point status and check SAP HANA for details.</p>
2837
2837
  */
2838
- Status?: RecoveryPointStatus | string;
2838
+ Status?: RecoveryPointStatus;
2839
2839
  /**
2840
2840
  * @public
2841
2841
  * <p>A status message explaining the status of the recovery point.</p>
@@ -2900,7 +2900,7 @@ export interface DescribeRecoveryPointOutput {
2900
2900
  * <p>Specifies the storage class of the recovery point. Valid values are <code>WARM</code> or
2901
2901
  * <code>COLD</code>.</p>
2902
2902
  */
2903
- StorageClass?: StorageClass | string;
2903
+ StorageClass?: StorageClass;
2904
2904
  /**
2905
2905
  * @public
2906
2906
  * <p>The date and time that a recovery point was last restored, in Unix format and
@@ -3235,7 +3235,7 @@ export interface DescribeRestoreJobOutput {
3235
3235
  * <p>Status code specifying the state of the job that is initiated by Backup to
3236
3236
  * restore a recovery point.</p>
3237
3237
  */
3238
- Status?: RestoreJobStatus | string;
3238
+ Status?: RestoreJobStatus;
3239
3239
  /**
3240
3240
  * @public
3241
3241
  * <p>A message showing the status of a job to restore a recovery point.</p>
@@ -3589,7 +3589,7 @@ export interface GetBackupVaultNotificationsOutput {
3589
3589
  * <p>An array of events that indicate the status of jobs to back up resources to the backup
3590
3590
  * vault.</p>
3591
3591
  */
3592
- BackupVaultEvents?: (BackupVaultEvent | string)[];
3592
+ BackupVaultEvents?: BackupVaultEvent[];
3593
3593
  }
3594
3594
  /**
3595
3595
  * @public
@@ -3617,7 +3617,7 @@ export interface GetLegalHoldOutput {
3617
3617
  * <code>ACTIVE</code>, <code>CREATING</code>, <code>CANCELED</code>, and
3618
3618
  * <code>CANCELING</code>.</p>
3619
3619
  */
3620
- Status?: LegalHoldStatus | string;
3620
+ Status?: LegalHoldStatus;
3621
3621
  /**
3622
3622
  * @public
3623
3623
  * <p>This is the returned string description of the legal hold.</p>
@@ -3790,7 +3790,7 @@ export interface ListBackupJobsInput {
3790
3790
  * @public
3791
3791
  * <p>Returns only backup jobs that are in the specified state.</p>
3792
3792
  */
3793
- ByState?: BackupJobState | string;
3793
+ ByState?: BackupJobState;
3794
3794
  /**
3795
3795
  * @public
3796
3796
  * <p>Returns only backup jobs that will be stored in the specified backup vault. Backup
@@ -4079,7 +4079,7 @@ export interface ListBackupVaultsInput {
4079
4079
  * @public
4080
4080
  * <p>This parameter will sort the list of vaults by vault type.</p>
4081
4081
  */
4082
- ByVaultType?: VaultType | string;
4082
+ ByVaultType?: VaultType;
4083
4083
  /**
4084
4084
  * @public
4085
4085
  * <p>This parameter will sort the list of vaults by shared vaults.</p>
@@ -4145,7 +4145,7 @@ export interface ListCopyJobsInput {
4145
4145
  * @public
4146
4146
  * <p>Returns only copy jobs that are in the specified state.</p>
4147
4147
  */
4148
- ByState?: CopyJobState | string;
4148
+ ByState?: CopyJobState;
4149
4149
  /**
4150
4150
  * @public
4151
4151
  * <p>Returns only copy jobs that were created before the specified date.</p>
@@ -4383,7 +4383,7 @@ export interface LegalHold {
4383
4383
  * <code>ACTIVE</code>, <code>CREATING</code>, <code>CANCELED</code>, and
4384
4384
  * <code>CANCELING</code>.</p>
4385
4385
  */
4386
- Status?: LegalHoldStatus | string;
4386
+ Status?: LegalHoldStatus;
4387
4387
  /**
4388
4388
  * @public
4389
4389
  * <p>This is the description of a legal hold.</p>
@@ -4674,7 +4674,7 @@ export interface RecoveryPointByBackupVault {
4674
4674
  * @public
4675
4675
  * <p>A status code specifying the state of the recovery point.</p>
4676
4676
  */
4677
- Status?: RecoveryPointStatus | string;
4677
+ Status?: RecoveryPointStatus;
4678
4678
  /**
4679
4679
  * @public
4680
4680
  * <p>A message explaining the reason of the recovery point deletion failure.</p>
@@ -4911,7 +4911,7 @@ export interface RecoveryPointByResource {
4911
4911
  * @public
4912
4912
  * <p>A status code specifying the state of the recovery point.</p>
4913
4913
  */
4914
- Status?: RecoveryPointStatus | string;
4914
+ Status?: RecoveryPointStatus;
4915
4915
  /**
4916
4916
  * @public
4917
4917
  * <p>A message explaining the reason of the recovery point deletion failure.</p>
@@ -5111,7 +5111,7 @@ export interface ListRestoreJobsInput {
5111
5111
  * @public
5112
5112
  * <p>Returns only restore jobs associated with the specified job status.</p>
5113
5113
  */
5114
- ByStatus?: RestoreJobStatus | string;
5114
+ ByStatus?: RestoreJobStatus;
5115
5115
  /**
5116
5116
  * @public
5117
5117
  * <p>Returns only copy jobs completed before a date expressed in Unix format and Coordinated
@@ -5167,7 +5167,7 @@ export interface RestoreJobsListMember {
5167
5167
  * <p>A status code specifying the state of the job initiated by Backup to restore
5168
5168
  * a recovery point.</p>
5169
5169
  */
5170
- Status?: RestoreJobStatus | string;
5170
+ Status?: RestoreJobStatus;
5171
5171
  /**
5172
5172
  * @public
5173
5173
  * <p>A detailed message explaining the status of the job to restore a recovery point.</p>
@@ -5411,7 +5411,7 @@ export interface PutBackupVaultNotificationsInput {
5411
5411
  * Refer to the list above for current supported events.</p>
5412
5412
  * </note>
5413
5413
  */
5414
- BackupVaultEvents: (BackupVaultEvent | string)[] | undefined;
5414
+ BackupVaultEvents: BackupVaultEvent[] | undefined;
5415
5415
  }
5416
5416
  /**
5417
5417
  * @public
@@ -45,7 +45,7 @@ export interface BackupJob {
45
45
  ResourceArn?: string;
46
46
  CreationDate?: Date;
47
47
  CompletionDate?: Date;
48
- State?: BackupJobState | string;
48
+ State?: BackupJobState;
49
49
  StatusMessage?: string;
50
50
  PercentDone?: string;
51
51
  BackupSizeInBytes?: number;
@@ -134,7 +134,7 @@ export declare const ConditionType: {
134
134
  };
135
135
  export type ConditionType = (typeof ConditionType)[keyof typeof ConditionType];
136
136
  export interface Condition {
137
- ConditionType: ConditionType | string | undefined;
137
+ ConditionType: ConditionType | undefined;
138
138
  ConditionKey: string | undefined;
139
139
  ConditionValue: string | undefined;
140
140
  }
@@ -288,7 +288,7 @@ export interface CopyJob {
288
288
  ResourceArn?: string;
289
289
  CreationDate?: Date;
290
290
  CompletionDate?: Date;
291
- State?: CopyJobState | string;
291
+ State?: CopyJobState;
292
292
  StatusMessage?: string;
293
293
  BackupSizeInBytes?: number;
294
294
  IamRoleArn?: string;
@@ -298,7 +298,7 @@ export interface CopyJob {
298
298
  IsParent?: boolean;
299
299
  CompositeMemberIdentifier?: string;
300
300
  NumberOfChildJobs?: number;
301
- ChildJobsInState?: Record<string, number>;
301
+ ChildJobsInState?: Record<CopyJobState, number>;
302
302
  ResourceName?: string;
303
303
  }
304
304
  export interface CreateBackupPlanInput {
@@ -387,7 +387,7 @@ export type LegalHoldStatus =
387
387
  (typeof LegalHoldStatus)[keyof typeof LegalHoldStatus];
388
388
  export interface CreateLegalHoldOutput {
389
389
  Title?: string;
390
- Status?: LegalHoldStatus | string;
390
+ Status?: LegalHoldStatus;
391
391
  Description?: string;
392
392
  LegalHoldId?: string;
393
393
  LegalHoldArn?: string;
@@ -411,7 +411,7 @@ export interface CreateLogicallyAirGappedBackupVaultOutput {
411
411
  BackupVaultName?: string;
412
412
  BackupVaultArn?: string;
413
413
  CreationDate?: Date;
414
- VaultState?: VaultState | string;
414
+ VaultState?: VaultState;
415
415
  }
416
416
  export declare class InvalidRequestException extends __BaseException {
417
417
  readonly name: "InvalidRequestException";
@@ -508,7 +508,7 @@ export interface DescribeBackupJobOutput {
508
508
  ResourceArn?: string;
509
509
  CreationDate?: Date;
510
510
  CompletionDate?: Date;
511
- State?: BackupJobState | string;
511
+ State?: BackupJobState;
512
512
  StatusMessage?: string;
513
513
  PercentDone?: string;
514
514
  BackupSizeInBytes?: number;
@@ -523,7 +523,7 @@ export interface DescribeBackupJobOutput {
523
523
  ParentJobId?: string;
524
524
  IsParent?: boolean;
525
525
  NumberOfChildJobs?: number;
526
- ChildJobsInState?: Record<string, number>;
526
+ ChildJobsInState?: Record<BackupJobState, number>;
527
527
  ResourceName?: string;
528
528
  }
529
529
  export interface DescribeBackupVaultInput {
@@ -538,7 +538,7 @@ export type VaultType = (typeof VaultType)[keyof typeof VaultType];
538
538
  export interface DescribeBackupVaultOutput {
539
539
  BackupVaultName?: string;
540
540
  BackupVaultArn?: string;
541
- VaultType?: VaultType | string;
541
+ VaultType?: VaultType;
542
542
  EncryptionKeyArn?: string;
543
543
  CreationDate?: Date;
544
544
  CreatorRequestId?: string;
@@ -609,7 +609,7 @@ export interface DescribeRecoveryPointOutput {
609
609
  ResourceType?: string;
610
610
  CreatedBy?: RecoveryPointCreator;
611
611
  IamRoleArn?: string;
612
- Status?: RecoveryPointStatus | string;
612
+ Status?: RecoveryPointStatus;
613
613
  StatusMessage?: string;
614
614
  CreationDate?: Date;
615
615
  CompletionDate?: Date;
@@ -618,7 +618,7 @@ export interface DescribeRecoveryPointOutput {
618
618
  Lifecycle?: Lifecycle;
619
619
  EncryptionKeyArn?: string;
620
620
  IsEncrypted?: boolean;
621
- StorageClass?: StorageClass | string;
621
+ StorageClass?: StorageClass;
622
622
  LastRestoreTime?: Date;
623
623
  ParentRecoveryPointArn?: string;
624
624
  CompositeMemberIdentifier?: string;
@@ -685,7 +685,7 @@ export interface DescribeRestoreJobOutput {
685
685
  RecoveryPointArn?: string;
686
686
  CreationDate?: Date;
687
687
  CompletionDate?: Date;
688
- Status?: RestoreJobStatus | string;
688
+ Status?: RestoreJobStatus;
689
689
  StatusMessage?: string;
690
690
  PercentDone?: string;
691
691
  BackupSizeInBytes?: number;
@@ -761,14 +761,14 @@ export interface GetBackupVaultNotificationsOutput {
761
761
  BackupVaultName?: string;
762
762
  BackupVaultArn?: string;
763
763
  SNSTopicArn?: string;
764
- BackupVaultEvents?: (BackupVaultEvent | string)[];
764
+ BackupVaultEvents?: BackupVaultEvent[];
765
765
  }
766
766
  export interface GetLegalHoldInput {
767
767
  LegalHoldId: string | undefined;
768
768
  }
769
769
  export interface GetLegalHoldOutput {
770
770
  Title?: string;
771
- Status?: LegalHoldStatus | string;
771
+ Status?: LegalHoldStatus;
772
772
  Description?: string;
773
773
  CancelDescription?: string;
774
774
  LegalHoldId?: string;
@@ -795,7 +795,7 @@ export interface ListBackupJobsInput {
795
795
  NextToken?: string;
796
796
  MaxResults?: number;
797
797
  ByResourceArn?: string;
798
- ByState?: BackupJobState | string;
798
+ ByState?: BackupJobState;
799
799
  ByBackupVaultName?: string;
800
800
  ByCreatedBefore?: Date;
801
801
  ByCreatedAfter?: Date;
@@ -845,7 +845,7 @@ export interface ListBackupSelectionsOutput {
845
845
  BackupSelectionsList?: BackupSelectionsListMember[];
846
846
  }
847
847
  export interface ListBackupVaultsInput {
848
- ByVaultType?: VaultType | string;
848
+ ByVaultType?: VaultType;
849
849
  ByShared?: boolean;
850
850
  NextToken?: string;
851
851
  MaxResults?: number;
@@ -858,7 +858,7 @@ export interface ListCopyJobsInput {
858
858
  NextToken?: string;
859
859
  MaxResults?: number;
860
860
  ByResourceArn?: string;
861
- ByState?: CopyJobState | string;
861
+ ByState?: CopyJobState;
862
862
  ByCreatedBefore?: Date;
863
863
  ByCreatedAfter?: Date;
864
864
  ByResourceType?: string;
@@ -894,7 +894,7 @@ export interface ListLegalHoldsInput {
894
894
  }
895
895
  export interface LegalHold {
896
896
  Title?: string;
897
- Status?: LegalHoldStatus | string;
897
+ Status?: LegalHoldStatus;
898
898
  Description?: string;
899
899
  LegalHoldId?: string;
900
900
  LegalHoldArn?: string;
@@ -950,7 +950,7 @@ export interface RecoveryPointByBackupVault {
950
950
  ResourceType?: string;
951
951
  CreatedBy?: RecoveryPointCreator;
952
952
  IamRoleArn?: string;
953
- Status?: RecoveryPointStatus | string;
953
+ Status?: RecoveryPointStatus;
954
954
  StatusMessage?: string;
955
955
  CreationDate?: Date;
956
956
  CompletionDate?: Date;
@@ -992,7 +992,7 @@ export interface ListRecoveryPointsByResourceInput {
992
992
  export interface RecoveryPointByResource {
993
993
  RecoveryPointArn?: string;
994
994
  CreationDate?: Date;
995
- Status?: RecoveryPointStatus | string;
995
+ Status?: RecoveryPointStatus;
996
996
  StatusMessage?: string;
997
997
  EncryptionKeyArn?: string;
998
998
  BackupSizeBytes?: number;
@@ -1031,7 +1031,7 @@ export interface ListRestoreJobsInput {
1031
1031
  ByAccountId?: string;
1032
1032
  ByCreatedBefore?: Date;
1033
1033
  ByCreatedAfter?: Date;
1034
- ByStatus?: RestoreJobStatus | string;
1034
+ ByStatus?: RestoreJobStatus;
1035
1035
  ByCompleteBefore?: Date;
1036
1036
  ByCompleteAfter?: Date;
1037
1037
  }
@@ -1041,7 +1041,7 @@ export interface RestoreJobsListMember {
1041
1041
  RecoveryPointArn?: string;
1042
1042
  CreationDate?: Date;
1043
1043
  CompletionDate?: Date;
1044
- Status?: RestoreJobStatus | string;
1044
+ Status?: RestoreJobStatus;
1045
1045
  StatusMessage?: string;
1046
1046
  PercentDone?: string;
1047
1047
  BackupSizeInBytes?: number;
@@ -1076,7 +1076,7 @@ export interface PutBackupVaultLockConfigurationInput {
1076
1076
  export interface PutBackupVaultNotificationsInput {
1077
1077
  BackupVaultName: string | undefined;
1078
1078
  SNSTopicArn: string | undefined;
1079
- BackupVaultEvents: (BackupVaultEvent | string)[] | undefined;
1079
+ BackupVaultEvents: BackupVaultEvent[] | undefined;
1080
1080
  }
1081
1081
  export interface StartBackupJobInput {
1082
1082
  BackupVaultName: string | undefined;
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.428.0",
4
+ "version": "3.429.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,9 +21,9 @@
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.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
@@ -38,7 +38,7 @@
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
42
  "@smithy/middleware-retry": "^2.0.16",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",