@aws-sdk/client-application-auto-scaling 3.927.0 → 3.929.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 (35) hide show
  1. package/dist-cjs/index.js +827 -865
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/ApplicationAutoScalingClient.js +2 -0
  4. package/dist-es/commands/DeleteScalingPolicyCommand.js +3 -9
  5. package/dist-es/commands/DeleteScheduledActionCommand.js +3 -9
  6. package/dist-es/commands/DeregisterScalableTargetCommand.js +3 -9
  7. package/dist-es/commands/DescribeScalableTargetsCommand.js +3 -9
  8. package/dist-es/commands/DescribeScalingActivitiesCommand.js +3 -9
  9. package/dist-es/commands/DescribeScalingPoliciesCommand.js +3 -9
  10. package/dist-es/commands/DescribeScheduledActionsCommand.js +3 -9
  11. package/dist-es/commands/GetPredictiveScalingForecastCommand.js +3 -9
  12. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  13. package/dist-es/commands/PutScalingPolicyCommand.js +3 -9
  14. package/dist-es/commands/PutScheduledActionCommand.js +3 -9
  15. package/dist-es/commands/RegisterScalableTargetCommand.js +3 -9
  16. package/dist-es/commands/TagResourceCommand.js +3 -9
  17. package/dist-es/commands/UntagResourceCommand.js +3 -9
  18. package/dist-es/runtimeConfig.shared.js +7 -0
  19. package/dist-es/schemas/schemas_0.js +776 -0
  20. package/dist-types/ApplicationAutoScalingClient.d.ts +10 -1
  21. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  22. package/dist-types/runtimeConfig.d.ts +1 -0
  23. package/dist-types/runtimeConfig.native.d.ts +1 -0
  24. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  25. package/dist-types/schemas/schemas_0.d.ts +103 -0
  26. package/dist-types/ts3.4/ApplicationAutoScalingClient.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  31. package/dist-types/ts3.4/schemas/schemas_0.d.ts +108 -0
  32. package/package.json +5 -5
  33. package/dist-es/protocols/Aws_json1_1.js +0 -744
  34. package/dist-types/protocols/Aws_json1_1.d.ts +0 -128
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -173
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class ApplicationAutoScalingClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,19 +110,19 @@ class ApplicationAutoScalingClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class ApplicationAutoScalingServiceException extends smithyClient.ServiceException {
113
+ let ApplicationAutoScalingServiceException$1 = class ApplicationAutoScalingServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, ApplicationAutoScalingServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
120
  const AdjustmentType = {
121
121
  ChangeInCapacity: "ChangeInCapacity",
122
122
  ExactCapacity: "ExactCapacity",
123
123
  PercentChangeInCapacity: "PercentChangeInCapacity",
124
124
  };
125
- class ConcurrentUpdateException extends ApplicationAutoScalingServiceException {
125
+ let ConcurrentUpdateException$1 = class ConcurrentUpdateException extends ApplicationAutoScalingServiceException$1 {
126
126
  name = "ConcurrentUpdateException";
127
127
  $fault = "server";
128
128
  Message;
@@ -135,7 +135,7 @@ class ConcurrentUpdateException extends ApplicationAutoScalingServiceException {
135
135
  Object.setPrototypeOf(this, ConcurrentUpdateException.prototype);
136
136
  this.Message = opts.Message;
137
137
  }
138
- }
138
+ };
139
139
  const ScalableDimension = {
140
140
  AppstreamFleetDesiredCapacity: "appstream:fleet:DesiredCapacity",
141
141
  CassandraTableReadCapacityUnits: "cassandra:table:ReadCapacityUnits",
@@ -179,7 +179,7 @@ const ServiceNamespace = {
179
179
  SAGEMAKER: "sagemaker",
180
180
  WORKSPACES: "workspaces",
181
181
  };
182
- class InternalServiceException extends ApplicationAutoScalingServiceException {
182
+ let InternalServiceException$1 = class InternalServiceException extends ApplicationAutoScalingServiceException$1 {
183
183
  name = "InternalServiceException";
184
184
  $fault = "server";
185
185
  Message;
@@ -192,8 +192,8 @@ class InternalServiceException extends ApplicationAutoScalingServiceException {
192
192
  Object.setPrototypeOf(this, InternalServiceException.prototype);
193
193
  this.Message = opts.Message;
194
194
  }
195
- }
196
- class ObjectNotFoundException extends ApplicationAutoScalingServiceException {
195
+ };
196
+ let ObjectNotFoundException$1 = class ObjectNotFoundException extends ApplicationAutoScalingServiceException$1 {
197
197
  name = "ObjectNotFoundException";
198
198
  $fault = "client";
199
199
  Message;
@@ -206,8 +206,8 @@ class ObjectNotFoundException extends ApplicationAutoScalingServiceException {
206
206
  Object.setPrototypeOf(this, ObjectNotFoundException.prototype);
207
207
  this.Message = opts.Message;
208
208
  }
209
- }
210
- class ValidationException extends ApplicationAutoScalingServiceException {
209
+ };
210
+ let ValidationException$1 = class ValidationException extends ApplicationAutoScalingServiceException$1 {
211
211
  name = "ValidationException";
212
212
  $fault = "client";
213
213
  Message;
@@ -220,8 +220,8 @@ class ValidationException extends ApplicationAutoScalingServiceException {
220
220
  Object.setPrototypeOf(this, ValidationException.prototype);
221
221
  this.Message = opts.Message;
222
222
  }
223
- }
224
- class InvalidNextTokenException extends ApplicationAutoScalingServiceException {
223
+ };
224
+ let InvalidNextTokenException$1 = class InvalidNextTokenException extends ApplicationAutoScalingServiceException$1 {
225
225
  name = "InvalidNextTokenException";
226
226
  $fault = "client";
227
227
  Message;
@@ -234,7 +234,7 @@ class InvalidNextTokenException extends ApplicationAutoScalingServiceException {
234
234
  Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
235
235
  this.Message = opts.Message;
236
236
  }
237
- }
237
+ };
238
238
  const ScalingActivityStatusCode = {
239
239
  Failed: "Failed",
240
240
  InProgress: "InProgress",
@@ -299,7 +299,7 @@ const MetricType = {
299
299
  SageMakerVariantProvisionedConcurrencyUtilization: "SageMakerVariantProvisionedConcurrencyUtilization",
300
300
  WorkSpacesAverageUserSessionsCapacityUtilization: "WorkSpacesAverageUserSessionsCapacityUtilization",
301
301
  };
302
- class FailedResourceAccessException extends ApplicationAutoScalingServiceException {
302
+ let FailedResourceAccessException$1 = class FailedResourceAccessException extends ApplicationAutoScalingServiceException$1 {
303
303
  name = "FailedResourceAccessException";
304
304
  $fault = "client";
305
305
  Message;
@@ -312,8 +312,8 @@ class FailedResourceAccessException extends ApplicationAutoScalingServiceExcepti
312
312
  Object.setPrototypeOf(this, FailedResourceAccessException.prototype);
313
313
  this.Message = opts.Message;
314
314
  }
315
- }
316
- class ResourceNotFoundException extends ApplicationAutoScalingServiceException {
315
+ };
316
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends ApplicationAutoScalingServiceException$1 {
317
317
  name = "ResourceNotFoundException";
318
318
  $fault = "client";
319
319
  Message;
@@ -328,8 +328,8 @@ class ResourceNotFoundException extends ApplicationAutoScalingServiceException {
328
328
  this.Message = opts.Message;
329
329
  this.ResourceName = opts.ResourceName;
330
330
  }
331
- }
332
- class LimitExceededException extends ApplicationAutoScalingServiceException {
331
+ };
332
+ let LimitExceededException$1 = class LimitExceededException extends ApplicationAutoScalingServiceException$1 {
333
333
  name = "LimitExceededException";
334
334
  $fault = "client";
335
335
  Message;
@@ -342,8 +342,8 @@ class LimitExceededException extends ApplicationAutoScalingServiceException {
342
342
  Object.setPrototypeOf(this, LimitExceededException.prototype);
343
343
  this.Message = opts.Message;
344
344
  }
345
- }
346
- class TooManyTagsException extends ApplicationAutoScalingServiceException {
345
+ };
346
+ let TooManyTagsException$1 = class TooManyTagsException extends ApplicationAutoScalingServiceException$1 {
347
347
  name = "TooManyTagsException";
348
348
  $fault = "client";
349
349
  Message;
@@ -358,758 +358,785 @@ class TooManyTagsException extends ApplicationAutoScalingServiceException {
358
358
  this.Message = opts.Message;
359
359
  this.ResourceName = opts.ResourceName;
360
360
  }
361
- }
362
-
363
- const se_DeleteScalingPolicyCommand = async (input, context) => {
364
- const headers = sharedHeaders("DeleteScalingPolicy");
365
- let body;
366
- body = JSON.stringify(smithyClient._json(input));
367
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
368
- };
369
- const se_DeleteScheduledActionCommand = async (input, context) => {
370
- const headers = sharedHeaders("DeleteScheduledAction");
371
- let body;
372
- body = JSON.stringify(smithyClient._json(input));
373
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
374
- };
375
- const se_DeregisterScalableTargetCommand = async (input, context) => {
376
- const headers = sharedHeaders("DeregisterScalableTarget");
377
- let body;
378
- body = JSON.stringify(smithyClient._json(input));
379
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
380
- };
381
- const se_DescribeScalableTargetsCommand = async (input, context) => {
382
- const headers = sharedHeaders("DescribeScalableTargets");
383
- let body;
384
- body = JSON.stringify(smithyClient._json(input));
385
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
386
- };
387
- const se_DescribeScalingActivitiesCommand = async (input, context) => {
388
- const headers = sharedHeaders("DescribeScalingActivities");
389
- let body;
390
- body = JSON.stringify(smithyClient._json(input));
391
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
392
- };
393
- const se_DescribeScalingPoliciesCommand = async (input, context) => {
394
- const headers = sharedHeaders("DescribeScalingPolicies");
395
- let body;
396
- body = JSON.stringify(smithyClient._json(input));
397
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
398
- };
399
- const se_DescribeScheduledActionsCommand = async (input, context) => {
400
- const headers = sharedHeaders("DescribeScheduledActions");
401
- let body;
402
- body = JSON.stringify(smithyClient._json(input));
403
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
404
- };
405
- const se_GetPredictiveScalingForecastCommand = async (input, context) => {
406
- const headers = sharedHeaders("GetPredictiveScalingForecast");
407
- let body;
408
- body = JSON.stringify(se_GetPredictiveScalingForecastRequest(input));
409
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
410
- };
411
- const se_ListTagsForResourceCommand = async (input, context) => {
412
- const headers = sharedHeaders("ListTagsForResource");
413
- let body;
414
- body = JSON.stringify(smithyClient._json(input));
415
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
416
- };
417
- const se_PutScalingPolicyCommand = async (input, context) => {
418
- const headers = sharedHeaders("PutScalingPolicy");
419
- let body;
420
- body = JSON.stringify(se_PutScalingPolicyRequest(input));
421
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
422
- };
423
- const se_PutScheduledActionCommand = async (input, context) => {
424
- const headers = sharedHeaders("PutScheduledAction");
425
- let body;
426
- body = JSON.stringify(se_PutScheduledActionRequest(input));
427
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
- };
429
- const se_RegisterScalableTargetCommand = async (input, context) => {
430
- const headers = sharedHeaders("RegisterScalableTarget");
431
- let body;
432
- body = JSON.stringify(smithyClient._json(input));
433
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
434
- };
435
- const se_TagResourceCommand = async (input, context) => {
436
- const headers = sharedHeaders("TagResource");
437
- let body;
438
- body = JSON.stringify(smithyClient._json(input));
439
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
440
- };
441
- const se_UntagResourceCommand = async (input, context) => {
442
- const headers = sharedHeaders("UntagResource");
443
- let body;
444
- body = JSON.stringify(smithyClient._json(input));
445
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
446
- };
447
- const de_DeleteScalingPolicyCommand = async (output, context) => {
448
- if (output.statusCode >= 300) {
449
- return de_CommandError(output, context);
450
- }
451
- const data = await core$1.parseJsonBody(output.body, context);
452
- let contents = {};
453
- contents = smithyClient._json(data);
454
- const response = {
455
- $metadata: deserializeMetadata(output),
456
- ...contents,
457
- };
458
- return response;
459
- };
460
- const de_DeleteScheduledActionCommand = async (output, context) => {
461
- if (output.statusCode >= 300) {
462
- return de_CommandError(output, context);
463
- }
464
- const data = await core$1.parseJsonBody(output.body, context);
465
- let contents = {};
466
- contents = smithyClient._json(data);
467
- const response = {
468
- $metadata: deserializeMetadata(output),
469
- ...contents,
470
- };
471
- return response;
472
- };
473
- const de_DeregisterScalableTargetCommand = async (output, context) => {
474
- if (output.statusCode >= 300) {
475
- return de_CommandError(output, context);
476
- }
477
- const data = await core$1.parseJsonBody(output.body, context);
478
- let contents = {};
479
- contents = smithyClient._json(data);
480
- const response = {
481
- $metadata: deserializeMetadata(output),
482
- ...contents,
483
- };
484
- return response;
485
- };
486
- const de_DescribeScalableTargetsCommand = async (output, context) => {
487
- if (output.statusCode >= 300) {
488
- return de_CommandError(output, context);
489
- }
490
- const data = await core$1.parseJsonBody(output.body, context);
491
- let contents = {};
492
- contents = de_DescribeScalableTargetsResponse(data);
493
- const response = {
494
- $metadata: deserializeMetadata(output),
495
- ...contents,
496
- };
497
- return response;
498
- };
499
- const de_DescribeScalingActivitiesCommand = async (output, context) => {
500
- if (output.statusCode >= 300) {
501
- return de_CommandError(output, context);
502
- }
503
- const data = await core$1.parseJsonBody(output.body, context);
504
- let contents = {};
505
- contents = de_DescribeScalingActivitiesResponse(data);
506
- const response = {
507
- $metadata: deserializeMetadata(output),
508
- ...contents,
509
- };
510
- return response;
511
- };
512
- const de_DescribeScalingPoliciesCommand = async (output, context) => {
513
- if (output.statusCode >= 300) {
514
- return de_CommandError(output, context);
515
- }
516
- const data = await core$1.parseJsonBody(output.body, context);
517
- let contents = {};
518
- contents = de_DescribeScalingPoliciesResponse(data);
519
- const response = {
520
- $metadata: deserializeMetadata(output),
521
- ...contents,
522
- };
523
- return response;
524
- };
525
- const de_DescribeScheduledActionsCommand = async (output, context) => {
526
- if (output.statusCode >= 300) {
527
- return de_CommandError(output, context);
528
- }
529
- const data = await core$1.parseJsonBody(output.body, context);
530
- let contents = {};
531
- contents = de_DescribeScheduledActionsResponse(data);
532
- const response = {
533
- $metadata: deserializeMetadata(output),
534
- ...contents,
535
- };
536
- return response;
537
- };
538
- const de_GetPredictiveScalingForecastCommand = async (output, context) => {
539
- if (output.statusCode >= 300) {
540
- return de_CommandError(output, context);
541
- }
542
- const data = await core$1.parseJsonBody(output.body, context);
543
- let contents = {};
544
- contents = de_GetPredictiveScalingForecastResponse(data);
545
- const response = {
546
- $metadata: deserializeMetadata(output),
547
- ...contents,
548
- };
549
- return response;
550
- };
551
- const de_ListTagsForResourceCommand = async (output, context) => {
552
- if (output.statusCode >= 300) {
553
- return de_CommandError(output, context);
554
- }
555
- const data = await core$1.parseJsonBody(output.body, context);
556
- let contents = {};
557
- contents = smithyClient._json(data);
558
- const response = {
559
- $metadata: deserializeMetadata(output),
560
- ...contents,
561
- };
562
- return response;
563
- };
564
- const de_PutScalingPolicyCommand = async (output, context) => {
565
- if (output.statusCode >= 300) {
566
- return de_CommandError(output, context);
567
- }
568
- const data = await core$1.parseJsonBody(output.body, context);
569
- let contents = {};
570
- contents = smithyClient._json(data);
571
- const response = {
572
- $metadata: deserializeMetadata(output),
573
- ...contents,
574
- };
575
- return response;
576
- };
577
- const de_PutScheduledActionCommand = async (output, context) => {
578
- if (output.statusCode >= 300) {
579
- return de_CommandError(output, context);
580
- }
581
- const data = await core$1.parseJsonBody(output.body, context);
582
- let contents = {};
583
- contents = smithyClient._json(data);
584
- const response = {
585
- $metadata: deserializeMetadata(output),
586
- ...contents,
587
- };
588
- return response;
589
- };
590
- const de_RegisterScalableTargetCommand = async (output, context) => {
591
- if (output.statusCode >= 300) {
592
- return de_CommandError(output, context);
593
- }
594
- const data = await core$1.parseJsonBody(output.body, context);
595
- let contents = {};
596
- contents = smithyClient._json(data);
597
- const response = {
598
- $metadata: deserializeMetadata(output),
599
- ...contents,
600
- };
601
- return response;
602
- };
603
- const de_TagResourceCommand = async (output, context) => {
604
- if (output.statusCode >= 300) {
605
- return de_CommandError(output, context);
606
- }
607
- const data = await core$1.parseJsonBody(output.body, context);
608
- let contents = {};
609
- contents = smithyClient._json(data);
610
- const response = {
611
- $metadata: deserializeMetadata(output),
612
- ...contents,
613
- };
614
- return response;
615
- };
616
- const de_UntagResourceCommand = async (output, context) => {
617
- if (output.statusCode >= 300) {
618
- return de_CommandError(output, context);
619
- }
620
- const data = await core$1.parseJsonBody(output.body, context);
621
- let contents = {};
622
- contents = smithyClient._json(data);
623
- const response = {
624
- $metadata: deserializeMetadata(output),
625
- ...contents,
626
- };
627
- return response;
628
- };
629
- const de_CommandError = async (output, context) => {
630
- const parsedOutput = {
631
- ...output,
632
- body: await core$1.parseJsonErrorBody(output.body, context),
633
- };
634
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
635
- switch (errorCode) {
636
- case "ConcurrentUpdateException":
637
- case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
638
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput);
639
- case "InternalServiceException":
640
- case "com.amazonaws.applicationautoscaling#InternalServiceException":
641
- throw await de_InternalServiceExceptionRes(parsedOutput);
642
- case "ObjectNotFoundException":
643
- case "com.amazonaws.applicationautoscaling#ObjectNotFoundException":
644
- throw await de_ObjectNotFoundExceptionRes(parsedOutput);
645
- case "ValidationException":
646
- case "com.amazonaws.applicationautoscaling#ValidationException":
647
- throw await de_ValidationExceptionRes(parsedOutput);
648
- case "InvalidNextTokenException":
649
- case "com.amazonaws.applicationautoscaling#InvalidNextTokenException":
650
- throw await de_InvalidNextTokenExceptionRes(parsedOutput);
651
- case "FailedResourceAccessException":
652
- case "com.amazonaws.applicationautoscaling#FailedResourceAccessException":
653
- throw await de_FailedResourceAccessExceptionRes(parsedOutput);
654
- case "ResourceNotFoundException":
655
- case "com.amazonaws.applicationautoscaling#ResourceNotFoundException":
656
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
657
- case "LimitExceededException":
658
- case "com.amazonaws.applicationautoscaling#LimitExceededException":
659
- throw await de_LimitExceededExceptionRes(parsedOutput);
660
- case "TooManyTagsException":
661
- case "com.amazonaws.applicationautoscaling#TooManyTagsException":
662
- throw await de_TooManyTagsExceptionRes(parsedOutput);
663
- default:
664
- const parsedBody = parsedOutput.body;
665
- return throwDefaultError({
666
- output,
667
- parsedBody,
668
- errorCode,
669
- });
670
- }
671
- };
672
- const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
673
- const body = parsedOutput.body;
674
- const deserialized = smithyClient._json(body);
675
- const exception = new ConcurrentUpdateException({
676
- $metadata: deserializeMetadata(parsedOutput),
677
- ...deserialized,
678
- });
679
- return smithyClient.decorateServiceException(exception, body);
680
- };
681
- const de_FailedResourceAccessExceptionRes = async (parsedOutput, context) => {
682
- const body = parsedOutput.body;
683
- const deserialized = smithyClient._json(body);
684
- const exception = new FailedResourceAccessException({
685
- $metadata: deserializeMetadata(parsedOutput),
686
- ...deserialized,
687
- });
688
- return smithyClient.decorateServiceException(exception, body);
689
- };
690
- const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
691
- const body = parsedOutput.body;
692
- const deserialized = smithyClient._json(body);
693
- const exception = new InternalServiceException({
694
- $metadata: deserializeMetadata(parsedOutput),
695
- ...deserialized,
696
- });
697
- return smithyClient.decorateServiceException(exception, body);
698
- };
699
- const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
700
- const body = parsedOutput.body;
701
- const deserialized = smithyClient._json(body);
702
- const exception = new InvalidNextTokenException({
703
- $metadata: deserializeMetadata(parsedOutput),
704
- ...deserialized,
705
- });
706
- return smithyClient.decorateServiceException(exception, body);
707
- };
708
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
709
- const body = parsedOutput.body;
710
- const deserialized = smithyClient._json(body);
711
- const exception = new LimitExceededException({
712
- $metadata: deserializeMetadata(parsedOutput),
713
- ...deserialized,
714
- });
715
- return smithyClient.decorateServiceException(exception, body);
716
- };
717
- const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
718
- const body = parsedOutput.body;
719
- const deserialized = smithyClient._json(body);
720
- const exception = new ObjectNotFoundException({
721
- $metadata: deserializeMetadata(parsedOutput),
722
- ...deserialized,
723
- });
724
- return smithyClient.decorateServiceException(exception, body);
725
- };
726
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
727
- const body = parsedOutput.body;
728
- const deserialized = smithyClient._json(body);
729
- const exception = new ResourceNotFoundException({
730
- $metadata: deserializeMetadata(parsedOutput),
731
- ...deserialized,
732
- });
733
- return smithyClient.decorateServiceException(exception, body);
734
- };
735
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
736
- const body = parsedOutput.body;
737
- const deserialized = smithyClient._json(body);
738
- const exception = new TooManyTagsException({
739
- $metadata: deserializeMetadata(parsedOutput),
740
- ...deserialized,
741
- });
742
- return smithyClient.decorateServiceException(exception, body);
743
- };
744
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
745
- const body = parsedOutput.body;
746
- const deserialized = smithyClient._json(body);
747
- const exception = new ValidationException({
748
- $metadata: deserializeMetadata(parsedOutput),
749
- ...deserialized,
750
- });
751
- return smithyClient.decorateServiceException(exception, body);
752
- };
753
- const se_GetPredictiveScalingForecastRequest = (input, context) => {
754
- return smithyClient.take(input, {
755
- EndTime: (_) => _.getTime() / 1_000,
756
- PolicyName: [],
757
- ResourceId: [],
758
- ScalableDimension: [],
759
- ServiceNamespace: [],
760
- StartTime: (_) => _.getTime() / 1_000,
761
- });
762
- };
763
- const se_PredictiveScalingMetricSpecification = (input, context) => {
764
- return smithyClient.take(input, {
765
- CustomizedCapacityMetricSpecification: smithyClient._json,
766
- CustomizedLoadMetricSpecification: smithyClient._json,
767
- CustomizedScalingMetricSpecification: smithyClient._json,
768
- PredefinedLoadMetricSpecification: smithyClient._json,
769
- PredefinedMetricPairSpecification: smithyClient._json,
770
- PredefinedScalingMetricSpecification: smithyClient._json,
771
- TargetValue: smithyClient.serializeFloat,
772
- });
773
- };
774
- const se_PredictiveScalingMetricSpecifications = (input, context) => {
775
- return input
776
- .filter((e) => e != null)
777
- .map((entry) => {
778
- return se_PredictiveScalingMetricSpecification(entry);
779
- });
780
- };
781
- const se_PredictiveScalingPolicyConfiguration = (input, context) => {
782
- return smithyClient.take(input, {
783
- MaxCapacityBreachBehavior: [],
784
- MaxCapacityBuffer: [],
785
- MetricSpecifications: (_) => se_PredictiveScalingMetricSpecifications(_),
786
- Mode: [],
787
- SchedulingBufferTime: [],
788
- });
789
- };
790
- const se_PutScalingPolicyRequest = (input, context) => {
791
- return smithyClient.take(input, {
792
- PolicyName: [],
793
- PolicyType: [],
794
- PredictiveScalingPolicyConfiguration: (_) => se_PredictiveScalingPolicyConfiguration(_),
795
- ResourceId: [],
796
- ScalableDimension: [],
797
- ServiceNamespace: [],
798
- StepScalingPolicyConfiguration: (_) => se_StepScalingPolicyConfiguration(_),
799
- TargetTrackingScalingPolicyConfiguration: (_) => se_TargetTrackingScalingPolicyConfiguration(_),
800
- });
801
- };
802
- const se_PutScheduledActionRequest = (input, context) => {
803
- return smithyClient.take(input, {
804
- EndTime: (_) => _.getTime() / 1_000,
805
- ResourceId: [],
806
- ScalableDimension: [],
807
- ScalableTargetAction: smithyClient._json,
808
- Schedule: [],
809
- ScheduledActionName: [],
810
- ServiceNamespace: [],
811
- StartTime: (_) => _.getTime() / 1_000,
812
- Timezone: [],
813
- });
814
- };
815
- const se_StepAdjustment = (input, context) => {
816
- return smithyClient.take(input, {
817
- MetricIntervalLowerBound: smithyClient.serializeFloat,
818
- MetricIntervalUpperBound: smithyClient.serializeFloat,
819
- ScalingAdjustment: [],
820
- });
821
- };
822
- const se_StepAdjustments = (input, context) => {
823
- return input
824
- .filter((e) => e != null)
825
- .map((entry) => {
826
- return se_StepAdjustment(entry);
827
- });
828
- };
829
- const se_StepScalingPolicyConfiguration = (input, context) => {
830
- return smithyClient.take(input, {
831
- AdjustmentType: [],
832
- Cooldown: [],
833
- MetricAggregationType: [],
834
- MinAdjustmentMagnitude: [],
835
- StepAdjustments: (_) => se_StepAdjustments(_),
836
- });
837
- };
838
- const se_TargetTrackingScalingPolicyConfiguration = (input, context) => {
839
- return smithyClient.take(input, {
840
- CustomizedMetricSpecification: smithyClient._json,
841
- DisableScaleIn: [],
842
- PredefinedMetricSpecification: smithyClient._json,
843
- ScaleInCooldown: [],
844
- ScaleOutCooldown: [],
845
- TargetValue: smithyClient.serializeFloat,
846
- });
847
- };
848
- const de_CapacityForecast = (output, context) => {
849
- return smithyClient.take(output, {
850
- Timestamps: (_) => de_PredictiveScalingForecastTimestamps(_),
851
- Values: (_) => de_PredictiveScalingForecastValues(_),
852
- });
853
- };
854
- const de_DescribeScalableTargetsResponse = (output, context) => {
855
- return smithyClient.take(output, {
856
- NextToken: smithyClient.expectString,
857
- ScalableTargets: (_) => de_ScalableTargets(_),
858
- });
859
- };
860
- const de_DescribeScalingActivitiesResponse = (output, context) => {
861
- return smithyClient.take(output, {
862
- NextToken: smithyClient.expectString,
863
- ScalingActivities: (_) => de_ScalingActivities(_),
864
- });
865
- };
866
- const de_DescribeScalingPoliciesResponse = (output, context) => {
867
- return smithyClient.take(output, {
868
- NextToken: smithyClient.expectString,
869
- ScalingPolicies: (_) => de_ScalingPolicies(_),
870
- });
871
- };
872
- const de_DescribeScheduledActionsResponse = (output, context) => {
873
- return smithyClient.take(output, {
874
- NextToken: smithyClient.expectString,
875
- ScheduledActions: (_) => de_ScheduledActions(_),
876
- });
877
- };
878
- const de_GetPredictiveScalingForecastResponse = (output, context) => {
879
- return smithyClient.take(output, {
880
- CapacityForecast: (_) => de_CapacityForecast(_),
881
- LoadForecast: (_) => de_LoadForecasts(_),
882
- UpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
883
- });
884
- };
885
- const de_LoadForecast = (output, context) => {
886
- return smithyClient.take(output, {
887
- MetricSpecification: (_) => de_PredictiveScalingMetricSpecification(_),
888
- Timestamps: (_) => de_PredictiveScalingForecastTimestamps(_),
889
- Values: (_) => de_PredictiveScalingForecastValues(_),
890
- });
891
- };
892
- const de_LoadForecasts = (output, context) => {
893
- const retVal = (output || [])
894
- .filter((e) => e != null)
895
- .map((entry) => {
896
- return de_LoadForecast(entry);
897
- });
898
- return retVal;
899
- };
900
- const de_PredictiveScalingForecastTimestamps = (output, context) => {
901
- const retVal = (output || [])
902
- .filter((e) => e != null)
903
- .map((entry) => {
904
- return smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(entry)));
905
- });
906
- return retVal;
907
- };
908
- const de_PredictiveScalingForecastValues = (output, context) => {
909
- const retVal = (output || [])
910
- .filter((e) => e != null)
911
- .map((entry) => {
912
- return smithyClient.limitedParseDouble(entry);
913
- });
914
- return retVal;
915
- };
916
- const de_PredictiveScalingMetricSpecification = (output, context) => {
917
- return smithyClient.take(output, {
918
- CustomizedCapacityMetricSpecification: smithyClient._json,
919
- CustomizedLoadMetricSpecification: smithyClient._json,
920
- CustomizedScalingMetricSpecification: smithyClient._json,
921
- PredefinedLoadMetricSpecification: smithyClient._json,
922
- PredefinedMetricPairSpecification: smithyClient._json,
923
- PredefinedScalingMetricSpecification: smithyClient._json,
924
- TargetValue: smithyClient.limitedParseDouble,
925
- });
926
- };
927
- const de_PredictiveScalingMetricSpecifications = (output, context) => {
928
- const retVal = (output || [])
929
- .filter((e) => e != null)
930
- .map((entry) => {
931
- return de_PredictiveScalingMetricSpecification(entry);
932
- });
933
- return retVal;
934
- };
935
- const de_PredictiveScalingPolicyConfiguration = (output, context) => {
936
- return smithyClient.take(output, {
937
- MaxCapacityBreachBehavior: smithyClient.expectString,
938
- MaxCapacityBuffer: smithyClient.expectInt32,
939
- MetricSpecifications: (_) => de_PredictiveScalingMetricSpecifications(_),
940
- Mode: smithyClient.expectString,
941
- SchedulingBufferTime: smithyClient.expectInt32,
942
- });
943
- };
944
- const de_ScalableTarget = (output, context) => {
945
- return smithyClient.take(output, {
946
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
947
- MaxCapacity: smithyClient.expectInt32,
948
- MinCapacity: smithyClient.expectInt32,
949
- PredictedCapacity: smithyClient.expectInt32,
950
- ResourceId: smithyClient.expectString,
951
- RoleARN: smithyClient.expectString,
952
- ScalableDimension: smithyClient.expectString,
953
- ScalableTargetARN: smithyClient.expectString,
954
- ServiceNamespace: smithyClient.expectString,
955
- SuspendedState: smithyClient._json,
956
- });
957
- };
958
- const de_ScalableTargets = (output, context) => {
959
- const retVal = (output || [])
960
- .filter((e) => e != null)
961
- .map((entry) => {
962
- return de_ScalableTarget(entry);
963
- });
964
- return retVal;
965
- };
966
- const de_ScalingActivities = (output, context) => {
967
- const retVal = (output || [])
968
- .filter((e) => e != null)
969
- .map((entry) => {
970
- return de_ScalingActivity(entry);
971
- });
972
- return retVal;
973
- };
974
- const de_ScalingActivity = (output, context) => {
975
- return smithyClient.take(output, {
976
- ActivityId: smithyClient.expectString,
977
- Cause: smithyClient.expectString,
978
- Description: smithyClient.expectString,
979
- Details: smithyClient.expectString,
980
- EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
981
- NotScaledReasons: smithyClient._json,
982
- ResourceId: smithyClient.expectString,
983
- ScalableDimension: smithyClient.expectString,
984
- ServiceNamespace: smithyClient.expectString,
985
- StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
986
- StatusCode: smithyClient.expectString,
987
- StatusMessage: smithyClient.expectString,
988
- });
989
- };
990
- const de_ScalingPolicies = (output, context) => {
991
- const retVal = (output || [])
992
- .filter((e) => e != null)
993
- .map((entry) => {
994
- return de_ScalingPolicy(entry);
995
- });
996
- return retVal;
997
- };
998
- const de_ScalingPolicy = (output, context) => {
999
- return smithyClient.take(output, {
1000
- Alarms: smithyClient._json,
1001
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1002
- PolicyARN: smithyClient.expectString,
1003
- PolicyName: smithyClient.expectString,
1004
- PolicyType: smithyClient.expectString,
1005
- PredictiveScalingPolicyConfiguration: (_) => de_PredictiveScalingPolicyConfiguration(_),
1006
- ResourceId: smithyClient.expectString,
1007
- ScalableDimension: smithyClient.expectString,
1008
- ServiceNamespace: smithyClient.expectString,
1009
- StepScalingPolicyConfiguration: (_) => de_StepScalingPolicyConfiguration(_),
1010
- TargetTrackingScalingPolicyConfiguration: (_) => de_TargetTrackingScalingPolicyConfiguration(_),
1011
- });
1012
- };
1013
- const de_ScheduledAction = (output, context) => {
1014
- return smithyClient.take(output, {
1015
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1016
- EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1017
- ResourceId: smithyClient.expectString,
1018
- ScalableDimension: smithyClient.expectString,
1019
- ScalableTargetAction: smithyClient._json,
1020
- Schedule: smithyClient.expectString,
1021
- ScheduledActionARN: smithyClient.expectString,
1022
- ScheduledActionName: smithyClient.expectString,
1023
- ServiceNamespace: smithyClient.expectString,
1024
- StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1025
- Timezone: smithyClient.expectString,
1026
- });
1027
- };
1028
- const de_ScheduledActions = (output, context) => {
1029
- const retVal = (output || [])
1030
- .filter((e) => e != null)
1031
- .map((entry) => {
1032
- return de_ScheduledAction(entry);
1033
- });
1034
- return retVal;
1035
- };
1036
- const de_StepAdjustment = (output, context) => {
1037
- return smithyClient.take(output, {
1038
- MetricIntervalLowerBound: smithyClient.limitedParseDouble,
1039
- MetricIntervalUpperBound: smithyClient.limitedParseDouble,
1040
- ScalingAdjustment: smithyClient.expectInt32,
1041
- });
1042
- };
1043
- const de_StepAdjustments = (output, context) => {
1044
- const retVal = (output || [])
1045
- .filter((e) => e != null)
1046
- .map((entry) => {
1047
- return de_StepAdjustment(entry);
1048
- });
1049
- return retVal;
1050
- };
1051
- const de_StepScalingPolicyConfiguration = (output, context) => {
1052
- return smithyClient.take(output, {
1053
- AdjustmentType: smithyClient.expectString,
1054
- Cooldown: smithyClient.expectInt32,
1055
- MetricAggregationType: smithyClient.expectString,
1056
- MinAdjustmentMagnitude: smithyClient.expectInt32,
1057
- StepAdjustments: (_) => de_StepAdjustments(_),
1058
- });
1059
- };
1060
- const de_TargetTrackingScalingPolicyConfiguration = (output, context) => {
1061
- return smithyClient.take(output, {
1062
- CustomizedMetricSpecification: smithyClient._json,
1063
- DisableScaleIn: smithyClient.expectBoolean,
1064
- PredefinedMetricSpecification: smithyClient._json,
1065
- ScaleInCooldown: smithyClient.expectInt32,
1066
- ScaleOutCooldown: smithyClient.expectInt32,
1067
- TargetValue: smithyClient.limitedParseDouble,
1068
- });
1069
- };
1070
- const deserializeMetadata = (output) => ({
1071
- httpStatusCode: output.statusCode,
1072
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1073
- extendedRequestId: output.headers["x-amz-id-2"],
1074
- cfId: output.headers["x-amz-cf-id"],
1075
- });
1076
- const throwDefaultError = smithyClient.withBaseException(ApplicationAutoScalingServiceException);
1077
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1078
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1079
- const contents = {
1080
- protocol,
1081
- hostname,
1082
- port,
1083
- method: "POST",
1084
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1085
- headers,
1086
- };
1087
- if (body !== undefined) {
1088
- contents.body = body;
1089
- }
1090
- return new protocolHttp.HttpRequest(contents);
1091
361
  };
