@aws-sdk/client-arc-region-switch 3.1067.0 → 3.1069.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.
package/dist-cjs/index.js CHANGED
@@ -1,18 +1,21 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
12
- var runtimeConfig = require('./runtimeConfig');
13
- var schemas_0 = require('./schemas/schemas_0');
14
- var errors = require('./models/errors');
15
- var ARCRegionSwitchServiceException = require('./models/ARCRegionSwitchServiceException');
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
+ const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
5
+ exports.$Command = Command;
6
+ exports.__Client = Client;
7
+ const { resolveRegionConfig } = require("@smithy/core/config");
8
+ const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
+ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
+ const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
+ const { resolveHttpAuthSchemeConfig, defaultARCRegionSwitchHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
+ const { getRuntimeConfig } = require("./runtimeConfig");
14
+ const { ApprovePlanExecutionStep$, CancelPlanExecution$, CreatePlan$, DeletePlan$, GetPlan$, GetPlanEvaluationStatus$, GetPlanExecution$, GetPlanInRegion$, ListPlanExecutionEvents$, ListPlanExecutions$, ListPlans$, ListPlansInRegion$, ListRoute53HealthChecks$, ListRoute53HealthChecksInRegion$, ListTagsForResource$, StartPlanExecution$, TagResource$, UntagResource$, UpdatePlan$, UpdatePlanExecution$, UpdatePlanExecutionStep$ } = require("./schemas/schemas_0");
15
+ __exportStar(require("./schemas/schemas_0"), exports);
16
+ __exportStar(require("./models/errors"), exports);
17
+ const { ARCRegionSwitchServiceException } = require("./models/ARCRegionSwitchServiceException");
18
+ exports.ARCRegionSwitchServiceException = ARCRegionSwitchServiceException;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -66,352 +69,352 @@ const resolveHttpAuthRuntimeConfig = (config) => {
66
69
  };
67
70
 
68
71
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
69
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
72
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
70
73
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
71
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
74
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
72
75
  };
73
76
 
74
- class ARCRegionSwitchClient extends client.Client {
77
+ class ARCRegionSwitchClient extends Client {
75
78
  config;
76
79
  constructor(...[configuration]) {
77
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
80
+ const _config_0 = getRuntimeConfig(configuration || {});
78
81
  super(_config_0);
79
82
  this.initConfig = _config_0;
80
83
  const _config_1 = resolveClientEndpointParameters(_config_0);
81
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
82
- const _config_3 = retry.resolveRetryConfig(_config_2);
83
- const _config_4 = config.resolveRegionConfig(_config_3);
84
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
85
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
86
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
84
+ const _config_2 = resolveUserAgentConfig(_config_1);
85
+ const _config_3 = resolveRetryConfig(_config_2);
86
+ const _config_4 = resolveRegionConfig(_config_3);
87
+ const _config_5 = resolveHostHeaderConfig(_config_4);
88
+ const _config_6 = resolveEndpointConfig(_config_5);
89
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
87
90
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
88
91
  this.config = _config_8;
89
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
90
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
91
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
92
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
93
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
94
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
95
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
96
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
97
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultARCRegionSwitchHttpAuthSchemeParametersProvider,
98
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
92
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
93
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
94
+ this.middlewareStack.use(getRetryPlugin(this.config));
95
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
96
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
97
+ this.middlewareStack.use(getLoggerPlugin(this.config));
98
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
99
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
100
+ httpAuthSchemeParametersProvider: defaultARCRegionSwitchHttpAuthSchemeParametersProvider,
101
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
99
102
  "aws.auth#sigv4": config.credentials,
100
103
  }),
101
104
  }));
102
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
105
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
103
106
  }
104
107
  destroy() {
105
108
  super.destroy();
106
109
  }
107
110
  }
108
111
 
109
- class ApprovePlanExecutionStepCommand extends client.Command
112
+ class ApprovePlanExecutionStepCommand extends Command
110
113
  .classBuilder()
