@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,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
+ const config_resolver_1 = require("@smithy/config-resolver");
9
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
+ const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
12
+ const util_retry_1 = require("@smithy/util-retry");
13
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
15
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
+ const getRuntimeConfig = (config) => {
17
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
19
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
+ return {
21
+ ...clientSharedValues,
22
+ ...config,
23
+ runtime: "browser",
24
+ defaultsMode,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
34
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
37
+ };
38
+ };
39
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const core_1 = require("@aws-sdk/core");
7
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
8
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
9
+ const config_resolver_1 = require("@smithy/config-resolver");
10
+ const hash_node_1 = require("@smithy/hash-node");
11
+ const middleware_retry_1 = require("@smithy/middleware-retry");
12
+ const node_config_provider_1 = require("@smithy/node-config-provider");
13
+ const node_http_handler_1 = require("@smithy/node-http-handler");
14
+ const util_body_length_node_1 = require("@smithy/util-body-length-node");
15
+ const util_retry_1 = require("@smithy/util-retry");
16
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
+ const smithy_client_1 = require("@smithy/smithy-client");
18
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
+ const smithy_client_2 = require("@smithy/smithy-client");
20
+ const getRuntimeConfig = (config) => {
21
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
+ const loaderConfig = {
27
+ profile: config?.profile,
28
+ logger: clientSharedValues.logger,
29
+ };
30
+ return {
31
+ ...clientSharedValues,
32
+ ...config,
33
+ runtime: "node",
34
+ defaultsMode,
35
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
36
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
37
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
38
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
39
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
40
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
41
+ region: config?.region ??
42
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
43
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
44
+ retryMode: config?.retryMode ??
45
+ (0, node_config_provider_1.loadConfig)({
46
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
47
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
48
+ }, config),
49
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
50
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
51
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
52
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
53
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
54
+ };
55
+ };
56
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const smithy_client_1 = require("@smithy/smithy-client");
6
+ const url_parser_1 = require("@smithy/url-parser");
7
+ const util_base64_1 = require("@smithy/util-base64");
8
+ const util_utf8_1 = require("@smithy/util-utf8");
9
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
10
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
11
+ const getRuntimeConfig = (config) => {
12
+ return {
13
+ apiVersion: "2022-07-26",
14
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
15
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
16
+ disableHostPrefix: config?.disableHostPrefix ?? false,
17
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
18
+ extensions: config?.extensions ?? [],
19
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultARCRegionSwitchHttpAuthSchemeProvider,
20
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
21
+ {
22
+ schemeId: "aws.auth#sigv4",
23
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
24
+ signer: new core_1.AwsSdkSigV4Signer(),
25
+ },
26
+ ],
27
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
28
+ serviceId: config?.serviceId ?? "ARC Region switch",
29
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
31
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
32
+ };
33
+ };
34
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveRuntimeExtensions = void 0;
4
+ const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
5
+ const protocol_http_1 = require("@smithy/protocol-http");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
8
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
+ const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
10
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
11
+ return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
12
+ };
13
+ exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForPlanEvaluationStatusPassed"), exports);
5
+ tslib_1.__exportStar(require("./waitForPlanExecutionCompleted"), exports);
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitUntilPlanEvaluationStatusPassed = exports.waitForPlanEvaluationStatusPassed = void 0;
4
+ const util_waiter_1 = require("@smithy/util-waiter");
5
+ const GetPlanEvaluationStatusCommand_1 = require("../commands/GetPlanEvaluationStatusCommand");
6
+ const checkState = async (client, input) => {
7
+ let reason;
8
+ try {
9
+ const result = await client.send(new GetPlanEvaluationStatusCommand_1.GetPlanEvaluationStatusCommand(input));
10
+ reason = result;
11
+ try {
12
+ const returnComparator = () => {
13
+ return result.evaluationState;
14
+ };
15
+ if (returnComparator() === "passed") {
16
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
17
+ }
18
+ }
19
+ catch (e) { }
20
+ try {
21
+ const returnComparator = () => {
22
+ return result.evaluationState;
23
+ };
24
+ if (returnComparator() === "actionRequired") {
25
+ return { state: util_waiter_1.WaiterState.FAILURE, reason };
26
+ }
27
+ }
28
+ catch (e) { }
29
+ try {
30
+ const returnComparator = () => {
31
+ return result.evaluationState;
32
+ };
33
+ if (returnComparator() === "pendingEvaluation") {
34
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
35
+ }
36
+ }
37
+ catch (e) { }
38
+ }
39
+ catch (exception) {
40
+ reason = exception;
41
+ }
42
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
43
+ };
44
+ const waitForPlanEvaluationStatusPassed = async (params, input) => {
45
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
46
+ return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
47
+ };
48
+ exports.waitForPlanEvaluationStatusPassed = waitForPlanEvaluationStatusPassed;
49
+ const waitUntilPlanEvaluationStatusPassed = async (params, input) => {
50
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
51
+ const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
52
+ return (0, util_waiter_1.checkExceptions)(result);
53
+ };
54
+ exports.waitUntilPlanEvaluationStatusPassed = waitUntilPlanEvaluationStatusPassed;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.waitUntilPlanExecutionCompleted = exports.waitForPlanExecutionCompleted = void 0;
4
+ const util_waiter_1 = require("@smithy/util-waiter");
5
+ const GetPlanExecutionCommand_1 = require("../commands/GetPlanExecutionCommand");
6
+ const checkState = async (client, input) => {
7
+ let reason;
8
+ try {
9
+ const result = await client.send(new GetPlanExecutionCommand_1.GetPlanExecutionCommand(input));
10
+ reason = result;
11
+ try {
12
+ const returnComparator = () => {
13
+ return result.executionState;
14
+ };
15
+ if (returnComparator() === "completed") {
16
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
17
+ }
18
+ }
19
+ catch (e) { }
20
+ try {
21
+ const returnComparator = () => {
22
+ return result.executionState;
23
+ };
24
+ if (returnComparator() === "completedWithExceptions") {
25
+ return { state: util_waiter_1.WaiterState.SUCCESS, reason };
26
+ }
27
+ }
28
+ catch (e) { }
29
+ try {
30
+ const returnComparator = () => {
31
+ return result.executionState;
32
+ };
33
+ if (returnComparator() === "failed") {
34
+ return { state: util_waiter_1.WaiterState.FAILURE, reason };
35
+ }
36
+ }
37
+ catch (e) { }
38
+ try {
39
+ const returnComparator = () => {
40
+ return result.executionState;
41
+ };
42
+ if (returnComparator() === "canceled") {
43
+ return { state: util_waiter_1.WaiterState.FAILURE, reason };
44
+ }
45
+ }
46
+ catch (e) { }
47
+ try {
48
+ const returnComparator = () => {
49
+ return result.executionState;
50
+ };
51
+ if (returnComparator() === "planExecutionTimedOut") {
52
+ return { state: util_waiter_1.WaiterState.FAILURE, reason };
53
+ }
54
+ }
55
+ catch (e) { }
56
+ }
57
+ catch (exception) {
58
+ reason = exception;
59
+ }
60
+ return { state: util_waiter_1.WaiterState.RETRY, reason };
61
+ };
62
+ const waitForPlanExecutionCompleted = async (params, input) => {
63
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
64
+ return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
65
+ };
66
+ exports.waitForPlanExecutionCompleted = waitForPlanExecutionCompleted;
67
+ const waitUntilPlanExecutionCompleted = async (params, input) => {
68
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
69
+ const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
70
+ return (0, util_waiter_1.checkExceptions)(result);
71
+ };
72
+ exports.waitUntilPlanExecutionCompleted = waitUntilPlanExecutionCompleted;
@@ -0,0 +1,47 @@
1
+ import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { ARCRegionSwitchClient } from "./ARCRegionSwitchClient";
3
+ import { ApprovePlanExecutionStepCommand, } from "./commands/ApprovePlanExecutionStepCommand";
4
+ import { CancelPlanExecutionCommand, } from "./commands/CancelPlanExecutionCommand";
5
+ import { CreatePlanCommand } from "./commands/CreatePlanCommand";
6
+ import { DeletePlanCommand } from "./commands/DeletePlanCommand";
7
+ import { GetPlanCommand } from "./commands/GetPlanCommand";
8
+ import { GetPlanEvaluationStatusCommand, } from "./commands/GetPlanEvaluationStatusCommand";
9
+ import { GetPlanExecutionCommand, } from "./commands/GetPlanExecutionCommand";
10
+ import { GetPlanInRegionCommand, } from "./commands/GetPlanInRegionCommand";
11
+ import { ListPlanExecutionEventsCommand, } from "./commands/ListPlanExecutionEventsCommand";
12
+ import { ListPlanExecutionsCommand, } from "./commands/ListPlanExecutionsCommand";
13
+ import { ListPlansCommand } from "./commands/ListPlansCommand";
14
+ import { ListPlansInRegionCommand, } from "./commands/ListPlansInRegionCommand";
15
+ import { ListRoute53HealthChecksCommand, } from "./commands/ListRoute53HealthChecksCommand";
16
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
17
+ import { StartPlanExecutionCommand, } from "./commands/StartPlanExecutionCommand";
18
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
19
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
20
+ import { UpdatePlanCommand } from "./commands/UpdatePlanCommand";
21
+ import { UpdatePlanExecutionCommand, } from "./commands/UpdatePlanExecutionCommand";
22
+ import { UpdatePlanExecutionStepCommand, } from "./commands/UpdatePlanExecutionStepCommand";
23
+ const commands = {
24
+ ApprovePlanExecutionStepCommand,
25
+ CancelPlanExecutionCommand,
26
+ CreatePlanCommand,
27
+ DeletePlanCommand,
28
+ GetPlanCommand,
29
+ GetPlanEvaluationStatusCommand,
30
+ GetPlanExecutionCommand,
31
+ GetPlanInRegionCommand,
32
+ ListPlanExecutionEventsCommand,
33
+ ListPlanExecutionsCommand,
34
+ ListPlansCommand,
35
+ ListPlansInRegionCommand,
36
+ ListRoute53HealthChecksCommand,
37
+ ListTagsForResourceCommand,
38
+ StartPlanExecutionCommand,
39
+ TagResourceCommand,
40
+ UntagResourceCommand,
41
+ UpdatePlanCommand,
42
+ UpdatePlanExecutionCommand,
43
+ UpdatePlanExecutionStepCommand,
44
+ };
45
+ export class ARCRegionSwitch extends ARCRegionSwitchClient {
46
+ }
47
+ createAggregatedClient(commands, ARCRegionSwitch);
@@ -0,0 +1,48 @@
1
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
+ import { resolveRegionConfig } from "@smithy/config-resolver";
6
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
+ import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
+ import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
10
+ import { Client as __Client, } from "@smithy/smithy-client";
11
+ import { defaultARCRegionSwitchHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
12
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
13
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
+ export { __Client };
16
+ export class ARCRegionSwitchClient extends __Client {
17
+ config;
18
+ constructor(...[configuration]) {
19
+ const _config_0 = __getRuntimeConfig(configuration || {});
20
+ super(_config_0);
21
+ this.initConfig = _config_0;
22
+ const _config_1 = resolveClientEndpointParameters(_config_0);
23
+ const _config_2 = resolveUserAgentConfig(_config_1);
24
+ const _config_3 = resolveRetryConfig(_config_2);
25
+ const _config_4 = resolveRegionConfig(_config_3);
26
+ const _config_5 = resolveHostHeaderConfig(_config_4);
27
+ const _config_6 = resolveEndpointConfig(_config_5);
28
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
+ this.config = _config_8;
31
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
32
+ this.middlewareStack.use(getRetryPlugin(this.config));
33
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
34
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
35
+ this.middlewareStack.use(getLoggerPlugin(this.config));
36
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
37
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
38
+ httpAuthSchemeParametersProvider: defaultARCRegionSwitchHttpAuthSchemeParametersProvider,
39
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
40
+ "aws.auth#sigv4": config.credentials,
41
+ }),
42
+ }));
43
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
44
+ }
45
+ destroy() {
46
+ super.destroy();
47
+ }
48
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,41 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
+ export const defaultARCRegionSwitchHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: (await normalizeProvider(config.region)()) ||
7
+ (() => {
8
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
+ })(),
10
+ };
11
+ };
12
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
13
+ return {
14
+ schemeId: "aws.auth#sigv4",
15
+ signingProperties: {
16
+ name: "arc-region-switch",
17
+ region: authParameters.region,
18
+ },
19
+ propertiesExtractor: (config, context) => ({
20
+ signingProperties: {
21
+ config,
22
+ context,
23
+ },
24
+ }),
25
+ };
26
+ }
27
+ export const defaultARCRegionSwitchHttpAuthSchemeProvider = (authParameters) => {
28
+ const options = [];
29
+ switch (authParameters.operation) {
30
+ default: {
31
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
32
+ }
33
+ }
34
+ return options;
35
+ };
36
+ export const resolveHttpAuthSchemeConfig = (config) => {
37
+ const config_0 = resolveAwsSdkSigV4Config(config);
38
+ return Object.assign(config_0, {
39
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
40
+ });
41
+ };
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ApprovePlanExecutionStepCommand, se_ApprovePlanExecutionStepCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class ApprovePlanExecutionStepCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ArcRegionSwitch", "ApprovePlanExecutionStep", {})
17
+ .n("ARCRegionSwitchClient", "ApprovePlanExecutionStepCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ApprovePlanExecutionStepCommand)
20
+ .de(de_ApprovePlanExecutionStepCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CancelPlanExecutionCommand, se_CancelPlanExecutionCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class CancelPlanExecutionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ArcRegionSwitch", "CancelPlanExecution", {})
17
+ .n("ARCRegionSwitchClient", "CancelPlanExecutionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CancelPlanExecutionCommand)
20
+ .de(de_CancelPlanExecutionCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,25 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreatePlanCommand, se_CreatePlanCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class CreatePlanCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("ArcRegionSwitch", "CreatePlan", {})
20
+ .n("ARCRegionSwitchClient", "CreatePlanCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_CreatePlanCommand)
23
+ .de(de_CreatePlanCommand)
24
+ .build() {
25
+ }
@@ -0,0 +1,25 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeletePlanCommand, se_DeletePlanCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class DeletePlanCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("ArcRegionSwitch", "DeletePlan", {})
20
+ .n("ARCRegionSwitchClient", "DeletePlanCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_DeletePlanCommand)
23
+ .de(de_DeletePlanCommand)
24
+ .build() {
25
+ }
@@ -0,0 +1,25 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetPlanCommand, se_GetPlanCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class GetPlanCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("ArcRegionSwitch", "GetPlan", {})
20
+ .n("ARCRegionSwitchClient", "GetPlanCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_GetPlanCommand)
23
+ .de(de_GetPlanCommand)
24
+ .build() {
25
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetPlanEvaluationStatusCommand, se_GetPlanEvaluationStatusCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class GetPlanEvaluationStatusCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ArcRegionSwitch", "GetPlanEvaluationStatus", {})
17
+ .n("ARCRegionSwitchClient", "GetPlanEvaluationStatusCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetPlanEvaluationStatusCommand)
20
+ .de(de_GetPlanEvaluationStatusCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetPlanExecutionCommand, se_GetPlanExecutionCommand } from "../protocols/Aws_json1_0";
6
+ export { $Command };
7
+ export class GetPlanExecutionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("ArcRegionSwitch", "GetPlanExecution", {})
17
+ .n("ARCRegionSwitchClient", "GetPlanExecutionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetPlanExecutionCommand)
20
+ .de(de_GetPlanExecutionCommand)
21
+ .build() {
22
+ }