@aws-sdk/client-backup 3.458.0 → 3.460.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 (110) hide show
  1. package/README.md +112 -0
  2. package/dist-cjs/Backup.js +28 -0
  3. package/dist-cjs/commands/CreateRestoreTestingPlanCommand.js +52 -0
  4. package/dist-cjs/commands/CreateRestoreTestingSelectionCommand.js +52 -0
  5. package/dist-cjs/commands/DeleteRestoreTestingPlanCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteRestoreTestingSelectionCommand.js +51 -0
  7. package/dist-cjs/commands/GetRestoreJobMetadataCommand.js +52 -0
  8. package/dist-cjs/commands/GetRestoreTestingInferredMetadataCommand.js +51 -0
  9. package/dist-cjs/commands/GetRestoreTestingPlanCommand.js +51 -0
  10. package/dist-cjs/commands/GetRestoreTestingSelectionCommand.js +52 -0
  11. package/dist-cjs/commands/ListRestoreJobsByProtectedResourceCommand.js +51 -0
  12. package/dist-cjs/commands/ListRestoreTestingPlansCommand.js +51 -0
  13. package/dist-cjs/commands/ListRestoreTestingSelectionsCommand.js +51 -0
  14. package/dist-cjs/commands/PutRestoreValidationResultCommand.js +51 -0
  15. package/dist-cjs/commands/UpdateRestoreTestingPlanCommand.js +51 -0
  16. package/dist-cjs/commands/UpdateRestoreTestingSelectionCommand.js +52 -0
  17. package/dist-cjs/commands/index.js +14 -0
  18. package/dist-cjs/models/models_0.js +67 -1
  19. package/dist-cjs/pagination/ListRestoreJobsByProtectedResourcePaginator.js +29 -0
  20. package/dist-cjs/pagination/ListRestoreTestingPlansPaginator.js +29 -0
  21. package/dist-cjs/pagination/ListRestoreTestingSelectionsPaginator.js +29 -0
  22. package/dist-cjs/pagination/index.js +3 -0
  23. package/dist-cjs/protocols/Aws_restJson1.js +1059 -71
  24. package/dist-es/Backup.js +28 -0
  25. package/dist-es/commands/CreateRestoreTestingPlanCommand.js +48 -0
  26. package/dist-es/commands/CreateRestoreTestingSelectionCommand.js +48 -0
  27. package/dist-es/commands/DeleteRestoreTestingPlanCommand.js +47 -0
  28. package/dist-es/commands/DeleteRestoreTestingSelectionCommand.js +47 -0
  29. package/dist-es/commands/GetRestoreJobMetadataCommand.js +48 -0
  30. package/dist-es/commands/GetRestoreTestingInferredMetadataCommand.js +47 -0
  31. package/dist-es/commands/GetRestoreTestingPlanCommand.js +47 -0
  32. package/dist-es/commands/GetRestoreTestingSelectionCommand.js +48 -0
  33. package/dist-es/commands/ListRestoreJobsByProtectedResourceCommand.js +47 -0
  34. package/dist-es/commands/ListRestoreTestingPlansCommand.js +47 -0
  35. package/dist-es/commands/ListRestoreTestingSelectionsCommand.js +47 -0
  36. package/dist-es/commands/PutRestoreValidationResultCommand.js +47 -0
  37. package/dist-es/commands/UpdateRestoreTestingPlanCommand.js +47 -0
  38. package/dist-es/commands/UpdateRestoreTestingSelectionCommand.js +48 -0
  39. package/dist-es/commands/index.js +14 -0
  40. package/dist-es/models/models_0.js +57 -0
  41. package/dist-es/pagination/ListRestoreJobsByProtectedResourcePaginator.js +25 -0
  42. package/dist-es/pagination/ListRestoreTestingPlansPaginator.js +25 -0
  43. package/dist-es/pagination/ListRestoreTestingSelectionsPaginator.js +25 -0
  44. package/dist-es/pagination/index.js +3 -0
  45. package/dist-es/protocols/Aws_restJson1.js +1023 -63
  46. package/dist-types/Backup.d.ts +98 -0
  47. package/dist-types/BackupClient.d.ts +16 -2
  48. package/dist-types/commands/CreateBackupPlanCommand.d.ts +2 -0
  49. package/dist-types/commands/CreateRestoreTestingPlanCommand.d.ts +122 -0
  50. package/dist-types/commands/CreateRestoreTestingSelectionCommand.d.ts +146 -0
  51. package/dist-types/commands/DeleteRestoreTestingPlanCommand.d.ts +80 -0
  52. package/dist-types/commands/DeleteRestoreTestingSelectionCommand.d.ts +81 -0
  53. package/dist-types/commands/DescribeBackupJobCommand.d.ts +1 -0
  54. package/dist-types/commands/DescribeProtectedResourceCommand.d.ts +5 -0
  55. package/dist-types/commands/DescribeRecoveryPointCommand.d.ts +1 -0
  56. package/dist-types/commands/DescribeRestoreJobCommand.d.ts +8 -0
  57. package/dist-types/commands/GetBackupPlanCommand.d.ts +2 -0
  58. package/dist-types/commands/GetBackupPlanFromJSONCommand.d.ts +2 -0
  59. package/dist-types/commands/GetBackupPlanFromTemplateCommand.d.ts +2 -0
  60. package/dist-types/commands/GetRecoveryPointRestoreMetadataCommand.d.ts +1 -0
  61. package/dist-types/commands/GetRestoreJobMetadataCommand.d.ts +89 -0
  62. package/dist-types/commands/GetRestoreTestingInferredMetadataCommand.d.ts +93 -0
  63. package/dist-types/commands/GetRestoreTestingPlanCommand.d.ts +104 -0
  64. package/dist-types/commands/GetRestoreTestingSelectionCommand.d.ts +109 -0
  65. package/dist-types/commands/ListBackupJobsCommand.d.ts +1 -0
  66. package/dist-types/commands/ListProtectedResourcesByBackupVaultCommand.d.ts +2 -0
  67. package/dist-types/commands/ListProtectedResourcesCommand.d.ts +2 -0
  68. package/dist-types/commands/ListRecoveryPointsByBackupVaultCommand.d.ts +1 -0
  69. package/dist-types/commands/ListRestoreJobsByProtectedResourceCommand.d.ts +120 -0
  70. package/dist-types/commands/ListRestoreJobsCommand.d.ts +9 -0
  71. package/dist-types/commands/ListRestoreTestingPlansCommand.d.ts +93 -0
  72. package/dist-types/commands/ListRestoreTestingSelectionsCommand.d.ts +96 -0
  73. package/dist-types/commands/PutRestoreValidationResultCommand.d.ts +94 -0
  74. package/dist-types/commands/StartBackupJobCommand.d.ts +1 -0
  75. package/dist-types/commands/StartCopyJobCommand.d.ts +1 -0
  76. package/dist-types/commands/UpdateBackupPlanCommand.d.ts +2 -0
  77. package/dist-types/commands/UpdateRecoveryPointLifecycleCommand.d.ts +2 -0
  78. package/dist-types/commands/UpdateRestoreTestingPlanCommand.d.ts +142 -0
  79. package/dist-types/commands/UpdateRestoreTestingSelectionCommand.d.ts +126 -0
  80. package/dist-types/commands/index.d.ts +14 -0
  81. package/dist-types/models/models_0.d.ts +1481 -78
  82. package/dist-types/pagination/ListRestoreJobsByProtectedResourcePaginator.d.ts +7 -0
  83. package/dist-types/pagination/ListRestoreTestingPlansPaginator.d.ts +7 -0
  84. package/dist-types/pagination/ListRestoreTestingSelectionsPaginator.d.ts +7 -0
  85. package/dist-types/pagination/index.d.ts +3 -0
  86. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  87. package/dist-types/ts3.4/Backup.d.ts +250 -0
  88. package/dist-types/ts3.4/BackupClient.d.ts +86 -2
  89. package/dist-types/ts3.4/commands/CreateRestoreTestingPlanCommand.d.ts +42 -0
  90. package/dist-types/ts3.4/commands/CreateRestoreTestingSelectionCommand.d.ts +42 -0
  91. package/dist-types/ts3.4/commands/DeleteRestoreTestingPlanCommand.d.ts +38 -0
  92. package/dist-types/ts3.4/commands/DeleteRestoreTestingSelectionCommand.d.ts +38 -0
  93. package/dist-types/ts3.4/commands/GetRestoreJobMetadataCommand.d.ts +42 -0
  94. package/dist-types/ts3.4/commands/GetRestoreTestingInferredMetadataCommand.d.ts +42 -0
  95. package/dist-types/ts3.4/commands/GetRestoreTestingPlanCommand.d.ts +42 -0
  96. package/dist-types/ts3.4/commands/GetRestoreTestingSelectionCommand.d.ts +42 -0
  97. package/dist-types/ts3.4/commands/ListRestoreJobsByProtectedResourceCommand.d.ts +42 -0
  98. package/dist-types/ts3.4/commands/ListRestoreTestingPlansCommand.d.ts +42 -0
  99. package/dist-types/ts3.4/commands/ListRestoreTestingSelectionsCommand.d.ts +42 -0
  100. package/dist-types/ts3.4/commands/PutRestoreValidationResultCommand.d.ts +38 -0
  101. package/dist-types/ts3.4/commands/UpdateRestoreTestingPlanCommand.d.ts +42 -0
  102. package/dist-types/ts3.4/commands/UpdateRestoreTestingSelectionCommand.d.ts +42 -0
  103. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  104. package/dist-types/ts3.4/models/models_0.d.ts +276 -0
  105. package/dist-types/ts3.4/pagination/ListRestoreJobsByProtectedResourcePaginator.d.ts +11 -0
  106. package/dist-types/ts3.4/pagination/ListRestoreTestingPlansPaginator.d.ts +11 -0
  107. package/dist-types/ts3.4/pagination/ListRestoreTestingSelectionsPaginator.d.ts +11 -0
  108. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  109. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  110. package/package.json +12 -12