1092
- function sharedHeaders(operation) {
1093
- return {
1094
- "content-type": "application/x-amz-json-1.1",
1095
- "x-amz-target": `AnyScaleFrontendService.${operation}`,
1096
- };
1097
- }
362
+
363
+ const _A = "Alarm";
364
+ const _AARN = "AlarmARN";
365
+ const _AI = "ActivityId";
366
+ const _AN = "AlarmName";
367
+ const _AT = "AdjustmentType";
368
+ const _Al = "Alarms";
369
+ const _C = "Code";
370
+ const _CC = "CurrentCapacity";
371
+ const _CCMS = "CustomizedCapacityMetricSpecification";
372
+ const _CF = "CapacityForecast";
373
+ const _CLMS = "CustomizedLoadMetricSpecification";
374
+ const _CMS = "CustomizedMetricSpecification";
375
+ const _CSMS = "CustomizedScalingMetricSpecification";
376
+ const _CT = "CreationTime";
377
+ const _CUE = "ConcurrentUpdateException";
378
+ const _Ca = "Cause";
379
+ const _Co = "Cooldown";
380
+ const _D = "Dimensions";
381
+ const _DSA = "DeleteScheduledAction";
382
+ const _DSAR = "DeleteScheduledActionRequest";
383
+ const _DSARe = "DeleteScheduledActionResponse";
384
+ const _DSARes = "DescribeScalingActivitiesRequest";
385
+ const _DSAResc = "DescribeScalingActivitiesResponse";
386
+ const _DSARescr = "DescribeScheduledActionsRequest";
387
+ const _DSARescri = "DescribeScheduledActionsResponse";
388
+ const _DSAe = "DescribeScalingActivities";
389
+ const _DSAes = "DescribeScheduledActions";
390
+ const _DSI = "DisableScaleIn";
391
+ const _DSIS = "DynamicScalingInSuspended";
392
+ const _DSOS = "DynamicScalingOutSuspended";
393
+ const _DSP = "DeleteScalingPolicy";
394
+ const _DSPR = "DeleteScalingPolicyRequest";
395
+ const _DSPRe = "DeleteScalingPolicyResponse";
396
+ const _DSPRes = "DescribeScalingPoliciesRequest";
397
+ const _DSPResc = "DescribeScalingPoliciesResponse";
398
+ const _DSPe = "DescribeScalingPolicies";
399
+ const _DST = "DeregisterScalableTarget";
400
+ const _DSTR = "DeregisterScalableTargetRequest";
401
+ const _DSTRe = "DeregisterScalableTargetResponse";
402
+ const _DSTRes = "DescribeScalableTargetsRequest";
403
+ const _DSTResc = "DescribeScalableTargetsResponse";
404
+ const _DSTe = "DescribeScalableTargets";
405
+ const _De = "Description";
406
+ const _Det = "Details";
407
+ const _E = "Expression";
408
+ const _ET = "EndTime";
409
+ const _FRAE = "FailedResourceAccessException";
410
+ const _GPSF = "GetPredictiveScalingForecast";
411
+ const _GPSFR = "GetPredictiveScalingForecastRequest";
412
+ const _GPSFRe = "GetPredictiveScalingForecastResponse";
413
+ const _I = "Id";
414
+ const _INSA = "IncludeNotScaledActivities";
415
+ const _INTE = "InvalidNextTokenException";
416
+ const _ISE = "InternalServiceException";
417
+ const _L = "Label";
418
+ const _LEE = "LimitExceededException";
419
+ const _LF = "LoadForecast";
420
+ const _LFo = "LoadForecasts";
421
+ const _LTFR = "ListTagsForResource";
422
+ const _LTFRR = "ListTagsForResourceRequest";
423
+ const _LTFRRi = "ListTagsForResourceResponse";
424
+ const _M = "Message";
425
+ const _MAM = "MinAdjustmentMagnitude";
426
+ const _MAT = "MetricAggregationType";
427
+ const _MC = "MaxCapacity";
428
+ const _MCB = "MaxCapacityBuffer";
429
+ const _MCBB = "MaxCapacityBreachBehavior";
430
+ const _MCi = "MinCapacity";
431
+ const _MD = "MetricDimension";
432
+ const _MDQ = "MetricDataQueries";
433
+ const _MDe = "MetricDimensions";
434
+ const _MILB = "MetricIntervalLowerBound";
435
+ const _MIUB = "MetricIntervalUpperBound";
436
+ const _MN = "MetricName";
437
+ const _MR = "MaxResults";
438
+ const _MS = "MetricSpecification";
439
+ const _MSe = "MetricStat";
440
+ const _MSet = "MetricSpecifications";
441
+ const _Me = "Metrics";
442
+ const _Met = "Metric";
443
+ const _Mo = "Mode";
444
+ const _N = "Namespace";
445
+ const _NSR = "NotScaledReason";
446
+ const _NSRo = "NotScaledReasons";
447
+ const _NT = "NextToken";
448
+ const _Na = "Name";
449
+ const _ONFE = "ObjectNotFoundException";
450
+ const _PARN = "PolicyARN";
451
+ const _PC = "PredictedCapacity";
452
+ const _PLMS = "PredefinedLoadMetricSpecification";
453
+ const _PMPS = "PredefinedMetricPairSpecification";
454
+ const _PMS = "PredefinedMetricSpecification";
455
+ const _PMT = "PredefinedMetricType";
456
+ const _PN = "PolicyName";
457
+ const _PNo = "PolicyNames";
458
+ const _PSA = "PutScheduledAction";
459
+ const _PSAR = "PutScheduledActionRequest";
460
+ const _PSARu = "PutScheduledActionResponse";
461
+ const _PSCMS = "PredictiveScalingCustomizedMetricSpecification";
462
+ const _PSM = "PredictiveScalingMetric";
463
+ const _PSMD = "PredictiveScalingMetricDimension";
464
+ const _PSMDQ = "PredictiveScalingMetricDataQuery";
465
+ const _PSMDQr = "PredictiveScalingMetricDataQueries";
466
+ const _PSMDr = "PredictiveScalingMetricDimensions";
467
+ const _PSMS = "PredictiveScalingMetricSpecification";
468
+ const _PSMSr = "PredefinedScalingMetricSpecification";
469
+ const _PSMSre = "PredictiveScalingMetricStat";
470
+ const _PSMSred = "PredictiveScalingMetricSpecifications";
471
+ const _PSP = "PutScalingPolicy";
472
+ const _PSPC = "PredictiveScalingPolicyConfiguration";
473
+ const _PSPLMS = "PredictiveScalingPredefinedLoadMetricSpecification";
474
+ const _PSPMPS = "PredictiveScalingPredefinedMetricPairSpecification";
475
+ const _PSPR = "PutScalingPolicyRequest";
476
+ const _PSPRu = "PutScalingPolicyResponse";
477
+ const _PSPSMS = "PredictiveScalingPredefinedScalingMetricSpecification";
478
+ const _PT = "PolicyType";
479
+ const _RARN = "ResourceARN";
480
+ const _RARNo = "RoleARN";
481
+ const _RD = "ReturnData";
482
+ const _RI = "ResourceId";
483
+ const _RIe = "ResourceIds";
484
+ const _RL = "ResourceLabel";
485
+ const _RN = "ResourceName";
486
+ const _RNFE = "ResourceNotFoundException";
487
+ const _RST = "RegisterScalableTarget";
488
+ const _RSTR = "RegisterScalableTargetRequest";
489
+ const _RSTRe = "RegisterScalableTargetResponse";
490
+ const _S = "Statistic";
491
+ const _SA = "ScalingActivities";
492
+ const _SAARN = "ScheduledActionARN";
493
+ const _SAN = "ScheduledActionName";
494
+ const _SANc = "ScheduledActionNames";
495
+ const _SAc = "ScheduledActions";
496
+ const _SAca = "ScalingActivity";
497
+ const _SAcal = "ScalingAdjustment";
498
+ const _SAch = "ScheduledAction";
499
+ const _SAt = "StepAdjustment";
500
+ const _SAte = "StepAdjustments";
501
+ const _SBT = "SchedulingBufferTime";
502
+ const _SC = "StatusCode";
503
+ const _SD = "ScalableDimension";
504
+ const _SIC = "ScaleInCooldown";
505
+ const _SM = "StatusMessage";
506
+ const _SN = "ServiceNamespace";
507
+ const _SOC = "ScaleOutCooldown";
508
+ const _SP = "ScalingPolicies";
509
+ const _SPc = "ScalingPolicy";
510
+ const _SS = "SuspendedState";
511
+ const _SSPC = "StepScalingPolicyConfiguration";
512
+ const _SSS = "ScheduledScalingSuspended";
513
+ const _ST = "ScalableTargets";
514
+ const _STA = "ScalableTargetAction";
515
+ const _STARN = "ScalableTargetARN";
516
+ const _STc = "ScalableTarget";
517
+ const _STt = "StartTime";
518
+ const _Sc = "Schedule";
519
+ const _St = "Stat";
520
+ const _T = "Timestamps";
521
+ const _TK = "TagKeys";
522
+ const _TMTE = "TooManyTagsException";
523
+ const _TR = "TagResource";
524
+ const _TRR = "TagResourceRequest";
525
+ const _TRRa = "TagResourceResponse";
526
+ const _TTM = "TargetTrackingMetric";
527
+ const _TTMD = "TargetTrackingMetricDimension";
528
+ const _TTMDQ = "TargetTrackingMetricDataQuery";
529
+ const _TTMDQa = "TargetTrackingMetricDataQueries";
530
+ const _TTMDa = "TargetTrackingMetricDimensions";
531
+ const _TTMS = "TargetTrackingMetricStat";
532
+ const _TTSPC = "TargetTrackingScalingPolicyConfiguration";
533
+ const _TV = "TargetValue";
534
+ const _Ta = "Tags";
535
+ const _Ti = "Timezone";
536
+ const _U = "Unit";
537
+ const _UR = "UntagResource";
538
+ const _URR = "UntagResourceRequest";
539
+ const _URRn = "UntagResourceResponse";
540
+ const _UT = "UpdateTime";
541
+ const _V = "Values";
542
+ const _VE = "ValidationException";
543
+ const _Va = "Value";
544
+ const _aQE = "awsQueryError";
545
+ const _c = "client";
546
+ const _e = "error";
547
+ const _hE = "httpError";
548
+ const _s = "server";
549
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.applicationautoscaling";
550
+ const n0 = "com.amazonaws.applicationautoscaling";
551
+ var Alarm = [3, n0, _A, 0, [_AN, _AARN], [0, 0]];
552
+ var CapacityForecast = [3, n0, _CF, 0, [_T, _V], [64 | 4, 64 | 1]];
553
+ var ConcurrentUpdateException = [
554
+ -3,
555
+ n0,
556
+ _CUE,
557
+ {
558
+ [_e]: _s,
559
+ [_hE]: 500,
560
+ [_aQE]: [`ConcurrentUpdateException`, 500],
561
+ },
562
+ [_M],
563
+ [0],
564
+ ];
565
+ schema.TypeRegistry.for(n0).registerError(ConcurrentUpdateException, ConcurrentUpdateException$1);
566
+ var CustomizedMetricSpecification = [
567
+ 3,
568
+ n0,
569
+ _CMS,
570
+ 0,
571
+ [_MN, _N, _D, _S, _U, _Me],
572
+ [0, 0, () => MetricDimensions, 0, 0, () => TargetTrackingMetricDataQueries],
573
+ ];
574
+ var DeleteScalingPolicyRequest = [3, n0, _DSPR, 0, [_PN, _SN, _RI, _SD], [0, 0, 0, 0]];
575
+ var DeleteScalingPolicyResponse = [3, n0, _DSPRe, 0, [], []];
576
+ var DeleteScheduledActionRequest = [3, n0, _DSAR, 0, [_SN, _SAN, _RI, _SD], [0, 0, 0, 0]];
577
+ var DeleteScheduledActionResponse = [3, n0, _DSARe, 0, [], []];
578
+ var DeregisterScalableTargetRequest = [3, n0, _DSTR, 0, [_SN, _RI, _SD], [0, 0, 0]];
579
+ var DeregisterScalableTargetResponse = [3, n0, _DSTRe, 0, [], []];
580
+ var DescribeScalableTargetsRequest = [
581
+ 3,
582
+ n0,
583
+ _DSTRes,
584
+ 0,
585
+ [_SN, _RIe, _SD, _MR, _NT],
586
+ [0, 64 | 0, 0, 1, 0],
587
+ ];
588
+ var DescribeScalableTargetsResponse = [
589
+ 3,
590
+ n0,
591
+ _DSTResc,
592
+ 0,
593
+ [_ST, _NT],
594
+ [() => ScalableTargets, 0],
595
+ ];
596
+ var DescribeScalingActivitiesRequest = [
597
+ 3,
598
+ n0,
599
+ _DSARes,
600
+ 0,
601
+ [_SN, _RI, _SD, _MR, _NT, _INSA],
602
+ [0, 0, 0, 1, 0, 2],
603
+ ];
604
+ var DescribeScalingActivitiesResponse = [
605
+ 3,
606
+ n0,
607
+ _DSAResc,
608
+ 0,
609
+ [_SA, _NT],
610
+ [() => ScalingActivities, 0],
611
+ ];
612
+ var DescribeScalingPoliciesRequest = [
613
+ 3,
614
+ n0,
615
+ _DSPRes,
616
+ 0,
617
+ [_PNo, _SN, _RI, _SD, _MR, _NT],
618
+ [64 | 0, 0, 0, 0, 1, 0],
619
+ ];
620
+ var DescribeScalingPoliciesResponse = [
621
+ 3,
622
+ n0,
623
+ _DSPResc,
624
+ 0,
625
+ [_SP, _NT],
626
+ [() => ScalingPolicies, 0],
627
+ ];
628
+ var DescribeScheduledActionsRequest = [
629
+ 3,
630
+ n0,
631
+ _DSARescr,
632
+ 0,
633
+ [_SANc, _SN, _RI, _SD, _MR, _NT],
634
+ [64 | 0, 0, 0, 0, 1, 0],
635
+ ];
636
+ var DescribeScheduledActionsResponse = [
637
+ 3,
638
+ n0,
639
+ _DSARescri,
640
+ 0,
641
+ [_SAc, _NT],
642
+ [() => ScheduledActions, 0],
643
+ ];
644
+ var FailedResourceAccessException = [
645
+ -3,
646
+ n0,
647
+ _FRAE,
648
+ {
649
+ [_e]: _c,
650
+ [_hE]: 400,
651
+ [_aQE]: [`FailedResourceAccessException`, 400],
652
+ },
653
+ [_M],
654
+ [0],
655
+ ];
656
+ schema.TypeRegistry.for(n0).registerError(FailedResourceAccessException, FailedResourceAccessException$1);
657
+ var GetPredictiveScalingForecastRequest = [
658
+ 3,
659
+ n0,
660
+ _GPSFR,
661
+ 0,
662
+ [_SN, _RI, _SD, _PN, _STt, _ET],
663
+ [0, 0, 0, 0, 4, 4],
664
+ ];
665
+ var GetPredictiveScalingForecastResponse = [
666
+ 3,
667
+ n0,
668
+ _GPSFRe,
669
+ 0,
670
+ [_LF, _CF, _UT],
671
+ [() => LoadForecasts, () => CapacityForecast, 4],
672
+ ];
673
+ var InternalServiceException = [
674
+ -3,
675
+ n0,
676
+ _ISE,
677
+ {
678
+ [_e]: _s,
679
+ [_hE]: 500,
680
+ [_aQE]: [`InternalServiceException`, 500],
681
+ },
682
+ [_M],
683
+ [0],
684
+ ];
685
+ schema.TypeRegistry.for(n0).registerError(InternalServiceException, InternalServiceException$1);
686
+ var InvalidNextTokenException = [
687
+ -3,
688
+ n0,
689
+ _INTE,
690
+ {
691
+ [_e]: _c,
692
+ [_hE]: 400,
693
+ [_aQE]: [`InvalidNextTokenException`, 400],
694
+ },
695
+ [_M],
696
+ [0],
697
+ ];
698
+ schema.TypeRegistry.for(n0).registerError(InvalidNextTokenException, InvalidNextTokenException$1);
699
+ var LimitExceededException = [
700
+ -3,
701
+ n0,
702
+ _LEE,
703
+ {
704
+ [_e]: _c,
705
+ [_hE]: 400,
706
+ [_aQE]: [`LimitExceededException`, 400],
707
+ },
708
+ [_M],
709
+ [0],
710
+ ];
711
+ schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
712
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_RARN], [0]];
713
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_Ta], [128 | 0]];
714
+ var LoadForecast = [
715
+ 3,
716
+ n0,
717
+ _LF,
718
+ 0,
719
+ [_T, _V, _MS],
720
+ [64 | 4, 64 | 1, () => PredictiveScalingMetricSpecification],
721
+ ];
722
+ var MetricDimension = [3, n0, _MD, 0, [_Na, _Va], [0, 0]];
723
+ var NotScaledReason = [3, n0, _NSR, 0, [_C, _MC, _MCi, _CC], [0, 1, 1, 1]];
724
+ var ObjectNotFoundException = [
725
+ -3,
726
+ n0,
727
+ _ONFE,
728
+ {
729
+ [_e]: _c,
730
+ [_hE]: 400,
731
+ [_aQE]: [`ObjectNotFoundException`, 400],
732
+ },
733
+ [_M],
734
+ [0],
735
+ ];
736
+ schema.TypeRegistry.for(n0).registerError(ObjectNotFoundException, ObjectNotFoundException$1);
737
+ var PredefinedMetricSpecification = [3, n0, _PMS, 0, [_PMT, _RL], [0, 0]];
738
+ var PredictiveScalingCustomizedMetricSpecification = [
739
+ 3,
740
+ n0,
741
+ _PSCMS,
742
+ 0,
743
+ [_MDQ],
744
+ [() => PredictiveScalingMetricDataQueries],
745
+ ];
746
+ var PredictiveScalingMetric = [
747
+ 3,
748
+ n0,
749
+ _PSM,
750
+ 0,
751
+ [_D, _MN, _N],
752
+ [() => PredictiveScalingMetricDimensions, 0, 0],
753
+ ];
754
+ var PredictiveScalingMetricDataQuery = [
755
+ 3,
756
+ n0,
757
+ _PSMDQ,
758
+ 0,
759
+ [_I, _E, _MSe, _L, _RD],
760
+ [0, 0, () => PredictiveScalingMetricStat, 0, 2],
761
+ ];
762
+ var PredictiveScalingMetricDimension = [3, n0, _PSMD, 0, [_Na, _Va], [0, 0]];
763
+ var PredictiveScalingMetricSpecification = [
764
+ 3,
765
+ n0,
766
+ _PSMS,
767
+ 0,
768
+ [_TV, _PMPS, _PSMSr, _PLMS, _CSMS, _CLMS, _CCMS],
769
+ [
770
+ 1,
771
+ () => PredictiveScalingPredefinedMetricPairSpecification,
772
+ () => PredictiveScalingPredefinedScalingMetricSpecification,
773
+ () => PredictiveScalingPredefinedLoadMetricSpecification,
774
+ () => PredictiveScalingCustomizedMetricSpecification,
775
+ () => PredictiveScalingCustomizedMetricSpecification,
776
+ () => PredictiveScalingCustomizedMetricSpecification,
777
+ ],
778
+ ];
779
+ var PredictiveScalingMetricStat = [
780
+ 3,
781
+ n0,
782
+ _PSMSre,
783
+ 0,
784
+ [_Met, _St, _U],
785
+ [() => PredictiveScalingMetric, 0, 0],
786
+ ];
787
+ var PredictiveScalingPolicyConfiguration = [
788
+ 3,
789
+ n0,
790
+ _PSPC,
791
+ 0,
792
+ [_MSet, _Mo, _SBT, _MCBB, _MCB],
793
+ [() => PredictiveScalingMetricSpecifications, 0, 1, 0, 1],
794
+ ];
795
+ var PredictiveScalingPredefinedLoadMetricSpecification = [
796
+ 3,
797
+ n0,
798
+ _PSPLMS,
799
+ 0,
800
+ [_PMT, _RL],
801
+ [0, 0],
802
+ ];
803
+ var PredictiveScalingPredefinedMetricPairSpecification = [
804
+ 3,
805
+ n0,
806
+ _PSPMPS,
807
+ 0,
808
+ [_PMT, _RL],
809
+ [0, 0],
810
+ ];
811
+ var PredictiveScalingPredefinedScalingMetricSpecification = [
812
+ 3,
813
+ n0,
814
+ _PSPSMS,
815
+ 0,
816
+ [_PMT, _RL],
817
+ [0, 0],
818
+ ];
819
+ var PutScalingPolicyRequest = [
820
+ 3,
821
+ n0,
822
+ _PSPR,
823
+ 0,
824
+ [_PN, _SN, _RI, _SD, _PT, _SSPC, _TTSPC, _PSPC],
825
+ [
826
+ 0,
827
+ 0,
828
+ 0,
829
+ 0,
830
+ 0,
831
+ () => StepScalingPolicyConfiguration,
832
+ () => TargetTrackingScalingPolicyConfiguration,
833
+ () => PredictiveScalingPolicyConfiguration,
834
+ ],
835
+ ];
836
+ var PutScalingPolicyResponse = [3, n0, _PSPRu, 0, [_PARN, _Al], [0, () => Alarms]];
837
+ var PutScheduledActionRequest = [
838
+ 3,
839
+ n0,
840
+ _PSAR,
841
+ 0,
842
+ [_SN, _Sc, _Ti, _SAN, _RI, _SD, _STt, _ET, _STA],
843
+ [0, 0, 0, 0, 0, 0, 4, 4, () => ScalableTargetAction],
844
+ ];
845
+ var PutScheduledActionResponse = [3, n0, _PSARu, 0, [], []];
846
+ var RegisterScalableTargetRequest = [
847
+ 3,
848
+ n0,
849
+ _RSTR,
850
+ 0,
851
+ [_SN, _RI, _SD, _MCi, _MC, _RARNo, _SS, _Ta],
852
+ [0, 0, 0, 1, 1, 0, () => SuspendedState, 128 | 0],
853
+ ];
854
+ var RegisterScalableTargetResponse = [3, n0, _RSTRe, 0, [_STARN], [0]];
855
+ var ResourceNotFoundException = [
856
+ -3,
857
+ n0,
858
+ _RNFE,
859
+ {
860
+ [_e]: _c,
861
+ [_hE]: 404,
862
+ },
863
+ [_M, _RN],
864
+ [0, 0],
865
+ ];
866
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
867
+ var ScalableTarget = [
868
+ 3,
869
+ n0,
870
+ _STc,
871
+ 0,
872
+ [_SN, _RI, _SD, _MCi, _MC, _PC, _RARNo, _CT, _SS, _STARN],
873
+ [0, 0, 0, 1, 1, 1, 0, 4, () => SuspendedState, 0],
874
+ ];
875
+ var ScalableTargetAction = [3, n0, _STA, 0, [_MCi, _MC], [1, 1]];
876
+ var ScalingActivity = [
877
+ 3,
878
+ n0,
879
+ _SAca,
880
+ 0,
881
+ [_AI, _SN, _RI, _SD, _De, _Ca, _STt, _ET, _SC, _SM, _Det, _NSRo],
882
+ [0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, () => NotScaledReasons],
883
+ ];
884
+ var ScalingPolicy = [
885
+ 3,
886
+ n0,
887
+ _SPc,
888
+ 0,
889
+ [_PARN, _PN, _SN, _RI, _SD, _PT, _SSPC, _TTSPC, _PSPC, _Al, _CT],
890
+ [
891
+ 0,
892
+ 0,
893
+ 0,
894
+ 0,
895
+ 0,
896
+ 0,
897
+ () => StepScalingPolicyConfiguration,
898
+ () => TargetTrackingScalingPolicyConfiguration,
899
+ () => PredictiveScalingPolicyConfiguration,
900
+ () => Alarms,
901
+ 4,
902
+ ],
903
+ ];
904
+ var ScheduledAction = [
905
+ 3,
906
+ n0,
907
+ _SAch,
908
+ 0,
909
+ [_SAN, _SAARN, _SN, _Sc, _Ti, _RI, _SD, _STt, _ET, _STA, _CT],
910
+ [0, 0, 0, 0, 0, 0, 0, 4, 4, () => ScalableTargetAction, 4],
911
+ ];
912
+ var StepAdjustment = [3, n0, _SAt, 0, [_MILB, _MIUB, _SAcal], [1, 1, 1]];
913
+ var StepScalingPolicyConfiguration = [
914
+ 3,
915
+ n0,
916
+ _SSPC,
917
+ 0,
918
+ [_AT, _SAte, _MAM, _Co, _MAT],
919
+ [0, () => StepAdjustments, 1, 1, 0],
920
+ ];
921
+ var SuspendedState = [3, n0, _SS, 0, [_DSIS, _DSOS, _SSS], [2, 2, 2]];
922
+ var TagResourceRequest = [3, n0, _TRR, 0, [_RARN, _Ta], [0, 128 | 0]];
923
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
924
+ var TargetTrackingMetric = [
925
+ 3,
926
+ n0,
927
+ _TTM,
928
+ 0,
929
+ [_D, _MN, _N],
930
+ [() => TargetTrackingMetricDimensions, 0, 0],
931
+ ];
932
+ var TargetTrackingMetricDataQuery = [
933
+ 3,
934
+ n0,
935
+ _TTMDQ,
936
+ 0,
937
+ [_E, _I, _L, _MSe, _RD],
938
+ [0, 0, 0, () => TargetTrackingMetricStat, 2],
939
+ ];
940
+ var TargetTrackingMetricDimension = [3, n0, _TTMD, 0, [_Na, _Va], [0, 0]];
941
+ var TargetTrackingMetricStat = [
942
+ 3,
943
+ n0,
944
+ _TTMS,
945
+ 0,
946
+ [_Met, _St, _U],
947
+ [() => TargetTrackingMetric, 0, 0],
948
+ ];
949
+ var TargetTrackingScalingPolicyConfiguration = [
950
+ 3,
951
+ n0,
952
+ _TTSPC,
953
+ 0,
954
+ [_TV, _PMS, _CMS, _SOC, _SIC, _DSI],
955
+ [1, () => PredefinedMetricSpecification, () => CustomizedMetricSpecification, 1, 1, 2],
956
+ ];
957
+ var TooManyTagsException = [
958
+ -3,
959
+ n0,
960
+ _TMTE,
961
+ {
962
+ [_e]: _c,
963
+ [_hE]: 400,
964
+ },
965
+ [_M, _RN],
966
+ [0, 0],
967
+ ];
968
+ schema.TypeRegistry.for(n0).registerError(TooManyTagsException, TooManyTagsException$1);
969
+ var UntagResourceRequest = [3, n0, _URR, 0, [_RARN, _TK], [0, 64 | 0]];
970
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
971
+ var ValidationException = [
972
+ -3,
973
+ n0,
974
+ _VE,
975
+ {
976
+ [_e]: _c,
977
+ [_hE]: 400,
978
+ [_aQE]: [`ValidationException`, 400],
979
+ },
980
+ [_M],
981
+ [0],
982
+ ];
983
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
984
+ var ApplicationAutoScalingServiceException = [
985
+ -3,
986
+ _sm,
987
+ "ApplicationAutoScalingServiceException",
988
+ 0,
989
+ [],
990
+ [],
991
+ ];
992
+ schema.TypeRegistry.for(_sm).registerError(ApplicationAutoScalingServiceException, ApplicationAutoScalingServiceException$1);
993
+ var Alarms = [1, n0, _Al, 0, () => Alarm];
994
+ var LoadForecasts = [1, n0, _LFo, 0, () => LoadForecast];
995
+ var MetricDimensions = [1, n0, _MDe, 0, () => MetricDimension];
996
+ var NotScaledReasons = [1, n0, _NSRo, 0, () => NotScaledReason];
997
+ var PredictiveScalingMetricDataQueries = [
998
+ 1,
999
+ n0,
1000
+ _PSMDQr,
1001
+ 0,
1002
+ () => PredictiveScalingMetricDataQuery,
1003
+ ];
1004
+ var PredictiveScalingMetricDimensions = [
1005
+ 1,
1006
+ n0,
1007
+ _PSMDr,
1008
+ 0,
1009
+ () => PredictiveScalingMetricDimension,
1010
+ ];
1011
+ var PredictiveScalingMetricSpecifications = [
1012
+ 1,
1013
+ n0,
1014
+ _PSMSred,
1015
+ 0,
1016
+ () => PredictiveScalingMetricSpecification,
1017
+ ];
1018
+ var ScalableTargets = [1, n0, _ST, 0, () => ScalableTarget];
1019
+ var ScalingActivities = [1, n0, _SA, 0, () => ScalingActivity];
1020
+ var ScalingPolicies = [1, n0, _SP, 0, () => ScalingPolicy];
1021
+ var ScheduledActions = [1, n0, _SAc, 0, () => ScheduledAction];
1022
+ var StepAdjustments = [1, n0, _SAte, 0, () => StepAdjustment];
1023
+ var TargetTrackingMetricDataQueries = [1, n0, _TTMDQa, 0, () => TargetTrackingMetricDataQuery];
1024
+ var TargetTrackingMetricDimensions = [1, n0, _TTMDa, 0, () => TargetTrackingMetricDimension];
1025
+ var DeleteScalingPolicy = [
1026
+ 9,
1027
+ n0,
1028
+ _DSP,
1029
+ 0,
1030
+ () => DeleteScalingPolicyRequest,
1031
+ () => DeleteScalingPolicyResponse,
1032
+ ];
1033
+ var DeleteScheduledAction = [
1034
+ 9,
1035
+ n0,
1036
+ _DSA,
1037
+ 0,
1038
+ () => DeleteScheduledActionRequest,
1039
+ () => DeleteScheduledActionResponse,
1040
+ ];
1041
+ var DeregisterScalableTarget = [
1042
+ 9,
1043
+ n0,
1044
+ _DST,
1045
+ 0,
1046
+ () => DeregisterScalableTargetRequest,
1047
+ () => DeregisterScalableTargetResponse,
1048
+ ];
1049
+ var DescribeScalableTargets = [
1050
+ 9,
1051
+ n0,
1052
+ _DSTe,
1053
+ 0,
1054
+ () => DescribeScalableTargetsRequest,
1055
+ () => DescribeScalableTargetsResponse,
1056
+ ];
1057
+ var DescribeScalingActivities = [
1058
+ 9,
1059
+ n0,
1060
+ _DSAe,
1061
+ 0,
1062
+ () => DescribeScalingActivitiesRequest,
1063
+ () => DescribeScalingActivitiesResponse,
1064
+ ];
1065
+ var DescribeScalingPolicies = [
1066
+ 9,
1067
+ n0,
1068
+ _DSPe,
1069
+ 0,
1070
+ () => DescribeScalingPoliciesRequest,
1071
+ () => DescribeScalingPoliciesResponse,
1072
+ ];
1073
+ var DescribeScheduledActions = [
1074
+ 9,
1075
+ n0,
1076
+ _DSAes,
1077
+ 0,
1078
+ () => DescribeScheduledActionsRequest,
1079
+ () => DescribeScheduledActionsResponse,
1080
+ ];
1081
+ var GetPredictiveScalingForecast = [
1082
+ 9,
1083
+ n0,
1084
+ _GPSF,
1085
+ 0,
1086
+ () => GetPredictiveScalingForecastRequest,
1087
+ () => GetPredictiveScalingForecastResponse,
1088
+ ];
1089
+ var ListTagsForResource = [
1090
+ 9,
1091
+ n0,
1092
+ _LTFR,
1093
+ 0,
1094
+ () => ListTagsForResourceRequest,
1095
+ () => ListTagsForResourceResponse,
1096
+ ];
1097
+ var PutScalingPolicy = [
1098
+ 9,
1099
+ n0,
1100
+ _PSP,
1101
+ 0,
1102
+ () => PutScalingPolicyRequest,
1103
+ () => PutScalingPolicyResponse,
1104
+ ];
1105
+ var PutScheduledAction = [
1106
+ 9,
1107
+ n0,
1108
+ _PSA,
1109
+ 0,
1110
+ () => PutScheduledActionRequest,
1111
+ () => PutScheduledActionResponse,
1112
+ ];
1113
+ var RegisterScalableTarget = [
1114
+ 9,
1115
+ n0,
1116
+ _RST,
1117
+ 0,
1118
+ () => RegisterScalableTargetRequest,
1119
+ () => RegisterScalableTargetResponse,
1120
+ ];
1121
+ var TagResource = [9, n0, _TR, 0, () => TagResourceRequest, () => TagResourceResponse];
1122
+ var UntagResource = [
1123
+ 9,
1124
+ n0,
1125
+ _UR,
1126
+ 0,
1127
+ () => UntagResourceRequest,
1128
+ () => UntagResourceResponse,
1129
+ ];
1098
1130
 