111
114
  .ep(commonParams)
112
115
  .m(function (Command, cs, config, o) {
113
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
116
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
114
117
  })
115
118
  .s("ArcRegionSwitch", "ApprovePlanExecutionStep", {})
116
119
  .n("ARCRegionSwitchClient", "ApprovePlanExecutionStepCommand")
117
- .sc(schemas_0.ApprovePlanExecutionStep$)
120
+ .sc(ApprovePlanExecutionStep$)
118
121
  .build() {
119
122
  }
120
123
 
121
- class CancelPlanExecutionCommand extends client.Command
124
+ class CancelPlanExecutionCommand extends Command
122
125
  .classBuilder()
123
126
  .ep(commonParams)
124
127
  .m(function (Command, cs, config, o) {
125
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
128
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
126
129
  })
127
130
  .s("ArcRegionSwitch", "CancelPlanExecution", {})
128
131
  .n("ARCRegionSwitchClient", "CancelPlanExecutionCommand")
129
- .sc(schemas_0.CancelPlanExecution$)
132
+ .sc(CancelPlanExecution$)
130
133
  .build() {
131
134
  }
132
135
 
133
- class CreatePlanCommand extends client.Command
136
+ class CreatePlanCommand extends Command
134
137
  .classBuilder()
135
138
  .ep({
136
139
  ...commonParams,
137
140
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
138
141
  })
139
142
  .m(function (Command, cs, config, o) {
140
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
143
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
141
144
  })
142
145
  .s("ArcRegionSwitch", "CreatePlan", {})
143
146
  .n("ARCRegionSwitchClient", "CreatePlanCommand")
144
- .sc(schemas_0.CreatePlan$)
147
+ .sc(CreatePlan$)
145
148
  .build() {
146
149
  }
147
150
 
148
- class DeletePlanCommand extends client.Command
151
+ class DeletePlanCommand extends Command
149
152
  .classBuilder()
150
153
  .ep({
151
154
  ...commonParams,
152
155
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
153
156
  })
154
157
  .m(function (Command, cs, config, o) {
155
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
158
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
156
159
  })
157
160
  .s("ArcRegionSwitch", "DeletePlan", {})
158
161
  .n("ARCRegionSwitchClient", "DeletePlanCommand")
159
- .sc(schemas_0.DeletePlan$)
162
+ .sc(DeletePlan$)
160
163
  .build() {
161
164
  }
162
165
 
163
- class GetPlanCommand extends client.Command
166
+ class GetPlanCommand extends Command
164
167
  .classBuilder()
165
168
  .ep({
166
169
  ...commonParams,
167
170
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
168
171
  })
169
172
  .m(function (Command, cs, config, o) {
170
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
173
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
171
174
  })
172
175
  .s("ArcRegionSwitch", "GetPlan", {})
173
176
  .n("ARCRegionSwitchClient", "GetPlanCommand")
174
- .sc(schemas_0.GetPlan$)
177
+ .sc(GetPlan$)
175
178
  .build() {
176
179
  }
177
180
 
178
- class GetPlanEvaluationStatusCommand extends client.Command
181
+ class GetPlanEvaluationStatusCommand extends Command
179
182
  .classBuilder()
180
183
  .ep(commonParams)
181
184
  .m(function (Command, cs, config, o) {
182
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
185
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
183
186
  })
184
187
  .s("ArcRegionSwitch", "GetPlanEvaluationStatus", {})
185
188
  .n("ARCRegionSwitchClient", "GetPlanEvaluationStatusCommand")
186
- .sc(schemas_0.GetPlanEvaluationStatus$)
189
+ .sc(GetPlanEvaluationStatus$)
187
190
  .build() {
188
191
  }
189
192
 
190
- class GetPlanExecutionCommand extends client.Command
193
+ class GetPlanExecutionCommand extends Command
191
194
  .classBuilder()
192
195
  .ep(commonParams)
