@aws-sdk/client-auto-scaling-plans 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -395,7 +395,7 @@ var se_UpdateScalingPlanCommand = /* @__PURE__ */ __name(async (input, context)
395
395
  }, "se_UpdateScalingPlanCommand");
396
396
  var de_CreateScalingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
397
397
  if (output.statusCode >= 300) {
398
- return de_CreateScalingPlanCommandError(output, context);
398
+ return de_CommandError(output, context);
399
399
  }
400
400
  const data = await parseBody(output.body, context);
401
401
  let contents = {};
@@ -406,37 +406,9 @@ var de_CreateScalingPlanCommand = /* @__PURE__ */ __name(async (output, context)
406
406
  };
407
407
  return response;
408
408
  }, "de_CreateScalingPlanCommand");
409
- var de_CreateScalingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
410
- const parsedOutput = {
411
- ...output,
412
- body: await parseErrorBody(output.body, context)
413
- };
414
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
415
- switch (errorCode) {
416
- case "ConcurrentUpdateException":
417
- case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
418
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
419
- case "InternalServiceException":
420
- case "com.amazonaws.autoscalingplans#InternalServiceException":
421
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
422
- case "LimitExceededException":
423
- case "com.amazonaws.autoscalingplans#LimitExceededException":
424
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
425
- case "ValidationException":
426
- case "com.amazonaws.autoscalingplans#ValidationException":
427
- throw await de_ValidationExceptionRes(parsedOutput, context);
428
- default:
429
- const parsedBody = parsedOutput.body;
430
- return throwDefaultError({
431
- output,
432
- parsedBody,
433
- errorCode
434
- });
435
- }
436
- }, "de_CreateScalingPlanCommandError");
437
409
  var de_DeleteScalingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
438
410
  if (output.statusCode >= 300) {
439
- return de_DeleteScalingPlanCommandError(output, context);
411
+ return de_CommandError(output, context);
440
412
  }
441
413
  const data = await parseBody(output.body, context);
442
414
  let contents = {};
@@ -447,37 +419,9 @@ var de_DeleteScalingPlanCommand = /* @__PURE__ */ __name(async (output, context)
447
419
  };
448
420
  return response;
449
421
  }, "de_DeleteScalingPlanCommand");
450
- var de_DeleteScalingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
451
- const parsedOutput = {
452
- ...output,
453
- body: await parseErrorBody(output.body, context)
454
- };
455
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
456
- switch (errorCode) {
457
- case "ConcurrentUpdateException":
458
- case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
459
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
460
- case "InternalServiceException":
461
- case "com.amazonaws.autoscalingplans#InternalServiceException":
462
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
463
- case "ObjectNotFoundException":
464
- case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
465
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
466
- case "ValidationException":
467
- case "com.amazonaws.autoscalingplans#ValidationException":
468
- throw await de_ValidationExceptionRes(parsedOutput, context);
469
- default:
470
- const parsedBody = parsedOutput.body;
471
- return throwDefaultError({
472
- output,
473
- parsedBody,
474
- errorCode
475
- });
476
- }
477
- }, "de_DeleteScalingPlanCommandError");
478
422
  var de_DescribeScalingPlanResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
479
423
  if (output.statusCode >= 300) {
480
- return de_DescribeScalingPlanResourcesCommandError(output, context);
424
+ return de_CommandError(output, context);
481
425
  }
482
426
  const data = await parseBody(output.body, context);
483
427
  let contents = {};
@@ -488,37 +432,9 @@ var de_DescribeScalingPlanResourcesCommand = /* @__PURE__ */ __name(async (outpu
488
432
  };
489
433
  return response;
490
434
  }, "de_DescribeScalingPlanResourcesCommand");