1099
1131
  class DeleteScalingPolicyCommand extends smithyClient.Command
1100
1132
  .classBuilder()
1101
1133
  .ep(commonParams)
1102
1134
  .m(function (Command, cs, config, o) {
1103
- return [
1104
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1105
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1106
- ];
1135
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1107
1136
  })
1108
1137
  .s("AnyScaleFrontendService", "DeleteScalingPolicy", {})
1109
1138
  .n("ApplicationAutoScalingClient", "DeleteScalingPolicyCommand")
1110
- .f(void 0, void 0)
1111
- .ser(se_DeleteScalingPolicyCommand)
1112
- .de(de_DeleteScalingPolicyCommand)
1139
+ .sc(DeleteScalingPolicy)
1113
1140
  .build() {
1114
1141
  }
1115
1142
 
@@ -1117,16 +1144,11 @@ class DeleteScheduledActionCommand extends smithyClient.Command
1117
1144
  .classBuilder()
1118
1145
  .ep(commonParams)
1119
1146
  .m(function (Command, cs, config, o) {
1120
- return [
1121
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1122
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1123
- ];
1147
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1124
1148
  })
1125
1149
  .s("AnyScaleFrontendService", "DeleteScheduledAction", {})
1126
1150
  .n("ApplicationAutoScalingClient", "DeleteScheduledActionCommand")
