@aws-sdk/client-application-auto-scaling 3.489.0 → 3.495.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist-cjs/ApplicationAutoScaling.js +1 -37
  2. package/dist-cjs/ApplicationAutoScalingClient.js +1 -43
  3. package/dist-cjs/commands/DeleteScalingPolicyCommand.js +1 -28
  4. package/dist-cjs/commands/DeleteScheduledActionCommand.js +1 -28
  5. package/dist-cjs/commands/DeregisterScalableTargetCommand.js +1 -28
  6. package/dist-cjs/commands/DescribeScalableTargetsCommand.js +1 -28
  7. package/dist-cjs/commands/DescribeScalingActivitiesCommand.js +1 -28
  8. package/dist-cjs/commands/DescribeScalingPoliciesCommand.js +1 -28
  9. package/dist-cjs/commands/DescribeScheduledActionsCommand.js +1 -28
  10. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  11. package/dist-cjs/commands/PutScalingPolicyCommand.js +1 -28
  12. package/dist-cjs/commands/PutScheduledActionCommand.js +1 -28
  13. package/dist-cjs/commands/RegisterScalableTargetCommand.js +1 -28
  14. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  15. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  16. package/dist-cjs/commands/index.js +1 -16
  17. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  18. package/dist-cjs/extensionConfiguration.js +1 -2
  19. package/dist-cjs/index.js +1688 -11
  20. package/dist-cjs/models/ApplicationAutoScalingServiceException.js +1 -12
  21. package/dist-cjs/models/index.js +1 -4
  22. package/dist-cjs/models/models_0.js +1 -227
  23. package/dist-cjs/pagination/DescribeScalableTargetsPaginator.js +1 -7
  24. package/dist-cjs/pagination/DescribeScalingActivitiesPaginator.js +1 -7
  25. package/dist-cjs/pagination/DescribeScalingPoliciesPaginator.js +1 -7
  26. package/dist-cjs/pagination/DescribeScheduledActionsPaginator.js +1 -7
  27. package/dist-cjs/pagination/Interfaces.js +1 -2
  28. package/dist-cjs/pagination/index.js +1 -8
  29. package/dist-cjs/protocols/Aws_json1_1.js +1 -996
  30. package/dist-cjs/runtimeExtensions.js +1 -22
  31. package/package.json +40 -40