491
- var de_DescribeScalingPlanResourcesCommandError = /* @__PURE__ */ __name(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.autoscalingplans#ConcurrentUpdateException":
500
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
501
- case "InternalServiceException":
502
- case "com.amazonaws.autoscalingplans#InternalServiceException":
503
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
504
- case "InvalidNextTokenException":
505
- case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
506
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
507
- case "ValidationException":
508
- case "com.amazonaws.autoscalingplans#ValidationException":
509
- throw await de_ValidationExceptionRes(parsedOutput, context);
510
- default:
511
- const parsedBody = parsedOutput.body;
512
- return throwDefaultError({
513
- output,
514
- parsedBody,
515
- errorCode
516
- });
517
- }
518
- }, "de_DescribeScalingPlanResourcesCommandError");
519
435
  var de_DescribeScalingPlansCommand = /* @__PURE__ */ __name(async (output, context) => {
520
436
  if (output.statusCode >= 300) {
521
- return de_DescribeScalingPlansCommandError(output, context);
437
+ return de_CommandError(output, context);
522
438
  }
523
439
  const data = await parseBody(output.body, context);
524
440
  let contents = {};
@@ -529,37 +445,9 @@ var de_DescribeScalingPlansCommand = /* @__PURE__ */ __name(async (output, conte
529
445
  };
530
446
  return response;
531
447
  }, "de_DescribeScalingPlansCommand");
532
- var de_DescribeScalingPlansCommandError = /* @__PURE__ */ __name(async (output, context) => {
533
- const parsedOutput = {
534
- ...output,
535
- body: await parseErrorBody(output.body, context)
536
- };
537
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
538
- switch (errorCode) {
539
- case "ConcurrentUpdateException":
540
- case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
541
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
542
- case "InternalServiceException":
543
- case "com.amazonaws.autoscalingplans#InternalServiceException":
544
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
545
- case "InvalidNextTokenException":
546
- case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
547
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
548
- case "ValidationException":
549
- case "com.amazonaws.autoscalingplans#ValidationException":
550
- throw await de_ValidationExceptionRes(parsedOutput, context);
551
- default:
552
- const parsedBody = parsedOutput.body;
553
- return throwDefaultError({
554
- output,
555
- parsedBody,
556
- errorCode
557
- });
558
- }
559
- }, "de_DescribeScalingPlansCommandError");
560
448
  var de_GetScalingPlanResourceForecastDataCommand = /* @__PURE__ */ __name(async (output, context) => {
561
449
  if (output.statusCode >= 300) {
562
- return de_GetScalingPlanResourceForecastDataCommandError(output, context);
450
+ return de_CommandError(output, context);
563
451
  }
564
452
  const data = await parseBody(output.body, context);
565
453
  let contents = {};
@@ -570,31 +458,9 @@ var de_GetScalingPlanResourceForecastDataCommand = /* @__PURE__ */ __name(async
570
458
  };
571
459
  return response;
572
460
  }, "de_GetScalingPlanResourceForecastDataCommand");
573
- var de_GetScalingPlanResourceForecastDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
574
- const parsedOutput = {
575
- ...output,
576
- body: await parseErrorBody(output.body, context)
577
- };
578
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
579
- switch (errorCode) {
580
- case "InternalServiceException":
581
- case "com.amazonaws.autoscalingplans#InternalServiceException":
582
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
583
- case "ValidationException":
584
- case "com.amazonaws.autoscalingplans#ValidationException":
585
- throw await de_ValidationExceptionRes(parsedOutput, context);
586
- default:
587
- const parsedBody = parsedOutput.body;
588
- return throwDefaultError({
589
- output,
590
- parsedBody,
591
- errorCode
592
- });
593
- }
594
- }, "de_GetScalingPlanResourceForecastDataCommandError");
595
461
  var de_UpdateScalingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
596
462
  if (output.statusCode >= 300) {
597
- return de_UpdateScalingPlanCommandError(output, context);
463
+ return de_CommandError(output, context);
598
464
  }
599
465
  const data = await parseBody(output.body, context);
600
466
  let contents = {};
@@ -605,7 +471,7 @@ var de_UpdateScalingPlanCommand = /* @__PURE__ */ __name(async (output, context)
605
471
  };
606
472
  return response;
607
473
  }, "de_UpdateScalingPlanCommand");
608
- var de_UpdateScalingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
474
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
609
475
  const parsedOutput = {
610
476
  ...output,
611
477
  body: await parseErrorBody(output.body, context)
@@ -618,12 +484,18 @@ var de_UpdateScalingPlanCommandError = /* @__PURE__ */ __name(async (output, con
618
484
  case "InternalServiceException":
619
485
  case "com.amazonaws.autoscalingplans#InternalServiceException":
620
486
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
621
- case "ObjectNotFoundException":
622
- case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
623
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
487
+ case "LimitExceededException":
488
+ case "com.amazonaws.autoscalingplans#LimitExceededException":
489
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
624
490
  case "ValidationException":
625
491
  case "com.amazonaws.autoscalingplans#ValidationException":
626
492
  throw await de_ValidationExceptionRes(parsedOutput, context);
493
+ case "ObjectNotFoundException":
494
+ case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
495
+ throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
496
+ case "InvalidNextTokenException":
497
+ case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
498
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
627
499
  default:
628
500
  const parsedBody = parsedOutput.body;
629
501
  return throwDefaultError({
@@ -632,7 +504,7 @@ var de_UpdateScalingPlanCommandError = /* @__PURE__ */ __name(async (output, con
632
504
  errorCode
633
505
  });
634
506
  }
635
- }, "de_UpdateScalingPlanCommandError");
507
+ }, "de_CommandError");
636
508
  var de_ConcurrentUpdateExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