1127
- .f(void 0, void 0)
1128
- .ser(se_DeleteScheduledActionCommand)
1129
- .de(de_DeleteScheduledActionCommand)
1151
+ .sc(DeleteScheduledAction)
1130
1152
  .build() {
1131
1153
  }
1132
1154
 
@@ -1134,16 +1156,11 @@ class DeregisterScalableTargetCommand extends smithyClient.Command
1134
1156
  .classBuilder()
1135
1157
  .ep(commonParams)
1136
1158
  .m(function (Command, cs, config, o) {
1137
- return [
1138
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1139
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1140
- ];
1159
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1141
1160
  })
1142
1161
  .s("AnyScaleFrontendService", "DeregisterScalableTarget", {})
1143
1162
  .n("ApplicationAutoScalingClient", "DeregisterScalableTargetCommand")
1144
- .f(void 0, void 0)
1145
- .ser(se_DeregisterScalableTargetCommand)
1146
- .de(de_DeregisterScalableTargetCommand)
1163
+ .sc(DeregisterScalableTarget)
1147
1164
  .build() {
1148
1165
  }
1149
1166
 
@@ -1151,16 +1168,11 @@ class DescribeScalableTargetsCommand extends smithyClient.Command
1151
1168
  .classBuilder()
1152
1169
  .ep(commonParams)
