@aws-sdk/client-backup 3.336.0 → 3.337.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.
@@ -1361,6 +1361,7 @@ const se_StartRestoreJobCommand = async (input, context) => {
1361
1361
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs";
1362
1362
  let body;
1363
1363
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1364
+ CopySourceTagsToRestoredResource: [],
1364
1365
  IamRoleArn: [],
1365
1366
  IdempotencyToken: [],
1366
1367
  Metadata: (_) => (0, smithy_client_1._json)(_),
@@ -4364,6 +4365,9 @@ const de_StartRestoreJobCommandError = async (output, context) => {
4364
4365
  case "InvalidParameterValueException":
4365
4366
  case "com.amazonaws.backup#InvalidParameterValueException":
4366
4367
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4368
+ case "InvalidRequestException":
4369
+ case "com.amazonaws.backup#InvalidRequestException":
4370
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4367
4371
  case "MissingParameterValueException":
4368
4372
  case "com.amazonaws.backup#MissingParameterValueException":
4369
4373
  throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
@@ -1294,6 +1294,7 @@ export const se_StartRestoreJobCommand = async (input, context) => {
1294
1294
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/restore-jobs";
1295
1295
  let body;
1296
1296
  body = JSON.stringify(take(input, {
1297
+ CopySourceTagsToRestoredResource: [],
1297
1298
  IamRoleArn: [],
1298
1299
  IdempotencyToken: [],
1299
1300
  Metadata: (_) => _json(_),
@@ -4224,6 +4225,9 @@ const de_StartRestoreJobCommandError = async (output, context) => {
4224
4225
  case "InvalidParameterValueException":
4225
4226
  case "com.amazonaws.backup#InvalidParameterValueException":
4226
4227
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4228
+ case "InvalidRequestException":
4229
+ case "com.amazonaws.backup#InvalidRequestException":
4230
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4227
4231
  case "MissingParameterValueException":
4228
4232
  case "com.amazonaws.backup#MissingParameterValueException":
4229
4233
  throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
@@ -34,6 +34,7 @@ export interface StartRestoreJobCommandOutput extends StartRestoreJobOutput, __M
34
34
  * IamRoleArn: "STRING_VALUE",
35
35
  * IdempotencyToken: "STRING_VALUE",
36
36
  * ResourceType: "STRING_VALUE",
37
+ * CopySourceTagsToRestoredResource: true || false,
37
38
  * };
38
39
  * const command = new StartRestoreJobCommand(input);
39
40
  * const response = await client.send(command);
@@ -53,6 +54,10 @@ export interface StartRestoreJobCommandOutput extends StartRestoreJobOutput, __M
53
54
  * <p>Indicates that something is wrong with a parameter's value. For example, the value is
54
55
  * out of range.</p>
55
56
  *
57
+ * @throws {@link InvalidRequestException} (client fault)
58
+ * <p>Indicates that something is wrong with the input to the request. For example, a
59
+ * parameter is of the wrong type.</p>
60
+ *
56
61
  * @throws {@link MissingParameterValueException} (client fault)
57
62
  * <p>Indicates that a required parameter is missing.</p>
58
63
  *
@@ -2403,10 +2403,13 @@ export interface DescribeRecoveryPointOutput {
2403
2403
  * that versioning is enabled on the S3 bucket. Once these conditions are met, the next instance
2404
2404
  * of a backup rule running will result in a new continuous recovery point being created.
2405
2405
  * The recovery points with STOPPED status do not need to be deleted.</p>
2406
+ * <p>For SAP HANA on Amazon EC2 <code>STOPPED</code> status occurs due to user action, application
2407
+ * misconfiguration, or backup failure. To ensure that future continuous backups succeed,
2408
+ * refer to the recovery point status and check SAP HANA for details.</p>
2406
2409
  */
2407
2410
  Status?: RecoveryPointStatus | string;
2408
2411
  /**
2409
- * <p>A status message explaining the reason for the recovery point deletion failure.</p>
2412
+ * <p>A status message explaining the status of the recovery point.</p>
2410
2413
  */
2411
2414
  StatusMessage?: string;
2412
2415
  /**
@@ -4961,6 +4964,12 @@ export interface StartRestoreJobInput {
4961
4964
  * </ul>
4962
4965
  */
4963
4966
  ResourceType?: string;
4967
+ /**
4968
+ * <p>This is an optional parameter. If this equals <code>True</code>, tags included in the backup
4969
+ * will be copied to the restored resource.</p>
4970
+ * <p>This can only be applied to backups created through Backup.</p>
4971
+ */
4972
+ CopySourceTagsToRestoredResource?: boolean;
4964
4973
  }
4965
4974
  /**
4966
4975
  * @public
@@ -1078,6 +1078,7 @@ export interface StartRestoreJobInput {
1078
1078
  IamRoleArn?: string;
1079
1079
  IdempotencyToken?: string;
1080
1080
  ResourceType?: string;
1081
+ CopySourceTagsToRestoredResource?: boolean;
1081
1082
  }
1082
1083
  export interface StartRestoreJobOutput {
1083
1084
  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.336.0",
4
+ "version": "3.337.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,36 +21,36 @@
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.335.0",
25
- "@aws-sdk/config-resolver": "3.329.0",
26
- "@aws-sdk/credential-provider-node": "3.335.0",
27
- "@aws-sdk/fetch-http-handler": "3.329.0",
28
- "@aws-sdk/hash-node": "3.329.0",
29
- "@aws-sdk/invalid-dependency": "3.329.0",
30
- "@aws-sdk/middleware-content-length": "3.329.0",
31
- "@aws-sdk/middleware-endpoint": "3.329.0",
32
- "@aws-sdk/middleware-host-header": "3.329.0",
33
- "@aws-sdk/middleware-logger": "3.329.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.329.0",
35
- "@aws-sdk/middleware-retry": "3.329.0",
36
- "@aws-sdk/middleware-serde": "3.329.0",
37
- "@aws-sdk/middleware-signing": "3.329.0",
38
- "@aws-sdk/middleware-stack": "3.329.0",
39
- "@aws-sdk/middleware-user-agent": "3.332.0",
40
- "@aws-sdk/node-config-provider": "3.329.0",
41
- "@aws-sdk/node-http-handler": "3.329.0",
42
- "@aws-sdk/smithy-client": "3.329.0",
43
- "@aws-sdk/types": "3.329.0",
44
- "@aws-sdk/url-parser": "3.329.0",
24
+ "@aws-sdk/client-sts": "3.337.0",
25
+ "@aws-sdk/config-resolver": "3.337.0",
26
+ "@aws-sdk/credential-provider-node": "3.337.0",
27
+ "@aws-sdk/fetch-http-handler": "3.337.0",
28
+ "@aws-sdk/hash-node": "3.337.0",
29
+ "@aws-sdk/invalid-dependency": "3.337.0",
30
+ "@aws-sdk/middleware-content-length": "3.337.0",
31
+ "@aws-sdk/middleware-endpoint": "3.337.0",
32
+ "@aws-sdk/middleware-host-header": "3.337.0",
33
+ "@aws-sdk/middleware-logger": "3.337.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.337.0",
35
+ "@aws-sdk/middleware-retry": "3.337.0",
36
+ "@aws-sdk/middleware-serde": "3.337.0",
37
+ "@aws-sdk/middleware-signing": "3.337.0",
38
+ "@aws-sdk/middleware-stack": "3.337.0",
39
+ "@aws-sdk/middleware-user-agent": "3.337.0",
40
+ "@aws-sdk/node-config-provider": "3.337.0",
41
+ "@aws-sdk/node-http-handler": "3.337.0",
42
+ "@aws-sdk/smithy-client": "3.337.0",
43
+ "@aws-sdk/types": "3.337.0",
44
+ "@aws-sdk/url-parser": "3.337.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.329.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.329.0",
50
- "@aws-sdk/util-endpoints": "3.332.0",
51
- "@aws-sdk/util-retry": "3.329.0",
52
- "@aws-sdk/util-user-agent-browser": "3.329.0",
53
- "@aws-sdk/util-user-agent-node": "3.329.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.337.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.337.0",
50
+ "@aws-sdk/util-endpoints": "3.337.0",
51
+ "@aws-sdk/util-retry": "3.337.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.337.0",
53
+ "@aws-sdk/util-user-agent-node": "3.337.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",