@aws-sdk/client-backup 3.901.0 → 3.904.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/dist-cjs/index.js CHANGED
@@ -159,6 +159,7 @@ __export(index_exports, {
159
159
  RestoreValidationStatus: () => RestoreValidationStatus,
160
160
  RevokeRestoreAccessBackupVaultCommand: () => RevokeRestoreAccessBackupVaultCommand,
161
161
  RevokeRestoreAccessBackupVaultInputFilterSensitiveLog: () => RevokeRestoreAccessBackupVaultInputFilterSensitiveLog,
162
+ RuleExecutionType: () => RuleExecutionType,
162
163
  ServiceUnavailableException: () => ServiceUnavailableException,
163
164
  StartBackupJobCommand: () => StartBackupJobCommand,
164
165
  StartBackupJobInputFilterSensitiveLog: () => StartBackupJobInputFilterSensitiveLog,
@@ -877,6 +878,11 @@ var RestoreValidationStatus = {
877
878
  TIMED_OUT: "TIMED_OUT",
878
879
  VALIDATING: "VALIDATING"
879
880
  };
881
+ var RuleExecutionType = {
882
+ CONTINUOUS: "CONTINUOUS",
883
+ CONTINUOUS_AND_SNAPSHOTS: "CONTINUOUS_AND_SNAPSHOTS",
884
+ SNAPSHOTS: "SNAPSHOTS"
885
+ };
880
886
  var MpaRevokeSessionStatus = {
881
887
  FAILED: "FAILED",
882
888
  PENDING: "PENDING"
@@ -1501,7 +1507,8 @@ var se_GetBackupPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
1501
1507
  b.bp("/backup/plans/{BackupPlanId}");
1502
1508
  b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
1503
1509
  const query = (0, import_smithy_client.map)({
1504
- [_vI]: [, input[_VI]]
1510
+ [_vI]: [, input[_VI]],
1511
+ [_MSRP]: [() => input.MaxScheduledRunsPreview !== void 0, () => input[_MSRP].toString()]
1505
1512
  });
1506
1513
  let body;
1507
1514
  b.m("GET").h(headers).q(query).b(body);
@@ -3014,6 +3021,7 @@ var de_GetBackupPlanCommand = /* @__PURE__ */ __name(async (output, context) =>
3014
3021
  CreatorRequestId: import_smithy_client.expectString,
3015
3022
  DeletionDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DeletionDate"),
3016
3023
  LastExecutionDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastExecutionDate"),
3024
+ ScheduledRunsPreview: /* @__PURE__ */ __name((_) => de_ScheduledRunsPreview(_, context), "ScheduledRunsPreview"),
3017
3025
  VersionId: import_smithy_client.expectString
3018
3026
  });
3019
3027
  Object.assign(contents, doc);
@@ -4616,6 +4624,19 @@ var de_RestoreTestingSelections = /* @__PURE__ */ __name((output, context) => {
4616
4624
  });
4617
4625
  return retVal;
4618
4626
  }, "de_RestoreTestingSelections");
4627
+ var de_ScheduledPlanExecutionMember = /* @__PURE__ */ __name((output, context) => {
4628
+ return (0, import_smithy_client.take)(output, {
4629
+ ExecutionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ExecutionTime"),
4630
+ RuleExecutionType: import_smithy_client.expectString,
4631
+ RuleId: import_smithy_client.expectString
4632
+ });
4633
+ }, "de_ScheduledPlanExecutionMember");
4634
+ var de_ScheduledRunsPreview = /* @__PURE__ */ __name((output, context) => {
4635
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
4636
+ return de_ScheduledPlanExecutionMember(entry, context);
4637
+ });
4638
+ return retVal;
4639
+ }, "de_ScheduledRunsPreview");
4619
4640
  var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
4620
4641
  httpStatusCode: output.statusCode,
4621
4642
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -4659,6 +4680,7 @@ var _IS = "IndexStatus";
4659
4680
  var _MBAWSBO = "ManagedByAWSBackupOnly";