1153
1170
  .m(function (Command, cs, config, o) {
1154
- return [
1155
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1156
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1157
- ];
1171
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1158
1172
  })
1159
1173
  .s("AnyScaleFrontendService", "DescribeScalableTargets", {})
1160
1174
  .n("ApplicationAutoScalingClient", "DescribeScalableTargetsCommand")
1161
- .f(void 0, void 0)
1162
- .ser(se_DescribeScalableTargetsCommand)
1163
- .de(de_DescribeScalableTargetsCommand)
1175
+ .sc(DescribeScalableTargets)
1164
1176
  .build() {
1165
1177
  }
1166
1178
 
@@ -1168,16 +1180,11 @@ class DescribeScalingActivitiesCommand extends smithyClient.Command
1168
1180
  .classBuilder()
1169
1181
  .ep(commonParams)
1170
1182
  .m(function (Command, cs, config, o) {
1171
- return [
1172
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1173
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1174
- ];
1183
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1175
1184
  })
1176
1185
  .s("AnyScaleFrontendService", "DescribeScalingActivities", {})
1177
1186
  .n("ApplicationAutoScalingClient", "DescribeScalingActivitiesCommand")
1178
- .f(void 0, void 0)
1179
- .ser(se_DescribeScalingActivitiesCommand)
1180
- .de(de_DescribeScalingActivitiesCommand)
1187
+ .sc(DescribeScalingActivities)
1181
1188
  .build() {
1182
1189
  }
