@aws-sdk/client-arc-region-switch 3.1068.0 → 3.1070.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +131 -151
- package/dist-cjs/models/ARCRegionSwitchServiceException.js +4 -8
- package/dist-cjs/models/errors.js +11 -19
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +281 -183
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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(
|
|
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,
|
|
74
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
72
75
|
};
|
|
73
76
|
|
|
74
|
-
class ARCRegionSwitchClient extends
|
|
77
|
+
class ARCRegionSwitchClient extends Client {
|
|
75
78
|
config;
|
|
76
79
|
constructor(...[configuration]) {
|
|
77
|
-
const _config_0 =
|
|
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 =
|
|
82
|
-
const _config_3 =
|
|
83
|
-
const _config_4 =
|
|
84
|
-
const _config_5 =
|
|
85
|
-
const _config_6 =
|
|
86
|
-
const _config_7 =
|
|
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(
|
|
90
|
-
this.middlewareStack.use(
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
httpAuthSchemeParametersProvider:
|
|
98
|
-
identityProviderConfigProvider: async (config) => new
|
|
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(
|
|
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
|
|
112
|
+
class ApprovePlanExecutionStepCommand extends Command
|
|
110
113
|
.classBuilder()
|
|
111
114
|
.ep(commonParams)
|
|
112
115
|
.m(function (Command, cs, config, o) {
|
|
113
|
-
return [
|
|
116
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
114
117
|
})
|
|
115
118
|
.s("ArcRegionSwitch", "ApprovePlanExecutionStep", {})
|
|
116
119
|
.n("ARCRegionSwitchClient", "ApprovePlanExecutionStepCommand")
|
|
117
|
-
.sc(
|
|
120
|
+
.sc(ApprovePlanExecutionStep$)
|
|
118
121
|
.build() {
|
|
119
122
|
}
|
|
120
123
|
|
|
121
|
-
class CancelPlanExecutionCommand extends
|
|
124
|
+
class CancelPlanExecutionCommand extends Command
|
|
122
125
|
.classBuilder()
|
|
123
126
|
.ep(commonParams)
|
|
124
127
|
.m(function (Command, cs, config, o) {
|
|
125
|
-
return [
|
|
128
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
126
129
|
})
|
|
127
130
|
.s("ArcRegionSwitch", "CancelPlanExecution", {})
|
|
128
131
|
.n("ARCRegionSwitchClient", "CancelPlanExecutionCommand")
|
|
129
|
-
.sc(
|
|
132
|
+
.sc(CancelPlanExecution$)
|
|
130
133
|
.build() {
|
|
131
134
|
}
|
|
132
135
|
|
|
133
|
-
class CreatePlanCommand extends
|
|
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 [
|
|
143
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
141
144
|
})
|
|
142
145
|
.s("ArcRegionSwitch", "CreatePlan", {})
|
|
143
146
|
.n("ARCRegionSwitchClient", "CreatePlanCommand")
|
|
144
|
-
.sc(
|
|
147
|
+
.sc(CreatePlan$)
|
|
145
148
|
.build() {
|
|
146
149
|
}
|
|
147
150
|
|
|
148
|
-
class DeletePlanCommand extends
|
|
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 [
|
|
158
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
156
159
|
})
|
|
157
160
|
.s("ArcRegionSwitch", "DeletePlan", {})
|
|
158
161
|
.n("ARCRegionSwitchClient", "DeletePlanCommand")
|
|
159
|
-
.sc(
|
|
162
|
+
.sc(DeletePlan$)
|
|
160
163
|
.build() {
|
|
161
164
|
}
|
|
162
165
|
|
|
163
|
-
class GetPlanCommand extends
|
|
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 [
|
|
173
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
171
174
|
})
|
|
172
175
|
.s("ArcRegionSwitch", "GetPlan", {})
|
|
173
176
|
.n("ARCRegionSwitchClient", "GetPlanCommand")
|
|
174
|
-
.sc(
|
|
177
|
+
.sc(GetPlan$)
|
|
175
178
|
.build() {
|
|
176
179
|
}
|
|
177
180
|
|
|
178
|
-
class GetPlanEvaluationStatusCommand extends
|
|
181
|
+
class GetPlanEvaluationStatusCommand extends Command
|
|
179
182
|
.classBuilder()
|
|
180
183
|
.ep(commonParams)
|
|
181
184
|
.m(function (Command, cs, config, o) {
|
|
182
|
-
return [
|
|
185
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
183
186
|
})
|
|
184
187
|
.s("ArcRegionSwitch", "GetPlanEvaluationStatus", {})
|
|
185
188
|
.n("ARCRegionSwitchClient", "GetPlanEvaluationStatusCommand")
|
|
186
|
-
.sc(
|
|
189
|
+
.sc(GetPlanEvaluationStatus$)
|
|
187
190
|
.build() {
|
|
188
191
|
}
|
|
189
192
|
|
|
190
|
-
class GetPlanExecutionCommand extends
|
|
193
|
+
class GetPlanExecutionCommand extends Command
|
|
191
194
|
.classBuilder()
|
|
192
195
|
.ep(commonParams)
|
|
193
196
|
.m(function (Command, cs, config, o) {
|
|
194
|
-
return [
|
|
197
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
195
198
|
})
|
|
196
199
|
.s("ArcRegionSwitch", "GetPlanExecution", {})
|
|
197
200
|
.n("ARCRegionSwitchClient", "GetPlanExecutionCommand")
|
|
198
|
-
.sc(
|
|
201
|
+
.sc(GetPlanExecution$)
|
|
199
202
|
.build() {
|
|
200
203
|
}
|
|
201
204
|
|
|
202
|
-
class GetPlanInRegionCommand extends
|
|
205
|
+
class GetPlanInRegionCommand extends Command
|
|
203
206
|
.classBuilder()
|
|
204
207
|
.ep(commonParams)
|
|
205
208
|
.m(function (Command, cs, config, o) {
|
|
206
|
-
return [
|
|
209
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
207
210
|
})
|
|
208
211
|
.s("ArcRegionSwitch", "GetPlanInRegion", {})
|
|
209
212
|
.n("ARCRegionSwitchClient", "GetPlanInRegionCommand")
|
|
210
|
-
.sc(
|
|
213
|
+
.sc(GetPlanInRegion$)
|
|
211
214
|
.build() {
|
|
212
215
|
}
|
|
213
216
|
|
|
214
|
-
class ListPlanExecutionEventsCommand extends
|
|
217
|
+
class ListPlanExecutionEventsCommand extends Command
|
|
215
218
|
.classBuilder()
|
|
216
219
|
.ep(commonParams)
|
|
217
220
|
.m(function (Command, cs, config, o) {
|
|
218
|
-
return [
|
|
221
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
219
222
|
})
|
|
220
223
|
.s("ArcRegionSwitch", "ListPlanExecutionEvents", {})
|
|
221
224
|
.n("ARCRegionSwitchClient", "ListPlanExecutionEventsCommand")
|
|
222
|
-
.sc(
|
|
225
|
+
.sc(ListPlanExecutionEvents$)
|
|
223
226
|
.build() {
|
|
224
227
|
}
|
|
225
228
|
|
|
226
|
-
class ListPlanExecutionsCommand extends
|
|
229
|
+
class ListPlanExecutionsCommand extends Command
|
|
227
230
|
.classBuilder()
|
|
228
231
|
.ep(commonParams)
|
|
229
232
|
.m(function (Command, cs, config, o) {
|
|
230
|
-
return [
|
|
233
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
231
234
|
})
|
|
232
235
|
.s("ArcRegionSwitch", "ListPlanExecutions", {})
|
|
233
236
|
.n("ARCRegionSwitchClient", "ListPlanExecutionsCommand")
|
|
234
|
-
.sc(
|
|
237
|
+
.sc(ListPlanExecutions$)
|
|
235
238
|
.build() {
|
|
236
239
|
}
|
|
237
240
|
|
|
238
|
-
class ListPlansCommand extends
|
|
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 [
|
|
248
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
246
249
|
})
|
|
247
250
|
.s("ArcRegionSwitch", "ListPlans", {})
|
|
248
251
|
.n("ARCRegionSwitchClient", "ListPlansCommand")
|
|
249
|
-
.sc(
|
|
252
|
+
.sc(ListPlans$)
|
|
250
253
|
.build() {
|
|
251
254
|
}
|
|
252
255
|
|
|
253
|
-
class ListPlansInRegionCommand extends
|
|
256
|
+
class ListPlansInRegionCommand extends Command
|
|
254
257
|
.classBuilder()
|
|
255
258
|
.ep(commonParams)
|
|
256
259
|
.m(function (Command, cs, config, o) {
|
|
257
|
-
return [
|
|
260
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
258
261
|
})
|
|
259
262
|
.s("ArcRegionSwitch", "ListPlansInRegion", {})
|
|
260
263
|
.n("ARCRegionSwitchClient", "ListPlansInRegionCommand")
|
|
261
|
-
.sc(
|
|
264
|
+
.sc(ListPlansInRegion$)
|
|
262
265
|
.build() {
|
|
263
266
|
}
|
|
264
267
|
|
|
265
|
-
class ListRoute53HealthChecksCommand extends
|
|
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 [
|
|
275
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
273
276
|
})
|
|
274
277
|
.s("ArcRegionSwitch", "ListRoute53HealthChecks", {})
|
|
275
278
|
.n("ARCRegionSwitchClient", "ListRoute53HealthChecksCommand")
|
|
276
|
-
.sc(
|
|
279
|
+
.sc(ListRoute53HealthChecks$)
|
|
277
280
|
.build() {
|
|
278
281
|
}
|
|
279
282
|
|
|
280
|
-
class ListRoute53HealthChecksInRegionCommand extends
|
|
283
|
+
class ListRoute53HealthChecksInRegionCommand extends Command
|
|
281
284
|
.classBuilder()
|
|
282
285
|
.ep(commonParams)
|
|
283
286
|
.m(function (Command, cs, config, o) {
|
|
284
|
-
return [
|
|
287
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
285
288
|
})
|
|
286
289
|
.s("ArcRegionSwitch", "ListRoute53HealthChecksInRegion", {})
|
|
287
290
|
.n("ARCRegionSwitchClient", "ListRoute53HealthChecksInRegionCommand")
|
|
288
|
-
.sc(
|
|
291
|
+
.sc(ListRoute53HealthChecksInRegion$)
|
|
289
292
|
.build() {
|
|
290
293
|
}
|
|
291
294
|
|
|
292
|
-
class ListTagsForResourceCommand extends
|
|
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 [
|
|
302
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
300
303
|
})
|
|
301
304
|
.s("ArcRegionSwitch", "ListTagsForResource", {})
|
|
302
305
|
.n("ARCRegionSwitchClient", "ListTagsForResourceCommand")
|
|
303
|
-
.sc(
|
|
306
|
+
.sc(ListTagsForResource$)
|
|
304
307
|
.build() {
|
|
305
308
|
}
|
|
306
309
|
|
|
307
|
-
class StartPlanExecutionCommand extends
|
|
310
|
+
class StartPlanExecutionCommand extends Command
|
|
308
311
|
.classBuilder()
|
|
309
312
|
.ep(commonParams)
|
|
310
313
|
.m(function (Command, cs, config, o) {
|
|
311
|
-
return [
|
|
314
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
312
315
|
})
|
|
313
316
|
.s("ArcRegionSwitch", "StartPlanExecution", {})
|
|
314
317
|
.n("ARCRegionSwitchClient", "StartPlanExecutionCommand")
|
|
315
|
-
.sc(
|
|
318
|
+
.sc(StartPlanExecution$)
|
|
316
319
|
.build() {
|
|
317
320
|
}
|
|
318
321
|
|
|
319
|
-
class TagResourceCommand extends
|
|
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 [
|
|
329
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
327
330
|
})
|
|
328
331
|
.s("ArcRegionSwitch", "TagResource", {})
|
|
329
332
|
.n("ARCRegionSwitchClient", "TagResourceCommand")
|
|
330
|
-
.sc(
|
|
333
|
+
.sc(TagResource$)
|
|
331
334
|
.build() {
|
|
332
335
|
}
|
|
333
336
|
|
|
334
|
-
class UntagResourceCommand extends
|
|
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 [
|
|
344
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
342
345
|
})
|
|
343
346
|
.s("ArcRegionSwitch", "UntagResource", {})
|
|
344
347
|
.n("ARCRegionSwitchClient", "UntagResourceCommand")
|
|
345
|
-
.sc(
|
|
348
|
+
.sc(UntagResource$)
|
|
346
349
|
.build() {
|
|
347
350
|
}
|
|
348
351
|
|
|
349
|
-
class UpdatePlanCommand extends
|
|
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 [
|
|
359
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
357
360
|
})
|
|
358
361
|
.s("ArcRegionSwitch", "UpdatePlan", {})
|
|
359
362
|
.n("ARCRegionSwitchClient", "UpdatePlanCommand")
|
|
360
|
-
.sc(
|
|
363
|
+
.sc(UpdatePlan$)
|
|
361
364
|
.build() {
|
|
362
365
|
}
|
|
363
366
|
|
|
364
|
-
class UpdatePlanExecutionCommand extends
|
|
367
|
+
class UpdatePlanExecutionCommand extends Command
|
|
365
368
|
.classBuilder()
|
|
366
369
|
.ep(commonParams)
|
|
367
370
|
.m(function (Command, cs, config, o) {
|
|
368
|
-
return [
|
|
371
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
369
372
|
})
|
|
370
373
|
.s("ArcRegionSwitch", "UpdatePlanExecution", {})
|
|
371
374
|
.n("ARCRegionSwitchClient", "UpdatePlanExecutionCommand")
|
|
372
|
-
.sc(
|
|
375
|
+
.sc(UpdatePlanExecution$)
|
|
373
376
|
.build() {
|
|
374
377
|
}
|
|
375
378
|
|
|
376
|
-
class UpdatePlanExecutionStepCommand extends
|
|
379
|
+
class UpdatePlanExecutionStepCommand extends Command
|
|
377
380
|
.classBuilder()
|
|
378
381
|
.ep(commonParams)
|
|
379
382
|
.m(function (Command, cs, config, o) {
|
|
380
|
-
return [
|
|
383
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
381
384
|
})
|
|
382
385
|
.s("ArcRegionSwitch", "UpdatePlanExecutionStep", {})
|
|
383
386
|
.n("ARCRegionSwitchClient", "UpdatePlanExecutionStepCommand")
|
|
384
|
-
.sc(
|
|
387
|
+
.sc(UpdatePlanExecutionStep$)
|
|
385
388
|
.build() {
|
|
386
389
|
}
|
|
387
390
|
|
|
388
|
-
const paginateGetPlanEvaluationStatus =
|
|
391
|
+
const paginateGetPlanEvaluationStatus = createPaginator(ARCRegionSwitchClient, GetPlanEvaluationStatusCommand, "nextToken", "nextToken", "maxResults");
|
|
389
392
|
|
|
390
|
-
const paginateGetPlanExecution =
|
|
393
|
+
const paginateGetPlanExecution = createPaginator(ARCRegionSwitchClient, GetPlanExecutionCommand, "nextToken", "nextToken", "maxResults");
|
|
391
394
|
|
|
392
|
-
const paginateListPlanExecutionEvents =
|
|
395
|
+
const paginateListPlanExecutionEvents = createPaginator(ARCRegionSwitchClient, ListPlanExecutionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
393
396
|
|
|
394
|
-
const paginateListPlanExecutions =
|
|
397
|
+
const paginateListPlanExecutions = createPaginator(ARCRegionSwitchClient, ListPlanExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
395
398
|
|
|
396
|
-
const paginateListPlansInRegion =
|
|
399
|
+
const paginateListPlansInRegion = createPaginator(ARCRegionSwitchClient, ListPlansInRegionCommand, "nextToken", "nextToken", "maxResults");
|
|
397
400
|
|
|
398
|
-
const paginateListPlans =
|
|
401
|
+
const paginateListPlans = createPaginator(ARCRegionSwitchClient, ListPlansCommand, "nextToken", "nextToken", "maxResults");
|
|
399
402
|
|
|
400
|
-
const paginateListRoute53HealthChecksInRegion =
|
|
403
|
+
const paginateListRoute53HealthChecksInRegion = createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksInRegionCommand, "nextToken", "nextToken", "maxResults");
|
|
401
404
|
|
|
402
|
-
const paginateListRoute53HealthChecks =
|
|
405
|
+
const paginateListRoute53HealthChecks = createPaginator(ARCRegionSwitchClient, ListRoute53HealthChecksCommand, "nextToken", "nextToken", "maxResults");
|
|
403
406
|
|
|
404
|
-
const checkState$1 = async (client
|
|
407
|
+
const checkState$1 = async (client, input) => {
|
|
405
408
|
let reason;
|
|
406
409
|
try {
|
|
407
|
-
let result = await client
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
449
|
-
return
|
|
451
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
452
|
+
return checkExceptions(result);
|
|
450
453
|
};
|
|
451
454
|
|
|
452
|
-
const checkState = async (client
|
|
455
|
+
const checkState = async (client, input) => {
|
|
453
456
|
let reason;
|
|
454
457
|
try {
|
|
455
|
-
let result = await client
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
515
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
exports.ARCRegionSwitchServiceException =
|
|
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
|
+
};
|