@aws-sdk/client-drs 3.1110.0 → 3.1112.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 (102) hide show
  1. package/README.md +147 -7
  2. package/dist-cjs/index.js +715 -5
  3. package/dist-es/Drs.js +48 -0
  4. package/dist-es/commands/CancelRecoveryPlanExecutionCommand.js +4 -0
  5. package/dist-es/commands/CreateRecoveryPlanCommand.js +4 -0
  6. package/dist-es/commands/CreateRecoveryPlanStepCommand.js +4 -0
  7. package/dist-es/commands/DeleteRecoveryPlanCommand.js +4 -0
  8. package/dist-es/commands/DeleteRecoveryPlanExecutionCommand.js +4 -0
  9. package/dist-es/commands/DeleteRecoveryPlanStepCommand.js +4 -0
  10. package/dist-es/commands/GetRecoveryPlanCommand.js +4 -0
  11. package/dist-es/commands/GetRecoveryPlanExecutionCommand.js +4 -0
  12. package/dist-es/commands/GetRecoveryPlanExecutionStepCommand.js +4 -0
  13. package/dist-es/commands/GetRecoveryPlanStepCommand.js +4 -0
  14. package/dist-es/commands/ListRecoveryPlanExecutionStepsCommand.js +4 -0
  15. package/dist-es/commands/ListRecoveryPlanExecutionsCommand.js +4 -0
  16. package/dist-es/commands/ListRecoveryPlanStepsCommand.js +4 -0
  17. package/dist-es/commands/ListRecoveryPlansCommand.js +4 -0
  18. package/dist-es/commands/ReorderRecoveryPlanStepsCommand.js +4 -0
  19. package/dist-es/commands/RetryRecoveryPlanExecutionStepCommand.js +4 -0
  20. package/dist-es/commands/StartRecoveryPlanExecutionCommand.js +4 -0
  21. package/dist-es/commands/UpdateRecoveryPlanCommand.js +4 -0
  22. package/dist-es/commands/UpdateRecoveryPlanExecutionStepCommand.js +4 -0
  23. package/dist-es/commands/UpdateRecoveryPlanStepCommand.js +4 -0
  24. package/dist-es/commands/index.js +20 -0
  25. package/dist-es/models/enums.js +29 -0
  26. package/dist-es/pagination/ListRecoveryPlanExecutionStepsPaginator.js +4 -0
  27. package/dist-es/pagination/ListRecoveryPlanExecutionsPaginator.js +4 -0
  28. package/dist-es/pagination/ListRecoveryPlanStepsPaginator.js +4 -0
  29. package/dist-es/pagination/ListRecoveryPlansPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +4 -0
  31. package/dist-es/schemas/schemas_0.js +488 -4
  32. package/dist-types/Drs.d.ts +170 -0
  33. package/dist-types/DrsClient.d.ts +22 -2
  34. package/dist-types/commands/CancelRecoveryPlanExecutionCommand.d.ts +106 -0
  35. package/dist-types/commands/CreateRecoveryPlanCommand.d.ts +107 -0
  36. package/dist-types/commands/CreateRecoveryPlanStepCommand.d.ts +130 -0
  37. package/dist-types/commands/DeleteRecoveryPlanCommand.d.ts +92 -0
  38. package/dist-types/commands/DeleteRecoveryPlanExecutionCommand.d.ts +92 -0
  39. package/dist-types/commands/DeleteRecoveryPlanStepCommand.d.ts +92 -0
  40. package/dist-types/commands/GetRecoveryPlanCommand.d.ts +99 -0
  41. package/dist-types/commands/GetRecoveryPlanExecutionCommand.d.ts +103 -0
  42. package/dist-types/commands/GetRecoveryPlanExecutionStepCommand.d.ts +115 -0
  43. package/dist-types/commands/GetRecoveryPlanStepCommand.d.ts +108 -0
  44. package/dist-types/commands/ListRecoveryPlanExecutionStepsCommand.d.ts +120 -0
  45. package/dist-types/commands/ListRecoveryPlanExecutionsCommand.d.ts +102 -0
  46. package/dist-types/commands/ListRecoveryPlanStepsCommand.d.ts +113 -0
  47. package/dist-types/commands/ListRecoveryPlansCommand.d.ts +96 -0
  48. package/dist-types/commands/ReorderRecoveryPlanStepsCommand.d.ts +116 -0
  49. package/dist-types/commands/RetryRecoveryPlanExecutionStepCommand.d.ts +118 -0
  50. package/dist-types/commands/StartRecoveryPlanExecutionCommand.d.ts +120 -0
  51. package/dist-types/commands/UpdateRecoveryPlanCommand.d.ts +104 -0
  52. package/dist-types/commands/UpdateRecoveryPlanExecutionStepCommand.d.ts +126 -0
  53. package/dist-types/commands/UpdateRecoveryPlanStepCommand.d.ts +125 -0
  54. package/dist-types/commands/index.d.ts +20 -0
  55. package/dist-types/models/enums.d.ts +69 -0
  56. package/dist-types/models/models_0.d.ts +1049 -2
  57. package/dist-types/pagination/ListRecoveryPlanExecutionStepsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListRecoveryPlanExecutionsPaginator.d.ts +7 -0
  59. package/dist-types/pagination/ListRecoveryPlanStepsPaginator.d.ts +7 -0
  60. package/dist-types/pagination/ListRecoveryPlansPaginator.d.ts +7 -0
  61. package/dist-types/pagination/index.d.ts +4 -0
  62. package/dist-types/runtimeConfig.browser.d.ts +40 -40
  63. package/dist-types/runtimeConfig.d.ts +36 -36
  64. package/dist-types/runtimeConfig.native.d.ts +38 -38
  65. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  66. package/dist-types/schemas/schemas_0.d.ts +77 -0
  67. package/dist-types/ts3.4/Drs.d.ts +370 -0
  68. package/dist-types/ts3.4/DrsClient.d.ts +120 -0
  69. package/dist-types/ts3.4/commands/CancelRecoveryPlanExecutionCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/CreateRecoveryPlanCommand.d.ts +39 -0
  71. package/dist-types/ts3.4/commands/CreateRecoveryPlanStepCommand.d.ts +39 -0
  72. package/dist-types/ts3.4/commands/DeleteRecoveryPlanCommand.d.ts +39 -0
  73. package/dist-types/ts3.4/commands/DeleteRecoveryPlanExecutionCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/DeleteRecoveryPlanStepCommand.d.ts +39 -0
  75. package/dist-types/ts3.4/commands/GetRecoveryPlanCommand.d.ts +38 -0
  76. package/dist-types/ts3.4/commands/GetRecoveryPlanExecutionCommand.d.ts +42 -0
  77. package/dist-types/ts3.4/commands/GetRecoveryPlanExecutionStepCommand.d.ts +42 -0
  78. package/dist-types/ts3.4/commands/GetRecoveryPlanStepCommand.d.ts +39 -0
  79. package/dist-types/ts3.4/commands/ListRecoveryPlanExecutionStepsCommand.d.ts +42 -0
  80. package/dist-types/ts3.4/commands/ListRecoveryPlanExecutionsCommand.d.ts +42 -0
  81. package/dist-types/ts3.4/commands/ListRecoveryPlanStepsCommand.d.ts +39 -0
  82. package/dist-types/ts3.4/commands/ListRecoveryPlansCommand.d.ts +39 -0
  83. package/dist-types/ts3.4/commands/ReorderRecoveryPlanStepsCommand.d.ts +42 -0
  84. package/dist-types/ts3.4/commands/RetryRecoveryPlanExecutionStepCommand.d.ts +42 -0
  85. package/dist-types/ts3.4/commands/StartRecoveryPlanExecutionCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/UpdateRecoveryPlanCommand.d.ts +39 -0
  87. package/dist-types/ts3.4/commands/UpdateRecoveryPlanExecutionStepCommand.d.ts +42 -0
  88. package/dist-types/ts3.4/commands/UpdateRecoveryPlanStepCommand.d.ts +39 -0
  89. package/dist-types/ts3.4/commands/index.d.ts +20 -0
  90. package/dist-types/ts3.4/models/enums.d.ts +38 -0
  91. package/dist-types/ts3.4/models/models_0.d.ts +299 -0
  92. package/dist-types/ts3.4/pagination/ListRecoveryPlanExecutionStepsPaginator.d.ts +11 -0
  93. package/dist-types/ts3.4/pagination/ListRecoveryPlanExecutionsPaginator.d.ts +11 -0
  94. package/dist-types/ts3.4/pagination/ListRecoveryPlanStepsPaginator.d.ts +11 -0
  95. package/dist-types/ts3.4/pagination/ListRecoveryPlansPaginator.d.ts +11 -0
  96. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  97. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +56 -58
  98. package/dist-types/ts3.4/runtimeConfig.d.ts +58 -58
  99. package/dist-types/ts3.4/runtimeConfig.native.d.ts +60 -62
  100. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +3 -3
  101. package/dist-types/ts3.4/schemas/schemas_0.d.ts +77 -0
  102. package/package.json +5 -5
