@aws-sdk/client-arc-region-switch 3.859.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 (207) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +365 -0
  3. package/dist-cjs/ARCRegionSwitch.js +51 -0
  4. package/dist-cjs/ARCRegionSwitchClient.js +52 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/ApprovePlanExecutionStepCommand.js +26 -0
  8. package/dist-cjs/commands/CancelPlanExecutionCommand.js +26 -0
  9. package/dist-cjs/commands/CreatePlanCommand.js +29 -0
  10. package/dist-cjs/commands/DeletePlanCommand.js +29 -0
  11. package/dist-cjs/commands/GetPlanCommand.js +29 -0
  12. package/dist-cjs/commands/GetPlanEvaluationStatusCommand.js +26 -0
  13. package/dist-cjs/commands/GetPlanExecutionCommand.js +26 -0
  14. package/dist-cjs/commands/GetPlanInRegionCommand.js +26 -0
  15. package/dist-cjs/commands/ListPlanExecutionEventsCommand.js +26 -0
  16. package/dist-cjs/commands/ListPlanExecutionsCommand.js +26 -0
  17. package/dist-cjs/commands/ListPlansCommand.js +29 -0
  18. package/dist-cjs/commands/ListPlansInRegionCommand.js +26 -0
  19. package/dist-cjs/commands/ListRoute53HealthChecksCommand.js +29 -0
  20. package/dist-cjs/commands/ListTagsForResourceCommand.js +29 -0
  21. package/dist-cjs/commands/StartPlanExecutionCommand.js +26 -0
  22. package/dist-cjs/commands/TagResourceCommand.js +29 -0
  23. package/dist-cjs/commands/UntagResourceCommand.js +29 -0
  24. package/dist-cjs/commands/UpdatePlanCommand.js +29 -0
  25. package/dist-cjs/commands/UpdatePlanExecutionCommand.js +26 -0
  26. package/dist-cjs/commands/UpdatePlanExecutionStepCommand.js +26 -0
  27. package/dist-cjs/commands/index.js +23 -0
  28. package/dist-cjs/endpoint/EndpointParameters.js +15 -0
  29. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  30. package/dist-cjs/endpoint/ruleset.js +7 -0
  31. package/dist-cjs/extensionConfiguration.js +2 -0
  32. package/dist-cjs/index.js +12 -0
  33. package/dist-cjs/models/ARCRegionSwitchServiceException.js +12 -0
  34. package/dist-cjs/models/index.js +4 -0
  35. package/dist-cjs/models/models_0.js +233 -0
  36. package/dist-cjs/pagination/GetPlanEvaluationStatusPaginator.js +7 -0
  37. package/dist-cjs/pagination/GetPlanExecutionPaginator.js +7 -0
  38. package/dist-cjs/pagination/Interfaces.js +2 -0
  39. package/dist-cjs/pagination/ListPlanExecutionEventsPaginator.js +7 -0
  40. package/dist-cjs/pagination/ListPlanExecutionsPaginator.js +7 -0
  41. package/dist-cjs/pagination/ListPlansInRegionPaginator.js +7 -0
  42. package/dist-cjs/pagination/ListPlansPaginator.js +7 -0
  43. package/dist-cjs/pagination/ListRoute53HealthChecksPaginator.js +7 -0
  44. package/dist-cjs/pagination/index.js +11 -0
  45. package/dist-cjs/protocols/Aws_json1_0.js +919 -0
  46. package/dist-cjs/runtimeConfig.browser.js +39 -0
  47. package/dist-cjs/runtimeConfig.js +56 -0
  48. package/dist-cjs/runtimeConfig.native.js +15 -0
  49. package/dist-cjs/runtimeConfig.shared.js +34 -0
  50. package/dist-cjs/runtimeExtensions.js +13 -0
  51. package/dist-cjs/waiters/index.js +5 -0
  52. package/dist-cjs/waiters/waitForPlanEvaluationStatusPassed.js +54 -0
  53. package/dist-cjs/waiters/waitForPlanExecutionCompleted.js +72 -0
  54. package/dist-es/ARCRegionSwitch.js +47 -0
  55. package/dist-es/ARCRegionSwitchClient.js +48 -0
  56. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  57. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  58. package/dist-es/commands/ApprovePlanExecutionStepCommand.js +22 -0
  59. package/dist-es/commands/CancelPlanExecutionCommand.js +22 -0
  60. package/dist-es/commands/CreatePlanCommand.js +25 -0
  61. package/dist-es/commands/DeletePlanCommand.js +25 -0
  62. package/dist-es/commands/GetPlanCommand.js +25 -0
  63. package/dist-es/commands/GetPlanEvaluationStatusCommand.js +22 -0
  64. package/dist-es/commands/GetPlanExecutionCommand.js +22 -0
  65. package/dist-es/commands/GetPlanInRegionCommand.js +22 -0
  66. package/dist-es/commands/ListPlanExecutionEventsCommand.js +22 -0
  67. package/dist-es/commands/ListPlanExecutionsCommand.js +22 -0
  68. package/dist-es/commands/ListPlansCommand.js +25 -0
  69. package/dist-es/commands/ListPlansInRegionCommand.js +22 -0
  70. package/dist-es/commands/ListRoute53HealthChecksCommand.js +25 -0
  71. package/dist-es/commands/ListTagsForResourceCommand.js +25 -0
  72. package/dist-es/commands/StartPlanExecutionCommand.js +22 -0
  73. package/dist-es/commands/TagResourceCommand.js +25 -0
  74. package/dist-es/commands/UntagResourceCommand.js +25 -0
  75. package/dist-es/commands/UpdatePlanCommand.js +25 -0
  76. package/dist-es/commands/UpdatePlanExecutionCommand.js +22 -0
  77. package/dist-es/commands/UpdatePlanExecutionStepCommand.js +22 -0
  78. package/dist-es/commands/index.js +20 -0
  79. package/dist-es/endpoint/EndpointParameters.js +11 -0
  80. package/dist-es/endpoint/endpointResolver.js +14 -0
  81. package/dist-es/endpoint/ruleset.js +4 -0
  82. package/dist-es/extensionConfiguration.js +1 -0
  83. package/dist-es/index.js +7 -0
  84. package/dist-es/models/ARCRegionSwitchServiceException.js +8 -0
  85. package/dist-es/models/index.js +1 -0
  86. package/dist-es/models/models_0.js +225 -0
  87. package/dist-es/pagination/GetPlanEvaluationStatusPaginator.js +4 -0
  88. package/dist-es/pagination/GetPlanExecutionPaginator.js +4 -0
  89. package/dist-es/pagination/Interfaces.js +1 -0
  90. package/dist-es/pagination/ListPlanExecutionEventsPaginator.js +4 -0
  91. package/dist-es/pagination/ListPlanExecutionsPaginator.js +4 -0
  92. package/dist-es/pagination/ListPlansInRegionPaginator.js +4 -0
  93. package/dist-es/pagination/ListPlansPaginator.js +4 -0
  94. package/dist-es/pagination/ListRoute53HealthChecksPaginator.js +4 -0
  95. package/dist-es/pagination/index.js +8 -0
  96. package/dist-es/protocols/Aws_json1_0.js +876 -0
  97. package/dist-es/runtimeConfig.browser.js +34 -0
  98. package/dist-es/runtimeConfig.js +51 -0
  99. package/dist-es/runtimeConfig.native.js +11 -0
  100. package/dist-es/runtimeConfig.shared.js +30 -0
  101. package/dist-es/runtimeExtensions.js +9 -0
  102. package/dist-es/waiters/index.js +2 -0
  103. package/dist-es/waiters/waitForPlanEvaluationStatusPassed.js +49 -0
  104. package/dist-es/waiters/waitForPlanExecutionCompleted.js +67 -0
  105. package/dist-types/ARCRegionSwitch.d.ts +152 -0
  106. package/dist-types/ARCRegionSwitchClient.d.ts +207 -0
  107. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  108. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  109. package/dist-types/commands/ApprovePlanExecutionStepCommand.d.ts +80 -0
  110. package/dist-types/commands/CancelPlanExecutionCommand.d.ts +78 -0
  111. package/dist-types/commands/CreatePlanCommand.d.ts +697 -0
  112. package/dist-types/commands/DeletePlanCommand.d.ts +76 -0
  113. package/dist-types/commands/GetPlanCommand.d.ts +389 -0
  114. package/dist-types/commands/GetPlanEvaluationStatusCommand.d.ts +99 -0
  115. package/dist-types/commands/GetPlanExecutionCommand.d.ts +417 -0
  116. package/dist-types/commands/GetPlanInRegionCommand.d.ts +392 -0
  117. package/dist-types/commands/ListPlanExecutionEventsCommand.d.ts +97 -0
  118. package/dist-types/commands/ListPlanExecutionsCommand.d.ts +97 -0
  119. package/dist-types/commands/ListPlansCommand.d.ts +91 -0
  120. package/dist-types/commands/ListPlansInRegionCommand.d.ts +94 -0
  121. package/dist-types/commands/ListRoute53HealthChecksCommand.d.ts +93 -0
  122. package/dist-types/commands/ListTagsForResourceCommand.d.ts +80 -0
  123. package/dist-types/commands/StartPlanExecutionCommand.d.ts +93 -0
  124. package/dist-types/commands/TagResourceCommand.d.ts +79 -0
  125. package/dist-types/commands/UntagResourceCommand.d.ts +79 -0
  126. package/dist-types/commands/UpdatePlanCommand.d.ts +692 -0
  127. package/dist-types/commands/UpdatePlanExecutionCommand.d.ts +82 -0
  128. package/dist-types/commands/UpdatePlanExecutionStepCommand.d.ts +80 -0
  129. package/dist-types/commands/index.d.ts +20 -0
  130. package/dist-types/endpoint/EndpointParameters.d.ts +33 -0
  131. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  132. package/dist-types/endpoint/ruleset.d.ts +2 -0
  133. package/dist-types/extensionConfiguration.d.ts +9 -0
  134. package/dist-types/index.d.ts +15 -0
  135. package/dist-types/models/ARCRegionSwitchServiceException.d.ts +14 -0
  136. package/dist-types/models/index.d.ts +1 -0
  137. package/dist-types/models/models_0.d.ts +2370 -0
  138. package/dist-types/pagination/GetPlanEvaluationStatusPaginator.d.ts +7 -0
  139. package/dist-types/pagination/GetPlanExecutionPaginator.d.ts +7 -0
  140. package/dist-types/pagination/Interfaces.d.ts +8 -0
  141. package/dist-types/pagination/ListPlanExecutionEventsPaginator.d.ts +7 -0
  142. package/dist-types/pagination/ListPlanExecutionsPaginator.d.ts +7 -0
  143. package/dist-types/pagination/ListPlansInRegionPaginator.d.ts +7 -0
  144. package/dist-types/pagination/ListPlansPaginator.d.ts +7 -0
  145. package/dist-types/pagination/ListRoute53HealthChecksPaginator.d.ts +7 -0
  146. package/dist-types/pagination/index.d.ts +8 -0
  147. package/dist-types/protocols/Aws_json1_0.d.ts +182 -0
  148. package/dist-types/runtimeConfig.browser.d.ts +50 -0
  149. package/dist-types/runtimeConfig.d.ts +50 -0
  150. package/dist-types/runtimeConfig.native.d.ts +49 -0
  151. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  152. package/dist-types/runtimeExtensions.d.ts +17 -0
  153. package/dist-types/ts3.4/ARCRegionSwitch.d.ts +349 -0
  154. package/dist-types/ts3.4/ARCRegionSwitchClient.d.ts +240 -0
  155. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  156. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  157. package/dist-types/ts3.4/commands/ApprovePlanExecutionStepCommand.d.ts +51 -0
  158. package/dist-types/ts3.4/commands/CancelPlanExecutionCommand.d.ts +51 -0
  159. package/dist-types/ts3.4/commands/CreatePlanCommand.d.ts +47 -0
  160. package/dist-types/ts3.4/commands/DeletePlanCommand.d.ts +47 -0
  161. package/dist-types/ts3.4/commands/GetPlanCommand.d.ts +43 -0
  162. package/dist-types/ts3.4/commands/GetPlanEvaluationStatusCommand.d.ts +51 -0
  163. package/dist-types/ts3.4/commands/GetPlanExecutionCommand.d.ts +50 -0
  164. package/dist-types/ts3.4/commands/GetPlanInRegionCommand.d.ts +50 -0
  165. package/dist-types/ts3.4/commands/ListPlanExecutionEventsCommand.d.ts +51 -0
  166. package/dist-types/ts3.4/commands/ListPlanExecutionsCommand.d.ts +51 -0
  167. package/dist-types/ts3.4/commands/ListPlansCommand.d.ts +47 -0
  168. package/dist-types/ts3.4/commands/ListPlansInRegionCommand.d.ts +51 -0
  169. package/dist-types/ts3.4/commands/ListRoute53HealthChecksCommand.d.ts +51 -0
  170. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  171. package/dist-types/ts3.4/commands/StartPlanExecutionCommand.d.ts +51 -0
  172. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  173. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  174. package/dist-types/ts3.4/commands/UpdatePlanCommand.d.ts +47 -0
  175. package/dist-types/ts3.4/commands/UpdatePlanExecutionCommand.d.ts +51 -0
  176. package/dist-types/ts3.4/commands/UpdatePlanExecutionStepCommand.d.ts +51 -0
  177. package/dist-types/ts3.4/commands/index.d.ts +20 -0
  178. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +46 -0
  179. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  180. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  181. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  182. package/dist-types/ts3.4/index.d.ts +10 -0
  183. package/dist-types/ts3.4/models/ARCRegionSwitchServiceException.d.ts +9 -0
  184. package/dist-types/ts3.4/models/index.d.ts +1 -0
  185. package/dist-types/ts3.4/models/models_0.d.ts +813 -0
  186. package/dist-types/ts3.4/pagination/GetPlanEvaluationStatusPaginator.d.ts +11 -0
  187. package/dist-types/ts3.4/pagination/GetPlanExecutionPaginator.d.ts +11 -0
  188. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  189. package/dist-types/ts3.4/pagination/ListPlanExecutionEventsPaginator.d.ts +11 -0
  190. package/dist-types/ts3.4/pagination/ListPlanExecutionsPaginator.d.ts +11 -0
  191. package/dist-types/ts3.4/pagination/ListPlansInRegionPaginator.d.ts +11 -0
  192. package/dist-types/ts3.4/pagination/ListPlansPaginator.d.ts +11 -0
  193. package/dist-types/ts3.4/pagination/ListRoute53HealthChecksPaginator.d.ts +11 -0
  194. package/dist-types/ts3.4/pagination/index.d.ts +8 -0
  195. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +245 -0
  196. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  197. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  198. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  199. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  200. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  201. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  202. package/dist-types/ts3.4/waiters/waitForPlanEvaluationStatusPassed.d.ts +11 -0
  203. package/dist-types/ts3.4/waiters/waitForPlanExecutionCompleted.d.ts +11 -0
  204. package/dist-types/waiters/index.d.ts +2 -0
  205. package/dist-types/waiters/waitForPlanEvaluationStatusPassed.d.ts +14 -0
  206. package/dist-types/waiters/waitForPlanExecutionCompleted.d.ts +14 -0
  207. package/package.json +100 -0