193
196
  .m(function (Command, cs, config, o) {
194
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
197
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
195
198
  })
196
199
  .s("ArcRegionSwitch", "GetPlanExecution", {})
197
200
  .n("ARCRegionSwitchClient", "GetPlanExecutionCommand")
198
- .sc(schemas_0.GetPlanExecution$)
201
+ .sc(GetPlanExecution$)
199
202
  .build() {
200
203
  }
201
204
 
202
- class GetPlanInRegionCommand extends client.Command
205
+ class GetPlanInRegionCommand extends Command
203
206
  .classBuilder()
204
207
  .ep(commonParams)
205
208
  .m(function (Command, cs, config, o) {
206
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
209
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
207
210
  })
208
211
  .s("ArcRegionSwitch", "GetPlanInRegion", {})
209
212
  .n("ARCRegionSwitchClient", "GetPlanInRegionCommand")
210
- .sc(schemas_0.GetPlanInRegion$)
213
+ .sc(GetPlanInRegion$)
211
214
  .build() {
212
215
  }
213
216
 
214
- class ListPlanExecutionEventsCommand extends client.Command
217
+ class ListPlanExecutionEventsCommand extends Command
215
218
  .classBuilder()
216
219
  .ep(commonParams)
217
220
  .m(function (Command, cs, config, o) {
218
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
221
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
219
222
  })
220
223
  .s("ArcRegionSwitch", "ListPlanExecutionEvents", {})
221
224
  .n("ARCRegionSwitchClient", "ListPlanExecutionEventsCommand")
222
- .sc(schemas_0.ListPlanExecutionEvents$)
225
+ .sc(ListPlanExecutionEvents$)
223
226
  .build() {
224
227
  }
225
228
 
226
- class ListPlanExecutionsCommand extends client.Command
229
+ class ListPlanExecutionsCommand extends Command
227
230
  .classBuilder()
228
231
  .ep(commonParams)
229
232
  .m(function (Command, cs, config, o) {
230
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
233
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
231
234
  })
232
235
  .s("ArcRegionSwitch", "ListPlanExecutions", {})
233
236
  .n("ARCRegionSwitchClient", "ListPlanExecutionsCommand")
234
- .sc(schemas_0.ListPlanExecutions$)
237
+ .sc(ListPlanExecutions$)
235
238
  .build() {
236
239
  }
237
240
 
238
- class ListPlansCommand extends client.Command
241
+ class ListPlansCommand extends Command
239
242
  .classBuilder()
240
243
  .ep({
241
244
  ...commonParams,
242
245
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
243
246
  })
244
247
  .m(function (Command, cs, config, o) {
245
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
248
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
246
249
  })
247
250
  .s("ArcRegionSwitch", "ListPlans", {})
248
251
  .n("ARCRegionSwitchClient", "ListPlansCommand")
249
- .sc(schemas_0.ListPlans$)
252
+ .sc(ListPlans$)
250
253
  .build() {
251
254
  }
252
255
 
253
- class ListPlansInRegionCommand extends client.Command
256
+ class ListPlansInRegionCommand extends Command
254
257
  .classBuilder()
255
258
  .ep(commonParams)
256
259
  .m(function (Command, cs, config, o) {
257
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
260
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
258
261
  })
259
262
  .s("ArcRegionSwitch", "ListPlansInRegion", {})
260
263
  .n("ARCRegionSwitchClient", "ListPlansInRegionCommand")
261
- .sc(schemas_0.ListPlansInRegion$)
264
+ .sc(ListPlansInRegion$)
262
265
  .build() {
263
266
  }
264
267
 
265
- class ListRoute53HealthChecksCommand extends client.Command
268
+ class ListRoute53HealthChecksCommand extends Command
266
269
  .classBuilder()
267
270
  .ep({
268
271
  ...commonParams,
269
272
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
270
273
  })
271
274
  .m(function (Command, cs, config, o) {
272
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
275
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
273
276
  })
