@aws-sdk/client-backup 3.635.0 → 3.643.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.
Files changed (25) hide show
  1. package/dist-cjs/index.js +15 -12
  2. package/dist-es/models/models_0.js +9 -9
  3. package/dist-es/protocols/Aws_restJson1.js +3 -0
  4. package/dist-types/commands/CancelLegalHoldCommand.d.ts +2 -2
  5. package/dist-types/commands/CreateLegalHoldCommand.d.ts +4 -4
  6. package/dist-types/commands/CreateLogicallyAirGappedBackupVaultCommand.d.ts +1 -1
  7. package/dist-types/commands/CreateRestoreTestingPlanCommand.d.ts +4 -5
  8. package/dist-types/commands/DescribeBackupVaultCommand.d.ts +1 -0
  9. package/dist-types/commands/ListBackupPlanTemplatesCommand.d.ts +1 -2
  10. package/dist-types/commands/ListBackupPlansCommand.d.ts +1 -3
  11. package/dist-types/commands/ListBackupVaultsCommand.d.ts +2 -0
  12. package/dist-types/commands/ListRecoveryPointsByResourceCommand.d.ts +1 -1
  13. package/dist-types/commands/ListTagsCommand.d.ts +1 -5
  14. package/dist-types/commands/PutBackupVaultLockConfigurationCommand.d.ts +2 -1
  15. package/dist-types/commands/StopBackupJobCommand.d.ts +2 -2
  16. package/dist-types/commands/TagResourceCommand.d.ts +3 -0
  17. package/dist-types/commands/UntagResourceCommand.d.ts +3 -0
  18. package/dist-types/commands/UpdateBackupPlanCommand.d.ts +1 -3
  19. package/dist-types/commands/UpdateFrameworkCommand.d.ts +1 -2
  20. package/dist-types/commands/UpdateRecoveryPointLifecycleCommand.d.ts +7 -4
  21. package/dist-types/commands/UpdateReportPlanCommand.d.ts +1 -2
  22. package/dist-types/commands/UpdateRestoreTestingSelectionCommand.d.ts +3 -7
  23. package/dist-types/models/models_0.d.ts +562 -547
  24. package/dist-types/ts3.4/models/models_0.d.ts +14 -11
  25. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -438,6 +438,15 @@ var BackupVaultEvent = {
438
438
  S3_BACKUP_OBJECT_FAILED: "S3_BACKUP_OBJECT_FAILED",
439
439
  S3_RESTORE_OBJECT_FAILED: "S3_RESTORE_OBJECT_FAILED"
440
440
  };
441
+ var VaultState = {
442
+ AVAILABLE: "AVAILABLE",
443
+ CREATING: "CREATING",
444
+ FAILED: "FAILED"
445
+ };
446
+ var VaultType = {
447
+ BACKUP_VAULT: "BACKUP_VAULT",
448
+ LOGICALLY_AIR_GAPPED_BACKUP_VAULT: "LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
449
+ };
441
450
  var _InvalidParameterValueException = class _InvalidParameterValueException extends BackupServiceException {
442
451
  /**
443
452
  * @internal
@@ -611,11 +620,6 @@ var LegalHoldStatus = {
611
620
  CANCELING: "CANCELING",
612
621
  CREATING: "CREATING"
613
622
  };
614
- var VaultState = {
615
- AVAILABLE: "AVAILABLE",
616
- CREATING: "CREATING",
617
- FAILED: "FAILED"
618
- };
619
623
  var _InvalidRequestException = class _InvalidRequestException extends BackupServiceException {
620
624
  /**
621
625
  * @internal
@@ -666,10 +670,6 @@ var _DependencyFailureException = class _DependencyFailureException extends Back
666
670
  };
667
671
  __name(_DependencyFailureException, "DependencyFailureException");
668
672
  var DependencyFailureException = _DependencyFailureException;
669
- var VaultType = {
670
- BACKUP_VAULT: "BACKUP_VAULT",
671
- LOGICALLY_AIR_GAPPED_BACKUP_VAULT: "LOGICALLY_AIR_GAPPED_BACKUP_VAULT"
672
- };
673
673
  var RecoveryPointStatus = {
674
674
  COMPLETED: "COMPLETED",
675
675
  DELETING: "DELETING",
@@ -2393,6 +2393,7 @@ var de_DescribeBackupVaultCommand = /* @__PURE__ */ __name(async (output, contex
2393
2393
  MaxRetentionDays: import_smithy_client.expectLong,
2394
2394
  MinRetentionDays: import_smithy_client.expectLong,
2395
2395
  NumberOfRecoveryPoints: import_smithy_client.expectLong,
2396
+ VaultState: import_smithy_client.expectString,
2396
2397
  VaultType: import_smithy_client.expectString
2397
2398
  });
2398
2399
  Object.assign(contents, doc);
@@ -3777,7 +3778,9 @@ var de_BackupVaultListMember = /* @__PURE__ */ __name((output, context) => {
3777
3778
  Locked: import_smithy_client.expectBoolean,
3778
3779
  MaxRetentionDays: import_smithy_client.expectLong,
3779
3780
  MinRetentionDays: import_smithy_client.expectLong,
3780
- NumberOfRecoveryPoints: import_smithy_client.expectLong
3781
+ NumberOfRecoveryPoints: import_smithy_client.expectLong,
3782
+ VaultState: import_smithy_client.expectString,
3783
+ VaultType: import_smithy_client.expectString
3781
3784
  });
3782
3785
  }, "de_BackupVaultListMember");
