@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,392 @@
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 { GetPlanInRegionRequest, GetPlanInRegionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetPlanInRegionCommand}.
14
+ */
15
+ export interface GetPlanInRegionCommandInput extends GetPlanInRegionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetPlanInRegionCommand}.
21
+ */
22
+ export interface GetPlanInRegionCommandOutput extends GetPlanInRegionResponse, __MetadataBearer {
23
+ }
24
+ declare const GetPlanInRegionCommand_base: {
25
+ new (input: GetPlanInRegionCommandInput): import("@smithy/smithy-client").CommandImpl<GetPlanInRegionCommandInput, GetPlanInRegionCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetPlanInRegionCommandInput): import("@smithy/smithy-client").CommandImpl<GetPlanInRegionCommandInput, GetPlanInRegionCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves information about a Region switch plan in a specific Amazon Web Services Region. This operation is useful for getting Region-specific information about a 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, GetPlanInRegionCommand } from "@aws-sdk/client-arc-region-switch"; // ES Modules import
35
+ * // const { ARCRegionSwitchClient, GetPlanInRegionCommand } = require("@aws-sdk/client-arc-region-switch"); // CommonJS import
36
+ * const client = new ARCRegionSwitchClient(config);
37
+ * const input = { // GetPlanInRegionRequest
38
+ * arn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetPlanInRegionCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetPlanInRegionResponse
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 GetPlanInRegionCommandInput - {@link GetPlanInRegionCommandInput}
363
+ * @returns {@link GetPlanInRegionCommandOutput}
364
+ * @see {@link GetPlanInRegionCommandInput} for command's `input` shape.
365
+ * @see {@link GetPlanInRegionCommandOutput} for command's `response` shape.
366
+ * @see {@link ARCRegionSwitchClientResolvedConfig | config} for ARCRegionSwitchClient's `config` shape.
367
+ *
368
+ * @throws {@link AccessDeniedException} (client fault)
369
+ * <p>You do not have sufficient access to perform this action.</p> <p>HTTP Status Code: 403</p>
370
+ *
371
+ * @throws {@link ResourceNotFoundException} (client fault)
372
+ * <p>The specified resource was not found.</p> <p>HTTP Status Code: 404</p>
373
+ *
374
+ * @throws {@link ARCRegionSwitchServiceException}
375
+ * <p>Base exception class for all service exceptions from ARCRegionSwitch service.</p>
376
+ *
377
+ *
378
+ * @public
379
+ */
380
+ export declare class GetPlanInRegionCommand extends GetPlanInRegionCommand_base {
381
+ /** @internal type navigation helper, not in runtime. */
382
+ protected static __types: {
383
+ api: {
384
+ input: GetPlanInRegionRequest;
385
+ output: GetPlanInRegionResponse;
386
+ };
387
+ sdk: {
388
+ input: GetPlanInRegionCommandInput;
389
+ output: GetPlanInRegionCommandOutput;
390
+ };
391
+ };
392
+ }
@@ -0,0 +1,97 @@
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 { ListPlanExecutionEventsRequest, ListPlanExecutionEventsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListPlanExecutionEventsCommand}.
14
+ */
15
+ export interface ListPlanExecutionEventsCommandInput extends ListPlanExecutionEventsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPlanExecutionEventsCommand}.
21
+ */
22
+ export interface ListPlanExecutionEventsCommandOutput extends ListPlanExecutionEventsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListPlanExecutionEventsCommand_base: {
25
+ new (input: ListPlanExecutionEventsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPlanExecutionEventsCommandInput, ListPlanExecutionEventsCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListPlanExecutionEventsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPlanExecutionEventsCommandInput, ListPlanExecutionEventsCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists the events that occurred during a plan execution. These events provide a detailed timeline of the execution process.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ARCRegionSwitchClient, ListPlanExecutionEventsCommand } from "@aws-sdk/client-arc-region-switch"; // ES Modules import
35
+ * // const { ARCRegionSwitchClient, ListPlanExecutionEventsCommand } = require("@aws-sdk/client-arc-region-switch"); // CommonJS import
36
+ * const client = new ARCRegionSwitchClient(config);
37
+ * const input = { // ListPlanExecutionEventsRequest
38
+ * planArn: "STRING_VALUE", // required
39
+ * executionId: "STRING_VALUE", // required
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * name: "STRING_VALUE",
43
+ * };
44
+ * const command = new ListPlanExecutionEventsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListPlanExecutionEventsResponse
47
+ * // items: [ // ExecutionEventList
48
+ * // { // ExecutionEvent
49
+ * // timestamp: new Date("TIMESTAMP"),
50
+ * // type: "unknown" || "executionPending" || "executionStarted" || "executionSucceeded" || "executionFailed" || "executionPausing" || "executionPaused" || "executionCanceling" || "executionCanceled" || "executionPendingApproval" || "executionBehaviorChangedToUngraceful" || "executionBehaviorChangedToGraceful" || "executionPendingChildPlanManualApproval" || "executionSuccessMonitoringApplicationHealth" || "stepStarted" || "stepUpdate" || "stepSucceeded" || "stepFailed" || "stepSkipped" || "stepPausedByError" || "stepPausedByOperator" || "stepCanceled" || "stepPendingApproval" || "stepExecutionBehaviorChangedToUngraceful" || "stepPendingApplicationHealthMonitor",
51
+ * // stepName: "STRING_VALUE",
52
+ * // executionBlockType: "CustomActionLambda" || "ManualApproval" || "AuroraGlobalDatabase" || "EC2AutoScaling" || "ARCRoutingControl" || "ARCRegionSwitchPlan" || "Parallel" || "ECSServiceScaling" || "EKSResourceScaling" || "Route53HealthCheck",
53
+ * // resources: [ // Resources
54
+ * // "STRING_VALUE",
55
+ * // ],
56
+ * // error: "STRING_VALUE",
57
+ * // description: "STRING_VALUE",
58
+ * // eventId: "STRING_VALUE", // required
59
+ * // previousEventId: "STRING_VALUE",
60
+ * // },
61
+ * // ],
62
+ * // nextToken: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListPlanExecutionEventsCommandInput - {@link ListPlanExecutionEventsCommandInput}
68
+ * @returns {@link ListPlanExecutionEventsCommandOutput}
69
+ * @see {@link ListPlanExecutionEventsCommandInput} for command's `input` shape.
70
+ * @see {@link ListPlanExecutionEventsCommandOutput} for command's `response` shape.
71
+ * @see {@link ARCRegionSwitchClientResolvedConfig | config} for ARCRegionSwitchClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>You do not have sufficient access to perform this action.</p> <p>HTTP Status Code: 403</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>The specified resource was not found.</p> <p>HTTP Status Code: 404</p>
78
+ *
79
+ * @throws {@link ARCRegionSwitchServiceException}
80
+ * <p>Base exception class for all service exceptions from ARCRegionSwitch service.</p>
81
+ *
82
+ *
83
+ * @public
84
+ */
85
+ export declare class ListPlanExecutionEventsCommand extends ListPlanExecutionEventsCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: ListPlanExecutionEventsRequest;
90
+ output: ListPlanExecutionEventsResponse;
91
+ };
92
+ sdk: {
93
+ input: ListPlanExecutionEventsCommandInput;
94
+ output: ListPlanExecutionEventsCommandOutput;
95
+ };
96
+ };
97
+ }
@@ -0,0 +1,97 @@
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 { ListPlanExecutionsRequest, ListPlanExecutionsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListPlanExecutionsCommand}.
14
+ */
15
+ export interface ListPlanExecutionsCommandInput extends ListPlanExecutionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPlanExecutionsCommand}.
21
+ */
22
+ export interface ListPlanExecutionsCommandOutput extends ListPlanExecutionsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListPlanExecutionsCommand_base: {
25
+ new (input: ListPlanExecutionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPlanExecutionsCommandInput, ListPlanExecutionsCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListPlanExecutionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPlanExecutionsCommandInput, ListPlanExecutionsCommandOutput, ARCRegionSwitchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists the executions of a Region switch plan. This operation returns information about both current and historical executions.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ARCRegionSwitchClient, ListPlanExecutionsCommand } from "@aws-sdk/client-arc-region-switch"; // ES Modules import
35
+ * // const { ARCRegionSwitchClient, ListPlanExecutionsCommand } = require("@aws-sdk/client-arc-region-switch"); // CommonJS import
36
+ * const client = new ARCRegionSwitchClient(config);
37
+ * const input = { // ListPlanExecutionsRequest
38
+ * planArn: "STRING_VALUE", // required
39
+ * maxResults: Number("int"),
40
+ * nextToken: "STRING_VALUE",
41
+ * state: "inProgress" || "pausedByFailedStep" || "pausedByOperator" || "completed" || "completedWithExceptions" || "canceled" || "planExecutionTimedOut" || "pendingManualApproval" || "failed" || "pending" || "completedMonitoringApplicationHealth",
42
+ * };
43
+ * const command = new ListPlanExecutionsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListPlanExecutionsResponse
46
+ * // items: [ // AbbreviatedExecutionsList
47
+ * // { // AbbreviatedExecution
48
+ * // planArn: "STRING_VALUE", // required
49
+ * // executionId: "STRING_VALUE", // required
50
+ * // version: "STRING_VALUE",
51
+ * // updatedAt: new Date("TIMESTAMP"),
52
+ * // comment: "STRING_VALUE",
53
+ * // startTime: new Date("TIMESTAMP"), // required
54
+ * // endTime: new Date("TIMESTAMP"),
55
+ * // mode: "graceful" || "ungraceful", // required
56
+ * // executionState: "inProgress" || "pausedByFailedStep" || "pausedByOperator" || "completed" || "completedWithExceptions" || "canceled" || "planExecutionTimedOut" || "pendingManualApproval" || "failed" || "pending" || "completedMonitoringApplicationHealth", // required
57
+ * // executionAction: "activate" || "deactivate", // required
58
+ * // executionRegion: "STRING_VALUE", // required
59
+ * // actualRecoveryTime: "STRING_VALUE",
60
+ * // },
61
+ * // ],
62
+ * // nextToken: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListPlanExecutionsCommandInput - {@link ListPlanExecutionsCommandInput}
68
+ * @returns {@link ListPlanExecutionsCommandOutput}
69
+ * @see {@link ListPlanExecutionsCommandInput} for command's `input` shape.
70
+ * @see {@link ListPlanExecutionsCommandOutput} for command's `response` shape.
71
+ * @see {@link ARCRegionSwitchClientResolvedConfig | config} for ARCRegionSwitchClient's `config` shape.
72
+ *
73
+ * @throws {@link AccessDeniedException} (client fault)
74
+ * <p>You do not have sufficient access to perform this action.</p> <p>HTTP Status Code: 403</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>The specified resource was not found.</p> <p>HTTP Status Code: 404</p>
78
+ *
79
+ * @throws {@link ARCRegionSwitchServiceException}
80
+ * <p>Base exception class for all service exceptions from ARCRegionSwitch service.</p>
81
+ *
82
+ *
83
+ * @public
84
+ */
85
+ export declare class ListPlanExecutionsCommand extends ListPlanExecutionsCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: ListPlanExecutionsRequest;
90
+ output: ListPlanExecutionsResponse;
91
+ };
92
+ sdk: {
93
+ input: ListPlanExecutionsCommandInput;
94
+ output: ListPlanExecutionsCommandOutput;
95
+ };
96
+ };
97
+ }