@aws-sdk/client-launch-wizard 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 +16 -185
- package/dist-es/protocols/Aws_restJson1.js +15 -184
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -418,7 +418,7 @@ var se_ListWorkloadsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
418
418
|
}, "se_ListWorkloadsCommand");
|
|
419
419
|
var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
420
420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
421
|
-
return
|
|
421
|
+
return de_CommandError(output, context);
|
|
422
422
|
}
|
|
423
423
|
const contents = (0, import_smithy_client.map)({
|
|
424
424
|
$metadata: deserializeMetadata(output)
|
|
@@ -430,37 +430,9 @@ var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
430
430
|
Object.assign(contents, doc);
|
|
431
431
|
return contents;
|
|
432
432
|
}, "de_CreateDeploymentCommand");
|
|
433
|
-
var de_CreateDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
434
|
-
const parsedOutput = {
|
|
435
|
-
...output,
|
|
436
|
-
body: await parseErrorBody(output.body, context)
|
|
437
|
-
};
|
|
438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
|
-
switch (errorCode) {
|
|
440
|
-
case "InternalServerException":
|
|
441
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
442
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
443
|
-
case "ResourceLimitException":
|
|
444
|
-
case "com.amazonaws.launchwizard#ResourceLimitException":
|
|
445
|
-
throw await de_ResourceLimitExceptionRes(parsedOutput, context);
|
|
446
|
-
case "ResourceNotFoundException":
|
|
447
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
448
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
449
|
-
case "ValidationException":
|
|
450
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
451
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
452
|
-
default:
|
|
453
|
-
const parsedBody = parsedOutput.body;
|
|
454
|
-
return throwDefaultError({
|
|
455
|
-
output,
|
|
456
|
-
parsedBody,
|
|
457
|
-
errorCode
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
}, "de_CreateDeploymentCommandError");
|
|
461
433
|
var de_DeleteDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
462
434
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
463
|
-
return
|
|
435
|
+
return de_CommandError(output, context);
|
|
464
436
|
}
|
|
465
437
|
const contents = (0, import_smithy_client.map)({
|
|
466
438
|
$metadata: deserializeMetadata(output)
|
|
@@ -473,34 +445,9 @@ var de_DeleteDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
473
445
|
Object.assign(contents, doc);
|
|
474
446
|
return contents;
|
|
475
447
|
}, "de_DeleteDeploymentCommand");
|
|
476
|
-
var de_DeleteDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
477
|
-
const parsedOutput = {
|
|
478
|
-
...output,
|
|
479
|
-
body: await parseErrorBody(output.body, context)
|
|
480
|
-
};
|
|
481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
|
-
switch (errorCode) {
|
|
483
|
-
case "InternalServerException":
|
|
484
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
485
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
486
|
-
case "ResourceNotFoundException":
|
|
487
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
488
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
489
|
-
case "ValidationException":
|
|
490
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
491
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
492
|
-
default:
|
|
493
|
-
const parsedBody = parsedOutput.body;
|
|
494
|
-
return throwDefaultError({
|
|
495
|
-
output,
|
|
496
|
-
parsedBody,
|
|
497
|
-
errorCode
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
}, "de_DeleteDeploymentCommandError");
|
|
501
448
|
var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
502
449
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
-
return
|
|
450
|
+
return de_CommandError(output, context);
|
|
504
451
|
}
|
|
505
452
|
const contents = (0, import_smithy_client.map)({
|
|
506
453
|
$metadata: deserializeMetadata(output)
|
|
@@ -512,34 +459,9 @@ var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
512
459
|
Object.assign(contents, doc);
|
|
513
460
|
return contents;
|
|
514
461
|
}, "de_GetDeploymentCommand");
|
|
515
|
-
var de_GetDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
516
|
-
const parsedOutput = {
|
|
517
|
-
...output,
|
|
518
|
-
body: await parseErrorBody(output.body, context)
|
|
519
|
-
};
|
|
520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
|
-
switch (errorCode) {
|
|
522
|
-
case "InternalServerException":
|
|
523
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
524
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ResourceNotFoundException":
|
|
526
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ValidationException":
|
|
529
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
531
|
-
default:
|
|
532
|
-
const parsedBody = parsedOutput.body;
|
|
533
|
-
return throwDefaultError({
|
|
534
|
-
output,
|
|
535
|
-
parsedBody,
|
|
536
|
-
errorCode
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
}, "de_GetDeploymentCommandError");
|
|
540
462
|
var de_GetWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
541
463
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
-
return
|
|
464
|
+
return de_CommandError(output, context);
|
|
543
465
|
}
|
|
544
466
|
const contents = (0, import_smithy_client.map)({
|
|
545
467
|
$metadata: deserializeMetadata(output)
|
|
@@ -551,34 +473,9 @@ var de_GetWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
551
473
|
Object.assign(contents, doc);
|
|
552
474
|
return contents;
|
|
553
475
|
}, "de_GetWorkloadCommand");
|
|
554
|
-
var de_GetWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
555
|
-
const parsedOutput = {
|
|
556
|
-
...output,
|
|
557
|
-
body: await parseErrorBody(output.body, context)
|
|
558
|
-
};
|
|
559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
|
-
switch (errorCode) {
|
|
561
|
-
case "InternalServerException":
|
|
562
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
563
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
564
|
-
case "ResourceNotFoundException":
|
|
565
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
566
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
567
|
-
case "ValidationException":
|
|
568
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
569
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
570
|
-
default:
|
|
571
|
-
const parsedBody = parsedOutput.body;
|
|
572
|
-
return throwDefaultError({
|
|
573
|
-
output,
|
|
574
|
-
parsedBody,
|
|
575
|
-
errorCode
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
}, "de_GetWorkloadCommandError");
|
|
579
476
|
var de_ListDeploymentEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
580
477
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
581
|
-
return
|
|
478
|
+
return de_CommandError(output, context);
|
|
582
479
|
}
|
|
583
480
|
const contents = (0, import_smithy_client.map)({
|
|
584
481
|
$metadata: deserializeMetadata(output)
|
|
@@ -591,34 +488,9 @@ var de_ListDeploymentEventsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
591
488
|
Object.assign(contents, doc);
|
|
592
489
|
return contents;
|
|
593
490
|
}, "de_ListDeploymentEventsCommand");
|
|
594
|
-
var de_ListDeploymentEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
595
|
-
const parsedOutput = {
|
|
596
|
-
...output,
|
|
597
|
-
body: await parseErrorBody(output.body, context)
|
|
598
|
-
};
|
|
599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
-
switch (errorCode) {
|
|
601
|
-
case "InternalServerException":
|
|
602
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
603
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
604
|
-
case "ResourceNotFoundException":
|
|
605
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
606
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
607
|
-
case "ValidationException":
|
|
608
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
609
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
610
|
-
default:
|
|
611
|
-
const parsedBody = parsedOutput.body;
|
|
612
|
-
return throwDefaultError({
|
|
613
|
-
output,
|
|
614
|
-
parsedBody,
|
|
615
|
-
errorCode
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
}, "de_ListDeploymentEventsCommandError");
|
|
619
491
|
var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
620
492
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
621
|
-
return
|
|
493
|
+
return de_CommandError(output, context);
|
|
622
494
|
}
|
|
623
495
|
const contents = (0, import_smithy_client.map)({
|
|
624
496
|
$metadata: deserializeMetadata(output)
|
|
@@ -631,31 +503,9 @@ var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
631
503
|
Object.assign(contents, doc);
|
|
632
504
|
return contents;
|
|
633
505
|
}, "de_ListDeploymentsCommand");
|
|
634
|
-
var de_ListDeploymentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
635
|
-
const parsedOutput = {
|
|
636
|
-
...output,
|
|
637
|
-
body: await parseErrorBody(output.body, context)
|
|
638
|
-
};
|
|
639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
-
switch (errorCode) {
|
|
641
|
-
case "InternalServerException":
|
|
642
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
643
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
644
|
-
case "ValidationException":
|
|
645
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
646
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
647
|
-
default:
|
|
648
|
-
const parsedBody = parsedOutput.body;
|
|
649
|
-
return throwDefaultError({
|
|
650
|
-
output,
|
|
651
|
-
parsedBody,
|
|
652
|
-
errorCode
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
}, "de_ListDeploymentsCommandError");
|
|
656
506
|
var de_ListWorkloadDeploymentPatternsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
657
507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
658
|
-
return
|
|
508
|
+
return de_CommandError(output, context);
|
|
659
509
|
}
|
|
660
510
|
const contents = (0, import_smithy_client.map)({
|
|
661
511
|
$metadata: deserializeMetadata(output)
|
|
@@ -668,34 +518,9 @@ var de_ListWorkloadDeploymentPatternsCommand = /* @__PURE__ */ __name(async (out
|
|
|
668
518
|
Object.assign(contents, doc);
|
|
669
519
|
return contents;
|
|
670
520
|
}, "de_ListWorkloadDeploymentPatternsCommand");
|
|
671
|
-
var de_ListWorkloadDeploymentPatternsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
672
|
-
const parsedOutput = {
|
|
673
|
-
...output,
|
|
674
|
-
body: await parseErrorBody(output.body, context)
|
|
675
|
-
};
|
|
676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
|
-
switch (errorCode) {
|
|
678
|
-
case "InternalServerException":
|
|
679
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
680
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
681
|
-
case "ResourceNotFoundException":
|
|
682
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
683
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ValidationException":
|
|
685
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
686
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
687
|
-
default:
|
|
688
|
-
const parsedBody = parsedOutput.body;
|
|
689
|
-
return throwDefaultError({
|
|
690
|
-
output,
|
|
691
|
-
parsedBody,
|
|
692
|
-
errorCode
|
|
693
|
-
});
|
|
694
|
-
}
|
|
695
|
-
}, "de_ListWorkloadDeploymentPatternsCommandError");
|
|
696
521
|
var de_ListWorkloadsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
697
522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
698
|
-
return
|
|
523
|
+
return de_CommandError(output, context);
|
|
699
524
|
}
|
|
700
525
|
const contents = (0, import_smithy_client.map)({
|
|
701
526
|
$metadata: deserializeMetadata(output)
|
|
@@ -708,7 +533,7 @@ var de_ListWorkloadsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
708
533
|
Object.assign(contents, doc);
|
|
709
534
|
return contents;
|
|
710
535
|
}, "de_ListWorkloadsCommand");
|
|
711
|
-
var
|
|
536
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
712
537
|
const parsedOutput = {
|
|
713
538
|
...output,
|
|
714
539
|
body: await parseErrorBody(output.body, context)
|
|
@@ -718,6 +543,12 @@ var de_ListWorkloadsCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
718
543
|
case "InternalServerException":
|
|
719
544
|
case "com.amazonaws.launchwizard#InternalServerException":
|
|
720
545
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
546
|
+
case "ResourceLimitException":
|
|
547
|
+
case "com.amazonaws.launchwizard#ResourceLimitException":
|
|
548
|
+
throw await de_ResourceLimitExceptionRes(parsedOutput, context);
|
|
549
|
+
case "ResourceNotFoundException":
|
|
550
|
+
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
551
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
721
552
|
case "ValidationException":
|
|
722
553
|
case "com.amazonaws.launchwizard#ValidationException":
|
|
723
554
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -729,7 +560,7 @@ var de_ListWorkloadsCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
729
560
|
errorCode
|
|
730
561
|
});
|
|
731
562
|
}
|
|
732
|
-
}, "
|
|
563
|
+
}, "de_CommandError");
|
|
733
564
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(LaunchWizardServiceException);
|
|
734
565
|
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
735
566
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -119,7 +119,7 @@ export const se_ListWorkloadsCommand = async (input, context) => {
|
|
|
119
119
|
};
|
|
120
120
|
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
121
121
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
122
|
-
return
|
|
122
|
+
return de_CommandError(output, context);
|
|
123
123
|
}
|
|
124
124
|
const contents = map({
|
|
125
125
|
$metadata: deserializeMetadata(output),
|
|
@@ -131,37 +131,9 @@ export const de_CreateDeploymentCommand = async (output, context) => {
|
|
|
131
131
|
Object.assign(contents, doc);
|
|
132
132
|
return contents;
|
|
133
133
|
};
|
|
134
|
-
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
135
|
-
const parsedOutput = {
|
|
136
|
-
...output,
|
|
137
|
-
body: await parseErrorBody(output.body, context),
|
|
138
|
-
};
|
|
139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
140
|
-
switch (errorCode) {
|
|
141
|
-
case "InternalServerException":
|
|
142
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
143
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
144
|
-
case "ResourceLimitException":
|
|
145
|
-
case "com.amazonaws.launchwizard#ResourceLimitException":
|
|
146
|
-
throw await de_ResourceLimitExceptionRes(parsedOutput, context);
|
|
147
|
-
case "ResourceNotFoundException":
|
|
148
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
149
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
150
|
-
case "ValidationException":
|
|
151
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
152
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
153
|
-
default:
|
|
154
|
-
const parsedBody = parsedOutput.body;
|
|
155
|
-
return throwDefaultError({
|
|
156
|
-
output,
|
|
157
|
-
parsedBody,
|
|
158
|
-
errorCode,
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
134
|
export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
163
135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
164
|
-
return
|
|
136
|
+
return de_CommandError(output, context);
|
|
165
137
|
}
|
|
166
138
|
const contents = map({
|
|
167
139
|
$metadata: deserializeMetadata(output),
|
|
@@ -174,34 +146,9 @@ export const de_DeleteDeploymentCommand = async (output, context) => {
|
|
|
174
146
|
Object.assign(contents, doc);
|
|
175
147
|
return contents;
|
|
176
148
|
};
|
|
177
|
-
const de_DeleteDeploymentCommandError = 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 "InternalServerException":
|
|
185
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
186
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
187
|
-
case "ResourceNotFoundException":
|
|
188
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
189
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
190
|
-
case "ValidationException":
|
|
191
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
192
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
193
|
-
default:
|
|
194
|
-
const parsedBody = parsedOutput.body;
|
|
195
|
-
return throwDefaultError({
|
|
196
|
-
output,
|
|
197
|
-
parsedBody,
|
|
198
|
-
errorCode,
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
149
|
export const de_GetDeploymentCommand = async (output, context) => {
|
|
203
150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
204
|
-
return
|
|
151
|
+
return de_CommandError(output, context);
|
|
205
152
|
}
|
|
206
153
|
const contents = map({
|
|
207
154
|
$metadata: deserializeMetadata(output),
|
|
@@ -213,34 +160,9 @@ export const de_GetDeploymentCommand = async (output, context) => {
|
|
|
213
160
|
Object.assign(contents, doc);
|
|
214
161
|
return contents;
|
|
215
162
|
};
|
|
216
|
-
const de_GetDeploymentCommandError = async (output, context) => {
|
|
217
|
-
const parsedOutput = {
|
|
218
|
-
...output,
|
|
219
|
-
body: await parseErrorBody(output.body, context),
|
|
220
|
-
};
|
|
221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
222
|
-
switch (errorCode) {
|
|
223
|
-
case "InternalServerException":
|
|
224
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
225
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
226
|
-
case "ResourceNotFoundException":
|
|
227
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
228
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
229
|
-
case "ValidationException":
|
|
230
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
231
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
232
|
-
default:
|
|
233
|
-
const parsedBody = parsedOutput.body;
|
|
234
|
-
return throwDefaultError({
|
|
235
|
-
output,
|
|
236
|
-
parsedBody,
|
|
237
|
-
errorCode,
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
163
|
export const de_GetWorkloadCommand = async (output, context) => {
|
|
242
164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
243
|
-
return
|
|
165
|
+
return de_CommandError(output, context);
|
|
244
166
|
}
|
|
245
167
|
const contents = map({
|
|
246
168
|
$metadata: deserializeMetadata(output),
|
|
@@ -252,34 +174,9 @@ export const de_GetWorkloadCommand = async (output, context) => {
|
|
|
252
174
|
Object.assign(contents, doc);
|
|
253
175
|
return contents;
|
|
254
176
|
};
|
|
255
|
-
const de_GetWorkloadCommandError = async (output, context) => {
|
|
256
|
-
const parsedOutput = {
|
|
257
|
-
...output,
|
|
258
|
-
body: await parseErrorBody(output.body, context),
|
|
259
|
-
};
|
|
260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
261
|
-
switch (errorCode) {
|
|
262
|
-
case "InternalServerException":
|
|
263
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
264
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
265
|
-
case "ResourceNotFoundException":
|
|
266
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
267
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
268
|
-
case "ValidationException":
|
|
269
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
270
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
271
|
-
default:
|
|
272
|
-
const parsedBody = parsedOutput.body;
|
|
273
|
-
return throwDefaultError({
|
|
274
|
-
output,
|
|
275
|
-
parsedBody,
|
|
276
|
-
errorCode,
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
177
|
export const de_ListDeploymentEventsCommand = async (output, context) => {
|
|
281
178
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
282
|
-
return
|
|
179
|
+
return de_CommandError(output, context);
|
|
283
180
|
}
|
|
284
181
|
const contents = map({
|
|
285
182
|
$metadata: deserializeMetadata(output),
|
|
@@ -292,34 +189,9 @@ export const de_ListDeploymentEventsCommand = async (output, context) => {
|
|
|
292
189
|
Object.assign(contents, doc);
|
|
293
190
|
return contents;
|
|
294
191
|
};
|
|
295
|
-
const de_ListDeploymentEventsCommandError = async (output, context) => {
|
|
296
|
-
const parsedOutput = {
|
|
297
|
-
...output,
|
|
298
|
-
body: await parseErrorBody(output.body, context),
|
|
299
|
-
};
|
|
300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
301
|
-
switch (errorCode) {
|
|
302
|
-
case "InternalServerException":
|
|
303
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
305
|
-
case "ResourceNotFoundException":
|
|
306
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
307
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
308
|
-
case "ValidationException":
|
|
309
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
310
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
311
|
-
default:
|
|
312
|
-
const parsedBody = parsedOutput.body;
|
|
313
|
-
return throwDefaultError({
|
|
314
|
-
output,
|
|
315
|
-
parsedBody,
|
|
316
|
-
errorCode,
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
192
|
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
321
193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
322
|
-
return
|
|
194
|
+
return de_CommandError(output, context);
|
|
323
195
|
}
|
|
324
196
|
const contents = map({
|
|
325
197
|
$metadata: deserializeMetadata(output),
|
|
@@ -332,31 +204,9 @@ export const de_ListDeploymentsCommand = async (output, context) => {
|
|
|
332
204
|
Object.assign(contents, doc);
|
|
333
205
|
return contents;
|
|
334
206
|
};
|
|
335
|
-
const de_ListDeploymentsCommandError = async (output, context) => {
|
|
336
|
-
const parsedOutput = {
|
|
337
|
-
...output,
|
|
338
|
-
body: await parseErrorBody(output.body, context),
|
|
339
|
-
};
|
|
340
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
341
|
-
switch (errorCode) {
|
|
342
|
-
case "InternalServerException":
|
|
343
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
344
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
345
|
-
case "ValidationException":
|
|
346
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
347
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
348
|
-
default:
|
|
349
|
-
const parsedBody = parsedOutput.body;
|
|
350
|
-
return throwDefaultError({
|
|
351
|
-
output,
|
|
352
|
-
parsedBody,
|
|
353
|
-
errorCode,
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
207
|
export const de_ListWorkloadDeploymentPatternsCommand = async (output, context) => {
|
|
358
208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
359
|
-
return
|
|
209
|
+
return de_CommandError(output, context);
|
|
360
210
|
}
|
|
361
211
|
const contents = map({
|
|
362
212
|
$metadata: deserializeMetadata(output),
|
|
@@ -369,34 +219,9 @@ export const de_ListWorkloadDeploymentPatternsCommand = async (output, context)
|
|
|
369
219
|
Object.assign(contents, doc);
|
|
370
220
|
return contents;
|
|
371
221
|
};
|
|
372
|
-
const de_ListWorkloadDeploymentPatternsCommandError = async (output, context) => {
|
|
373
|
-
const parsedOutput = {
|
|
374
|
-
...output,
|
|
375
|
-
body: await parseErrorBody(output.body, context),
|
|
376
|
-
};
|
|
377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
378
|
-
switch (errorCode) {
|
|
379
|
-
case "InternalServerException":
|
|
380
|
-
case "com.amazonaws.launchwizard#InternalServerException":
|
|
381
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
382
|
-
case "ResourceNotFoundException":
|
|
383
|
-
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
385
|
-
case "ValidationException":
|
|
386
|
-
case "com.amazonaws.launchwizard#ValidationException":
|
|
387
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
388
|
-
default:
|
|
389
|
-
const parsedBody = parsedOutput.body;
|
|
390
|
-
return throwDefaultError({
|
|
391
|
-
output,
|
|
392
|
-
parsedBody,
|
|
393
|
-
errorCode,
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
222
|
export const de_ListWorkloadsCommand = async (output, context) => {
|
|
398
223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
399
|
-
return
|
|
224
|
+
return de_CommandError(output, context);
|
|
400
225
|
}
|
|
401
226
|
const contents = map({
|
|
402
227
|
$metadata: deserializeMetadata(output),
|
|
@@ -409,7 +234,7 @@ export const de_ListWorkloadsCommand = async (output, context) => {
|
|
|
409
234
|
Object.assign(contents, doc);
|
|
410
235
|
return contents;
|
|
411
236
|
};
|
|
412
|
-
const
|
|
237
|
+
const de_CommandError = async (output, context) => {
|
|
413
238
|
const parsedOutput = {
|
|
414
239
|
...output,
|
|
415
240
|
body: await parseErrorBody(output.body, context),
|
|
@@ -419,6 +244,12 @@ const de_ListWorkloadsCommandError = async (output, context) => {
|
|
|
419
244
|
case "InternalServerException":
|
|
420
245
|
case "com.amazonaws.launchwizard#InternalServerException":
|
|
421
246
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
247
|
+
case "ResourceLimitException":
|
|
248
|
+
case "com.amazonaws.launchwizard#ResourceLimitException":
|
|
249
|
+
throw await de_ResourceLimitExceptionRes(parsedOutput, context);
|
|
250
|
+
case "ResourceNotFoundException":
|
|
251
|
+
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
252
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
422
253
|
case "ValidationException":
|
|
423
254
|
case "com.amazonaws.launchwizard#ValidationException":
|
|
424
255
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-launch-wizard",
|
|
3
3
|
"description": "AWS SDK for JavaScript Launch Wizard Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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-launch-wizard",
|
|
@@ -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.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|