@aws-sdk/client-simspaceweaver 3.312.0 → 3.315.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/protocols/Aws_restJson1.js +167 -392
- package/dist-es/protocols/Aws_restJson1.js +139 -364
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { SimSpaceWeaverServiceException as __BaseException } from "../models/SimSpaceWeaverServiceException";
|
|
@@ -148,14 +148,14 @@ export const se_StartAppCommand = async (input, context) => {
|
|
|
148
148
|
};
|
|
149
149
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startapp";
|
|
150
150
|
let body;
|
|
151
|
-
body = JSON.stringify({
|
|
152
|
-
ClientToken:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
});
|
|
151
|
+
body = JSON.stringify(take(input, {
|
|
152
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
153
|
+
Description: [],
|
|
154
|
+
Domain: [],
|
|
155
|
+
LaunchOverrides: (_) => _json(_),
|
|
156
|
+
Name: [],
|
|
157
|
+
Simulation: [],
|
|
158
|
+
}));
|
|
159
159
|
return new __HttpRequest({
|
|
160
160
|
protocol,
|
|
161
161
|
hostname,
|
|
@@ -173,9 +173,9 @@ export const se_StartClockCommand = async (input, context) => {
|
|
|
173
173
|
};
|
|
174
174
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startclock";
|
|
175
175
|
let body;
|
|
176
|
-
body = JSON.stringify({
|
|
177
|
-
|
|
178
|
-
});
|
|
176
|
+
body = JSON.stringify(take(input, {
|
|
177
|
+
Simulation: [],
|
|
178
|
+
}));
|
|
179
179
|
return new __HttpRequest({
|
|
180
180
|
protocol,
|
|
181
181
|
hostname,
|
|
@@ -193,15 +193,15 @@ export const se_StartSimulationCommand = async (input, context) => {
|
|
|
193
193
|
};
|
|
194
194
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startsimulation";
|
|
195
195
|
let body;
|
|
196
|
-
body = JSON.stringify({
|
|
197
|
-
ClientToken:
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
});
|
|
196
|
+
body = JSON.stringify(take(input, {
|
|
197
|
+
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
198
|
+
Description: [],
|
|
199
|
+
MaximumDuration: [],
|
|
200
|
+
Name: [],
|
|
201
|
+
RoleArn: [],
|
|
202
|
+
SchemaS3Location: (_) => _json(_),
|
|
203
|
+
Tags: (_) => _json(_),
|
|
204
|
+
}));
|
|
205
205
|
return new __HttpRequest({
|
|
206
206
|
protocol,
|
|
207
207
|
hostname,
|
|
@@ -219,11 +219,11 @@ export const se_StopAppCommand = async (input, context) => {
|
|
|
219
219
|
};
|
|
220
220
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stopapp";
|
|
221
221
|
let body;
|
|
222
|
-
body = JSON.stringify({
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
});
|
|
222
|
+
body = JSON.stringify(take(input, {
|
|
223
|
+
App: [],
|
|
224
|
+
Domain: [],
|
|
225
|
+
Simulation: [],
|
|
226
|
+
}));
|
|
227
227
|
return new __HttpRequest({
|
|
228
228
|
protocol,
|
|
229
229
|
hostname,
|
|
@@ -241,9 +241,9 @@ export const se_StopClockCommand = async (input, context) => {
|
|
|
241
241
|
};
|
|
242
242
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stopclock";
|
|
243
243
|
let body;
|
|
244
|
-
body = JSON.stringify({
|
|
245
|
-
|
|
246
|
-
});
|
|
244
|
+
body = JSON.stringify(take(input, {
|
|
245
|
+
Simulation: [],
|
|
246
|
+
}));
|
|
247
247
|
return new __HttpRequest({
|
|
248
248
|
protocol,
|
|
249
249
|
hostname,
|
|
@@ -261,9 +261,9 @@ export const se_StopSimulationCommand = async (input, context) => {
|
|
|
261
261
|
};
|
|
262
262
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stopsimulation";
|
|
263
263
|
let body;
|
|
264
|
-
body = JSON.stringify({
|
|
265
|
-
|
|
266
|
-
});
|
|
264
|
+
body = JSON.stringify(take(input, {
|
|
265
|
+
Simulation: [],
|
|
266
|
+
}));
|
|
267
267
|
return new __HttpRequest({
|
|
268
268
|
protocol,
|
|
269
269
|
hostname,
|
|
@@ -282,9 +282,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
282
282
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
283
283
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify({
|
|
286
|
-
|
|
287
|
-
});
|
|
285
|
+
body = JSON.stringify(take(input, {
|
|
286
|
+
Tags: (_) => _json(_),
|
|
287
|
+
}));
|
|
288
288
|
return new __HttpRequest({
|
|
289
289
|
protocol,
|
|
290
290
|
hostname,
|
|
@@ -352,10 +352,9 @@ const de_DeleteAppCommandError = async (output, context) => {
|
|
|
352
352
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
353
353
|
default:
|
|
354
354
|
const parsedBody = parsedOutput.body;
|
|
355
|
-
throwDefaultError({
|
|
355
|
+
return throwDefaultError({
|
|
356
356
|
output,
|
|
357
357
|
parsedBody,
|
|
358
|
-
exceptionCtor: __BaseException,
|
|
359
358
|
errorCode,
|
|
360
359
|
});
|
|
361
360
|
}
|
|
@@ -394,10 +393,9 @@ const de_DeleteSimulationCommandError = async (output, context) => {
|
|
|
394
393
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
395
394
|
default:
|
|
396
395
|
const parsedBody = parsedOutput.body;
|
|
397
|
-
throwDefaultError({
|
|
396
|
+
return throwDefaultError({
|
|
398
397
|
output,
|
|
399
398
|
parsedBody,
|
|
400
|
-
exceptionCtor: __BaseException,
|
|
401
399
|
errorCode,
|
|
402
400
|
});
|
|
403
401
|
}
|
|
@@ -410,30 +408,17 @@ export const de_DescribeAppCommand = async (output, context) => {
|
|
|
410
408
|
$metadata: deserializeMetadata(output),
|
|
411
409
|
});
|
|
412
410
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
if (data.Name != null) {
|
|
426
|
-
contents.Name = __expectString(data.Name);
|
|
427
|
-
}
|
|
428
|
-
if (data.Simulation != null) {
|
|
429
|
-
contents.Simulation = __expectString(data.Simulation);
|
|
430
|
-
}
|
|
431
|
-
if (data.Status != null) {
|
|
432
|
-
contents.Status = __expectString(data.Status);
|
|
433
|
-
}
|
|
434
|
-
if (data.TargetStatus != null) {
|
|
435
|
-
contents.TargetStatus = __expectString(data.TargetStatus);
|
|
436
|
-
}
|
|
411
|
+
const doc = take(data, {
|
|
412
|
+
Description: __expectString,
|
|
413
|
+
Domain: __expectString,
|
|
414
|
+
EndpointInfo: _json,
|
|
415
|
+
LaunchOverrides: _json,
|
|
416
|
+
Name: __expectString,
|
|
417
|
+
Simulation: __expectString,
|
|
418
|
+
Status: __expectString,
|
|
419
|
+
TargetStatus: __expectString,
|
|
420
|
+
});
|
|
421
|
+
Object.assign(contents, doc);
|
|
437
422
|
return contents;
|
|
438
423
|
};
|
|
439
424
|
const de_DescribeAppCommandError = async (output, context) => {
|
|
@@ -457,10 +442,9 @@ const de_DescribeAppCommandError = async (output, context) => {
|
|
|
457
442
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
458
443
|
default:
|
|
459
444
|
const parsedBody = parsedOutput.body;
|
|
460
|
-
throwDefaultError({
|
|
445
|
+
return throwDefaultError({
|
|
461
446
|
output,
|
|
462
447
|
parsedBody,
|
|
463
|
-
exceptionCtor: __BaseException,
|
|
464
448
|
errorCode,
|
|
465
449
|
});
|
|
466
450
|
}
|
|
@@ -473,45 +457,22 @@ export const de_DescribeSimulationCommand = async (output, context) => {
|
|
|
473
457
|
$metadata: deserializeMetadata(output),
|
|
474
458
|
});
|
|
475
459
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
contents.LoggingConfiguration = de_LoggingConfiguration(data.LoggingConfiguration, context);
|
|
493
|
-
}
|
|
494
|
-
if (data.MaximumDuration != null) {
|
|
495
|
-
contents.MaximumDuration = __expectString(data.MaximumDuration);
|
|
496
|
-
}
|
|
497
|
-
if (data.Name != null) {
|
|
498
|
-
contents.Name = __expectString(data.Name);
|
|
499
|
-
}
|
|
500
|
-
if (data.RoleArn != null) {
|
|
501
|
-
contents.RoleArn = __expectString(data.RoleArn);
|
|
502
|
-
}
|
|
503
|
-
if (data.SchemaError != null) {
|
|
504
|
-
contents.SchemaError = __expectString(data.SchemaError);
|
|
505
|
-
}
|
|
506
|
-
if (data.SchemaS3Location != null) {
|
|
507
|
-
contents.SchemaS3Location = de_S3Location(data.SchemaS3Location, context);
|
|
508
|
-
}
|
|
509
|
-
if (data.Status != null) {
|
|
510
|
-
contents.Status = __expectString(data.Status);
|
|
511
|
-
}
|
|
512
|
-
if (data.TargetStatus != null) {
|
|
513
|
-
contents.TargetStatus = __expectString(data.TargetStatus);
|
|
514
|
-
}
|
|
460
|
+
const doc = take(data, {
|
|
461
|
+
Arn: __expectString,
|
|
462
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
463
|
+
Description: __expectString,
|
|
464
|
+
ExecutionId: __expectString,
|
|
465
|
+
LiveSimulationState: _json,
|
|
466
|
+
LoggingConfiguration: _json,
|
|
467
|
+
MaximumDuration: __expectString,
|
|
468
|
+
Name: __expectString,
|
|
469
|
+
RoleArn: __expectString,
|
|
470
|
+
SchemaError: __expectString,
|
|
471
|
+
SchemaS3Location: _json,
|
|
472
|
+
Status: __expectString,
|
|
473
|
+
TargetStatus: __expectString,
|
|
474
|
+
});
|
|
475
|
+
Object.assign(contents, doc);
|
|
515
476
|
return contents;
|
|
516
477
|
};
|
|
517
478
|
const de_DescribeSimulationCommandError = async (output, context) => {
|
|
@@ -535,10 +496,9 @@ const de_DescribeSimulationCommandError = async (output, context) => {
|
|
|
535
496
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
536
497
|
default:
|
|
537
498
|
const parsedBody = parsedOutput.body;
|
|
538
|
-
throwDefaultError({
|
|
499
|
+
return throwDefaultError({
|
|
539
500
|
output,
|
|
540
501
|
parsedBody,
|
|
541
|
-
exceptionCtor: __BaseException,
|
|
542
502
|
errorCode,
|
|
543
503
|
});
|
|
544
504
|
}
|
|
@@ -551,12 +511,11 @@ export const de_ListAppsCommand = async (output, context) => {
|
|
|
551
511
|
$metadata: deserializeMetadata(output),
|
|
552
512
|
});
|
|
553
513
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
514
|
+
const doc = take(data, {
|
|
515
|
+
Apps: _json,
|
|
516
|
+
NextToken: __expectString,
|
|
517
|
+
});
|
|
518
|
+
Object.assign(contents, doc);
|
|
560
519
|
return contents;
|
|
561
520
|
};
|
|
562
521
|
const de_ListAppsCommandError = async (output, context) => {
|
|
@@ -580,10 +539,9 @@ const de_ListAppsCommandError = async (output, context) => {
|
|
|
580
539
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
581
540
|
default:
|
|
582
541
|
const parsedBody = parsedOutput.body;
|
|
583
|
-
throwDefaultError({
|
|
542
|
+
return throwDefaultError({
|
|
584
543
|
output,
|
|
585
544
|
parsedBody,
|
|
586
|
-
exceptionCtor: __BaseException,
|
|
587
545
|
errorCode,
|
|
588
546
|
});
|
|
589
547
|
}
|
|
@@ -596,12 +554,11 @@ export const de_ListSimulationsCommand = async (output, context) => {
|
|
|
596
554
|
$metadata: deserializeMetadata(output),
|
|
597
555
|
});
|
|
598
556
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
}
|
|
557
|
+
const doc = take(data, {
|
|
558
|
+
NextToken: __expectString,
|
|
559
|
+
Simulations: (_) => de_SimulationList(_, context),
|
|
560
|
+
});
|
|
561
|
+
Object.assign(contents, doc);
|
|
605
562
|
return contents;
|
|
606
563
|
};
|
|
607
564
|
const de_ListSimulationsCommandError = async (output, context) => {
|
|
@@ -622,10 +579,9 @@ const de_ListSimulationsCommandError = async (output, context) => {
|
|
|
622
579
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
623
580
|
default:
|
|
624
581
|
const parsedBody = parsedOutput.body;
|
|
625
|
-
throwDefaultError({
|
|
582
|
+
return throwDefaultError({
|
|
626
583
|
output,
|
|
627
584
|
parsedBody,
|
|
628
|
-
exceptionCtor: __BaseException,
|
|
629
585
|
errorCode,
|
|
630
586
|
});
|
|
631
587
|
}
|
|
@@ -638,9 +594,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
638
594
|
$metadata: deserializeMetadata(output),
|
|
639
595
|
});
|
|
640
596
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
597
|
+
const doc = take(data, {
|
|
598
|
+
Tags: _json,
|
|
599
|
+
});
|
|
600
|
+
Object.assign(contents, doc);
|
|
644
601
|
return contents;
|
|
645
602
|
};
|
|
646
603
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -658,10 +615,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
658
615
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
659
616
|
default:
|
|
660
617
|
const parsedBody = parsedOutput.body;
|
|
661
|
-
throwDefaultError({
|
|
618
|
+
return throwDefaultError({
|
|
662
619
|
output,
|
|
663
620
|
parsedBody,
|
|
664
|
-
exceptionCtor: __BaseException,
|
|
665
621
|
errorCode,
|
|
666
622
|
});
|
|
667
623
|
}
|
|
@@ -674,15 +630,12 @@ export const de_StartAppCommand = async (output, context) => {
|
|
|
674
630
|
$metadata: deserializeMetadata(output),
|
|
675
631
|
});
|
|
676
632
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
if (data.Simulation != null) {
|
|
684
|
-
contents.Simulation = __expectString(data.Simulation);
|
|
685
|
-
}
|
|
633
|
+
const doc = take(data, {
|
|
634
|
+
Domain: __expectString,
|
|
635
|
+
Name: __expectString,
|
|
636
|
+
Simulation: __expectString,
|
|
637
|
+
});
|
|
638
|
+
Object.assign(contents, doc);
|
|
686
639
|
return contents;
|
|
687
640
|
};
|
|
688
641
|
const de_StartAppCommandError = async (output, context) => {
|
|
@@ -709,10 +662,9 @@ const de_StartAppCommandError = async (output, context) => {
|
|
|
709
662
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
710
663
|
default:
|
|
711
664
|
const parsedBody = parsedOutput.body;
|
|
712
|
-
throwDefaultError({
|
|
665
|
+
return throwDefaultError({
|
|
713
666
|
output,
|
|
714
667
|
parsedBody,
|
|
715
|
-
exceptionCtor: __BaseException,
|
|
716
668
|
errorCode,
|
|
717
669
|
});
|
|
718
670
|
}
|
|
@@ -751,10 +703,9 @@ const de_StartClockCommandError = async (output, context) => {
|
|
|
751
703
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
752
704
|
default:
|
|
753
705
|
const parsedBody = parsedOutput.body;
|
|
754
|
-
throwDefaultError({
|
|
706
|
+
return throwDefaultError({
|
|
755
707
|
output,
|
|
756
708
|
parsedBody,
|
|
757
|
-
exceptionCtor: __BaseException,
|
|
758
709
|
errorCode,
|
|
759
710
|
});
|
|
760
711
|
}
|
|
@@ -767,15 +718,12 @@ export const de_StartSimulationCommand = async (output, context) => {
|
|
|
767
718
|
$metadata: deserializeMetadata(output),
|
|
768
719
|
});
|
|
769
720
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
if (data.ExecutionId != null) {
|
|
777
|
-
contents.ExecutionId = __expectString(data.ExecutionId);
|
|
778
|
-
}
|
|
721
|
+
const doc = take(data, {
|
|
722
|
+
Arn: __expectString,
|
|
723
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
724
|
+
ExecutionId: __expectString,
|
|
725
|
+
});
|
|
726
|
+
Object.assign(contents, doc);
|
|
779
727
|
return contents;
|
|
780
728
|
};
|
|
781
729
|
const de_StartSimulationCommandError = async (output, context) => {
|
|
@@ -802,10 +750,9 @@ const de_StartSimulationCommandError = async (output, context) => {
|
|
|
802
750
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
803
751
|
default:
|
|
804
752
|
const parsedBody = parsedOutput.body;
|
|
805
|
-
throwDefaultError({
|
|
753
|
+
return throwDefaultError({
|
|
806
754
|
output,
|
|
807
755
|
parsedBody,
|
|
808
|
-
exceptionCtor: __BaseException,
|
|
809
756
|
errorCode,
|
|
810
757
|
});
|
|
811
758
|
}
|
|
@@ -844,10 +791,9 @@ const de_StopAppCommandError = async (output, context) => {
|
|
|
844
791
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
845
792
|
default:
|
|
846
793
|
const parsedBody = parsedOutput.body;
|
|
847
|
-
throwDefaultError({
|
|
794
|
+
return throwDefaultError({
|
|
848
795
|
output,
|
|
849
796
|
parsedBody,
|
|
850
|
-
exceptionCtor: __BaseException,
|
|
851
797
|
errorCode,
|
|
852
798
|
});
|
|
853
799
|
}
|
|
@@ -886,10 +832,9 @@ const de_StopClockCommandError = async (output, context) => {
|
|
|
886
832
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
887
833
|
default:
|
|
888
834
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
throwDefaultError({
|
|
835
|
+
return throwDefaultError({
|
|
890
836
|
output,
|
|
891
837
|
parsedBody,
|
|
892
|
-
exceptionCtor: __BaseException,
|
|
893
838
|
errorCode,
|
|
894
839
|
});
|
|
895
840
|
}
|
|
@@ -928,10 +873,9 @@ const de_StopSimulationCommandError = async (output, context) => {
|
|
|
928
873
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
929
874
|
default:
|
|
930
875
|
const parsedBody = parsedOutput.body;
|
|
931
|
-
throwDefaultError({
|
|
876
|
+
return throwDefaultError({
|
|
932
877
|
output,
|
|
933
878
|
parsedBody,
|
|
934
|
-
exceptionCtor: __BaseException,
|
|
935
879
|
errorCode,
|
|
936
880
|
});
|
|
937
881
|
}
|
|
@@ -964,10 +908,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
964
908
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
909
|
default:
|
|
966
910
|
const parsedBody = parsedOutput.body;
|
|
967
|
-
throwDefaultError({
|
|
911
|
+
return throwDefaultError({
|
|
968
912
|
output,
|
|
969
913
|
parsedBody,
|
|
970
|
-
exceptionCtor: __BaseException,
|
|
971
914
|
errorCode,
|
|
972
915
|
});
|
|
973
916
|
}
|
|
@@ -997,21 +940,21 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
997
940
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
998
941
|
default:
|
|
999
942
|
const parsedBody = parsedOutput.body;
|
|
1000
|
-
throwDefaultError({
|
|
943
|
+
return throwDefaultError({
|
|
1001
944
|
output,
|
|
1002
945
|
parsedBody,
|
|
1003
|
-
exceptionCtor: __BaseException,
|
|
1004
946
|
errorCode,
|
|
1005
947
|
});
|
|
1006
948
|
}
|
|
1007
949
|
};
|
|
1008
|
-
const
|
|
950
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1009
951
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1010
952
|
const contents = map({});
|
|
1011
953
|
const data = parsedOutput.body;
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
}
|
|
954
|
+
const doc = take(data, {
|
|
955
|
+
Message: __expectString,
|
|
956
|
+
});
|
|
957
|
+
Object.assign(contents, doc);
|
|
1015
958
|
const exception = new AccessDeniedException({
|
|
1016
959
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1017
960
|
...contents,
|
|
@@ -1021,9 +964,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1021
964
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1022
965
|
const contents = map({});
|
|
1023
966
|
const data = parsedOutput.body;
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
}
|
|
967
|
+
const doc = take(data, {
|
|
968
|
+
Message: __expectString,
|
|
969
|
+
});
|
|
970
|
+
Object.assign(contents, doc);
|
|
1027
971
|
const exception = new ConflictException({
|
|
1028
972
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1029
973
|
...contents,
|
|
@@ -1033,9 +977,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1033
977
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1034
978
|
const contents = map({});
|
|
1035
979
|
const data = parsedOutput.body;
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
}
|
|
980
|
+
const doc = take(data, {
|
|
981
|
+
Message: __expectString,
|
|
982
|
+
});
|
|
983
|
+
Object.assign(contents, doc);
|
|
1039
984
|
const exception = new InternalServerException({
|
|
1040
985
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1041
986
|
...contents,
|
|
@@ -1045,9 +990,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1045
990
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1046
991
|
const contents = map({});
|
|
1047
992
|
const data = parsedOutput.body;
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
}
|
|
993
|
+
const doc = take(data, {
|
|
994
|
+
Message: __expectString,
|
|
995
|
+
});
|
|
996
|
+
Object.assign(contents, doc);
|
|
1051
997
|
const exception = new ResourceNotFoundException({
|
|
1052
998
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1053
999
|
...contents,
|
|
@@ -1057,9 +1003,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1057
1003
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1058
1004
|
const contents = map({});
|
|
1059
1005
|
const data = parsedOutput.body;
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
}
|
|
1006
|
+
const doc = take(data, {
|
|
1007
|
+
Message: __expectString,
|
|
1008
|
+
});
|
|
1009
|
+
Object.assign(contents, doc);
|
|
1063
1010
|
const exception = new ServiceQuotaExceededException({
|
|
1064
1011
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1065
1012
|
...contents,
|
|
@@ -1069,9 +1016,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1069
1016
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1070
1017
|
const contents = map({});
|
|
1071
1018
|
const data = parsedOutput.body;
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
}
|
|
1019
|
+
const doc = take(data, {
|
|
1020
|
+
Message: __expectString,
|
|
1021
|
+
});
|
|
1022
|
+
Object.assign(contents, doc);
|
|
1075
1023
|
const exception = new TooManyTagsException({
|
|
1076
1024
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1077
1025
|
...contents,
|
|
@@ -1081,205 +1029,32 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1081
1029
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1082
1030
|
const contents = map({});
|
|
1083
1031
|
const data = parsedOutput.body;
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
}
|
|
1032
|
+
const doc = take(data, {
|
|
1033
|
+
Message: __expectString,
|
|
1034
|
+
});
|
|
1035
|
+
Object.assign(contents, doc);
|
|
1087
1036
|
const exception = new ValidationException({
|
|
1088
1037
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1089
1038
|
...contents,
|
|
1090
1039
|
});
|
|
1091
1040
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1092
1041
|
};
|
|
1093
|
-
const se_LaunchCommandList = (input, context) => {
|
|
1094
|
-
return input
|
|
1095
|
-
.filter((e) => e != null)
|
|
1096
|
-
.map((entry) => {
|
|
1097
|
-
return entry;
|
|
1098
|
-
});
|
|
1099
|
-
};
|
|
1100
|
-
const se_LaunchOverrides = (input, context) => {
|
|
1101
|
-
return {
|
|
1102
|
-
...(input.LaunchCommands != null && { LaunchCommands: se_LaunchCommandList(input.LaunchCommands, context) }),
|
|
1103
|
-
};
|
|
1104
|
-
};
|
|
1105
|
-
const se_S3Location = (input, context) => {
|
|
1106
|
-
return {
|
|
1107
|
-
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1108
|
-
...(input.ObjectKey != null && { ObjectKey: input.ObjectKey }),
|
|
1109
|
-
};
|
|
1110
|
-
};
|
|
1111
|
-
const se_TagMap = (input, context) => {
|
|
1112
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1113
|
-
if (value === null) {
|
|
1114
|
-
return acc;
|
|
1115
|
-
}
|
|
1116
|
-
acc[key] = value;
|
|
1117
|
-
return acc;
|
|
1118
|
-
}, {});
|
|
1119
|
-
};
|
|
1120
|
-
const de_AppPortMappings = (output, context) => {
|
|
1121
|
-
const retVal = (output || [])
|
|
1122
|
-
.filter((e) => e != null)
|
|
1123
|
-
.map((entry) => {
|
|
1124
|
-
if (entry === null) {
|
|
1125
|
-
return null;
|
|
1126
|
-
}
|
|
1127
|
-
return de_SimulationAppPortMapping(entry, context);
|
|
1128
|
-
});
|
|
1129
|
-
return retVal;
|
|
1130
|
-
};
|
|
1131
|
-
const de_CloudWatchLogsLogGroup = (output, context) => {
|
|
1132
|
-
return {
|
|
1133
|
-
LogGroupArn: __expectString(output.LogGroupArn),
|
|
1134
|
-
};
|
|
1135
|
-
};
|
|
1136
|
-
const de_Domain = (output, context) => {
|
|
1137
|
-
return {
|
|
1138
|
-
Lifecycle: __expectString(output.Lifecycle),
|
|
1139
|
-
Name: __expectString(output.Name),
|
|
1140
|
-
};
|
|
1141
|
-
};
|
|
1142
|
-
const de_DomainList = (output, context) => {
|
|
1143
|
-
const retVal = (output || [])
|
|
1144
|
-
.filter((e) => e != null)
|
|
1145
|
-
.map((entry) => {
|
|
1146
|
-
if (entry === null) {
|
|
1147
|
-
return null;
|
|
1148
|
-
}
|
|
1149
|
-
return de_Domain(entry, context);
|
|
1150
|
-
});
|
|
1151
|
-
return retVal;
|
|
1152
|
-
};
|
|
1153
|
-
const de_LaunchCommandList = (output, context) => {
|
|
1154
|
-
const retVal = (output || [])
|
|
1155
|
-
.filter((e) => e != null)
|
|
1156
|
-
.map((entry) => {
|
|
1157
|
-
if (entry === null) {
|
|
1158
|
-
return null;
|
|
1159
|
-
}
|
|
1160
|
-
return __expectString(entry);
|
|
1161
|
-
});
|
|
1162
|
-
return retVal;
|
|
1163
|
-
};
|
|
1164
|
-
const de_LaunchOverrides = (output, context) => {
|
|
1165
|
-
return {
|
|
1166
|
-
LaunchCommands: output.LaunchCommands != null ? de_LaunchCommandList(output.LaunchCommands, context) : undefined,
|
|
1167
|
-
};
|
|
1168
|
-
};
|
|
1169
|
-
const de_LiveSimulationState = (output, context) => {
|
|
1170
|
-
return {
|
|
1171
|
-
Clocks: output.Clocks != null ? de_SimulationClockList(output.Clocks, context) : undefined,
|
|
1172
|
-
Domains: output.Domains != null ? de_DomainList(output.Domains, context) : undefined,
|
|
1173
|
-
};
|
|
1174
|
-
};
|
|
1175
|
-
const de_LogDestination = (output, context) => {
|
|
1176
|
-
return {
|
|
1177
|
-
CloudWatchLogsLogGroup: output.CloudWatchLogsLogGroup != null
|
|
1178
|
-
? de_CloudWatchLogsLogGroup(output.CloudWatchLogsLogGroup, context)
|
|
1179
|
-
: undefined,
|
|
1180
|
-
};
|
|
1181
|
-
};
|
|
1182
|
-
const de_LogDestinations = (output, context) => {
|
|
1183
|
-
const retVal = (output || [])
|
|
1184
|
-
.filter((e) => e != null)
|
|
1185
|
-
.map((entry) => {
|
|
1186
|
-
if (entry === null) {
|
|
1187
|
-
return null;
|
|
1188
|
-
}
|
|
1189
|
-
return de_LogDestination(entry, context);
|
|
1190
|
-
});
|
|
1191
|
-
return retVal;
|
|
1192
|
-
};
|
|
1193
|
-
const de_LoggingConfiguration = (output, context) => {
|
|
1194
|
-
return {
|
|
1195
|
-
Destinations: output.Destinations != null ? de_LogDestinations(output.Destinations, context) : undefined,
|
|
1196
|
-
};
|
|
1197
|
-
};
|
|
1198
|
-
const de_S3Location = (output, context) => {
|
|
1199
|
-
return {
|
|
1200
|
-
BucketName: __expectString(output.BucketName),
|
|
1201
|
-
ObjectKey: __expectString(output.ObjectKey),
|
|
1202
|
-
};
|
|
1203
|
-
};
|
|
1204
|
-
const de_SimulationAppEndpointInfo = (output, context) => {
|
|
1205
|
-
return {
|
|
1206
|
-
Address: __expectString(output.Address),
|
|
1207
|
-
IngressPortMappings: output.IngressPortMappings != null ? de_AppPortMappings(output.IngressPortMappings, context) : undefined,
|
|
1208
|
-
};
|
|
1209
|
-
};
|
|
1210
|
-
const de_SimulationAppList = (output, context) => {
|
|
1211
|
-
const retVal = (output || [])
|
|
1212
|
-
.filter((e) => e != null)
|
|
1213
|
-
.map((entry) => {
|
|
1214
|
-
if (entry === null) {
|
|
1215
|
-
return null;
|
|
1216
|
-
}
|
|
1217
|
-
return de_SimulationAppMetadata(entry, context);
|
|
1218
|
-
});
|
|
1219
|
-
return retVal;
|
|
1220
|
-
};
|
|
1221
|
-
const de_SimulationAppMetadata = (output, context) => {
|
|
1222
|
-
return {
|
|
1223
|
-
Domain: __expectString(output.Domain),
|
|
1224
|
-
Name: __expectString(output.Name),
|
|
1225
|
-
Simulation: __expectString(output.Simulation),
|
|
1226
|
-
Status: __expectString(output.Status),
|
|
1227
|
-
TargetStatus: __expectString(output.TargetStatus),
|
|
1228
|
-
};
|
|
1229
|
-
};
|
|
1230
|
-
const de_SimulationAppPortMapping = (output, context) => {
|
|
1231
|
-
return {
|
|
1232
|
-
Actual: __expectInt32(output.Actual),
|
|
1233
|
-
Declared: __expectInt32(output.Declared),
|
|
1234
|
-
};
|
|
1235
|
-
};
|
|
1236
|
-
const de_SimulationClock = (output, context) => {
|
|
1237
|
-
return {
|
|
1238
|
-
Status: __expectString(output.Status),
|
|
1239
|
-
TargetStatus: __expectString(output.TargetStatus),
|
|
1240
|
-
};
|
|
1241
|
-
};
|
|
1242
|
-
const de_SimulationClockList = (output, context) => {
|
|
1243
|
-
const retVal = (output || [])
|
|
1244
|
-
.filter((e) => e != null)
|
|
1245
|
-
.map((entry) => {
|
|
1246
|
-
if (entry === null) {
|
|
1247
|
-
return null;
|
|
1248
|
-
}
|
|
1249
|
-
return de_SimulationClock(entry, context);
|
|
1250
|
-
});
|
|
1251
|
-
return retVal;
|
|
1252
|
-
};
|
|
1253
1042
|
const de_SimulationList = (output, context) => {
|
|
1254
1043
|
const retVal = (output || [])
|
|
1255
1044
|
.filter((e) => e != null)
|
|
1256
1045
|
.map((entry) => {
|
|
1257
|
-
if (entry === null) {
|
|
1258
|
-
return null;
|
|
1259
|
-
}
|
|
1260
1046
|
return de_SimulationMetadata(entry, context);
|
|
1261
1047
|
});
|
|
1262
1048
|
return retVal;
|
|
1263
1049
|
};
|
|
1264
1050
|
const de_SimulationMetadata = (output, context) => {
|
|
1265
|
-
return {
|
|
1266
|
-
Arn: __expectString
|
|
1267
|
-
CreationTime:
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
TargetStatus: __expectString(output.TargetStatus),
|
|
1273
|
-
};
|
|
1274
|
-
};
|
|
1275
|
-
const de_TagMap = (output, context) => {
|
|
1276
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1277
|
-
if (value === null) {
|
|
1278
|
-
return acc;
|
|
1279
|
-
}
|
|
1280
|
-
acc[key] = __expectString(value);
|
|
1281
|
-
return acc;
|
|
1282
|
-
}, {});
|
|
1051
|
+
return take(output, {
|
|
1052
|
+
Arn: __expectString,
|
|
1053
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1054
|
+
Name: __expectString,
|
|
1055
|
+
Status: __expectString,
|
|
1056
|
+
TargetStatus: __expectString,
|
|
1057
|
+
});
|
|
1283
1058
|
};
|
|
1284
1059
|
const deserializeMetadata = (output) => ({
|
|
1285
1060
|
httpStatusCode: output.statusCode,
|