@aws-sdk/client-migration-hub-refactor-spaces 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/endpoint/ruleset.js +3 -3
- package/dist-cjs/protocols/Aws_restJson1.js +437 -928
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +400 -891
- package/dist-types/MigrationHubRefactorSpaces.d.ts +61 -34
- package/dist-types/commands/CreateApplicationCommand.d.ts +5 -0
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +5 -3
- package/dist-types/commands/CreateRouteCommand.d.ts +51 -31
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +3 -3
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/package.json +6 -6
|
@@ -15,14 +15,14 @@ const se_CreateApplicationCommand = async (input, context) => {
|
|
|
15
15
|
"/environments/{EnvironmentIdentifier}/applications";
|
|
16
16
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify({
|
|
19
|
-
|
|
20
|
-
ClientToken:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
});
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
+
ApiGatewayProxy: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
21
|
+
Name: [],
|
|
22
|
+
ProxyType: [],
|
|
23
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
24
|
+
VpcId: [],
|
|
25
|
+
}));
|
|
26
26
|
return new protocol_http_1.HttpRequest({
|
|
27
27
|
protocol,
|
|
28
28
|
hostname,
|
|
@@ -41,13 +41,13 @@ const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
41
41
|
};
|
|
42
42
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify({
|
|
45
|
-
ClientToken:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
});
|
|
44
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
45
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
46
|
+
Description: [],
|
|
47
|
+
Name: [],
|
|
48
|
+
NetworkFabricType: [],
|
|
49
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
50
|
+
}));
|
|
51
51
|
return new protocol_http_1.HttpRequest({
|
|
52
52
|
protocol,
|
|
53
53
|
hostname,
|
|
@@ -69,14 +69,14 @@ const se_CreateRouteCommand = async (input, context) => {
|
|
|
69
69
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
70
70
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
71
71
|
let body;
|
|
72
|
-
body = JSON.stringify({
|
|
73
|
-
ClientToken:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
72
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
73
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
74
|
+
DefaultRoute: (_) => (0, smithy_client_1._json)(_),
|
|
75
|
+
RouteType: [],
|
|
76
|
+
ServiceIdentifier: [],
|
|
77
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
78
|
+
UriPathRoute: (_) => (0, smithy_client_1._json)(_),
|
|
79
|
+
}));
|
|
80
80
|
return new protocol_http_1.HttpRequest({
|
|
81
81
|
protocol,
|
|
82
82
|
hostname,
|
|
@@ -98,16 +98,16 @@ const se_CreateServiceCommand = async (input, context) => {
|
|
|
98
98
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
99
99
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify({
|
|
102
|
-
ClientToken:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
});
|
|
101
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
102
|
+
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
103
|
+
Description: [],
|
|
104
|
+
EndpointType: [],
|
|
105
|
+
LambdaEndpoint: (_) => (0, smithy_client_1._json)(_),
|
|
106
|
+
Name: [],
|
|
107
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
108
|
+
UrlEndpoint: (_) => (0, smithy_client_1._json)(_),
|
|
109
|
+
VpcId: [],
|
|
110
|
+
}));
|
|
111
111
|
return new protocol_http_1.HttpRequest({
|
|
112
112
|
protocol,
|
|
113
113
|
hostname,
|
|
@@ -311,7 +311,7 @@ const se_ListApplicationsCommand = async (input, context) => {
|
|
|
311
311
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
312
312
|
"/environments/{EnvironmentIdentifier}/applications";
|
|
313
313
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
314
|
-
const query = map({
|
|
314
|
+
const query = (0, smithy_client_1.map)({
|
|
315
315
|
nextToken: [, input.NextToken],
|
|
316
316
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
317
317
|
});
|
|
@@ -332,7 +332,7 @@ const se_ListEnvironmentsCommand = async (input, context) => {
|
|
|
332
332
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
333
333
|
const headers = {};
|
|
334
334
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environments";
|
|
335
|
-
const query = map({
|
|
335
|
+
const query = (0, smithy_client_1.map)({
|
|
336
336
|
nextToken: [, input.NextToken],
|
|
337
337
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
338
338
|
});
|
|
@@ -355,7 +355,7 @@ const se_ListEnvironmentVpcsCommand = async (input, context) => {
|
|
|
355
355
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
356
356
|
"/environments/{EnvironmentIdentifier}/vpcs";
|
|
357
357
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
358
|
-
const query = map({
|
|
358
|
+
const query = (0, smithy_client_1.map)({
|
|
359
359
|
nextToken: [, input.NextToken],
|
|
360
360
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
361
361
|
});
|
|
@@ -379,7 +379,7 @@ const se_ListRoutesCommand = async (input, context) => {
|
|
|
379
379
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes";
|
|
380
380
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
381
381
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
382
|
-
const query = map({
|
|
382
|
+
const query = (0, smithy_client_1.map)({
|
|
383
383
|
nextToken: [, input.NextToken],
|
|
384
384
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
385
385
|
});
|
|
@@ -403,7 +403,7 @@ const se_ListServicesCommand = async (input, context) => {
|
|
|
403
403
|
"/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services";
|
|
404
404
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
|
|
405
405
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
406
|
-
const query = map({
|
|
406
|
+
const query = (0, smithy_client_1.map)({
|
|
407
407
|
nextToken: [, input.NextToken],
|
|
408
408
|
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
409
409
|
});
|
|
@@ -444,10 +444,10 @@ const se_PutResourcePolicyCommand = async (input, context) => {
|
|
|
444
444
|
};
|
|
445
445
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resourcepolicy";
|
|
446
446
|
let body;
|
|
447
|
-
body = JSON.stringify({
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
});
|
|
447
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
448
|
+
Policy: [],
|
|
449
|
+
ResourceArn: [],
|
|
450
|
+
}));
|
|
451
451
|
return new protocol_http_1.HttpRequest({
|
|
452
452
|
protocol,
|
|
453
453
|
hostname,
|
|
@@ -467,9 +467,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
467
467
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
468
468
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
469
469
|
let body;
|
|
470
|
-
body = JSON.stringify({
|
|
471
|
-
|
|
472
|
-
});
|
|
470
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
471
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
472
|
+
}));
|
|
473
473
|
return new protocol_http_1.HttpRequest({
|
|
474
474
|
protocol,
|
|
475
475
|
hostname,
|
|
@@ -486,7 +486,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
486
486
|
const headers = {};
|
|
487
487
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
488
488
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
489
|
-
const query = map({
|
|
489
|
+
const query = (0, smithy_client_1.map)({
|
|
490
490
|
tagKeys: [
|
|
491
491
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
492
492
|
() => (input.TagKeys || []).map((_entry) => _entry),
|
|
@@ -516,9 +516,9 @@ const se_UpdateRouteCommand = async (input, context) => {
|
|
|
516
516
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
|
|
517
517
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
|
|
518
518
|
let body;
|
|
519
|
-
body = JSON.stringify({
|
|
520
|
-
|
|
521
|
-
});
|
|
519
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
520
|
+
ActivationState: [],
|
|
521
|
+
}));
|
|
522
522
|
return new protocol_http_1.HttpRequest({
|
|
523
523
|
protocol,
|
|
524
524
|
hostname,
|
|
@@ -534,49 +534,26 @@ const de_CreateApplicationCommand = async (output, context) => {
|
|
|
534
534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
535
|
return de_CreateApplicationCommandError(output, context);
|
|
536
536
|
}
|
|
537
|
-
const contents = map({
|
|
537
|
+
const contents = (0, smithy_client_1.map)({
|
|
538
538
|
$metadata: deserializeMetadata(output),
|
|
539
539
|
});
|
|
540
540
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
|
|
558
|
-
}
|
|
559
|
-
if (data.LastUpdatedTime != null) {
|
|
560
|
-
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
561
|
-
}
|
|
562
|
-
if (data.Name != null) {
|
|
563
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
564
|
-
}
|
|
565
|
-
if (data.OwnerAccountId != null) {
|
|
566
|
-
contents.OwnerAccountId = (0, smithy_client_1.expectString)(data.OwnerAccountId);
|
|
567
|
-
}
|
|
568
|
-
if (data.ProxyType != null) {
|
|
569
|
-
contents.ProxyType = (0, smithy_client_1.expectString)(data.ProxyType);
|
|
570
|
-
}
|
|
571
|
-
if (data.State != null) {
|
|
572
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
573
|
-
}
|
|
574
|
-
if (data.Tags != null) {
|
|
575
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
576
|
-
}
|
|
577
|
-
if (data.VpcId != null) {
|
|
578
|
-
contents.VpcId = (0, smithy_client_1.expectString)(data.VpcId);
|
|
579
|
-
}
|
|
541
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
542
|
+
ApiGatewayProxy: smithy_client_1._json,
|
|
543
|
+
ApplicationId: smithy_client_1.expectString,
|
|
544
|
+
Arn: smithy_client_1.expectString,
|
|
545
|
+
CreatedByAccountId: smithy_client_1.expectString,
|
|
546
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
547
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
548
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
549
|
+
Name: smithy_client_1.expectString,
|
|
550
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
551
|
+
ProxyType: smithy_client_1.expectString,
|
|
552
|
+
State: smithy_client_1.expectString,
|
|
553
|
+
Tags: smithy_client_1._json,
|
|
554
|
+
VpcId: smithy_client_1.expectString,
|
|
555
|
+
});
|
|
556
|
+
Object.assign(contents, doc);
|
|
580
557
|
return contents;
|
|
581
558
|
};
|
|
582
559
|
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
@@ -610,10 +587,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
610
587
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
611
588
|
default:
|
|
612
589
|
const parsedBody = parsedOutput.body;
|
|
613
|
-
|
|
590
|
+
return throwDefaultError({
|
|
614
591
|
output,
|
|
615
592
|
parsedBody,
|
|
616
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
617
593
|
errorCode,
|
|
618
594
|
});
|
|
619
595
|
}
|
|
@@ -622,40 +598,23 @@ const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
622
598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
623
599
|
return de_CreateEnvironmentCommandError(output, context);
|
|
624
600
|
}
|
|
625
|
-
const contents = map({
|
|
601
|
+
const contents = (0, smithy_client_1.map)({
|
|
626
602
|
$metadata: deserializeMetadata(output),
|
|
627
603
|
});
|
|
628
604
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
643
|
-
}
|
|
644
|
-
if (data.Name != null) {
|
|
645
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
646
|
-
}
|
|
647
|
-
if (data.NetworkFabricType != null) {
|
|
648
|
-
contents.NetworkFabricType = (0, smithy_client_1.expectString)(data.NetworkFabricType);
|
|
649
|
-
}
|
|
650
|
-
if (data.OwnerAccountId != null) {
|
|
651
|
-
contents.OwnerAccountId = (0, smithy_client_1.expectString)(data.OwnerAccountId);
|
|
652
|
-
}
|
|
653
|
-
if (data.State != null) {
|
|
654
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
655
|
-
}
|
|
656
|
-
if (data.Tags != null) {
|
|
657
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
658
|
-
}
|
|
605
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
606
|
+
Arn: smithy_client_1.expectString,
|
|
607
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
608
|
+
Description: smithy_client_1.expectString,
|
|
609
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
610
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
611
|
+
Name: smithy_client_1.expectString,
|
|
612
|
+
NetworkFabricType: smithy_client_1.expectString,
|
|
613
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
614
|
+
State: smithy_client_1.expectString,
|
|
615
|
+
Tags: smithy_client_1._json,
|
|
616
|
+
});
|
|
617
|
+
Object.assign(contents, doc);
|
|
659
618
|
return contents;
|
|
660
619
|
};
|
|
661
620
|
exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
|
|
@@ -689,10 +648,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
|
689
648
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
690
649
|
default:
|
|
691
650
|
const parsedBody = parsedOutput.body;
|
|
692
|
-
|
|
651
|
+
return throwDefaultError({
|
|
693
652
|
output,
|
|
694
653
|
parsedBody,
|
|
695
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
696
654
|
errorCode,
|
|
697
655
|
});
|
|
698
656
|
}
|
|
@@ -701,46 +659,25 @@ const de_CreateRouteCommand = async (output, context) => {
|
|
|
701
659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
702
660
|
return de_CreateRouteCommandError(output, context);
|
|
703
661
|
}
|
|
704
|
-
const contents = map({
|
|
662
|
+
const contents = (0, smithy_client_1.map)({
|
|
705
663
|
$metadata: deserializeMetadata(output),
|
|
706
664
|
});
|
|
707
665
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
if (data.OwnerAccountId != null) {
|
|
724
|
-
contents.OwnerAccountId = (0, smithy_client_1.expectString)(data.OwnerAccountId);
|
|
725
|
-
}
|
|
726
|
-
if (data.RouteId != null) {
|
|
727
|
-
contents.RouteId = (0, smithy_client_1.expectString)(data.RouteId);
|
|
728
|
-
}
|
|
729
|
-
if (data.RouteType != null) {
|
|
730
|
-
contents.RouteType = (0, smithy_client_1.expectString)(data.RouteType);
|
|
731
|
-
}
|
|
732
|
-
if (data.ServiceId != null) {
|
|
733
|
-
contents.ServiceId = (0, smithy_client_1.expectString)(data.ServiceId);
|
|
734
|
-
}
|
|
735
|
-
if (data.State != null) {
|
|
736
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
737
|
-
}
|
|
738
|
-
if (data.Tags != null) {
|
|
739
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
740
|
-
}
|
|
741
|
-
if (data.UriPathRoute != null) {
|
|
742
|
-
contents.UriPathRoute = de_UriPathRouteInput(data.UriPathRoute, context);
|
|
743
|
-
}
|
|
666
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
667
|
+
ApplicationId: smithy_client_1.expectString,
|
|
668
|
+
Arn: smithy_client_1.expectString,
|
|
669
|
+
CreatedByAccountId: smithy_client_1.expectString,
|
|
670
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
671
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
672
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
673
|
+
RouteId: smithy_client_1.expectString,
|
|
674
|
+
RouteType: smithy_client_1.expectString,
|
|
675
|
+
ServiceId: smithy_client_1.expectString,
|
|
676
|
+
State: smithy_client_1.expectString,
|
|
677
|
+
Tags: smithy_client_1._json,
|
|
678
|
+
UriPathRoute: smithy_client_1._json,
|
|
679
|
+
});
|
|
680
|
+
Object.assign(contents, doc);
|
|
744
681
|
return contents;
|
|
745
682
|
};
|
|
746
683
|
exports.de_CreateRouteCommand = de_CreateRouteCommand;
|
|
@@ -774,10 +711,9 @@ const de_CreateRouteCommandError = async (output, context) => {
|
|
|
774
711
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
775
712
|
default:
|
|
776
713
|
const parsedBody = parsedOutput.body;
|
|
777
|
-
|
|
714
|
+
return throwDefaultError({
|
|
778
715
|
output,
|
|
779
716
|
parsedBody,
|
|
780
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
781
717
|
errorCode,
|
|
782
718
|
});
|
|
783
719
|
}
|
|
@@ -786,58 +722,29 @@ const de_CreateServiceCommand = async (output, context) => {
|
|
|
786
722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
787
723
|
return de_CreateServiceCommandError(output, context);
|
|
788
724
|
}
|
|
789
|
-
const contents = map({
|
|
725
|
+
const contents = (0, smithy_client_1.map)({
|
|
790
726
|
$metadata: deserializeMetadata(output),
|
|
791
727
|
});
|
|
792
728
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
contents.EnvironmentId = (0, smithy_client_1.expectString)(data.EnvironmentId);
|
|
813
|
-
}
|
|
814
|
-
if (data.LambdaEndpoint != null) {
|
|
815
|
-
contents.LambdaEndpoint = de_LambdaEndpointInput(data.LambdaEndpoint, context);
|
|
816
|
-
}
|
|
817
|
-
if (data.LastUpdatedTime != null) {
|
|
818
|
-
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
819
|
-
}
|
|
820
|
-
if (data.Name != null) {
|
|
821
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
822
|
-
}
|
|
823
|
-
if (data.OwnerAccountId != null) {
|
|
824
|
-
contents.OwnerAccountId = (0, smithy_client_1.expectString)(data.OwnerAccountId);
|
|
825
|
-
}
|
|
826
|
-
if (data.ServiceId != null) {
|
|
827
|
-
contents.ServiceId = (0, smithy_client_1.expectString)(data.ServiceId);
|
|
828
|
-
}
|
|
829
|
-
if (data.State != null) {
|
|
830
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
831
|
-
}
|
|
832
|
-
if (data.Tags != null) {
|
|
833
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
834
|
-
}
|
|
835
|
-
if (data.UrlEndpoint != null) {
|
|
836
|
-
contents.UrlEndpoint = de_UrlEndpointInput(data.UrlEndpoint, context);
|
|
837
|
-
}
|
|
838
|
-
if (data.VpcId != null) {
|
|
839
|
-
contents.VpcId = (0, smithy_client_1.expectString)(data.VpcId);
|
|
840
|
-
}
|
|
729
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
730
|
+
ApplicationId: smithy_client_1.expectString,
|
|
731
|
+
Arn: smithy_client_1.expectString,
|
|
732
|
+
CreatedByAccountId: smithy_client_1.expectString,
|
|
733
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
734
|
+
Description: smithy_client_1.expectString,
|
|
735
|
+
EndpointType: smithy_client_1.expectString,
|
|
736
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
737
|
+
LambdaEndpoint: smithy_client_1._json,
|
|
738
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
739
|
+
Name: smithy_client_1.expectString,
|
|
740
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
741
|
+
ServiceId: smithy_client_1.expectString,
|
|
742
|
+
State: smithy_client_1.expectString,
|
|
743
|
+
Tags: smithy_client_1._json,
|
|
744
|
+
UrlEndpoint: smithy_client_1._json,
|
|
745
|
+
VpcId: smithy_client_1.expectString,
|
|
746
|
+
});
|
|
747
|
+
Object.assign(contents, doc);
|
|
841
748
|
return contents;
|
|
842
749
|
};
|
|
843
750
|
exports.de_CreateServiceCommand = de_CreateServiceCommand;
|
|
@@ -871,10 +778,9 @@ const de_CreateServiceCommandError = async (output, context) => {
|
|
|
871
778
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
872
779
|
default:
|
|
873
780
|
const parsedBody = parsedOutput.body;
|
|
874
|
-
|
|
781
|
+
return throwDefaultError({
|
|
875
782
|
output,
|
|
876
783
|
parsedBody,
|
|
877
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
878
784
|
errorCode,
|
|
879
785
|
});
|
|
880
786
|
}
|
|
@@ -883,28 +789,19 @@ const de_DeleteApplicationCommand = async (output, context) => {
|
|
|
883
789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
884
790
|
return de_DeleteApplicationCommandError(output, context);
|
|
885
791
|
}
|
|
886
|
-
const contents = map({
|
|
792
|
+
const contents = (0, smithy_client_1.map)({
|
|
887
793
|
$metadata: deserializeMetadata(output),
|
|
888
794
|
});
|
|
889
795
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
if (data.LastUpdatedTime != null) {
|
|
900
|
-
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
901
|
-
}
|
|
902
|
-
if (data.Name != null) {
|
|
903
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
904
|
-
}
|
|
905
|
-
if (data.State != null) {
|
|
906
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
907
|
-
}
|
|
796
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
797
|
+
ApplicationId: smithy_client_1.expectString,
|
|
798
|
+
Arn: smithy_client_1.expectString,
|
|
799
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
800
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
801
|
+
Name: smithy_client_1.expectString,
|
|
802
|
+
State: smithy_client_1.expectString,
|
|
803
|
+
});
|
|
804
|
+
Object.assign(contents, doc);
|
|
908
805
|
return contents;
|
|
909
806
|
};
|
|
910
807
|
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
@@ -935,10 +832,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
|
|
|
935
832
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
936
833
|
default:
|
|
937
834
|
const parsedBody = parsedOutput.body;
|
|
938
|
-
|
|
835
|
+
return throwDefaultError({
|
|
939
836
|
output,
|
|
940
837
|
parsedBody,
|
|
941
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
942
838
|
errorCode,
|
|
943
839
|
});
|
|
944
840
|
}
|
|
@@ -947,25 +843,18 @@ const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
|
947
843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
948
844
|
return de_DeleteEnvironmentCommandError(output, context);
|
|
949
845
|
}
|
|
950
|
-
const contents = map({
|
|
846
|
+
const contents = (0, smithy_client_1.map)({
|
|
951
847
|
$metadata: deserializeMetadata(output),
|
|
952
848
|
});
|
|
953
849
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}
|
|
963
|
-
if (data.Name != null) {
|
|
964
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
965
|
-
}
|
|
966
|
-
if (data.State != null) {
|
|
967
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
968
|
-
}
|
|
850
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
851
|
+
Arn: smithy_client_1.expectString,
|
|
852
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
853
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
854
|
+
Name: smithy_client_1.expectString,
|
|
855
|
+
State: smithy_client_1.expectString,
|
|
856
|
+
});
|
|
857
|
+
Object.assign(contents, doc);
|
|
969
858
|
return contents;
|
|
970
859
|
};
|
|
971
860
|
exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
|
|
@@ -996,10 +885,9 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
|
996
885
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
997
886
|
default:
|
|
998
887
|
const parsedBody = parsedOutput.body;
|
|
999
|
-
|
|
888
|
+
return throwDefaultError({
|
|
1000
889
|
output,
|
|
1001
890
|
parsedBody,
|
|
1002
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1003
891
|
errorCode,
|
|
1004
892
|
});
|
|
1005
893
|
}
|
|
@@ -1008,7 +896,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
1008
896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
897
|
return de_DeleteResourcePolicyCommandError(output, context);
|
|
1010
898
|
}
|
|
1011
|
-
const contents = map({
|
|
899
|
+
const contents = (0, smithy_client_1.map)({
|
|
1012
900
|
$metadata: deserializeMetadata(output),
|
|
1013
901
|
});
|
|
1014
902
|
await collectBody(output.body, context);
|
|
@@ -1039,10 +927,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
1039
927
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1040
928
|
default:
|
|
1041
929
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
|
|
930
|
+
return throwDefaultError({
|
|
1043
931
|
output,
|
|
1044
932
|
parsedBody,
|
|
1045
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1046
933
|
errorCode,
|
|
1047
934
|
});
|
|
1048
935
|
}
|
|
@@ -1051,28 +938,19 @@ const de_DeleteRouteCommand = async (output, context) => {
|
|
|
1051
938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1052
939
|
return de_DeleteRouteCommandError(output, context);
|
|
1053
940
|
}
|
|
1054
|
-
const contents = map({
|
|
941
|
+
const contents = (0, smithy_client_1.map)({
|
|
1055
942
|
$metadata: deserializeMetadata(output),
|
|
1056
943
|
});
|
|
1057
944
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
if (data.RouteId != null) {
|
|
1068
|
-
contents.RouteId = (0, smithy_client_1.expectString)(data.RouteId);
|
|
1069
|
-
}
|
|
1070
|
-
if (data.ServiceId != null) {
|
|
1071
|
-
contents.ServiceId = (0, smithy_client_1.expectString)(data.ServiceId);
|
|
1072
|
-
}
|
|
1073
|
-
if (data.State != null) {
|
|
1074
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1075
|
-
}
|
|
945
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
946
|
+
ApplicationId: smithy_client_1.expectString,
|
|
947
|
+
Arn: smithy_client_1.expectString,
|
|
948
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
949
|
+
RouteId: smithy_client_1.expectString,
|
|
950
|
+
ServiceId: smithy_client_1.expectString,
|
|
951
|
+
State: smithy_client_1.expectString,
|
|
952
|
+
});
|
|
953
|
+
Object.assign(contents, doc);
|
|
1076
954
|
return contents;
|
|
1077
955
|
};
|
|
1078
956
|
exports.de_DeleteRouteCommand = de_DeleteRouteCommand;
|
|
@@ -1103,10 +981,9 @@ const de_DeleteRouteCommandError = async (output, context) => {
|
|
|
1103
981
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1104
982
|
default:
|
|
1105
983
|
const parsedBody = parsedOutput.body;
|
|
1106
|
-
|
|
984
|
+
return throwDefaultError({
|
|
1107
985
|
output,
|
|
1108
986
|
parsedBody,
|
|
1109
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1110
987
|
errorCode,
|
|
1111
988
|
});
|
|
1112
989
|
}
|
|
@@ -1115,31 +992,20 @@ const de_DeleteServiceCommand = async (output, context) => {
|
|
|
1115
992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1116
993
|
return de_DeleteServiceCommandError(output, context);
|
|
1117
994
|
}
|
|
1118
|
-
const contents = map({
|
|
995
|
+
const contents = (0, smithy_client_1.map)({
|
|
1119
996
|
$metadata: deserializeMetadata(output),
|
|
1120
997
|
});
|
|
1121
998
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
1133
|
-
}
|
|
1134
|
-
if (data.Name != null) {
|
|
1135
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1136
|
-
}
|
|
1137
|
-
if (data.ServiceId != null) {
|
|
1138
|
-
contents.ServiceId = (0, smithy_client_1.expectString)(data.ServiceId);
|
|
1139
|
-
}
|
|
1140
|
-
if (data.State != null) {
|
|
1141
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1142
|
-
}
|
|
999
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1000
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1001
|
+
Arn: smithy_client_1.expectString,
|
|
1002
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
1003
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1004
|
+
Name: smithy_client_1.expectString,
|
|
1005
|
+
ServiceId: smithy_client_1.expectString,
|
|
1006
|
+
State: smithy_client_1.expectString,
|
|
1007
|
+
});
|
|
1008
|
+
Object.assign(contents, doc);
|
|
1143
1009
|
return contents;
|
|
1144
1010
|
};
|
|
1145
1011
|
exports.de_DeleteServiceCommand = de_DeleteServiceCommand;
|
|
@@ -1170,10 +1036,9 @@ const de_DeleteServiceCommandError = async (output, context) => {
|
|
|
1170
1036
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1171
1037
|
default:
|
|
1172
1038
|
const parsedBody = parsedOutput.body;
|
|
1173
|
-
|
|
1039
|
+
return throwDefaultError({
|
|
1174
1040
|
output,
|
|
1175
1041
|
parsedBody,
|
|
1176
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1177
1042
|
errorCode,
|
|
1178
1043
|
});
|
|
1179
1044
|
}
|
|
@@ -1182,52 +1047,27 @@ const de_GetApplicationCommand = async (output, context) => {
|
|
|
1182
1047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1183
1048
|
return de_GetApplicationCommandError(output, context);
|
|
1184
1049
|
}
|
|
1185
|
-
const contents = map({
|
|
1050
|
+
const contents = (0, smithy_client_1.map)({
|
|
1186
1051
|
$metadata: deserializeMetadata(output),
|
|
1187
1052
|
});
|
|
1188
1053
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
}
|
|
1207
|
-
if (data.Error != null) {
|
|
1208
|
-
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1209
|
-
}
|
|
1210
|
-
if (data.LastUpdatedTime != null) {
|
|
1211
|
-
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
1212
|
-
}
|
|
1213
|
-
if (data.Name != null) {
|
|
1214
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1215
|
-
}
|
|
1216
|
-
if (data.OwnerAccountId != null) {
|
|
1217
|
-
contents.OwnerAccountId = (0, smithy_client_1.expectString)(data.OwnerAccountId);
|
|
1218
|
-
}
|
|
1219
|
-
if (data.ProxyType != null) {
|
|
1220
|
-
contents.ProxyType = (0, smithy_client_1.expectString)(data.ProxyType);
|
|
1221
|
-
}
|
|
1222
|
-
if (data.State != null) {
|
|
1223
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1224
|
-
}
|
|
1225
|
-
if (data.Tags != null) {
|
|
1226
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
1227
|
-
}
|
|
1228
|
-
if (data.VpcId != null) {
|
|
1229
|
-
contents.VpcId = (0, smithy_client_1.expectString)(data.VpcId);
|
|
1230
|
-
}
|
|
1054
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1055
|
+
ApiGatewayProxy: smithy_client_1._json,
|
|
1056
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1057
|
+
Arn: smithy_client_1.expectString,
|
|
1058
|
+
CreatedByAccountId: smithy_client_1.expectString,
|
|
1059
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1060
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
1061
|
+
Error: smithy_client_1._json,
|
|
1062
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1063
|
+
Name: smithy_client_1.expectString,
|
|
1064
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
1065
|
+
ProxyType: smithy_client_1.expectString,
|
|
1066
|
+
State: smithy_client_1.expectString,
|
|
1067
|
+
Tags: smithy_client_1._json,
|
|
1068
|
+
VpcId: smithy_client_1.expectString,
|
|
1069
|
+
});
|
|
1070
|
+
Object.assign(contents, doc);
|
|
1231
1071
|
return contents;
|
|
1232
1072
|
};
|
|
1233
1073
|
exports.de_GetApplicationCommand = de_GetApplicationCommand;
|
|
@@ -1255,10 +1095,9 @@ const de_GetApplicationCommandError = async (output, context) => {
|
|
|
1255
1095
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1256
1096
|
default:
|
|
1257
1097
|
const parsedBody = parsedOutput.body;
|
|
1258
|
-
|
|
1098
|
+
return throwDefaultError({
|
|
1259
1099
|
output,
|
|
1260
1100
|
parsedBody,
|
|
1261
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1262
1101
|
errorCode,
|
|
1263
1102
|
});
|
|
1264
1103
|
}
|
|
@@ -1267,46 +1106,25 @@ const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
1267
1106
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1268
1107
|
return de_GetEnvironmentCommandError(output, context);
|
|
1269
1108
|
}
|
|
1270
|
-
const contents = map({
|
|
1109
|
+
const contents = (0, smithy_client_1.map)({
|
|
1271
1110
|
$metadata: deserializeMetadata(output),
|
|
1272
1111
|
});
|
|
1273
1112
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
if (data.LastUpdatedTime != null) {
|
|
1290
|
-
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
1291
|
-
}
|
|
1292
|
-
if (data.Name != null) {
|
|
1293
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1294
|
-
}
|
|
1295
|
-
if (data.NetworkFabricType != null) {
|
|
1296
|
-
contents.NetworkFabricType = (0, smithy_client_1.expectString)(data.NetworkFabricType);
|
|
1297
|
-
}
|
|
1298
|
-
if (data.OwnerAccountId != null) {
|
|
1299
|
-
contents.OwnerAccountId = (0, smithy_client_1.expectString)(data.OwnerAccountId);
|
|
1300
|
-
}
|
|
1301
|
-
if (data.State != null) {
|
|
1302
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1303
|
-
}
|
|
1304
|
-
if (data.Tags != null) {
|
|
1305
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
1306
|
-
}
|
|
1307
|
-
if (data.TransitGatewayId != null) {
|
|
1308
|
-
contents.TransitGatewayId = (0, smithy_client_1.expectString)(data.TransitGatewayId);
|
|
1309
|
-
}
|
|
1113
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1114
|
+
Arn: smithy_client_1.expectString,
|
|
1115
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1116
|
+
Description: smithy_client_1.expectString,
|
|
1117
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
1118
|
+
Error: smithy_client_1._json,
|
|
1119
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1120
|
+
Name: smithy_client_1.expectString,
|
|
1121
|
+
NetworkFabricType: smithy_client_1.expectString,
|
|
1122
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
1123
|
+
State: smithy_client_1.expectString,
|
|
1124
|
+
Tags: smithy_client_1._json,
|
|
1125
|
+
TransitGatewayId: smithy_client_1.expectString,
|
|
1126
|
+
});
|
|
1127
|
+
Object.assign(contents, doc);
|
|
1310
1128
|
return contents;
|
|
1311
1129
|
};
|
|
1312
1130
|
exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
|
|
@@ -1334,10 +1152,9 @@ const de_GetEnvironmentCommandError = async (output, context) => {
|
|
|
1334
1152
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1335
1153
|
default:
|
|
1336
1154
|
const parsedBody = parsedOutput.body;
|
|
1337
|
-
|
|
1155
|
+
return throwDefaultError({
|
|
1338
1156
|
output,
|
|
1339
1157
|
parsedBody,
|
|
1340
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1341
1158
|
errorCode,
|
|
1342
1159
|
});
|
|
1343
1160
|
}
|
|
@@ -1346,13 +1163,14 @@ const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
1346
1163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1347
1164
|
return de_GetResourcePolicyCommandError(output, context);
|
|
1348
1165
|
}
|
|
1349
|
-
const contents = map({
|
|
1166
|
+
const contents = (0, smithy_client_1.map)({
|
|
1350
1167
|
$metadata: deserializeMetadata(output),
|
|
1351
1168
|
});
|
|
1352
1169
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
}
|
|
1170
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1171
|
+
Policy: smithy_client_1.expectString,
|
|
1172
|
+
});
|
|
1173
|
+
Object.assign(contents, doc);
|
|
1356
1174
|
return contents;
|
|
1357
1175
|
};
|
|
1358
1176
|
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
@@ -1380,10 +1198,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
|
1380
1198
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1381
1199
|
default:
|
|
1382
1200
|
const parsedBody = parsedOutput.body;
|
|
1383
|
-
|
|
1201
|
+
return throwDefaultError({
|
|
1384
1202
|
output,
|
|
1385
1203
|
parsedBody,
|
|
1386
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1387
1204
|
errorCode,
|
|
1388
1205
|
});
|
|
1389
1206
|
}
|
|
@@ -1392,61 +1209,30 @@ const de_GetRouteCommand = async (output, context) => {
|
|
|
1392
1209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1393
1210
|
return de_GetRouteCommandError(output, context);
|
|
1394
1211
|
}
|
|
1395
|
-
const contents = map({
|
|
1212
|
+
const contents = (0, smithy_client_1.map)({
|
|
1396
1213
|
$metadata: deserializeMetadata(output),
|
|
1397
1214
|
});
|
|
1398
1215
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
}
|
|
1420
|
-
if (data.LastUpdatedTime != null) {
|
|
1421
|
-
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
1422
|
-
}
|
|
1423
|
-
if (data.Methods != null) {
|
|
1424
|
-
contents.Methods = de_HttpMethods(data.Methods, context);
|
|
1425
|
-
}
|
|
1426
|
-
if (data.OwnerAccountId != null) {
|
|
1427
|
-
contents.OwnerAccountId = (0, smithy_client_1.expectString)(data.OwnerAccountId);
|
|
1428
|
-
}
|
|
1429
|
-
if (data.PathResourceToId != null) {
|
|
1430
|
-
contents.PathResourceToId = de_PathResourceToId(data.PathResourceToId, context);
|
|
1431
|
-
}
|
|
1432
|
-
if (data.RouteId != null) {
|
|
1433
|
-
contents.RouteId = (0, smithy_client_1.expectString)(data.RouteId);
|
|
1434
|
-
}
|
|
1435
|
-
if (data.RouteType != null) {
|
|
1436
|
-
contents.RouteType = (0, smithy_client_1.expectString)(data.RouteType);
|
|
1437
|
-
}
|
|
1438
|
-
if (data.ServiceId != null) {
|
|
1439
|
-
contents.ServiceId = (0, smithy_client_1.expectString)(data.ServiceId);
|
|
1440
|
-
}
|
|
1441
|
-
if (data.SourcePath != null) {
|
|
1442
|
-
contents.SourcePath = (0, smithy_client_1.expectString)(data.SourcePath);
|
|
1443
|
-
}
|
|
1444
|
-
if (data.State != null) {
|
|
1445
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1446
|
-
}
|
|
1447
|
-
if (data.Tags != null) {
|
|
1448
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
1449
|
-
}
|
|
1216
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1217
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1218
|
+
Arn: smithy_client_1.expectString,
|
|
1219
|
+
CreatedByAccountId: smithy_client_1.expectString,
|
|
1220
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1221
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
1222
|
+
Error: smithy_client_1._json,
|
|
1223
|
+
IncludeChildPaths: smithy_client_1.expectBoolean,
|
|
1224
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1225
|
+
Methods: smithy_client_1._json,
|
|
1226
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
1227
|
+
PathResourceToId: smithy_client_1._json,
|
|
1228
|
+
RouteId: smithy_client_1.expectString,
|
|
1229
|
+
RouteType: smithy_client_1.expectString,
|
|
1230
|
+
ServiceId: smithy_client_1.expectString,
|
|
1231
|
+
SourcePath: smithy_client_1.expectString,
|
|
1232
|
+
State: smithy_client_1.expectString,
|
|
1233
|
+
Tags: smithy_client_1._json,
|
|
1234
|
+
});
|
|
1235
|
+
Object.assign(contents, doc);
|
|
1450
1236
|
return contents;
|
|
1451
1237
|
};
|
|
1452
1238
|
exports.de_GetRouteCommand = de_GetRouteCommand;
|
|
@@ -1474,10 +1260,9 @@ const de_GetRouteCommandError = async (output, context) => {
|
|
|
1474
1260
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1475
1261
|
default:
|
|
1476
1262
|
const parsedBody = parsedOutput.body;
|
|
1477
|
-
|
|
1263
|
+
return throwDefaultError({
|
|
1478
1264
|
output,
|
|
1479
1265
|
parsedBody,
|
|
1480
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1481
1266
|
errorCode,
|
|
1482
1267
|
});
|
|
1483
1268
|
}
|
|
@@ -1486,61 +1271,30 @@ const de_GetServiceCommand = async (output, context) => {
|
|
|
1486
1271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1487
1272
|
return de_GetServiceCommandError(output, context);
|
|
1488
1273
|
}
|
|
1489
|
-
const contents = map({
|
|
1274
|
+
const contents = (0, smithy_client_1.map)({
|
|
1490
1275
|
$metadata: deserializeMetadata(output),
|
|
1491
1276
|
});
|
|
1492
1277
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
}
|
|
1514
|
-
if (data.Error != null) {
|
|
1515
|
-
contents.Error = de_ErrorResponse(data.Error, context);
|
|
1516
|
-
}
|
|
1517
|
-
if (data.LambdaEndpoint != null) {
|
|
1518
|
-
contents.LambdaEndpoint = de_LambdaEndpointConfig(data.LambdaEndpoint, context);
|
|
1519
|
-
}
|
|
1520
|
-
if (data.LastUpdatedTime != null) {
|
|
1521
|
-
contents.LastUpdatedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedTime)));
|
|
1522
|
-
}
|
|
1523
|
-
if (data.Name != null) {
|
|
1524
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1525
|
-
}
|
|
1526
|
-
if (data.OwnerAccountId != null) {
|
|
1527
|
-
contents.OwnerAccountId = (0, smithy_client_1.expectString)(data.OwnerAccountId);
|
|
1528
|
-
}
|
|
1529
|
-
if (data.ServiceId != null) {
|
|
1530
|
-
contents.ServiceId = (0, smithy_client_1.expectString)(data.ServiceId);
|
|
1531
|
-
}
|
|
1532
|
-
if (data.State != null) {
|
|
1533
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1534
|
-
}
|
|
1535
|
-
if (data.Tags != null) {
|
|
1536
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
1537
|
-
}
|
|
1538
|
-
if (data.UrlEndpoint != null) {
|
|
1539
|
-
contents.UrlEndpoint = de_UrlEndpointConfig(data.UrlEndpoint, context);
|
|
1540
|
-
}
|
|
1541
|
-
if (data.VpcId != null) {
|
|
1542
|
-
contents.VpcId = (0, smithy_client_1.expectString)(data.VpcId);
|
|
1543
|
-
}
|
|
1278
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1279
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1280
|
+
Arn: smithy_client_1.expectString,
|
|
1281
|
+
CreatedByAccountId: smithy_client_1.expectString,
|
|
1282
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1283
|
+
Description: smithy_client_1.expectString,
|
|
1284
|
+
EndpointType: smithy_client_1.expectString,
|
|
1285
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
1286
|
+
Error: smithy_client_1._json,
|
|
1287
|
+
LambdaEndpoint: smithy_client_1._json,
|
|
1288
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1289
|
+
Name: smithy_client_1.expectString,
|
|
1290
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
1291
|
+
ServiceId: smithy_client_1.expectString,
|
|
1292
|
+
State: smithy_client_1.expectString,
|
|
1293
|
+
Tags: smithy_client_1._json,
|
|
1294
|
+
UrlEndpoint: smithy_client_1._json,
|
|
1295
|
+
VpcId: smithy_client_1.expectString,
|
|
1296
|
+
});
|
|
1297
|
+
Object.assign(contents, doc);
|
|
1544
1298
|
return contents;
|
|
1545
1299
|
};
|
|
1546
1300
|
exports.de_GetServiceCommand = de_GetServiceCommand;
|
|
@@ -1568,10 +1322,9 @@ const de_GetServiceCommandError = async (output, context) => {
|
|
|
1568
1322
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1569
1323
|
default:
|
|
1570
1324
|
const parsedBody = parsedOutput.body;
|
|
1571
|
-
|
|
1325
|
+
return throwDefaultError({
|
|
1572
1326
|
output,
|
|
1573
1327
|
parsedBody,
|
|
1574
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1575
1328
|
errorCode,
|
|
1576
1329
|
});
|
|
1577
1330
|
}
|
|
@@ -1580,16 +1333,15 @@ const de_ListApplicationsCommand = async (output, context) => {
|
|
|
1580
1333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1581
1334
|
return de_ListApplicationsCommandError(output, context);
|
|
1582
1335
|
}
|
|
1583
|
-
const contents = map({
|
|
1336
|
+
const contents = (0, smithy_client_1.map)({
|
|
1584
1337
|
$metadata: deserializeMetadata(output),
|
|
1585
1338
|
});
|
|
1586
1339
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
}
|
|
1340
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1341
|
+
ApplicationSummaryList: (_) => de_ApplicationSummaries(_, context),
|
|
1342
|
+
NextToken: smithy_client_1.expectString,
|
|
1343
|
+
});
|
|
1344
|
+
Object.assign(contents, doc);
|
|
1593
1345
|
return contents;
|
|
1594
1346
|
};
|
|
1595
1347
|
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
@@ -1623,10 +1375,9 @@ const de_ListApplicationsCommandError = async (output, context) => {
|
|
|
1623
1375
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1624
1376
|
default:
|
|
1625
1377
|
const parsedBody = parsedOutput.body;
|
|
1626
|
-
|
|
1378
|
+
return throwDefaultError({
|
|
1627
1379
|
output,
|
|
1628
1380
|
parsedBody,
|
|
1629
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1630
1381
|
errorCode,
|
|
1631
1382
|
});
|
|
1632
1383
|
}
|
|
@@ -1635,16 +1386,15 @@ const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
1635
1386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1636
1387
|
return de_ListEnvironmentsCommandError(output, context);
|
|
1637
1388
|
}
|
|
1638
|
-
const contents = map({
|
|
1389
|
+
const contents = (0, smithy_client_1.map)({
|
|
1639
1390
|
$metadata: deserializeMetadata(output),
|
|
1640
1391
|
});
|
|
1641
1392
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
}
|
|
1393
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1394
|
+
EnvironmentSummaryList: (_) => de_EnvironmentSummaries(_, context),
|
|
1395
|
+
NextToken: smithy_client_1.expectString,
|
|
1396
|
+
});
|
|
1397
|
+
Object.assign(contents, doc);
|
|
1648
1398
|
return contents;
|
|
1649
1399
|
};
|
|
1650
1400
|
exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
|
|
@@ -1672,10 +1422,9 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
|
1672
1422
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1673
1423
|
default:
|
|
1674
1424
|
const parsedBody = parsedOutput.body;
|
|
1675
|
-
|
|
1425
|
+
return throwDefaultError({
|
|
1676
1426
|
output,
|
|
1677
1427
|
parsedBody,
|
|
1678
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1679
1428
|
errorCode,
|
|
1680
1429
|
});
|
|
1681
1430
|
}
|
|
@@ -1684,16 +1433,15 @@ const de_ListEnvironmentVpcsCommand = async (output, context) => {
|
|
|
1684
1433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1685
1434
|
return de_ListEnvironmentVpcsCommandError(output, context);
|
|
1686
1435
|
}
|
|
1687
|
-
const contents = map({
|
|
1436
|
+
const contents = (0, smithy_client_1.map)({
|
|
1688
1437
|
$metadata: deserializeMetadata(output),
|
|
1689
1438
|
});
|
|
1690
1439
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
}
|
|
1440
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1441
|
+
EnvironmentVpcList: (_) => de_EnvironmentVpcs(_, context),
|
|
1442
|
+
NextToken: smithy_client_1.expectString,
|
|
1443
|
+
});
|
|
1444
|
+
Object.assign(contents, doc);
|
|
1697
1445
|
return contents;
|
|
1698
1446
|
};
|
|
1699
1447
|
exports.de_ListEnvironmentVpcsCommand = de_ListEnvironmentVpcsCommand;
|
|
@@ -1721,10 +1469,9 @@ const de_ListEnvironmentVpcsCommandError = async (output, context) => {
|
|
|
1721
1469
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1722
1470
|
default:
|
|
1723
1471
|
const parsedBody = parsedOutput.body;
|
|
1724
|
-
|
|
1472
|
+
return throwDefaultError({
|
|
1725
1473
|
output,
|
|
1726
1474
|
parsedBody,
|
|
1727
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1728
1475
|
errorCode,
|
|
1729
1476
|
});
|
|
1730
1477
|
}
|
|
@@ -1733,16 +1480,15 @@ const de_ListRoutesCommand = async (output, context) => {
|
|
|
1733
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1734
1481
|
return de_ListRoutesCommandError(output, context);
|
|
1735
1482
|
}
|
|
1736
|
-
const contents = map({
|
|
1483
|
+
const contents = (0, smithy_client_1.map)({
|
|
1737
1484
|
$metadata: deserializeMetadata(output),
|
|
1738
1485
|
});
|
|
1739
1486
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
}
|
|
1487
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1488
|
+
NextToken: smithy_client_1.expectString,
|
|
1489
|
+
RouteSummaryList: (_) => de_RouteSummaries(_, context),
|
|
1490
|
+
});
|
|
1491
|
+
Object.assign(contents, doc);
|
|
1746
1492
|
return contents;
|
|
1747
1493
|
};
|
|
1748
1494
|
exports.de_ListRoutesCommand = de_ListRoutesCommand;
|
|
@@ -1776,10 +1522,9 @@ const de_ListRoutesCommandError = async (output, context) => {
|
|
|
1776
1522
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1777
1523
|
default:
|
|
1778
1524
|
const parsedBody = parsedOutput.body;
|
|
1779
|
-
|
|
1525
|
+
return throwDefaultError({
|
|
1780
1526
|
output,
|
|
1781
1527
|
parsedBody,
|
|
1782
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1783
1528
|
errorCode,
|
|
1784
1529
|
});
|
|
1785
1530
|
}
|
|
@@ -1788,16 +1533,15 @@ const de_ListServicesCommand = async (output, context) => {
|
|
|
1788
1533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1789
1534
|
return de_ListServicesCommandError(output, context);
|
|
1790
1535
|
}
|
|
1791
|
-
const contents = map({
|
|
1536
|
+
const contents = (0, smithy_client_1.map)({
|
|
1792
1537
|
$metadata: deserializeMetadata(output),
|
|
1793
1538
|
});
|
|
1794
1539
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
}
|
|
1540
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1541
|
+
NextToken: smithy_client_1.expectString,
|
|
1542
|
+
ServiceSummaryList: (_) => de_ServiceSummaries(_, context),
|
|
1543
|
+
});
|
|
1544
|
+
Object.assign(contents, doc);
|
|
1801
1545
|
return contents;
|
|
1802
1546
|
};
|
|
1803
1547
|
exports.de_ListServicesCommand = de_ListServicesCommand;
|
|
@@ -1831,10 +1575,9 @@ const de_ListServicesCommandError = async (output, context) => {
|
|
|
1831
1575
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1832
1576
|
default:
|
|
1833
1577
|
const parsedBody = parsedOutput.body;
|
|
1834
|
-
|
|
1578
|
+
return throwDefaultError({
|
|
1835
1579
|
output,
|
|
1836
1580
|
parsedBody,
|
|
1837
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1838
1581
|
errorCode,
|
|
1839
1582
|
});
|
|
1840
1583
|
}
|
|
@@ -1843,13 +1586,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1843
1586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1844
1587
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1845
1588
|
}
|
|
1846
|
-
const contents = map({
|
|
1589
|
+
const contents = (0, smithy_client_1.map)({
|
|
1847
1590
|
$metadata: deserializeMetadata(output),
|
|
1848
1591
|
});
|
|
1849
1592
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
}
|
|
1593
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1594
|
+
Tags: smithy_client_1._json,
|
|
1595
|
+
});
|
|
1596
|
+
Object.assign(contents, doc);
|
|
1853
1597
|
return contents;
|
|
1854
1598
|
};
|
|
1855
1599
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1871,10 +1615,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1871
1615
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1872
1616
|
default:
|
|
1873
1617
|
const parsedBody = parsedOutput.body;
|
|
1874
|
-
|
|
1618
|
+
return throwDefaultError({
|
|
1875
1619
|
output,
|
|
1876
1620
|
parsedBody,
|
|
1877
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1878
1621
|
errorCode,
|
|
1879
1622
|
});
|
|
1880
1623
|
}
|
|
@@ -1883,7 +1626,7 @@ const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1883
1626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1884
1627
|
return de_PutResourcePolicyCommandError(output, context);
|
|
1885
1628
|
}
|
|
1886
|
-
const contents = map({
|
|
1629
|
+
const contents = (0, smithy_client_1.map)({
|
|
1887
1630
|
$metadata: deserializeMetadata(output),
|
|
1888
1631
|
});
|
|
1889
1632
|
await collectBody(output.body, context);
|
|
@@ -1917,10 +1660,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
1917
1660
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1918
1661
|
default:
|
|
1919
1662
|
const parsedBody = parsedOutput.body;
|
|
1920
|
-
|
|
1663
|
+
return throwDefaultError({
|
|
1921
1664
|
output,
|
|
1922
1665
|
parsedBody,
|
|
1923
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1924
1666
|
errorCode,
|
|
1925
1667
|
});
|
|
1926
1668
|
}
|
|
@@ -1929,7 +1671,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1929
1671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1930
1672
|
return de_TagResourceCommandError(output, context);
|
|
1931
1673
|
}
|
|
1932
|
-
const contents = map({
|
|
1674
|
+
const contents = (0, smithy_client_1.map)({
|
|
1933
1675
|
$metadata: deserializeMetadata(output),
|
|
1934
1676
|
});
|
|
1935
1677
|
await collectBody(output.body, context);
|
|
@@ -1954,10 +1696,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1954
1696
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1955
1697
|
default:
|
|
1956
1698
|
const parsedBody = parsedOutput.body;
|
|
1957
|
-
|
|
1699
|
+
return throwDefaultError({
|
|
1958
1700
|
output,
|
|
1959
1701
|
parsedBody,
|
|
1960
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1961
1702
|
errorCode,
|
|
1962
1703
|
});
|
|
1963
1704
|
}
|
|
@@ -1966,7 +1707,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1966
1707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1967
1708
|
return de_UntagResourceCommandError(output, context);
|
|
1968
1709
|
}
|
|
1969
|
-
const contents = map({
|
|
1710
|
+
const contents = (0, smithy_client_1.map)({
|
|
1970
1711
|
$metadata: deserializeMetadata(output),
|
|
1971
1712
|
});
|
|
1972
1713
|
await collectBody(output.body, context);
|
|
@@ -1991,10 +1732,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1991
1732
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1992
1733
|
default:
|
|
1993
1734
|
const parsedBody = parsedOutput.body;
|
|
1994
|
-
|
|
1735
|
+
return throwDefaultError({
|
|
1995
1736
|
output,
|
|
1996
1737
|
parsedBody,
|
|
1997
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
1998
1738
|
errorCode,
|
|
1999
1739
|
});
|
|
2000
1740
|
}
|
|
@@ -2003,28 +1743,19 @@ const de_UpdateRouteCommand = async (output, context) => {
|
|
|
2003
1743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2004
1744
|
return de_UpdateRouteCommandError(output, context);
|
|
2005
1745
|
}
|
|
2006
|
-
const contents = map({
|
|
1746
|
+
const contents = (0, smithy_client_1.map)({
|
|
2007
1747
|
$metadata: deserializeMetadata(output),
|
|
2008
1748
|
});
|
|
2009
1749
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
if (data.RouteId != null) {
|
|
2020
|
-
contents.RouteId = (0, smithy_client_1.expectString)(data.RouteId);
|
|
2021
|
-
}
|
|
2022
|
-
if (data.ServiceId != null) {
|
|
2023
|
-
contents.ServiceId = (0, smithy_client_1.expectString)(data.ServiceId);
|
|
2024
|
-
}
|
|
2025
|
-
if (data.State != null) {
|
|
2026
|
-
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
2027
|
-
}
|
|
1750
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1751
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1752
|
+
Arn: smithy_client_1.expectString,
|
|
1753
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1754
|
+
RouteId: smithy_client_1.expectString,
|
|
1755
|
+
ServiceId: smithy_client_1.expectString,
|
|
1756
|
+
State: smithy_client_1.expectString,
|
|
1757
|
+
});
|
|
1758
|
+
Object.assign(contents, doc);
|
|
2028
1759
|
return contents;
|
|
2029
1760
|
};
|
|
2030
1761
|
exports.de_UpdateRouteCommand = de_UpdateRouteCommand;
|
|
@@ -2052,21 +1783,21 @@ const de_UpdateRouteCommandError = async (output, context) => {
|
|
|
2052
1783
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2053
1784
|
default:
|
|
2054
1785
|
const parsedBody = parsedOutput.body;
|
|
2055
|
-
|
|
1786
|
+
return throwDefaultError({
|
|
2056
1787
|
output,
|
|
2057
1788
|
parsedBody,
|
|
2058
|
-
exceptionCtor: MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException,
|
|
2059
1789
|
errorCode,
|
|
2060
1790
|
});
|
|
2061
1791
|
}
|
|
2062
1792
|
};
|
|
2063
|
-
const
|
|
1793
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException);
|
|
2064
1794
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2065
|
-
const contents = map({});
|
|
1795
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2066
1796
|
const data = parsedOutput.body;
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
}
|
|
1797
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1798
|
+
Message: smithy_client_1.expectString,
|
|
1799
|
+
});
|
|
1800
|
+
Object.assign(contents, doc);
|
|
2070
1801
|
const exception = new models_0_1.AccessDeniedException({
|
|
2071
1802
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2072
1803
|
...contents,
|
|
@@ -2074,17 +1805,14 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2074
1805
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2075
1806
|
};
|
|
2076
1807
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2077
|
-
const contents = map({});
|
|
1808
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2078
1809
|
const data = parsedOutput.body;
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
if (data.ResourceType != null) {
|
|
2086
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2087
|
-
}
|
|
1810
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1811
|
+
Message: smithy_client_1.expectString,
|
|
1812
|
+
ResourceId: smithy_client_1.expectString,
|
|
1813
|
+
ResourceType: smithy_client_1.expectString,
|
|
1814
|
+
});
|
|
1815
|
+
Object.assign(contents, doc);
|
|
2088
1816
|
const exception = new models_0_1.ConflictException({
|
|
2089
1817
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2090
1818
|
...contents,
|
|
@@ -2092,11 +1820,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2092
1820
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2093
1821
|
};
|
|
2094
1822
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2095
|
-
const contents = map({});
|
|
1823
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2096
1824
|
const data = parsedOutput.body;
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
}
|
|
1825
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1826
|
+
Message: smithy_client_1.expectString,
|
|
1827
|
+
});
|
|
1828
|
+
Object.assign(contents, doc);
|
|
2100
1829
|
const exception = new models_0_1.InternalServerException({
|
|
2101
1830
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2102
1831
|
...contents,
|
|
@@ -2104,11 +1833,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2104
1833
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2105
1834
|
};
|
|
2106
1835
|
const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
2107
|
-
const contents = map({});
|
|
1836
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2108
1837
|
const data = parsedOutput.body;
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
}
|
|
1838
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1839
|
+
Message: smithy_client_1.expectString,
|
|
1840
|
+
});
|
|
1841
|
+
Object.assign(contents, doc);
|
|
2112
1842
|
const exception = new models_0_1.InvalidResourcePolicyException({
|
|
2113
1843
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2114
1844
|
...contents,
|
|
@@ -2116,17 +1846,14 @@ const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
2116
1846
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2117
1847
|
};
|
|
2118
1848
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2119
|
-
const contents = map({});
|
|
1849
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2120
1850
|
const data = parsedOutput.body;
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
if (data.ResourceType != null) {
|
|
2128
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2129
|
-
}
|
|
1851
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1852
|
+
Message: smithy_client_1.expectString,
|
|
1853
|
+
ResourceId: smithy_client_1.expectString,
|
|
1854
|
+
ResourceType: smithy_client_1.expectString,
|
|
1855
|
+
});
|
|
1856
|
+
Object.assign(contents, doc);
|
|
2130
1857
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2131
1858
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2132
1859
|
...contents,
|
|
@@ -2134,23 +1861,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2134
1861
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2135
1862
|
};
|
|
2136
1863
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2137
|
-
const contents = map({});
|
|
1864
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2138
1865
|
const data = parsedOutput.body;
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
}
|
|
2148
|
-
if (data.ResourceType != null) {
|
|
2149
|
-
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2150
|
-
}
|
|
2151
|
-
if (data.ServiceCode != null) {
|
|
2152
|
-
contents.ServiceCode = (0, smithy_client_1.expectString)(data.ServiceCode);
|
|
2153
|
-
}
|
|
1866
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1867
|
+
Message: smithy_client_1.expectString,
|
|
1868
|
+
QuotaCode: smithy_client_1.expectString,
|
|
1869
|
+
ResourceId: smithy_client_1.expectString,
|
|
1870
|
+
ResourceType: smithy_client_1.expectString,
|
|
1871
|
+
ServiceCode: smithy_client_1.expectString,
|
|
1872
|
+
});
|
|
1873
|
+
Object.assign(contents, doc);
|
|
2154
1874
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2155
1875
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2156
1876
|
...contents,
|
|
@@ -2158,22 +1878,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2158
1878
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2159
1879
|
};
|
|
2160
1880
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2161
|
-
const contents = map({
|
|
1881
|
+
const contents = (0, smithy_client_1.map)({
|
|
2162
1882
|
RetryAfterSeconds: [
|
|
2163
1883
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2164
1884
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2165
1885
|
],
|
|
2166
1886
|
});
|
|
2167
1887
|
const data = parsedOutput.body;
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
if (data.ServiceCode != null) {
|
|
2175
|
-
contents.ServiceCode = (0, smithy_client_1.expectString)(data.ServiceCode);
|
|
2176
|
-
}
|
|
1888
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1889
|
+
Message: smithy_client_1.expectString,
|
|
1890
|
+
QuotaCode: smithy_client_1.expectString,
|
|
1891
|
+
ServiceCode: smithy_client_1.expectString,
|
|
1892
|
+
});
|
|
1893
|
+
Object.assign(contents, doc);
|
|
2177
1894
|
const exception = new models_0_1.ThrottlingException({
|
|
2178
1895
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2179
1896
|
...contents,
|
|
@@ -2181,352 +1898,144 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2181
1898
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2182
1899
|
};
|
|
2183
1900
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2184
|
-
const contents = map({});
|
|
1901
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2185
1902
|
const data = parsedOutput.body;
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
}
|
|
1903
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1904
|
+
Message: smithy_client_1.expectString,
|
|
1905
|
+
});
|
|
1906
|
+
Object.assign(contents, doc);
|
|
2189
1907
|
const exception = new models_0_1.ValidationException({
|
|
2190
1908
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2191
1909
|
...contents,
|
|
2192
1910
|
});
|
|
2193
1911
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2194
1912
|
};
|
|
2195
|
-
const se_ApiGatewayProxyInput = (input, context) => {
|
|
2196
|
-
return {
|
|
2197
|
-
...(input.EndpointType != null && { EndpointType: input.EndpointType }),
|
|
2198
|
-
...(input.StageName != null && { StageName: input.StageName }),
|
|
2199
|
-
};
|
|
2200
|
-
};
|
|
2201
|
-
const se_DefaultRouteInput = (input, context) => {
|
|
2202
|
-
return {
|
|
2203
|
-
...(input.ActivationState != null && { ActivationState: input.ActivationState }),
|
|
2204
|
-
};
|
|
2205
|
-
};
|
|
2206
|
-
const se_HttpMethods = (input, context) => {
|
|
2207
|
-
return input
|
|
2208
|
-
.filter((e) => e != null)
|
|
2209
|
-
.map((entry) => {
|
|
2210
|
-
return entry;
|
|
2211
|
-
});
|
|
2212
|
-
};
|
|
2213
|
-
const se_LambdaEndpointInput = (input, context) => {
|
|
2214
|
-
return {
|
|
2215
|
-
...(input.Arn != null && { Arn: input.Arn }),
|
|
2216
|
-
};
|
|
2217
|
-
};
|
|
2218
|
-
const se_TagMap = (input, context) => {
|
|
2219
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2220
|
-
if (value === null) {
|
|
2221
|
-
return acc;
|
|
2222
|
-
}
|
|
2223
|
-
acc[key] = value;
|
|
2224
|
-
return acc;
|
|
2225
|
-
}, {});
|
|
2226
|
-
};
|
|
2227
|
-
const se_UriPathRouteInput = (input, context) => {
|
|
2228
|
-
return {
|
|
2229
|
-
...(input.ActivationState != null && { ActivationState: input.ActivationState }),
|
|
2230
|
-
...(input.IncludeChildPaths != null && { IncludeChildPaths: input.IncludeChildPaths }),
|
|
2231
|
-
...(input.Methods != null && { Methods: se_HttpMethods(input.Methods, context) }),
|
|
2232
|
-
...(input.SourcePath != null && { SourcePath: input.SourcePath }),
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
const se_UrlEndpointInput = (input, context) => {
|
|
2236
|
-
return {
|
|
2237
|
-
...(input.HealthUrl != null && { HealthUrl: input.HealthUrl }),
|
|
2238
|
-
...(input.Url != null && { Url: input.Url }),
|
|
2239
|
-
};
|
|
2240
|
-
};
|
|
2241
|
-
const de_AdditionalDetails = (output, context) => {
|
|
2242
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2243
|
-
if (value === null) {
|
|
2244
|
-
return acc;
|
|
2245
|
-
}
|
|
2246
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2247
|
-
return acc;
|
|
2248
|
-
}, {});
|
|
2249
|
-
};
|
|
2250
|
-
const de_ApiGatewayProxyConfig = (output, context) => {
|
|
2251
|
-
return {
|
|
2252
|
-
ApiGatewayId: (0, smithy_client_1.expectString)(output.ApiGatewayId),
|
|
2253
|
-
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
2254
|
-
NlbArn: (0, smithy_client_1.expectString)(output.NlbArn),
|
|
2255
|
-
NlbName: (0, smithy_client_1.expectString)(output.NlbName),
|
|
2256
|
-
ProxyUrl: (0, smithy_client_1.expectString)(output.ProxyUrl),
|
|
2257
|
-
StageName: (0, smithy_client_1.expectString)(output.StageName),
|
|
2258
|
-
VpcLinkId: (0, smithy_client_1.expectString)(output.VpcLinkId),
|
|
2259
|
-
};
|
|
2260
|
-
};
|
|
2261
|
-
const de_ApiGatewayProxyInput = (output, context) => {
|
|
2262
|
-
return {
|
|
2263
|
-
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
2264
|
-
StageName: (0, smithy_client_1.expectString)(output.StageName),
|
|
2265
|
-
};
|
|
2266
|
-
};
|
|
2267
|
-
const de_ApiGatewayProxySummary = (output, context) => {
|
|
2268
|
-
return {
|
|
2269
|
-
ApiGatewayId: (0, smithy_client_1.expectString)(output.ApiGatewayId),
|
|
2270
|
-
EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
|
|
2271
|
-
NlbArn: (0, smithy_client_1.expectString)(output.NlbArn),
|
|
2272
|
-
NlbName: (0, smithy_client_1.expectString)(output.NlbName),
|
|
2273
|
-
ProxyUrl: (0, smithy_client_1.expectString)(output.ProxyUrl),
|
|
2274
|
-
StageName: (0, smithy_client_1.expectString)(output.StageName),
|
|
2275
|
-
VpcLinkId: (0, smithy_client_1.expectString)(output.VpcLinkId),
|
|
2276
|
-
};
|
|
2277
|
-
};
|
|
2278
1913
|
const de_ApplicationSummaries = (output, context) => {
|
|
2279
1914
|
const retVal = (output || [])
|
|
2280
1915
|
.filter((e) => e != null)
|
|
2281
1916
|
.map((entry) => {
|
|
2282
|
-
if (entry === null) {
|
|
2283
|
-
return null;
|
|
2284
|
-
}
|
|
2285
1917
|
return de_ApplicationSummary(entry, context);
|
|
2286
1918
|
});
|
|
2287
1919
|
return retVal;
|
|
2288
1920
|
};
|
|
2289
1921
|
const de_ApplicationSummary = (output, context) => {
|
|
2290
|
-
return {
|
|
2291
|
-
ApiGatewayProxy:
|
|
2292
|
-
ApplicationId:
|
|
2293
|
-
Arn:
|
|
2294
|
-
CreatedByAccountId:
|
|
2295
|
-
CreatedTime:
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
ProxyType: (0, smithy_client_1.expectString)(output.ProxyType),
|
|
2306
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
2307
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2308
|
-
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2309
|
-
};
|
|
2310
|
-
};
|
|
2311
|
-
const de_CidrBlocks = (output, context) => {
|
|
2312
|
-
const retVal = (output || [])
|
|
2313
|
-
.filter((e) => e != null)
|
|
2314
|
-
.map((entry) => {
|
|
2315
|
-
if (entry === null) {
|
|
2316
|
-
return null;
|
|
2317
|
-
}
|
|
2318
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1922
|
+
return (0, smithy_client_1.take)(output, {
|
|
1923
|
+
ApiGatewayProxy: smithy_client_1._json,
|
|
1924
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1925
|
+
Arn: smithy_client_1.expectString,
|
|
1926
|
+
CreatedByAccountId: smithy_client_1.expectString,
|
|
1927
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1928
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
1929
|
+
Error: smithy_client_1._json,
|
|
1930
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1931
|
+
Name: smithy_client_1.expectString,
|
|
1932
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
1933
|
+
ProxyType: smithy_client_1.expectString,
|
|
1934
|
+
State: smithy_client_1.expectString,
|
|
1935
|
+
Tags: smithy_client_1._json,
|
|
1936
|
+
VpcId: smithy_client_1.expectString,
|
|
2319
1937
|
});
|
|
2320
|
-
return retVal;
|
|
2321
1938
|
};
|
|
2322
1939
|
const de_EnvironmentSummaries = (output, context) => {
|
|
2323
1940
|
const retVal = (output || [])
|
|
2324
1941
|
.filter((e) => e != null)
|
|
2325
1942
|
.map((entry) => {
|
|
2326
|
-
if (entry === null) {
|
|
2327
|
-
return null;
|
|
2328
|
-
}
|
|
2329
1943
|
return de_EnvironmentSummary(entry, context);
|
|
2330
1944
|
});
|
|
2331
1945
|
return retVal;
|
|
2332
1946
|
};
|
|
2333
1947
|
const de_EnvironmentSummary = (output, context) => {
|
|
2334
|
-
return {
|
|
2335
|
-
Arn:
|
|
2336
|
-
CreatedTime:
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
2349
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2350
|
-
TransitGatewayId: (0, smithy_client_1.expectString)(output.TransitGatewayId),
|
|
2351
|
-
};
|
|
1948
|
+
return (0, smithy_client_1.take)(output, {
|
|
1949
|
+
Arn: smithy_client_1.expectString,
|
|
1950
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1951
|
+
Description: smithy_client_1.expectString,
|
|
1952
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
1953
|
+
Error: smithy_client_1._json,
|
|
1954
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1955
|
+
Name: smithy_client_1.expectString,
|
|
1956
|
+
NetworkFabricType: smithy_client_1.expectString,
|
|
1957
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
1958
|
+
State: smithy_client_1.expectString,
|
|
1959
|
+
Tags: smithy_client_1._json,
|
|
1960
|
+
TransitGatewayId: smithy_client_1.expectString,
|
|
1961
|
+
});
|
|
2352
1962
|
};
|
|
2353
1963
|
const de_EnvironmentVpc = (output, context) => {
|
|
2354
|
-
return {
|
|
2355
|
-
AccountId:
|
|
2356
|
-
CidrBlocks:
|
|
2357
|
-
CreatedTime:
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
: undefined,
|
|
2364
|
-
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2365
|
-
VpcName: (0, smithy_client_1.expectString)(output.VpcName),
|
|
2366
|
-
};
|
|
1964
|
+
return (0, smithy_client_1.take)(output, {
|
|
1965
|
+
AccountId: smithy_client_1.expectString,
|
|
1966
|
+
CidrBlocks: smithy_client_1._json,
|
|
1967
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1968
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
1969
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1970
|
+
VpcId: smithy_client_1.expectString,
|
|
1971
|
+
VpcName: smithy_client_1.expectString,
|
|
1972
|
+
});
|
|
2367
1973
|
};
|
|
2368
1974
|
const de_EnvironmentVpcs = (output, context) => {
|
|
2369
1975
|
const retVal = (output || [])
|
|
2370
1976
|
.filter((e) => e != null)
|
|
2371
1977
|
.map((entry) => {
|
|
2372
|
-
if (entry === null) {
|
|
2373
|
-
return null;
|
|
2374
|
-
}
|
|
2375
1978
|
return de_EnvironmentVpc(entry, context);
|
|
2376
1979
|
});
|
|
2377
1980
|
return retVal;
|
|
2378
1981
|
};
|
|
2379
|
-
const de_ErrorResponse = (output, context) => {
|
|
2380
|
-
return {
|
|
2381
|
-
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
2382
|
-
AdditionalDetails: output.AdditionalDetails != null ? de_AdditionalDetails(output.AdditionalDetails, context) : undefined,
|
|
2383
|
-
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
2384
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2385
|
-
ResourceIdentifier: (0, smithy_client_1.expectString)(output.ResourceIdentifier),
|
|
2386
|
-
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
2387
|
-
};
|
|
2388
|
-
};
|
|
2389
|
-
const de_HttpMethods = (output, context) => {
|
|
2390
|
-
const retVal = (output || [])
|
|
2391
|
-
.filter((e) => e != null)
|
|
2392
|
-
.map((entry) => {
|
|
2393
|
-
if (entry === null) {
|
|
2394
|
-
return null;
|
|
2395
|
-
}
|
|
2396
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2397
|
-
});
|
|
2398
|
-
return retVal;
|
|
2399
|
-
};
|
|
2400
|
-
const de_LambdaEndpointConfig = (output, context) => {
|
|
2401
|
-
return {
|
|
2402
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2403
|
-
};
|
|
2404
|
-
};
|
|
2405
|
-
const de_LambdaEndpointInput = (output, context) => {
|
|
2406
|
-
return {
|
|
2407
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2408
|
-
};
|
|
2409
|
-
};
|
|
2410
|
-
const de_LambdaEndpointSummary = (output, context) => {
|
|
2411
|
-
return {
|
|
2412
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2413
|
-
};
|
|
2414
|
-
};
|
|
2415
|
-
const de_PathResourceToId = (output, context) => {
|
|
2416
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2417
|
-
if (value === null) {
|
|
2418
|
-
return acc;
|
|
2419
|
-
}
|
|
2420
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2421
|
-
return acc;
|
|
2422
|
-
}, {});
|
|
2423
|
-
};
|
|
2424
1982
|
const de_RouteSummaries = (output, context) => {
|
|
2425
1983
|
const retVal = (output || [])
|
|
2426
1984
|
.filter((e) => e != null)
|
|
2427
1985
|
.map((entry) => {
|
|
2428
|
-
if (entry === null) {
|
|
2429
|
-
return null;
|
|
2430
|
-
}
|
|
2431
1986
|
return de_RouteSummary(entry, context);
|
|
2432
1987
|
});
|
|
2433
1988
|
return retVal;
|
|
2434
1989
|
};
|
|
2435
1990
|
const de_RouteSummary = (output, context) => {
|
|
2436
|
-
return {
|
|
2437
|
-
ApplicationId:
|
|
2438
|
-
Arn:
|
|
2439
|
-
CreatedByAccountId:
|
|
2440
|
-
CreatedTime:
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
SourcePath: (0, smithy_client_1.expectString)(output.SourcePath),
|
|
2456
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
2457
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2458
|
-
};
|
|
1991
|
+
return (0, smithy_client_1.take)(output, {
|
|
1992
|
+
ApplicationId: smithy_client_1.expectString,
|
|
1993
|
+
Arn: smithy_client_1.expectString,
|
|
1994
|
+
CreatedByAccountId: smithy_client_1.expectString,
|
|
1995
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1996
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
1997
|
+
Error: smithy_client_1._json,
|
|
1998
|
+
IncludeChildPaths: smithy_client_1.expectBoolean,
|
|
1999
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2000
|
+
Methods: smithy_client_1._json,
|
|
2001
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
2002
|
+
PathResourceToId: smithy_client_1._json,
|
|
2003
|
+
RouteId: smithy_client_1.expectString,
|
|
2004
|
+
RouteType: smithy_client_1.expectString,
|
|
2005
|
+
ServiceId: smithy_client_1.expectString,
|
|
2006
|
+
SourcePath: smithy_client_1.expectString,
|
|
2007
|
+
State: smithy_client_1.expectString,
|
|
2008
|
+
Tags: smithy_client_1._json,
|
|
2009
|
+
});
|
|
2459
2010
|
};
|
|
2460
2011
|
const de_ServiceSummaries = (output, context) => {
|
|
2461
2012
|
const retVal = (output || [])
|
|
2462
2013
|
.filter((e) => e != null)
|
|
2463
2014
|
.map((entry) => {
|
|
2464
|
-
if (entry === null) {
|
|
2465
|
-
return null;
|
|
2466
|
-
}
|
|
2467
2015
|
return de_ServiceSummary(entry, context);
|
|
2468
2016
|
});
|
|
2469
2017
|
return retVal;
|
|
2470
2018
|
};
|
|
2471
2019
|
const de_ServiceSummary = (output, context) => {
|
|
2472
|
-
return {
|
|
2473
|
-
ApplicationId:
|
|
2474
|
-
Arn:
|
|
2475
|
-
CreatedByAccountId:
|
|
2476
|
-
CreatedTime:
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
2492
|
-
UrlEndpoint: output.UrlEndpoint != null ? de_UrlEndpointSummary(output.UrlEndpoint, context) : undefined,
|
|
2493
|
-
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
2494
|
-
};
|
|
2495
|
-
};
|
|
2496
|
-
const de_TagMap = (output, context) => {
|
|
2497
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2498
|
-
if (value === null) {
|
|
2499
|
-
return acc;
|
|
2500
|
-
}
|
|
2501
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2502
|
-
return acc;
|
|
2503
|
-
}, {});
|
|
2504
|
-
};
|
|
2505
|
-
const de_UriPathRouteInput = (output, context) => {
|
|
2506
|
-
return {
|
|
2507
|
-
ActivationState: (0, smithy_client_1.expectString)(output.ActivationState),
|
|
2508
|
-
IncludeChildPaths: (0, smithy_client_1.expectBoolean)(output.IncludeChildPaths),
|
|
2509
|
-
Methods: output.Methods != null ? de_HttpMethods(output.Methods, context) : undefined,
|
|
2510
|
-
SourcePath: (0, smithy_client_1.expectString)(output.SourcePath),
|
|
2511
|
-
};
|
|
2512
|
-
};
|
|
2513
|
-
const de_UrlEndpointConfig = (output, context) => {
|
|
2514
|
-
return {
|
|
2515
|
-
HealthUrl: (0, smithy_client_1.expectString)(output.HealthUrl),
|
|
2516
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
2517
|
-
};
|
|
2518
|
-
};
|
|
2519
|
-
const de_UrlEndpointInput = (output, context) => {
|
|
2520
|
-
return {
|
|
2521
|
-
HealthUrl: (0, smithy_client_1.expectString)(output.HealthUrl),
|
|
2522
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
2523
|
-
};
|
|
2524
|
-
};
|
|
2525
|
-
const de_UrlEndpointSummary = (output, context) => {
|
|
2526
|
-
return {
|
|
2527
|
-
HealthUrl: (0, smithy_client_1.expectString)(output.HealthUrl),
|
|
2528
|
-
Url: (0, smithy_client_1.expectString)(output.Url),
|
|
2529
|
-
};
|
|
2020
|
+
return (0, smithy_client_1.take)(output, {
|
|
2021
|
+
ApplicationId: smithy_client_1.expectString,
|
|
2022
|
+
Arn: smithy_client_1.expectString,
|
|
2023
|
+
CreatedByAccountId: smithy_client_1.expectString,
|
|
2024
|
+
CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2025
|
+
Description: smithy_client_1.expectString,
|
|
2026
|
+
EndpointType: smithy_client_1.expectString,
|
|
2027
|
+
EnvironmentId: smithy_client_1.expectString,
|
|
2028
|
+
Error: smithy_client_1._json,
|
|
2029
|
+
LambdaEndpoint: smithy_client_1._json,
|
|
2030
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2031
|
+
Name: smithy_client_1.expectString,
|
|
2032
|
+
OwnerAccountId: smithy_client_1.expectString,
|
|
2033
|
+
ServiceId: smithy_client_1.expectString,
|
|
2034
|
+
State: smithy_client_1.expectString,
|
|
2035
|
+
Tags: smithy_client_1._json,
|
|
2036
|
+
UrlEndpoint: smithy_client_1._json,
|
|
2037
|
+
VpcId: smithy_client_1.expectString,
|
|
2038
|
+
});
|
|
2530
2039
|
};
|
|
2531
2040
|
const deserializeMetadata = (output) => ({
|
|
2532
2041
|
httpStatusCode: output.statusCode,
|