@@ -0,0 +1,76 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCRegionSwitchClient";
4
+ import { DeletePlanRequest, DeletePlanResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeletePlanCommand}.
14
+ */
15
+ export interface DeletePlanCommandInput extends DeletePlanRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeletePlanCommand}.
21
+ */
22
+ export interface DeletePlanCommandOutput extends DeletePlanResponse, __MetadataBearer {
23
+ }
24
+ declare const DeletePlanCommand_base: {
25
+ new (input: DeletePlanCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePlanCommandInput, DeletePlanCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeletePlanCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePlanCommandInput, DeletePlanCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a Region switch plan. You must specify the ARN of the plan to delete.</p> <p>You cannot delete a plan that has an active execution in progress.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ARCRegionSwitchClient, DeletePlanCommand } from "@aws-sdk/client-arc-region-switch"; // ES Modules import
35
+ * // const { ARCRegionSwitchClient, DeletePlanCommand } = require("@aws-sdk/client-arc-region-switch"); // CommonJS import
36
+ * const client = new ARCRegionSwitchClient(config);
37
+ * const input = { // DeletePlanRequest
38
+ * arn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new DeletePlanCommand(input);
41
+ * const response = await client.send(command);
42
+ * // {};
43
+ *
44
+ * ```
45
+ *
46
+ * @param DeletePlanCommandInput - {@link DeletePlanCommandInput}
47
+ * @returns {@link DeletePlanCommandOutput}
48
+ * @see {@link DeletePlanCommandInput} for command's `input` shape.
49
+ * @see {@link DeletePlanCommandOutput} for command's `response` shape.
50
+ * @see {@link ARCRegionSwitchClientResolvedConfig | config} for ARCRegionSwitchClient's `config` shape.
51
+ *
52
+ * @throws {@link IllegalStateException} (client fault)
53
+ * <p>The operation failed because the current state of the resource doesn't allow the operation to proceed.</p> <p>HTTP Status Code: 400</p>
54
+ *
55
+ * @throws {@link ResourceNotFoundException} (client fault)
56
+ * <p>The specified resource was not found.</p> <p>HTTP Status Code: 404</p>
57
+ *
58
+ * @throws {@link ARCRegionSwitchServiceException}
59
+ * <p>Base exception class for all service exceptions from ARCRegionSwitch service.</p>
60
+ *
61
+ *
62
+ * @public
63
+ */
64
+ export declare class DeletePlanCommand extends DeletePlanCommand_base {
65
+ /** @internal type navigation helper, not in runtime. */
66
+ protected static __types: {
67
+ api: {
68
+ input: DeletePlanRequest;
69
+ output: {};
70
+ };
71
+ sdk: {
72
+ input: DeletePlanCommandInput;
73
+ output: DeletePlanCommandOutput;
74
+ };
75
+ };
76
+ }
@@ -0,0 +1,389 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCRegionSwitchClient";
4
+ import { GetPlanRequest, GetPlanResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetPlanCommand}.
14
+ */
15
+ export interface GetPlanCommandInput extends GetPlanRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetPlanCommand}.
21
+ */
22
+ export interface GetPlanCommandOutput extends GetPlanResponse, __MetadataBearer {
23
+ }
24
+ declare const GetPlanCommand_base: {
25
+ new (input: GetPlanCommandInput): import("@smithy/smithy-client").CommandImpl<GetPlanCommandInput, GetPlanCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetPlanCommandInput): import("@smithy/smithy-client").CommandImpl<GetPlanCommandInput, GetPlanCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves detailed information about a Region switch plan. You must specify the ARN of the plan.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ARCRegionSwitchClient, GetPlanCommand } from "@aws-sdk/client-arc-region-switch"; // ES Modules import
35
+ * // const { ARCRegionSwitchClient, GetPlanCommand } = require("@aws-sdk/client-arc-region-switch"); // CommonJS import
36
+ * const client = new ARCRegionSwitchClient(config);
37
+ * const input = { // GetPlanRequest
38
+ * arn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetPlanCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetPlanResponse
43
+ * // plan: { // Plan
44
+ * // arn: "STRING_VALUE", // required
45
+ * // description: "STRING_VALUE",
46
+ * // workflows: [ // WorkflowList // required
47
+ * // { // Workflow
48
+ * // steps: [ // Steps
49
+ * // { // Step
50
+ * // name: "STRING_VALUE", // required
51
+ * // description: "STRING_VALUE",
52
+ * // executionBlockConfiguration: { // ExecutionBlockConfiguration Union: only one key present
53
+ * // customActionLambdaConfig: { // CustomActionLambdaConfiguration
54
+ * // timeoutMinutes: Number("int"),
55
+ * // lambdas: [ // LambdaList // required
56
+ * // { // Lambdas
57
+ * // crossAccountRole: "STRING_VALUE",
58
+ * // externalId: "STRING_VALUE",
59
+ * // arn: "STRING_VALUE",
60
+ * // },
61
+ * // ],
62
+ * // retryIntervalMinutes: Number("float"), // required
63
+ * // regionToRun: "activatingRegion" || "deactivatingRegion", // required
64
+ * // ungraceful: { // LambdaUngraceful
65
+ * // behavior: "skip",
66
+ * // },
67
+ * // },
68
+ * // ec2AsgCapacityIncreaseConfig: { // Ec2AsgCapacityIncreaseConfiguration
69
+ * // timeoutMinutes: Number("int"),
70
+ * // asgs: [ // AsgList // required
71
+ * // { // Asg
72
+ * // crossAccountRole: "STRING_VALUE",
73
+ * // externalId: "STRING_VALUE",
74
+ * // arn: "STRING_VALUE",
75
+ * // },
76
+ * // ],
77
+ * // ungraceful: { // Ec2Ungraceful
78
+ * // minimumSuccessPercentage: Number("int"), // required
79
+ * // },
80
+ * // targetPercent: Number("int"),
81
+ * // capacityMonitoringApproach: "sampledMaxInLast24Hours" || "autoscalingMaxInLast24Hours",
82
+ * // },
83
+ * // executionApprovalConfig: { // ExecutionApprovalConfiguration
84
+ * // timeoutMinutes: Number("int"),
85
+ * // approvalRole: "STRING_VALUE", // required
86
+ * // },
87
+ * // arcRoutingControlConfig: { // ArcRoutingControlConfiguration
88
+ * // timeoutMinutes: Number("int"),
89
+ * // crossAccountRole: "STRING_VALUE",
90
+ * // externalId: "STRING_VALUE",
91
+ * // regionAndRoutingControls: { // RegionAndRoutingControls // required
92
+ * // "<keys>": [ // ArcRoutingControlStates
93
+ * // { // ArcRoutingControlState
94
+ * // routingControlArn: "STRING_VALUE", // required
95
+ * // state: "On" || "Off", // required
96
+ * // },
97
+ * // ],
98
+ * // },
99
+ * // },
100
+ * // globalAuroraConfig: { // GlobalAuroraConfiguration
101
+ * // timeoutMinutes: Number("int"),
102
+ * // crossAccountRole: "STRING_VALUE",
103
+ * // externalId: "STRING_VALUE",
104
+ * // behavior: "switchoverOnly" || "failover", // required
105
+ * // ungraceful: { // GlobalAuroraUngraceful
106
+ * // ungraceful: "failover",
107
+ * // },
108
+ * // globalClusterIdentifier: "STRING_VALUE", // required
109
+ * // databaseClusterArns: [ // AuroraClusterArns // required
110
+ * // "STRING_VALUE",
111
+ * // ],
112
+ * // },
113
+ * // parallelConfig: { // ParallelExecutionBlockConfiguration
114
+ * // steps: [ // required
115
+ * // {
116
+ * // name: "STRING_VALUE", // required
117
+ * // description: "STRING_VALUE",
118
+ * // executionBlockConfiguration: {// Union: only one key present
119
+ * // customActionLambdaConfig: {
120
+ * // timeoutMinutes: Number("int"),
121
+ * // lambdas: [ // required
122
+ * // {
123
+ * // crossAccountRole: "STRING_VALUE",
124
+ * // externalId: "STRING_VALUE",
125
+ * // arn: "STRING_VALUE",
126
+ * // },
127
+ * // ],
128
+ * // retryIntervalMinutes: Number("float"), // required
129
+ * // regionToRun: "activatingRegion" || "deactivatingRegion", // required
130
+ * // ungraceful: {
131
+ * // behavior: "skip",
132
+ * // },
133
+ * // },
134
+ * // ec2AsgCapacityIncreaseConfig: {
135
+ * // timeoutMinutes: Number("int"),
136
+ * // asgs: [ // required
137
+ * // {
138
+ * // crossAccountRole: "STRING_VALUE",
139
+ * // externalId: "STRING_VALUE",
140
+ * // arn: "STRING_VALUE",
141
+ * // },
142
+ * // ],
143
+ * // ungraceful: {
144
+ * // minimumSuccessPercentage: Number("int"), // required
145
+ * // },
146
+ * // targetPercent: Number("int"),
147
+ * // capacityMonitoringApproach: "sampledMaxInLast24Hours" || "autoscalingMaxInLast24Hours",
148
+ * // },
149
+ * // executionApprovalConfig: {
150
+ * // timeoutMinutes: Number("int"),
151
+ * // approvalRole: "STRING_VALUE", // required
152
+ * // },
153
+ * // arcRoutingControlConfig: {
154
+ * // timeoutMinutes: Number("int"),
155
+ * // crossAccountRole: "STRING_VALUE",
156
+ * // externalId: "STRING_VALUE",
157
+ * // regionAndRoutingControls: { // required
158
+ * // "<keys>": [
159
+ * // {
160
+ * // routingControlArn: "STRING_VALUE", // required
161
+ * // state: "On" || "Off", // required
162
+ * // },
163
+ * // ],
164
+ * // },
165
+ * // },
166
+ * // globalAuroraConfig: {
167
+ * // timeoutMinutes: Number("int"),
168
+ * // crossAccountRole: "STRING_VALUE",
169
+ * // externalId: "STRING_VALUE",
170
+ * // behavior: "switchoverOnly" || "failover", // required
171
+ * // ungraceful: {
172
+ * // ungraceful: "failover",
173
+ * // },
174
+ * // globalClusterIdentifier: "STRING_VALUE", // required
175
+ * // databaseClusterArns: [ // required
176
+ * // "STRING_VALUE",
177
+ * // ],
178
+ * // },
179
+ * // parallelConfig: {
180
+ * // steps: "<Steps>", // required
181
+ * // },
182
+ * // regionSwitchPlanConfig: { // RegionSwitchPlanConfiguration
183
+ * // crossAccountRole: "STRING_VALUE",
184
+ * // externalId: "STRING_VALUE",
185
+ * // arn: "STRING_VALUE", // required
186
+ * // },
187
+ * // ecsCapacityIncreaseConfig: { // EcsCapacityIncreaseConfiguration
188
+ * // timeoutMinutes: Number("int"),
189
+ * // services: [ // ServiceList // required
190
+ * // { // Service
191
+ * // crossAccountRole: "STRING_VALUE",
192
+ * // externalId: "STRING_VALUE",
193
+ * // clusterArn: "STRING_VALUE",
194
+ * // serviceArn: "STRING_VALUE",
195
+ * // },
196
+ * // ],
197
+ * // ungraceful: { // EcsUngraceful
198
+ * // minimumSuccessPercentage: Number("int"), // required
199
+ * // },
200
+ * // targetPercent: Number("int"),
201
+ * // capacityMonitoringApproach: "sampledMaxInLast24Hours" || "containerInsightsMaxInLast24Hours",
202
+ * // },
203
+ * // eksResourceScalingConfig: { // EksResourceScalingConfiguration
204
+ * // timeoutMinutes: Number("int"),
205
+ * // kubernetesResourceType: { // KubernetesResourceType
206
+ * // apiVersion: "STRING_VALUE", // required
207
+ * // kind: "STRING_VALUE", // required
208
+ * // },
209
+ * // scalingResources: [ // KubernetesScalingApps
210
+ * // { // KubernetesScalingApplication
211
+ * // "<keys>": { // RegionalScalingResource
212
+ * // "<keys>": { // KubernetesScalingResource
213
+ * // namespace: "STRING_VALUE", // required
214
+ * // name: "STRING_VALUE", // required
215
+ * // hpaName: "STRING_VALUE",
216
+ * // },
217
+ * // },
218
+ * // },
219
+ * // ],
220
+ * // eksClusters: [ // EksClusters
221
+ * // { // EksCluster
222
+ * // crossAccountRole: "STRING_VALUE",
223
+ * // externalId: "STRING_VALUE",
224
+ * // clusterArn: "STRING_VALUE", // required
225
+ * // },
226
+ * // ],
227
+ * // ungraceful: { // EksResourceScalingUngraceful
228
+ * // minimumSuccessPercentage: Number("int"), // required
229
+ * // },
230
+ * // targetPercent: Number("int"),
231
+ * // capacityMonitoringApproach: "sampledMaxInLast24Hours",
232
+ * // },
233
+ * // route53HealthCheckConfig: { // Route53HealthCheckConfiguration
234
+ * // timeoutMinutes: Number("int"),
235
+ * // crossAccountRole: "STRING_VALUE",
236
+ * // externalId: "STRING_VALUE",
237
+ * // hostedZoneId: "STRING_VALUE", // required
238
+ * // recordName: "STRING_VALUE", // required
239
+ * // recordSets: [ // Route53ResourceRecordSetList
240
+ * // { // Route53ResourceRecordSet
241
+ * // recordSetIdentifier: "STRING_VALUE",
242
+ * // region: "STRING_VALUE",
243
+ * // },
244
+ * // ],
245
+ * // },
246
+ * // },
247
+ * // executionBlockType: "CustomActionLambda" || "ManualApproval" || "AuroraGlobalDatabase" || "EC2AutoScaling" || "ARCRoutingControl" || "ARCRegionSwitchPlan" || "Parallel" || "ECSServiceScaling" || "EKSResourceScaling" || "Route53HealthCheck", // required
248
+ * // },
249
+ * // ],
250
+ * // },
251
+ * // regionSwitchPlanConfig: {
252
+ * // crossAccountRole: "STRING_VALUE",
253
+ * // externalId: "STRING_VALUE",
254
+ * // arn: "STRING_VALUE", // required
255
+ * // },
256
+ * // ecsCapacityIncreaseConfig: {
257
+ * // timeoutMinutes: Number("int"),
258
+ * // services: [ // required
259
+ * // {
260
+ * // crossAccountRole: "STRING_VALUE",
261
+ * // externalId: "STRING_VALUE",
262
+ * // clusterArn: "STRING_VALUE",
263
+ * // serviceArn: "STRING_VALUE",
264
+ * // },
265
+ * // ],
266
+ * // ungraceful: {
267
+ * // minimumSuccessPercentage: Number("int"), // required
268
+ * // },
269
+ * // targetPercent: Number("int"),
270
+ * // capacityMonitoringApproach: "sampledMaxInLast24Hours" || "containerInsightsMaxInLast24Hours",
271
+ * // },
272
+ * // eksResourceScalingConfig: {
273
+ * // timeoutMinutes: Number("int"),
274
+ * // kubernetesResourceType: {
275
+ * // apiVersion: "STRING_VALUE", // required
276
+ * // kind: "STRING_VALUE", // required
277
+ * // },
278
+ * // scalingResources: [
279
+ * // {
280
+ * // "<keys>": {
281
+ * // "<keys>": {
282
+ * // namespace: "STRING_VALUE", // required
283
+ * // name: "STRING_VALUE", // required
284
+ * // hpaName: "STRING_VALUE",
285
+ * // },
286
+ * // },
287
+ * // },
288
+ * // ],
289
+ * // eksClusters: [
290
+ * // {
291
+ * // crossAccountRole: "STRING_VALUE",
292
+ * // externalId: "STRING_VALUE",
293
+ * // clusterArn: "STRING_VALUE", // required
294
+ * // },
295
+ * // ],
296
+ * // ungraceful: {
297
+ * // minimumSuccessPercentage: Number("int"), // required
298
+ * // },
299
+ * // targetPercent: Number("int"),
300
+ * // capacityMonitoringApproach: "sampledMaxInLast24Hours",
301
+ * // },
302
+ * // route53HealthCheckConfig: {
303
+ * // timeoutMinutes: Number("int"),
304
+ * // crossAccountRole: "STRING_VALUE",
305
+ * // externalId: "STRING_VALUE",
306
+ * // hostedZoneId: "STRING_VALUE", // required
307
+ * // recordName: "STRING_VALUE", // required
308
+ * // recordSets: [
309
+ * // {
310
+ * // recordSetIdentifier: "STRING_VALUE",
311
+ * // region: "STRING_VALUE",
312
+ * // },
313
+ * // ],
314
+ * // },
315
+ * // },
316
+ * // executionBlockType: "CustomActionLambda" || "ManualApproval" || "AuroraGlobalDatabase" || "EC2AutoScaling" || "ARCRoutingControl" || "ARCRegionSwitchPlan" || "Parallel" || "ECSServiceScaling" || "EKSResourceScaling" || "Route53HealthCheck", // required
317
+ * // },
318
+ * // ],
319
+ * // workflowTargetAction: "activate" || "deactivate", // required
320
+ * // workflowTargetRegion: "STRING_VALUE",
321
+ * // workflowDescription: "STRING_VALUE",
322
+ * // },
323
+ * // ],
324
+ * // executionRole: "STRING_VALUE", // required
325
+ * // recoveryTimeObjectiveMinutes: Number("int"),
326
+ * // associatedAlarms: { // AssociatedAlarmMap
327
+ * // "<keys>": { // AssociatedAlarm
328
+ * // crossAccountRole: "STRING_VALUE",
329
+ * // externalId: "STRING_VALUE",
330
+ * // resourceIdentifier: "STRING_VALUE", // required
331
+ * // alarmType: "applicationHealth" || "trigger", // required
332
+ * // },
333
+ * // },
334
+ * // triggers: [ // TriggerList
335
+ * // { // Trigger
336
+ * // description: "STRING_VALUE",
337
+ * // targetRegion: "STRING_VALUE", // required
338
+ * // action: "activate" || "deactivate", // required
339
+ * // conditions: [ // TriggerConditionList // required
340
+ * // { // TriggerCondition
341
+ * // associatedAlarmName: "STRING_VALUE", // required
342
+ * // condition: "red" || "green", // required
343
+ * // },
344
+ * // ],
345
+ * // minDelayMinutesBetweenExecutions: Number("int"), // required
346
+ * // },
347
+ * // ],
348
+ * // name: "STRING_VALUE", // required
349
+ * // regions: [ // RegionList // required
350
+ * // "STRING_VALUE",
351
+ * // ],
352
+ * // recoveryApproach: "activeActive" || "activePassive", // required
353
+ * // primaryRegion: "STRING_VALUE",
354
+ * // owner: "STRING_VALUE", // required
355
+ * // version: "STRING_VALUE",
356
+ * // updatedAt: new Date("TIMESTAMP"),
357
+ * // },
358
+ * // };
359
+ *
360
+ * ```
361
+ *
362
+ * @param GetPlanCommandInput - {@link GetPlanCommandInput}
363
+ * @returns {@link GetPlanCommandOutput}
364
+ * @see {@link GetPlanCommandInput} for command's `input` shape.
365
+ * @see {@link GetPlanCommandOutput} for command's `response` shape.
366
+ * @see {@link ARCRegionSwitchClientResolvedConfig | config} for ARCRegionSwitchClient's `config` shape.
367
+ *
368
+ * @throws {@link ResourceNotFoundException} (client fault)
369
+ * <p>The specified resource was not found.</p> <p>HTTP Status Code: 404</p>
370
+ *
371
+ * @throws {@link ARCRegionSwitchServiceException}
372
+ * <p>Base exception class for all service exceptions from ARCRegionSwitch service.</p>
373
+ *
374
+ *
375
+ * @public
376
+ */
377
+ export declare class GetPlanCommand extends GetPlanCommand_base {
378
+ /** @internal type navigation helper, not in runtime. */
379
+ protected static __types: {
380
+ api: {
381
+ input: GetPlanRequest;
382
+ output: GetPlanResponse;
383
+ };
384
+ sdk: {
385
+ input: GetPlanCommandInput;
386
+ output: GetPlanCommandOutput;
387
+ };
388
+ };
389
+ }
@@ -0,0 +1,99 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ARCRegionSwitchClient";
4
+ import { GetPlanEvaluationStatusRequest, GetPlanEvaluationStatusResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetPlanEvaluationStatusCommand}.
14
+ */
15
+ export interface GetPlanEvaluationStatusCommandInput extends GetPlanEvaluationStatusRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetPlanEvaluationStatusCommand}.
21
+ */
22
+ export interface GetPlanEvaluationStatusCommandOutput extends GetPlanEvaluationStatusResponse, __MetadataBearer {
23
+ }
24
+ declare const GetPlanEvaluationStatusCommand_base: {
25
+ new (input: GetPlanEvaluationStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetPlanEvaluationStatusCommandInput, GetPlanEvaluationStatusCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetPlanEvaluationStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetPlanEvaluationStatusCommandInput, GetPlanEvaluationStatusCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves the evaluation status of a Region switch plan. The evaluation status provides information about the last time the plan was evaluated and any warnings or issues detected.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ARCRegionSwitchClient, GetPlanEvaluationStatusCommand } from "@aws-sdk/client-arc-region-switch"; // ES Modules import
35
+ * // const { ARCRegionSwitchClient, GetPlanEvaluationStatusCommand } = require("@aws-sdk/client-arc-region-switch"); // CommonJS import
36
+ * const client = new ARCRegionSwitchClient(config);
37
+ * const input = { // GetPlanEvaluationStatusRequest
38
+ * planArn: "STRING_VALUE", // required
39
+ * maxResults: Number("int"),
40
+ * nextToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new GetPlanEvaluationStatusCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // GetPlanEvaluationStatusResponse
45
+ * // planArn: "STRING_VALUE", // required
46
+ * // lastEvaluationTime: new Date("TIMESTAMP"),
47
+ * // lastEvaluatedVersion: "STRING_VALUE",
48
+ * // region: "STRING_VALUE",
49
+ * // evaluationState: "passed" || "actionRequired" || "pendingEvaluation" || "unknown",
50
+ * // warnings: [ // PlanWarnings
51
+ * // { // ResourceWarning
52
+ * // workflow: { // MinimalWorkflow
53
+ * // action: "activate" || "deactivate",
54
+ * // name: "STRING_VALUE",
55
+ * // },
56
+ * // version: "STRING_VALUE", // required
57
+ * // stepName: "STRING_VALUE",
58
+ * // resourceArn: "STRING_VALUE",
59
+ * // warningStatus: "active" || "resolved", // required
60
+ * // warningUpdatedTime: new Date("TIMESTAMP"), // required
61
+ * // warningMessage: "STRING_VALUE", // required
62
+ * // },
63
+ * // ],
64
+ * // nextToken: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param GetPlanEvaluationStatusCommandInput - {@link GetPlanEvaluationStatusCommandInput}
70
+ * @returns {@link GetPlanEvaluationStatusCommandOutput}
71
+ * @see {@link GetPlanEvaluationStatusCommandInput} for command's `input` shape.
72
+ * @see {@link GetPlanEvaluationStatusCommandOutput} for command's `response` shape.
73
+ * @see {@link ARCRegionSwitchClientResolvedConfig | config} for ARCRegionSwitchClient's `config` shape.
74
+ *
75
+ * @throws {@link AccessDeniedException} (client fault)
76
+ * <p>You do not have sufficient access to perform this action.</p> <p>HTTP Status Code: 403</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>The specified resource was not found.</p> <p>HTTP Status Code: 404</p>
80
+ *
81
+ * @throws {@link ARCRegionSwitchServiceException}
82
+ * <p>Base exception class for all service exceptions from ARCRegionSwitch service.</p>
83
+ *
84
+ *
85
+ * @public
86
+ */
87
+ export declare class GetPlanEvaluationStatusCommand extends GetPlanEvaluationStatusCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: GetPlanEvaluationStatusRequest;
92
+ output: GetPlanEvaluationStatusResponse;
93
+ };
94
+ sdk: {
95
+ input: GetPlanEvaluationStatusCommandInput;
96
+ output: GetPlanEvaluationStatusCommandOutput;
97
+ };
98
+ };
99
+ }