@aws-sdk/client-arc-zonal-shift 3.1075.0 → 3.1076.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,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  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, defaultARCZonalShiftHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CancelPracticeRun$, CancelZonalShift$, CreatePracticeRunConfiguration$, DeletePracticeRunConfiguration$, GetAutoshiftObserverNotificationStatus$, GetManagedResource$, ListAutoshifts$, ListManagedResources$, ListZonalShifts$, StartPracticeRun$, StartZonalShift$, UpdateAutoshiftObserverNotificationStatus$, UpdatePracticeRunConfiguration$, UpdateZonalAutoshiftConfiguration$, UpdateZonalShift$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { ARCZonalShiftServiceException } = require("./models/ARCZonalShiftServiceException");
18
- exports.ARCZonalShiftServiceException = ARCZonalShiftServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultARCZonalShiftHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "arc-zonal-shift",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultARCZonalShiftHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,610 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://arc-zonal-shift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://arc-zonal-shift-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://arc-zonal-shift.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://arc-zonal-shift.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class ARCZonalShiftServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, ARCZonalShiftServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends ARCZonalShiftServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ constructor(opts) {
143
+ super({
144
+ name: "AccessDeniedException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
149
+ }
150
+ }
151
+ class InternalServerException extends ARCZonalShiftServiceException {
152
+ name = "InternalServerException";
153
+ $fault = "server";
154
+ constructor(opts) {
155
+ super({
156
+ name: "InternalServerException",
157
+ $fault: "server",
158
+ ...opts,
159
+ });
160
+ Object.setPrototypeOf(this, InternalServerException.prototype);
161
+ }
162
+ }
163
+ class ThrottlingException extends ARCZonalShiftServiceException {
164
+ name = "ThrottlingException";
165
+ $fault = "client";
166
+ constructor(opts) {
167
+ super({
168
+ name: "ThrottlingException",
169
+ $fault: "client",
170
+ ...opts,
171
+ });
172
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
173
+ }
174
+ }
175
+ class ValidationException extends ARCZonalShiftServiceException {
176
+ name = "ValidationException";
177
+ $fault = "client";
178
+ reason;
179
+ constructor(opts) {
180
+ super({
181
+ name: "ValidationException",
182
+ $fault: "client",
183
+ ...opts,
184
+ });
185
+ Object.setPrototypeOf(this, ValidationException.prototype);
186
+ this.reason = opts.reason;
187
+ }
188
+ }
189
+ class ConflictException extends ARCZonalShiftServiceException {
190
+ name = "ConflictException";
191
+ $fault = "client";
192
+ reason;
193
+ zonalShiftId;
194
+ constructor(opts) {
195
+ super({
196
+ name: "ConflictException",
197
+ $fault: "client",
198
+ ...opts,
199
+ });
200
+ Object.setPrototypeOf(this, ConflictException.prototype);
201
+ this.reason = opts.reason;
202
+ this.zonalShiftId = opts.zonalShiftId;
203
+ }
204
+ }
205
+ class ResourceNotFoundException extends ARCZonalShiftServiceException {
206
+ name = "ResourceNotFoundException";
207
+ $fault = "client";
208
+ constructor(opts) {
209
+ super({
210
+ name: "ResourceNotFoundException",
211
+ $fault: "client",
212
+ ...opts,
213
+ });
214
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
215
+ }
216
+ }
217
+
218
+ const _ADE = "AccessDeniedException";
219
+ const _AIR = "AutoshiftInResource";
220
+ const _AIRu = "AutoshiftsInResource";
221
+ const _AS = "AutoshiftSummary";
222
+ const _ASu = "AutoshiftSummaries";
223
+ const _BA = "BlockingAlarms";
224
+ const _CC = "ControlCondition";
225
+ const _CE = "ConflictException";
226
+ const _CPR = "CancelPracticeRun";
227
+ const _CPRC = "CreatePracticeRunConfiguration";
228
+ const _CPRCR = "CreatePracticeRunConfigurationRequest";
229
+ const _CPRCRr = "CreatePracticeRunConfigurationResponse";
230
+ const _CPRR = "CancelPracticeRunRequest";
231
+ const _CPRRa = "CancelPracticeRunResponse";
232
+ const _CZS = "CancelZonalShift";
233
+ const _CZSR = "CancelZonalShiftRequest";
234
+ const _DPRC = "DeletePracticeRunConfiguration";
235
+ const _DPRCR = "DeletePracticeRunConfigurationRequest";
236
+ const _DPRCRe = "DeletePracticeRunConfigurationResponse";
237
+ const _GAONS = "GetAutoshiftObserverNotificationStatus";
238
+ const _GAONSR = "GetAutoshiftObserverNotificationStatusRequest";
239
+ const _GAONSRe = "GetAutoshiftObserverNotificationStatusResponse";
240
+ const _GMR = "GetManagedResource";
241
+ const _GMRR = "GetManagedResourceRequest";
242
+ const _GMRRe = "GetManagedResourceResponse";
243
+ const _ISE = "InternalServerException";
244
+ const _LA = "ListAutoshifts";
245
+ const _LAR = "ListAutoshiftsRequest";
246
+ const _LARi = "ListAutoshiftsResponse";
247
+ const _LMR = "ListManagedResources";
248
+ const _LMRR = "ListManagedResourcesRequest";
249
+ const _LMRRi = "ListManagedResourcesResponse";
250
+ const _LZS = "ListZonalShifts";
251
+ const _LZSR = "ListZonalShiftsRequest";
252
+ const _LZSRi = "ListZonalShiftsResponse";
253
+ const _MRS = "ManagedResourceSummary";
254
+ const _MRSa = "ManagedResourceSummaries";
255
+ const _OA = "OutcomeAlarms";
256
+ const _PRC = "PracticeRunConfiguration";
257
+ const _RNFE = "ResourceNotFoundException";
258
+ const _SPR = "StartPracticeRun";
259
+ const _SPRR = "StartPracticeRunRequest";
260
+ const _SPRRt = "StartPracticeRunResponse";
261
+ const _SZS = "StartZonalShift";
262
+ const _SZSR = "StartZonalShiftRequest";
263
+ const _TE = "ThrottlingException";
264
+ const _UAONS = "UpdateAutoshiftObserverNotificationStatus";
265
+ const _UAONSR = "UpdateAutoshiftObserverNotificationStatusRequest";
266
+ const _UAONSRp = "UpdateAutoshiftObserverNotificationStatusResponse";
267
+ const _UPRC = "UpdatePracticeRunConfiguration";
268
+ const _UPRCR = "UpdatePracticeRunConfigurationRequest";
269
+ const _UPRCRp = "UpdatePracticeRunConfigurationResponse";
270
+ const _UZAC = "UpdateZonalAutoshiftConfiguration";
271
+ const _UZACR = "UpdateZonalAutoshiftConfigurationRequest";
272
+ const _UZACRp = "UpdateZonalAutoshiftConfigurationResponse";
273
+ const _UZS = "UpdateZonalShift";
274
+ const _UZSR = "UpdateZonalShiftRequest";
275
+ const _VE = "ValidationException";
276
+ const _ZS = "ZonalShift";
277
+ const _ZSIR = "ZonalShiftInResource";
278
+ const _ZSIRo = "ZonalShiftsInResource";
279
+ const _ZSS = "ZonalShiftSummary";
280
+ const _ZSSo = "ZonalShiftSummaries";
281
+ const _a = "arn";
282
+ const _aF = "awayFrom";
283
+ const _aI = "alarmIdentifier";
284
+ const _aS = "appliedStatus";
285
+ const _aW = "allowedWindows";
286
+ const _aWp = "appliedWeights";
287
+ const _aZ = "availabilityZones";
288
+ const _au = "autoshifts";
289
+ const _bA = "blockingAlarms";
290
+ const _bD = "blockedDates";
291
+ const _bW = "blockedWindows";
292
+ const _c = "client";
293
+ const _co = "comment";
294
+ const _e = "error";
295
+ const _eI = "expiresIn";
296
+ const _eT = "endTime";
297
+ const _eTx = "expiryTime";
298
+ const _h = "http";
299
+ const _hE = "httpError";
300
+ const _hQ = "httpQuery";
301
+ const _i = "items";
302
+ const _m = "message";
303
+ const _mR = "maxResults";
304
+ const _n = "name";
305
+ const _nT = "nextToken";
306
+ const _oA = "outcomeAlarms";
307
+ const _pRC = "practiceRunConfiguration";
308
+ const _pRO = "practiceRunOutcome";
309
+ const _pRS = "practiceRunStatus";
310
+ const _r = "reason";
311
+ const _rI = "resourceIdentifier";
312
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.arczonalshift";
313
+ const _sT = "startTime";
314
+ const _sTh = "shiftType";
315
+ const _se = "server";
316
+ const _st = "status";
317
+ const _t = "type";
318
+ const _zAS = "zonalAutoshiftStatus";
319
+ const _zS = "zonalShifts";
320
+ const _zSI = "zonalShiftId";
321
+ const n0 = "com.amazonaws.arczonalshift";
322
+ const _s_registry = TypeRegistry.for(_s);
323
+ var ARCZonalShiftServiceException$ = [-3, _s, "ARCZonalShiftServiceException", 0, [], []];
324
+ _s_registry.registerError(ARCZonalShiftServiceException$, ARCZonalShiftServiceException);
325
+ const n0_registry = TypeRegistry.for(n0);
326
+ var AccessDeniedException$ = [-3, n0, _ADE,
327
+ { [_e]: _c, [_hE]: 403 },
328
+ [_m],
329
+ [0]
330
+ ];
331
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
332
+ var ConflictException$ = [-3, n0, _CE,
333
+ { [_e]: _c, [_hE]: 409 },
334
+ [_m, _r, _zSI],
335
+ [0, 0, 0], 2
336
+ ];
337
+ n0_registry.registerError(ConflictException$, ConflictException);
338
+ var InternalServerException$ = [-3, n0, _ISE,
339
+ { [_e]: _se, [_hE]: 500 },
340
+ [_m],
341
+ [0]
342
+ ];
343
+ n0_registry.registerError(InternalServerException$, InternalServerException);
344
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
345
+ { [_e]: _c, [_hE]: 404 },
346
+ [_m],
347
+ [0], 1
348
+ ];
349
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
350
+ var ThrottlingException$ = [-3, n0, _TE,
351
+ { [_e]: _c, [_hE]: 429 },
352
+ [_m],
353
+ [0]
354
+ ];
355
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
356
+ var ValidationException$ = [-3, n0, _VE,
357
+ { [_e]: _c, [_hE]: 400 },
358
+ [_m, _r],
359
+ [0, 0], 2
360
+ ];
361
+ n0_registry.registerError(ValidationException$, ValidationException);
362
+ const errorTypeRegistries = [
363
+ _s_registry,
364
+ n0_registry,
365
+ ];
366
+ var AutoshiftInResource$ = [3, n0, _AIR,
367
+ 0,
368
+ [_aS, _aF, _sT],
369
+ [0, 0, 4], 3
370
+ ];
371
+ var AutoshiftSummary$ = [3, n0, _AS,
372
+ 0,
373
+ [_aF, _sT, _st, _eT],
374
+ [0, 4, 0, 4], 3
375
+ ];
376
+ var CancelPracticeRunRequest$ = [3, n0, _CPRR,
377
+ 0,
378
+ [_zSI],
379
+ [[0, 1]], 1
380
+ ];
381
+ var CancelPracticeRunResponse$ = [3, n0, _CPRRa,
382
+ 0,
383
+ [_zSI, _rI, _aF, _eTx, _sT, _st, _co],
384
+ [0, 0, 0, 4, 4, 0, 0], 7
385
+ ];
386
+ var CancelZonalShiftRequest$ = [3, n0, _CZSR,
387
+ 0,
388
+ [_zSI],
389
+ [[0, 1]], 1
390
+ ];
391
+ var ControlCondition$ = [3, n0, _CC,
392
+ 0,
393
+ [_t, _aI],
394
+ [0, 0], 2
395
+ ];
396
+ var CreatePracticeRunConfigurationRequest$ = [3, n0, _CPRCR,
397
+ 0,
398
+ [_rI, _oA, _bW, _bD, _bA, _aW],
399
+ [0, () => OutcomeAlarms, 64 | 0, 64 | 0, () => BlockingAlarms, 64 | 0], 2
400
+ ];
401
+ var CreatePracticeRunConfigurationResponse$ = [3, n0, _CPRCRr,
402
+ 0,
403
+ [_a, _n, _zAS, _pRC],
404
+ [0, 0, 0, () => PracticeRunConfiguration$], 4
405
+ ];
406
+ var DeletePracticeRunConfigurationRequest$ = [3, n0, _DPRCR,
407
+ 0,
408
+ [_rI],
409
+ [[0, 1]], 1
410
+ ];
411
+ var DeletePracticeRunConfigurationResponse$ = [3, n0, _DPRCRe,
412
+ 0,
413
+ [_a, _n, _zAS],
414
+ [0, 0, 0], 3
415
+ ];
416
+ var GetAutoshiftObserverNotificationStatusRequest$ = [3, n0, _GAONSR,
417
+ 0,
418
+ [],
419
+ []
420
+ ];
421
+ var GetAutoshiftObserverNotificationStatusResponse$ = [3, n0, _GAONSRe,
422
+ 0,
423
+ [_st],
424
+ [0], 1
425
+ ];
426
+ var GetManagedResourceRequest$ = [3, n0, _GMRR,
427
+ 0,
428
+ [_rI],
429
+ [[0, 1]], 1
430
+ ];
431
+ var GetManagedResourceResponse$ = [3, n0, _GMRRe,
432
+ 0,
433
+ [_aWp, _zS, _a, _n, _au, _pRC, _zAS],
434
+ [128 | 1, () => ZonalShiftsInResource, 0, 0, () => AutoshiftsInResource, () => PracticeRunConfiguration$, 0], 2
435
+ ];
436
+ var ListAutoshiftsRequest$ = [3, n0, _LAR,
437
+ 0,
438
+ [_nT, _st, _mR],
439
+ [[0, { [_hQ]: _nT }], [0, { [_hQ]: _st }], [1, { [_hQ]: _mR }]]
440
+ ];
441
+ var ListAutoshiftsResponse$ = [3, n0, _LARi,
442
+ 0,
443
+ [_i, _nT],
444
+ [() => AutoshiftSummaries, 0]
445
+ ];
446
+ var ListManagedResourcesRequest$ = [3, n0, _LMRR,
447
+ 0,
448
+ [_nT, _mR],
449
+ [[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
450
+ ];
451
+ var ListManagedResourcesResponse$ = [3, n0, _LMRRi,
452
+ 0,
453
+ [_i, _nT],
454
+ [() => ManagedResourceSummaries, 0], 1
455
+ ];
456
+ var ListZonalShiftsRequest$ = [3, n0, _LZSR,
457
+ 0,
458
+ [_nT, _st, _mR, _rI],
459
+ [[0, { [_hQ]: _nT }], [0, { [_hQ]: _st }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _rI }]]
460
+ ];
461
+ var ListZonalShiftsResponse$ = [3, n0, _LZSRi,
462
+ 0,
463
+ [_i, _nT],
464
+ [() => ZonalShiftSummaries, 0]
465
+ ];
466
+ var ManagedResourceSummary$ = [3, n0, _MRS,
467
+ 0,
468
+ [_aZ, _a, _n, _aWp, _zS, _au, _zAS, _pRS],
469
+ [64 | 0, 0, 0, 128 | 1, () => ZonalShiftsInResource, () => AutoshiftsInResource, 0, 0], 1
470
+ ];
471
+ var PracticeRunConfiguration$ = [3, n0, _PRC,
472
+ 0,
473
+ [_oA, _bA, _bW, _aW, _bD],
474
+ [() => OutcomeAlarms, () => BlockingAlarms, 64 | 0, 64 | 0, 64 | 0], 1
475
+ ];
476
+ var StartPracticeRunRequest$ = [3, n0, _SPRR,
477
+ 0,
478
+ [_rI, _aF, _co],
479
+ [0, 0, 0], 3
480
+ ];
481
+ var StartPracticeRunResponse$ = [3, n0, _SPRRt,
482
+ 0,
483
+ [_zSI, _rI, _aF, _eTx, _sT, _st, _co],
484
+ [0, 0, 0, 4, 4, 0, 0], 7
485
+ ];
486
+ var StartZonalShiftRequest$ = [3, n0, _SZSR,
487
+ 0,
488
+ [_rI, _aF, _eI, _co],
489
+ [0, 0, 0, 0], 4
490
+ ];
491
+ var UpdateAutoshiftObserverNotificationStatusRequest$ = [3, n0, _UAONSR,
492
+ 0,
493
+ [_st],
494
+ [0], 1
495
+ ];
496
+ var UpdateAutoshiftObserverNotificationStatusResponse$ = [3, n0, _UAONSRp,
497
+ 0,
498
+ [_st],
499
+ [0], 1
500
+ ];
501
+ var UpdatePracticeRunConfigurationRequest$ = [3, n0, _UPRCR,
502
+ 0,
503
+ [_rI, _bW, _bD, _bA, _aW, _oA],
504
+ [[0, 1], 64 | 0, 64 | 0, () => BlockingAlarms, 64 | 0, () => OutcomeAlarms], 1
505
+ ];
506
+ var UpdatePracticeRunConfigurationResponse$ = [3, n0, _UPRCRp,
507
+ 0,
508
+ [_a, _n, _zAS, _pRC],
509
+ [0, 0, 0, () => PracticeRunConfiguration$], 4
510
+ ];
511
+ var UpdateZonalAutoshiftConfigurationRequest$ = [3, n0, _UZACR,
512
+ 0,
513
+ [_rI, _zAS],
514
+ [[0, 1], 0], 2
515
+ ];
516
+ var UpdateZonalAutoshiftConfigurationResponse$ = [3, n0, _UZACRp,
517
+ 0,
518
+ [_rI, _zAS],
519
+ [0, 0], 2
520
+ ];
521
+ var UpdateZonalShiftRequest$ = [3, n0, _UZSR,
522
+ 0,
523
+ [_zSI, _co, _eI],
524
+ [[0, 1], 0, 0], 1
525
+ ];
526
+ var ZonalShift$ = [3, n0, _ZS,
527
+ 0,
528
+ [_zSI, _rI, _aF, _eTx, _sT, _st, _co],
529
+ [0, 0, 0, 4, 4, 0, 0], 7
530
+ ];
531
+ var ZonalShiftInResource$ = [3, n0, _ZSIR,
532
+ 0,
533
+ [_aS, _zSI, _rI, _aF, _eTx, _sT, _co, _sTh, _pRO],
534
+ [0, 0, 0, 0, 4, 4, 0, 0, 0], 7
535
+ ];
536
+ var ZonalShiftSummary$ = [3, n0, _ZSS,
537
+ 0,
538
+ [_zSI, _rI, _aF, _eTx, _sT, _st, _co, _sTh, _pRO],
539
+ [0, 0, 0, 4, 4, 0, 0, 0, 0], 7
540
+ ];
541
+ var AutoshiftsInResource = [1, n0, _AIRu,
542
+ 0, () => AutoshiftInResource$
543
+ ];
544
+ var AutoshiftSummaries = [1, n0, _ASu,
545
+ 0, () => AutoshiftSummary$
546
+ ];
547
+ var BlockingAlarms = [1, n0, _BA,
548
+ 0, () => ControlCondition$
549
+ ];
550
+ var ManagedResourceSummaries = [1, n0, _MRSa,
551
+ 0, () => ManagedResourceSummary$
552
+ ];
553
+ var OutcomeAlarms = [1, n0, _OA,
554
+ 0, () => ControlCondition$
555
+ ];
556
+ var ZonalShiftsInResource = [1, n0, _ZSIRo,
557
+ 0, () => ZonalShiftInResource$
558
+ ];
559
+ var ZonalShiftSummaries = [1, n0, _ZSSo,
560
+ 0, () => ZonalShiftSummary$
561
+ ];
562
+ var CancelPracticeRun$ = [9, n0, _CPR,
563
+ { [_h]: ["DELETE", "/practiceruns/{zonalShiftId}", 200] }, () => CancelPracticeRunRequest$, () => CancelPracticeRunResponse$
564
+ ];
565
+ var CancelZonalShift$ = [9, n0, _CZS,
566
+ { [_h]: ["DELETE", "/zonalshifts/{zonalShiftId}", 200] }, () => CancelZonalShiftRequest$, () => ZonalShift$
567
+ ];
568
+ var CreatePracticeRunConfiguration$ = [9, n0, _CPRC,
569
+ { [_h]: ["POST", "/configuration", 201] }, () => CreatePracticeRunConfigurationRequest$, () => CreatePracticeRunConfigurationResponse$
570
+ ];
571
+ var DeletePracticeRunConfiguration$ = [9, n0, _DPRC,
572
+ { [_h]: ["DELETE", "/configuration/{resourceIdentifier}", 200] }, () => DeletePracticeRunConfigurationRequest$, () => DeletePracticeRunConfigurationResponse$
573
+ ];
574
+ var GetAutoshiftObserverNotificationStatus$ = [9, n0, _GAONS,
575
+ { [_h]: ["GET", "/autoshift-observer-notification", 200] }, () => GetAutoshiftObserverNotificationStatusRequest$, () => GetAutoshiftObserverNotificationStatusResponse$
576
+ ];
577
+ var GetManagedResource$ = [9, n0, _GMR,
578
+ { [_h]: ["GET", "/managedresources/{resourceIdentifier}", 200] }, () => GetManagedResourceRequest$, () => GetManagedResourceResponse$
579
+ ];
580
+ var ListAutoshifts$ = [9, n0, _LA,
581
+ { [_h]: ["GET", "/autoshifts", 200] }, () => ListAutoshiftsRequest$, () => ListAutoshiftsResponse$
582
+ ];
583
+ var ListManagedResources$ = [9, n0, _LMR,
584
+ { [_h]: ["GET", "/managedresources", 200] }, () => ListManagedResourcesRequest$, () => ListManagedResourcesResponse$
585
+ ];
586
+ var ListZonalShifts$ = [9, n0, _LZS,
587
+ { [_h]: ["GET", "/zonalshifts", 200] }, () => ListZonalShiftsRequest$, () => ListZonalShiftsResponse$
588
+ ];
589
+ var StartPracticeRun$ = [9, n0, _SPR,
590
+ { [_h]: ["POST", "/practiceruns", 200] }, () => StartPracticeRunRequest$, () => StartPracticeRunResponse$
591
+ ];
592
+ var StartZonalShift$ = [9, n0, _SZS,
593
+ { [_h]: ["POST", "/zonalshifts", 201] }, () => StartZonalShiftRequest$, () => ZonalShift$
594
+ ];
595
+ var UpdateAutoshiftObserverNotificationStatus$ = [9, n0, _UAONS,
596
+ { [_h]: ["PUT", "/autoshift-observer-notification", 200] }, () => UpdateAutoshiftObserverNotificationStatusRequest$, () => UpdateAutoshiftObserverNotificationStatusResponse$
597
+ ];
598
+ var UpdatePracticeRunConfiguration$ = [9, n0, _UPRC,
599
+ { [_h]: ["PATCH", "/configuration/{resourceIdentifier}", 200] }, () => UpdatePracticeRunConfigurationRequest$, () => UpdatePracticeRunConfigurationResponse$
600
+ ];
601
+ var UpdateZonalAutoshiftConfiguration$ = [9, n0, _UZAC,
602
+ { [_h]: ["PUT", "/managedresources/{resourceIdentifier}", 200] }, () => UpdateZonalAutoshiftConfigurationRequest$, () => UpdateZonalAutoshiftConfigurationResponse$
603
+ ];
604
+ var UpdateZonalShift$ = [9, n0, _UZS,
605
+ { [_h]: ["PATCH", "/zonalshifts/{zonalShiftId}", 200] }, () => UpdateZonalShiftRequest$, () => ZonalShift$
606
+ ];
607
+
608
+ const getRuntimeConfig$1 = (config) => {
609
+ return {
610
+ apiVersion: "2022-10-30",
611
+ base64Decoder: config?.base64Decoder ?? fromBase64,
612
+ base64Encoder: config?.base64Encoder ?? toBase64,
613
+ disableHostPrefix: config?.disableHostPrefix ?? false,
614
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
615
+ extensions: config?.extensions ?? [],
616
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultARCZonalShiftHttpAuthSchemeProvider,
617
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
618
+ {
619
+ schemeId: "aws.auth#sigv4",
620
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
621
+ signer: new AwsSdkSigV4Signer(),
622
+ },
623
+ ],
624
+ logger: config?.logger ?? new NoOpLogger(),
625
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
626
+ protocolSettings: config?.protocolSettings ?? {
627
+ defaultNamespace: "com.amazonaws.arczonalshift",
628
+ errorTypeRegistries,
629
+ version: "2022-10-30",
630
+ serviceTarget: "PercDataPlane",
631
+ },
632
+ serviceId: config?.serviceId ?? "ARC Zonal Shift",
633
+ urlParser: config?.urlParser ?? parseUrl,
634
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
635
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
636
+ };
637
+ };
638
+
639
+ const getRuntimeConfig = (config) => {
640
+ emitWarningIfUnsupportedVersion(process.version);
641
+ const defaultsMode = resolveDefaultsModeConfig(config);
642
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
643
+ const clientSharedValues = getRuntimeConfig$1(config);
644
+ emitWarningIfUnsupportedVersion$1(process.version);
645
+ const loaderConfig = {
646
+ profile: config?.profile,
647
+ logger: clientSharedValues.logger,
648
+ };
649
+ return {
650
+ ...clientSharedValues,
651
+ ...config,
652
+ runtime: "node",
653
+ defaultsMode,
654
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
655
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
656
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
657
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
658
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
659
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
660
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
661
+ retryMode: config?.retryMode ??
662
+ loadConfig({
663
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
664
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
665
+ }, config),
666
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
667
+ streamCollector: config?.streamCollector ?? streamCollector,
668
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
669
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
670
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
671
+ };
672
+ };
673
+
34
674
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
675
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
676
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -398,32 +1038,97 @@ const ShiftType = {
398
1038
 
399
1039
  exports.ARCZonalShift = ARCZonalShift;
400
1040
  exports.ARCZonalShiftClient = ARCZonalShiftClient;
1041
+ exports.ARCZonalShiftServiceException = ARCZonalShiftServiceException;
1042
+ exports.ARCZonalShiftServiceException$ = ARCZonalShiftServiceException$;
1043
+ exports.AccessDeniedException = AccessDeniedException;
1044
+ exports.AccessDeniedException$ = AccessDeniedException$;
401
1045
  exports.AppliedStatus = AppliedStatus;
402
1046
  exports.AutoshiftAppliedStatus = AutoshiftAppliedStatus;
403
1047
  exports.AutoshiftExecutionStatus = AutoshiftExecutionStatus;
1048
+ exports.AutoshiftInResource$ = AutoshiftInResource$;
404
1049
  exports.AutoshiftObserverNotificationStatus = AutoshiftObserverNotificationStatus;
1050
+ exports.AutoshiftSummary$ = AutoshiftSummary$;
1051
+ exports.CancelPracticeRun$ = CancelPracticeRun$;
405
1052
  exports.CancelPracticeRunCommand = CancelPracticeRunCommand;
1053
+ exports.CancelPracticeRunRequest$ = CancelPracticeRunRequest$;
1054
+ exports.CancelPracticeRunResponse$ = CancelPracticeRunResponse$;
1055
+ exports.CancelZonalShift$ = CancelZonalShift$;
406
1056
  exports.CancelZonalShiftCommand = CancelZonalShiftCommand;
1057
+ exports.CancelZonalShiftRequest$ = CancelZonalShiftRequest$;
1058
+ exports.ConflictException = ConflictException;
1059
+ exports.ConflictException$ = ConflictException$;
407
1060
  exports.ConflictExceptionReason = ConflictExceptionReason;
1061
+ exports.ControlCondition$ = ControlCondition$;
408
1062
  exports.ControlConditionType = ControlConditionType;
1063
+ exports.CreatePracticeRunConfiguration$ = CreatePracticeRunConfiguration$;
409
1064
  exports.CreatePracticeRunConfigurationCommand = CreatePracticeRunConfigurationCommand;
1065
+ exports.CreatePracticeRunConfigurationRequest$ = CreatePracticeRunConfigurationRequest$;
1066
+ exports.CreatePracticeRunConfigurationResponse$ = CreatePracticeRunConfigurationResponse$;
1067
+ exports.DeletePracticeRunConfiguration$ = DeletePracticeRunConfiguration$;
410
1068
  exports.DeletePracticeRunConfigurationCommand = DeletePracticeRunConfigurationCommand;
1069
+ exports.DeletePracticeRunConfigurationRequest$ = DeletePracticeRunConfigurationRequest$;
1070
+ exports.DeletePracticeRunConfigurationResponse$ = DeletePracticeRunConfigurationResponse$;
1071
+ exports.GetAutoshiftObserverNotificationStatus$ = GetAutoshiftObserverNotificationStatus$;
411
1072
  exports.GetAutoshiftObserverNotificationStatusCommand = GetAutoshiftObserverNotificationStatusCommand;
1073
+ exports.GetAutoshiftObserverNotificationStatusRequest$ = GetAutoshiftObserverNotificationStatusRequest$;
1074
+ exports.GetAutoshiftObserverNotificationStatusResponse$ = GetAutoshiftObserverNotificationStatusResponse$;
1075
+ exports.GetManagedResource$ = GetManagedResource$;
412
1076
  exports.GetManagedResourceCommand = GetManagedResourceCommand;
1077
+ exports.GetManagedResourceRequest$ = GetManagedResourceRequest$;
1078
+ exports.GetManagedResourceResponse$ = GetManagedResourceResponse$;
1079
+ exports.InternalServerException = InternalServerException;
1080
+ exports.InternalServerException$ = InternalServerException$;
1081
+ exports.ListAutoshifts$ = ListAutoshifts$;
413
1082
  exports.ListAutoshiftsCommand = ListAutoshiftsCommand;
1083
+ exports.ListAutoshiftsRequest$ = ListAutoshiftsRequest$;
1084
+ exports.ListAutoshiftsResponse$ = ListAutoshiftsResponse$;
1085
+ exports.ListManagedResources$ = ListManagedResources$;
414
1086
  exports.ListManagedResourcesCommand = ListManagedResourcesCommand;
1087
+ exports.ListManagedResourcesRequest$ = ListManagedResourcesRequest$;
1088
+ exports.ListManagedResourcesResponse$ = ListManagedResourcesResponse$;
1089
+ exports.ListZonalShifts$ = ListZonalShifts$;
415
1090
  exports.ListZonalShiftsCommand = ListZonalShiftsCommand;
1091
+ exports.ListZonalShiftsRequest$ = ListZonalShiftsRequest$;
1092
+ exports.ListZonalShiftsResponse$ = ListZonalShiftsResponse$;
1093
+ exports.ManagedResourceSummary$ = ManagedResourceSummary$;
1094
+ exports.PracticeRunConfiguration$ = PracticeRunConfiguration$;
416
1095
  exports.PracticeRunOutcome = PracticeRunOutcome;
1096
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1097
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
417
1098
  exports.ShiftType = ShiftType;
1099
+ exports.StartPracticeRun$ = StartPracticeRun$;
418
1100
  exports.StartPracticeRunCommand = StartPracticeRunCommand;
1101
+ exports.StartPracticeRunRequest$ = StartPracticeRunRequest$;
1102
+ exports.StartPracticeRunResponse$ = StartPracticeRunResponse$;
1103
+ exports.StartZonalShift$ = StartZonalShift$;
419
1104
  exports.StartZonalShiftCommand = StartZonalShiftCommand;
1105
+ exports.StartZonalShiftRequest$ = StartZonalShiftRequest$;
1106
+ exports.ThrottlingException = ThrottlingException;
1107
+ exports.ThrottlingException$ = ThrottlingException$;
1108
+ exports.UpdateAutoshiftObserverNotificationStatus$ = UpdateAutoshiftObserverNotificationStatus$;
420
1109
  exports.UpdateAutoshiftObserverNotificationStatusCommand = UpdateAutoshiftObserverNotificationStatusCommand;
1110
+ exports.UpdateAutoshiftObserverNotificationStatusRequest$ = UpdateAutoshiftObserverNotificationStatusRequest$;
1111
+ exports.UpdateAutoshiftObserverNotificationStatusResponse$ = UpdateAutoshiftObserverNotificationStatusResponse$;
1112
+ exports.UpdatePracticeRunConfiguration$ = UpdatePracticeRunConfiguration$;
421
1113
  exports.UpdatePracticeRunConfigurationCommand = UpdatePracticeRunConfigurationCommand;
1114
+ exports.UpdatePracticeRunConfigurationRequest$ = UpdatePracticeRunConfigurationRequest$;
1115
+ exports.UpdatePracticeRunConfigurationResponse$ = UpdatePracticeRunConfigurationResponse$;
1116
+ exports.UpdateZonalAutoshiftConfiguration$ = UpdateZonalAutoshiftConfiguration$;
422
1117
  exports.UpdateZonalAutoshiftConfigurationCommand = UpdateZonalAutoshiftConfigurationCommand;
1118
+ exports.UpdateZonalAutoshiftConfigurationRequest$ = UpdateZonalAutoshiftConfigurationRequest$;
1119
+ exports.UpdateZonalAutoshiftConfigurationResponse$ = UpdateZonalAutoshiftConfigurationResponse$;
1120
+ exports.UpdateZonalShift$ = UpdateZonalShift$;
423
1121
  exports.UpdateZonalShiftCommand = UpdateZonalShiftCommand;
1122
+ exports.UpdateZonalShiftRequest$ = UpdateZonalShiftRequest$;
1123
+ exports.ValidationException = ValidationException;
1124
+ exports.ValidationException$ = ValidationException$;
424
1125
  exports.ValidationExceptionReason = ValidationExceptionReason;
425
1126
  exports.ZonalAutoshiftStatus = ZonalAutoshiftStatus;
1127
+ exports.ZonalShift$ = ZonalShift$;
1128
+ exports.ZonalShiftInResource$ = ZonalShiftInResource$;
426
1129
  exports.ZonalShiftStatus = ZonalShiftStatus;
1130
+ exports.ZonalShiftSummary$ = ZonalShiftSummary$;
1131
+ exports.errorTypeRegistries = errorTypeRegistries;
427
1132
  exports.paginateListAutoshifts = paginateListAutoshifts;
428
1133
  exports.paginateListManagedResources = paginateListManagedResources;
429
1134
  exports.paginateListZonalShifts = paginateListZonalShifts;