1183
1190
 
@@ -1185,16 +1192,11 @@ class DescribeScalingPoliciesCommand extends smithyClient.Command
1185
1192
  .classBuilder()
1186
1193
  .ep(commonParams)
1187
1194
  .m(function (Command, cs, config, o) {
1188
- return [
1189
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1190
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1191
- ];
1195
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1192
1196
  })
1193
1197
  .s("AnyScaleFrontendService", "DescribeScalingPolicies", {})
1194
1198
  .n("ApplicationAutoScalingClient", "DescribeScalingPoliciesCommand")
1195
- .f(void 0, void 0)
1196
- .ser(se_DescribeScalingPoliciesCommand)
1197
- .de(de_DescribeScalingPoliciesCommand)
1199
+ .sc(DescribeScalingPolicies)
1198
1200
  .build() {
1199
1201
  }
1200
1202
 
@@ -1202,16 +1204,11 @@ class DescribeScheduledActionsCommand extends smithyClient.Command
1202
1204
  .classBuilder()
1203
1205
  .ep(commonParams)
1204
1206
  .m(function (Command, cs, config, o) {
1205
- return [
1206
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1207
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1208
- ];
1207
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1209
1208
  })
1210
1209
  .s("AnyScaleFrontendService", "DescribeScheduledActions", {})