4660
4681
  var _MC = "MessageCategory";
4661
4682
  var _MR = "MaxResults";
4683
+ var _MSRP = "MaxScheduledRunsPreview";
4662
4684
  var _NT = "NextToken";
4663
4685
  var _RC = "RequesterComment";
4664
4686
  var _RPA = "RecoveryPointArn";
@@ -6558,6 +6580,7 @@ var paginateListTags = (0, import_core.createPaginator)(BackupClient, ListTagsCo
6558
6580
  RestoreDeletionStatus,
6559
6581
  RestoreJobStatus,
6560
6582
  RestoreValidationStatus,
6583
+ RuleExecutionType,
6561
6584
  MpaRevokeSessionStatus,
6562
6585
  RestoreJobState,
6563
6586
  Index,
@@ -346,6 +346,11 @@ export const RestoreValidationStatus = {
346
346
  TIMED_OUT: "TIMED_OUT",
347
347
  VALIDATING: "VALIDATING",
348
348
  };
349
+ export const RuleExecutionType = {
350
+ CONTINUOUS: "CONTINUOUS",
351
+ CONTINUOUS_AND_SNAPSHOTS: "CONTINUOUS_AND_SNAPSHOTS",
352
+ SNAPSHOTS: "SNAPSHOTS",
353
+ };
349
354
  export const MpaRevokeSessionStatus = {
350
355
  FAILED: "FAILED",
351
356
  PENDING: "PENDING",
@@ -453,6 +453,7 @@ export const se_GetBackupPlanCommand = async (input, context) => {
453
453
  b.p("BackupPlanId", () => input.BackupPlanId, "{BackupPlanId}", false);
454
454
  const query = map({
455
455
  [_vI]: [, input[_VI]],
456
+ [_MSRP]: [() => input.MaxScheduledRunsPreview !== void 0, () => input[_MSRP].toString()],
456
457
  });
457
458
  let body;
458
459
  b.m("GET").h(headers).q(query).b(body);
@@ -1923,6 +1924,7 @@ export const de_GetBackupPlanCommand = async (output, context) => {
1923
1924
  CreatorRequestId: __expectString,
1924
1925
  DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1925
1926
  LastExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1927
+ ScheduledRunsPreview: (_) => de_ScheduledRunsPreview(_, context),
1926
1928
  VersionId: __expectString,
1927
1929
  });
1928
1930
  Object.assign(contents, doc);
@@ -3567,6 +3569,21 @@ const de_RestoreTestingSelections = (output, context) => {
3567
3569
  });
3568
3570
  return retVal;
3569
3571
  };