637
509
  const body = parsedOutput.body;
638
510
  const deserialized = (0, import_smithy_client._json)(body);
@@ -40,7 +40,7 @@ export const se_UpdateScalingPlanCommand = async (input, context) => {
40
40
  };
41
41
  export const de_CreateScalingPlanCommand = async (output, context) => {
42
42
  if (output.statusCode >= 300) {
43
- return de_CreateScalingPlanCommandError(output, context);
43
+ return de_CommandError(output, context);
44
44
  }
45
45
  const data = await parseBody(output.body, context);
46
46
  let contents = {};
@@ -51,37 +51,9 @@ export const de_CreateScalingPlanCommand = async (output, context) => {
51
51
  };
52
52
  return response;
53
53
  };
54
- const de_CreateScalingPlanCommandError = async (output, context) => {
55
- const parsedOutput = {
56
- ...output,
57
- body: await parseErrorBody(output.body, context),
58
- };
59
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
60
- switch (errorCode) {
61
- case "ConcurrentUpdateException":
62
- case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
63
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
64
- case "InternalServiceException":
65
- case "com.amazonaws.autoscalingplans#InternalServiceException":
66
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
67
- case "LimitExceededException":
68
- case "com.amazonaws.autoscalingplans#LimitExceededException":
69
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
70
- case "ValidationException":
71
- case "com.amazonaws.autoscalingplans#ValidationException":
72
- throw await de_ValidationExceptionRes(parsedOutput, context);
73
- default:
74
- const parsedBody = parsedOutput.body;
75
- return throwDefaultError({
76
- output,
77
- parsedBody,
78
- errorCode,
79
- });
80
- }
81
- };
82
54
  export const de_DeleteScalingPlanCommand = async (output, context) => {
83
55
  if (output.statusCode >= 300) {
84
- return de_DeleteScalingPlanCommandError(output, context);
56
+ return de_CommandError(output, context);
85
57
  }
86
58
  const data = await parseBody(output.body, context);
87
59
  let contents = {};
@@ -92,37 +64,9 @@ export const de_DeleteScalingPlanCommand = async (output, context) => {
92
64
  };
93
65
  return response;
94
66
  };
95
- const de_DeleteScalingPlanCommandError = async (output, context) => {
96
- const parsedOutput = {
97
- ...output,
98
- body: await parseErrorBody(output.body, context),
99
- };
100
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
101
- switch (errorCode) {
102
- case "ConcurrentUpdateException":
103
- case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
104
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
105
- case "InternalServiceException":
106
- case "com.amazonaws.autoscalingplans#InternalServiceException":
107
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
108
- case "ObjectNotFoundException":
109
- case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
110
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
111
- case "ValidationException":
112
- case "com.amazonaws.autoscalingplans#ValidationException":
113
- throw await de_ValidationExceptionRes(parsedOutput, context);
114
- default:
115
- const parsedBody = parsedOutput.body;
116
- return throwDefaultError({
117
- output,
118
- parsedBody,
119
- errorCode,
120
- });
121
- }
122
- };
123
67
  export const de_DescribeScalingPlanResourcesCommand = async (output, context) => {
124
68
  if (output.statusCode >= 300) {
125
- return de_DescribeScalingPlanResourcesCommandError(output, context);
69
+ return de_CommandError(output, context);
126
70
  }
127
71
  const data = await parseBody(output.body, context);
128
72
  let contents = {};
@@ -133,37 +77,9 @@ export const de_DescribeScalingPlanResourcesCommand = async (output, context) =>
133
77
  };
134
78
  return response;
135
79
  };
136
- const de_DescribeScalingPlanResourcesCommandError = async (output, context) => {
137
- const parsedOutput = {
138
- ...output,
139
- body: await parseErrorBody(output.body, context),
140
- };
141
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
142
- switch (errorCode) {
143
- case "ConcurrentUpdateException":
144
- case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
145
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
146
- case "InternalServiceException":
147
- case "com.amazonaws.autoscalingplans#InternalServiceException":
148
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
149
- case "InvalidNextTokenException":
150
- case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
151
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
152
- case "ValidationException":
153
- case "com.amazonaws.autoscalingplans#ValidationException":
154
- throw await de_ValidationExceptionRes(parsedOutput, context);
155
- default:
156
- const parsedBody = parsedOutput.body;
157
- return throwDefaultError({
158
- output,
159
- parsedBody,
160
- errorCode,
161
- });
162
- }
163
- };
164
80
  export const de_DescribeScalingPlansCommand = async (output, context) => {
165
81
  if (output.statusCode >= 300) {
166
- return de_DescribeScalingPlansCommandError(output, context);
82
+ return de_CommandError(output, context);
167
83
  }
168
84
  const data = await parseBody(output.body, context);
169
85
  let contents = {};
@@ -174,37 +90,9 @@ export const de_DescribeScalingPlansCommand = async (output, context) => {
174
90
  };
175
91
  return response;
176
92
  };