274
277
  .s("ArcRegionSwitch", "ListRoute53HealthChecks", {})
275
278
  .n("ARCRegionSwitchClient", "ListRoute53HealthChecksCommand")
276
- .sc(schemas_0.ListRoute53HealthChecks$)
279
+ .sc(ListRoute53HealthChecks$)
277
280
  .build() {
278
281
  }
279
282
 
280
- class ListRoute53HealthChecksInRegionCommand extends client.Command
283
+ class ListRoute53HealthChecksInRegionCommand extends Command
281
284
  .classBuilder()
282
285
  .ep(commonParams)
283
286
  .m(function (Command, cs, config, o) {
284
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
287
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
285
288
  })
286
289
  .s("ArcRegionSwitch", "ListRoute53HealthChecksInRegion", {})
287
290
  .n("ARCRegionSwitchClient", "ListRoute53HealthChecksInRegionCommand")
288
- .sc(schemas_0.ListRoute53HealthChecksInRegion$)
291
+ .sc(ListRoute53HealthChecksInRegion$)
289
292
  .build() {
290
293
  }
291
294
 
292
- class ListTagsForResourceCommand extends client.Command
295
+ class ListTagsForResourceCommand extends Command
293
296
  .classBuilder()
294
297
  .ep({
295
298
  ...commonParams,
296
299
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
297
300
  })
298
301
  .m(function (Command, cs, config, o) {
299
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
302
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
300
303
  })
301
304
  .s("ArcRegionSwitch", "ListTagsForResource", {})
302
305
  .n("ARCRegionSwitchClient", "ListTagsForResourceCommand")
303
- .sc(schemas_0.ListTagsForResource$)
306
+ .sc(ListTagsForResource$)
304
307
  .build() {
305
308
  }
306
309
 
307
- class StartPlanExecutionCommand extends client.Command
310
+ class StartPlanExecutionCommand extends Command
308
311
  .classBuilder()
309
312
  .ep(commonParams)
310
313
  .m(function (Command, cs, config, o) {
311
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
314
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
312
315
  })
313
316
  .s("ArcRegionSwitch", "StartPlanExecution", {})
314
317
  .n("ARCRegionSwitchClient", "StartPlanExecutionCommand")
315
- .sc(schemas_0.StartPlanExecution$)
318
+ .sc(StartPlanExecution$)
316
319
  .build() {
317
320
  }
318
321
 
319
- class TagResourceCommand extends client.Command
322
+ class TagResourceCommand extends Command
320
323
  .classBuilder()
321
324
  .ep({
322
325
  ...commonParams,
323
326
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
324
327
  })
325
328
  .m(function (Command, cs, config, o) {
326
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
329
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
327
330
  })
328
331
  .s("ArcRegionSwitch", "TagResource", {})
329
332
  .n("ARCRegionSwitchClient", "TagResourceCommand")
330
- .sc(schemas_0.TagResource$)
333
+ .sc(TagResource$)
331
334
  .build() {
332
335
  }
333
336
 
334
- class UntagResourceCommand extends client.Command
337
+ class UntagResourceCommand extends Command
335
338
  .classBuilder()
336
339
  .ep({
337
340
  ...commonParams,
338
341
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
339
342
  })
340
343
  .m(function (Command, cs, config, o) {
341
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
344
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
342
345
  })
343
346
  .s("ArcRegionSwitch", "UntagResource", {})
344
347
  .n("ARCRegionSwitchClient", "UntagResourceCommand")
345
- .sc(schemas_0.UntagResource$)
348
+ .sc(UntagResource$)
346
349
  .build() {
347
350
  }
348
351
 
349
- class UpdatePlanCommand extends client.Command
352
+ class UpdatePlanCommand extends Command
350
353
  .classBuilder()
351
354
  .ep({
352
355
  ...commonParams,
353
356
  UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
354
357
  })
355
358
  .m(function (Command, cs, config, o) {
356
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
359
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
357
360
  })
358
361
  .s("ArcRegionSwitch", "UpdatePlan", {})
