@aws-sdk/client-arc-region-switch 3.1044.0 → 3.1046.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 (115) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
  2. package/dist-cjs/endpoint/bdd.js +2 -2
  3. package/dist-cjs/endpoint/endpointResolver.js +4 -4
  4. package/dist-cjs/index.js +88 -80
  5. package/dist-cjs/models/ARCRegionSwitchServiceException.js +3 -3
  6. package/dist-cjs/runtimeConfig.browser.js +12 -14
  7. package/dist-cjs/runtimeConfig.js +18 -22
  8. package/dist-cjs/runtimeConfig.shared.js +9 -10
  9. package/dist-cjs/schemas/schemas_0.js +29 -5
  10. package/dist-es/ARCRegionSwitch.js +1 -1
  11. package/dist-es/ARCRegionSwitchClient.js +5 -5
  12. package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  13. package/dist-es/commands/ApprovePlanExecutionStepCommand.js +2 -2
  14. package/dist-es/commands/CancelPlanExecutionCommand.js +2 -2
  15. package/dist-es/commands/CreatePlanCommand.js +2 -2
  16. package/dist-es/commands/DeletePlanCommand.js +2 -2
  17. package/dist-es/commands/GetPlanCommand.js +2 -2
  18. package/dist-es/commands/GetPlanEvaluationStatusCommand.js +2 -2
  19. package/dist-es/commands/GetPlanExecutionCommand.js +2 -2
  20. package/dist-es/commands/GetPlanInRegionCommand.js +2 -2
  21. package/dist-es/commands/ListPlanExecutionEventsCommand.js +2 -2
  22. package/dist-es/commands/ListPlanExecutionsCommand.js +2 -2
  23. package/dist-es/commands/ListPlansCommand.js +2 -2
  24. package/dist-es/commands/ListPlansInRegionCommand.js +2 -2
  25. package/dist-es/commands/ListRoute53HealthChecksCommand.js +2 -2
  26. package/dist-es/commands/ListRoute53HealthChecksInRegionCommand.js +2 -2
  27. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  28. package/dist-es/commands/StartPlanExecutionCommand.js +2 -2
  29. package/dist-es/commands/TagResourceCommand.js +2 -2
  30. package/dist-es/commands/UntagResourceCommand.js +2 -2
  31. package/dist-es/commands/UpdatePlanCommand.js +2 -2
  32. package/dist-es/commands/UpdatePlanExecutionCommand.js +2 -2
  33. package/dist-es/commands/UpdatePlanExecutionStepCommand.js +2 -2
  34. package/dist-es/endpoint/bdd.js +1 -1
  35. package/dist-es/endpoint/endpointResolver.js +1 -1
  36. package/dist-es/models/ARCRegionSwitchServiceException.js +1 -1
  37. package/dist-es/models/enums.js +8 -0
  38. package/dist-es/runtimeConfig.browser.js +4 -6
  39. package/dist-es/runtimeConfig.js +4 -8
  40. package/dist-es/runtimeConfig.shared.js +3 -4
  41. package/dist-es/runtimeExtensions.js +2 -2
  42. package/dist-es/schemas/schemas_0.js +26 -2
  43. package/dist-es/waiters/waitForPlanEvaluationStatusPassed.js +1 -1
  44. package/dist-es/waiters/waitForPlanExecutionCompleted.js +1 -1
  45. package/dist-types/ARCRegionSwitch.d.ts +1 -1
  46. package/dist-types/ARCRegionSwitchClient.d.ts +5 -5
  47. package/dist-types/commands/ApprovePlanExecutionStepCommand.d.ts +6 -4
  48. package/dist-types/commands/CancelPlanExecutionCommand.d.ts +6 -4
  49. package/dist-types/commands/CreatePlanCommand.d.ts +66 -8
  50. package/dist-types/commands/DeletePlanCommand.d.ts +6 -4
  51. package/dist-types/commands/GetPlanCommand.d.ts +36 -6
  52. package/dist-types/commands/GetPlanEvaluationStatusCommand.d.ts +6 -4
  53. package/dist-types/commands/GetPlanExecutionCommand.d.ts +36 -6
  54. package/dist-types/commands/GetPlanInRegionCommand.d.ts +36 -6
  55. package/dist-types/commands/ListPlanExecutionEventsCommand.d.ts +7 -5
  56. package/dist-types/commands/ListPlanExecutionsCommand.d.ts +6 -4
  57. package/dist-types/commands/ListPlansCommand.d.ts +6 -4
  58. package/dist-types/commands/ListPlansInRegionCommand.d.ts +6 -4
  59. package/dist-types/commands/ListRoute53HealthChecksCommand.d.ts +6 -4
  60. package/dist-types/commands/ListRoute53HealthChecksInRegionCommand.d.ts +6 -4
  61. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
  62. package/dist-types/commands/StartPlanExecutionCommand.d.ts +6 -4
  63. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  64. package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
  65. package/dist-types/commands/UpdatePlanCommand.d.ts +66 -8
  66. package/dist-types/commands/UpdatePlanExecutionCommand.d.ts +6 -4
  67. package/dist-types/commands/UpdatePlanExecutionStepCommand.d.ts +6 -4
  68. package/dist-types/endpoint/bdd.d.ts +1 -1
  69. package/dist-types/extensionConfiguration.d.ts +1 -1
  70. package/dist-types/models/ARCRegionSwitchServiceException.d.ts +1 -1
  71. package/dist-types/models/enums.d.ts +24 -0
  72. package/dist-types/models/errors.d.ts +1 -1
  73. package/dist-types/models/models_0.d.ts +99 -5
  74. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  75. package/dist-types/runtimeConfig.d.ts +2 -2
  76. package/dist-types/runtimeConfig.native.d.ts +2 -2
  77. package/dist-types/schemas/schemas_0.d.ts +3 -0
  78. package/dist-types/ts3.4/ARCRegionSwitch.d.ts +1 -1
  79. package/dist-types/ts3.4/ARCRegionSwitchClient.d.ts +8 -14
  80. package/dist-types/ts3.4/commands/ApprovePlanExecutionStepCommand.d.ts +6 -4
  81. package/dist-types/ts3.4/commands/CancelPlanExecutionCommand.d.ts +6 -4
  82. package/dist-types/ts3.4/commands/CreatePlanCommand.d.ts +6 -4
  83. package/dist-types/ts3.4/commands/DeletePlanCommand.d.ts +6 -4
  84. package/dist-types/ts3.4/commands/GetPlanCommand.d.ts +6 -4
  85. package/dist-types/ts3.4/commands/GetPlanEvaluationStatusCommand.d.ts +6 -4
  86. package/dist-types/ts3.4/commands/GetPlanExecutionCommand.d.ts +6 -4
  87. package/dist-types/ts3.4/commands/GetPlanInRegionCommand.d.ts +6 -4
  88. package/dist-types/ts3.4/commands/ListPlanExecutionEventsCommand.d.ts +6 -4
  89. package/dist-types/ts3.4/commands/ListPlanExecutionsCommand.d.ts +6 -4
  90. package/dist-types/ts3.4/commands/ListPlansCommand.d.ts +6 -6
  91. package/dist-types/ts3.4/commands/ListPlansInRegionCommand.d.ts +6 -4
  92. package/dist-types/ts3.4/commands/ListRoute53HealthChecksCommand.d.ts +6 -4
  93. package/dist-types/ts3.4/commands/ListRoute53HealthChecksInRegionCommand.d.ts +6 -4
  94. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
  95. package/dist-types/ts3.4/commands/StartPlanExecutionCommand.d.ts +6 -4
  96. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
  97. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
  98. package/dist-types/ts3.4/commands/UpdatePlanCommand.d.ts +6 -4
  99. package/dist-types/ts3.4/commands/UpdatePlanExecutionCommand.d.ts +6 -4
  100. package/dist-types/ts3.4/commands/UpdatePlanExecutionStepCommand.d.ts +6 -4
  101. package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
  102. package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
  103. package/dist-types/ts3.4/models/ARCRegionSwitchServiceException.d.ts +1 -1
  104. package/dist-types/ts3.4/models/enums.d.ts +12 -0
  105. package/dist-types/ts3.4/models/errors.d.ts +1 -1
  106. package/dist-types/ts3.4/models/models_0.d.ts +51 -0
  107. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  108. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  109. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  110. package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
  111. package/dist-types/ts3.4/waiters/waitForPlanEvaluationStatusPassed.d.ts +1 -1
  112. package/dist-types/ts3.4/waiters/waitForPlanExecutionCompleted.d.ts +1 -1
  113. package/dist-types/waiters/waitForPlanEvaluationStatusPassed.d.ts +1 -1
  114. package/dist-types/waiters/waitForPlanExecutionCompleted.d.ts +1 -1
  115. package/package.json +13 -35
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveHttpAuthSchemeConfig = exports.defaultARCRegionSwitchHttpAuthSchemeProvider = exports.defaultARCRegionSwitchHttpAuthSchemeParametersProvider = void 0;
4
4
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const util_middleware_1 = require("@smithy/util-middleware");
5
+ const client_1 = require("@smithy/core/client");
6
6
  const defaultARCRegionSwitchHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