@@ -1,996 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterScalableTargetCommand = exports.de_PutScheduledActionCommand = exports.de_PutScalingPolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_DescribeScheduledActionsCommand = exports.de_DescribeScalingPoliciesCommand = exports.de_DescribeScalingActivitiesCommand = exports.de_DescribeScalableTargetsCommand = exports.de_DeregisterScalableTargetCommand = exports.de_DeleteScheduledActionCommand = exports.de_DeleteScalingPolicyCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterScalableTargetCommand = exports.se_PutScheduledActionCommand = exports.se_PutScalingPolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_DescribeScheduledActionsCommand = exports.se_DescribeScalingPoliciesCommand = exports.se_DescribeScalingActivitiesCommand = exports.se_DescribeScalableTargetsCommand = exports.se_DeregisterScalableTargetCommand = exports.se_DeleteScheduledActionCommand = exports.se_DeleteScalingPolicyCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
5
- const smithy_client_1 = require("@smithy/smithy-client");
6
- const ApplicationAutoScalingServiceException_1 = require("../models/ApplicationAutoScalingServiceException");
7
- const models_0_1 = require("../models/models_0");
8
- const se_DeleteScalingPolicyCommand = async (input, context) => {
9
- const headers = sharedHeaders("DeleteScalingPolicy");
10
- let body;
11
- body = JSON.stringify((0, smithy_client_1._json)(input));
12
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
- };
14
- exports.se_DeleteScalingPolicyCommand = se_DeleteScalingPolicyCommand;
15
- const se_DeleteScheduledActionCommand = async (input, context) => {
16
- const headers = sharedHeaders("DeleteScheduledAction");
17
- let body;
18
- body = JSON.stringify((0, smithy_client_1._json)(input));
19
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
- };
21
- exports.se_DeleteScheduledActionCommand = se_DeleteScheduledActionCommand;
22
- const se_DeregisterScalableTargetCommand = async (input, context) => {
23
- const headers = sharedHeaders("DeregisterScalableTarget");
24
- let body;
25
- body = JSON.stringify((0, smithy_client_1._json)(input));
26
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
- };
28
- exports.se_DeregisterScalableTargetCommand = se_DeregisterScalableTargetCommand;
29
- const se_DescribeScalableTargetsCommand = async (input, context) => {
30
- const headers = sharedHeaders("DescribeScalableTargets");
31
- let body;
32
- body = JSON.stringify((0, smithy_client_1._json)(input));
33
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
- };
35
- exports.se_DescribeScalableTargetsCommand = se_DescribeScalableTargetsCommand;
36
- const se_DescribeScalingActivitiesCommand = async (input, context) => {
37
- const headers = sharedHeaders("DescribeScalingActivities");
38
- let body;
39
- body = JSON.stringify((0, smithy_client_1._json)(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- exports.se_DescribeScalingActivitiesCommand = se_DescribeScalingActivitiesCommand;
43
- const se_DescribeScalingPoliciesCommand = async (input, context) => {
44
- const headers = sharedHeaders("DescribeScalingPolicies");
45
- let body;
46
- body = JSON.stringify((0, smithy_client_1._json)(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- exports.se_DescribeScalingPoliciesCommand = se_DescribeScalingPoliciesCommand;
50
- const se_DescribeScheduledActionsCommand = async (input, context) => {
51
- const headers = sharedHeaders("DescribeScheduledActions");
52
- let body;
53
- body = JSON.stringify((0, smithy_client_1._json)(input));
54
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
- };
56
- exports.se_DescribeScheduledActionsCommand = se_DescribeScheduledActionsCommand;
57
- const se_ListTagsForResourceCommand = async (input, context) => {
58
- const headers = sharedHeaders("ListTagsForResource");
59
- let body;
60
- body = JSON.stringify((0, smithy_client_1._json)(input));
61
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
62
- };
63
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
64
- const se_PutScalingPolicyCommand = async (input, context) => {
65
- const headers = sharedHeaders("PutScalingPolicy");
66
- let body;
67
- body = JSON.stringify(se_PutScalingPolicyRequest(input, context));
68
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
69
- };
70
- exports.se_PutScalingPolicyCommand = se_PutScalingPolicyCommand;
71
- const se_PutScheduledActionCommand = async (input, context) => {
72
- const headers = sharedHeaders("PutScheduledAction");
73
- let body;
74
- body = JSON.stringify(se_PutScheduledActionRequest(input, context));
75
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
- };
77
- exports.se_PutScheduledActionCommand = se_PutScheduledActionCommand;
78
- const se_RegisterScalableTargetCommand = async (input, context) => {
79
- const headers = sharedHeaders("RegisterScalableTarget");
80
- let body;
81
- body = JSON.stringify((0, smithy_client_1._json)(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- exports.se_RegisterScalableTargetCommand = se_RegisterScalableTargetCommand;
85
- const se_TagResourceCommand = async (input, context) => {
86
- const headers = sharedHeaders("TagResource");
87
- let body;
88
- body = JSON.stringify((0, smithy_client_1._json)(input));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- exports.se_TagResourceCommand = se_TagResourceCommand;
92
- const se_UntagResourceCommand = async (input, context) => {
93
- const headers = sharedHeaders("UntagResource");
94
- let body;
95
- body = JSON.stringify((0, smithy_client_1._json)(input));
96
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
- };
98
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
99
- const de_DeleteScalingPolicyCommand = async (output, context) => {
100
- if (output.statusCode >= 300) {
101
- return de_DeleteScalingPolicyCommandError(output, context);
102
- }
103
- const data = await parseBody(output.body, context);
104
- let contents = {};
105
- contents = (0, smithy_client_1._json)(data);
106
- const response = {
107
- $metadata: deserializeMetadata(output),
108
- ...contents,
109
- };
110
- return response;
111
- };
112
- exports.de_DeleteScalingPolicyCommand = de_DeleteScalingPolicyCommand;
113
- const de_DeleteScalingPolicyCommandError = async (output, context) => {
114
- const parsedOutput = {
115
- ...output,
116
- body: await parseErrorBody(output.body, context),
117
- };
118
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
119
- switch (errorCode) {
120
- case "ConcurrentUpdateException":
121
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
122
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
123
- case "InternalServiceException":
124
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
125
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
126
- case "ObjectNotFoundException":
127
- case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
128
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
129
- case "ValidationException":
130
- case "com.amazonaws.applicationautoscaling#ValidationException":
131
- throw await de_ValidationExceptionRes(parsedOutput, context);
132
- default:
133
- const parsedBody = parsedOutput.body;
134
- return throwDefaultError({
135
- output,
136
- parsedBody,
137
- errorCode,
138
- });
139
- }
140
- };
141
- const de_DeleteScheduledActionCommand = async (output, context) => {
142
- if (output.statusCode >= 300) {
143
- return de_DeleteScheduledActionCommandError(output, context);
144
- }
145
- const data = await parseBody(output.body, context);
146
- let contents = {};
147
- contents = (0, smithy_client_1._json)(data);
148
- const response = {
149
- $metadata: deserializeMetadata(output),
150
- ...contents,
151
- };
152
- return response;
153
- };
154
- exports.de_DeleteScheduledActionCommand = de_DeleteScheduledActionCommand;
155
- const de_DeleteScheduledActionCommandError = async (output, context) => {
156
- const parsedOutput = {
157
- ...output,
158
- body: await parseErrorBody(output.body, context),
159
- };
160
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
161
- switch (errorCode) {
162
- case "ConcurrentUpdateException":
163
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
164
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
165
- case "InternalServiceException":
166
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
167
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
168
- case "ObjectNotFoundException":
169
- case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
170
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
171
- case "ValidationException":
172
- case "com.amazonaws.applicationautoscaling#ValidationException":
173
- throw await de_ValidationExceptionRes(parsedOutput, context);
174
- default:
175
- const parsedBody = parsedOutput.body;
176
- return throwDefaultError({
177
- output,
178
- parsedBody,
179
- errorCode,
180
- });
181
- }
182
- };
183
- const de_DeregisterScalableTargetCommand = async (output, context) => {
184
- if (output.statusCode >= 300) {
185
- return de_DeregisterScalableTargetCommandError(output, context);
186
- }
187
- const data = await parseBody(output.body, context);
188
- let contents = {};
189
- contents = (0, smithy_client_1._json)(data);
190
- const response = {
191
- $metadata: deserializeMetadata(output),
192
- ...contents,
193
- };
194
- return response;
195
- };
196
- exports.de_DeregisterScalableTargetCommand = de_DeregisterScalableTargetCommand;
197
- const de_DeregisterScalableTargetCommandError = async (output, context) => {
198
- const parsedOutput = {
199
- ...output,
200
- body: await parseErrorBody(output.body, context),
201
- };
202
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
203
- switch (errorCode) {
204
- case "ConcurrentUpdateException":
205
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
206
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
207
- case "InternalServiceException":
208
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
209
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
210
- case "ObjectNotFoundException":
211
- case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
212
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
213
- case "ValidationException":
214
- case "com.amazonaws.applicationautoscaling#ValidationException":
215
- throw await de_ValidationExceptionRes(parsedOutput, context);
216
- default:
217
- const parsedBody = parsedOutput.body;
218
- return throwDefaultError({
219
- output,
220
- parsedBody,
221
- errorCode,
222
- });
223
- }
224
- };
225
- const de_DescribeScalableTargetsCommand = async (output, context) => {
226
- if (output.statusCode >= 300) {
227
- return de_DescribeScalableTargetsCommandError(output, context);
228
- }
229
- const data = await parseBody(output.body, context);
230
- let contents = {};
231
- contents = de_DescribeScalableTargetsResponse(data, context);
232
- const response = {
233
- $metadata: deserializeMetadata(output),
234
- ...contents,
235
- };
236
- return response;
237
- };
238
- exports.de_DescribeScalableTargetsCommand = de_DescribeScalableTargetsCommand;
239
- const de_DescribeScalableTargetsCommandError = async (output, context) => {
240
- const parsedOutput = {
241
- ...output,
242
- body: await parseErrorBody(output.body, context),
243
- };
244
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
245
- switch (errorCode) {
246
- case "ConcurrentUpdateException":
247
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
248
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
249
- case "InternalServiceException":
250
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
251
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
252
- case "InvalidNextTokenException":
253
- case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
254
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
255
- case "ValidationException":
256
- case "com.amazonaws.applicationautoscaling#ValidationException":
257
- throw await de_ValidationExceptionRes(parsedOutput, context);
258
- default:
259
- const parsedBody = parsedOutput.body;
260
- return throwDefaultError({
261
- output,
262
- parsedBody,
263
- errorCode,
264
- });
265
- }
266
- };
267
- const de_DescribeScalingActivitiesCommand = async (output, context) => {
268
- if (output.statusCode >= 300) {
269
- return de_DescribeScalingActivitiesCommandError(output, context);
270
- }
271
- const data = await parseBody(output.body, context);
272
- let contents = {};
273
- contents = de_DescribeScalingActivitiesResponse(data, context);
274
- const response = {
275
- $metadata: deserializeMetadata(output),
276
- ...contents,
277
- };
278
- return response;
279
- };
280
- exports.de_DescribeScalingActivitiesCommand = de_DescribeScalingActivitiesCommand;
281
- const de_DescribeScalingActivitiesCommandError = async (output, context) => {
282
- const parsedOutput = {
283
- ...output,
284
- body: await parseErrorBody(output.body, context),
285
- };
286
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
287
- switch (errorCode) {
288
- case "ConcurrentUpdateException":
289
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
290
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
291
- case "InternalServiceException":
292
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
293
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
294
- case "InvalidNextTokenException":
295
- case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
296
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
297
- case "ValidationException":
298
- case "com.amazonaws.applicationautoscaling#ValidationException":
299
- throw await de_ValidationExceptionRes(parsedOutput, context);
300
- default:
301
- const parsedBody = parsedOutput.body;
302
- return throwDefaultError({
303
- output,
304
- parsedBody,
305
- errorCode,
306
- });
307
- }
308
- };
309
- const de_DescribeScalingPoliciesCommand = async (output, context) => {
310
- if (output.statusCode >= 300) {
311
- return de_DescribeScalingPoliciesCommandError(output, context);
312
- }
313
- const data = await parseBody(output.body, context);
314
- let contents = {};
315
- contents = de_DescribeScalingPoliciesResponse(data, context);
316
- const response = {
317
- $metadata: deserializeMetadata(output),
318
- ...contents,
319
- };
320
- return response;
321
- };
322
- exports.de_DescribeScalingPoliciesCommand = de_DescribeScalingPoliciesCommand;
323
- const de_DescribeScalingPoliciesCommandError = async (output, context) => {
324
- const parsedOutput = {
325
- ...output,
326
- body: await parseErrorBody(output.body, context),
327
- };
328
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
329
- switch (errorCode) {
330
- case "ConcurrentUpdateException":
331
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
332
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
333
- case "FailedResourceAccessException":
334
- case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
335
- throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
336
- case "InternalServiceException":
337
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
338
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
339
- case "InvalidNextTokenException":
340
- case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
341
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
342
- case "ValidationException":
343
- case "com.amazonaws.applicationautoscaling#ValidationException":
344
- throw await de_ValidationExceptionRes(parsedOutput, context);
345
- default:
346
- const parsedBody = parsedOutput.body;
347
- return throwDefaultError({
348
- output,
349
- parsedBody,
350
- errorCode,
351
- });
352
- }
353
- };
354
- const de_DescribeScheduledActionsCommand = async (output, context) => {
355
- if (output.statusCode >= 300) {
356
- return de_DescribeScheduledActionsCommandError(output, context);
357
- }
358
- const data = await parseBody(output.body, context);
359
- let contents = {};
360
- contents = de_DescribeScheduledActionsResponse(data, context);
361
- const response = {
362
- $metadata: deserializeMetadata(output),
363
- ...contents,
364
- };
365
- return response;
366
- };
367
- exports.de_DescribeScheduledActionsCommand = de_DescribeScheduledActionsCommand;
368
- const de_DescribeScheduledActionsCommandError = async (output, context) => {
369
- const parsedOutput = {
370
- ...output,
371
- body: await parseErrorBody(output.body, context),
372
- };
373
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
374
- switch (errorCode) {
375
- case "ConcurrentUpdateException":
376
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
377
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
378
- case "InternalServiceException":
379
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
380
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
381
- case "InvalidNextTokenException":
382
- case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
383
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
384
- case "ValidationException":
385
- case "com.amazonaws.applicationautoscaling#ValidationException":
386
- throw await de_ValidationExceptionRes(parsedOutput, context);
387
- default:
388
- const parsedBody = parsedOutput.body;
389
- return throwDefaultError({
390
- output,
391
- parsedBody,
392
- errorCode,
393
- });
394
- }
395
- };
396
- const de_ListTagsForResourceCommand = async (output, context) => {
397
- if (output.statusCode >= 300) {
398
- return de_ListTagsForResourceCommandError(output, context);
399
- }
400
- const data = await parseBody(output.body, context);
401
- let contents = {};
402
- contents = (0, smithy_client_1._json)(data);
403
- const response = {
404
- $metadata: deserializeMetadata(output),
405
- ...contents,
406
- };
407
- return response;
408
- };
409
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
410
- const de_ListTagsForResourceCommandError = async (output, context) => {
411
- const parsedOutput = {
412
- ...output,
413
- body: await parseErrorBody(output.body, context),
414
- };
415
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
416
- switch (errorCode) {
417
- case "ResourceNotFoundException":
418
- case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
419
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
420
- default:
421
- const parsedBody = parsedOutput.body;
422
- return throwDefaultError({
423
- output,
424
- parsedBody,
425
- errorCode,
426
- });
427
- }
428
- };
429
- const de_PutScalingPolicyCommand = async (output, context) => {
430
- if (output.statusCode >= 300) {
431
- return de_PutScalingPolicyCommandError(output, context);
432
- }
433
- const data = await parseBody(output.body, context);
434
- let contents = {};
435
- contents = (0, smithy_client_1._json)(data);
436
- const response = {
437
- $metadata: deserializeMetadata(output),
438
- ...contents,
439
- };
440
- return response;
441
- };
442
- exports.de_PutScalingPolicyCommand = de_PutScalingPolicyCommand;
443
- const de_PutScalingPolicyCommandError = async (output, context) => {
444
- const parsedOutput = {
445
- ...output,
446
- body: await parseErrorBody(output.body, context),
447
- };
448
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
449
- switch (errorCode) {
450
- case "ConcurrentUpdateException":
451
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
452
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
453
- case "FailedResourceAccessException":
454
- case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
455
- throw await de_FailedResourceAccessExceptionRes(parsedOutput, context);
456
- case "InternalServiceException":
457
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
458
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
459
- case "LimitExceededException":
460
- case "com.amazonaws.applicationautoscaling#LimitExceededException":
461
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
462
- case "ObjectNotFoundException":
463
- case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
464
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
465
- case "ValidationException":
466
- case "com.amazonaws.applicationautoscaling#ValidationException":
467
- throw await de_ValidationExceptionRes(parsedOutput, context);
468
- default:
469
- const parsedBody = parsedOutput.body;
470
- return throwDefaultError({
471
- output,
472
- parsedBody,
473
- errorCode,
474
- });
475
- }
476
- };
477
- const de_PutScheduledActionCommand = async (output, context) => {
478
- if (output.statusCode >= 300) {
479
- return de_PutScheduledActionCommandError(output, context);
480
- }
481
- const data = await parseBody(output.body, context);
482
- let contents = {};
483
- contents = (0, smithy_client_1._json)(data);
484
- const response = {
485
- $metadata: deserializeMetadata(output),
486
- ...contents,
487
- };
488
- return response;
489
- };
490
- exports.de_PutScheduledActionCommand = de_PutScheduledActionCommand;
491
- const de_PutScheduledActionCommandError = async (output, context) => {
492
- const parsedOutput = {
493
- ...output,
494
- body: await parseErrorBody(output.body, context),
495
- };
496
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
497
- switch (errorCode) {
498
- case "ConcurrentUpdateException":
499
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
500
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
501
- case "InternalServiceException":
502
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
503
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
504
- case "LimitExceededException":
505
- case "com.amazonaws.applicationautoscaling#LimitExceededException":
506
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
507
- case "ObjectNotFoundException":
508
- case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
509
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
510
- case "ValidationException":
511
- case "com.amazonaws.applicationautoscaling#ValidationException":
512
- throw await de_ValidationExceptionRes(parsedOutput, context);
513
- default:
514
- const parsedBody = parsedOutput.body;
515
- return throwDefaultError({
516
- output,
517
- parsedBody,
518
- errorCode,
519
- });
520
- }
521
- };
522
- const de_RegisterScalableTargetCommand = async (output, context) => {
523
- if (output.statusCode >= 300) {
524
- return de_RegisterScalableTargetCommandError(output, context);
525
- }
526
- const data = await parseBody(output.body, context);
527
- let contents = {};
528
- contents = (0, smithy_client_1._json)(data);
529
- const response = {
530
- $metadata: deserializeMetadata(output),
531
- ...contents,
532
- };
533
- return response;
534
- };
535
- exports.de_RegisterScalableTargetCommand = de_RegisterScalableTargetCommand;
536
- const de_RegisterScalableTargetCommandError = async (output, context) => {
537
- const parsedOutput = {
538
- ...output,
539
- body: await parseErrorBody(output.body, context),
540
- };
541
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
542
- switch (errorCode) {
543
- case "ConcurrentUpdateException":
544
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
545
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
546
- case "InternalServiceException":
547
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
548
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
549
- case "LimitExceededException":
550
- case "com.amazonaws.applicationautoscaling#LimitExceededException":
551
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
552
- case "ValidationException":
553
- case "com.amazonaws.applicationautoscaling#ValidationException":
554
- throw await de_ValidationExceptionRes(parsedOutput, context);
555
- default:
556
- const parsedBody = parsedOutput.body;
557
- return throwDefaultError({
558
- output,
559
- parsedBody,
560
- errorCode,
561
- });
562
- }
563
- };
564
- const de_TagResourceCommand = async (output, context) => {
565
- if (output.statusCode >= 300) {
566
- return de_TagResourceCommandError(output, context);
567
- }
568
- const data = await parseBody(output.body, context);
569
- let contents = {};
570
- contents = (0, smithy_client_1._json)(data);
571
- const response = {
572
- $metadata: deserializeMetadata(output),
573
- ...contents,
574
- };
575
- return response;
576
- };
577
- exports.de_TagResourceCommand = de_TagResourceCommand;
578
- const de_TagResourceCommandError = async (output, context) => {
579
- const parsedOutput = {
580
- ...output,
581
- body: await parseErrorBody(output.body, context),
582
- };
583
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
584
- switch (errorCode) {
585
- case "ResourceNotFoundException":
586
- case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
587
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
588
- case "TooManyTagsException":
589
- case "com.amazonaws.applicationautoscaling#TooManyTagsException":
590
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
591
- case "ValidationException":
592
- case "com.amazonaws.applicationautoscaling#ValidationException":
593
- throw await de_ValidationExceptionRes(parsedOutput, context);
594
- default:
595
- const parsedBody = parsedOutput.body;
596
- return throwDefaultError({
597
- output,
598
- parsedBody,
599
- errorCode,
600
- });
601
- }
602
- };
603
- const de_UntagResourceCommand = async (output, context) => {
604
- if (output.statusCode >= 300) {
605
- return de_UntagResourceCommandError(output, context);
606
- }
607
- const data = await parseBody(output.body, context);
608
- let contents = {};
609
- contents = (0, smithy_client_1._json)(data);
610
- const response = {
611
- $metadata: deserializeMetadata(output),
612
- ...contents,
613
- };
614
- return response;
615
- };
616
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
617
- const de_UntagResourceCommandError = async (output, context) => {
618
- const parsedOutput = {
619
- ...output,
620
- body: await parseErrorBody(output.body, context),
621
- };
622
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
623
- switch (errorCode) {
624
- case "ResourceNotFoundException":
625
- case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
626
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
627
- case "ValidationException":
628
- case "com.amazonaws.applicationautoscaling#ValidationException":
629
- throw await de_ValidationExceptionRes(parsedOutput, context);
630
- default:
631
- const parsedBody = parsedOutput.body;
632
- return throwDefaultError({
633
- output,
634
- parsedBody,
635
- errorCode,
636
- });
637
- }
638
- };
639
- const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
640
- const body = parsedOutput.body;
641
- const deserialized = (0, smithy_client_1._json)(body);
642
- const exception = new models_0_1.ConcurrentUpdateException({
643
- $metadata: deserializeMetadata(parsedOutput),
644
- ...deserialized,
645
- });
646
- return (0, smithy_client_1.decorateServiceException)(exception, body);
647
- };
648
- const de_FailedResourceAccessExceptionRes = async (parsedOutput, context) => {
649
- const body = parsedOutput.body;
650
- const deserialized = (0, smithy_client_1._json)(body);
651
- const exception = new models_0_1.FailedResourceAccessException({
652
- $metadata: deserializeMetadata(parsedOutput),
653
- ...deserialized,
654
- });
655
- return (0, smithy_client_1.decorateServiceException)(exception, body);
656
- };
657
- const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
658
- const body = parsedOutput.body;
659
- const deserialized = (0, smithy_client_1._json)(body);
660
- const exception = new models_0_1.InternalServiceException({
661
- $metadata: deserializeMetadata(parsedOutput),
662
- ...deserialized,
663
- });
664
- return (0, smithy_client_1.decorateServiceException)(exception, body);
665
- };
666
- const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
667
- const body = parsedOutput.body;
668
- const deserialized = (0, smithy_client_1._json)(body);
669
- const exception = new models_0_1.InvalidNextTokenException({
670
- $metadata: deserializeMetadata(parsedOutput),
671
- ...deserialized,
672
- });
673
- return (0, smithy_client_1.decorateServiceException)(exception, body);
674
- };
675
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
676
- const body = parsedOutput.body;
677
- const deserialized = (0, smithy_client_1._json)(body);
678
- const exception = new models_0_1.LimitExceededException({
679
- $metadata: deserializeMetadata(parsedOutput),
680
- ...deserialized,
681
- });
682
- return (0, smithy_client_1.decorateServiceException)(exception, body);
683
- };
684
- const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
685
- const body = parsedOutput.body;
686
- const deserialized = (0, smithy_client_1._json)(body);
687
- const exception = new models_0_1.ObjectNotFoundException({
688
- $metadata: deserializeMetadata(parsedOutput),
689
- ...deserialized,
690
- });
691
- return (0, smithy_client_1.decorateServiceException)(exception, body);
692
- };
693
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
694
- const body = parsedOutput.body;
695
- const deserialized = (0, smithy_client_1._json)(body);
696
- const exception = new models_0_1.ResourceNotFoundException({
697
- $metadata: deserializeMetadata(parsedOutput),
698
- ...deserialized,
699
- });
700
- return (0, smithy_client_1.decorateServiceException)(exception, body);
701
- };
702
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
703
- const body = parsedOutput.body;
704
- const deserialized = (0, smithy_client_1._json)(body);
705
- const exception = new models_0_1.TooManyTagsException({
706
- $metadata: deserializeMetadata(parsedOutput),
707
- ...deserialized,
708
- });
709
- return (0, smithy_client_1.decorateServiceException)(exception, body);
710
- };
711
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
712
- const body = parsedOutput.body;
713
- const deserialized = (0, smithy_client_1._json)(body);
714
- const exception = new models_0_1.ValidationException({
715
- $metadata: deserializeMetadata(parsedOutput),
716
- ...deserialized,
717
- });
718
- return (0, smithy_client_1.decorateServiceException)(exception, body);
719
- };
720
- const se_PutScalingPolicyRequest = (input, context) => {
721
- return (0, smithy_client_1.take)(input, {
722
- PolicyName: [],
723
- PolicyType: [],
724
- ResourceId: [],
725
- ScalableDimension: [],
726
- ServiceNamespace: [],
727
- StepScalingPolicyConfiguration: (_) => se_StepScalingPolicyConfiguration(_, context),
728
- TargetTrackingScalingPolicyConfiguration: (_) => se_TargetTrackingScalingPolicyConfiguration(_, context),
729
- });
730
- };
731
- const se_PutScheduledActionRequest = (input, context) => {
732
- return (0, smithy_client_1.take)(input, {
733
- EndTime: (_) => Math.round(_.getTime() / 1000),
734
- ResourceId: [],
735
- ScalableDimension: [],
736
- ScalableTargetAction: smithy_client_1._json,
737
- Schedule: [],
738
- ScheduledActionName: [],
739
- ServiceNamespace: [],
740
- StartTime: (_) => Math.round(_.getTime() / 1000),
741
- Timezone: [],
742
- });
743
- };
744
- const se_StepAdjustment = (input, context) => {
745
- return (0, smithy_client_1.take)(input, {
746
- MetricIntervalLowerBound: smithy_client_1.serializeFloat,
747
- MetricIntervalUpperBound: smithy_client_1.serializeFloat,
748
- ScalingAdjustment: [],
749
- });
750
- };
751
- const se_StepAdjustments = (input, context) => {
752
- return input
753
- .filter((e) => e != null)
754
- .map((entry) => {
755
- return se_StepAdjustment(entry, context);
756
- });
757
- };
758
- const se_StepScalingPolicyConfiguration = (input, context) => {
759
- return (0, smithy_client_1.take)(input, {
760
- AdjustmentType: [],
761
- Cooldown: [],
762
- MetricAggregationType: [],
763
- MinAdjustmentMagnitude: [],
764
- StepAdjustments: (_) => se_StepAdjustments(_, context),
765
- });
766
- };
767
- const se_TargetTrackingScalingPolicyConfiguration = (input, context) => {
768
- return (0, smithy_client_1.take)(input, {
769
- CustomizedMetricSpecification: smithy_client_1._json,
770
- DisableScaleIn: [],
771
- PredefinedMetricSpecification: smithy_client_1._json,
772
- ScaleInCooldown: [],
773
- ScaleOutCooldown: [],
774
- TargetValue: smithy_client_1.serializeFloat,
775
- });
776
- };
777
- const de_DescribeScalableTargetsResponse = (output, context) => {
778
- return (0, smithy_client_1.take)(output, {
779
- NextToken: smithy_client_1.expectString,
780
- ScalableTargets: (_) => de_ScalableTargets(_, context),
781
- });
782
- };
783
- const de_DescribeScalingActivitiesResponse = (output, context) => {
784
- return (0, smithy_client_1.take)(output, {
785
- NextToken: smithy_client_1.expectString,
786
- ScalingActivities: (_) => de_ScalingActivities(_, context),
787
- });
788
- };
789
- const de_DescribeScalingPoliciesResponse = (output, context) => {
790
- return (0, smithy_client_1.take)(output, {
791
- NextToken: smithy_client_1.expectString,
792
- ScalingPolicies: (_) => de_ScalingPolicies(_, context),
793
- });
794
- };
795
- const de_DescribeScheduledActionsResponse = (output, context) => {
796
- return (0, smithy_client_1.take)(output, {
797
- NextToken: smithy_client_1.expectString,
798
- ScheduledActions: (_) => de_ScheduledActions(_, context),
799
- });
800
- };
801
- const de_ScalableTarget = (output, context) => {
802
- return (0, smithy_client_1.take)(output, {
803
- CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
804
- MaxCapacity: smithy_client_1.expectInt32,
805
- MinCapacity: smithy_client_1.expectInt32,
806
- ResourceId: smithy_client_1.expectString,
807
- RoleARN: smithy_client_1.expectString,
808
- ScalableDimension: smithy_client_1.expectString,
809
- ScalableTargetARN: smithy_client_1.expectString,
810
- ServiceNamespace: smithy_client_1.expectString,
811
- SuspendedState: smithy_client_1._json,
812
- });
813
- };
814
- const de_ScalableTargets = (output, context) => {
815
- const retVal = (output || [])
816
- .filter((e) => e != null)
817
- .map((entry) => {
818
- return de_ScalableTarget(entry, context);
819
- });
820
- return retVal;
821
- };
822
- const de_ScalingActivities = (output, context) => {
823
- const retVal = (output || [])
824
- .filter((e) => e != null)
825
- .map((entry) => {
826
- return de_ScalingActivity(entry, context);
827
- });
828
- return retVal;
829
- };
830
- const de_ScalingActivity = (output, context) => {
831
- return (0, smithy_client_1.take)(output, {
832
- ActivityId: smithy_client_1.expectString,
833
- Cause: smithy_client_1.expectString,
834
- Description: smithy_client_1.expectString,
835
- Details: smithy_client_1.expectString,
836
- EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
837
- NotScaledReasons: smithy_client_1._json,
838
- ResourceId: smithy_client_1.expectString,
839
- ScalableDimension: smithy_client_1.expectString,
840
- ServiceNamespace: smithy_client_1.expectString,
841
- StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
842
- StatusCode: smithy_client_1.expectString,
843
- StatusMessage: smithy_client_1.expectString,
844
- });
845
- };
846
- const de_ScalingPolicies = (output, context) => {
847
- const retVal = (output || [])
848
- .filter((e) => e != null)
849
- .map((entry) => {
850
- return de_ScalingPolicy(entry, context);
851
- });
852
- return retVal;
853
- };
854
- const de_ScalingPolicy = (output, context) => {
855
- return (0, smithy_client_1.take)(output, {
856
- Alarms: smithy_client_1._json,
857
- CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
858
- PolicyARN: smithy_client_1.expectString,
859
- PolicyName: smithy_client_1.expectString,
860
- PolicyType: smithy_client_1.expectString,
861
- ResourceId: smithy_client_1.expectString,
862
- ScalableDimension: smithy_client_1.expectString,
863
- ServiceNamespace: smithy_client_1.expectString,
864
- StepScalingPolicyConfiguration: (_) => de_StepScalingPolicyConfiguration(_, context),
865
- TargetTrackingScalingPolicyConfiguration: (_) => de_TargetTrackingScalingPolicyConfiguration(_, context),
866
- });
867
- };
868
- const de_ScheduledAction = (output, context) => {
869
- return (0, smithy_client_1.take)(output, {
870
- CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
871
- EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
872
- ResourceId: smithy_client_1.expectString,
873
- ScalableDimension: smithy_client_1.expectString,
874
- ScalableTargetAction: smithy_client_1._json,
875
- Schedule: smithy_client_1.expectString,
876
- ScheduledActionARN: smithy_client_1.expectString,
877
- ScheduledActionName: smithy_client_1.expectString,
878
- ServiceNamespace: smithy_client_1.expectString,
879
- StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
880
- Timezone: smithy_client_1.expectString,
881
- });
882
- };
883
- const de_ScheduledActions = (output, context) => {
884
- const retVal = (output || [])
885
- .filter((e) => e != null)
886
- .map((entry) => {
887
- return de_ScheduledAction(entry, context);
888
- });
889
- return retVal;
890
- };
891
- const de_StepAdjustment = (output, context) => {
892
- return (0, smithy_client_1.take)(output, {
893
- MetricIntervalLowerBound: smithy_client_1.limitedParseDouble,
894
- MetricIntervalUpperBound: smithy_client_1.limitedParseDouble,
895
- ScalingAdjustment: smithy_client_1.expectInt32,
896
- });
897
- };
898
- const de_StepAdjustments = (output, context) => {
899
- const retVal = (output || [])
900
- .filter((e) => e != null)
901
- .map((entry) => {
902
- return de_StepAdjustment(entry, context);
903
- });
904
- return retVal;
905
- };
906
- const de_StepScalingPolicyConfiguration = (output, context) => {
907
- return (0, smithy_client_1.take)(output, {
908
- AdjustmentType: smithy_client_1.expectString,
909
- Cooldown: smithy_client_1.expectInt32,
910
- MetricAggregationType: smithy_client_1.expectString,
911
- MinAdjustmentMagnitude: smithy_client_1.expectInt32,
912
- StepAdjustments: (_) => de_StepAdjustments(_, context),
913
- });
914
- };
915
- const de_TargetTrackingScalingPolicyConfiguration = (output, context) => {
916
- return (0, smithy_client_1.take)(output, {
917
- CustomizedMetricSpecification: smithy_client_1._json,
918
- DisableScaleIn: smithy_client_1.expectBoolean,
919
- PredefinedMetricSpecification: smithy_client_1._json,
920
- ScaleInCooldown: smithy_client_1.expectInt32,
921
- ScaleOutCooldown: smithy_client_1.expectInt32,
922
- TargetValue: smithy_client_1.limitedParseDouble,
923
- });
924
- };
925
- const deserializeMetadata = (output) => ({
926
- httpStatusCode: output.statusCode,
927
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
928
- extendedRequestId: output.headers["x-amz-id-2"],
929
- cfId: output.headers["x-amz-cf-id"],
930
- });
931
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
932
- const throwDefaultError = (0, smithy_client_1.withBaseException)(ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException);
933
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
934
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
935
- const contents = {
936
- protocol,
937
- hostname,
938
- port,
939
- method: "POST",
940
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
941
- headers,
942
- };
943
- if (resolvedHostname !== undefined) {
944
- contents.hostname = resolvedHostname;
945
- }
946
- if (body !== undefined) {
947
- contents.body = body;
948
- }
949
- return new protocol_http_1.HttpRequest(contents);
950
- };
951
- function sharedHeaders(operation) {
952
- return {
953
- "content-type": "application/x-amz-json-1.1",
954
- "x-amz-target": `AnyScaleFrontendService.${operation}`,
955
- };
956
- }
957
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
958
- if (encoded.length) {
959
- return JSON.parse(encoded);
960
- }
961
- return {};
962
- });
963
- const parseErrorBody = async (errorBody, context) => {
964
- const value = await parseBody(errorBody, context);
965
- value.message = value.message ?? value.Message;
966
- return value;
967
- };
968
- const loadRestJsonErrorCode = (output, data) => {
969
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
970
- const sanitizeErrorCode = (rawValue) => {
971
- let cleanValue = rawValue;
972
- if (typeof cleanValue === "number") {
973
- cleanValue = cleanValue.toString();
974
- }
975
- if (cleanValue.indexOf(",") >= 0) {
976
- cleanValue = cleanValue.split(",")[0];
977
- }
978
- if (cleanValue.indexOf(":") >= 0) {
979
- cleanValue = cleanValue.split(":")[0];
980
- }
981
- if (cleanValue.indexOf("#") >= 0) {
982
- cleanValue = cleanValue.split("#")[1];
983
- }
984
- return cleanValue;
985
- };
986
- const headerKey = findKey(output.headers, "x-amzn-errortype");
987
- if (headerKey !== undefined) {
988
- return sanitizeErrorCode(output.headers[headerKey]);
989
- }
990
- if (data.code !== undefined) {
991
- return sanitizeErrorCode(data.code);
992
- }
993
- if (data["__type"] !== undefined) {
994
- return sanitizeErrorCode(data["__type"]);
995
- }
996
- };
1
+ module.exports = require("../index.js");