1211
1210
  .n("ApplicationAutoScalingClient", "DescribeScheduledActionsCommand")
1212
- .f(void 0, void 0)
1213
- .ser(se_DescribeScheduledActionsCommand)
1214
- .de(de_DescribeScheduledActionsCommand)
1211
+ .sc(DescribeScheduledActions)
1215
1212
  .build() {
1216
1213
  }
1217
1214
 
@@ -1219,16 +1216,11 @@ class GetPredictiveScalingForecastCommand extends smithyClient.Command
1219
1216
  .classBuilder()
1220
1217
  .ep(commonParams)
1221
1218
  .m(function (Command, cs, config, o) {
1222
- return [
1223
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1224
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1225
- ];
1219
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1226
1220
  })
1227
1221
  .s("AnyScaleFrontendService", "GetPredictiveScalingForecast", {})
1228
1222
  .n("ApplicationAutoScalingClient", "GetPredictiveScalingForecastCommand")
1229
- .f(void 0, void 0)
1230
- .ser(se_GetPredictiveScalingForecastCommand)
1231
- .de(de_GetPredictiveScalingForecastCommand)
1223
+ .sc(GetPredictiveScalingForecast)
1232
1224
  .build() {
1233
1225
  }
1234
1226
 
@@ -1236,16 +1228,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1236
1228
  .classBuilder()
