@aws-sdk/client-arc-region-switch 3.893.0 → 3.894.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 (45) hide show
  1. package/dist-cjs/index.js +1931 -11
  2. package/package.json +6 -6
  3. package/dist-cjs/ARCRegionSwitch.js +0 -51
  4. package/dist-cjs/ARCRegionSwitchClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/ApprovePlanExecutionStepCommand.js +0 -26
  7. package/dist-cjs/commands/CancelPlanExecutionCommand.js +0 -26
  8. package/dist-cjs/commands/CreatePlanCommand.js +0 -29
  9. package/dist-cjs/commands/DeletePlanCommand.js +0 -29
  10. package/dist-cjs/commands/GetPlanCommand.js +0 -29
  11. package/dist-cjs/commands/GetPlanEvaluationStatusCommand.js +0 -26
  12. package/dist-cjs/commands/GetPlanExecutionCommand.js +0 -26
  13. package/dist-cjs/commands/GetPlanInRegionCommand.js +0 -26
  14. package/dist-cjs/commands/ListPlanExecutionEventsCommand.js +0 -26
  15. package/dist-cjs/commands/ListPlanExecutionsCommand.js +0 -26
  16. package/dist-cjs/commands/ListPlansCommand.js +0 -29
  17. package/dist-cjs/commands/ListPlansInRegionCommand.js +0 -26
  18. package/dist-cjs/commands/ListRoute53HealthChecksCommand.js +0 -29
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -29
  20. package/dist-cjs/commands/StartPlanExecutionCommand.js +0 -26
  21. package/dist-cjs/commands/TagResourceCommand.js +0 -29
  22. package/dist-cjs/commands/UntagResourceCommand.js +0 -29
  23. package/dist-cjs/commands/UpdatePlanCommand.js +0 -29
  24. package/dist-cjs/commands/UpdatePlanExecutionCommand.js +0 -26
  25. package/dist-cjs/commands/UpdatePlanExecutionStepCommand.js +0 -26
  26. package/dist-cjs/commands/index.js +0 -23
  27. package/dist-cjs/endpoint/EndpointParameters.js +0 -15
  28. package/dist-cjs/extensionConfiguration.js +0 -2
  29. package/dist-cjs/models/ARCRegionSwitchServiceException.js +0 -12
  30. package/dist-cjs/models/index.js +0 -4
  31. package/dist-cjs/models/models_0.js +0 -233
  32. package/dist-cjs/pagination/GetPlanEvaluationStatusPaginator.js +0 -7
  33. package/dist-cjs/pagination/GetPlanExecutionPaginator.js +0 -7
  34. package/dist-cjs/pagination/Interfaces.js +0 -2
  35. package/dist-cjs/pagination/ListPlanExecutionEventsPaginator.js +0 -7
  36. package/dist-cjs/pagination/ListPlanExecutionsPaginator.js +0 -7
  37. package/dist-cjs/pagination/ListPlansInRegionPaginator.js +0 -7
  38. package/dist-cjs/pagination/ListPlansPaginator.js +0 -7
  39. package/dist-cjs/pagination/ListRoute53HealthChecksPaginator.js +0 -7
  40. package/dist-cjs/pagination/index.js +0 -11
  41. package/dist-cjs/protocols/Aws_json1_0.js +0 -919
  42. package/dist-cjs/runtimeExtensions.js +0 -13
  43. package/dist-cjs/waiters/index.js +0 -5
  44. package/dist-cjs/waiters/waitForPlanEvaluationStatusPassed.js +0 -54
  45. package/dist-cjs/waiters/waitForPlanExecutionCompleted.js +0 -72
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,1932 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ARCRegionSwitchServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ARCRegionSwitchClient"), exports);
6
- tslib_1.__exportStar(require("./ARCRegionSwitch"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./waiters"), exports);
10
- tslib_1.__exportStar(require("./models"), exports);
11
- var ARCRegionSwitchServiceException_1 = require("./models/ARCRegionSwitchServiceException");
12
- Object.defineProperty(exports, "ARCRegionSwitchServiceException", { enumerable: true, get: function () { return ARCRegionSwitchServiceException_1.ARCRegionSwitchServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ ARCRegionSwitch: () => ARCRegionSwitch,
25
+ ARCRegionSwitchClient: () => ARCRegionSwitchClient,
26
+ ARCRegionSwitchServiceException: () => ARCRegionSwitchServiceException,
27
+ AccessDeniedException: () => AccessDeniedException,
28
+ AlarmCondition: () => AlarmCondition,
29
+ AlarmType: () => AlarmType,
30
+ Approval: () => Approval,
31
+ ApprovePlanExecutionStepCommand: () => ApprovePlanExecutionStepCommand,
32
+ CancelPlanExecutionCommand: () => CancelPlanExecutionCommand,
33
+ CreatePlanCommand: () => CreatePlanCommand,
34
+ DeletePlanCommand: () => DeletePlanCommand,
35
+ Ec2AsgCapacityMonitoringApproach: () => Ec2AsgCapacityMonitoringApproach,
36
+ EcsCapacityMonitoringApproach: () => EcsCapacityMonitoringApproach,
37
+ EksCapacityMonitoringApproach: () => EksCapacityMonitoringApproach,
38
+ EvaluationStatus: () => EvaluationStatus,
39
+ ExecutionAction: () => ExecutionAction,
40
+ ExecutionBlockConfiguration: () => ExecutionBlockConfiguration,
41
+ ExecutionBlockType: () => ExecutionBlockType,
42
+ ExecutionEventType: () => ExecutionEventType,
43
+ ExecutionMode: () => ExecutionMode,
44
+ ExecutionState: () => ExecutionState,
45
+ GetPlanCommand: () => GetPlanCommand,
46
+ GetPlanEvaluationStatusCommand: () => GetPlanEvaluationStatusCommand,
47
+ GetPlanExecutionCommand: () => GetPlanExecutionCommand,
48
+ GetPlanInRegionCommand: () => GetPlanInRegionCommand,
49
+ GlobalAuroraDefaultBehavior: () => GlobalAuroraDefaultBehavior,
50
+ GlobalAuroraUngracefulBehavior: () => GlobalAuroraUngracefulBehavior,
51
+ IllegalArgumentException: () => IllegalArgumentException,
52
+ IllegalStateException: () => IllegalStateException,
53
+ InternalServerException: () => InternalServerException,
54
+ LambdaUngracefulBehavior: () => LambdaUngracefulBehavior,
55
+ ListPlanExecutionEventsCommand: () => ListPlanExecutionEventsCommand,
56
+ ListPlanExecutionsCommand: () => ListPlanExecutionsCommand,
57
+ ListPlansCommand: () => ListPlansCommand,
58
+ ListPlansInRegionCommand: () => ListPlansInRegionCommand,
59
+ ListRoute53HealthChecksCommand: () => ListRoute53HealthChecksCommand,
60
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
61
+ RecoveryApproach: () => RecoveryApproach,
62
+ RegionToRunIn: () => RegionToRunIn,
63
+ ResourceNotFoundException: () => ResourceNotFoundException,
64
+ ResourceWarningStatus: () => ResourceWarningStatus,
65
+ RoutingControlStateChange: () => RoutingControlStateChange,
66
+ StartPlanExecutionCommand: () => StartPlanExecutionCommand,
67
+ StepStatus: () => StepStatus,
68
+ TagResourceCommand: () => TagResourceCommand,
69
+ UntagResourceCommand: () => UntagResourceCommand,
70
+ UpdatePlanCommand: () => UpdatePlanCommand,
71
+ UpdatePlanExecutionAction: () => UpdatePlanExecutionAction,
72
+ UpdatePlanExecutionCommand: () => UpdatePlanExecutionCommand,
73
+ UpdatePlanExecutionStepAction: () => UpdatePlanExecutionStepAction,
74
+ UpdatePlanExecutionStepCommand: () => UpdatePlanExecutionStepCommand,
75
+ WorkflowTargetAction: () => WorkflowTargetAction,
76
+ __Client: () => import_smithy_client.Client,
77
+ paginateGetPlanEvaluationStatus: () => paginateGetPlanEvaluationStatus,
78
+ paginateGetPlanExecution: () => paginateGetPlanExecution,
79
+ paginateListPlanExecutionEvents: () => paginateListPlanExecutionEvents,
80
+ paginateListPlanExecutions: () => paginateListPlanExecutions,
81
+ paginateListPlans: () => paginateListPlans,
82
+ paginateListPlansInRegion: () => paginateListPlansInRegion,
83
+ paginateListRoute53HealthChecks: () => paginateListRoute53HealthChecks,
84
+ waitForPlanEvaluationStatusPassed: () => waitForPlanEvaluationStatusPassed,
85
+ waitForPlanExecutionCompleted: () => waitForPlanExecutionCompleted,
86
+ waitUntilPlanEvaluationStatusPassed: () => waitUntilPlanEvaluationStatusPassed,
87
+ waitUntilPlanExecutionCompleted: () => waitUntilPlanExecutionCompleted
88
+ });
89
+ module.exports = __toCommonJS(index_exports);
90
+
91
+ // src/ARCRegionSwitchClient.ts
92
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
93
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
94
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
95
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
96
+ var import_config_resolver = require("@smithy/config-resolver");
97
+ var import_core = require("@smithy/core");
98
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
99
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
100
+ var import_middleware_retry = require("@smithy/middleware-retry");
101
+
102
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
103
+
104
+ // src/endpoint/EndpointParameters.ts
105
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
106
+ return Object.assign(options, {
107
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
108
+ defaultSigningName: "arc-region-switch"
109
+ });
110
+ }, "resolveClientEndpointParameters");
111
+ var commonParams = {
112
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
113
+ Endpoint: { type: "builtInParams", name: "endpoint" },
114
+ Region: { type: "builtInParams", name: "region" }
115
+ };
116
+
117
+ // src/ARCRegionSwitchClient.ts
118
+ var import_runtimeConfig = require("././runtimeConfig");
119
+
120
+ // src/runtimeExtensions.ts
121
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
122
+ var import_protocol_http = require("@smithy/protocol-http");
123
+ var import_smithy_client = require("@smithy/smithy-client");
124
+
125
+ // src/auth/httpAuthExtensionConfiguration.ts
126
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
127
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
128
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
129
+ let _credentials = runtimeConfig.credentials;
130
+ return {
131
+ setHttpAuthScheme(httpAuthScheme) {
132
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
133
+ if (index === -1) {
134
+ _httpAuthSchemes.push(httpAuthScheme);
135
+ } else {
136
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
137
+ }
138
+ },
139
+ httpAuthSchemes() {
140
+ return _httpAuthSchemes;
141
+ },
142
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
143
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
144
+ },
145
+ httpAuthSchemeProvider() {
146
+ return _httpAuthSchemeProvider;
147
+ },
148
+ setCredentials(credentials) {
149
+ _credentials = credentials;
150
+ },
151
+ credentials() {
152
+ return _credentials;
153
+ }
154
+ };
155
+ }, "getHttpAuthExtensionConfiguration");
156
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
157
+ return {
158
+ httpAuthSchemes: config.httpAuthSchemes(),
159
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
160
+ credentials: config.credentials()
161
+ };
162
+ }, "resolveHttpAuthRuntimeConfig");
163
+
164
+ // src/runtimeExtensions.ts
165
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
166
+ const extensionConfiguration = Object.assign(
167
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
168
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
169
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
170
+ getHttpAuthExtensionConfiguration(runtimeConfig)
171
+ );
172
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
173
+ return Object.assign(
174
+ runtimeConfig,
175
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
176
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
177
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
178
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
179
+ );
180
+ }, "resolveRuntimeExtensions");
181
+
182
+ // src/ARCRegionSwitchClient.ts
183
+ var ARCRegionSwitchClient = class extends import_smithy_client.Client {
184
+ static {
185
+ __name(this, "ARCRegionSwitchClient");
186
+ }
187
+ /**
188
+ * The resolved configuration of ARCRegionSwitchClient class. This is resolved and normalized from the {@link ARCRegionSwitchClientConfig | constructor configuration interface}.
189
+ */
190
+ config;
191
+ constructor(...[configuration]) {
192
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
193
+ super(_config_0);
194
+ this.initConfig = _config_0;
195
+ const _config_1 = resolveClientEndpointParameters(_config_0);
196
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
197
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
198
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
199
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
200
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
201
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
202
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
203
+ this.config = _config_8;
204
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
205
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
206
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
207
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
208
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
209
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
210
+ this.middlewareStack.use(
211
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
212
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultARCRegionSwitchHttpAuthSchemeParametersProvider,
213
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
214
+ "aws.auth#sigv4": config.credentials
215
+ }), "identityProviderConfigProvider")
216
+ })
217
+ );
218
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
219
+ }
220
+ /**
221
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
222
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
223
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
224
+ */
225
+ destroy() {
226
+ super.destroy();
227
+ }
228
+ };
229
+
230
+ // src/ARCRegionSwitch.ts
231
+
232
+
233
+ // src/commands/ApprovePlanExecutionStepCommand.ts
234
+
235
+ var import_middleware_serde = require("@smithy/middleware-serde");
236
+
237
+
238
+ // src/protocols/Aws_json1_0.ts
239
+ var import_core2 = require("@aws-sdk/core");
240
+
241
+
242
+
243
+ // src/models/ARCRegionSwitchServiceException.ts
244
+
245
+ var ARCRegionSwitchServiceException = class _ARCRegionSwitchServiceException extends import_smithy_client.ServiceException {
246
+ static {
247
+ __name(this, "ARCRegionSwitchServiceException");
248
+ }
249
+ /**
250
+ * @internal
251
+ */
252
+ constructor(options) {
253
+ super(options);
254
+ Object.setPrototypeOf(this, _ARCRegionSwitchServiceException.prototype);
255
+ }
256
+ };
257
+
258
+ // src/models/models_0.ts
259
+ var ExecutionAction = {
260
+ ACTIVATE: "activate",
261
+ DEACTIVATE: "deactivate"
262
+ };
263
+ var ExecutionState = {
264
+ CANCELLED: "canceled",
265
+ COMPLETED: "completed",
266
+ COMPLETED_MONITORING_APPLICATION_HEALTH: "completedMonitoringApplicationHealth",
267
+ COMPLETED_WITH_EXCEPTIONS: "completedWithExceptions",
268
+ FAILED: "failed",
269
+ IN_PROGRESS: "inProgress",
270
+ PAUSED_BY_FAILED_STEP: "pausedByFailedStep",
271
+ PAUSED_BY_OPERATOR: "pausedByOperator",
272
+ PENDING: "pending",
273
+ PENDING_MANUAL_APPROVAL: "pendingManualApproval",
274
+ PLAN_EXECUTION_TIMED_OUT: "planExecutionTimedOut"
275
+ };
276
+ var ExecutionMode = {
277
+ GRACEFUL: "graceful",
278
+ UNGRACEFUL: "ungraceful"
279
+ };
280
+ var RecoveryApproach = {
281
+ ACTIVE_ACTIVE: "activeActive",
282
+ ACTIVE_PASSIVE: "activePassive"
283
+ };
284
+ var AccessDeniedException = class _AccessDeniedException extends ARCRegionSwitchServiceException {
285
+ static {
286
+ __name(this, "AccessDeniedException");
287
+ }
288
+ name = "AccessDeniedException";
289
+ $fault = "client";
290
+ /**
291
+ * @internal
292
+ */
293
+ constructor(opts) {
294
+ super({
295
+ name: "AccessDeniedException",
296
+ $fault: "client",
297
+ ...opts
298
+ });
299
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
300
+ }
301
+ };
302
+ var AlarmCondition = {
303
+ GREEN: "green",
304
+ RED: "red"
305
+ };
306
+ var AlarmType = {
307
+ APPLICATION_HEALTH: "applicationHealth",
308
+ TRIGGER: "trigger"
309
+ };
310
+ var Approval = {
311
+ APPROVE: "approve",
312
+ DECLINE: "decline"
313
+ };
314
+ var ResourceNotFoundException = class _ResourceNotFoundException extends ARCRegionSwitchServiceException {
315
+ static {
316
+ __name(this, "ResourceNotFoundException");
317
+ }
318
+ name = "ResourceNotFoundException";
319
+ $fault = "client";
320
+ /**
321
+ * @internal
322
+ */
323
+ constructor(opts) {
324
+ super({
325
+ name: "ResourceNotFoundException",
326
+ $fault: "client",
327
+ ...opts
328
+ });
329
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
330
+ }
331
+ };
332
+ var EvaluationStatus = {
333
+ ACTION_REQUIRED: "actionRequired",
334
+ PASSED: "passed",
335
+ PENDING_EVALUATION: "pendingEvaluation",
336
+ UNKNOWN: "unknown"
337
+ };
338
+ var ResourceWarningStatus = {
339
+ ACTIVE: "active",
340
+ RESOLVED: "resolved"
341
+ };
342
+ var WorkflowTargetAction = {
343
+ ACTIVATE: "activate",
344
+ DEACTIVATE: "deactivate"
345
+ };
346
+ var RoutingControlStateChange = {
347
+ OFF: "Off",
348
+ ON: "On"
349
+ };
350
+ var RegionToRunIn = {
351
+ ACTIVATING_REGION: "activatingRegion",
352
+ DEACTIVATING_REGION: "deactivatingRegion"
353
+ };
354
+ var LambdaUngracefulBehavior = {
355
+ SKIP: "skip"
356
+ };
357
+ var Ec2AsgCapacityMonitoringApproach = {
358
+ AUTOSCALING_MAX_IN_LAST_24_HOURS: "autoscalingMaxInLast24Hours",
359
+ SAMPLED_MAX_IN_LAST_24_HOURS: "sampledMaxInLast24Hours"
360
+ };
361
+ var EcsCapacityMonitoringApproach = {
362
+ CONTAINER_INSIGHTS_MAX_IN_LAST_24_HOURS: "containerInsightsMaxInLast24Hours",
363
+ SAMPLED_MAX_IN_LAST_24_HOURS: "sampledMaxInLast24Hours"
364
+ };
365
+ var EksCapacityMonitoringApproach = {
366
+ SAMPLED_MAX_IN_LAST_24_HOURS: "sampledMaxInLast24Hours"
367
+ };
368
+ var GlobalAuroraDefaultBehavior = {
369
+ FAILOVER: "failover",
370
+ SWITCHOVER_ONLY: "switchoverOnly"
371
+ };
372
+ var GlobalAuroraUngracefulBehavior = {
373
+ FAILOVER: "failover"
374
+ };
375
+ var ExecutionBlockType = {
376
+ AURORA: "AuroraGlobalDatabase",
377
+ CUSTOM_ACTION_LAMBDA: "CustomActionLambda",
378
+ EC2_ASG: "EC2AutoScaling",
379
+ ECS: "ECSServiceScaling",
380
+ EKS_RESOURCE_SCALING: "EKSResourceScaling",
381
+ EXECUTION_APPROVAL: "ManualApproval",
382
+ PARALLEL: "Parallel",
383
+ REGION_SWITCH: "ARCRegionSwitchPlan",
384
+ ROUTE53_HEALTH_CHECK: "Route53HealthCheck",
385
+ ROUTING_CONTROL: "ARCRoutingControl"
386
+ };
387
+ var StepStatus = {
388
+ CANCELLED: "canceled",
389
+ COMPLETED: "completed",
390
+ FAILED: "failed",
391
+ NOT_STARTED: "notStarted",
392
+ PENDING_APPROVAL: "pendingApproval",
393
+ RUNNING: "running",
394
+ SKIPPED: "skipped"
395
+ };
396
+ var ExecutionEventType = {
397
+ EXECUTION_BEHAVIOR_CHANGED_TO_GRACEFUL: "executionBehaviorChangedToGraceful",
398
+ EXECUTION_BEHAVIOR_CHANGED_TO_UNGRACEFUL: "executionBehaviorChangedToUngraceful",
399
+ EXECUTION_CANCELED: "executionCanceled",
400
+ EXECUTION_CANCELING: "executionCanceling",
401
+ EXECUTION_FAILED: "executionFailed",
402
+ EXECUTION_PAUSED: "executionPaused",
403
+ EXECUTION_PAUSING: "executionPausing",
404
+ EXECUTION_PENDING: "executionPending",
405
+ EXECUTION_PENDING_APPROVAL: "executionPendingApproval",
406
+ EXECUTION_PENDING_CHILD_PLAN_MANUAL_APPROVAL: "executionPendingChildPlanManualApproval",
407
+ EXECUTION_STARTED: "executionStarted",
408
+ EXECUTION_SUCCEEDED: "executionSucceeded",
409
+ EXECUTION_SUCCESS_MONITORING_APPLICATION_HEALTH: "executionSuccessMonitoringApplicationHealth",
410
+ STEP_CANCELED: "stepCanceled",
411
+ STEP_EXECUTION_BEHAVIOR_CHANGED_TO_UNGRACEFUL: "stepExecutionBehaviorChangedToUngraceful",
412
+ STEP_FAILED: "stepFailed",
413
+ STEP_PAUSED_BY_ERROR: "stepPausedByError",
414
+ STEP_PAUSED_BY_OPERATOR: "stepPausedByOperator",
415
+ STEP_PENDING_APPLICATION_HEALTH_MONITOR: "stepPendingApplicationHealthMonitor",
416
+ STEP_PENDING_APPROVAL: "stepPendingApproval",
417
+ STEP_SKIPPED: "stepSkipped",
418
+ STEP_STARTED: "stepStarted",
419
+ STEP_SUCCEEDED: "stepSucceeded",
420
+ STEP_UPDATE: "stepUpdate",
421
+ UNKNOWN: "unknown"
422
+ };
423
+ var InternalServerException = class _InternalServerException extends ARCRegionSwitchServiceException {
424
+ static {
425
+ __name(this, "InternalServerException");
426
+ }
427
+ name = "InternalServerException";
428
+ $fault = "server";
429
+ /**
430
+ * @internal
431
+ */
432
+ constructor(opts) {
433
+ super({
434
+ name: "InternalServerException",
435
+ $fault: "server",
436
+ ...opts
437
+ });
438
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
439
+ }
440
+ };
441
+ var IllegalStateException = class _IllegalStateException extends ARCRegionSwitchServiceException {
442
+ static {
443
+ __name(this, "IllegalStateException");
444
+ }
445
+ name = "IllegalStateException";
446
+ $fault = "client";
447
+ /**
448
+ * @internal
449
+ */
450
+ constructor(opts) {
451
+ super({
452
+ name: "IllegalStateException",
453
+ $fault: "client",
454
+ ...opts
455
+ });
456
+ Object.setPrototypeOf(this, _IllegalStateException.prototype);
457
+ }
458
+ };
459
+ var IllegalArgumentException = class _IllegalArgumentException extends ARCRegionSwitchServiceException {
460
+ static {
461
+ __name(this, "IllegalArgumentException");
462
+ }
463
+ name = "IllegalArgumentException";
464
+ $fault = "client";
465
+ /**
466
+ * @internal
467
+ */
468
+ constructor(opts) {
469
+ super({
470
+ name: "IllegalArgumentException",
471
+ $fault: "client",
472
+ ...opts
473
+ });
474
+ Object.setPrototypeOf(this, _IllegalArgumentException.prototype);
475
+ }
476
+ };
477
+ var UpdatePlanExecutionAction = {
478
+ PAUSE: "pause",
479
+ RESUME: "resume",
480
+ SWITCH_TO_GRACEFUL: "switchToGraceful",
481
+ SWITCH_TO_UNGRACEFUL: "switchToUngraceful"
482
+ };
483
+ var UpdatePlanExecutionStepAction = {
484
+ SKIP: "skip",
485
+ SWITCH_TO_UNGRACEFUL: "switchToUngraceful"
486
+ };
487
+ var ExecutionBlockConfiguration;
488
+ ((ExecutionBlockConfiguration2) => {
489
+ ExecutionBlockConfiguration2.visit = /* @__PURE__ */ __name((value, visitor) => {
490
+ if (value.customActionLambdaConfig !== void 0)
491
+ return visitor.customActionLambdaConfig(value.customActionLambdaConfig);
492
+ if (value.ec2AsgCapacityIncreaseConfig !== void 0)
493
+ return visitor.ec2AsgCapacityIncreaseConfig(value.ec2AsgCapacityIncreaseConfig);
494
+ if (value.executionApprovalConfig !== void 0)
495
+ return visitor.executionApprovalConfig(value.executionApprovalConfig);
496
+ if (value.arcRoutingControlConfig !== void 0)
497
+ return visitor.arcRoutingControlConfig(value.arcRoutingControlConfig);
498
+ if (value.globalAuroraConfig !== void 0) return visitor.globalAuroraConfig(value.globalAuroraConfig);
499
+ if (value.parallelConfig !== void 0) return visitor.parallelConfig(value.parallelConfig);
500
+ if (value.regionSwitchPlanConfig !== void 0) return visitor.regionSwitchPlanConfig(value.regionSwitchPlanConfig);
501
+ if (value.ecsCapacityIncreaseConfig !== void 0)
502
+ return visitor.ecsCapacityIncreaseConfig(value.ecsCapacityIncreaseConfig);
503
+ if (value.eksResourceScalingConfig !== void 0)
504
+ return visitor.eksResourceScalingConfig(value.eksResourceScalingConfig);
505
+ if (value.route53HealthCheckConfig !== void 0)
506
+ return visitor.route53HealthCheckConfig(value.route53HealthCheckConfig);
507
+ return visitor._(value.$unknown[0], value.$unknown[1]);
508
+ }, "visit");
509
+ })(ExecutionBlockConfiguration || (ExecutionBlockConfiguration = {}));
510
+
511
+ // src/protocols/Aws_json1_0.ts
512
+ var se_ApprovePlanExecutionStepCommand = /* @__PURE__ */ __name(async (input, context) => {
513
+ const headers = sharedHeaders("ApprovePlanExecutionStep");
514
+ let body;
515
+ body = JSON.stringify((0, import_smithy_client._json)(input));
516
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
517
+ }, "se_ApprovePlanExecutionStepCommand");
518
+ var se_CancelPlanExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
519
+ const headers = sharedHeaders("CancelPlanExecution");
520
+ let body;
521
+ body = JSON.stringify((0, import_smithy_client._json)(input));
522
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
523
+ }, "se_CancelPlanExecutionCommand");
524
+ var se_CreatePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
525
+ const headers = sharedHeaders("CreatePlan");
526
+ let body;
527
+ body = JSON.stringify(se_CreatePlanRequest(input, context));
528
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
529
+ }, "se_CreatePlanCommand");
530
+ var se_DeletePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
531
+ const headers = sharedHeaders("DeletePlan");
532
+ let body;
533
+ body = JSON.stringify((0, import_smithy_client._json)(input));
534
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
535
+ }, "se_DeletePlanCommand");
536
+ var se_GetPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
537
+ const headers = sharedHeaders("GetPlan");
538
+ let body;
539
+ body = JSON.stringify((0, import_smithy_client._json)(input));
540
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
541
+ }, "se_GetPlanCommand");
542
+ var se_GetPlanEvaluationStatusCommand = /* @__PURE__ */ __name(async (input, context) => {
543
+ const headers = sharedHeaders("GetPlanEvaluationStatus");
544
+ let body;
545
+ body = JSON.stringify((0, import_smithy_client._json)(input));
546
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
547
+ }, "se_GetPlanEvaluationStatusCommand");
548
+ var se_GetPlanExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
549
+ const headers = sharedHeaders("GetPlanExecution");
550
+ let body;
551
+ body = JSON.stringify((0, import_smithy_client._json)(input));
552
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
553
+ }, "se_GetPlanExecutionCommand");
554
+ var se_GetPlanInRegionCommand = /* @__PURE__ */ __name(async (input, context) => {
555
+ const headers = sharedHeaders("GetPlanInRegion");
556
+ let body;
557
+ body = JSON.stringify((0, import_smithy_client._json)(input));
558
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
559
+ }, "se_GetPlanInRegionCommand");
560
+ var se_ListPlanExecutionEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
561
+ const headers = sharedHeaders("ListPlanExecutionEvents");
562
+ let body;
563
+ body = JSON.stringify((0, import_smithy_client._json)(input));
564
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
565
+ }, "se_ListPlanExecutionEventsCommand");
566
+ var se_ListPlanExecutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
567
+ const headers = sharedHeaders("ListPlanExecutions");
568
+ let body;
569
+ body = JSON.stringify((0, import_smithy_client._json)(input));
570
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
571
+ }, "se_ListPlanExecutionsCommand");
572
+ var se_ListPlansCommand = /* @__PURE__ */ __name(async (input, context) => {
573
+ const headers = sharedHeaders("ListPlans");
574
+ let body;
575
+ body = JSON.stringify((0, import_smithy_client._json)(input));
576
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
577
+ }, "se_ListPlansCommand");
578
+ var se_ListPlansInRegionCommand = /* @__PURE__ */ __name(async (input, context) => {
579
+ const headers = sharedHeaders("ListPlansInRegion");
580
+ let body;
581
+ body = JSON.stringify((0, import_smithy_client._json)(input));
582
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
583
+ }, "se_ListPlansInRegionCommand");
584
+ var se_ListRoute53HealthChecksCommand = /* @__PURE__ */ __name(async (input, context) => {
585
+ const headers = sharedHeaders("ListRoute53HealthChecks");
586
+ let body;
587
+ body = JSON.stringify((0, import_smithy_client._json)(input));
588
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
589
+ }, "se_ListRoute53HealthChecksCommand");
590
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
591
+ const headers = sharedHeaders("ListTagsForResource");
592
+ let body;
593
+ body = JSON.stringify((0, import_smithy_client._json)(input));
594
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
595
+ }, "se_ListTagsForResourceCommand");
596
+ var se_StartPlanExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
597
+ const headers = sharedHeaders("StartPlanExecution");
598
+ let body;
599
+ body = JSON.stringify((0, import_smithy_client._json)(input));
600
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
601
+ }, "se_StartPlanExecutionCommand");
602
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
603
+ const headers = sharedHeaders("TagResource");
604
+ let body;
605
+ body = JSON.stringify((0, import_smithy_client._json)(input));
606
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
607
+ }, "se_TagResourceCommand");
608
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
609
+ const headers = sharedHeaders("UntagResource");
610
+ let body;
611
+ body = JSON.stringify((0, import_smithy_client._json)(input));
612
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
613
+ }, "se_UntagResourceCommand");
614
+ var se_UpdatePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
615
+ const headers = sharedHeaders("UpdatePlan");
616
+ let body;
617
+ body = JSON.stringify(se_UpdatePlanRequest(input, context));
618
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
619
+ }, "se_UpdatePlanCommand");
620
+ var se_UpdatePlanExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
621
+ const headers = sharedHeaders("UpdatePlanExecution");
622
+ let body;
623
+ body = JSON.stringify((0, import_smithy_client._json)(input));
624
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
625
+ }, "se_UpdatePlanExecutionCommand");
626
+ var se_UpdatePlanExecutionStepCommand = /* @__PURE__ */ __name(async (input, context) => {
627
+ const headers = sharedHeaders("UpdatePlanExecutionStep");
628
+ let body;
629
+ body = JSON.stringify((0, import_smithy_client._json)(input));
630
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
631
+ }, "se_UpdatePlanExecutionStepCommand");
632
+ var de_ApprovePlanExecutionStepCommand = /* @__PURE__ */ __name(async (output, context) => {
633
+ if (output.statusCode >= 300) {
634
+ return de_CommandError(output, context);
635
+ }
636
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
637
+ let contents = {};
638
+ contents = (0, import_smithy_client._json)(data);
639
+ const response = {
640
+ $metadata: deserializeMetadata(output),
641
+ ...contents
642
+ };
643
+ return response;
644
+ }, "de_ApprovePlanExecutionStepCommand");
645
+ var de_CancelPlanExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
646
+ if (output.statusCode >= 300) {
647
+ return de_CommandError(output, context);
648
+ }
649
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
650
+ let contents = {};
651
+ contents = (0, import_smithy_client._json)(data);
652
+ const response = {
653
+ $metadata: deserializeMetadata(output),
654
+ ...contents
655
+ };
656
+ return response;
657
+ }, "de_CancelPlanExecutionCommand");
658
+ var de_CreatePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
659
+ if (output.statusCode >= 300) {
660
+ return de_CommandError(output, context);
661
+ }
662
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
663
+ let contents = {};
664
+ contents = de_CreatePlanResponse(data, context);
665
+ const response = {
666
+ $metadata: deserializeMetadata(output),
667
+ ...contents
668
+ };
669
+ return response;
670
+ }, "de_CreatePlanCommand");
671
+ var de_DeletePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
672
+ if (output.statusCode >= 300) {
673
+ return de_CommandError(output, context);
674
+ }
675
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
676
+ let contents = {};
677
+ contents = (0, import_smithy_client._json)(data);
678
+ const response = {
679
+ $metadata: deserializeMetadata(output),
680
+ ...contents
681
+ };
682
+ return response;
683
+ }, "de_DeletePlanCommand");
684
+ var de_GetPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
685
+ if (output.statusCode >= 300) {
686
+ return de_CommandError(output, context);
687
+ }
688
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
689
+ let contents = {};
690
+ contents = de_GetPlanResponse(data, context);
691
+ const response = {
692
+ $metadata: deserializeMetadata(output),
693
+ ...contents
694
+ };
695
+ return response;
696
+ }, "de_GetPlanCommand");
697
+ var de_GetPlanEvaluationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
698
+ if (output.statusCode >= 300) {
699
+ return de_CommandError(output, context);
700
+ }
701
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
702
+ let contents = {};
703
+ contents = de_GetPlanEvaluationStatusResponse(data, context);
704
+ const response = {
705
+ $metadata: deserializeMetadata(output),
706
+ ...contents
707
+ };
708
+ return response;
709
+ }, "de_GetPlanEvaluationStatusCommand");
710
+ var de_GetPlanExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
711
+ if (output.statusCode >= 300) {
712
+ return de_CommandError(output, context);
713
+ }
714
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
715
+ let contents = {};
716
+ contents = de_GetPlanExecutionResponse(data, context);
717
+ const response = {
718
+ $metadata: deserializeMetadata(output),
719
+ ...contents
720
+ };
721
+ return response;
722
+ }, "de_GetPlanExecutionCommand");
723
+ var de_GetPlanInRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
724
+ if (output.statusCode >= 300) {
725
+ return de_CommandError(output, context);
726
+ }
727
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
728
+ let contents = {};
729
+ contents = de_GetPlanInRegionResponse(data, context);
730
+ const response = {
731
+ $metadata: deserializeMetadata(output),
732
+ ...contents
733
+ };
734
+ return response;
735
+ }, "de_GetPlanInRegionCommand");
736
+ var de_ListPlanExecutionEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
737
+ if (output.statusCode >= 300) {
738
+ return de_CommandError(output, context);
739
+ }
740
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
741
+ let contents = {};
742
+ contents = de_ListPlanExecutionEventsResponse(data, context);
743
+ const response = {
744
+ $metadata: deserializeMetadata(output),
745
+ ...contents
746
+ };
747
+ return response;
748
+ }, "de_ListPlanExecutionEventsCommand");
749
+ var de_ListPlanExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
750
+ if (output.statusCode >= 300) {
751
+ return de_CommandError(output, context);
752
+ }
753
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
754
+ let contents = {};
755
+ contents = de_ListPlanExecutionsResponse(data, context);
756
+ const response = {
757
+ $metadata: deserializeMetadata(output),
758
+ ...contents
759
+ };
760
+ return response;
761
+ }, "de_ListPlanExecutionsCommand");
762
+ var de_ListPlansCommand = /* @__PURE__ */ __name(async (output, context) => {
763
+ if (output.statusCode >= 300) {
764
+ return de_CommandError(output, context);
765
+ }
766
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
767
+ let contents = {};
768
+ contents = de_ListPlansResponse(data, context);
769
+ const response = {
770
+ $metadata: deserializeMetadata(output),
771
+ ...contents
772
+ };
773
+ return response;
774
+ }, "de_ListPlansCommand");
775
+ var de_ListPlansInRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
776
+ if (output.statusCode >= 300) {
777
+ return de_CommandError(output, context);
778
+ }
779
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
780
+ let contents = {};
781
+ contents = de_ListPlansInRegionResponse(data, context);
782
+ const response = {
783
+ $metadata: deserializeMetadata(output),
784
+ ...contents
785
+ };
786
+ return response;
787
+ }, "de_ListPlansInRegionCommand");
788
+ var de_ListRoute53HealthChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
789
+ if (output.statusCode >= 300) {
790
+ return de_CommandError(output, context);
791
+ }
792
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
793
+ let contents = {};
794
+ contents = (0, import_smithy_client._json)(data);
795
+ const response = {
796
+ $metadata: deserializeMetadata(output),
797
+ ...contents
798
+ };
799
+ return response;
800
+ }, "de_ListRoute53HealthChecksCommand");
801
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
802
+ if (output.statusCode >= 300) {
803
+ return de_CommandError(output, context);
804
+ }
805
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
806
+ let contents = {};
807
+ contents = (0, import_smithy_client._json)(data);
808
+ const response = {
809
+ $metadata: deserializeMetadata(output),
810
+ ...contents
811
+ };
812
+ return response;
813
+ }, "de_ListTagsForResourceCommand");
814
+ var de_StartPlanExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
815
+ if (output.statusCode >= 300) {
816
+ return de_CommandError(output, context);
817
+ }
818
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
819
+ let contents = {};
820
+ contents = (0, import_smithy_client._json)(data);
821
+ const response = {
822
+ $metadata: deserializeMetadata(output),
823
+ ...contents
824
+ };
825
+ return response;
826
+ }, "de_StartPlanExecutionCommand");
827
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
828
+ if (output.statusCode >= 300) {
829
+ return de_CommandError(output, context);
830
+ }
831
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
832
+ let contents = {};
833
+ contents = (0, import_smithy_client._json)(data);
834
+ const response = {
835
+ $metadata: deserializeMetadata(output),
836
+ ...contents
837
+ };
838
+ return response;
839
+ }, "de_TagResourceCommand");
840
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
841
+ if (output.statusCode >= 300) {
842
+ return de_CommandError(output, context);
843
+ }
844
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
845
+ let contents = {};
846
+ contents = (0, import_smithy_client._json)(data);
847
+ const response = {
848
+ $metadata: deserializeMetadata(output),
849
+ ...contents
850
+ };
851
+ return response;
852
+ }, "de_UntagResourceCommand");
853
+ var de_UpdatePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
854
+ if (output.statusCode >= 300) {
855
+ return de_CommandError(output, context);
856
+ }
857
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
858
+ let contents = {};
859
+ contents = de_UpdatePlanResponse(data, context);
860
+ const response = {
861
+ $metadata: deserializeMetadata(output),
862
+ ...contents
863
+ };
864
+ return response;
865
+ }, "de_UpdatePlanCommand");
866
+ var de_UpdatePlanExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
867
+ if (output.statusCode >= 300) {
868
+ return de_CommandError(output, context);
869
+ }
870
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
871
+ let contents = {};
872
+ contents = (0, import_smithy_client._json)(data);
873
+ const response = {
874
+ $metadata: deserializeMetadata(output),
875
+ ...contents
876
+ };
877
+ return response;
878
+ }, "de_UpdatePlanExecutionCommand");
879
+ var de_UpdatePlanExecutionStepCommand = /* @__PURE__ */ __name(async (output, context) => {
880
+ if (output.statusCode >= 300) {
881
+ return de_CommandError(output, context);
882
+ }
883
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
884
+ let contents = {};
885
+ contents = (0, import_smithy_client._json)(data);
886
+ const response = {
887
+ $metadata: deserializeMetadata(output),
888
+ ...contents
889
+ };
890
+ return response;
891
+ }, "de_UpdatePlanExecutionStepCommand");
892
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
893
+ const parsedOutput = {
894
+ ...output,
895
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
896
+ };
897
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
898
+ switch (errorCode) {
899
+ case "AccessDeniedException":
900
+ case "com.amazonaws.arcregionswitch#AccessDeniedException":
901
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
902
+ case "ResourceNotFoundException":
903
+ case "com.amazonaws.arcregionswitch#ResourceNotFoundException":
904
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
905
+ case "IllegalStateException":
906
+ case "com.amazonaws.arcregionswitch#IllegalStateException":
907
+ throw await de_IllegalStateExceptionRes(parsedOutput, context);
908
+ case "InternalServerException":
909
+ case "com.amazonaws.arcregionswitch#InternalServerException":
910
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
911
+ case "IllegalArgumentException":
912
+ case "com.amazonaws.arcregionswitch#IllegalArgumentException":
913
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
914
+ default:
915
+ const parsedBody = parsedOutput.body;
916
+ return throwDefaultError({
917
+ output,
918
+ parsedBody,
919
+ errorCode
920
+ });
921
+ }
922
+ }, "de_CommandError");
923
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
924
+ const body = parsedOutput.body;
925
+ const deserialized = (0, import_smithy_client._json)(body);
926
+ const exception = new AccessDeniedException({
927
+ $metadata: deserializeMetadata(parsedOutput),
928
+ ...deserialized
929
+ });
930
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
931
+ }, "de_AccessDeniedExceptionRes");
932
+ var de_IllegalArgumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
933
+ const body = parsedOutput.body;
934
+ const deserialized = (0, import_smithy_client._json)(body);
935
+ const exception = new IllegalArgumentException({
936
+ $metadata: deserializeMetadata(parsedOutput),
937
+ ...deserialized
938
+ });
939
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
940
+ }, "de_IllegalArgumentExceptionRes");
941
+ var de_IllegalStateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
942
+ const body = parsedOutput.body;
943
+ const deserialized = (0, import_smithy_client._json)(body);
944
+ const exception = new IllegalStateException({
945
+ $metadata: deserializeMetadata(parsedOutput),
946
+ ...deserialized
947
+ });
948
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
949
+ }, "de_IllegalStateExceptionRes");
950
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
951
+ const body = parsedOutput.body;
952
+ const deserialized = (0, import_smithy_client._json)(body);
953
+ const exception = new InternalServerException({
954
+ $metadata: deserializeMetadata(parsedOutput),
955
+ ...deserialized
956
+ });
957
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
958
+ }, "de_InternalServerExceptionRes");
959
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
960
+ const body = parsedOutput.body;
961
+ const deserialized = (0, import_smithy_client._json)(body);
962
+ const exception = new ResourceNotFoundException({
963
+ $metadata: deserializeMetadata(parsedOutput),
964
+ ...deserialized
965
+ });
966
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
967
+ }, "de_ResourceNotFoundExceptionRes");
968
+ var se_CreatePlanRequest = /* @__PURE__ */ __name((input, context) => {
969
+ return (0, import_smithy_client.take)(input, {
970
+ associatedAlarms: import_smithy_client._json,
971
+ description: [],
972
+ executionRole: [],
973
+ name: [],
974
+ primaryRegion: [],
975
+ recoveryApproach: [],
976
+ recoveryTimeObjectiveMinutes: [],
977
+ regions: import_smithy_client._json,
978
+ tags: import_smithy_client._json,
979
+ triggers: import_smithy_client._json,
980
+ workflows: /* @__PURE__ */ __name((_) => se_WorkflowList(_, context), "workflows")
981
+ });
982
+ }, "se_CreatePlanRequest");
983
+ var se_CustomActionLambdaConfiguration = /* @__PURE__ */ __name((input, context) => {
984
+ return (0, import_smithy_client.take)(input, {
985
+ lambdas: import_smithy_client._json,
986
+ regionToRun: [],
987
+ retryIntervalMinutes: import_smithy_client.serializeFloat,
988
+ timeoutMinutes: [],
989
+ ungraceful: import_smithy_client._json
990
+ });
991
+ }, "se_CustomActionLambdaConfiguration");
992
+ var se_ExecutionBlockConfiguration = /* @__PURE__ */ __name((input, context) => {
993
+ return ExecutionBlockConfiguration.visit(input, {
994
+ arcRoutingControlConfig: /* @__PURE__ */ __name((value) => ({ arcRoutingControlConfig: (0, import_smithy_client._json)(value) }), "arcRoutingControlConfig"),
995
+ customActionLambdaConfig: /* @__PURE__ */ __name((value) => ({
996
+ customActionLambdaConfig: se_CustomActionLambdaConfiguration(value, context)
997
+ }), "customActionLambdaConfig"),
998
+ ec2AsgCapacityIncreaseConfig: /* @__PURE__ */ __name((value) => ({ ec2AsgCapacityIncreaseConfig: (0, import_smithy_client._json)(value) }), "ec2AsgCapacityIncreaseConfig"),
999
+ ecsCapacityIncreaseConfig: /* @__PURE__ */ __name((value) => ({ ecsCapacityIncreaseConfig: (0, import_smithy_client._json)(value) }), "ecsCapacityIncreaseConfig"),
1000
+ eksResourceScalingConfig: /* @__PURE__ */ __name((value) => ({ eksResourceScalingConfig: (0, import_smithy_client._json)(value) }), "eksResourceScalingConfig"),
1001
+ executionApprovalConfig: /* @__PURE__ */ __name((value) => ({ executionApprovalConfig: (0, import_smithy_client._json)(value) }), "executionApprovalConfig"),
1002
+ globalAuroraConfig: /* @__PURE__ */ __name((value) => ({ globalAuroraConfig: (0, import_smithy_client._json)(value) }), "globalAuroraConfig"),
1003
+ parallelConfig: /* @__PURE__ */ __name((value) => ({ parallelConfig: se_ParallelExecutionBlockConfiguration(value, context) }), "parallelConfig"),
1004
+ regionSwitchPlanConfig: /* @__PURE__ */ __name((value) => ({ regionSwitchPlanConfig: (0, import_smithy_client._json)(value) }), "regionSwitchPlanConfig"),
1005
+ route53HealthCheckConfig: /* @__PURE__ */ __name((value) => ({ route53HealthCheckConfig: (0, import_smithy_client._json)(value) }), "route53HealthCheckConfig"),
1006
+ _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
1007
+ });
1008
+ }, "se_ExecutionBlockConfiguration");
1009
+ var se_ParallelExecutionBlockConfiguration = /* @__PURE__ */ __name((input, context) => {
1010
+ return (0, import_smithy_client.take)(input, {
1011
+ steps: /* @__PURE__ */ __name((_) => se_Steps(_, context), "steps")
1012
+ });
1013
+ }, "se_ParallelExecutionBlockConfiguration");
1014
+ var se_Step = /* @__PURE__ */ __name((input, context) => {
1015
+ return (0, import_smithy_client.take)(input, {
1016
+ description: [],
1017
+ executionBlockConfiguration: /* @__PURE__ */ __name((_) => se_ExecutionBlockConfiguration(_, context), "executionBlockConfiguration"),
1018
+ executionBlockType: [],
1019
+ name: []
1020
+ });
1021
+ }, "se_Step");
1022
+ var se_Steps = /* @__PURE__ */ __name((input, context) => {
1023
+ return input.filter((e) => e != null).map((entry) => {
1024
+ return se_Step(entry, context);
1025
+ });
1026
+ }, "se_Steps");
1027
+ var se_UpdatePlanRequest = /* @__PURE__ */ __name((input, context) => {
1028
+ return (0, import_smithy_client.take)(input, {
1029
+ arn: [],
1030
+ associatedAlarms: import_smithy_client._json,
1031
+ description: [],
1032
+ executionRole: [],
1033
+ recoveryTimeObjectiveMinutes: [],
1034
+ triggers: import_smithy_client._json,
1035
+ workflows: /* @__PURE__ */ __name((_) => se_WorkflowList(_, context), "workflows")
1036
+ });
1037
+ }, "se_UpdatePlanRequest");
1038
+ var se_Workflow = /* @__PURE__ */ __name((input, context) => {
1039
+ return (0, import_smithy_client.take)(input, {
1040
+ steps: /* @__PURE__ */ __name((_) => se_Steps(_, context), "steps"),
1041
+ workflowDescription: [],
1042
+ workflowTargetAction: [],
1043
+ workflowTargetRegion: []
1044
+ });
1045
+ }, "se_Workflow");
1046
+ var se_WorkflowList = /* @__PURE__ */ __name((input, context) => {
1047
+ return input.filter((e) => e != null).map((entry) => {
1048
+ return se_Workflow(entry, context);
1049
+ });
1050
+ }, "se_WorkflowList");
1051
+ var de_AbbreviatedExecution = /* @__PURE__ */ __name((output, context) => {
1052
+ return (0, import_smithy_client.take)(output, {
1053
+ actualRecoveryTime: import_smithy_client.expectString,
1054
+ comment: import_smithy_client.expectString,
1055
+ endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
1056
+ executionAction: import_smithy_client.expectString,
1057
+ executionId: import_smithy_client.expectString,
1058
+ executionRegion: import_smithy_client.expectString,
1059
+ executionState: import_smithy_client.expectString,
1060
+ mode: import_smithy_client.expectString,
1061
+ planArn: import_smithy_client.expectString,
1062
+ startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime"),
1063
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
1064
+ version: import_smithy_client.expectString
1065
+ });
1066
+ }, "de_AbbreviatedExecution");
1067
+ var de_AbbreviatedExecutionsList = /* @__PURE__ */ __name((output, context) => {
1068
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1069
+ return de_AbbreviatedExecution(entry, context);
1070
+ });
1071
+ return retVal;
1072
+ }, "de_AbbreviatedExecutionsList");
1073
+ var de_AbbreviatedPlan = /* @__PURE__ */ __name((output, context) => {
1074
+ return (0, import_smithy_client.take)(output, {
1075
+ activePlanExecution: import_smithy_client.expectString,
1076
+ arn: import_smithy_client.expectString,
1077
+ description: import_smithy_client.expectString,
1078
+ executionRole: import_smithy_client.expectString,
1079
+ name: import_smithy_client.expectString,
1080
+ owner: import_smithy_client.expectString,
1081
+ primaryRegion: import_smithy_client.expectString,
1082
+ recoveryApproach: import_smithy_client.expectString,
1083
+ recoveryTimeObjectiveMinutes: import_smithy_client.expectInt32,
1084
+ regions: import_smithy_client._json,
1085
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
1086
+ version: import_smithy_client.expectString
1087
+ });
1088
+ }, "de_AbbreviatedPlan");
1089
+ var de_CreatePlanResponse = /* @__PURE__ */ __name((output, context) => {
1090
+ return (0, import_smithy_client.take)(output, {
1091
+ plan: /* @__PURE__ */ __name((_) => de_Plan(_, context), "plan")
1092
+ });
1093
+ }, "de_CreatePlanResponse");
1094
+ var de_CustomActionLambdaConfiguration = /* @__PURE__ */ __name((output, context) => {
1095
+ return (0, import_smithy_client.take)(output, {
1096
+ lambdas: import_smithy_client._json,
1097
+ regionToRun: import_smithy_client.expectString,
1098
+ retryIntervalMinutes: import_smithy_client.limitedParseFloat32,
1099
+ timeoutMinutes: import_smithy_client.expectInt32,
1100
+ ungraceful: import_smithy_client._json
1101
+ });
1102
+ }, "de_CustomActionLambdaConfiguration");
1103
+ var de_ExecutionBlockConfiguration = /* @__PURE__ */ __name((output, context) => {
1104
+ if (output.arcRoutingControlConfig != null) {
1105
+ return {
1106
+ arcRoutingControlConfig: (0, import_smithy_client._json)(output.arcRoutingControlConfig)
1107
+ };
1108
+ }
1109
+ if (output.customActionLambdaConfig != null) {
1110
+ return {
1111
+ customActionLambdaConfig: de_CustomActionLambdaConfiguration(output.customActionLambdaConfig, context)
1112
+ };
1113
+ }
1114
+ if (output.ec2AsgCapacityIncreaseConfig != null) {
1115
+ return {
1116
+ ec2AsgCapacityIncreaseConfig: (0, import_smithy_client._json)(output.ec2AsgCapacityIncreaseConfig)
1117
+ };
1118
+ }
1119
+ if (output.ecsCapacityIncreaseConfig != null) {
1120
+ return {
1121
+ ecsCapacityIncreaseConfig: (0, import_smithy_client._json)(output.ecsCapacityIncreaseConfig)
1122
+ };
1123
+ }
1124
+ if (output.eksResourceScalingConfig != null) {
1125
+ return {
1126
+ eksResourceScalingConfig: (0, import_smithy_client._json)(output.eksResourceScalingConfig)
1127
+ };
1128
+ }
1129
+ if (output.executionApprovalConfig != null) {
1130
+ return {
1131
+ executionApprovalConfig: (0, import_smithy_client._json)(output.executionApprovalConfig)
1132
+ };
1133
+ }
1134
+ if (output.globalAuroraConfig != null) {
1135
+ return {
1136
+ globalAuroraConfig: (0, import_smithy_client._json)(output.globalAuroraConfig)
1137
+ };
1138
+ }
1139
+ if (output.parallelConfig != null) {
1140
+ return {
1141
+ parallelConfig: de_ParallelExecutionBlockConfiguration(output.parallelConfig, context)
1142
+ };
1143
+ }
1144
+ if (output.regionSwitchPlanConfig != null) {
1145
+ return {
1146
+ regionSwitchPlanConfig: (0, import_smithy_client._json)(output.regionSwitchPlanConfig)
1147
+ };
1148
+ }
1149
+ if (output.route53HealthCheckConfig != null) {
1150
+ return {
1151
+ route53HealthCheckConfig: (0, import_smithy_client._json)(output.route53HealthCheckConfig)
1152
+ };
1153
+ }
1154
+ return { $unknown: Object.entries(output)[0] };
1155
+ }, "de_ExecutionBlockConfiguration");
1156
+ var de_ExecutionEvent = /* @__PURE__ */ __name((output, context) => {
1157
+ return (0, import_smithy_client.take)(output, {
1158
+ description: import_smithy_client.expectString,
1159
+ error: import_smithy_client.expectString,
1160
+ eventId: import_smithy_client.expectString,
1161
+ executionBlockType: import_smithy_client.expectString,
1162
+ previousEventId: import_smithy_client.expectString,
1163
+ resources: import_smithy_client._json,
1164
+ stepName: import_smithy_client.expectString,
1165
+ timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "timestamp"),
1166
+ type: import_smithy_client.expectString
1167
+ });
1168
+ }, "de_ExecutionEvent");
1169
+ var de_ExecutionEventList = /* @__PURE__ */ __name((output, context) => {
1170
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1171
+ return de_ExecutionEvent(entry, context);
1172
+ });
1173
+ return retVal;
1174
+ }, "de_ExecutionEventList");
1175
+ var de_GetPlanEvaluationStatusResponse = /* @__PURE__ */ __name((output, context) => {
1176
+ return (0, import_smithy_client.take)(output, {
1177
+ evaluationState: import_smithy_client.expectString,
1178
+ lastEvaluatedVersion: import_smithy_client.expectString,
1179
+ lastEvaluationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastEvaluationTime"),
1180
+ nextToken: import_smithy_client.expectString,
1181
+ planArn: import_smithy_client.expectString,
1182
+ region: import_smithy_client.expectString,
1183
+ warnings: /* @__PURE__ */ __name((_) => de_PlanWarnings(_, context), "warnings")
1184
+ });
1185
+ }, "de_GetPlanEvaluationStatusResponse");
1186
+ var de_GetPlanExecutionResponse = /* @__PURE__ */ __name((output, context) => {
1187
+ return (0, import_smithy_client.take)(output, {
1188
+ actualRecoveryTime: import_smithy_client.expectString,
1189
+ comment: import_smithy_client.expectString,
1190
+ endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
1191
+ executionAction: import_smithy_client.expectString,
1192
+ executionId: import_smithy_client.expectString,
1193
+ executionRegion: import_smithy_client.expectString,
1194
+ executionState: import_smithy_client.expectString,
1195
+ mode: import_smithy_client.expectString,
1196
+ nextToken: import_smithy_client.expectString,
1197
+ plan: /* @__PURE__ */ __name((_) => de_Plan(_, context), "plan"),
1198
+ planArn: import_smithy_client.expectString,
1199
+ startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime"),
1200
+ stepStates: /* @__PURE__ */ __name((_) => de_StepStates(_, context), "stepStates"),
1201
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
1202
+ version: import_smithy_client.expectString
1203
+ });
1204
+ }, "de_GetPlanExecutionResponse");
1205
+ var de_GetPlanInRegionResponse = /* @__PURE__ */ __name((output, context) => {
1206
+ return (0, import_smithy_client.take)(output, {
1207
+ plan: /* @__PURE__ */ __name((_) => de_Plan(_, context), "plan")
1208
+ });
1209
+ }, "de_GetPlanInRegionResponse");
1210
+ var de_GetPlanResponse = /* @__PURE__ */ __name((output, context) => {
1211
+ return (0, import_smithy_client.take)(output, {
1212
+ plan: /* @__PURE__ */ __name((_) => de_Plan(_, context), "plan")
1213
+ });
1214
+ }, "de_GetPlanResponse");
1215
+ var de_ListPlanExecutionEventsResponse = /* @__PURE__ */ __name((output, context) => {
1216
+ return (0, import_smithy_client.take)(output, {
1217
+ items: /* @__PURE__ */ __name((_) => de_ExecutionEventList(_, context), "items"),
1218
+ nextToken: import_smithy_client.expectString
1219
+ });
1220
+ }, "de_ListPlanExecutionEventsResponse");
1221
+ var de_ListPlanExecutionsResponse = /* @__PURE__ */ __name((output, context) => {
1222
+ return (0, import_smithy_client.take)(output, {
1223
+ items: /* @__PURE__ */ __name((_) => de_AbbreviatedExecutionsList(_, context), "items"),
1224
+ nextToken: import_smithy_client.expectString
1225
+ });
1226
+ }, "de_ListPlanExecutionsResponse");
1227
+ var de_ListPlansInRegionResponse = /* @__PURE__ */ __name((output, context) => {
1228
+ return (0, import_smithy_client.take)(output, {
1229
+ nextToken: import_smithy_client.expectString,
1230
+ plans: /* @__PURE__ */ __name((_) => de_PlanList(_, context), "plans")
1231
+ });
1232
+ }, "de_ListPlansInRegionResponse");
1233
+ var de_ListPlansResponse = /* @__PURE__ */ __name((output, context) => {
1234
+ return (0, import_smithy_client.take)(output, {
1235
+ nextToken: import_smithy_client.expectString,
1236
+ plans: /* @__PURE__ */ __name((_) => de_PlanList(_, context), "plans")
1237
+ });
1238
+ }, "de_ListPlansResponse");
1239
+ var de_ParallelExecutionBlockConfiguration = /* @__PURE__ */ __name((output, context) => {
1240
+ return (0, import_smithy_client.take)(output, {
1241
+ steps: /* @__PURE__ */ __name((_) => de_Steps(_, context), "steps")
1242
+ });
1243
+ }, "de_ParallelExecutionBlockConfiguration");
1244
+ var de_Plan = /* @__PURE__ */ __name((output, context) => {
1245
+ return (0, import_smithy_client.take)(output, {
1246
+ arn: import_smithy_client.expectString,
1247
+ associatedAlarms: import_smithy_client._json,
1248
+ description: import_smithy_client.expectString,
1249
+ executionRole: import_smithy_client.expectString,
1250
+ name: import_smithy_client.expectString,
1251
+ owner: import_smithy_client.expectString,
1252
+ primaryRegion: import_smithy_client.expectString,
1253
+ recoveryApproach: import_smithy_client.expectString,
1254
+ recoveryTimeObjectiveMinutes: import_smithy_client.expectInt32,
1255
+ regions: import_smithy_client._json,
1256
+ triggers: import_smithy_client._json,
1257
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
1258
+ version: import_smithy_client.expectString,
1259
+ workflows: /* @__PURE__ */ __name((_) => de_WorkflowList(_, context), "workflows")
1260
+ });
1261
+ }, "de_Plan");
1262
+ var de_PlanList = /* @__PURE__ */ __name((output, context) => {
1263
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1264
+ return de_AbbreviatedPlan(entry, context);
1265
+ });
1266
+ return retVal;
1267
+ }, "de_PlanList");
1268
+ var de_PlanWarnings = /* @__PURE__ */ __name((output, context) => {
1269
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1270
+ return de_ResourceWarning(entry, context);
1271
+ });
1272
+ return retVal;
1273
+ }, "de_PlanWarnings");
1274
+ var de_ResourceWarning = /* @__PURE__ */ __name((output, context) => {
1275
+ return (0, import_smithy_client.take)(output, {
1276
+ resourceArn: import_smithy_client.expectString,
1277
+ stepName: import_smithy_client.expectString,
1278
+ version: import_smithy_client.expectString,
1279
+ warningMessage: import_smithy_client.expectString,
1280
+ warningStatus: import_smithy_client.expectString,
1281
+ warningUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "warningUpdatedTime"),
1282
+ workflow: import_smithy_client._json
1283
+ });
1284
+ }, "de_ResourceWarning");
1285
+ var de_Step = /* @__PURE__ */ __name((output, context) => {
1286
+ return (0, import_smithy_client.take)(output, {
1287
+ description: import_smithy_client.expectString,
1288
+ executionBlockConfiguration: /* @__PURE__ */ __name((_) => de_ExecutionBlockConfiguration((0, import_core2.awsExpectUnion)(_), context), "executionBlockConfiguration"),
1289
+ executionBlockType: import_smithy_client.expectString,
1290
+ name: import_smithy_client.expectString
1291
+ });
1292
+ }, "de_Step");
1293
+ var de_Steps = /* @__PURE__ */ __name((output, context) => {
1294
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1295
+ return de_Step(entry, context);
1296
+ });
1297
+ return retVal;
1298
+ }, "de_Steps");
1299
+ var de_StepState = /* @__PURE__ */ __name((output, context) => {
1300
+ return (0, import_smithy_client.take)(output, {
1301
+ endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
1302
+ name: import_smithy_client.expectString,
1303
+ startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime"),
1304
+ status: import_smithy_client.expectString,
1305
+ stepMode: import_smithy_client.expectString
1306
+ });
1307
+ }, "de_StepState");
1308
+ var de_StepStates = /* @__PURE__ */ __name((output, context) => {
1309
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1310
+ return de_StepState(entry, context);
1311
+ });
1312
+ return retVal;
1313
+ }, "de_StepStates");
1314
+ var de_UpdatePlanResponse = /* @__PURE__ */ __name((output, context) => {
1315
+ return (0, import_smithy_client.take)(output, {
1316
+ plan: /* @__PURE__ */ __name((_) => de_Plan(_, context), "plan")
1317
+ });
1318
+ }, "de_UpdatePlanResponse");
1319
+ var de_Workflow = /* @__PURE__ */ __name((output, context) => {
1320
+ return (0, import_smithy_client.take)(output, {
1321
+ steps: /* @__PURE__ */ __name((_) => de_Steps(_, context), "steps"),
1322
+ workflowDescription: import_smithy_client.expectString,
1323
+ workflowTargetAction: import_smithy_client.expectString,
1324
+ workflowTargetRegion: import_smithy_client.expectString
1325
+ });
1326
+ }, "de_Workflow");
1327
+ var de_WorkflowList = /* @__PURE__ */ __name((output, context) => {
1328
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1329
+ return de_Workflow(entry, context);
1330
+ });
1331
+ return retVal;
1332
+ }, "de_WorkflowList");
1333
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1334
+ httpStatusCode: output.statusCode,
1335
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1336
+ extendedRequestId: output.headers["x-amz-id-2"],
1337
+ cfId: output.headers["x-amz-cf-id"]
1338
+ }), "deserializeMetadata");
1339
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ARCRegionSwitchServiceException);
1340
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1341
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1342
+ const contents = {
1343
+ protocol,
1344
+ hostname,
1345
+ port,
1346
+ method: "POST",
1347
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1348
+ headers
1349
+ };
1350
+ if (resolvedHostname !== void 0) {
1351
+ contents.hostname = resolvedHostname;
1352
+ }
1353
+ if (body !== void 0) {
1354
+ contents.body = body;
1355
+ }
1356
+ return new import_protocol_http.HttpRequest(contents);
1357
+ }, "buildHttpRpcRequest");
1358
+ function sharedHeaders(operation) {
1359
+ return {
1360
+ "content-type": "application/x-amz-json-1.0",
1361
+ "x-amz-target": `ArcRegionSwitch.${operation}`
1362
+ };
1363
+ }
1364
+ __name(sharedHeaders, "sharedHeaders");
1365
+
1366
+ // src/commands/ApprovePlanExecutionStepCommand.ts
1367
+ var ApprovePlanExecutionStepCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1368
+ return [
1369
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1370
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1371
+ ];
1372
+ }).s("ArcRegionSwitch", "ApprovePlanExecutionStep", {}).n("ARCRegionSwitchClient", "ApprovePlanExecutionStepCommand").f(void 0, void 0).ser(se_ApprovePlanExecutionStepCommand).de(de_ApprovePlanExecutionStepCommand).build() {
1373
+ static {
1374
+ __name(this, "ApprovePlanExecutionStepCommand");
1375
+ }
1376
+ };
1377
+
1378
+ // src/commands/CancelPlanExecutionCommand.ts
1379
+
1380
+
1381
+
1382
+ var CancelPlanExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1383
+ return [
1384
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1385
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1386
+ ];
1387
+ }).s("ArcRegionSwitch", "CancelPlanExecution", {}).n("ARCRegionSwitchClient", "CancelPlanExecutionCommand").f(void 0, void 0).ser(se_CancelPlanExecutionCommand).de(de_CancelPlanExecutionCommand).build() {
1388
+ static {
1389
+ __name(this, "CancelPlanExecutionCommand");
1390
+ }
1391
+ };
1392
+
1393
+ // src/commands/CreatePlanCommand.ts
1394
+
1395
+
1396
+
1397
+ var CreatePlanCommand = class extends import_smithy_client.Command.classBuilder().ep({
1398
+ ...commonParams,
1399
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true }
1400
+ }).m(function(Command, cs, config, o) {
1401
+ return [
1402
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1403
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1404
+ ];
1405
+ }).s("ArcRegionSwitch", "CreatePlan", {}).n("ARCRegionSwitchClient", "CreatePlanCommand").f(void 0, void 0).ser(se_CreatePlanCommand).de(de_CreatePlanCommand).build() {
1406
+ static {
1407
+ __name(this, "CreatePlanCommand");
1408
+ }
1409
+ };
1410
+
1411
+ // src/commands/DeletePlanCommand.ts
1412
+
1413
+
1414
+
1415
+ var DeletePlanCommand = class extends import_smithy_client.Command.classBuilder().ep({
1416
+ ...commonParams,
1417
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true }
1418
+ }).m(function(Command, cs, config, o) {
1419
+ return [
1420
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1421
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1422
+ ];
1423
+ }).s("ArcRegionSwitch", "DeletePlan", {}).n("ARCRegionSwitchClient", "DeletePlanCommand").f(void 0, void 0).ser(se_DeletePlanCommand).de(de_DeletePlanCommand).build() {
1424
+ static {
1425
+ __name(this, "DeletePlanCommand");
1426
+ }
1427
+ };
1428
+
1429
+ // src/commands/GetPlanCommand.ts
1430
+
1431
+
1432
+
1433
+ var GetPlanCommand = class extends import_smithy_client.Command.classBuilder().ep({
1434
+ ...commonParams,
1435
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true }
1436
+ }).m(function(Command, cs, config, o) {
1437
+ return [
1438
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1439
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1440
+ ];
1441
+ }).s("ArcRegionSwitch", "GetPlan", {}).n("ARCRegionSwitchClient", "GetPlanCommand").f(void 0, void 0).ser(se_GetPlanCommand).de(de_GetPlanCommand).build() {
1442
+ static {
1443
+ __name(this, "GetPlanCommand");
1444
+ }
1445
+ };
1446
+
1447
+ // src/commands/GetPlanEvaluationStatusCommand.ts
1448
+
1449
+
1450
+
1451
+ var GetPlanEvaluationStatusCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1452
+ return [
1453
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1454
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1455
+ ];
1456
+ }).s("ArcRegionSwitch", "GetPlanEvaluationStatus", {}).n("ARCRegionSwitchClient", "GetPlanEvaluationStatusCommand").f(void 0, void 0).ser(se_GetPlanEvaluationStatusCommand).de(de_GetPlanEvaluationStatusCommand).build() {
1457
+ static {
1458
+ __name(this, "GetPlanEvaluationStatusCommand");
1459
+ }
1460
+ };
1461
+
1462
+ // src/commands/GetPlanExecutionCommand.ts
1463
+
1464
+
1465
+
1466
+ var GetPlanExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1467
+ return [
1468
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1469
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1470
+ ];
1471
+ }).s("ArcRegionSwitch", "GetPlanExecution", {}).n("ARCRegionSwitchClient", "GetPlanExecutionCommand").f(void 0, void 0).ser(se_GetPlanExecutionCommand).de(de_GetPlanExecutionCommand).build() {
1472
+ static {
1473
+ __name(this, "GetPlanExecutionCommand");
1474
+ }
1475
+ };
1476
+
1477
+ // src/commands/GetPlanInRegionCommand.ts
1478
+
1479
+
1480
+
1481
+ var GetPlanInRegionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1482
+ return [
1483
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1484
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1485
+ ];
1486
+ }).s("ArcRegionSwitch", "GetPlanInRegion", {}).n("ARCRegionSwitchClient", "GetPlanInRegionCommand").f(void 0, void 0).ser(se_GetPlanInRegionCommand).de(de_GetPlanInRegionCommand).build() {
1487
+ static {
1488
+ __name(this, "GetPlanInRegionCommand");
1489
+ }
1490
+ };
1491
+
1492
+ // src/commands/ListPlanExecutionEventsCommand.ts
1493
+
1494
+
1495
+
1496
+ var ListPlanExecutionEventsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1497
+ return [
1498
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1499
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1500
+ ];
1501
+ }).s("ArcRegionSwitch", "ListPlanExecutionEvents", {}).n("ARCRegionSwitchClient", "ListPlanExecutionEventsCommand").f(void 0, void 0).ser(se_ListPlanExecutionEventsCommand).de(de_ListPlanExecutionEventsCommand).build() {
1502
+ static {
1503
+ __name(this, "ListPlanExecutionEventsCommand");
1504
+ }
1505
+ };
1506
+
1507
+ // src/commands/ListPlanExecutionsCommand.ts
1508
+
1509
+
1510
+
1511
+ var ListPlanExecutionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1512
+ return [
1513
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1514
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1515
+ ];
1516
+ }).s("ArcRegionSwitch", "ListPlanExecutions", {}).n("ARCRegionSwitchClient", "ListPlanExecutionsCommand").f(void 0, void 0).ser(se_ListPlanExecutionsCommand).de(de_ListPlanExecutionsCommand).build() {
1517
+ static {
1518
+ __name(this, "ListPlanExecutionsCommand");
1519
+ }
1520
+ };
1521
+
1522
+ // src/commands/ListPlansCommand.ts
1523
+
1524
+
1525
+
1526
+ var ListPlansCommand = class extends import_smithy_client.Command.classBuilder().ep({
1527
+ ...commonParams,
1528
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true }
1529
+ }).m(function(Command, cs, config, o) {
1530
+ return [
1531
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1532
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1533
+ ];
1534
+ }).s("ArcRegionSwitch", "ListPlans", {}).n("ARCRegionSwitchClient", "ListPlansCommand").f(void 0, void 0).ser(se_ListPlansCommand).de(de_ListPlansCommand).build() {
1535
+ static {
1536
+ __name(this, "ListPlansCommand");
1537
+ }
1538
+ };
1539
+
1540
+ // src/commands/ListPlansInRegionCommand.ts
1541
+
1542
+
1543
+
1544
+ var ListPlansInRegionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1545
+ return [
1546
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1547
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1548
+ ];
1549
+ }).s("ArcRegionSwitch", "ListPlansInRegion", {}).n("ARCRegionSwitchClient", "ListPlansInRegionCommand").f(void 0, void 0).ser(se_ListPlansInRegionCommand).de(de_ListPlansInRegionCommand).build() {
1550
+ static {
1551
+ __name(this, "ListPlansInRegionCommand");
1552
+ }
1553
+ };
1554
+
1555
+ // src/commands/ListRoute53HealthChecksCommand.ts
1556
+
1557
+
1558
+
1559
+ var ListRoute53HealthChecksCommand = class extends import_smithy_client.Command.classBuilder().ep({
1560
+ ...commonParams,
1561
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true }
1562
+ }).m(function(Command, cs, config, o) {
1563
+ return [
1564
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1565
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1566
+ ];
1567
+ }).s("ArcRegionSwitch", "ListRoute53HealthChecks", {}).n("ARCRegionSwitchClient", "ListRoute53HealthChecksCommand").f(void 0, void 0).ser(se_ListRoute53HealthChecksCommand).de(de_ListRoute53HealthChecksCommand).build() {
1568
+ static {
1569
+ __name(this, "ListRoute53HealthChecksCommand");
1570
+ }
1571
+ };
1572
+
1573
+ // src/commands/ListTagsForResourceCommand.ts
1574
+
1575
+
1576
+
1577
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep({
1578
+ ...commonParams,
1579
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true }
1580
+ }).m(function(Command, cs, config, o) {
1581
+ return [
1582
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1583
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1584
+ ];
1585
+ }).s("ArcRegionSwitch", "ListTagsForResource", {}).n("ARCRegionSwitchClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1586
+ static {
1587
+ __name(this, "ListTagsForResourceCommand");
1588
+ }
1589
+ };
1590
+
1591
+ // src/commands/StartPlanExecutionCommand.ts
1592
+
1593
+
1594
+
1595
+ var StartPlanExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1596
+ return [
1597
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1598
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1599
+ ];
1600
+ }).s("ArcRegionSwitch", "StartPlanExecution", {}).n("ARCRegionSwitchClient", "StartPlanExecutionCommand").f(void 0, void 0).ser(se_StartPlanExecutionCommand).de(de_StartPlanExecutionCommand).build() {
1601
+ static {
1602
+ __name(this, "StartPlanExecutionCommand");
1603
+ }
1604
+ };
1605
+
1606
+ // src/commands/TagResourceCommand.ts
1607
+
1608
+
1609
+
1610
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep({
1611
+ ...commonParams,
1612
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true }
1613
+ }).m(function(Command, cs, config, o) {
1614
+ return [
1615
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1616
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1617
+ ];
1618
+ }).s("ArcRegionSwitch", "TagResource", {}).n("ARCRegionSwitchClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1619
+ static {
1620
+ __name(this, "TagResourceCommand");
1621
+ }
1622
+ };
1623
+
1624
+ // src/commands/UntagResourceCommand.ts
1625
+
1626
+
1627
+
1628
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep({
1629
+ ...commonParams,
1630
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true }
1631
+ }).m(function(Command, cs, config, o) {
1632
+ return [
1633
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1634
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1635
+ ];
1636
+ }).s("ArcRegionSwitch", "UntagResource", {}).n("ARCRegionSwitchClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1637
+ static {
1638
+ __name(this, "UntagResourceCommand");
1639
+ }
1640
+ };
1641
+
1642
+ // src/commands/UpdatePlanCommand.ts
1643
+
1644
+
1645
+
1646
+ var UpdatePlanCommand = class extends import_smithy_client.Command.classBuilder().ep({
1647
+ ...commonParams,
1648
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true }
1649
+ }).m(function(Command, cs, config, o) {
1650
+ return [
1651
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1652
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1653
+ ];
1654
+ }).s("ArcRegionSwitch", "UpdatePlan", {}).n("ARCRegionSwitchClient", "UpdatePlanCommand").f(void 0, void 0).ser(se_UpdatePlanCommand).de(de_UpdatePlanCommand).build() {
1655
+ static {
1656
+ __name(this, "UpdatePlanCommand");
1657
+ }
1658
+ };
1659
+
1660
+ // src/commands/UpdatePlanExecutionCommand.ts
1661
+
1662
+
1663
+
1664
+ var UpdatePlanExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1665
+ return [
1666
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1667
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1668
+ ];
1669
+ }).s("ArcRegionSwitch", "UpdatePlanExecution", {}).n("ARCRegionSwitchClient", "UpdatePlanExecutionCommand").f(void 0, void 0).ser(se_UpdatePlanExecutionCommand).de(de_UpdatePlanExecutionCommand).build() {
1670
+ static {
1671
+ __name(this, "UpdatePlanExecutionCommand");
1672
+ }
1673
+ };
1674
+
1675
+ // src/commands/UpdatePlanExecutionStepCommand.ts
1676
+
1677
+
1678
+
1679
+ var UpdatePlanExecutionStepCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1680
+ return [
1681
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1682
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1683
+ ];
1684
+ }).s("ArcRegionSwitch", "UpdatePlanExecutionStep", {}).n("ARCRegionSwitchClient", "UpdatePlanExecutionStepCommand").f(void 0, void 0).ser(se_UpdatePlanExecutionStepCommand).de(de_UpdatePlanExecutionStepCommand).build() {
1685
+ static {
1686
+ __name(this, "UpdatePlanExecutionStepCommand");
1687
+ }
1688
+ };
1689
+
1690
+ // src/ARCRegionSwitch.ts
1691
+ var commands = {
1692
+ ApprovePlanExecutionStepCommand,
1693
+ CancelPlanExecutionCommand,
1694
+ CreatePlanCommand,
1695
+ DeletePlanCommand,
1696
+ GetPlanCommand,
1697
+ GetPlanEvaluationStatusCommand,
1698
+ GetPlanExecutionCommand,
1699
+ GetPlanInRegionCommand,
1700
+ ListPlanExecutionEventsCommand,
1701
+ ListPlanExecutionsCommand,
1702
+ ListPlansCommand,
1703
+ ListPlansInRegionCommand,
1704
+ ListRoute53HealthChecksCommand,
1705
+ ListTagsForResourceCommand,
1706
+ StartPlanExecutionCommand,
1707
+ TagResourceCommand,
1708
+ UntagResourceCommand,
1709
+ UpdatePlanCommand,
1710
+ UpdatePlanExecutionCommand,
1711
+ UpdatePlanExecutionStepCommand
1712
+ };
1713
+ var ARCRegionSwitch = class extends ARCRegionSwitchClient {
1714
+ static {
1715
+ __name(this, "ARCRegionSwitch");
1716
+ }
1717
+ };
1718
+ (0, import_smithy_client.createAggregatedClient)(commands, ARCRegionSwitch);
1719
+
1720
+ // src/pagination/GetPlanEvaluationStatusPaginator.ts
1721
+
1722
+ var paginateGetPlanEvaluationStatus = (0, import_core.createPaginator)(ARCRegionSwitchClient, GetPlanEvaluationStatusCommand, "nextToken", "nextToken", "maxResults");
1723
+
1724
+ // src/pagination/GetPlanExecutionPaginator.ts
1725
+
1726
+ var paginateGetPlanExecution = (0, import_core.createPaginator)(ARCRegionSwitchClient, GetPlanExecutionCommand, "nextToken", "nextToken", "maxResults");
1727
+
1728
+ // src/pagination/ListPlanExecutionEventsPaginator.ts
1729
+
1730
+ var paginateListPlanExecutionEvents = (0, import_core.createPaginator)(ARCRegionSwitchClient, ListPlanExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
1731
+
1732
+ // src/pagination/ListPlanExecutionsPaginator.ts
1733
+
1734
+ var paginateListPlanExecutions = (0, import_core.createPaginator)(ARCRegionSwitchClient, ListPlanExecutionsCommand, "nextToken", "nextToken", "maxResults");
1735
+
1736
+ // src/pagination/ListPlansInRegionPaginator.ts
1737
+
1738
+ var paginateListPlansInRegion = (0, import_core.createPaginator)(ARCRegionSwitchClient, ListPlansInRegionCommand, "nextToken", "nextToken", "maxResults");
1739
+
1740
+ // src/pagination/ListPlansPaginator.ts
1741
+
1742
+ var paginateListPlans = (0, import_core.createPaginator)(ARCRegionSwitchClient, ListPlansCommand, "nextToken", "nextToken", "maxResults");
1743
+
1744
+ // src/pagination/ListRoute53HealthChecksPaginator.ts
1745
+
1746
+ var paginateListRoute53HealthChecks = (0, import_core.createPaginator)(ARCRegionSwitchClient, ListRoute53HealthChecksCommand, "nextToken", "nextToken", "maxResults");
1747
+
1748
+ // src/waiters/waitForPlanEvaluationStatusPassed.ts
1749
+ var import_util_waiter = require("@smithy/util-waiter");
1750
+ var checkState = /* @__PURE__ */ __name(async (client, input) => {
1751
+ let reason;
1752
+ try {
1753
+ const result = await client.send(new GetPlanEvaluationStatusCommand(input));
1754
+ reason = result;
1755
+ try {
1756
+ const returnComparator = /* @__PURE__ */ __name(() => {
1757
+ return result.evaluationState;
1758
+ }, "returnComparator");
1759
+ if (returnComparator() === "passed") {
1760
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
1761
+ }
1762
+ } catch (e) {
1763
+ }
1764
+ try {
1765
+ const returnComparator = /* @__PURE__ */ __name(() => {
1766
+ return result.evaluationState;
1767
+ }, "returnComparator");
1768
+ if (returnComparator() === "actionRequired") {
1769
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
1770
+ }
1771
+ } catch (e) {
1772
+ }
1773
+ try {
1774
+ const returnComparator = /* @__PURE__ */ __name(() => {
1775
+ return result.evaluationState;
1776
+ }, "returnComparator");
1777
+ if (returnComparator() === "pendingEvaluation") {
1778
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
1779
+ }
1780
+ } catch (e) {
1781
+ }
1782
+ } catch (exception) {
1783
+ reason = exception;
1784
+ }
1785
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
1786
+ }, "checkState");
1787
+ var waitForPlanEvaluationStatusPassed = /* @__PURE__ */ __name(async (params, input) => {
1788
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1789
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
1790
+ }, "waitForPlanEvaluationStatusPassed");
1791
+ var waitUntilPlanEvaluationStatusPassed = /* @__PURE__ */ __name(async (params, input) => {
1792
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1793
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
1794
+ return (0, import_util_waiter.checkExceptions)(result);
1795
+ }, "waitUntilPlanEvaluationStatusPassed");
1796
+
1797
+ // src/waiters/waitForPlanExecutionCompleted.ts
1798
+
1799
+ var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
1800
+ let reason;
1801
+ try {
1802
+ const result = await client.send(new GetPlanExecutionCommand(input));
1803
+ reason = result;
1804
+ try {
1805
+ const returnComparator = /* @__PURE__ */ __name(() => {
1806
+ return result.executionState;
1807
+ }, "returnComparator");
1808
+ if (returnComparator() === "completed") {
1809
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
1810
+ }
1811
+ } catch (e) {
1812
+ }
1813
+ try {
1814
+ const returnComparator = /* @__PURE__ */ __name(() => {
1815
+ return result.executionState;
1816
+ }, "returnComparator");
1817
+ if (returnComparator() === "completedWithExceptions") {
1818
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
1819
+ }
1820
+ } catch (e) {
1821
+ }
1822
+ try {
1823
+ const returnComparator = /* @__PURE__ */ __name(() => {
1824
+ return result.executionState;
1825
+ }, "returnComparator");
1826
+ if (returnComparator() === "failed") {
1827
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
1828
+ }
1829
+ } catch (e) {
1830
+ }
1831
+ try {
1832
+ const returnComparator = /* @__PURE__ */ __name(() => {
1833
+ return result.executionState;
1834
+ }, "returnComparator");
1835
+ if (returnComparator() === "canceled") {
1836
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
1837
+ }
1838
+ } catch (e) {
1839
+ }
1840
+ try {
1841
+ const returnComparator = /* @__PURE__ */ __name(() => {
1842
+ return result.executionState;
1843
+ }, "returnComparator");
1844
+ if (returnComparator() === "planExecutionTimedOut") {
1845
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
1846
+ }
1847
+ } catch (e) {
1848
+ }
1849
+ } catch (exception) {
1850
+ reason = exception;
1851
+ }
1852
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
1853
+ }, "checkState");
1854
+ var waitForPlanExecutionCompleted = /* @__PURE__ */ __name(async (params, input) => {
1855
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1856
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
1857
+ }, "waitForPlanExecutionCompleted");
1858
+ var waitUntilPlanExecutionCompleted = /* @__PURE__ */ __name(async (params, input) => {
1859
+ const serviceDefaults = { minDelay: 30, maxDelay: 120 };
1860
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
1861
+ return (0, import_util_waiter.checkExceptions)(result);
1862
+ }, "waitUntilPlanExecutionCompleted");
1863
+ // Annotate the CommonJS export names for ESM import in node:
1864
+
1865
+ 0 && (module.exports = {
1866
+ ARCRegionSwitchServiceException,
1867
+ __Client,
1868
+ ARCRegionSwitchClient,
1869
+ ARCRegionSwitch,
1870
+ $Command,
1871
+ ApprovePlanExecutionStepCommand,
1872
+ CancelPlanExecutionCommand,
1873
+ CreatePlanCommand,
1874
+ DeletePlanCommand,
1875
+ GetPlanCommand,
1876
+ GetPlanEvaluationStatusCommand,
1877
+ GetPlanExecutionCommand,
1878
+ GetPlanInRegionCommand,
1879
+ ListPlanExecutionEventsCommand,
1880
+ ListPlanExecutionsCommand,
1881
+ ListPlansCommand,
1882
+ ListPlansInRegionCommand,
1883
+ ListRoute53HealthChecksCommand,
1884
+ ListTagsForResourceCommand,
1885
+ StartPlanExecutionCommand,
1886
+ TagResourceCommand,
1887
+ UntagResourceCommand,
1888
+ UpdatePlanCommand,
1889
+ UpdatePlanExecutionCommand,
1890
+ UpdatePlanExecutionStepCommand,
1891
+ paginateGetPlanEvaluationStatus,
1892
+ paginateGetPlanExecution,
1893
+ paginateListPlanExecutionEvents,
1894
+ paginateListPlanExecutions,
1895
+ paginateListPlansInRegion,
1896
+ paginateListPlans,
1897
+ paginateListRoute53HealthChecks,
1898
+ waitForPlanEvaluationStatusPassed,
1899
+ waitUntilPlanEvaluationStatusPassed,
1900
+ waitForPlanExecutionCompleted,
1901
+ waitUntilPlanExecutionCompleted,
1902
+ ExecutionAction,
1903
+ ExecutionState,
1904
+ ExecutionMode,
1905
+ RecoveryApproach,
1906
+ AccessDeniedException,
1907
+ AlarmCondition,
1908
+ AlarmType,
1909
+ Approval,
1910
+ ResourceNotFoundException,
1911
+ EvaluationStatus,
1912
+ ResourceWarningStatus,
1913
+ WorkflowTargetAction,
1914
+ RoutingControlStateChange,
1915
+ RegionToRunIn,
1916
+ LambdaUngracefulBehavior,
1917
+ Ec2AsgCapacityMonitoringApproach,
1918
+ EcsCapacityMonitoringApproach,
1919
+ EksCapacityMonitoringApproach,
1920
+ GlobalAuroraDefaultBehavior,
1921
+ GlobalAuroraUngracefulBehavior,
1922
+ ExecutionBlockType,
1923
+ StepStatus,
1924
+ ExecutionEventType,
1925
+ InternalServerException,
1926
+ IllegalStateException,
1927
+ IllegalArgumentException,
1928
+ UpdatePlanExecutionAction,
1929
+ UpdatePlanExecutionStepAction,
1930
+ ExecutionBlockConfiguration
1931
+ });
1932
+