359
362
  .n("ARCRegionSwitchClient", "UpdatePlanCommand")
360
- .sc(schemas_0.UpdatePlan$)
363
+ .sc(UpdatePlan$)
361
364
  .build() {
362
365
  }
363
366
 
364
- class UpdatePlanExecutionCommand extends client.Command
367
+ class UpdatePlanExecutionCommand extends Command
365
368
  .classBuilder()
366
369
  .ep(commonParams)
367
370
  .m(function (Command, cs, config, o) {
368
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
371
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
369
372
  })
370
373
  .s("ArcRegionSwitch", "UpdatePlanExecution", {})
371
374
  .n("ARCRegionSwitchClient", "UpdatePlanExecutionCommand")
372
- .sc(schemas_0.UpdatePlanExecution$)
375
+ .sc(UpdatePlanExecution$)
373
376
  .build() {
374
377
  }
375
378
 
376
- class UpdatePlanExecutionStepCommand extends client.Command
379
+ class UpdatePlanExecutionStepCommand extends Command
377
380
  .classBuilder()
378
381
  .ep(commonParams)
379
382
  .m(function (Command, cs, config, o) {
380
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
383
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
381
384
  })
382
385
  .s("ArcRegionSwitch", "UpdatePlanExecutionStep", {})
383
386
  .n("ARCRegionSwitchClient", "UpdatePlanExecutionStepCommand")
384
- .sc(schemas_0.UpdatePlanExecutionStep$)
387
+ .sc(UpdatePlanExecutionStep$)
385
388
  .build() {
386
389
  }
387
390
 
388
- const paginateGetPlanEvaluationStatus = core.createPaginator(ARCRegionSwitchClient, GetPlanEvaluationStatusCommand, "nextToken", "nextToken", "maxResults");
391
+ const paginateGetPlanEvaluationStatus = createPaginator(ARCRegionSwitchClient, GetPlanEvaluationStatusCommand, "nextToken", "nextToken", "maxResults");
389
392
 
390
- const paginateGetPlanExecution = core.createPaginator(ARCRegionSwitchClient, GetPlanExecutionCommand, "nextToken", "nextToken", "maxResults");
393
+ const paginateGetPlanExecution = createPaginator(ARCRegionSwitchClient, GetPlanExecutionCommand, "nextToken", "nextToken", "maxResults");
391
394
 
392
- const paginateListPlanExecutionEvents = core.createPaginator(ARCRegionSwitchClient, ListPlanExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
395
+ const paginateListPlanExecutionEvents = createPaginator(ARCRegionSwitchClient, ListPlanExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
393
396
 
394
- const paginateListPlanExecutions = core.createPaginator(ARCRegionSwitchClient, ListPlanExecutionsCommand, "nextToken", "nextToken", "maxResults");
397
+ const paginateListPlanExecutions = createPaginator(ARCRegionSwitchClient, ListPlanExecutionsCommand, "nextToken", "nextToken", "maxResults");
395
398
 
396
- const paginateListPlansInRegion = core.createPaginator(ARCRegionSwitchClient, ListPlansInRegionCommand, "nextToken", "nextToken", "maxResults");
399
+ const paginateListPlansInRegion = createPaginator(ARCRegionSwitchClient, ListPlansInRegionCommand, "nextToken", "nextToken", "maxResults");
397
400
 
398
- const paginateListPlans = core.createPaginator(ARCRegionSwitchClient, ListPlansCommand, "nextToken", "nextToken", "maxResults");
401
+ const paginateListPlans = createPaginator(ARCRegionSwitchClient, ListPlansCommand, "nextToken", "nextToken", "maxResults");
399
402
 
400
- const paginateListRoute53HealthChecksInRegion = core.createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksInRegionCommand, "nextToken", "nextToken", "maxResults");
403
+ const paginateListRoute53HealthChecksInRegion = createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksInRegionCommand, "nextToken", "nextToken", "maxResults");
401
404
 