3783
3786
  var de_CalculatedLifecycle = /* @__PURE__ */ __name((output, context) => {
@@ -5951,6 +5954,8 @@ var paginateListTags = (0, import_core.createPaginator)(BackupClient, ListTagsCo
5951
5954
  BackupJobStatus,
5952
5955
  ConditionType,
5953
5956
  BackupVaultEvent,
5957
+ VaultState,
5958
+ VaultType,
5954
5959
  InvalidParameterValueException,
5955
5960
  InvalidResourceStateException,
5956
5961
  MissingParameterValueException,
@@ -5961,12 +5966,10 @@ var paginateListTags = (0, import_core.createPaginator)(BackupClient, ListTagsCo
5961
5966
  CopyJobStatus,
5962
5967
  LimitExceededException,
5963
5968
  LegalHoldStatus,
5964
- VaultState,
5965
5969
  InvalidRequestException,
5966
5970
  RestoreTestingRecoveryPointSelectionAlgorithm,
5967
5971
  RestoreTestingRecoveryPointType,
5968
5972
  DependencyFailureException,
5969
- VaultType,
5970
5973
  RecoveryPointStatus,
5971
5974
  StorageClass,
5972
5975
  RestoreDeletionStatus,
@@ -69,6 +69,15 @@ export const BackupVaultEvent = {
69
69
  S3_BACKUP_OBJECT_FAILED: "S3_BACKUP_OBJECT_FAILED",
70
70
  S3_RESTORE_OBJECT_FAILED: "S3_RESTORE_OBJECT_FAILED",
71
71
  };
72
+ export const VaultState = {
73
+ AVAILABLE: "AVAILABLE",
74
+ CREATING: "CREATING",
75
+ FAILED: "FAILED",
76
+ };
77
+ export const VaultType = {
78
+ BACKUP_VAULT: "BACKUP_VAULT",
79
+ LOGICALLY_AIR_GAPPED_BACKUP_VAULT: "LOGICALLY_AIR_GAPPED_BACKUP_VAULT",
80
+ };
72
81
  export class InvalidParameterValueException extends __BaseException {
73
82
  constructor(opts) {
74
83
  super({
@@ -207,11 +216,6 @@ export const LegalHoldStatus = {
207
216
  CANCELING: "CANCELING",
208
217
  CREATING: "CREATING",
209
218
  };
210
- export const VaultState = {
211
- AVAILABLE: "AVAILABLE",
212
- CREATING: "CREATING",
213
- FAILED: "FAILED",
214
- };
215
219
  export class InvalidRequestException extends __BaseException {
216
220
  constructor(opts) {
217
221
  super({
@@ -252,10 +256,6 @@ export class DependencyFailureException extends __BaseException {
252
256
  this.Context = opts.Context;
253
257
  }
254
258
  }
255
- export const VaultType = {
256
- BACKUP_VAULT: "BACKUP_VAULT",
257
- LOGICALLY_AIR_GAPPED_BACKUP_VAULT: "LOGICALLY_AIR_GAPPED_BACKUP_VAULT",
258
- };
259
259
  export const RecoveryPointStatus = {
260
260
  COMPLETED: "COMPLETED",
261
261
  DELETING: "DELETING",
@@ -1519,6 +1519,7 @@ export const de_DescribeBackupVaultCommand = async (output, context) => {
1519
1519
  MaxRetentionDays: __expectLong,
1520
1520
  MinRetentionDays: __expectLong,
1521
1521
  NumberOfRecoveryPoints: __expectLong,
1522
+ VaultState: __expectString,
1522
1523
  VaultType: __expectString,
1523
1524
  });
1524
1525
  Object.assign(contents, doc);
@@ -2916,6 +2917,8 @@ const de_BackupVaultListMember = (output, context) => {
2916
2917
  MaxRetentionDays: __expectLong,
2917
2918
  MinRetentionDays: __expectLong,
2918
2919
  NumberOfRecoveryPoints: __expectLong,
2920
+ VaultState: __expectString,
2921
+ VaultType: __expectString,
2919
2922
  });
2920
2923
  };
2921
2924
  const de_CalculatedLifecycle = (output, context) => {
@@ -27,8 +27,8 @@ declare const CancelLegalHoldCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>This action removes the specified legal hold on a recovery point.
31
- * This action can only be performed by a user with sufficient permissions.</p>
30
+ * <p>Removes the specified legal hold on a recovery point. This action can only be performed
31
+ * by a user with sufficient permissions.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -27,10 +27,10 @@ declare const CreateLegalHoldCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>This action creates a legal hold on a recovery point (backup). A legal hold
31
- * is a restraint on altering or deleting a backup until an authorized user cancels the
32
- * legal hold. Any actions to delete or disassociate a recovery point will fail with
33
- * an error if one or more active legal holds are on the recovery point.</p>
30
+ * <p>Creates a legal hold on a recovery point (backup). A legal hold is a restraint on
31
+ * altering or deleting a backup until an authorized user cancels the legal hold. Any actions
32
+ * to delete or disassociate a recovery point will fail with an error if one or more active
33
+ * legal holds are on the recovery point.</p>
34
34
  * @example
35
35
  * Use a bare-bones client and the command you need to make an API call.
36
36
  * ```javascript
@@ -27,7 +27,7 @@ declare const CreateLogicallyAirGappedBackupVaultCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>This request creates a logical container to where backups may be copied.</p>
30
+ * <p>Creates a logical container to where backups may be copied.</p>
31
31
  * <p>This request includes a name, the Region, the maximum number of retention days, the
32
32
  * minimum number of retention days, and optionally can include tags and a creator request
33
33
  * ID.</p>
@@ -27,11 +27,10 @@ declare const CreateRestoreTestingPlanCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>This is the first of two steps to create a restore testing
31
- * plan; once this request is successful, finish the procedure with
32
- * request CreateRestoreTestingSelection.</p>
33
- * <p>You must include the parameter RestoreTestingPlan. You may
34
- * optionally include CreatorRequestId and Tags.</p>
30
+ * <p>Creates a restore testing plan.</p>
31
+ * <p>The first of two steps to create a restore testing
32
+ * plan. After this request is successful, finish the procedure using
33
+ * CreateRestoreTestingSelection.</p>
35
34
  * @example
36
35
  * Use a bare-bones client and the command you need to make an API call.
37
36
  * ```javascript
@@ -44,6 +44,7 @@ declare const DescribeBackupVaultCommand_base: {
44
44
  * // BackupVaultName: "STRING_VALUE",
45
45
  * // BackupVaultArn: "STRING_VALUE",
46
46
  * // VaultType: "BACKUP_VAULT" || "LOGICALLY_AIR_GAPPED_BACKUP_VAULT",
47
+ * // VaultState: "CREATING" || "AVAILABLE" || "FAILED",
47
48
  * // EncryptionKeyArn: "STRING_VALUE",
48
49
  * // CreationDate: new Date("TIMESTAMP"),
49
50
  * // CreatorRequestId: "STRING_VALUE",
@@ -27,8 +27,7 @@ declare const ListBackupPlanTemplatesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns metadata of your saved backup plan templates, including the template ID, name,
31
- * and the creation and deletion dates.</p>
30
+ * <p>Lists the backup plan templates.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -27,9 +27,7 @@ declare const ListBackupPlansCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns a list of all active backup plans for an authenticated account. The list
31
- * contains information such as Amazon Resource Names (ARNs), plan IDs, creation and deletion
32
- * dates, version IDs, plan names, and creator request IDs.</p>
30
+ * <p>Lists the active backup plans for the account.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -48,6 +48,8 @@ declare const ListBackupVaultsCommand_base: {
48
48
  * // { // BackupVaultListMember
49
49
  * // BackupVaultName: "STRING_VALUE",
50
50
  * // BackupVaultArn: "STRING_VALUE",
51
+ * // VaultType: "BACKUP_VAULT" || "LOGICALLY_AIR_GAPPED_BACKUP_VAULT",
52
+ * // VaultState: "CREATING" || "AVAILABLE" || "FAILED",
51
53
  * // CreationDate: new Date("TIMESTAMP"),
52
54
  * // EncryptionKeyArn: "STRING_VALUE",
53
55
  * // CreatorRequestId: "STRING_VALUE",
@@ -27,7 +27,7 @@ declare const ListRecoveryPointsByResourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns detailed information about all the recovery points of the type specified by a
30
+ * <p>The information about the recovery points of the type specified by a
31
31
  * resource Amazon Resource Name (ARN).</p>
32
32
  * <note>
33
33
  * <p>For Amazon EFS and Amazon EC2, this action only lists recovery points
@@ -27,12 +27,8 @@ declare const ListTagsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns a list of key-value pairs assigned to a target recovery point, backup plan, or
30
+ * <p>Returns the tags assigned to the resource, such as a target recovery point, backup plan, or
31
31
  * backup vault.</p>
32
- * <p>
33
- * <code>ListTags</code> only works for resource types that support full Backup
34
- * management of their backups. Those resource types are listed in the "Full Backup management" section of the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource"> Feature
35
- * availability by resource</a> table.</p>
36
32
  * @example
37
33
  * Use a bare-bones client and the command you need to make an API call.
38
34
  * ```javascript
@@ -36,10 +36,11 @@ declare const PutBackupVaultLockConfigurationCommand_base: {
36
36
  * <p>Backup Vault Lock has been assessed by Cohasset Associates for use in environments
37
37
  * that are subject to SEC 17a-4, CFTC, and FINRA regulations. For more information about
38
38
  * how Backup Vault Lock relates to these regulations, see the
39
- * <a href="samples/cohassetreport.zip">Cohasset Associates
39
+ * <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/samples/cohassetreport.zip">Cohasset Associates
40
40
  * Compliance Assessment.</a>
41
41
  * </p>
42
42
  * </note>
43
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html">Backup Vault Lock</a>.</p>
43
44
  * @example
44
45
  * Use a bare-bones client and the command you need to make an API call.
45
46
  * ```javascript
@@ -29,8 +29,8 @@ declare const StopBackupJobCommand_base: {
29
29
  /**
30
30
  * <p>Attempts to cancel a job to create a one-time backup of a resource.</p>
31
31
  * <p>This action is not supported for the following services:
32
- * Amazon FSx for Windows File Server, Amazon FSx for Lustre, Amazon FSx for NetApp ONTAP
33
- * , Amazon FSx for OpenZFS, Amazon DocumentDB (with MongoDB compatibility), Amazon RDS, Amazon Aurora,
32
+ * Amazon FSx for Windows File Server, Amazon FSx for Lustre, Amazon FSx for NetApp ONTAP,
33
+ * Amazon FSx for OpenZFS, Amazon DocumentDB (with MongoDB compatibility), Amazon RDS, Amazon Aurora,
34
34
  * and Amazon Neptune.</p>
35
35
  * @example
36
36
  * Use a bare-bones client and the command you need to make an API call.
@@ -29,6 +29,9 @@ declare const TagResourceCommand_base: {
29
29
  /**
30
30
  * <p>Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault
31
31
  * identified by an Amazon Resource Name (ARN).</p>
32
+ * <p>This API is supported for recovery points for resource types
33
+ * including Aurora, Amazon DocumentDB. Amazon EBS,
34
+ * Amazon FSx, Neptune, and Amazon RDS.</p>
32
35
  * @example
33
36
  * Use a bare-bones client and the command you need to make an API call.
34
37
  * ```javascript
@@ -29,6 +29,9 @@ declare const UntagResourceCommand_base: {
29
29
  /**
30
30
  * <p>Removes a set of key-value pairs from a recovery point, backup plan, or backup vault
31
31
  * identified by an Amazon Resource Name (ARN)</p>
32
+ * <p>This API is not supported for recovery points for resource types
33
+ * including Aurora, Amazon DocumentDB. Amazon EBS,
34
+ * Amazon FSx, Neptune, and Amazon RDS.</p>
32
35
  * @example
33
36
  * Use a bare-bones client and the command you need to make an API call.
34
37
  * ```javascript
@@ -27,9 +27,7 @@ declare const UpdateBackupPlanCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates an existing backup plan identified by its <code>backupPlanId</code> with the
31
- * input document in JSON format. The new version is uniquely identified by a
32
- * <code>VersionId</code>.</p>
30
+ * <p>Updates the specified backup plan. The new version is uniquely identified by its ID.</p>
33
31
  * @example
34
32
  * Use a bare-bones client and the command you need to make an API call.
35
33
  * ```javascript
@@ -27,8 +27,7 @@ declare const UpdateFrameworkCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates an existing framework identified by its <code>FrameworkName</code> with the
31
- * input document in JSON format.</p>
30
+ * <p>Updates the specified framework.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -31,14 +31,17 @@ declare const UpdateRecoveryPointLifecycleCommand_base: {
31
31
  * <p>The lifecycle defines when a protected resource is transitioned to cold storage and when
32
32
  * it expires. Backup transitions and expires backups automatically according to
33
33
  * the lifecycle that you define.</p>
34
+ * <p>Resource types that can transition to cold storage are listed in the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource">Feature availability by resource</a> table. Backup ignores this expression for
35
+ * other resource types.</p>
34
36
  * <p>Backups transitioned to cold storage must be stored in cold storage for a minimum of 90
35
37
  * days. Therefore, the “retention” setting must be 90 days greater than the “transition to
36
38
  * cold after days” setting. The “transition to cold after days” setting cannot be changed
37
39
  * after a backup has been transitioned to cold.</p>
38
- * <p>Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage"
39
- * section of the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource">
40
- * Feature availability by resource</a> table. Backup ignores this expression for
41
- * other resource types.</p>
40
+ * <important>
41
+ * <p>If your lifecycle currently uses the parameters <code>DeleteAfterDays</code> and
42
+ * <code>MoveToColdStorageAfterDays</code>, include these parameters and their values when you call
43
+ * this operation. Not including them may result in your plan updating with null values.</p>
44
+ * </important>
42
45
  * <p>This operation does not support continuous backups.</p>
43
46
  * @example
44
47
  * Use a bare-bones client and the command you need to make an API call.
@@ -27,8 +27,7 @@ declare const UpdateReportPlanCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates an existing report plan identified by its <code>ReportPlanName</code> with the
31
- * input document in JSON format.</p>
30
+ * <p>Updates the specified report plan.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -27,14 +27,10 @@ declare const UpdateRestoreTestingSelectionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Most elements except the <code>RestoreTestingSelectionName</code>
30
+ * <p>Updates the specified restore testing selection.</p>
31
+ * <p>Most elements except the <code>RestoreTestingSelectionName</code>
31
32
  * can be updated with this request.</p>
32
- * <p>
33
- * <code>RestoreTestingSelection</code> can use either protected
34
- * resource ARNs or conditions, but not both. That is, if your selection
35
- * has <code>ProtectedResourceArns</code>, requesting an update with the
36
- * parameter <code>ProtectedResourceConditions</code> will be
37
- * unsuccessful.</p>
33
+ * <p>You can use either protected resource ARNs or conditions, but not both.</p>
38
34
  * @example
39
35
  * Use a bare-bones client and the command you need to make an API call.
40
36
  * ```javascript