@@ -0,0 +1,125 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UpdateRecoveryPlanStepRequest, UpdateRecoveryPlanStepResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UpdateRecoveryPlanStepCommand}.
11
+ */
12
+ export interface UpdateRecoveryPlanStepCommandInput extends UpdateRecoveryPlanStepRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UpdateRecoveryPlanStepCommand}.
18
+ */
19
+ export interface UpdateRecoveryPlanStepCommandOutput extends UpdateRecoveryPlanStepResponse, __MetadataBearer {
20
+ }
21
+ declare const UpdateRecoveryPlanStepCommand_base: {
22
+ new (input: UpdateRecoveryPlanStepCommandInput): import("@smithy/core/client").CommandImpl<UpdateRecoveryPlanStepCommandInput, UpdateRecoveryPlanStepCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UpdateRecoveryPlanStepCommandInput): import("@smithy/core/client").CommandImpl<UpdateRecoveryPlanStepCommandInput, UpdateRecoveryPlanStepCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates a Recovery Plan step's name or configuration. Step type is immutable.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { DrsClient, UpdateRecoveryPlanStepCommand } from "@aws-sdk/client-drs"; // ES Modules import
32
+ * // const { DrsClient, UpdateRecoveryPlanStepCommand } = require("@aws-sdk/client-drs"); // CommonJS import
33
+ * // import type { DrsClientConfig } from "@aws-sdk/client-drs";
34
+ * const config = {}; // type is DrsClientConfig
35
+ * const client = new DrsClient(config);
36
+ * const input = { // UpdateRecoveryPlanStepRequest
37
+ * recoveryPlanStepArn: "STRING_VALUE", // required
38
+ * stepName: "STRING_VALUE",
39
+ * configuration: { // RecoveryPlanStepConfiguration Union: only one key present
40
+ * serverStepConfiguration: { // ServerStepConfiguration
41
+ * servers: [ // RecoveryPlanServers // required
42
+ * { // RecoveryPlanServer
43
+ * serverArn: "STRING_VALUE", // required
44
+ * impactLevel: "STRING_VALUE",
45
+ * },
46
+ * ],
47
+ * },
48
+ * waitStepConfiguration: { // WaitStepConfiguration
49
+ * waitDurationMinutes: Number("int"), // required
50
+ * },
51
+ * },
52
+ * };
53
+ * const command = new UpdateRecoveryPlanStepCommand(input);
54
+ * const response = await client.send(command);
55
+ * // { // UpdateRecoveryPlanStepResponse
56
+ * // recoveryPlanStep: { // RecoveryPlanStep
57
+ * // recoveryPlanStepArn: "STRING_VALUE", // required
58
+ * // stepOrder: Number("int"), // required
59
+ * // stepName: "STRING_VALUE", // required
60
+ * // configuration: { // RecoveryPlanStepConfiguration Union: only one key present
61
+ * // serverStepConfiguration: { // ServerStepConfiguration
62
+ * // servers: [ // RecoveryPlanServers // required
63
+ * // { // RecoveryPlanServer
64
+ * // serverArn: "STRING_VALUE", // required
65
+ * // impactLevel: "STRING_VALUE",
66
+ * // },
67
+ * // ],
68
+ * // },
69
+ * // waitStepConfiguration: { // WaitStepConfiguration
70
+ * // waitDurationMinutes: Number("int"), // required
71
+ * // },
72
+ * // },
73
+ * // createdAt: "STRING_VALUE", // required
74
+ * // updatedAt: "STRING_VALUE", // required
75
+ * // },
76
+ * // };
77
+ *
78
+ * ```
79
+ *
80
+ * @param UpdateRecoveryPlanStepCommandInput - {@link UpdateRecoveryPlanStepCommandInput}
81
+ * @returns {@link UpdateRecoveryPlanStepCommandOutput}
82
+ * @see {@link UpdateRecoveryPlanStepCommandInput} for command's `input` shape.
83
+ * @see {@link UpdateRecoveryPlanStepCommandOutput} for command's `response` shape.
84
+ * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape.
85
+ *
86
+ * @throws {@link AccessDeniedException} (client fault)
87
+ * <p>You do not have sufficient access to perform this action.</p>
88
+ *
89
+ * @throws {@link ConflictException} (client fault)
90
+ * <p>The request could not be completed due to a conflict with the current state of the target resource.</p>
91
+ *
92
+ * @throws {@link InternalServerException} (server fault)
93
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
94
+ *
95
+ * @throws {@link ResourceNotFoundException} (client fault)
96
+ * <p>The resource for this operation was not found.</p>
97
+ *
98
+ * @throws {@link ThrottlingException} (client fault)
99
+ * <p>The request was denied due to request throttling.</p>
100
+ *
101
+ * @throws {@link UninitializedAccountException} (client fault)
102
+ * <p>The account performing the request has not been initialized.</p>
103
+ *
104
+ * @throws {@link ValidationException} (client fault)
105
+ * <p>The input fails to satisfy the constraints specified by the AWS service.</p>
106
+ *
107
+ * @throws {@link DrsServiceException}
108
+ * <p>Base exception class for all service exceptions from Drs service.</p>
109
+ *
110
+ *
111
+ * @public
112
+ */
113
+ export declare class UpdateRecoveryPlanStepCommand extends UpdateRecoveryPlanStepCommand_base {
114
+ /** @internal type navigation helper, not in runtime. */
115
+ protected static __types: {
116
+ api: {
117
+ input: UpdateRecoveryPlanStepRequest;
118
+ output: UpdateRecoveryPlanStepResponse;
119
+ };
120
+ sdk: {
121
+ input: UpdateRecoveryPlanStepCommandInput;
122
+ output: UpdateRecoveryPlanStepCommandOutput;
123
+ };
124
+ };
125
+ }
@@ -1,12 +1,18 @@
1
1
  export * from "./AssociateSourceNetworkStackCommand";
2
+ export * from "./CancelRecoveryPlanExecutionCommand";
2
3
  export * from "./CreateExtendedSourceServerCommand";
3
4
  export * from "./CreateLaunchConfigurationTemplateCommand";
5
+ export * from "./CreateRecoveryPlanCommand";
6
+ export * from "./CreateRecoveryPlanStepCommand";
4
7
  export * from "./CreateReplicationConfigurationTemplateCommand";
5
8
  export * from "./CreateSourceNetworkCommand";
6
9
  export * from "./DeleteJobCommand";
7
10
  export * from "./DeleteLaunchActionCommand";
8
11
  export * from "./DeleteLaunchConfigurationTemplateCommand";
9
12
  export * from "./DeleteRecoveryInstanceCommand";
13
+ export * from "./DeleteRecoveryPlanCommand";
14
+ export * from "./DeleteRecoveryPlanExecutionCommand";
15
+ export * from "./DeleteRecoveryPlanStepCommand";
10
16
  export * from "./DeleteReplicationConfigurationTemplateCommand";
11
17
  export * from "./DeleteSourceNetworkCommand";
12
18
  export * from "./DeleteSourceServerCommand";
@@ -23,17 +29,28 @@ export * from "./DisconnectSourceServerCommand";
23
29
  export * from "./ExportSourceNetworkCfnTemplateCommand";
24
30
  export * from "./GetFailbackReplicationConfigurationCommand";
25
31
  export * from "./GetLaunchConfigurationCommand";
32
+ export * from "./GetRecoveryPlanCommand";
33
+ export * from "./GetRecoveryPlanExecutionCommand";
34
+ export * from "./GetRecoveryPlanExecutionStepCommand";
35
+ export * from "./GetRecoveryPlanStepCommand";
26
36
  export * from "./GetReplicationConfigurationCommand";
27
37
  export * from "./InitializeServiceCommand";
28
38
  export * from "./ListExtensibleSourceServersCommand";
29
39
  export * from "./ListLaunchActionsCommand";
40
+ export * from "./ListRecoveryPlanExecutionStepsCommand";
41
+ export * from "./ListRecoveryPlanExecutionsCommand";
42
+ export * from "./ListRecoveryPlanStepsCommand";
43
+ export * from "./ListRecoveryPlansCommand";
30
44
  export * from "./ListStagingAccountsCommand";
31
45
  export * from "./ListTagsForResourceCommand";
32
46
  export * from "./PutLaunchActionCommand";
47
+ export * from "./ReorderRecoveryPlanStepsCommand";
33
48
  export * from "./RetryDataReplicationCommand";
49
+ export * from "./RetryRecoveryPlanExecutionStepCommand";
34
50
  export * from "./ReverseReplicationCommand";
35
51
  export * from "./StartFailbackLaunchCommand";
36
52
  export * from "./StartRecoveryCommand";
53
+ export * from "./StartRecoveryPlanExecutionCommand";
37
54
  export * from "./StartReplicationCommand";
38
55
  export * from "./StartSourceNetworkRecoveryCommand";
39
56
  export * from "./StartSourceNetworkReplicationCommand";
@@ -46,5 +63,8 @@ export * from "./UntagResourceCommand";
46
63
  export * from "./UpdateFailbackReplicationConfigurationCommand";
47
64
  export * from "./UpdateLaunchConfigurationCommand";
48
65
  export * from "./UpdateLaunchConfigurationTemplateCommand";
66
+ export * from "./UpdateRecoveryPlanCommand";
67
+ export * from "./UpdateRecoveryPlanExecutionStepCommand";
68
+ export * from "./UpdateRecoveryPlanStepCommand";
49
69
  export * from "./UpdateReplicationConfigurationCommand";
50
70
  export * from "./UpdateReplicationConfigurationTemplateCommand";
@@ -124,6 +124,34 @@ export declare const ValidationExceptionReason: {
124
124
  * @public
125
125
  */
126
126
  export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
127
+ /**
128
+ * @public
129
+ * @enum
130
+ */
131
+ export declare const RecoveryPlanExecutionMode: {
132
+ readonly DRILL: "DRILL";
133
+ readonly RECOVERY: "RECOVERY";
134
+ };
135
+ /**
136
+ * @public
137
+ */
138
+ export type RecoveryPlanExecutionMode = (typeof RecoveryPlanExecutionMode)[keyof typeof RecoveryPlanExecutionMode];
139
+ /**
140
+ * @public
141
+ * @enum
142
+ */
143
+ export declare const RecoveryPlanExecutionStatus: {
144
+ readonly CANCELLED: "CANCELLED";
145
+ readonly CANCELLING: "CANCELLING";
146
+ readonly COMPLETED: "COMPLETED";
147
+ readonly CREATED: "CREATED";
148
+ readonly FAILED: "FAILED";
149
+ readonly IN_PROGRESS: "IN_PROGRESS";
150
+ };
151
+ /**
152
+ * @public
153
+ */
154
+ export type RecoveryPlanExecutionStatus = (typeof RecoveryPlanExecutionStatus)[keyof typeof RecoveryPlanExecutionStatus];
127
155
  /**
128
156
  * @public
129
157
  * @enum
@@ -319,6 +347,30 @@ export declare const TargetInstanceTypeRightSizingMethod: {
319
347
  * @public
320
348
  */
321
349
  export type TargetInstanceTypeRightSizingMethod = (typeof TargetInstanceTypeRightSizingMethod)[keyof typeof TargetInstanceTypeRightSizingMethod];
350
+ /**
351
+ * @public
352
+ * @enum
353
+ */
354
+ export declare const RecoveryPlanStatus: {
355
+ readonly ACTIVE: "ACTIVE";
356
+ readonly INVALID: "INVALID";
357
+ };
358
+ /**
359
+ * @public
360
+ */
361
+ export type RecoveryPlanStatus = (typeof RecoveryPlanStatus)[keyof typeof RecoveryPlanStatus];
362
+ /**
363
+ * @public
364
+ * @enum
365
+ */
366
+ export declare const RecoveryPlanServerImpactLevel: {
367
+ readonly CRITICAL: "CRITICAL";
368
+ readonly OPTIONAL: "OPTIONAL";
369
+ };
370
+ /**
371
+ * @public
372
+ */
373
+ export type RecoveryPlanServerImpactLevel = (typeof RecoveryPlanServerImpactLevel)[keyof typeof RecoveryPlanServerImpactLevel];
322
374
  /**
323
375
  * @public
324
376
  * @enum
@@ -617,6 +669,23 @@ export declare const ReplicationStatus: {
617
669
  * @public
618
670
  */
619
671
  export type ReplicationStatus = (typeof ReplicationStatus)[keyof typeof ReplicationStatus];
672
+ /**
673
+ * @public
674
+ * @enum
675
+ */
676
+ export declare const RecoveryPlanExecutionStepStatus: {
677
+ readonly COMPLETED: "COMPLETED";
678
+ readonly EXECUTING: "EXECUTING";
679
+ readonly FAILED: "FAILED";
680
+ readonly NOT_STARTED: "NOT_STARTED";
681
+ readonly SKIPPED: "SKIPPED";
682
+ readonly TIMED_OUT: "TIMED_OUT";
683
+ readonly WAITING: "WAITING";
684
+ };
685
+ /**
686
+ * @public
687
+ */
688
+ export type RecoveryPlanExecutionStepStatus = (typeof RecoveryPlanExecutionStepStatus)[keyof typeof RecoveryPlanExecutionStepStatus];
620
689
  /**
621
690
  * @public
622
691
  * @enum