402
- const paginateListRoute53HealthChecks = core.createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksCommand, "nextToken", "nextToken", "maxResults");
405
+ const paginateListRoute53HealthChecks = createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksCommand, "nextToken", "nextToken", "maxResults");
403
406
 
404
- const checkState$1 = async (client$1, input) => {
407
+ const checkState$1 = async (client, input) => {
405
408
  let reason;
406
409
  try {
407
- let result = await client$1.send(new GetPlanEvaluationStatusCommand(input));
410
+ let result = await client.send(new GetPlanEvaluationStatusCommand(input));
408
411
  reason = result;
409
412
  try {
410
413
  const returnComparator = () => {
411
414
  return result.evaluationState;
412
415
  };
413
416
  if (returnComparator() === "passed") {
414
- return { state: client.WaiterState.SUCCESS, reason };
417
+ return { state: WaiterState.SUCCESS, reason };
415
418
  }
416
419
  }
417
420
  catch (e) { }
@@ -420,7 +423,7 @@ const checkState$1 = async (client$1, input) => {
420
423
  return result.evaluationState;
421
424
  };
422
425
  if (returnComparator() === "actionRequired") {
423
- return { state: client.WaiterState.FAILURE, reason };
426
+ return { state: WaiterState.FAILURE, reason };
424
427
  }
425
428
  }
426
429
  catch (e) { }
@@ -429,7 +432,7 @@ const checkState$1 = async (client$1, input) => {
429
432
  return result.evaluationState;
430
433
  };
431
434
  if (returnComparator() === "pendingEvaluation") {
432
- return { state: client.WaiterState.RETRY, reason };
435
+ return { state: WaiterState.RETRY, reason };
433
436
  }
434
437
  }
435
438
  catch (e) { }
@@ -437,29 +440,29 @@ const checkState$1 = async (client$1, input) => {
437
440
  catch (exception) {
438
441
  reason = exception;
439
442
  }
440
- return { state: client.WaiterState.RETRY, reason };
443
+ return { state: WaiterState.RETRY, reason };
441
444
  };
442
445
  const waitForPlanEvaluationStatusPassed = async (params, input) => {
443
446
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
444
- return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
447
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
445
448
  };
446
449
  const waitUntilPlanEvaluationStatusPassed = async (params, input) => {
447
450
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
448
- const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
449
- return client.checkExceptions(result);
451
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
452
+ return checkExceptions(result);
450
453
  };
451
454
 
452
- const checkState = async (client$1, input) => {
455
+ const checkState = async (client, input) => {
453
456
  let reason;
454
457
  try {
455
- let result = await client$1.send(new GetPlanExecutionCommand(input));
458
+ let result = await client.send(new GetPlanExecutionCommand(input));
456
459
  reason = result;
457
460
  try {
458
461
  const returnComparator = () => {
459
462
  return result.executionState;
460
463
  };
461
464
  if (returnComparator() === "completed") {
462
- return { state: client.WaiterState.SUCCESS, reason };
465
+ return { state: WaiterState.SUCCESS, reason };
463
466
  }
464
467
  }
465
468
  catch (e) { }
@@ -468,7 +471,7 @@ const checkState = async (client$1, input) => {
468
471
  return result.executionState;
469
472
  };
470
473
  if (returnComparator() === "completedWithExceptions") {
471
- return { state: client.WaiterState.SUCCESS, reason };
474
+ return { state: WaiterState.SUCCESS, reason };
472
475
  }
473
476
  }
474
477
  catch (e) { }
@@ -477,7 +480,7 @@ const checkState = async (client$1, input) => {
477
480
  return result.executionState;
478
481
  };
479
482
  if (returnComparator() === "failed") {
480
- return { state: client.WaiterState.FAILURE, reason };
483
+ return { state: WaiterState.FAILURE, reason };
481
484
  }
482
485
  }
483
486
  catch (e) { }
@@ -486,7 +489,7 @@ const checkState = async (client$1, input) => {
486
489
  return result.executionState;
487
490
  };
488
491
  if (returnComparator() === "canceled") {
489
- return { state: client.WaiterState.FAILURE, reason };
492
+ return { state: WaiterState.FAILURE, reason };
490
493
  }
491
494
  }
492
495
  catch (e) { }
@@ -495,7 +498,7 @@ const checkState = async (client$1, input) => {
495
498
  return result.executionState;
496
499
  };
497
500
  if (returnComparator() === "planExecutionTimedOut") {
498
- return { state: client.WaiterState.FAILURE, reason };
501
+ return { state: WaiterState.FAILURE, reason };
499
502
  }
500
503
  }
