@aws-sdk/client-backup 3.901.0 → 3.906.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.
@@ -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.906.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",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.901.0",
24
- "@aws-sdk/credential-provider-node": "3.901.0",
23
+ "@aws-sdk/core": "3.906.0",
24
+ "@aws-sdk/credential-provider-node": "3.906.0",
25
25
  "@aws-sdk/middleware-host-header": "3.901.0",
26
26
  "@aws-sdk/middleware-logger": "3.901.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.901.0",
28
- "@aws-sdk/middleware-user-agent": "3.901.0",
28
+ "@aws-sdk/middleware-user-agent": "3.906.0",
29
29
  "@aws-sdk/region-config-resolver": "3.901.0",
30
30
  "@aws-sdk/types": "3.901.0",
31
31
  "@aws-sdk/util-endpoints": "3.901.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.901.0",
33
- "@aws-sdk/util-user-agent-node": "3.901.0",
33
+ "@aws-sdk/util-user-agent-node": "3.906.0",
34
34
  "@smithy/config-resolver": "^4.3.0",
35
35
  "@smithy/core": "^3.14.0",
36
36
  "@smithy/fetch-http-handler": "^5.3.0",