@@ -0,0 +1,126 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { BackupClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BackupClient";
5
+ import { UpdateRestoreTestingSelectionInput, UpdateRestoreTestingSelectionOutput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateRestoreTestingSelectionCommand}.
14
+ */
15
+ export interface UpdateRestoreTestingSelectionCommandInput extends UpdateRestoreTestingSelectionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateRestoreTestingSelectionCommand}.
21
+ */
22
+ export interface UpdateRestoreTestingSelectionCommandOutput extends UpdateRestoreTestingSelectionOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Most elements except the <code>RestoreTestingSelectionName</code>
27
+ * can be updated with this request.</p>
28
+ * <p>
29
+ * <code>RestoreTestingSelection</code> can use either protected
30
+ * resource ARNs or conditions, but not both. That is, if your selection
31
+ * has <code>ProtectedResourceArns</code>, requesting an update with the
32
+ * parameter <code>ProtectedResourceConditions</code> will be
33
+ * unsuccessful.</p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { BackupClient, UpdateRestoreTestingSelectionCommand } from "@aws-sdk/client-backup"; // ES Modules import
38
+ * // const { BackupClient, UpdateRestoreTestingSelectionCommand } = require("@aws-sdk/client-backup"); // CommonJS import
39
+ * const client = new BackupClient(config);
40
+ * const input = { // UpdateRestoreTestingSelectionInput
41
+ * RestoreTestingPlanName: "STRING_VALUE", // required
42
+ * RestoreTestingSelection: { // RestoreTestingSelectionForUpdate
43
+ * IamRoleArn: "STRING_VALUE",
44
+ * ProtectedResourceArns: [ // stringList
45
+ * "STRING_VALUE",
46
+ * ],
47
+ * ProtectedResourceConditions: { // ProtectedResourceConditions
48
+ * StringEquals: [ // KeyValueList
49
+ * { // KeyValue
50
+ * Key: "STRING_VALUE", // required
51
+ * Value: "STRING_VALUE", // required
52
+ * },
53
+ * ],
54
+ * StringNotEquals: [
55
+ * {
56
+ * Key: "STRING_VALUE", // required
57
+ * Value: "STRING_VALUE", // required
58
+ * },
59
+ * ],
60
+ * },
61
+ * RestoreMetadataOverrides: { // SensitiveStringMap
62
+ * "<keys>": "STRING_VALUE",
63
+ * },
64
+ * ValidationWindowHours: Number("int"),
65
+ * },
66
+ * RestoreTestingSelectionName: "STRING_VALUE", // required
67
+ * };
68
+ * const command = new UpdateRestoreTestingSelectionCommand(input);
69
+ * const response = await client.send(command);
70
+ * // { // UpdateRestoreTestingSelectionOutput
71
+ * // CreationTime: new Date("TIMESTAMP"), // required
72
+ * // RestoreTestingPlanArn: "STRING_VALUE", // required
73
+ * // RestoreTestingPlanName: "STRING_VALUE", // required
74
+ * // RestoreTestingSelectionName: "STRING_VALUE", // required
75
+ * // UpdateTime: new Date("TIMESTAMP"), // required
76
+ * // };
77
+ *
78
+ * ```
79
+ *
80
+ * @param UpdateRestoreTestingSelectionCommandInput - {@link UpdateRestoreTestingSelectionCommandInput}
81
+ * @returns {@link UpdateRestoreTestingSelectionCommandOutput}
82
+ * @see {@link UpdateRestoreTestingSelectionCommandInput} for command's `input` shape.
83
+ * @see {@link UpdateRestoreTestingSelectionCommandOutput} for command's `response` shape.
84
+ * @see {@link BackupClientResolvedConfig | config} for BackupClient's `config` shape.
85
+ *
86
+ * @throws {@link ConflictException} (client fault)
87
+ * <p>Backup can't perform the action that you requested until it finishes
88
+ * performing a previous action. Try again later.</p>
89
+ *
90
+ * @throws {@link InvalidParameterValueException} (client fault)
91
+ * <p>Indicates that something is wrong with a parameter's value. For example, the value is
92
+ * out of range.</p>
93
+ *
94
+ * @throws {@link MissingParameterValueException} (client fault)
95
+ * <p>Indicates that a required parameter is missing.</p>
96
+ *
97
+ * @throws {@link ResourceNotFoundException} (client fault)
98
+ * <p>A resource that is required for the action doesn't exist.</p>
99
+ *
100
+ * @throws {@link ServiceUnavailableException} (server fault)
101
+ * <p>The request failed due to a temporary failure of the server.</p>
102
+ *
103
+ * @throws {@link BackupServiceException}
104
+ * <p>Base exception class for all service exceptions from Backup service.</p>
105
+ *
106
+ */
107
+ export declare class UpdateRestoreTestingSelectionCommand extends $Command<UpdateRestoreTestingSelectionCommandInput, UpdateRestoreTestingSelectionCommandOutput, BackupClientResolvedConfig> {
108
+ readonly input: UpdateRestoreTestingSelectionCommandInput;
109
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
110
+ /**
111
+ * @public
112
+ */
113
+ constructor(input: UpdateRestoreTestingSelectionCommandInput);
114
+ /**
115
+ * @internal
116
+ */
117
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: BackupClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateRestoreTestingSelectionCommandInput, UpdateRestoreTestingSelectionCommandOutput>;
118
+ /**
119
+ * @internal
120
+ */
121
+ private serialize;
122
+ /**
123
+ * @internal
124
+ */
125
+ private deserialize;
126
+ }
@@ -6,6 +6,8 @@ export * from "./CreateFrameworkCommand";
6
6
  export * from "./CreateLegalHoldCommand";
7
7
  export * from "./CreateLogicallyAirGappedBackupVaultCommand";
8
8
  export * from "./CreateReportPlanCommand";
9
+ export * from "./CreateRestoreTestingPlanCommand";
10
+ export * from "./CreateRestoreTestingSelectionCommand";
9
11
  export * from "./DeleteBackupPlanCommand";
10
12
  export * from "./DeleteBackupSelectionCommand";
11
13
  export * from "./DeleteBackupVaultAccessPolicyCommand";
@@ -15,6 +17,8 @@ export * from "./DeleteBackupVaultNotificationsCommand";
15
17
  export * from "./DeleteFrameworkCommand";
16
18
  export * from "./DeleteRecoveryPointCommand";
17
19
  export * from "./DeleteReportPlanCommand";
20
+ export * from "./DeleteRestoreTestingPlanCommand";
21
+ export * from "./DeleteRestoreTestingSelectionCommand";
18
22
  export * from "./DescribeBackupJobCommand";
19
23
  export * from "./DescribeBackupVaultCommand";
20
24
  export * from "./DescribeCopyJobCommand";
@@ -37,6 +41,10 @@ export * from "./GetBackupVaultAccessPolicyCommand";
37
41
  export * from "./GetBackupVaultNotificationsCommand";
38
42
  export * from "./GetLegalHoldCommand";
39
43
  export * from "./GetRecoveryPointRestoreMetadataCommand";
44
+ export * from "./GetRestoreJobMetadataCommand";
45
+ export * from "./GetRestoreTestingInferredMetadataCommand";
46
+ export * from "./GetRestoreTestingPlanCommand";
47
+ export * from "./GetRestoreTestingSelectionCommand";
40
48
  export * from "./GetSupportedResourceTypesCommand";
41
49
  export * from "./ListBackupJobSummariesCommand";
42
50
  export * from "./ListBackupJobsCommand";
@@ -57,11 +65,15 @@ export * from "./ListRecoveryPointsByResourceCommand";
57
65
  export * from "./ListReportJobsCommand";
58
66
  export * from "./ListReportPlansCommand";
59
67
  export * from "./ListRestoreJobSummariesCommand";
68
+ export * from "./ListRestoreJobsByProtectedResourceCommand";
60
69
  export * from "./ListRestoreJobsCommand";
70
+ export * from "./ListRestoreTestingPlansCommand";
71
+ export * from "./ListRestoreTestingSelectionsCommand";
61
72
  export * from "./ListTagsCommand";
62
73
  export * from "./PutBackupVaultAccessPolicyCommand";
63
74
  export * from "./PutBackupVaultLockConfigurationCommand";
64
75
  export * from "./PutBackupVaultNotificationsCommand";
76
+ export * from "./PutRestoreValidationResultCommand";
65
77
  export * from "./StartBackupJobCommand";
66
78
  export * from "./StartCopyJobCommand";
67
79
  export * from "./StartReportJobCommand";
@@ -75,3 +87,5 @@ export * from "./UpdateGlobalSettingsCommand";
75
87
  export * from "./UpdateRecoveryPointLifecycleCommand";
76
88
  export * from "./UpdateRegionSettingsCommand";
77
89
  export * from "./UpdateReportPlanCommand";
90
+ export * from "./UpdateRestoreTestingPlanCommand";
91
+ export * from "./UpdateRestoreTestingSelectionCommand";