7
  return {
8
- operation: (0, util_middleware_1.getSmithyContext)(context).operation,
9
- region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
8
+ operation: (0, client_1.getSmithyContext)(context).operation,
9
+ region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
10
10
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
11
  })(),
12
12
  };
@@ -40,7 +40,7 @@ exports.defaultARCRegionSwitchHttpAuthSchemeProvider = defaultARCRegionSwitchHtt
40
40
  const resolveHttpAuthSchemeConfig = (config) => {
41
41
  const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
42
42
  return Object.assign(config_0, {
43
- authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
43
+ authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
44
44
  });
45
45
  };
46
46
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.bdd = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const endpoints_1 = require("@smithy/core/endpoints");
5
5
  const a = "isSet", b = "PartitionResult", c = "booleanEquals", d = "sigv4", e = "arc-region-switch", f = { "ref": "Endpoint" }, g = { "authSchemes": [{ "name": d, "signingName": e, "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, h = [{ "ref": "Region" }];
6
6
  const _data = {
7
7
  conditions: [
@@ -39,4 +39,4 @@ const nodes = new Int32Array([
39
39
  5, r + 2, r + 3,
40
40
  3, r + 5, r + 6,
41
41
  ]);
42
- exports.bdd = util_endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
42
+ exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -2,17 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
4
  const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
- const util_endpoints_2 = require("@smithy/util-endpoints");
5
+ const endpoints_1 = require("@smithy/core/endpoints");
6
6
  const bdd_1 = require("./bdd");
7
- const cache = new util_endpoints_2.EndpointCache({
7
+ const cache = new endpoints_1.EndpointCache({
8
8
  size: 50,
9
9
  params: ["Endpoint", "Region", "UseControlPlaneEndpoint", "UseFIPS"],
10
10
  });
11
11
  const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, util_endpoints_2.decideEndpoint)(bdd_1.bdd, {
12
+ return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
13
13
  endpointParams: endpointParams,
14
14
  logger: context.logger,
15
15
  }));
16
16
  };
17
17
  exports.defaultEndpointResolver = defaultEndpointResolver;
18
- util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
18
+ endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -4,19 +4,17 @@ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
4
  var middlewareLogger = require('@aws-sdk/middleware-logger');
5
5
  var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
- var configResolver = require('@smithy/config-resolver');
8
7
  var core = require('@smithy/core');
8
+ var client = require('@smithy/core/client');
9
+ var config = require('@smithy/core/config');
10
+ var endpoints = require('@smithy/core/endpoints');
11
+ var protocols = require('@smithy/core/protocols');
12
+ var retry = require('@smithy/core/retry');
9
13
  var schema = require('@smithy/core/schema');
10
- var middlewareContentLength = require('@smithy/middleware-content-length');
11
- var middlewareEndpoint = require('@smithy/middleware-endpoint');
12
- var middlewareRetry = require('@smithy/middleware-retry');
13
- var smithyClient = require('@smithy/smithy-client');
14
14
  var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
- var protocolHttp = require('@smithy/protocol-http');
18
17
  var schemas_0 = require('./schemas/schemas_0');
19
- var utilWaiter = require('@smithy/util-waiter');
20
18
  var errors = require('./models/errors');
21
19
  var ARCRegionSwitchServiceException = require('./models/ARCRegionSwitchServiceException');
22
20
 
@@ -72,12 +70,12 @@ const resolveHttpAuthRuntimeConfig = (config) => {
72
70
  };
73
71
 
74
72
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
- const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
73
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
74
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
- return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
75
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
76
  };
79
77
 
80
- class ARCRegionSwitchClient extends smithyClient.Client {
78
+ class ARCRegionSwitchClient extends client.Client {
81
79
  config;
82
80
  constructor(...[configuration]) {
83
81
  const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
@@ -85,17 +83,17 @@ class ARCRegionSwitchClient extends smithyClient.Client {
85
83
  this.initConfig = _config_0;
86
84
  const _config_1 = resolveClientEndpointParameters(_config_0);
87
85
  const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
- const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
- const _config_4 = configResolver.resolveRegionConfig(_config_3);
86
+ const _config_3 = retry.resolveRetryConfig(_config_2);
87
+ const _config_4 = config.resolveRegionConfig(_config_3);
90
88
  const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
- const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
89
+ const _config_6 = endpoints.resolveEndpointConfig(_config_5);
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
95
93
  this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
96
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
97
- this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
98
- this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
95
+ this.middlewareStack.use(retry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
99
97
  this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
100
98
  this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
101
99
  this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
@@ -112,11 +110,11 @@ class ARCRegionSwitchClient extends smithyClient.Client {
112
110
  }
113
111
  }
114
112
 
115
- class ApprovePlanExecutionStepCommand extends smithyClient.Command
113
+ class ApprovePlanExecutionStepCommand extends client.Command
116
114
  .classBuilder()
117
115
  .ep(commonParams)
118
116
  .m(function (Command, cs, config, o) {
119
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
117
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
120
118
  })
121
119
  .s("ArcRegionSwitch", "ApprovePlanExecutionStep", {})
122
120
  .n("ARCRegionSwitchClient", "ApprovePlanExecutionStepCommand")
@@ -124,11 +122,11 @@ class ApprovePlanExecutionStepCommand extends smithyClient.Command
124
122
  .build() {
125
123
  }
126
124
 
127
- class CancelPlanExecutionCommand extends smithyClient.Command
125
+ class CancelPlanExecutionCommand extends client.Command
128
126
  .classBuilder()
129
127
  .ep(commonParams)
130
128
  .m(function (Command, cs, config, o) {
131
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
129
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
132
130
  })
133
131
  .s("ArcRegionSwitch", "CancelPlanExecution", {})
134
132
  .n("ARCRegionSwitchClient", "CancelPlanExecutionCommand")
@@ -136,14 +134,14 @@ class CancelPlanExecutionCommand extends smithyClient.Command
136
134
  .build() {
137
135
  }
138
136
 
139
- class CreatePlanCommand extends smithyClient.Command
137
+ class CreatePlanCommand extends client.Command
140
138
  .classBuilder()
141
139
  .ep({
142
140
  ...commonParams,
143
141
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
144
142
  })
145
143
  .m(function (Command, cs, config, o) {
146
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
144
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
147
145
  })
148
146
  .s("ArcRegionSwitch", "CreatePlan", {})
149
147
  .n("ARCRegionSwitchClient", "CreatePlanCommand")
@@ -151,14 +149,14 @@ class CreatePlanCommand extends smithyClient.Command
151
149
  .build() {
152
150
  }
153
151
 
154
- class DeletePlanCommand extends smithyClient.Command
152
+ class DeletePlanCommand extends client.Command
155
153
  .classBuilder()
156
154
  .ep({
157
155
  ...commonParams,
158
156
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
159
157
  })
160
158
  .m(function (Command, cs, config, o) {
161
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
159
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
162
160
  })
163
161
  .s("ArcRegionSwitch", "DeletePlan", {})
164
162
  .n("ARCRegionSwitchClient", "DeletePlanCommand")
@@ -166,14 +164,14 @@ class DeletePlanCommand extends smithyClient.Command
166
164
  .build() {
167
165
  }
168
166
 
169
- class GetPlanCommand extends smithyClient.Command
167
+ class GetPlanCommand extends client.Command
170
168
  .classBuilder()
171
169
  .ep({
172
170
  ...commonParams,
173
171
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
174
172
  })
175
173
  .m(function (Command, cs, config, o) {
176
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
174
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
177
175
  })
178
176
  .s("ArcRegionSwitch", "GetPlan", {})
179
177
  .n("ARCRegionSwitchClient", "GetPlanCommand")
@@ -181,11 +179,11 @@ class GetPlanCommand extends smithyClient.Command
181
179
  .build() {
182
180
  }
183
181
 
184
- class GetPlanEvaluationStatusCommand extends smithyClient.Command
182
+ class GetPlanEvaluationStatusCommand extends client.Command
185
183
  .classBuilder()
186
184
  .ep(commonParams)
187
185
  .m(function (Command, cs, config, o) {
188
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
186
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
189
187
  })
190
188
  .s("ArcRegionSwitch", "GetPlanEvaluationStatus", {})
191
189
  .n("ARCRegionSwitchClient", "GetPlanEvaluationStatusCommand")
@@ -193,11 +191,11 @@ class GetPlanEvaluationStatusCommand extends smithyClient.Command
193
191
  .build() {
194
192
  }
195
193
 
196
- class GetPlanExecutionCommand extends smithyClient.Command
194
+ class GetPlanExecutionCommand extends client.Command
197
195
  .classBuilder()
198
196
  .ep(commonParams)
199
197
  .m(function (Command, cs, config, o) {
200
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
198
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
201
199
  })
202
200
  .s("ArcRegionSwitch", "GetPlanExecution", {})
203
201
  .n("ARCRegionSwitchClient", "GetPlanExecutionCommand")
@@ -205,11 +203,11 @@ class GetPlanExecutionCommand extends smithyClient.Command
205
203
  .build() {
206
204
  }
207
205
 
208
- class GetPlanInRegionCommand extends smithyClient.Command
206
+ class GetPlanInRegionCommand extends client.Command
209
207
  .classBuilder()
210
208
  .ep(commonParams)
211
209
  .m(function (Command, cs, config, o) {
212
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
210
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
213
211
  })
214
212
  .s("ArcRegionSwitch", "GetPlanInRegion", {})
215
213
  .n("ARCRegionSwitchClient", "GetPlanInRegionCommand")
@@ -217,11 +215,11 @@ class GetPlanInRegionCommand extends smithyClient.Command
217
215
  .build() {
218
216
  }
219
217
 
220
- class ListPlanExecutionEventsCommand extends smithyClient.Command
218
+ class ListPlanExecutionEventsCommand extends client.Command
221
219
  .classBuilder()
222
220
  .ep(commonParams)
223
221
  .m(function (Command, cs, config, o) {
224
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
222
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
225
223
  })
226
224
  .s("ArcRegionSwitch", "ListPlanExecutionEvents", {})
227
225
  .n("ARCRegionSwitchClient", "ListPlanExecutionEventsCommand")
@@ -229,11 +227,11 @@ class ListPlanExecutionEventsCommand extends smithyClient.Command
229
227
  .build() {
230
228
  }
231
229
 
232
- class ListPlanExecutionsCommand extends smithyClient.Command
230
+ class ListPlanExecutionsCommand extends client.Command
233
231
  .classBuilder()
234
232
  .ep(commonParams)
235
233
  .m(function (Command, cs, config, o) {
236
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
234
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
237
235
  })
238
236
  .s("ArcRegionSwitch", "ListPlanExecutions", {})
239
237
  .n("ARCRegionSwitchClient", "ListPlanExecutionsCommand")
@@ -241,14 +239,14 @@ class ListPlanExecutionsCommand extends smithyClient.Command
241
239
  .build() {
242
240
  }
243
241
 
244
- class ListPlansCommand extends smithyClient.Command
242
+ class ListPlansCommand extends client.Command
245
243
  .classBuilder()
246
244
  .ep({
247
245
  ...commonParams,
248
246
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
249
247
  })
250
248
  .m(function (Command, cs, config, o) {
251
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
249
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
252
250
  })
253
251
  .s("ArcRegionSwitch", "ListPlans", {})
254
252
  .n("ARCRegionSwitchClient", "ListPlansCommand")
@@ -256,11 +254,11 @@ class ListPlansCommand extends smithyClient.Command
256
254
  .build() {
257
255
  }
258
256
 
259
- class ListPlansInRegionCommand extends smithyClient.Command
257
+ class ListPlansInRegionCommand extends client.Command
260
258
  .classBuilder()
261
259
  .ep(commonParams)
262
260
  .m(function (Command, cs, config, o) {
263
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
261
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
264
262
  })
265
263
  .s("ArcRegionSwitch", "ListPlansInRegion", {})
266
264
  .n("ARCRegionSwitchClient", "ListPlansInRegionCommand")
@@ -268,14 +266,14 @@ class ListPlansInRegionCommand extends smithyClient.Command
268
266
  .build() {
269
267
  }
270
268
 
271
- class ListRoute53HealthChecksCommand extends smithyClient.Command
269
+ class ListRoute53HealthChecksCommand extends client.Command
272
270
  .classBuilder()
273
271
  .ep({
274
272
  ...commonParams,
275
273
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
276
274
  })
277
275
  .m(function (Command, cs, config, o) {
278
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
276
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
279
277
  })
280
278
  .s("ArcRegionSwitch", "ListRoute53HealthChecks", {})
281
279
  .n("ARCRegionSwitchClient", "ListRoute53HealthChecksCommand")
@@ -283,11 +281,11 @@ class ListRoute53HealthChecksCommand extends smithyClient.Command
283
281
  .build() {
284
282
  }
285
283
 
286
- class ListRoute53HealthChecksInRegionCommand extends smithyClient.Command
284
+ class ListRoute53HealthChecksInRegionCommand extends client.Command
287
285
  .classBuilder()
288
286
  .ep(commonParams)
289
287
  .m(function (Command, cs, config, o) {
290
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
288
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
291
289
  })
292
290
  .s("ArcRegionSwitch", "ListRoute53HealthChecksInRegion", {})
293
291
  .n("ARCRegionSwitchClient", "ListRoute53HealthChecksInRegionCommand")
@@ -295,14 +293,14 @@ class ListRoute53HealthChecksInRegionCommand extends smithyClient.Command
295
293
  .build() {
296
294
  }
297
295
 
298
- class ListTagsForResourceCommand extends smithyClient.Command
296
+ class ListTagsForResourceCommand extends client.Command
299
297
  .classBuilder()
300
298
  .ep({
301
299
  ...commonParams,
302
300
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
303
301
  })
304
302
  .m(function (Command, cs, config, o) {
305
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
303
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
306
304
  })
307
305
  .s("ArcRegionSwitch", "ListTagsForResource", {})
308
306
  .n("ARCRegionSwitchClient", "ListTagsForResourceCommand")
@@ -310,11 +308,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
310
308
  .build() {
311
309
  }
312
310
 
313
- class StartPlanExecutionCommand extends smithyClient.Command
311
+ class StartPlanExecutionCommand extends client.Command
314
312
  .classBuilder()
315
313
  .ep(commonParams)
316
314
  .m(function (Command, cs, config, o) {
317
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
315
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
318
316
  })
319
317
  .s("ArcRegionSwitch", "StartPlanExecution", {})
320
318
  .n("ARCRegionSwitchClient", "StartPlanExecutionCommand")
@@ -322,14 +320,14 @@ class StartPlanExecutionCommand extends smithyClient.Command
322
320
  .build() {
323
321
  }
324
322
 
325
- class TagResourceCommand extends smithyClient.Command
323
+ class TagResourceCommand extends client.Command
326
324
  .classBuilder()
327
325
  .ep({
328
326
  ...commonParams,
329
327
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
330
328
  })
331
329
  .m(function (Command, cs, config, o) {
332
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
330
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
333
331
  })
334
332
  .s("ArcRegionSwitch", "TagResource", {})
335
333
  .n("ARCRegionSwitchClient", "TagResourceCommand")
@@ -337,14 +335,14 @@ class TagResourceCommand extends smithyClient.Command
337
335
  .build() {
338
336
  }
339
337
 
340
- class UntagResourceCommand extends smithyClient.Command
338
+ class UntagResourceCommand extends client.Command
341
339
  .classBuilder()
342
340
  .ep({
343
341
  ...commonParams,
344
342
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
345
343
  })
346
344
  .m(function (Command, cs, config, o) {
347
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
345
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
348
346
  })
349
347
  .s("ArcRegionSwitch", "UntagResource", {})
350
348
  .n("ARCRegionSwitchClient", "UntagResourceCommand")
@@ -352,14 +350,14 @@ class UntagResourceCommand extends smithyClient.Command
352
350
  .build() {
353
351
  }
354
352
 
355
- class UpdatePlanCommand extends smithyClient.Command
353
+ class UpdatePlanCommand extends client.Command
356
354
  .classBuilder()
357
355
  .ep({
358
356
  ...commonParams,
359
357
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
360
358
  })
361
359
  .m(function (Command, cs, config, o) {
362
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
360
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
363
361
  })
364
362
  .s("ArcRegionSwitch", "UpdatePlan", {})
365
363
  .n("ARCRegionSwitchClient", "UpdatePlanCommand")
@@ -367,11 +365,11 @@ class UpdatePlanCommand extends smithyClient.Command
367
365
  .build() {
368
366
  }
369
367
 
370
- class UpdatePlanExecutionCommand extends smithyClient.Command
368
+ class UpdatePlanExecutionCommand extends client.Command
371
369
  .classBuilder()
372
370
  .ep(commonParams)
373
371
  .m(function (Command, cs, config, o) {
374
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
372
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
375
373
  })
376
374
  .s("ArcRegionSwitch", "UpdatePlanExecution", {})
377
375
  .n("ARCRegionSwitchClient", "UpdatePlanExecutionCommand")
@@ -379,11 +377,11 @@ class UpdatePlanExecutionCommand extends smithyClient.Command
379
377
  .build() {
380
378
  }
381
379
 
382
- class UpdatePlanExecutionStepCommand extends smithyClient.Command
380
+ class UpdatePlanExecutionStepCommand extends client.Command
383
381
  .classBuilder()
384
382
  .ep(commonParams)
385
383
  .m(function (Command, cs, config, o) {
386
- return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
384
+ return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
387
385
  })
388
386
  .s("ArcRegionSwitch", "UpdatePlanExecutionStep", {})
389
387
  .n("ARCRegionSwitchClient", "UpdatePlanExecutionStepCommand")
@@ -407,17 +405,17 @@ const paginateListRoute53HealthChecksInRegion = core.createPaginator(ARCRegionSw
407
405
 
408
406
  const paginateListRoute53HealthChecks = core.createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksCommand, "nextToken", "nextToken", "maxResults");
409
407
 
410
- const checkState$1 = async (client, input) => {
408
+ const checkState$1 = async (client$1, input) => {
411
409
  let reason;
412
410
  try {
413
- let result = await client.send(new GetPlanEvaluationStatusCommand(input));
411
+ let result = await client$1.send(new GetPlanEvaluationStatusCommand(input));
414
412
  reason = result;
415
413
  try {
416
414
  const returnComparator = () => {
417
415
  return result.evaluationState;
418
416
  };
419
417
  if (returnComparator() === "passed") {
420
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
418
+ return { state: client.WaiterState.SUCCESS, reason };
421
419
  }
422
420
  }
423
421
  catch (e) { }
@@ -426,7 +424,7 @@ const checkState$1 = async (client, input) => {
426
424
  return result.evaluationState;
427
425
  };
428
426
  if (returnComparator() === "actionRequired") {
429
- return { state: utilWaiter.WaiterState.FAILURE, reason };
427
+ return { state: client.WaiterState.FAILURE, reason };
430
428
  }
431
429
  }
432
430
  catch (e) { }
@@ -435,7 +433,7 @@ const checkState$1 = async (client, input) => {
435
433
  return result.evaluationState;
436
434
  };
437
435
  if (returnComparator() === "pendingEvaluation") {
438
- return { state: utilWaiter.WaiterState.RETRY, reason };
436
+ return { state: client.WaiterState.RETRY, reason };
439
437
  }
440
438
  }
441
439
  catch (e) { }
@@ -443,29 +441,29 @@ const checkState$1 = async (client, input) => {
443
441
  catch (exception) {
444
442
  reason = exception;
445
443
  }
446
- return { state: utilWaiter.WaiterState.RETRY, reason };
444
+ return { state: client.WaiterState.RETRY, reason };
447
445
  };
448
446
  const waitForPlanEvaluationStatusPassed = async (params, input) => {
449
447
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
450
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
448
+ return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
451
449
  };
452
450
  const waitUntilPlanEvaluationStatusPassed = async (params, input) => {
453
451
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
454
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
455
- return utilWaiter.checkExceptions(result);
452
+ const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
453
+ return client.checkExceptions(result);
456
454
  };
457
455
 
458
- const checkState = async (client, input) => {
456
+ const checkState = async (client$1, input) => {
459
457
  let reason;
460
458
  try {
461
- let result = await client.send(new GetPlanExecutionCommand(input));
459
+ let result = await client$1.send(new GetPlanExecutionCommand(input));
462
460
  reason = result;
463
461
  try {
464
462
  const returnComparator = () => {
465
463
  return result.executionState;
466
464
  };
467
465
  if (returnComparator() === "completed") {
468
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
466
+ return { state: client.WaiterState.SUCCESS, reason };
469
467
  }
470
468
  }
471
469
  catch (e) { }
@@ -474,7 +472,7 @@ const checkState = async (client, input) => {
474
472
  return result.executionState;
475
473
  };
476
474
  if (returnComparator() === "completedWithExceptions") {
477
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
475
+ return { state: client.WaiterState.SUCCESS, reason };
478
476
  }
479
477
  }
480
478
  catch (e) { }
@@ -483,7 +481,7 @@ const checkState = async (client, input) => {
483
481
  return result.executionState;
484
482
  };
485
483
  if (returnComparator() === "failed") {
486
- return { state: utilWaiter.WaiterState.FAILURE, reason };
484
+ return { state: client.WaiterState.FAILURE, reason };
487
485
  }
488
486
  }
489
487
  catch (e) { }
@@ -492,7 +490,7 @@ const checkState = async (client, input) => {
492
490
  return result.executionState;
493
491
  };
494
492
  if (returnComparator() === "canceled") {
495
- return { state: utilWaiter.WaiterState.FAILURE, reason };
493
+ return { state: client.WaiterState.FAILURE, reason };
496
494
  }
497
495
  }
498
496
  catch (e) { }
@@ -501,7 +499,7 @@ const checkState = async (client, input) => {
501
499
  return result.executionState;
502
500
  };
503
501
  if (returnComparator() === "planExecutionTimedOut") {
504
- return { state: utilWaiter.WaiterState.FAILURE, reason };
502
+ return { state: client.WaiterState.FAILURE, reason };
505
503
  }
506
504
  }
507
505
  catch (e) { }
@@ -509,16 +507,16 @@ const checkState = async (client, input) => {
509
507
  catch (exception) {
510
508
  reason = exception;
511
509
  }
512
- return { state: utilWaiter.WaiterState.RETRY, reason };
510
+ return { state: client.WaiterState.RETRY, reason };
513
511
  };
514
512
  const waitForPlanExecutionCompleted = async (params, input) => {
515
513
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
516
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
514
+ return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
517
515
  };
518
516
  const waitUntilPlanExecutionCompleted = async (params, input) => {
519
517
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
520
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
521
- return utilWaiter.checkExceptions(result);
518
+ const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
519
+ return client.checkExceptions(result);
522
520
  };
523
521
 
524
522
  const commands = {
@@ -560,7 +558,7 @@ const waiters = {
560
558
  };
561
559
  class ARCRegionSwitch extends ARCRegionSwitchClient {
562
560
  }
563
- smithyClient.createAggregatedClient(commands, ARCRegionSwitch, { paginators, waiters });
561
+ client.createAggregatedClient(commands, ARCRegionSwitch, { paginators, waiters });
564
562
 
565
563
  const ExecutionAction = {
566
564
  ACTIVATE: "activate",
@@ -658,6 +656,13 @@ const GlobalAuroraDefaultBehavior = {
658
656
  const GlobalAuroraUngracefulBehavior = {
659
657
  FAILOVER: "failover",
660
658
  };
659
+ const EventSourceMappingAction = {
660
+ DISABLE: "disable",
661
+ ENABLE: "enable",
662
+ };
663
+ const LambdaEventSourceMappingUngracefulBehavior = {
664
+ SKIP: "skip",
665
+ };
661
666
  const ExecutionBlockType = {
662
667
  AURORA: "AuroraGlobalDatabase",
663
668
  CUSTOM_ACTION_LAMBDA: "CustomActionLambda",
@@ -666,6 +671,7 @@ const ExecutionBlockType = {
666
671
  ECS: "ECSServiceScaling",
667
672
  EKS_RESOURCE_SCALING: "EKSResourceScaling",
668
673
  EXECUTION_APPROVAL: "ManualApproval",
674
+ LAMBDA_EVENT_SOURCE_MAPPING: "LambdaEventSourceMapping",
669
675
  PARALLEL: "Parallel",
670
676
  RDS_CREATE_CROSS_REGION_REPLICA: "RdsCreateCrossRegionReplica",
671
677
  RDS_PROMOTE_READ_REPLICA: "RdsPromoteReadReplica",
@@ -726,8 +732,8 @@ const UpdatePlanExecutionStepAction = {
726
732
  SWITCH_TO_UNGRACEFUL: "switchToUngraceful",
727
733
  };
728
734
 
729
- exports.$Command = smithyClient.Command;
730
- exports.__Client = smithyClient.Client;
735
+ exports.$Command = client.Command;
736
+ exports.__Client = client.Client;
731
737
  exports.ARCRegionSwitchServiceException = ARCRegionSwitchServiceException.ARCRegionSwitchServiceException;
732
738
  exports.ARCRegionSwitch = ARCRegionSwitch;
733
739
  exports.ARCRegionSwitchClient = ARCRegionSwitchClient;
@@ -744,6 +750,7 @@ exports.Ec2AsgCapacityMonitoringApproach = Ec2AsgCapacityMonitoringApproach;
744
750
  exports.EcsCapacityMonitoringApproach = EcsCapacityMonitoringApproach;
745
751
  exports.EksCapacityMonitoringApproach = EksCapacityMonitoringApproach;
746
752
  exports.EvaluationStatus = EvaluationStatus;
753
+ exports.EventSourceMappingAction = EventSourceMappingAction;
747
754
  exports.ExecutionAction = ExecutionAction;
748
755
  exports.ExecutionBlockType = ExecutionBlockType;
749
756
  exports.ExecutionEventType = ExecutionEventType;
@@ -756,6 +763,7 @@ exports.GetPlanExecutionCommand = GetPlanExecutionCommand;
756
763
  exports.GetPlanInRegionCommand = GetPlanInRegionCommand;
757
764
  exports.GlobalAuroraDefaultBehavior = GlobalAuroraDefaultBehavior;
758
765
  exports.GlobalAuroraUngracefulBehavior = GlobalAuroraUngracefulBehavior;
766
+ exports.LambdaEventSourceMappingUngracefulBehavior = LambdaEventSourceMappingUngracefulBehavior;
759
767
  exports.LambdaUngracefulBehavior = LambdaUngracefulBehavior;
760
768
  exports.ListPlanExecutionEventsCommand = ListPlanExecutionEventsCommand;
761
769
  exports.ListPlanExecutionsCommand = ListPlanExecutionsCommand;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ARCRegionSwitchServiceException = exports.__ServiceException = void 0;
4
- const smithy_client_1 = require("@smithy/smithy-client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
- class ARCRegionSwitchServiceException extends smithy_client_1.ServiceException {
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
+ class ARCRegionSwitchServiceException extends client_1.ServiceException {
7
7
  constructor(options) {
8
8
  super(options);
9
9
  Object.setPrototypeOf(this, ARCRegionSwitchServiceException.prototype);