@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,116 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ReorderRecoveryPlanStepsRequest, ReorderRecoveryPlanStepsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ReorderRecoveryPlanStepsCommand}.
11
+ */
12
+ export interface ReorderRecoveryPlanStepsCommandInput extends ReorderRecoveryPlanStepsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ReorderRecoveryPlanStepsCommand}.
18
+ */
19
+ export interface ReorderRecoveryPlanStepsCommandOutput extends ReorderRecoveryPlanStepsResponse, __MetadataBearer {
20
+ }
21
+ declare const ReorderRecoveryPlanStepsCommand_base: {
22
+ new (input: ReorderRecoveryPlanStepsCommandInput): import("@smithy/core/client").CommandImpl<ReorderRecoveryPlanStepsCommandInput, ReorderRecoveryPlanStepsCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ReorderRecoveryPlanStepsCommandInput): import("@smithy/core/client").CommandImpl<ReorderRecoveryPlanStepsCommandInput, ReorderRecoveryPlanStepsCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Reorders steps in a Recovery Plan. Accepts a complete ordered list of step ARNs.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { DrsClient, ReorderRecoveryPlanStepsCommand } from "@aws-sdk/client-drs"; // ES Modules import
32
+ * // const { DrsClient, ReorderRecoveryPlanStepsCommand } = 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 = { // ReorderRecoveryPlanStepsRequest
37
+ * recoveryPlanArn: "STRING_VALUE", // required
38
+ * orderedStepArns: [ // RecoveryPlanStepArnList // required
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * };
42
+ * const command = new ReorderRecoveryPlanStepsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ReorderRecoveryPlanStepsResponse
45
+ * // recoveryPlanSteps: [ // RecoveryPlanStepList // required
46
+ * // { // RecoveryPlanStep
47
+ * // recoveryPlanStepArn: "STRING_VALUE", // required
48
+ * // stepOrder: Number("int"), // required
49
+ * // stepName: "STRING_VALUE", // required
50
+ * // configuration: { // RecoveryPlanStepConfiguration Union: only one key present
51
+ * // serverStepConfiguration: { // ServerStepConfiguration
52
+ * // servers: [ // RecoveryPlanServers // required
53
+ * // { // RecoveryPlanServer
54
+ * // serverArn: "STRING_VALUE", // required
55
+ * // impactLevel: "STRING_VALUE",
56
+ * // },
57
+ * // ],
58
+ * // },
59
+ * // waitStepConfiguration: { // WaitStepConfiguration
60
+ * // waitDurationMinutes: Number("int"), // required
61
+ * // },
62
+ * // },
63
+ * // createdAt: "STRING_VALUE", // required
64
+ * // updatedAt: "STRING_VALUE", // required
65
+ * // },
66
+ * // ],
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param ReorderRecoveryPlanStepsCommandInput - {@link ReorderRecoveryPlanStepsCommandInput}
72
+ * @returns {@link ReorderRecoveryPlanStepsCommandOutput}
73
+ * @see {@link ReorderRecoveryPlanStepsCommandInput} for command's `input` shape.
74
+ * @see {@link ReorderRecoveryPlanStepsCommandOutput} for command's `response` shape.
75
+ * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>You do not have sufficient access to perform this action.</p>
79
+ *
80
+ * @throws {@link ConflictException} (client fault)
81
+ * <p>The request could not be completed due to a conflict with the current state of the target resource.</p>
82
+ *
83
+ * @throws {@link InternalServerException} (server fault)
84
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
85
+ *
86
+ * @throws {@link ResourceNotFoundException} (client fault)
87
+ * <p>The resource for this operation was not found.</p>
88
+ *
89
+ * @throws {@link ThrottlingException} (client fault)
90
+ * <p>The request was denied due to request throttling.</p>
91
+ *
92
+ * @throws {@link UninitializedAccountException} (client fault)
93
+ * <p>The account performing the request has not been initialized.</p>
94
+ *
95
+ * @throws {@link ValidationException} (client fault)
96
+ * <p>The input fails to satisfy the constraints specified by the AWS service.</p>
97
+ *
98
+ * @throws {@link DrsServiceException}
99
+ * <p>Base exception class for all service exceptions from Drs service.</p>
100
+ *
101
+ *
102
+ * @public
103
+ */
104
+ export declare class ReorderRecoveryPlanStepsCommand extends ReorderRecoveryPlanStepsCommand_base {
105
+ /** @internal type navigation helper, not in runtime. */
106
+ protected static __types: {
107
+ api: {
108
+ input: ReorderRecoveryPlanStepsRequest;
109
+ output: ReorderRecoveryPlanStepsResponse;
110
+ };
111
+ sdk: {
112
+ input: ReorderRecoveryPlanStepsCommandInput;
113
+ output: ReorderRecoveryPlanStepsCommandOutput;
114
+ };
115
+ };
116
+ }
@@ -0,0 +1,118 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { RetryRecoveryPlanExecutionStepRequest, RetryRecoveryPlanExecutionStepResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link RetryRecoveryPlanExecutionStepCommand}.
11
+ */
12
+ export interface RetryRecoveryPlanExecutionStepCommandInput extends RetryRecoveryPlanExecutionStepRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link RetryRecoveryPlanExecutionStepCommand}.
18
+ */
19
+ export interface RetryRecoveryPlanExecutionStepCommandOutput extends RetryRecoveryPlanExecutionStepResponse, __MetadataBearer {
20
+ }
21
+ declare const RetryRecoveryPlanExecutionStepCommand_base: {
22
+ new (input: RetryRecoveryPlanExecutionStepCommandInput): import("@smithy/core/client").CommandImpl<RetryRecoveryPlanExecutionStepCommandInput, RetryRecoveryPlanExecutionStepCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: RetryRecoveryPlanExecutionStepCommandInput): import("@smithy/core/client").CommandImpl<RetryRecoveryPlanExecutionStepCommandInput, RetryRecoveryPlanExecutionStepCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Retries a failed <code>SERVER</code> type execution step.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { DrsClient, RetryRecoveryPlanExecutionStepCommand } from "@aws-sdk/client-drs"; // ES Modules import
32
+ * // const { DrsClient, RetryRecoveryPlanExecutionStepCommand } = 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 = { // RetryRecoveryPlanExecutionStepRequest
37
+ * recoveryPlanExecutionStepArn: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new RetryRecoveryPlanExecutionStepCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // RetryRecoveryPlanExecutionStepResponse
42
+ * // recoveryPlanExecutionStep: { // RecoveryPlanExecutionStep
43
+ * // recoveryPlanExecutionStepArn: "STRING_VALUE", // required
44
+ * // stepIndex: Number("int"), // required
45
+ * // status: "STRING_VALUE", // required
46
+ * // stepName: "STRING_VALUE", // required
47
+ * // configuration: { // RecoveryPlanExecutionStepConfiguration Union: only one key present
48
+ * // executionServerStepConfiguration: { // ExecutionServerStepConfiguration
49
+ * // servers: [ // RecoveryPlanExecutionServers // required
50
+ * // { // RecoveryPlanExecutionServer
51
+ * // serverArn: "STRING_VALUE", // required
52
+ * // impactLevel: "STRING_VALUE",
53
+ * // jobID: "STRING_VALUE",
54
+ * // },
55
+ * // ],
56
+ * // },
57
+ * // waitStepConfiguration: { // WaitStepConfiguration
58
+ * // waitDurationMinutes: Number("int"), // required
59
+ * // },
60
+ * // },
61
+ * // errorDetail: { // ErrorDetail
62
+ * // message: "STRING_VALUE", // required
63
+ * // code: "STRING_VALUE", // required
64
+ * // },
65
+ * // attempt: Number("int"), // required
66
+ * // createdAt: "STRING_VALUE", // required
67
+ * // updatedAt: "STRING_VALUE", // required
68
+ * // },
69
+ * // };
70
+ *
71
+ * ```
72
+ *
73
+ * @param RetryRecoveryPlanExecutionStepCommandInput - {@link RetryRecoveryPlanExecutionStepCommandInput}
74
+ * @returns {@link RetryRecoveryPlanExecutionStepCommandOutput}
75
+ * @see {@link RetryRecoveryPlanExecutionStepCommandInput} for command's `input` shape.
76
+ * @see {@link RetryRecoveryPlanExecutionStepCommandOutput} for command's `response` shape.
77
+ * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape.
78
+ *
79
+ * @throws {@link AccessDeniedException} (client fault)
80
+ * <p>You do not have sufficient access to perform this action.</p>
81
+ *
82
+ * @throws {@link ConflictException} (client fault)
83
+ * <p>The request could not be completed due to a conflict with the current state of the target resource.</p>
84
+ *
85
+ * @throws {@link InternalServerException} (server fault)
86
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
87
+ *
88
+ * @throws {@link ResourceNotFoundException} (client fault)
89
+ * <p>The resource for this operation was not found.</p>
90
+ *
91
+ * @throws {@link ThrottlingException} (client fault)
92
+ * <p>The request was denied due to request throttling.</p>
93
+ *
94
+ * @throws {@link UninitializedAccountException} (client fault)
95
+ * <p>The account performing the request has not been initialized.</p>
96
+ *
97
+ * @throws {@link ValidationException} (client fault)
98
+ * <p>The input fails to satisfy the constraints specified by the AWS service.</p>
99
+ *
100
+ * @throws {@link DrsServiceException}
101
+ * <p>Base exception class for all service exceptions from Drs service.</p>
102
+ *
103
+ *
104
+ * @public
105
+ */
106
+ export declare class RetryRecoveryPlanExecutionStepCommand extends RetryRecoveryPlanExecutionStepCommand_base {
107
+ /** @internal type navigation helper, not in runtime. */
108
+ protected static __types: {
109
+ api: {
110
+ input: RetryRecoveryPlanExecutionStepRequest;
111
+ output: RetryRecoveryPlanExecutionStepResponse;
112
+ };
113
+ sdk: {
114
+ input: RetryRecoveryPlanExecutionStepCommandInput;
115
+ output: RetryRecoveryPlanExecutionStepCommandOutput;
116
+ };
117
+ };
118
+ }
@@ -0,0 +1,120 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { StartRecoveryPlanExecutionRequest, StartRecoveryPlanExecutionResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link StartRecoveryPlanExecutionCommand}.
11
+ */
12
+ export interface StartRecoveryPlanExecutionCommandInput extends StartRecoveryPlanExecutionRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link StartRecoveryPlanExecutionCommand}.
18
+ */
19
+ export interface StartRecoveryPlanExecutionCommandOutput extends StartRecoveryPlanExecutionResponse, __MetadataBearer {
20
+ }
21
+ declare const StartRecoveryPlanExecutionCommand_base: {
22
+ new (input: StartRecoveryPlanExecutionCommandInput): import("@smithy/core/client").CommandImpl<StartRecoveryPlanExecutionCommandInput, StartRecoveryPlanExecutionCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: StartRecoveryPlanExecutionCommandInput): import("@smithy/core/client").CommandImpl<StartRecoveryPlanExecutionCommandInput, StartRecoveryPlanExecutionCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Starts executing a Recovery Plan in <code>DRILL</code> or <code>RECOVERY</code> mode. A plan cannot have more than one execution in a non-terminal status at a time.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { DrsClient, StartRecoveryPlanExecutionCommand } from "@aws-sdk/client-drs"; // ES Modules import
32
+ * // const { DrsClient, StartRecoveryPlanExecutionCommand } = 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 = { // StartRecoveryPlanExecutionRequest
37
+ * recoveryPlanArn: "STRING_VALUE", // required
38
+ * mode: "STRING_VALUE", // required
39
+ * clientToken: "STRING_VALUE",
40
+ * sourceServers: [ // RecoveryPlanExecutionSourceServerList
41
+ * { // RecoveryPlanExecutionSourceServer
42
+ * sourceServerID: "STRING_VALUE", // required
43
+ * recoverySnapshotID: "STRING_VALUE", // required
44
+ * },
45
+ * ],
46
+ * tags: { // TagsMap
47
+ * "<keys>": "STRING_VALUE",
48
+ * },
49
+ * };
50
+ * const command = new StartRecoveryPlanExecutionCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // StartRecoveryPlanExecutionResponse
53
+ * // recoveryPlanExecution: { // RecoveryPlanExecution
54
+ * // recoveryPlanExecutionArn: "STRING_VALUE", // required
55
+ * // recoveryPlanArn: "STRING_VALUE", // required
56
+ * // mode: "STRING_VALUE", // required
57
+ * // status: "STRING_VALUE", // required
58
+ * // startedAt: "STRING_VALUE", // required
59
+ * // completedAt: "STRING_VALUE",
60
+ * // errorDetail: { // ErrorDetail
61
+ * // message: "STRING_VALUE", // required
62
+ * // code: "STRING_VALUE", // required
63
+ * // },
64
+ * // tags: { // TagsMap
65
+ * // "<keys>": "STRING_VALUE",
66
+ * // },
67
+ * // },
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param StartRecoveryPlanExecutionCommandInput - {@link StartRecoveryPlanExecutionCommandInput}
73
+ * @returns {@link StartRecoveryPlanExecutionCommandOutput}
74
+ * @see {@link StartRecoveryPlanExecutionCommandInput} for command's `input` shape.
75
+ * @see {@link StartRecoveryPlanExecutionCommandOutput} for command's `response` shape.
76
+ * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape.
77
+ *
78
+ * @throws {@link AccessDeniedException} (client fault)
79
+ * <p>You do not have sufficient access to perform this action.</p>
80
+ *
81
+ * @throws {@link ConflictException} (client fault)
82
+ * <p>The request could not be completed due to a conflict with the current state of the target resource.</p>
83
+ *
84
+ * @throws {@link InternalServerException} (server fault)
85
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * <p>The resource for this operation was not found.</p>
89
+ *
90
+ * @throws {@link ServiceQuotaExceededException} (client fault)
91
+ * <p>The request could not be completed because its exceeded the service quota.</p>
92
+ *
93
+ * @throws {@link ThrottlingException} (client fault)
94
+ * <p>The request was denied due to request throttling.</p>
95
+ *
96
+ * @throws {@link UninitializedAccountException} (client fault)
97
+ * <p>The account performing the request has not been initialized.</p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p>The input fails to satisfy the constraints specified by the AWS service.</p>
101
+ *
102
+ * @throws {@link DrsServiceException}
103
+ * <p>Base exception class for all service exceptions from Drs service.</p>
104
+ *
105
+ *
106
+ * @public
107
+ */
108
+ export declare class StartRecoveryPlanExecutionCommand extends StartRecoveryPlanExecutionCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: StartRecoveryPlanExecutionRequest;
113
+ output: StartRecoveryPlanExecutionResponse;
114
+ };
115
+ sdk: {
116
+ input: StartRecoveryPlanExecutionCommandInput;
117
+ output: StartRecoveryPlanExecutionCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -0,0 +1,104 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UpdateRecoveryPlanRequest, UpdateRecoveryPlanResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UpdateRecoveryPlanCommand}.
11
+ */
12
+ export interface UpdateRecoveryPlanCommandInput extends UpdateRecoveryPlanRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UpdateRecoveryPlanCommand}.
18
+ */
19
+ export interface UpdateRecoveryPlanCommandOutput extends UpdateRecoveryPlanResponse, __MetadataBearer {
20
+ }
21
+ declare const UpdateRecoveryPlanCommand_base: {
22
+ new (input: UpdateRecoveryPlanCommandInput): import("@smithy/core/client").CommandImpl<UpdateRecoveryPlanCommandInput, UpdateRecoveryPlanCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UpdateRecoveryPlanCommandInput): import("@smithy/core/client").CommandImpl<UpdateRecoveryPlanCommandInput, UpdateRecoveryPlanCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates a Recovery Plan's name or description.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { DrsClient, UpdateRecoveryPlanCommand } from "@aws-sdk/client-drs"; // ES Modules import
32
+ * // const { DrsClient, UpdateRecoveryPlanCommand } = 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 = { // UpdateRecoveryPlanRequest
37
+ * recoveryPlanArn: "STRING_VALUE", // required
38
+ * name: "STRING_VALUE",
39
+ * description: "STRING_VALUE",
40
+ * };
41
+ * const command = new UpdateRecoveryPlanCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // UpdateRecoveryPlanResponse
44
+ * // recoveryPlan: { // RecoveryPlan
45
+ * // recoveryPlanArn: "STRING_VALUE", // required
46
+ * // name: "STRING_VALUE", // required
47
+ * // description: "STRING_VALUE",
48
+ * // status: "STRING_VALUE", // required
49
+ * // createdAt: "STRING_VALUE", // required
50
+ * // updatedAt: "STRING_VALUE", // required
51
+ * // tags: { // TagsMap
52
+ * // "<keys>": "STRING_VALUE",
53
+ * // },
54
+ * // },
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param UpdateRecoveryPlanCommandInput - {@link UpdateRecoveryPlanCommandInput}
60
+ * @returns {@link UpdateRecoveryPlanCommandOutput}
61
+ * @see {@link UpdateRecoveryPlanCommandInput} for command's `input` shape.
62
+ * @see {@link UpdateRecoveryPlanCommandOutput} for command's `response` shape.
63
+ * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>You do not have sufficient access to perform this action.</p>
67
+ *
68
+ * @throws {@link ConflictException} (client fault)
69
+ * <p>The request could not be completed due to a conflict with the current state of the target resource.</p>
70
+ *
71
+ * @throws {@link InternalServerException} (server fault)
72
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
73
+ *
74
+ * @throws {@link ResourceNotFoundException} (client fault)
75
+ * <p>The resource for this operation was not found.</p>
76
+ *
77
+ * @throws {@link ThrottlingException} (client fault)
78
+ * <p>The request was denied due to request throttling.</p>
79
+ *
80
+ * @throws {@link UninitializedAccountException} (client fault)
81
+ * <p>The account performing the request has not been initialized.</p>
82
+ *
83
+ * @throws {@link ValidationException} (client fault)
84
+ * <p>The input fails to satisfy the constraints specified by the AWS service.</p>
85
+ *
86
+ * @throws {@link DrsServiceException}
87
+ * <p>Base exception class for all service exceptions from Drs service.</p>
88
+ *
89
+ *
90
+ * @public
91
+ */
92
+ export declare class UpdateRecoveryPlanCommand extends UpdateRecoveryPlanCommand_base {
93
+ /** @internal type navigation helper, not in runtime. */
94
+ protected static __types: {
95
+ api: {
96
+ input: UpdateRecoveryPlanRequest;
97
+ output: UpdateRecoveryPlanResponse;
98
+ };
99
+ sdk: {
100
+ input: UpdateRecoveryPlanCommandInput;
101
+ output: UpdateRecoveryPlanCommandOutput;
102
+ };
103
+ };
104
+ }
@@ -0,0 +1,126 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { UpdateRecoveryPlanExecutionStepRequest, UpdateRecoveryPlanExecutionStepResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link UpdateRecoveryPlanExecutionStepCommand}.
11
+ */
12
+ export interface UpdateRecoveryPlanExecutionStepCommandInput extends UpdateRecoveryPlanExecutionStepRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link UpdateRecoveryPlanExecutionStepCommand}.
18
+ */
19
+ export interface UpdateRecoveryPlanExecutionStepCommandOutput extends UpdateRecoveryPlanExecutionStepResponse, __MetadataBearer {
20
+ }
21
+ declare const UpdateRecoveryPlanExecutionStepCommand_base: {
22
+ new (input: UpdateRecoveryPlanExecutionStepCommandInput): import("@smithy/core/client").CommandImpl<UpdateRecoveryPlanExecutionStepCommandInput, UpdateRecoveryPlanExecutionStepCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: UpdateRecoveryPlanExecutionStepCommandInput): import("@smithy/core/client").CommandImpl<UpdateRecoveryPlanExecutionStepCommandInput, UpdateRecoveryPlanExecutionStepCommandOutput, import("..").DrsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Updates an execution step. Supports two actions: (1) skip a step that is in <code>NOT_STARTED</code> or <code>FAILED</code> status; (2) update the wait duration of a <code>WAIT</code> type step that is in <code>NOT_STARTED</code> status.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { DrsClient, UpdateRecoveryPlanExecutionStepCommand } from "@aws-sdk/client-drs"; // ES Modules import
32
+ * // const { DrsClient, UpdateRecoveryPlanExecutionStepCommand } = 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 = { // UpdateRecoveryPlanExecutionStepRequest
37
+ * recoveryPlanExecutionStepArn: "STRING_VALUE", // required
38
+ * status: "STRING_VALUE",
39
+ * servers: [ // RecoveryPlanServers
40
+ * { // RecoveryPlanServer
41
+ * serverArn: "STRING_VALUE", // required
42
+ * impactLevel: "STRING_VALUE",
43
+ * },
44
+ * ],
45
+ * waitDurationMinutes: Number("int"),
46
+ * };
47
+ * const command = new UpdateRecoveryPlanExecutionStepCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // UpdateRecoveryPlanExecutionStepResponse
50
+ * // recoveryPlanExecutionStep: { // RecoveryPlanExecutionStep
51
+ * // recoveryPlanExecutionStepArn: "STRING_VALUE", // required
52
+ * // stepIndex: Number("int"), // required
53
+ * // status: "STRING_VALUE", // required
54
+ * // stepName: "STRING_VALUE", // required
55
+ * // configuration: { // RecoveryPlanExecutionStepConfiguration Union: only one key present
56
+ * // executionServerStepConfiguration: { // ExecutionServerStepConfiguration
57
+ * // servers: [ // RecoveryPlanExecutionServers // required
58
+ * // { // RecoveryPlanExecutionServer
59
+ * // serverArn: "STRING_VALUE", // required
60
+ * // impactLevel: "STRING_VALUE",
61
+ * // jobID: "STRING_VALUE",
62
+ * // },
63
+ * // ],
64
+ * // },
65
+ * // waitStepConfiguration: { // WaitStepConfiguration
66
+ * // waitDurationMinutes: Number("int"), // required
67
+ * // },
68
+ * // },
69
+ * // errorDetail: { // ErrorDetail
70
+ * // message: "STRING_VALUE", // required
71
+ * // code: "STRING_VALUE", // required
72
+ * // },
73
+ * // attempt: Number("int"), // required
74
+ * // createdAt: "STRING_VALUE", // required
75
+ * // updatedAt: "STRING_VALUE", // required
76
+ * // },
77
+ * // };
78
+ *
79
+ * ```
80
+ *
81
+ * @param UpdateRecoveryPlanExecutionStepCommandInput - {@link UpdateRecoveryPlanExecutionStepCommandInput}
82
+ * @returns {@link UpdateRecoveryPlanExecutionStepCommandOutput}
83
+ * @see {@link UpdateRecoveryPlanExecutionStepCommandInput} for command's `input` shape.
84
+ * @see {@link UpdateRecoveryPlanExecutionStepCommandOutput} for command's `response` shape.
85
+ * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape.
86
+ *
87
+ * @throws {@link AccessDeniedException} (client fault)
88
+ * <p>You do not have sufficient access to perform this action.</p>
89
+ *
90
+ * @throws {@link ConflictException} (client fault)
91
+ * <p>The request could not be completed due to a conflict with the current state of the target resource.</p>
92
+ *
93
+ * @throws {@link InternalServerException} (server fault)
94
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
95
+ *
96
+ * @throws {@link ResourceNotFoundException} (client fault)
97
+ * <p>The resource for this operation was not found.</p>
98
+ *
99
+ * @throws {@link ThrottlingException} (client fault)
100
+ * <p>The request was denied due to request throttling.</p>
101
+ *
102
+ * @throws {@link UninitializedAccountException} (client fault)
103
+ * <p>The account performing the request has not been initialized.</p>
104
+ *
105
+ * @throws {@link ValidationException} (client fault)
106
+ * <p>The input fails to satisfy the constraints specified by the AWS service.</p>
107
+ *
108
+ * @throws {@link DrsServiceException}
109
+ * <p>Base exception class for all service exceptions from Drs service.</p>
110
+ *
111
+ *
112
+ * @public
113
+ */
114
+ export declare class UpdateRecoveryPlanExecutionStepCommand extends UpdateRecoveryPlanExecutionStepCommand_base {
115
+ /** @internal type navigation helper, not in runtime. */
116
+ protected static __types: {
117
+ api: {
118
+ input: UpdateRecoveryPlanExecutionStepRequest;
119
+ output: UpdateRecoveryPlanExecutionStepResponse;
120
+ };
121
+ sdk: {
122
+ input: UpdateRecoveryPlanExecutionStepCommandInput;
123
+ output: UpdateRecoveryPlanExecutionStepCommandOutput;
124
+ };
125
+ };
126
+ }