501
504
  catch (e) { }
@@ -503,16 +506,16 @@ const checkState = async (client$1, input) => {
503
506
  catch (exception) {
504
507
  reason = exception;
505
508
  }
506
- return { state: client.WaiterState.RETRY, reason };
509
+ return { state: WaiterState.RETRY, reason };
507
510
  };
508
511
  const waitForPlanExecutionCompleted = async (params, input) => {
509
512
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
510
- return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
513
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
511
514
  };
512
515
  const waitUntilPlanExecutionCompleted = async (params, input) => {
513
516
  const serviceDefaults = { minDelay: 30, maxDelay: 120 };
514
- const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
515
- return client.checkExceptions(result);
517
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
518
+ return checkExceptions(result);
516
519
  };
517
520
 
518
521
  const commands = {
@@ -554,7 +557,7 @@ const waiters = {
554
557
  };
555
558
  class ARCRegionSwitch extends ARCRegionSwitchClient {
556
559
  }
557
- client.createAggregatedClient(commands, ARCRegionSwitch, { paginators, waiters });
560
+ createAggregatedClient(commands, ARCRegionSwitch, { paginators, waiters });
558
561
 
559
562
  const ExecutionAction = {
560
563
  ACTIVATE: "activate",
@@ -738,9 +741,6 @@ const UpdatePlanExecutionStepAction = {
738
741
  SWITCH_TO_UNGRACEFUL: "switchToUngraceful",
739
742
  };
740
743
 
741
- exports.$Command = client.Command;
742
- exports.__Client = client.Client;
743
- exports.ARCRegionSwitchServiceException = ARCRegionSwitchServiceException.ARCRegionSwitchServiceException;
744
744
  exports.ARCRegionSwitch = ARCRegionSwitch;
745
745
  exports.ARCRegionSwitchClient = ARCRegionSwitchClient;
746
746
  exports.AlarmCondition = AlarmCondition;
@@ -807,23 +807,3 @@ exports.waitForPlanEvaluationStatusPassed = waitForPlanEvaluationStatusPassed;
807
807
  exports.waitForPlanExecutionCompleted = waitForPlanExecutionCompleted;
808
808
  exports.waitUntilPlanEvaluationStatusPassed = waitUntilPlanEvaluationStatusPassed;
809
809
  exports.waitUntilPlanExecutionCompleted = waitUntilPlanExecutionCompleted;
810
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
811
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
812
- Object.defineProperty(exports, '__proto__', {
813
- enumerable: true,
814
- value: schemas_0['__proto__']
815
- });
816
-
817
- Object.keys(schemas_0).forEach(function (k) {
818
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
819
- });
820
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
821
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
822
- Object.defineProperty(exports, '__proto__', {
823
- enumerable: true,
824
- value: errors['__proto__']
825
- });
826
-
827
- Object.keys(errors).forEach(function (k) {
828
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
829
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ARCRegionSwitchServiceException = exports.__ServiceException = void 0;
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 {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.ARCRegionSwitchServiceException = class ARCRegionSwitchServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, ARCRegionSwitchServiceException.prototype);
10
7
  }
11
- }
12
- exports.ARCRegionSwitchServiceException = ARCRegionSwitchServiceException;
8
+ };