1237
1229
  .ep(commonParams)
1238
1230
  .m(function (Command, cs, config, o) {
1239
- return [
1240
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1241
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1242
- ];
1231
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1243
1232
  })
1244
1233
  .s("AnyScaleFrontendService", "ListTagsForResource", {})
1245
1234
  .n("ApplicationAutoScalingClient", "ListTagsForResourceCommand")
1246
- .f(void 0, void 0)
1247
- .ser(se_ListTagsForResourceCommand)
1248
- .de(de_ListTagsForResourceCommand)
1235
+ .sc(ListTagsForResource)
1249
1236
  .build() {
1250
1237
  }
1251
1238
 
@@ -1253,16 +1240,11 @@ class PutScalingPolicyCommand extends smithyClient.Command
1253
1240
  .classBuilder()
1254
1241
  .ep(commonParams)
1255
1242
  .m(function (Command, cs, config, o) {
1256
- return [
1257
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1258
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1259
- ];
1243
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1260
1244
  })
1261
1245
  .s("AnyScaleFrontendService", "PutScalingPolicy", {})
1262
1246
  .n("ApplicationAutoScalingClient", "PutScalingPolicyCommand")
1263
- .f(void 0, void 0)
1264
- .ser(se_PutScalingPolicyCommand)
1265
- .de(de_PutScalingPolicyCommand)
1247
+ .sc(PutScalingPolicy)
1266
1248
  .build() {
1267
1249
  }
1268
1250
 
@@ -1270,16 +1252,11 @@ class PutScheduledActionCommand extends smithyClient.Command
1270
1252
  .classBuilder()
1271
1253
  .ep(commonParams)
1272
1254
  .m(function (Command, cs, config, o) {
1273
- return [
1274
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1275
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1276
- ];
1255
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1277
1256
  })
1278
1257
  .s("AnyScaleFrontendService", "PutScheduledAction", {})
1279
1258
  .n("ApplicationAutoScalingClient", "PutScheduledActionCommand")
1280
- .f(void 0, void 0)
1281
- .ser(se_PutScheduledActionCommand)
1282
- .de(de_PutScheduledActionCommand)
1259
+ .sc(PutScheduledAction)
1283
1260
  .build() {
1284
1261
  }
1285
1262
 
@@ -1287,16 +1264,11 @@ class RegisterScalableTargetCommand extends smithyClient.Command
1287
1264
  .classBuilder()
1288
1265
  .ep(commonParams)
1289
1266
  .m(function (Command, cs, config, o) {
1290
- return [
1291
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1292
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1293
- ];
1267
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1294
1268
  })
1295
1269
  .s("AnyScaleFrontendService", "RegisterScalableTarget", {})
1296
1270
  .n("ApplicationAutoScalingClient", "RegisterScalableTargetCommand")
1297
- .f(void 0, void 0)
1298
- .ser(se_RegisterScalableTargetCommand)
1299
- .de(de_RegisterScalableTargetCommand)
1271
+ .sc(RegisterScalableTarget)
1300
1272
  .build() {
1301
1273
  }
1302
1274
 
@@ -1304,16 +1276,11 @@ class TagResourceCommand extends smithyClient.Command
1304
1276
  .classBuilder()
1305
1277
  .ep(commonParams)
1306
1278
  .m(function (Command, cs, config, o) {
1307
- return [
1308
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1309
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1310
- ];
1279
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1311
1280
  })
1312
1281
  .s("AnyScaleFrontendService", "TagResource", {})
1313
1282
  .n("ApplicationAutoScalingClient", "TagResourceCommand")
1314
- .f(void 0, void 0)
1315
- .ser(se_TagResourceCommand)
1316
- .de(de_TagResourceCommand)
1283
+ .sc(TagResource)
1317
1284
  .build() {
1318
1285
  }
1319
1286
 
@@ -1321,16 +1288,11 @@ class UntagResourceCommand extends smithyClient.Command
1321
1288
  .classBuilder()
1322
1289
  .ep(commonParams)
1323
1290
  .m(function (Command, cs, config, o) {
1324
- return [
1325
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1326
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1327
- ];
1291
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1328
1292
  })
1329
1293
  .s("AnyScaleFrontendService", "UntagResource", {})
1330
1294
  .n("ApplicationAutoScalingClient", "UntagResourceCommand")
1331
- .f(void 0, void 0)
1332
- .ser(se_UntagResourceCommand)
1333
- .de(de_UntagResourceCommand)
1295
+ .sc(UntagResource)
1334
1296
  .build() {
1335
1297
  }
1336
1298
 
@@ -1373,8 +1335,8 @@ Object.defineProperty(exports, "__Client", {
1373
1335
  exports.AdjustmentType = AdjustmentType;
1374
1336
  exports.ApplicationAutoScaling = ApplicationAutoScaling;
1375
1337
  exports.ApplicationAutoScalingClient = ApplicationAutoScalingClient;
1376
- exports.ApplicationAutoScalingServiceException = ApplicationAutoScalingServiceException;
1377
- exports.ConcurrentUpdateException = ConcurrentUpdateException;
1338
+ exports.ApplicationAutoScalingServiceException = ApplicationAutoScalingServiceException$1;
1339
+ exports.ConcurrentUpdateException = ConcurrentUpdateException$1;
1378
1340
  exports.DeleteScalingPolicyCommand = DeleteScalingPolicyCommand;
1379
1341
  exports.DeleteScheduledActionCommand = DeleteScheduledActionCommand;
1380
1342
  exports.DeregisterScalableTargetCommand = DeregisterScalableTargetCommand;
@@ -1382,30 +1344,30 @@ exports.DescribeScalableTargetsCommand = DescribeScalableTargetsCommand;
1382
1344
  exports.DescribeScalingActivitiesCommand = DescribeScalingActivitiesCommand;
1383
1345
  exports.DescribeScalingPoliciesCommand = DescribeScalingPoliciesCommand;
1384
1346
  exports.DescribeScheduledActionsCommand = DescribeScheduledActionsCommand;
1385
- exports.FailedResourceAccessException = FailedResourceAccessException;
1347
+ exports.FailedResourceAccessException = FailedResourceAccessException$1;
1386
1348
  exports.GetPredictiveScalingForecastCommand = GetPredictiveScalingForecastCommand;
1387
- exports.InternalServiceException = InternalServiceException;
1388
- exports.InvalidNextTokenException = InvalidNextTokenException;
1389
- exports.LimitExceededException = LimitExceededException;
1349
+ exports.InternalServiceException = InternalServiceException$1;
1350
+ exports.InvalidNextTokenException = InvalidNextTokenException$1;
1351
+ exports.LimitExceededException = LimitExceededException$1;
1390
1352
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1391
1353
  exports.MetricAggregationType = MetricAggregationType;
1392
1354
  exports.MetricStatistic = MetricStatistic;
1393
1355
  exports.MetricType = MetricType;
1394
- exports.ObjectNotFoundException = ObjectNotFoundException;
1356
+ exports.ObjectNotFoundException = ObjectNotFoundException$1;
1395
1357
  exports.PolicyType = PolicyType;
1396
1358
  exports.PredictiveScalingMaxCapacityBreachBehavior = PredictiveScalingMaxCapacityBreachBehavior;
1397
1359
  exports.PredictiveScalingMode = PredictiveScalingMode;
1398
1360
  exports.PutScalingPolicyCommand = PutScalingPolicyCommand;
1399
1361
  exports.PutScheduledActionCommand = PutScheduledActionCommand;
1400
1362
  exports.RegisterScalableTargetCommand = RegisterScalableTargetCommand;
1401
- exports.ResourceNotFoundException = ResourceNotFoundException;
1363
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1402
1364
  exports.ScalableDimension = ScalableDimension;
1403
1365
  exports.ScalingActivityStatusCode = ScalingActivityStatusCode;
1404
1366
  exports.ServiceNamespace = ServiceNamespace;
1405
1367
  exports.TagResourceCommand = TagResourceCommand;
1406
- exports.TooManyTagsException = TooManyTagsException;
1368
+ exports.TooManyTagsException = TooManyTagsException$1;
1407
1369
  exports.UntagResourceCommand = UntagResourceCommand;
1408
- exports.ValidationException = ValidationException;
1370
+ exports.ValidationException = ValidationException$1;
1409
1371
  exports.paginateDescribeScalableTargets = paginateDescribeScalableTargets;
1410
1372
  exports.paginateDescribeScalingActivities = paginateDescribeScalingActivities;
1411
1373
  exports.paginateDescribeScalingPolicies = paginateDescribeScalingPolicies;