3572
+ const de_ScheduledPlanExecutionMember = (output, context) => {
3573
+ return take(output, {
3574
+ ExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3575
+ RuleExecutionType: __expectString,
3576
+ RuleId: __expectString,
3577
+ });
3578
+ };
3579
+ const de_ScheduledRunsPreview = (output, context) => {
3580
+ const retVal = (output || [])
3581
+ .filter((e) => e != null)
3582
+ .map((entry) => {
3583
+ return de_ScheduledPlanExecutionMember(entry, context);
3584
+ });
3585
+ return retVal;
3586
+ };
3570
3587
  const deserializeMetadata = (output) => ({
3571
3588
  httpStatusCode: output.statusCode,
3572
3589
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -3611,6 +3628,7 @@ const _IS = "IndexStatus";
3611
3628
  const _MBAWSBO = "ManagedByAWSBackupOnly";
3612
3629
  const _MC = "MessageCategory";
3613
3630
  const _MR = "MaxResults";
3631
+ const _MSRP = "MaxScheduledRunsPreview";
3614
3632
  const _NT = "NextToken";
3615
3633
  const _RC = "RequesterComment";
3616
3634
  const _RPA = "RecoveryPointArn";
@@ -40,6 +40,7 @@ declare const GetBackupPlanCommand_base: {
40
40
  * const input = { // GetBackupPlanInput
41
41
  * BackupPlanId: "STRING_VALUE", // required
42
42
  * VersionId: "STRING_VALUE",
43
+ * MaxScheduledRunsPreview: Number("int"),
43
44
  * };
44
45
  * const command = new GetBackupPlanCommand(input);
45
46
  * const response = await client.send(command);
@@ -107,6 +108,13 @@ declare const GetBackupPlanCommand_base: {
107
108
  * // },
108
109
  * // },
109
110
  * // ],
111
+ * // ScheduledRunsPreview: [ // ScheduledRunsPreview
112
+ * // { // ScheduledPlanExecutionMember
113
+ * // ExecutionTime: new Date("TIMESTAMP"),
114
+ * // RuleId: "STRING_VALUE",
115
+ * // RuleExecutionType: "CONTINUOUS" || "SNAPSHOTS" || "CONTINUOUS_AND_SNAPSHOTS",
116
+ * // },
117
+ * // ],
110
118
  * // };
111
119
  *
112
120
  * ```
@@ -29,6 +29,9 @@ declare const StartCopyJobCommand_base: {
29
29
  /**
30
30
  * <p>Starts a job to create a one-time copy of the specified resource.</p>
31
31
  * <p>Does not support continuous backups.</p>
32
+ * <p>See <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/recov-point-create-a-copy.html#backup-copy-retry">Copy
33
+ * job retry</a> for information on how Backup retries copy job
34
+ * operations.</p>
32
35
  * @example
33
36
  * Use a bare-bones client and the command you need to make an API call.
34
37
  * ```javascript
@@ -3625,7 +3625,8 @@ export interface DescribeGlobalSettingsInput {
3625
3625
  */
3626
3626
  export interface DescribeGlobalSettingsOutput {
3627
3627
  /**
3628
- * <p>The status of the flag <code>isCrossAccountBackupEnabled</code>.</p>
3628
+ * <p>The status of the flags <code>isCrossAccountBackupEnabled</code> and
3629
+ * <code>isMpaEnabled</code> ('Mpa' refers to multi-party approval).</p>
3629
3630
  * @public
3630
3631
  */
3631
3632
  GlobalSettings?: Record<string, string> | undefined;
@@ -4511,6 +4512,45 @@ export interface GetBackupPlanInput {
4511
4512
  * @public
4512
4513
  */
4513
4514
  VersionId?: string | undefined;
4515
+ /**
4516
+ * <p>Number of future scheduled backup runs to preview. When set to 0 (default), no scheduled runs preview is included in the response. Valid range is 0-10.</p>
4517
+ * @public
4518
+ */
4519
+ MaxScheduledRunsPreview?: number | undefined;
4520
+ }
4521
+ /**
4522
+ * @public
4523
+ * @enum
4524
+ */
4525
+ export declare const RuleExecutionType: {
4526
+ readonly CONTINUOUS: "CONTINUOUS";
4527
+ readonly CONTINUOUS_AND_SNAPSHOTS: "CONTINUOUS_AND_SNAPSHOTS";
4528
+ readonly SNAPSHOTS: "SNAPSHOTS";
4529
+ };
4530
+ /**
4531
+ * @public
4532
+ */
4533
+ export type RuleExecutionType = (typeof RuleExecutionType)[keyof typeof RuleExecutionType];
4534
+ /**
4535
+ * <p>Contains information about a scheduled backup plan execution, including the execution time, rule type, and associated rule identifier.</p>
4536
+ * @public
4537
+ */
4538
+ export interface ScheduledPlanExecutionMember {
4539
+ /**
4540
+ * <p>The timestamp when the backup is scheduled to run, in Unix format and Coordinated Universal Time (UTC). The value is accurate to milliseconds.</p>
4541
+ * @public
4542
+ */
4543
+ ExecutionTime?: Date | undefined;
4544
+ /**
4545
+ * <p>The unique identifier of the backup rule that will execute at the scheduled time.</p>
4546
+ * @public
4547
+ */
4548
+ RuleId?: string | undefined;
4549
+ /**
4550
+ * <p>The type of backup rule execution. Valid values are <code>CONTINUOUS</code> (point-in-time recovery), <code>SNAPSHOTS</code> (snapshot backups), or <code>CONTINUOUS_AND_SNAPSHOTS</code> (both types combined).</p>
4551
+ * @public
4552
+ */
4553
+ RuleExecutionType?: RuleExecutionType | undefined;
4514
4554
  }
4515
4555
  /**
4516
4556
  * @public
@@ -4575,6 +4615,11 @@ export interface GetBackupPlanOutput {
4575
4615
  * @public
4576
4616
  */
4577
4617
  AdvancedBackupSettings?: AdvancedBackupSetting[] | undefined;
4618
+ /**
4619
+ * <p>List of upcoming scheduled backup runs. Only included when <code>MaxScheduledRunsPreview</code> parameter is greater than 0. Contains up to 10 future backup executions with their scheduled times, execution types, and associated rule IDs.</p>
4620
+ * @public
4621
+ */
4622
+ ScheduledRunsPreview?: ScheduledPlanExecutionMember[] | undefined;
4578
4623
  }
4579
4624
  /**
4580
4625
  * @public
@@ -8887,9 +8932,14 @@ export interface UpdateFrameworkOutput {
8887
8932
  */
8888
8933
  export interface UpdateGlobalSettingsInput {
8889
8934
  /**
8890
- * <p>A value for <code>isCrossAccountBackupEnabled</code> and a Region. Example:
8935
+ * <p>Inputs can include:</p>
8936
+ * <p>A value for <code>isCrossAccountBackupEnabled</code> and a Region. Example:
8891
8937
  * <code>update-global-settings --global-settings isCrossAccountBackupEnabled=false
8892
8938
  * --region us-west-2</code>.</p>
8939
+ * <p>A value for Multi-party approval, styled as "Mpa": <code>isMpaEnabled</code>. Values can
8940
+ * be true or false. Example:
8941
+ * <code>update-global-settings --global-settings isMpaEnabled=false
8942
+ * --region us-west-2</code>.</p>
8893
8943
  * @public
8894
8944
  */
8895
8945
  GlobalSettings?: Record<string, string> | undefined;
@@ -940,6 +940,19 @@ export interface ExportBackupPlanTemplateOutput {
940
940
  export interface GetBackupPlanInput {
941
941
  BackupPlanId: string | undefined;
942
942
  VersionId?: string | undefined;
943
+ MaxScheduledRunsPreview?: number | undefined;
944
+ }
945
+ export declare const RuleExecutionType: {
946
+ readonly CONTINUOUS: "CONTINUOUS";
947
+ readonly CONTINUOUS_AND_SNAPSHOTS: "CONTINUOUS_AND_SNAPSHOTS";
948
+ readonly SNAPSHOTS: "SNAPSHOTS";
949
+ };
950
+ export type RuleExecutionType =
951
+ (typeof RuleExecutionType)[keyof typeof RuleExecutionType];
952
+ export interface ScheduledPlanExecutionMember {
953
+ ExecutionTime?: Date | undefined;
954
+ RuleId?: string | undefined;
955
+ RuleExecutionType?: RuleExecutionType | undefined;
943
956
  }
944
957
  export interface GetBackupPlanOutput {
945
958
  BackupPlan?: BackupPlan | undefined;
@@ -951,6 +964,7 @@ export interface GetBackupPlanOutput {
951
964
  DeletionDate?: Date | undefined;
952
965
  LastExecutionDate?: Date | undefined;
953
966
  AdvancedBackupSettings?: AdvancedBackupSetting[] | undefined;
967
+ ScheduledRunsPreview?: ScheduledPlanExecutionMember[] | undefined;
954
968
  }
955
969
  export interface GetBackupPlanFromJSONInput {
956
970
  BackupPlanTemplateJson: 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.901.0",
4
+ "version": "3.904.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-backup",