@aws-sdk/client-migration-hub-refactor-spaces 3.314.0 → 3.316.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/MigrationHubRefactorSpaces.js +28 -336
- package/dist-cjs/protocols/Aws_restJson1.js +437 -928
- package/dist-es/MigrationHubRefactorSpaces.js +29 -337
- package/dist-es/protocols/Aws_restJson1.js +400 -891
- package/dist-types/MigrationHubRefactorSpaces.d.ts +38 -174
- package/dist-types/ts3.4/MigrationHubRefactorSpaces.d.ts +4 -1
- 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, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { MigrationHubRefactorSpacesServiceException as __BaseException } from "../models/MigrationHubRefactorSpacesServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidResourcePolicyException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -12,14 +12,14 @@ export const se_CreateApplicationCommand = async (input, context) => {
|
|
|
12
12
|
"/environments/{EnvironmentIdentifier}/applications";
|
|
13
13
|
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
ClientToken:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
15
|
+
body = JSON.stringify(take(input, {
|
|
16
|
+
ApiGatewayProxy: (_) => _json(_),
|
|
17
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
18
|
+
Name: [],
|
|
19
|
+
ProxyType: [],
|
|
20
|
+
Tags: (_) => _json(_),
|
|
21
|
+
VpcId: [],
|
|
22
|
+
}));
|
|
23
23
|
return new __HttpRequest({
|
|
24
24
|
protocol,
|
|
25
25
|
hostname,
|
|
@@ -37,13 +37,13 @@ export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
37
37
|
};
|
|
38
38
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify({
|
|
41
|
-
ClientToken:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
});
|
|
40
|
+
body = JSON.stringify(take(input, {
|
|
41
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
42
|
+
Description: [],
|
|
43
|
+
Name: [],
|
|
44
|
+
NetworkFabricType: [],
|
|
45
|
+
Tags: (_) => _json(_),
|
|
46
|
+
}));
|
|
47
47
|
return new __HttpRequest({
|
|
48
48
|
protocol,
|
|
49
49
|
hostname,
|
|
@@ -64,14 +64,14 @@ export const se_CreateRouteCommand = async (input, context) => {
|
|
|
64
64
|
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
65
65
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
66
66
|
let body;
|
|
67
|
-
body = JSON.stringify({
|
|
68
|
-
ClientToken:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
});
|
|
67
|
+
body = JSON.stringify(take(input, {
|
|
68
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
69
|
+
DefaultRoute: (_) => _json(_),
|
|
70
|
+
RouteType: [],
|
|
71
|
+
ServiceIdentifier: [],
|
|
72
|
+
Tags: (_) => _json(_),
|
|
73
|
+
UriPathRoute: (_) => _json(_),
|
|
74
|
+
}));
|
|
75
75
|
return new __HttpRequest({
|
|
76
76
|
protocol,
|
|
77
77
|
hostname,
|
|
@@ -92,16 +92,16 @@ export const se_CreateServiceCommand = async (input, context) => {
|
|
|
92
92
|
resolvedPath = __resolvedPath(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
93
93
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify({
|
|
96
|
-
ClientToken:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
});
|
|
95
|
+
body = JSON.stringify(take(input, {
|
|
96
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
97
|
+
Description: [],
|
|
98
|
+
EndpointType: [],
|
|
99
|
+
LambdaEndpoint: (_) => _json(_),
|
|
100
|
+
Name: [],
|
|
101
|
+
Tags: (_) => _json(_),
|
|
102
|
+
UrlEndpoint: (_) => _json(_),
|
|
103
|
+
VpcId: [],
|
|
104
|
+
}));
|
|
105
105
|
return new __HttpRequest({
|
|
106
106
|
protocol,
|
|
107
107
|
hostname,
|
|
@@ -421,10 +421,10 @@ export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
|
421
421
|
};
|
|
422
422
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy";
|
|
423
423
|
let body;
|
|
424
|
-
body = JSON.stringify({
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
});
|
|
424
|
+
body = JSON.stringify(take(input, {
|
|
425
|
+
Policy: [],
|
|
426
|
+
ResourceArn: [],
|
|
427
|
+
}));
|
|
428
428
|
return new __HttpRequest({
|
|
429
429
|
protocol,
|
|
430
430
|
hostname,
|
|
@@ -443,9 +443,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
443
443
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
444
444
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
445
445
|
let body;
|
|
446
|
-
body = JSON.stringify({
|
|
447
|
-
|
|
448
|
-
});
|
|
446
|
+
body = JSON.stringify(take(input, {
|
|
447
|
+
Tags: (_) => _json(_),
|
|
448
|
+
}));
|
|
449
449
|
return new __HttpRequest({
|
|
450
450
|
protocol,
|
|
451
451
|
hostname,
|
|
@@ -490,9 +490,9 @@ export const se_UpdateRouteCommand = async (input, context) => {
|
|
|
490
490
|
resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
491
491
|
resolvedPath = __resolvedPath(resolvedPath, input, "RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
|
|
492
492
|
let body;
|
|
493
|
-
body = JSON.stringify({
|
|
494
|
-
|
|
495
|
-
});
|
|
493
|
+
body = JSON.stringify(take(input, {
|
|
494
|
+
ActivationState: [],
|
|
495
|
+
}));
|
|
496
496
|
return new __HttpRequest({
|
|
497
497
|
protocol,
|
|
498
498
|
hostname,
|
|
@@ -511,45 +511,22 @@ export const de_CreateApplicationCommand = async (output, context) => {
|
|
|
511
511
|
$metadata: deserializeMetadata(output),
|
|
512
512
|
});
|
|
513
513
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
531
|
-
}
|
|
532
|
-
if (data.LastUpdatedTime != null) {
|
|
533
|
-
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
534
|
-
}
|
|
535
|
-
if (data.Name != null) {
|
|
536
|
-
contents.Name = __expectString(data.Name);
|
|
537
|
-
}
|
|
538
|
-
if (data.OwnerAccountId != null) {
|
|
539
|
-
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
540
|
-
}
|
|
541
|
-
if (data.ProxyType != null) {
|
|
542
|
-
contents.ProxyType = __expectString(data.ProxyType);
|
|
543
|
-
}
|
|
544
|
-
if (data.State != null) {
|
|
545
|
-
contents.State = __expectString(data.State);
|
|
546
|
-
}
|
|
547
|
-
if (data.Tags != null) {
|
|
548
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
549
|
-
}
|
|
550
|
-
if (data.VpcId != null) {
|
|
551
|
-
contents.VpcId = __expectString(data.VpcId);
|
|
552
|
-
}
|
|
514
|
+
const doc = take(data, {
|
|
515
|
+
ApiGatewayProxy: _json,
|
|
516
|
+
ApplicationId: __expectString,
|
|
517
|
+
Arn: __expectString,
|
|
518
|
+
CreatedByAccountId: __expectString,
|
|
519
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
520
|
+
EnvironmentId: __expectString,
|
|
521
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
522
|
+
Name: __expectString,
|
|
523
|
+
OwnerAccountId: __expectString,
|
|
524
|
+
ProxyType: __expectString,
|
|
525
|
+
State: __expectString,
|
|
526
|
+
Tags: _json,
|
|
527
|
+
VpcId: __expectString,
|
|
528
|
+
});
|
|
529
|
+
Object.assign(contents, doc);
|
|
553
530
|
return contents;
|
|
554
531
|
};
|
|
555
532
|
const de_CreateApplicationCommandError = async (output, context) => {
|
|
@@ -582,10 +559,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
582
559
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
583
560
|
default:
|
|
584
561
|
const parsedBody = parsedOutput.body;
|
|
585
|
-
throwDefaultError({
|
|
562
|
+
return throwDefaultError({
|
|
586
563
|
output,
|
|
587
564
|
parsedBody,
|
|
588
|
-
exceptionCtor: __BaseException,
|
|
589
565
|
errorCode,
|
|
590
566
|
});
|
|
591
567
|
}
|
|
@@ -598,36 +574,19 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
598
574
|
$metadata: deserializeMetadata(output),
|
|
599
575
|
});
|
|
600
576
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
615
|
-
}
|
|
616
|
-
if (data.Name != null) {
|
|
617
|
-
contents.Name = __expectString(data.Name);
|
|
618
|
-
}
|
|
619
|
-
if (data.NetworkFabricType != null) {
|
|
620
|
-
contents.NetworkFabricType = __expectString(data.NetworkFabricType);
|
|
621
|
-
}
|
|
622
|
-
if (data.OwnerAccountId != null) {
|
|
623
|
-
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
624
|
-
}
|
|
625
|
-
if (data.State != null) {
|
|
626
|
-
contents.State = __expectString(data.State);
|
|
627
|
-
}
|
|
628
|
-
if (data.Tags != null) {
|
|
629
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
630
|
-
}
|
|
577
|
+
const doc = take(data, {
|
|
578
|
+
Arn: __expectString,
|
|
579
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
580
|
+
Description: __expectString,
|
|
581
|
+
EnvironmentId: __expectString,
|
|
582
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
583
|
+
Name: __expectString,
|
|
584
|
+
NetworkFabricType: __expectString,
|
|
585
|
+
OwnerAccountId: __expectString,
|
|
586
|
+
State: __expectString,
|
|
587
|
+
Tags: _json,
|
|
588
|
+
});
|
|
589
|
+
Object.assign(contents, doc);
|
|
631
590
|
return contents;
|
|
632
591
|
};
|
|
633
592
|
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
@@ -660,10 +619,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
|
660
619
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
661
620
|
default:
|
|
662
621
|
const parsedBody = parsedOutput.body;
|
|
663
|
-
throwDefaultError({
|
|
622
|
+
return throwDefaultError({
|
|
664
623
|
output,
|
|
665
624
|
parsedBody,
|
|
666
|
-
exceptionCtor: __BaseException,
|
|
667
625
|
errorCode,
|
|
668
626
|
});
|
|
669
627
|
}
|
|
@@ -676,42 +634,21 @@ export const de_CreateRouteCommand = async (output, context) => {
|
|
|
676
634
|
$metadata: deserializeMetadata(output),
|
|
677
635
|
});
|
|
678
636
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
if (data.OwnerAccountId != null) {
|
|
695
|
-
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
696
|
-
}
|
|
697
|
-
if (data.RouteId != null) {
|
|
698
|
-
contents.RouteId = __expectString(data.RouteId);
|
|
699
|
-
}
|
|
700
|
-
if (data.RouteType != null) {
|
|
701
|
-
contents.RouteType = __expectString(data.RouteType);
|
|
702
|
-
}
|
|
703
|
-
if (data.ServiceId != null) {
|
|
704
|
-
contents.ServiceId = __expectString(data.ServiceId);
|
|
705
|
-
}
|
|
706
|
-
if (data.State != null) {
|
|
707
|
-
contents.State = __expectString(data.State);
|
|
708
|
-
}
|
|
709
|
-
if (data.Tags != null) {
|
|
710
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
711
|
-
}
|
|
712
|
-
if (data.UriPathRoute != null) {
|
|
713
|
-
contents.UriPathRoute = de_UriPathRouteInput(data.UriPathRoute, context);
|
|
714
|
-
}
|
|
637
|
+
const doc = take(data, {
|
|
638
|
+
ApplicationId: __expectString,
|
|
639
|
+
Arn: __expectString,
|
|
640
|
+
CreatedByAccountId: __expectString,
|
|
641
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
642
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
643
|
+
OwnerAccountId: __expectString,
|
|
644
|
+
RouteId: __expectString,
|
|
645
|
+
RouteType: __expectString,
|
|
646
|
+
ServiceId: __expectString,
|
|
647
|
+
State: __expectString,
|
|
648
|
+
Tags: _json,
|
|
649
|
+
UriPathRoute: _json,
|
|
650
|
+
});
|
|
651
|
+
Object.assign(contents, doc);
|
|
715
652
|
return contents;
|
|
716
653
|
};
|
|
717
654
|
const de_CreateRouteCommandError = async (output, context) => {
|
|
@@ -744,10 +681,9 @@ const de_CreateRouteCommandError = async (output, context) => {
|
|
|
744
681
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
745
682
|
default:
|
|
746
683
|
const parsedBody = parsedOutput.body;
|
|
747
|
-
throwDefaultError({
|
|
684
|
+
return throwDefaultError({
|
|
748
685
|
output,
|
|
749
686
|
parsedBody,
|
|
750
|
-
exceptionCtor: __BaseException,
|
|
751
687
|
errorCode,
|
|
752
688
|
});
|
|
753
689
|
}
|
|
@@ -760,54 +696,25 @@ export const de_CreateServiceCommand = async (output, context) => {
|
|
|
760
696
|
$metadata: deserializeMetadata(output),
|
|
761
697
|
});
|
|
762
698
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
783
|
-
}
|
|
784
|
-
if (data.LambdaEndpoint != null) {
|
|
785
|
-
contents.LambdaEndpoint = de_LambdaEndpointInput(data.LambdaEndpoint, context);
|
|
786
|
-
}
|
|
787
|
-
if (data.LastUpdatedTime != null) {
|
|
788
|
-
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
789
|
-
}
|
|
790
|
-
if (data.Name != null) {
|
|
791
|
-
contents.Name = __expectString(data.Name);
|
|
792
|
-
}
|
|
793
|
-
if (data.OwnerAccountId != null) {
|
|
794
|
-
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
795
|
-
}
|
|
796
|
-
if (data.ServiceId != null) {
|
|
797
|
-
contents.ServiceId = __expectString(data.ServiceId);
|
|
798
|
-
}
|
|
799
|
-
if (data.State != null) {
|
|
800
|
-
contents.State = __expectString(data.State);
|
|
801
|
-
}
|
|
802
|
-
if (data.Tags != null) {
|
|
803
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
804
|
-
}
|
|
805
|
-
if (data.UrlEndpoint != null) {
|
|
806
|
-
contents.UrlEndpoint = de_UrlEndpointInput(data.UrlEndpoint, context);
|
|
807
|
-
}
|
|
808
|
-
if (data.VpcId != null) {
|
|
809
|
-
contents.VpcId = __expectString(data.VpcId);
|
|
810
|
-
}
|
|
699
|
+
const doc = take(data, {
|
|
700
|
+
ApplicationId: __expectString,
|
|
701
|
+
Arn: __expectString,
|
|
702
|
+
CreatedByAccountId: __expectString,
|
|
703
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
704
|
+
Description: __expectString,
|
|
705
|
+
EndpointType: __expectString,
|
|
706
|
+
EnvironmentId: __expectString,
|
|
707
|
+
LambdaEndpoint: _json,
|
|
708
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
709
|
+
Name: __expectString,
|
|
710
|
+
OwnerAccountId: __expectString,
|
|
711
|
+
ServiceId: __expectString,
|
|
712
|
+
State: __expectString,
|
|
713
|
+
Tags: _json,
|
|
714
|
+
UrlEndpoint: _json,
|
|
715
|
+
VpcId: __expectString,
|
|
716
|
+
});
|
|
717
|
+
Object.assign(contents, doc);
|
|
811
718
|
return contents;
|
|
812
719
|
};
|
|
813
720
|
const de_CreateServiceCommandError = async (output, context) => {
|
|
@@ -840,10 +747,9 @@ const de_CreateServiceCommandError = async (output, context) => {
|
|
|
840
747
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
841
748
|
default:
|
|
842
749
|
const parsedBody = parsedOutput.body;
|
|
843
|
-
throwDefaultError({
|
|
750
|
+
return throwDefaultError({
|
|
844
751
|
output,
|
|
845
752
|
parsedBody,
|
|
846
|
-
exceptionCtor: __BaseException,
|
|
847
753
|
errorCode,
|
|
848
754
|
});
|
|
849
755
|
}
|
|
@@ -856,24 +762,15 @@ export const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
856
762
|
$metadata: deserializeMetadata(output),
|
|
857
763
|
});
|
|
858
764
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
if (data.LastUpdatedTime != null) {
|
|
869
|
-
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
870
|
-
}
|
|
871
|
-
if (data.Name != null) {
|
|
872
|
-
contents.Name = __expectString(data.Name);
|
|
873
|
-
}
|
|
874
|
-
if (data.State != null) {
|
|
875
|
-
contents.State = __expectString(data.State);
|
|
876
|
-
}
|
|
765
|
+
const doc = take(data, {
|
|
766
|
+
ApplicationId: __expectString,
|
|
767
|
+
Arn: __expectString,
|
|
768
|
+
EnvironmentId: __expectString,
|
|
769
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
770
|
+
Name: __expectString,
|
|
771
|
+
State: __expectString,
|
|
772
|
+
});
|
|
773
|
+
Object.assign(contents, doc);
|
|
877
774
|
return contents;
|
|
878
775
|
};
|
|
879
776
|
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
@@ -903,10 +800,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
|
|
|
903
800
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
904
801
|
default:
|
|
905
802
|
const parsedBody = parsedOutput.body;
|
|
906
|
-
throwDefaultError({
|
|
803
|
+
return throwDefaultError({
|
|
907
804
|
output,
|
|
908
805
|
parsedBody,
|
|
909
|
-
exceptionCtor: __BaseException,
|
|
910
806
|
errorCode,
|
|
911
807
|
});
|
|
912
808
|
}
|
|
@@ -919,21 +815,14 @@ export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
|
919
815
|
$metadata: deserializeMetadata(output),
|
|
920
816
|
});
|
|
921
817
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
}
|
|
931
|
-
if (data.Name != null) {
|
|
932
|
-
contents.Name = __expectString(data.Name);
|
|
933
|
-
}
|
|
934
|
-
if (data.State != null) {
|
|
935
|
-
contents.State = __expectString(data.State);
|
|
936
|
-
}
|
|
818
|
+
const doc = take(data, {
|
|
819
|
+
Arn: __expectString,
|
|
820
|
+
EnvironmentId: __expectString,
|
|
821
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
822
|
+
Name: __expectString,
|
|
823
|
+
State: __expectString,
|
|
824
|
+
});
|
|
825
|
+
Object.assign(contents, doc);
|
|
937
826
|
return contents;
|
|
938
827
|
};
|
|
939
828
|
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
@@ -963,10 +852,9 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
|
963
852
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
964
853
|
default:
|
|
965
854
|
const parsedBody = parsedOutput.body;
|
|
966
|
-
throwDefaultError({
|
|
855
|
+
return throwDefaultError({
|
|
967
856
|
output,
|
|
968
857
|
parsedBody,
|
|
969
|
-
exceptionCtor: __BaseException,
|
|
970
858
|
errorCode,
|
|
971
859
|
});
|
|
972
860
|
}
|
|
@@ -1005,10 +893,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
1005
893
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1006
894
|
default:
|
|
1007
895
|
const parsedBody = parsedOutput.body;
|
|
1008
|
-
throwDefaultError({
|
|
896
|
+
return throwDefaultError({
|
|
1009
897
|
output,
|
|
1010
898
|
parsedBody,
|
|
1011
|
-
exceptionCtor: __BaseException,
|
|
1012
899
|
errorCode,
|
|
1013
900
|
});
|
|
1014
901
|
}
|
|
@@ -1021,24 +908,15 @@ export const de_DeleteRouteCommand = async (output, context) => {
|
|
|
1021
908
|
$metadata: deserializeMetadata(output),
|
|
1022
909
|
});
|
|
1023
910
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
if (data.RouteId != null) {
|
|
1034
|
-
contents.RouteId = __expectString(data.RouteId);
|
|
1035
|
-
}
|
|
1036
|
-
if (data.ServiceId != null) {
|
|
1037
|
-
contents.ServiceId = __expectString(data.ServiceId);
|
|
1038
|
-
}
|
|
1039
|
-
if (data.State != null) {
|
|
1040
|
-
contents.State = __expectString(data.State);
|
|
1041
|
-
}
|
|
911
|
+
const doc = take(data, {
|
|
912
|
+
ApplicationId: __expectString,
|
|
913
|
+
Arn: __expectString,
|
|
914
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
915
|
+
RouteId: __expectString,
|
|
916
|
+
ServiceId: __expectString,
|
|
917
|
+
State: __expectString,
|
|
918
|
+
});
|
|
919
|
+
Object.assign(contents, doc);
|
|
1042
920
|
return contents;
|
|
1043
921
|
};
|
|
1044
922
|
const de_DeleteRouteCommandError = async (output, context) => {
|
|
@@ -1068,10 +946,9 @@ const de_DeleteRouteCommandError = async (output, context) => {
|
|
|
1068
946
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1069
947
|
default:
|
|
1070
948
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
throwDefaultError({
|
|
949
|
+
return throwDefaultError({
|
|
1072
950
|
output,
|
|
1073
951
|
parsedBody,
|
|
1074
|
-
exceptionCtor: __BaseException,
|
|
1075
952
|
errorCode,
|
|
1076
953
|
});
|
|
1077
954
|
}
|
|
@@ -1084,27 +961,16 @@ export const de_DeleteServiceCommand = async (output, context) => {
|
|
|
1084
961
|
$metadata: deserializeMetadata(output),
|
|
1085
962
|
});
|
|
1086
963
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1098
|
-
}
|
|
1099
|
-
if (data.Name != null) {
|
|
1100
|
-
contents.Name = __expectString(data.Name);
|
|
1101
|
-
}
|
|
1102
|
-
if (data.ServiceId != null) {
|
|
1103
|
-
contents.ServiceId = __expectString(data.ServiceId);
|
|
1104
|
-
}
|
|
1105
|
-
if (data.State != null) {
|
|
1106
|
-
contents.State = __expectString(data.State);
|
|
1107
|
-
}
|
|
964
|
+
const doc = take(data, {
|
|
965
|
+
ApplicationId: __expectString,
|
|
966
|
+
Arn: __expectString,
|
|
967
|
+
EnvironmentId: __expectString,
|
|
968
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
969
|
+
Name: __expectString,
|
|
970
|
+
ServiceId: __expectString,
|
|
971
|
+
State: __expectString,
|
|
972
|
+
});
|
|
973
|
+
Object.assign(contents, doc);
|
|
1108
974
|
return contents;
|
|
1109
975
|
};
|
|
1110
976
|
const de_DeleteServiceCommandError = async (output, context) => {
|
|
@@ -1134,10 +1000,9 @@ const de_DeleteServiceCommandError = async (output, context) => {
|
|
|
1134
1000
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1135
1001
|
default:
|
|
1136
1002
|
const parsedBody = parsedOutput.body;
|
|
1137
|
-
throwDefaultError({
|
|
1003
|
+
return throwDefaultError({
|
|
1138
1004
|
output,
|
|
1139
1005
|
parsedBody,
|
|
1140
|
-
exceptionCtor: __BaseException,
|
|
1141
1006
|
errorCode,
|
|
1142
1007
|
});
|
|
1143
1008
|
}
|
|
@@ -1150,48 +1015,23 @@ export const de_GetApplicationCommand = async (output, context) => {
|
|
|
1150
1015
|
$metadata: deserializeMetadata(output),
|
|
1151
1016
|
});
|
|
1152
1017
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
}
|
|
1171
|
-
if (data.Error != null) {
|
|
1172
|
-
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1173
|
-
}
|
|
1174
|
-
if (data.LastUpdatedTime != null) {
|
|
1175
|
-
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1176
|
-
}
|
|
1177
|
-
if (data.Name != null) {
|
|
1178
|
-
contents.Name = __expectString(data.Name);
|
|
1179
|
-
}
|
|
1180
|
-
if (data.OwnerAccountId != null) {
|
|
1181
|
-
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
1182
|
-
}
|
|
1183
|
-
if (data.ProxyType != null) {
|
|
1184
|
-
contents.ProxyType = __expectString(data.ProxyType);
|
|
1185
|
-
}
|
|
1186
|
-
if (data.State != null) {
|
|
1187
|
-
contents.State = __expectString(data.State);
|
|
1188
|
-
}
|
|
1189
|
-
if (data.Tags != null) {
|
|
1190
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
1191
|
-
}
|
|
1192
|
-
if (data.VpcId != null) {
|
|
1193
|
-
contents.VpcId = __expectString(data.VpcId);
|
|
1194
|
-
}
|
|
1018
|
+
const doc = take(data, {
|
|
1019
|
+
ApiGatewayProxy: _json,
|
|
1020
|
+
ApplicationId: __expectString,
|
|
1021
|
+
Arn: __expectString,
|
|
1022
|
+
CreatedByAccountId: __expectString,
|
|
1023
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1024
|
+
EnvironmentId: __expectString,
|
|
1025
|
+
Error: _json,
|
|
1026
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1027
|
+
Name: __expectString,
|
|
1028
|
+
OwnerAccountId: __expectString,
|
|
1029
|
+
ProxyType: __expectString,
|
|
1030
|
+
State: __expectString,
|
|
1031
|
+
Tags: _json,
|
|
1032
|
+
VpcId: __expectString,
|
|
1033
|
+
});
|
|
1034
|
+
Object.assign(contents, doc);
|
|
1195
1035
|
return contents;
|
|
1196
1036
|
};
|
|
1197
1037
|
const de_GetApplicationCommandError = async (output, context) => {
|
|
@@ -1218,10 +1058,9 @@ const de_GetApplicationCommandError = async (output, context) => {
|
|
|
1218
1058
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1219
1059
|
default:
|
|
1220
1060
|
const parsedBody = parsedOutput.body;
|
|
1221
|
-
throwDefaultError({
|
|
1061
|
+
return throwDefaultError({
|
|
1222
1062
|
output,
|
|
1223
1063
|
parsedBody,
|
|
1224
|
-
exceptionCtor: __BaseException,
|
|
1225
1064
|
errorCode,
|
|
1226
1065
|
});
|
|
1227
1066
|
}
|
|
@@ -1234,42 +1073,21 @@ export const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
1234
1073
|
$metadata: deserializeMetadata(output),
|
|
1235
1074
|
});
|
|
1236
1075
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
if (data.LastUpdatedTime != null) {
|
|
1253
|
-
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1254
|
-
}
|
|
1255
|
-
if (data.Name != null) {
|
|
1256
|
-
contents.Name = __expectString(data.Name);
|
|
1257
|
-
}
|
|
1258
|
-
if (data.NetworkFabricType != null) {
|
|
1259
|
-
contents.NetworkFabricType = __expectString(data.NetworkFabricType);
|
|
1260
|
-
}
|
|
1261
|
-
if (data.OwnerAccountId != null) {
|
|
1262
|
-
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
1263
|
-
}
|
|
1264
|
-
if (data.State != null) {
|
|
1265
|
-
contents.State = __expectString(data.State);
|
|
1266
|
-
}
|
|
1267
|
-
if (data.Tags != null) {
|
|
1268
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
1269
|
-
}
|
|
1270
|
-
if (data.TransitGatewayId != null) {
|
|
1271
|
-
contents.TransitGatewayId = __expectString(data.TransitGatewayId);
|
|
1272
|
-
}
|
|
1076
|
+
const doc = take(data, {
|
|
1077
|
+
Arn: __expectString,
|
|
1078
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1079
|
+
Description: __expectString,
|
|
1080
|
+
EnvironmentId: __expectString,
|
|
1081
|
+
Error: _json,
|
|
1082
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1083
|
+
Name: __expectString,
|
|
1084
|
+
NetworkFabricType: __expectString,
|
|
1085
|
+
OwnerAccountId: __expectString,
|
|
1086
|
+
State: __expectString,
|
|
1087
|
+
Tags: _json,
|
|
1088
|
+
TransitGatewayId: __expectString,
|
|
1089
|
+
});
|
|
1090
|
+
Object.assign(contents, doc);
|
|
1273
1091
|
return contents;
|
|
1274
1092
|
};
|
|
1275
1093
|
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
@@ -1296,10 +1114,9 @@ const de_GetEnvironmentCommandError = async (output, context) => {
|
|
|
1296
1114
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1297
1115
|
default:
|
|
1298
1116
|
const parsedBody = parsedOutput.body;
|
|
1299
|
-
throwDefaultError({
|
|
1117
|
+
return throwDefaultError({
|
|
1300
1118
|
output,
|
|
1301
1119
|
parsedBody,
|
|
1302
|
-
exceptionCtor: __BaseException,
|
|
1303
1120
|
errorCode,
|
|
1304
1121
|
});
|
|
1305
1122
|
}
|
|
@@ -1312,9 +1129,10 @@ export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
1312
1129
|
$metadata: deserializeMetadata(output),
|
|
1313
1130
|
});
|
|
1314
1131
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
}
|
|
1132
|
+
const doc = take(data, {
|
|
1133
|
+
Policy: __expectString,
|
|
1134
|
+
});
|
|
1135
|
+
Object.assign(contents, doc);
|
|
1318
1136
|
return contents;
|
|
1319
1137
|
};
|
|
1320
1138
|
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
@@ -1341,10 +1159,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
|
1341
1159
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1342
1160
|
default:
|
|
1343
1161
|
const parsedBody = parsedOutput.body;
|
|
1344
|
-
throwDefaultError({
|
|
1162
|
+
return throwDefaultError({
|
|
1345
1163
|
output,
|
|
1346
1164
|
parsedBody,
|
|
1347
|
-
exceptionCtor: __BaseException,
|
|
1348
1165
|
errorCode,
|
|
1349
1166
|
});
|
|
1350
1167
|
}
|
|
@@ -1357,57 +1174,26 @@ export const de_GetRouteCommand = async (output, context) => {
|
|
|
1357
1174
|
$metadata: deserializeMetadata(output),
|
|
1358
1175
|
});
|
|
1359
1176
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
}
|
|
1381
|
-
if (data.LastUpdatedTime != null) {
|
|
1382
|
-
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1383
|
-
}
|
|
1384
|
-
if (data.Methods != null) {
|
|
1385
|
-
contents.Methods = de_HttpMethods(data.Methods, context);
|
|
1386
|
-
}
|
|
1387
|
-
if (data.OwnerAccountId != null) {
|
|
1388
|
-
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
1389
|
-
}
|
|
1390
|
-
if (data.PathResourceToId != null) {
|
|
1391
|
-
contents.PathResourceToId = de_PathResourceToId(data.PathResourceToId, context);
|
|
1392
|
-
}
|
|
1393
|
-
if (data.RouteId != null) {
|
|
1394
|
-
contents.RouteId = __expectString(data.RouteId);
|
|
1395
|
-
}
|
|
1396
|
-
if (data.RouteType != null) {
|
|
1397
|
-
contents.RouteType = __expectString(data.RouteType);
|
|
1398
|
-
}
|
|
1399
|
-
if (data.ServiceId != null) {
|
|
1400
|
-
contents.ServiceId = __expectString(data.ServiceId);
|
|
1401
|
-
}
|
|
1402
|
-
if (data.SourcePath != null) {
|
|
1403
|
-
contents.SourcePath = __expectString(data.SourcePath);
|
|
1404
|
-
}
|
|
1405
|
-
if (data.State != null) {
|
|
1406
|
-
contents.State = __expectString(data.State);
|
|
1407
|
-
}
|
|
1408
|
-
if (data.Tags != null) {
|
|
1409
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
1410
|
-
}
|
|
1177
|
+
const doc = take(data, {
|
|
1178
|
+
ApplicationId: __expectString,
|
|
1179
|
+
Arn: __expectString,
|
|
1180
|
+
CreatedByAccountId: __expectString,
|
|
1181
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1182
|
+
EnvironmentId: __expectString,
|
|
1183
|
+
Error: _json,
|
|
1184
|
+
IncludeChildPaths: __expectBoolean,
|
|
1185
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1186
|
+
Methods: _json,
|
|
1187
|
+
OwnerAccountId: __expectString,
|
|
1188
|
+
PathResourceToId: _json,
|
|
1189
|
+
RouteId: __expectString,
|
|
1190
|
+
RouteType: __expectString,
|
|
1191
|
+
ServiceId: __expectString,
|
|
1192
|
+
SourcePath: __expectString,
|
|
1193
|
+
State: __expectString,
|
|
1194
|
+
Tags: _json,
|
|
1195
|
+
});
|
|
1196
|
+
Object.assign(contents, doc);
|
|
1411
1197
|
return contents;
|
|
1412
1198
|
};
|
|
1413
1199
|
const de_GetRouteCommandError = async (output, context) => {
|
|
@@ -1434,10 +1220,9 @@ const de_GetRouteCommandError = async (output, context) => {
|
|
|
1434
1220
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1435
1221
|
default:
|
|
1436
1222
|
const parsedBody = parsedOutput.body;
|
|
1437
|
-
throwDefaultError({
|
|
1223
|
+
return throwDefaultError({
|
|
1438
1224
|
output,
|
|
1439
1225
|
parsedBody,
|
|
1440
|
-
exceptionCtor: __BaseException,
|
|
1441
1226
|
errorCode,
|
|
1442
1227
|
});
|
|
1443
1228
|
}
|
|
@@ -1450,57 +1235,26 @@ export const de_GetServiceCommand = async (output, context) => {
|
|
|
1450
1235
|
$metadata: deserializeMetadata(output),
|
|
1451
1236
|
});
|
|
1452
1237
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
}
|
|
1474
|
-
if (data.Error != null) {
|
|
1475
|
-
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1476
|
-
}
|
|
1477
|
-
if (data.LambdaEndpoint != null) {
|
|
1478
|
-
contents.LambdaEndpoint = de_LambdaEndpointConfig(data.LambdaEndpoint, context);
|
|
1479
|
-
}
|
|
1480
|
-
if (data.LastUpdatedTime != null) {
|
|
1481
|
-
contents.LastUpdatedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTime)));
|
|
1482
|
-
}
|
|
1483
|
-
if (data.Name != null) {
|
|
1484
|
-
contents.Name = __expectString(data.Name);
|
|
1485
|
-
}
|
|
1486
|
-
if (data.OwnerAccountId != null) {
|
|
1487
|
-
contents.OwnerAccountId = __expectString(data.OwnerAccountId);
|
|
1488
|
-
}
|
|
1489
|
-
if (data.ServiceId != null) {
|
|
1490
|
-
contents.ServiceId = __expectString(data.ServiceId);
|
|
1491
|
-
}
|
|
1492
|
-
if (data.State != null) {
|
|
1493
|
-
contents.State = __expectString(data.State);
|
|
1494
|
-
}
|
|
1495
|
-
if (data.Tags != null) {
|
|
1496
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
1497
|
-
}
|
|
1498
|
-
if (data.UrlEndpoint != null) {
|
|
1499
|
-
contents.UrlEndpoint = de_UrlEndpointConfig(data.UrlEndpoint, context);
|
|
1500
|
-
}
|
|
1501
|
-
if (data.VpcId != null) {
|
|
1502
|
-
contents.VpcId = __expectString(data.VpcId);
|
|
1503
|
-
}
|
|
1238
|
+
const doc = take(data, {
|
|
1239
|
+
ApplicationId: __expectString,
|
|
1240
|
+
Arn: __expectString,
|
|
1241
|
+
CreatedByAccountId: __expectString,
|
|
1242
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1243
|
+
Description: __expectString,
|
|
1244
|
+
EndpointType: __expectString,
|
|
1245
|
+
EnvironmentId: __expectString,
|
|
1246
|
+
Error: _json,
|
|
1247
|
+
LambdaEndpoint: _json,
|
|
1248
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1249
|
+
Name: __expectString,
|
|
1250
|
+
OwnerAccountId: __expectString,
|
|
1251
|
+
ServiceId: __expectString,
|
|
1252
|
+
State: __expectString,
|
|
1253
|
+
Tags: _json,
|
|
1254
|
+
UrlEndpoint: _json,
|
|
1255
|
+
VpcId: __expectString,
|
|
1256
|
+
});
|
|
1257
|
+
Object.assign(contents, doc);
|
|
1504
1258
|
return contents;
|
|
1505
1259
|
};
|
|
1506
1260
|
const de_GetServiceCommandError = async (output, context) => {
|
|
@@ -1527,10 +1281,9 @@ const de_GetServiceCommandError = async (output, context) => {
|
|
|
1527
1281
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1528
1282
|
default:
|
|
1529
1283
|
const parsedBody = parsedOutput.body;
|
|
1530
|
-
throwDefaultError({
|
|
1284
|
+
return throwDefaultError({
|
|
1531
1285
|
output,
|
|
1532
1286
|
parsedBody,
|
|
1533
|
-
exceptionCtor: __BaseException,
|
|
1534
1287
|
errorCode,
|
|
1535
1288
|
});
|
|
1536
1289
|
}
|
|
@@ -1543,12 +1296,11 @@ export const de_ListApplicationsCommand = async (output, context) => {
|
|
|
1543
1296
|
$metadata: deserializeMetadata(output),
|
|
1544
1297
|
});
|
|
1545
1298
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
}
|
|
1299
|
+
const doc = take(data, {
|
|
1300
|
+
ApplicationSummaryList: (_) => de_ApplicationSummaries(_, context),
|
|
1301
|
+
NextToken: __expectString,
|
|
1302
|
+
});
|
|
1303
|
+
Object.assign(contents, doc);
|
|
1552
1304
|
return contents;
|
|
1553
1305
|
};
|
|
1554
1306
|
const de_ListApplicationsCommandError = async (output, context) => {
|
|
@@ -1581,10 +1333,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
1581
1333
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1582
1334
|
default:
|
|
1583
1335
|
const parsedBody = parsedOutput.body;
|
|
1584
|
-
throwDefaultError({
|
|
1336
|
+
return throwDefaultError({
|
|
1585
1337
|
output,
|
|
1586
1338
|
parsedBody,
|
|
1587
|
-
exceptionCtor: __BaseException,
|
|
1588
1339
|
errorCode,
|
|
1589
1340
|
});
|
|
1590
1341
|
}
|
|
@@ -1597,12 +1348,11 @@ export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
1597
1348
|
$metadata: deserializeMetadata(output),
|
|
1598
1349
|
});
|
|
1599
1350
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
}
|
|
1351
|
+
const doc = take(data, {
|
|
1352
|
+
EnvironmentSummaryList: (_) => de_EnvironmentSummaries(_, context),
|
|
1353
|
+
NextToken: __expectString,
|
|
1354
|
+
});
|
|
1355
|
+
Object.assign(contents, doc);
|
|
1606
1356
|
return contents;
|
|
1607
1357
|
};
|
|
1608
1358
|
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
@@ -1629,10 +1379,9 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
|
1629
1379
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1630
1380
|
default:
|
|
1631
1381
|
const parsedBody = parsedOutput.body;
|
|
1632
|
-
throwDefaultError({
|
|
1382
|
+
return throwDefaultError({
|
|
1633
1383
|
output,
|
|
1634
1384
|
parsedBody,
|
|
1635
|
-
exceptionCtor: __BaseException,
|
|
1636
1385
|
errorCode,
|
|
1637
1386
|
});
|
|
1638
1387
|
}
|
|
@@ -1645,12 +1394,11 @@ export const de_ListEnvironmentVpcsCommand = async (output, context) => {
|
|
|
1645
1394
|
$metadata: deserializeMetadata(output),
|
|
1646
1395
|
});
|
|
1647
1396
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
}
|
|
1397
|
+
const doc = take(data, {
|
|
1398
|
+
EnvironmentVpcList: (_) => de_EnvironmentVpcs(_, context),
|
|
1399
|
+
NextToken: __expectString,
|
|
1400
|
+
});
|
|
1401
|
+
Object.assign(contents, doc);
|
|
1654
1402
|
return contents;
|
|
1655
1403
|
};
|
|
1656
1404
|
const de_ListEnvironmentVpcsCommandError = async (output, context) => {
|
|
@@ -1677,10 +1425,9 @@ const de_ListEnvironmentVpcsCommandError = async (output, context) => {
|
|
|
1677
1425
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1678
1426
|
default:
|
|
1679
1427
|
const parsedBody = parsedOutput.body;
|
|
1680
|
-
throwDefaultError({
|
|
1428
|
+
return throwDefaultError({
|
|
1681
1429
|
output,
|
|
1682
1430
|
parsedBody,
|
|
1683
|
-
exceptionCtor: __BaseException,
|
|
1684
1431
|
errorCode,
|
|
1685
1432
|
});
|
|
1686
1433
|
}
|
|
@@ -1693,12 +1440,11 @@ export const de_ListRoutesCommand = async (output, context) => {
|
|
|
1693
1440
|
$metadata: deserializeMetadata(output),
|
|
1694
1441
|
});
|
|
1695
1442
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
}
|
|
1443
|
+
const doc = take(data, {
|
|
1444
|
+
NextToken: __expectString,
|
|
1445
|
+
RouteSummaryList: (_) => de_RouteSummaries(_, context),
|
|
1446
|
+
});
|
|
1447
|
+
Object.assign(contents, doc);
|
|
1702
1448
|
return contents;
|
|
1703
1449
|
};
|
|
1704
1450
|
const de_ListRoutesCommandError = async (output, context) => {
|
|
@@ -1731,10 +1477,9 @@ const de_ListRoutesCommandError = async (output, context) => {
|
|
|
1731
1477
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1732
1478
|
default:
|
|
1733
1479
|
const parsedBody = parsedOutput.body;
|
|
1734
|
-
throwDefaultError({
|
|
1480
|
+
return throwDefaultError({
|
|
1735
1481
|
output,
|
|
1736
1482
|
parsedBody,
|
|
1737
|
-
exceptionCtor: __BaseException,
|
|
1738
1483
|
errorCode,
|
|
1739
1484
|
});
|
|
1740
1485
|
}
|
|
@@ -1747,12 +1492,11 @@ export const de_ListServicesCommand = async (output, context) => {
|
|
|
1747
1492
|
$metadata: deserializeMetadata(output),
|
|
1748
1493
|
});
|
|
1749
1494
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
}
|
|
1495
|
+
const doc = take(data, {
|
|
1496
|
+
NextToken: __expectString,
|
|
1497
|
+
ServiceSummaryList: (_) => de_ServiceSummaries(_, context),
|
|
1498
|
+
});
|
|
1499
|
+
Object.assign(contents, doc);
|
|
1756
1500
|
return contents;
|
|
1757
1501
|
};
|
|
1758
1502
|
const de_ListServicesCommandError = async (output, context) => {
|
|
@@ -1785,10 +1529,9 @@ const de_ListServicesCommandError = async (output, context) => {
|
|
|
1785
1529
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1786
1530
|
default:
|
|
1787
1531
|
const parsedBody = parsedOutput.body;
|
|
1788
|
-
throwDefaultError({
|
|
1532
|
+
return throwDefaultError({
|
|
1789
1533
|
output,
|
|
1790
1534
|
parsedBody,
|
|
1791
|
-
exceptionCtor: __BaseException,
|
|
1792
1535
|
errorCode,
|
|
1793
1536
|
});
|
|
1794
1537
|
}
|
|
@@ -1801,9 +1544,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1801
1544
|
$metadata: deserializeMetadata(output),
|
|
1802
1545
|
});
|
|
1803
1546
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
}
|
|
1547
|
+
const doc = take(data, {
|
|
1548
|
+
Tags: _json,
|
|
1549
|
+
});
|
|
1550
|
+
Object.assign(contents, doc);
|
|
1807
1551
|
return contents;
|
|
1808
1552
|
};
|
|
1809
1553
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1824,10 +1568,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1824
1568
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1825
1569
|
default:
|
|
1826
1570
|
const parsedBody = parsedOutput.body;
|
|
1827
|
-
throwDefaultError({
|
|
1571
|
+
return throwDefaultError({
|
|
1828
1572
|
output,
|
|
1829
1573
|
parsedBody,
|
|
1830
|
-
exceptionCtor: __BaseException,
|
|
1831
1574
|
errorCode,
|
|
1832
1575
|
});
|
|
1833
1576
|
}
|
|
@@ -1869,10 +1612,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
1869
1612
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1870
1613
|
default:
|
|
1871
1614
|
const parsedBody = parsedOutput.body;
|
|
1872
|
-
throwDefaultError({
|
|
1615
|
+
return throwDefaultError({
|
|
1873
1616
|
output,
|
|
1874
1617
|
parsedBody,
|
|
1875
|
-
exceptionCtor: __BaseException,
|
|
1876
1618
|
errorCode,
|
|
1877
1619
|
});
|
|
1878
1620
|
}
|
|
@@ -1905,10 +1647,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1905
1647
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1906
1648
|
default:
|
|
1907
1649
|
const parsedBody = parsedOutput.body;
|
|
1908
|
-
throwDefaultError({
|
|
1650
|
+
return throwDefaultError({
|
|
1909
1651
|
output,
|
|
1910
1652
|
parsedBody,
|
|
1911
|
-
exceptionCtor: __BaseException,
|
|
1912
1653
|
errorCode,
|
|
1913
1654
|
});
|
|
1914
1655
|
}
|
|
@@ -1941,10 +1682,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1941
1682
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1942
1683
|
default:
|
|
1943
1684
|
const parsedBody = parsedOutput.body;
|
|
1944
|
-
throwDefaultError({
|
|
1685
|
+
return throwDefaultError({
|
|
1945
1686
|
output,
|
|
1946
1687
|
parsedBody,
|
|
1947
|
-
exceptionCtor: __BaseException,
|
|
1948
1688
|
errorCode,
|
|
1949
1689
|
});
|
|
1950
1690
|
}
|
|
@@ -1957,24 +1697,15 @@ export const de_UpdateRouteCommand = async (output, context) => {
|
|
|
1957
1697
|
$metadata: deserializeMetadata(output),
|
|
1958
1698
|
});
|
|
1959
1699
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
if (data.RouteId != null) {
|
|
1970
|
-
contents.RouteId = __expectString(data.RouteId);
|
|
1971
|
-
}
|
|
1972
|
-
if (data.ServiceId != null) {
|
|
1973
|
-
contents.ServiceId = __expectString(data.ServiceId);
|
|
1974
|
-
}
|
|
1975
|
-
if (data.State != null) {
|
|
1976
|
-
contents.State = __expectString(data.State);
|
|
1977
|
-
}
|
|
1700
|
+
const doc = take(data, {
|
|
1701
|
+
ApplicationId: __expectString,
|
|
1702
|
+
Arn: __expectString,
|
|
1703
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1704
|
+
RouteId: __expectString,
|
|
1705
|
+
ServiceId: __expectString,
|
|
1706
|
+
State: __expectString,
|
|
1707
|
+
});
|
|
1708
|
+
Object.assign(contents, doc);
|
|
1978
1709
|
return contents;
|
|
1979
1710
|
};
|
|
1980
1711
|
const de_UpdateRouteCommandError = async (output, context) => {
|
|
@@ -2001,21 +1732,21 @@ const de_UpdateRouteCommandError = async (output, context) => {
|
|
|
2001
1732
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2002
1733
|
default:
|
|
2003
1734
|
const parsedBody = parsedOutput.body;
|
|
2004
|
-
throwDefaultError({
|
|
1735
|
+
return throwDefaultError({
|
|
2005
1736
|
output,
|
|
2006
1737
|
parsedBody,
|
|
2007
|
-
exceptionCtor: __BaseException,
|
|
2008
1738
|
errorCode,
|
|
2009
1739
|
});
|
|
2010
1740
|
}
|
|
2011
1741
|
};
|
|
2012
|
-
const
|
|
1742
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2013
1743
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2014
1744
|
const contents = map({});
|
|
2015
1745
|
const data = parsedOutput.body;
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
}
|
|
1746
|
+
const doc = take(data, {
|
|
1747
|
+
Message: __expectString,
|
|
1748
|
+
});
|
|
1749
|
+
Object.assign(contents, doc);
|
|
2019
1750
|
const exception = new AccessDeniedException({
|
|
2020
1751
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2021
1752
|
...contents,
|
|
@@ -2025,15 +1756,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2025
1756
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2026
1757
|
const contents = map({});
|
|
2027
1758
|
const data = parsedOutput.body;
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
if (data.ResourceType != null) {
|
|
2035
|
-
contents.ResourceType = __expectString(data.ResourceType);
|
|
2036
|
-
}
|
|
1759
|
+
const doc = take(data, {
|
|
1760
|
+
Message: __expectString,
|
|
1761
|
+
ResourceId: __expectString,
|
|
1762
|
+
ResourceType: __expectString,
|
|
1763
|
+
});
|
|
1764
|
+
Object.assign(contents, doc);
|
|
2037
1765
|
const exception = new ConflictException({
|
|
2038
1766
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2039
1767
|
...contents,
|
|
@@ -2043,9 +1771,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2043
1771
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2044
1772
|
const contents = map({});
|
|
2045
1773
|
const data = parsedOutput.body;
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
}
|
|
1774
|
+
const doc = take(data, {
|
|
1775
|
+
Message: __expectString,
|
|
1776
|
+
});
|
|
1777
|
+
Object.assign(contents, doc);
|
|
2049
1778
|
const exception = new InternalServerException({
|
|
2050
1779
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2051
1780
|
...contents,
|
|
@@ -2055,9 +1784,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2055
1784
|
const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
2056
1785
|
const contents = map({});
|
|
2057
1786
|
const data = parsedOutput.body;
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
}
|
|
1787
|
+
const doc = take(data, {
|
|
1788
|
+
Message: __expectString,
|
|
1789
|
+
});
|
|
1790
|
+
Object.assign(contents, doc);
|
|
2061
1791
|
const exception = new InvalidResourcePolicyException({
|
|
2062
1792
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2063
1793
|
...contents,
|
|
@@ -2067,15 +1797,12 @@ const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
2067
1797
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2068
1798
|
const contents = map({});
|
|
2069
1799
|
const data = parsedOutput.body;
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
if (data.ResourceType != null) {
|
|
2077
|
-
contents.ResourceType = __expectString(data.ResourceType);
|
|
2078
|
-
}
|
|
1800
|
+
const doc = take(data, {
|
|
1801
|
+
Message: __expectString,
|
|
1802
|
+
ResourceId: __expectString,
|
|
1803
|
+
ResourceType: __expectString,
|
|
1804
|
+
});
|
|
1805
|
+
Object.assign(contents, doc);
|
|
2079
1806
|
const exception = new ResourceNotFoundException({
|
|
2080
1807
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2081
1808
|
...contents,
|
|
@@ -2085,21 +1812,14 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2085
1812
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2086
1813
|
const contents = map({});
|
|
2087
1814
|
const data = parsedOutput.body;
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
}
|
|
2097
|
-
if (data.ResourceType != null) {
|
|
2098
|
-
contents.ResourceType = __expectString(data.ResourceType);
|
|
2099
|
-
}
|
|
2100
|
-
if (data.ServiceCode != null) {
|
|
2101
|
-
contents.ServiceCode = __expectString(data.ServiceCode);
|
|
2102
|
-
}
|
|
1815
|
+
const doc = take(data, {
|
|
1816
|
+
Message: __expectString,
|
|
1817
|
+
QuotaCode: __expectString,
|
|
1818
|
+
ResourceId: __expectString,
|
|
1819
|
+
ResourceType: __expectString,
|
|
1820
|
+
ServiceCode: __expectString,
|
|
1821
|
+
});
|
|
1822
|
+
Object.assign(contents, doc);
|
|
2103
1823
|
const exception = new ServiceQuotaExceededException({
|
|
2104
1824
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2105
1825
|
...contents,
|
|
@@ -2114,15 +1834,12 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2114
1834
|
],
|
|
2115
1835
|
});
|
|
2116
1836
|
const data = parsedOutput.body;
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
if (data.ServiceCode != null) {
|
|
2124
|
-
contents.ServiceCode = __expectString(data.ServiceCode);
|
|
2125
|
-
}
|
|
1837
|
+
const doc = take(data, {
|
|
1838
|
+
Message: __expectString,
|
|
1839
|
+
QuotaCode: __expectString,
|
|
1840
|
+
ServiceCode: __expectString,
|
|
1841
|
+
});
|
|
1842
|
+
Object.assign(contents, doc);
|
|
2126
1843
|
const exception = new ThrottlingException({
|
|
2127
1844
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2128
1845
|
...contents,
|
|
@@ -2132,350 +1849,142 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2132
1849
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2133
1850
|
const contents = map({});
|
|
2134
1851
|
const data = parsedOutput.body;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
}
|
|
1852
|
+
const doc = take(data, {
|
|
1853
|
+
Message: __expectString,
|
|
1854
|
+
});
|
|
1855
|
+
Object.assign(contents, doc);
|
|
2138
1856
|
const exception = new ValidationException({
|
|
2139
1857
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2140
1858
|
...contents,
|
|
2141
1859
|
});
|
|
2142
1860
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2143
1861
|
};
|
|
2144
|
-
const se_ApiGatewayProxyInput = (input, context) => {
|
|
2145
|
-
return {
|
|
2146
|
-
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
2147
|
-
...(input.StageName != null && { StageName: input.StageName }),
|
|
2148
|
-
};
|
|
2149
|
-
};
|
|
2150
|
-
const se_DefaultRouteInput = (input, context) => {
|
|
2151
|
-
return {
|
|
2152
|
-
...(input.ActivationState != null && { ActivationState: input.ActivationState }),
|
|
2153
|
-
};
|
|
2154
|
-
};
|
|
2155
|
-
const se_HttpMethods = (input, context) => {
|
|
2156
|
-
return input
|
|
2157
|
-
.filter((e) => e != null)
|
|
2158
|
-
.map((entry) => {
|
|
2159
|
-
return entry;
|
|
2160
|
-
});
|
|
2161
|
-
};
|
|
2162
|
-
const se_LambdaEndpointInput = (input, context) => {
|
|
2163
|
-
return {
|
|
2164
|
-
...(input.Arn != null && { Arn: input.Arn }),
|
|
2165
|
-
};
|
|
2166
|
-
};
|
|
2167
|
-
const se_TagMap = (input, context) => {
|
|
2168
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2169
|
-
if (value === null) {
|
|
2170
|
-
return acc;
|
|
2171
|
-
}
|
|
2172
|
-
acc[key] = value;
|
|
2173
|
-
return acc;
|
|
2174
|
-
}, {});
|
|
2175
|
-
};
|
|
2176
|
-
const se_UriPathRouteInput = (input, context) => {
|
|
2177
|
-
return {
|
|
2178
|
-
...(input.ActivationState != null && { ActivationState: input.ActivationState }),
|
|
2179
|
-
...(input.IncludeChildPaths != null && { IncludeChildPaths: input.IncludeChildPaths }),
|
|
2180
|
-
...(input.Methods != null && { Methods: se_HttpMethods(input.Methods, context) }),
|
|
2181
|
-
...(input.SourcePath != null && { SourcePath: input.SourcePath }),
|
|
2182
|
-
};
|
|
2183
|
-
};
|
|
2184
|
-
const se_UrlEndpointInput = (input, context) => {
|
|
2185
|
-
return {
|
|
2186
|
-
...(input.HealthUrl != null && { HealthUrl: input.HealthUrl }),
|
|
2187
|
-
...(input.Url != null && { Url: input.Url }),
|
|
2188
|
-
};
|
|
2189
|
-
};
|
|
2190
|
-
const de_AdditionalDetails = (output, context) => {
|
|
2191
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2192
|
-
if (value === null) {
|
|
2193
|
-
return acc;
|
|
2194
|
-
}
|
|
2195
|
-
acc[key] = __expectString(value);
|
|
2196
|
-
return acc;
|
|
2197
|
-
}, {});
|
|
2198
|
-
};
|
|
2199
|
-
const de_ApiGatewayProxyConfig = (output, context) => {
|
|
2200
|
-
return {
|
|
2201
|
-
ApiGatewayId: __expectString(output.ApiGatewayId),
|
|
2202
|
-
EndpointType: __expectString(output.EndpointType),
|
|
2203
|
-
NlbArn: __expectString(output.NlbArn),
|
|
2204
|
-
NlbName: __expectString(output.NlbName),
|
|
2205
|
-
ProxyUrl: __expectString(output.ProxyUrl),
|
|
2206
|
-
StageName: __expectString(output.StageName),
|
|
2207
|
-
VpcLinkId: __expectString(output.VpcLinkId),
|
|
2208
|
-
};
|
|
2209
|
-
};
|
|
2210
|
-
const de_ApiGatewayProxyInput = (output, context) => {
|
|
2211
|
-
return {
|
|
2212
|
-
EndpointType: __expectString(output.EndpointType),
|
|
2213
|
-
StageName: __expectString(output.StageName),
|
|
2214
|
-
};
|
|
2215
|
-
};
|
|
2216
|
-
const de_ApiGatewayProxySummary = (output, context) => {
|
|
2217
|
-
return {
|
|
2218
|
-
ApiGatewayId: __expectString(output.ApiGatewayId),
|
|
2219
|
-
EndpointType: __expectString(output.EndpointType),
|
|
2220
|
-
NlbArn: __expectString(output.NlbArn),
|
|
2221
|
-
NlbName: __expectString(output.NlbName),
|
|
2222
|
-
ProxyUrl: __expectString(output.ProxyUrl),
|
|
2223
|
-
StageName: __expectString(output.StageName),
|
|
2224
|
-
VpcLinkId: __expectString(output.VpcLinkId),
|
|
2225
|
-
};
|
|
2226
|
-
};
|
|
2227
1862
|
const de_ApplicationSummaries = (output, context) => {
|
|
2228
1863
|
const retVal = (output || [])
|
|
2229
1864
|
.filter((e) => e != null)
|
|
2230
1865
|
.map((entry) => {
|
|
2231
|
-
if (entry === null) {
|
|
2232
|
-
return null;
|
|
2233
|
-
}
|
|
2234
1866
|
return de_ApplicationSummary(entry, context);
|
|
2235
1867
|
});
|
|
2236
1868
|
return retVal;
|
|
2237
1869
|
};
|
|
2238
1870
|
const de_ApplicationSummary = (output, context) => {
|
|
2239
|
-
return {
|
|
2240
|
-
ApiGatewayProxy:
|
|
2241
|
-
ApplicationId: __expectString
|
|
2242
|
-
Arn: __expectString
|
|
2243
|
-
CreatedByAccountId: __expectString
|
|
2244
|
-
CreatedTime:
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
ProxyType: __expectString(output.ProxyType),
|
|
2255
|
-
State: __expectString(output.State),
|
|
2256
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2257
|
-
VpcId: __expectString(output.VpcId),
|
|
2258
|
-
};
|
|
2259
|
-
};
|
|
2260
|
-
const de_CidrBlocks = (output, context) => {
|
|
2261
|
-
const retVal = (output || [])
|
|
2262
|
-
.filter((e) => e != null)
|
|
2263
|
-
.map((entry) => {
|
|
2264
|
-
if (entry === null) {
|
|
2265
|
-
return null;
|
|
2266
|
-
}
|
|
2267
|
-
return __expectString(entry);
|
|
1871
|
+
return take(output, {
|
|
1872
|
+
ApiGatewayProxy: _json,
|
|
1873
|
+
ApplicationId: __expectString,
|
|
1874
|
+
Arn: __expectString,
|
|
1875
|
+
CreatedByAccountId: __expectString,
|
|
1876
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1877
|
+
EnvironmentId: __expectString,
|
|
1878
|
+
Error: _json,
|
|
1879
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1880
|
+
Name: __expectString,
|
|
1881
|
+
OwnerAccountId: __expectString,
|
|
1882
|
+
ProxyType: __expectString,
|
|
1883
|
+
State: __expectString,
|
|
1884
|
+
Tags: _json,
|
|
1885
|
+
VpcId: __expectString,
|
|
2268
1886
|
});
|
|
2269
|
-
return retVal;
|
|
2270
1887
|
};
|
|
2271
1888
|
const de_EnvironmentSummaries = (output, context) => {
|
|
2272
1889
|
const retVal = (output || [])
|
|
2273
1890
|
.filter((e) => e != null)
|
|
2274
1891
|
.map((entry) => {
|
|
2275
|
-
if (entry === null) {
|
|
2276
|
-
return null;
|
|
2277
|
-
}
|
|
2278
1892
|
return de_EnvironmentSummary(entry, context);
|
|
2279
1893
|
});
|
|
2280
1894
|
return retVal;
|
|
2281
1895
|
};
|
|
2282
1896
|
const de_EnvironmentSummary = (output, context) => {
|
|
2283
|
-
return {
|
|
2284
|
-
Arn: __expectString
|
|
2285
|
-
CreatedTime:
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
State: __expectString(output.State),
|
|
2298
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2299
|
-
TransitGatewayId: __expectString(output.TransitGatewayId),
|
|
2300
|
-
};
|
|
1897
|
+
return take(output, {
|
|
1898
|
+
Arn: __expectString,
|
|
1899
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1900
|
+
Description: __expectString,
|
|
1901
|
+
EnvironmentId: __expectString,
|
|
1902
|
+
Error: _json,
|
|
1903
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1904
|
+
Name: __expectString,
|
|
1905
|
+
NetworkFabricType: __expectString,
|
|
1906
|
+
OwnerAccountId: __expectString,
|
|
1907
|
+
State: __expectString,
|
|
1908
|
+
Tags: _json,
|
|
1909
|
+
TransitGatewayId: __expectString,
|
|
1910
|
+
});
|
|
2301
1911
|
};
|
|
2302
1912
|
const de_EnvironmentVpc = (output, context) => {
|
|
2303
|
-
return {
|
|
2304
|
-
AccountId: __expectString
|
|
2305
|
-
CidrBlocks:
|
|
2306
|
-
CreatedTime:
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
: undefined,
|
|
2313
|
-
VpcId: __expectString(output.VpcId),
|
|
2314
|
-
VpcName: __expectString(output.VpcName),
|
|
2315
|
-
};
|
|
1913
|
+
return take(output, {
|
|
1914
|
+
AccountId: __expectString,
|
|
1915
|
+
CidrBlocks: _json,
|
|
1916
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1917
|
+
EnvironmentId: __expectString,
|
|
1918
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1919
|
+
VpcId: __expectString,
|
|
1920
|
+
VpcName: __expectString,
|
|
1921
|
+
});
|
|
2316
1922
|
};
|
|
2317
1923
|
const de_EnvironmentVpcs = (output, context) => {
|
|
2318
1924
|
const retVal = (output || [])
|
|
2319
1925
|
.filter((e) => e != null)
|
|
2320
1926
|
.map((entry) => {
|
|
2321
|
-
if (entry === null) {
|
|
2322
|
-
return null;
|
|
2323
|
-
}
|
|
2324
1927
|
return de_EnvironmentVpc(entry, context);
|
|
2325
1928
|
});
|
|
2326
1929
|
return retVal;
|
|
2327
1930
|
};
|
|
2328
|
-
const de_ErrorResponse = (output, context) => {
|
|
2329
|
-
return {
|
|
2330
|
-
AccountId: __expectString(output.AccountId),
|
|
2331
|
-
AdditionalDetails: output.AdditionalDetails != null ? de_AdditionalDetails(output.AdditionalDetails, context) : undefined,
|
|
2332
|
-
Code: __expectString(output.Code),
|
|
2333
|
-
Message: __expectString(output.Message),
|
|
2334
|
-
ResourceIdentifier: __expectString(output.ResourceIdentifier),
|
|
2335
|
-
ResourceType: __expectString(output.ResourceType),
|
|
2336
|
-
};
|
|
2337
|
-
};
|
|
2338
|
-
const de_HttpMethods = (output, context) => {
|
|
2339
|
-
const retVal = (output || [])
|
|
2340
|
-
.filter((e) => e != null)
|
|
2341
|
-
.map((entry) => {
|
|
2342
|
-
if (entry === null) {
|
|
2343
|
-
return null;
|
|
2344
|
-
}
|
|
2345
|
-
return __expectString(entry);
|
|
2346
|
-
});
|
|
2347
|
-
return retVal;
|
|
2348
|
-
};
|
|
2349
|
-
const de_LambdaEndpointConfig = (output, context) => {
|
|
2350
|
-
return {
|
|
2351
|
-
Arn: __expectString(output.Arn),
|
|
2352
|
-
};
|
|
2353
|
-
};
|
|
2354
|
-
const de_LambdaEndpointInput = (output, context) => {
|
|
2355
|
-
return {
|
|
2356
|
-
Arn: __expectString(output.Arn),
|
|
2357
|
-
};
|
|
2358
|
-
};
|
|
2359
|
-
const de_LambdaEndpointSummary = (output, context) => {
|
|
2360
|
-
return {
|
|
2361
|
-
Arn: __expectString(output.Arn),
|
|
2362
|
-
};
|
|
2363
|
-
};
|
|
2364
|
-
const de_PathResourceToId = (output, context) => {
|
|
2365
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2366
|
-
if (value === null) {
|
|
2367
|
-
return acc;
|
|
2368
|
-
}
|
|
2369
|
-
acc[key] = __expectString(value);
|
|
2370
|
-
return acc;
|
|
2371
|
-
}, {});
|
|
2372
|
-
};
|
|
2373
1931
|
const de_RouteSummaries = (output, context) => {
|
|
2374
1932
|
const retVal = (output || [])
|
|
2375
1933
|
.filter((e) => e != null)
|
|
2376
1934
|
.map((entry) => {
|
|
2377
|
-
if (entry === null) {
|
|
2378
|
-
return null;
|
|
2379
|
-
}
|
|
2380
1935
|
return de_RouteSummary(entry, context);
|
|
2381
1936
|
});
|
|
2382
1937
|
return retVal;
|
|
2383
1938
|
};
|
|
2384
1939
|
const de_RouteSummary = (output, context) => {
|
|
2385
|
-
return {
|
|
2386
|
-
ApplicationId: __expectString
|
|
2387
|
-
Arn: __expectString
|
|
2388
|
-
CreatedByAccountId: __expectString
|
|
2389
|
-
CreatedTime:
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
SourcePath: __expectString(output.SourcePath),
|
|
2405
|
-
State: __expectString(output.State),
|
|
2406
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2407
|
-
};
|
|
1940
|
+
return take(output, {
|
|
1941
|
+
ApplicationId: __expectString,
|
|
1942
|
+
Arn: __expectString,
|
|
1943
|
+
CreatedByAccountId: __expectString,
|
|
1944
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1945
|
+
EnvironmentId: __expectString,
|
|
1946
|
+
Error: _json,
|
|
1947
|
+
IncludeChildPaths: __expectBoolean,
|
|
1948
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1949
|
+
Methods: _json,
|
|
1950
|
+
OwnerAccountId: __expectString,
|
|
1951
|
+
PathResourceToId: _json,
|
|
1952
|
+
RouteId: __expectString,
|
|
1953
|
+
RouteType: __expectString,
|
|
1954
|
+
ServiceId: __expectString,
|
|
1955
|
+
SourcePath: __expectString,
|
|
1956
|
+
State: __expectString,
|
|
1957
|
+
Tags: _json,
|
|
1958
|
+
});
|
|
2408
1959
|
};
|
|
2409
1960
|
const de_ServiceSummaries = (output, context) => {
|
|
2410
1961
|
const retVal = (output || [])
|
|
2411
1962
|
.filter((e) => e != null)
|
|
2412
1963
|
.map((entry) => {
|
|
2413
|
-
if (entry === null) {
|
|
2414
|
-
return null;
|
|
2415
|
-
}
|
|
2416
1964
|
return de_ServiceSummary(entry, context);
|
|
2417
1965
|
});
|
|
2418
1966
|
return retVal;
|
|
2419
1967
|
};
|
|
2420
1968
|
const de_ServiceSummary = (output, context) => {
|
|
2421
|
-
return {
|
|
2422
|
-
ApplicationId: __expectString
|
|
2423
|
-
Arn: __expectString
|
|
2424
|
-
CreatedByAccountId: __expectString
|
|
2425
|
-
CreatedTime:
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2441
|
-
UrlEndpoint: output.UrlEndpoint != null ? de_UrlEndpointSummary(output.UrlEndpoint, context) : undefined,
|
|
2442
|
-
VpcId: __expectString(output.VpcId),
|
|
2443
|
-
};
|
|
2444
|
-
};
|
|
2445
|
-
const de_TagMap = (output, context) => {
|
|
2446
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2447
|
-
if (value === null) {
|
|
2448
|
-
return acc;
|
|
2449
|
-
}
|
|
2450
|
-
acc[key] = __expectString(value);
|
|
2451
|
-
return acc;
|
|
2452
|
-
}, {});
|
|
2453
|
-
};
|
|
2454
|
-
const de_UriPathRouteInput = (output, context) => {
|
|
2455
|
-
return {
|
|
2456
|
-
ActivationState: __expectString(output.ActivationState),
|
|
2457
|
-
IncludeChildPaths: __expectBoolean(output.IncludeChildPaths),
|
|
2458
|
-
Methods: output.Methods != null ? de_HttpMethods(output.Methods, context) : undefined,
|
|
2459
|
-
SourcePath: __expectString(output.SourcePath),
|
|
2460
|
-
};
|
|
2461
|
-
};
|
|
2462
|
-
const de_UrlEndpointConfig = (output, context) => {
|
|
2463
|
-
return {
|
|
2464
|
-
HealthUrl: __expectString(output.HealthUrl),
|
|
2465
|
-
Url: __expectString(output.Url),
|
|
2466
|
-
};
|
|
2467
|
-
};
|
|
2468
|
-
const de_UrlEndpointInput = (output, context) => {
|
|
2469
|
-
return {
|
|
2470
|
-
HealthUrl: __expectString(output.HealthUrl),
|
|
2471
|
-
Url: __expectString(output.Url),
|
|
2472
|
-
};
|
|
2473
|
-
};
|
|
2474
|
-
const de_UrlEndpointSummary = (output, context) => {
|
|
2475
|
-
return {
|
|
2476
|
-
HealthUrl: __expectString(output.HealthUrl),
|
|
2477
|
-
Url: __expectString(output.Url),
|
|
2478
|
-
};
|
|
1969
|
+
return take(output, {
|
|
1970
|
+
ApplicationId: __expectString,
|
|
1971
|
+
Arn: __expectString,
|
|
1972
|
+
CreatedByAccountId: __expectString,
|
|
1973
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1974
|
+
Description: __expectString,
|
|
1975
|
+
EndpointType: __expectString,
|
|
1976
|
+
EnvironmentId: __expectString,
|
|
1977
|
+
Error: _json,
|
|
1978
|
+
LambdaEndpoint: _json,
|
|
1979
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1980
|
+
Name: __expectString,
|
|
1981
|
+
OwnerAccountId: __expectString,
|
|
1982
|
+
ServiceId: __expectString,
|
|
1983
|
+
State: __expectString,
|
|
1984
|
+
Tags: _json,
|
|
1985
|
+
UrlEndpoint: _json,
|
|
1986
|
+
VpcId: __expectString,
|
|
1987
|
+
});
|
|
2479
1988
|
};
|
|
2480
1989
|
const deserializeMetadata = (output) => ({
|
|
2481
1990
|
httpStatusCode: output.statusCode,
|