177
- const de_DescribeScalingPlansCommandError = async (output, context) => {
178
- const parsedOutput = {
179
- ...output,
180
- body: await parseErrorBody(output.body, context),
181
- };
182
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
183
- switch (errorCode) {
184
- case "ConcurrentUpdateException":
185
- case "com.amazonaws.autoscalingplans#ConcurrentUpdateException":
186
- throw await de_ConcurrentUpdateExceptionRes(parsedOutput, context);
187
- case "InternalServiceException":
188
- case "com.amazonaws.autoscalingplans#InternalServiceException":
189
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
190
- case "InvalidNextTokenException":
191
- case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
192
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
193
- case "ValidationException":
194
- case "com.amazonaws.autoscalingplans#ValidationException":
195
- throw await de_ValidationExceptionRes(parsedOutput, context);
196
- default:
197
- const parsedBody = parsedOutput.body;
198
- return throwDefaultError({
199
- output,
200
- parsedBody,
201
- errorCode,
202
- });
203
- }
204
- };
205
93
  export const de_GetScalingPlanResourceForecastDataCommand = async (output, context) => {
206
94
  if (output.statusCode >= 300) {
207
- return de_GetScalingPlanResourceForecastDataCommandError(output, context);
95
+ return de_CommandError(output, context);
208
96
  }
209
97
  const data = await parseBody(output.body, context);
210
98
  let contents = {};
@@ -215,31 +103,9 @@ export const de_GetScalingPlanResourceForecastDataCommand = async (output, conte
215
103
  };
216
104
  return response;
217
105
  };
218
- const de_GetScalingPlanResourceForecastDataCommandError = async (output, context) => {
219
- const parsedOutput = {
220
- ...output,
221
- body: await parseErrorBody(output.body, context),
222
- };
223
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
224
- switch (errorCode) {
225
- case "InternalServiceException":
226
- case "com.amazonaws.autoscalingplans#InternalServiceException":
227
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
228
- case "ValidationException":
229
- case "com.amazonaws.autoscalingplans#ValidationException":
230
- throw await de_ValidationExceptionRes(parsedOutput, context);
231
- default:
232
- const parsedBody = parsedOutput.body;
233
- return throwDefaultError({
234
- output,
235
- parsedBody,
236
- errorCode,
237
- });
238
- }
239
- };
240
106
  export const de_UpdateScalingPlanCommand = async (output, context) => {
241
107
  if (output.statusCode >= 300) {
242
- return de_UpdateScalingPlanCommandError(output, context);
108
+ return de_CommandError(output, context);
243
109
  }
244
110
  const data = await parseBody(output.body, context);
245
111
  let contents = {};
@@ -250,7 +116,7 @@ export const de_UpdateScalingPlanCommand = async (output, context) => {
250
116
  };
251
117
  return response;
252
118
  };
253
- const de_UpdateScalingPlanCommandError = async (output, context) => {
119
+ const de_CommandError = async (output, context) => {
254
120
  const parsedOutput = {
255
121
  ...output,
256
122
  body: await parseErrorBody(output.body, context),
@@ -263,12 +129,18 @@ const de_UpdateScalingPlanCommandError = async (output, context) => {
263
129
  case "InternalServiceException":
264
130
  case "com.amazonaws.autoscalingplans#InternalServiceException":
265
131
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
266
- case "ObjectNotFoundException":
267
- case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
268
- throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
132
+ case "LimitExceededException":
133
+ case "com.amazonaws.autoscalingplans#LimitExceededException":
134
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
269
135
  case "ValidationException":
270
136
  case "com.amazonaws.autoscalingplans#ValidationException":
271
137
  throw await de_ValidationExceptionRes(parsedOutput, context);
138
+ case "ObjectNotFoundException":
139
+ case "com.amazonaws.autoscalingplans#ObjectNotFoundException":
140
+ throw await de_ObjectNotFoundExceptionRes(parsedOutput, context);
141
+ case "InvalidNextTokenException":
142
+ case "com.amazonaws.autoscalingplans#InvalidNextTokenException":
143
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
272
144
  default:
273
145
  const parsedBody = parsedOutput.body;
274
146
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-auto-scaling-plans",
3
3
  "description": "AWS SDK for JavaScript Auto Scaling Plans Client for Node.js, Browser and React Native",
4
- "version": "3.503.1",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-auto-scaling-plans",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.502.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.503.1",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",