@aws-sdk/client-apprunner 3.48.0 → 3.52.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/CHANGELOG.md +35 -0
- package/dist-cjs/AppRunner.js +60 -0
- package/dist-cjs/commands/CreateVpcConnectorCommand.js +36 -0
- package/dist-cjs/commands/DeleteVpcConnectorCommand.js +36 -0
- package/dist-cjs/commands/DescribeVpcConnectorCommand.js +36 -0
- package/dist-cjs/commands/ListVpcConnectorsCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +79 -2
- package/dist-cjs/pagination/ListVpcConnectorsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +435 -1
- package/dist-es/AppRunner.js +60 -0
- package/dist-es/commands/CreateVpcConnectorCommand.js +39 -0
- package/dist-es/commands/DeleteVpcConnectorCommand.js +39 -0
- package/dist-es/commands/DescribeVpcConnectorCommand.js +39 -0
- package/dist-es/commands/ListVpcConnectorsCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +55 -1
- package/dist-es/pagination/ListVpcConnectorsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +456 -2
- package/dist-types/AppRunner.d.ts +33 -3
- package/dist-types/AppRunnerClient.d.ts +6 -2
- package/dist-types/commands/CreateAutoScalingConfigurationCommand.d.ts +3 -3
- package/dist-types/commands/CreateVpcConnectorCommand.d.ts +36 -0
- package/dist-types/commands/DeleteVpcConnectorCommand.d.ts +36 -0
- package/dist-types/commands/DescribeVpcConnectorCommand.d.ts +35 -0
- package/dist-types/commands/ListVpcConnectorsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +254 -11
- package/dist-types/pagination/ListVpcConnectorsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +12 -0
- package/dist-types/ts3.4/AppRunner.d.ts +20 -0
- package/dist-types/ts3.4/AppRunnerClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/CreateVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeVpcConnectorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListVpcConnectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +131 -0
- package/dist-types/ts3.4/pagination/ListVpcConnectorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +40 -34
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0StartDeploymentCommand = exports.deserializeAws_json1_0ResumeServiceCommand = exports.deserializeAws_json1_0PauseServiceCommand = exports.deserializeAws_json1_0ListVpcConnectorsCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListServicesCommand = exports.deserializeAws_json1_0ListOperationsCommand = exports.deserializeAws_json1_0ListConnectionsCommand = exports.deserializeAws_json1_0ListAutoScalingConfigurationsCommand = exports.deserializeAws_json1_0DisassociateCustomDomainCommand = exports.deserializeAws_json1_0DescribeVpcConnectorCommand = exports.deserializeAws_json1_0DescribeServiceCommand = exports.deserializeAws_json1_0DescribeCustomDomainsCommand = exports.deserializeAws_json1_0DescribeAutoScalingConfigurationCommand = exports.deserializeAws_json1_0DeleteVpcConnectorCommand = exports.deserializeAws_json1_0DeleteServiceCommand = exports.deserializeAws_json1_0DeleteConnectionCommand = exports.deserializeAws_json1_0DeleteAutoScalingConfigurationCommand = exports.deserializeAws_json1_0CreateVpcConnectorCommand = exports.deserializeAws_json1_0CreateServiceCommand = exports.deserializeAws_json1_0CreateConnectionCommand = exports.deserializeAws_json1_0CreateAutoScalingConfigurationCommand = exports.deserializeAws_json1_0AssociateCustomDomainCommand = exports.serializeAws_json1_0UpdateServiceCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0StartDeploymentCommand = exports.serializeAws_json1_0ResumeServiceCommand = exports.serializeAws_json1_0PauseServiceCommand = exports.serializeAws_json1_0ListVpcConnectorsCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListServicesCommand = exports.serializeAws_json1_0ListOperationsCommand = exports.serializeAws_json1_0ListConnectionsCommand = exports.serializeAws_json1_0ListAutoScalingConfigurationsCommand = exports.serializeAws_json1_0DisassociateCustomDomainCommand = exports.serializeAws_json1_0DescribeVpcConnectorCommand = exports.serializeAws_json1_0DescribeServiceCommand = exports.serializeAws_json1_0DescribeCustomDomainsCommand = exports.serializeAws_json1_0DescribeAutoScalingConfigurationCommand = exports.serializeAws_json1_0DeleteVpcConnectorCommand = exports.serializeAws_json1_0DeleteServiceCommand = exports.serializeAws_json1_0DeleteConnectionCommand = exports.serializeAws_json1_0DeleteAutoScalingConfigurationCommand = exports.serializeAws_json1_0CreateVpcConnectorCommand = exports.serializeAws_json1_0CreateServiceCommand = exports.serializeAws_json1_0CreateConnectionCommand = exports.serializeAws_json1_0CreateAutoScalingConfigurationCommand = exports.serializeAws_json1_0AssociateCustomDomainCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_0UpdateServiceCommand = exports.deserializeAws_json1_0UntagResourceCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const serializeAws_json1_0AssociateCustomDomainCommand = async (input, context) => {
|
|
@@ -43,6 +44,16 @@ const serializeAws_json1_0CreateServiceCommand = async (input, context) => {
|
|
|
43
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
45
|
};
|
|
45
46
|
exports.serializeAws_json1_0CreateServiceCommand = serializeAws_json1_0CreateServiceCommand;
|
|
47
|
+
const serializeAws_json1_0CreateVpcConnectorCommand = async (input, context) => {
|
|
48
|
+
const headers = {
|
|
49
|
+
"content-type": "application/x-amz-json-1.0",
|
|
50
|
+
"x-amz-target": "AppRunner.CreateVpcConnector",
|
|
51
|
+
};
|
|
52
|
+
let body;
|
|
53
|
+
body = JSON.stringify(serializeAws_json1_0CreateVpcConnectorRequest(input, context));
|
|
54
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
+
};
|
|
56
|
+
exports.serializeAws_json1_0CreateVpcConnectorCommand = serializeAws_json1_0CreateVpcConnectorCommand;
|
|
46
57
|
const serializeAws_json1_0DeleteAutoScalingConfigurationCommand = async (input, context) => {
|
|
47
58
|
const headers = {
|
|
48
59
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -73,6 +84,16 @@ const serializeAws_json1_0DeleteServiceCommand = async (input, context) => {
|
|
|
73
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
74
85
|
};
|
|
75
86
|
exports.serializeAws_json1_0DeleteServiceCommand = serializeAws_json1_0DeleteServiceCommand;
|
|
87
|
+
const serializeAws_json1_0DeleteVpcConnectorCommand = async (input, context) => {
|
|
88
|
+
const headers = {
|
|
89
|
+
"content-type": "application/x-amz-json-1.0",
|
|
90
|
+
"x-amz-target": "AppRunner.DeleteVpcConnector",
|
|
91
|
+
};
|
|
92
|
+
let body;
|
|
93
|
+
body = JSON.stringify(serializeAws_json1_0DeleteVpcConnectorRequest(input, context));
|
|
94
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
+
};
|
|
96
|
+
exports.serializeAws_json1_0DeleteVpcConnectorCommand = serializeAws_json1_0DeleteVpcConnectorCommand;
|
|
76
97
|
const serializeAws_json1_0DescribeAutoScalingConfigurationCommand = async (input, context) => {
|
|
77
98
|
const headers = {
|
|
78
99
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -103,6 +124,16 @@ const serializeAws_json1_0DescribeServiceCommand = async (input, context) => {
|
|
|
103
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
125
|
};
|
|
105
126
|
exports.serializeAws_json1_0DescribeServiceCommand = serializeAws_json1_0DescribeServiceCommand;
|
|
127
|
+
const serializeAws_json1_0DescribeVpcConnectorCommand = async (input, context) => {
|
|
128
|
+
const headers = {
|
|
129
|
+
"content-type": "application/x-amz-json-1.0",
|
|
130
|
+
"x-amz-target": "AppRunner.DescribeVpcConnector",
|
|
131
|
+
};
|
|
132
|
+
let body;
|
|
133
|
+
body = JSON.stringify(serializeAws_json1_0DescribeVpcConnectorRequest(input, context));
|
|
134
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
+
};
|
|
136
|
+
exports.serializeAws_json1_0DescribeVpcConnectorCommand = serializeAws_json1_0DescribeVpcConnectorCommand;
|
|
106
137
|
const serializeAws_json1_0DisassociateCustomDomainCommand = async (input, context) => {
|
|
107
138
|
const headers = {
|
|
108
139
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -163,6 +194,16 @@ const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) =>
|
|
|
163
194
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
164
195
|
};
|
|
165
196
|
exports.serializeAws_json1_0ListTagsForResourceCommand = serializeAws_json1_0ListTagsForResourceCommand;
|
|
197
|
+
const serializeAws_json1_0ListVpcConnectorsCommand = async (input, context) => {
|
|
198
|
+
const headers = {
|
|
199
|
+
"content-type": "application/x-amz-json-1.0",
|
|
200
|
+
"x-amz-target": "AppRunner.ListVpcConnectors",
|
|
201
|
+
};
|
|
202
|
+
let body;
|
|
203
|
+
body = JSON.stringify(serializeAws_json1_0ListVpcConnectorsRequest(input, context));
|
|
204
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
+
};
|
|
206
|
+
exports.serializeAws_json1_0ListVpcConnectorsCommand = serializeAws_json1_0ListVpcConnectorsCommand;
|
|
166
207
|
const serializeAws_json1_0PauseServiceCommand = async (input, context) => {
|
|
167
208
|
const headers = {
|
|
168
209
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -475,6 +516,69 @@ const deserializeAws_json1_0CreateServiceCommandError = async (output, context)
|
|
|
475
516
|
delete response.Message;
|
|
476
517
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
477
518
|
};
|
|
519
|
+
const deserializeAws_json1_0CreateVpcConnectorCommand = async (output, context) => {
|
|
520
|
+
if (output.statusCode >= 300) {
|
|
521
|
+
return deserializeAws_json1_0CreateVpcConnectorCommandError(output, context);
|
|
522
|
+
}
|
|
523
|
+
const data = await parseBody(output.body, context);
|
|
524
|
+
let contents = {};
|
|
525
|
+
contents = deserializeAws_json1_0CreateVpcConnectorResponse(data, context);
|
|
526
|
+
const response = {
|
|
527
|
+
$metadata: deserializeMetadata(output),
|
|
528
|
+
...contents,
|
|
529
|
+
};
|
|
530
|
+
return Promise.resolve(response);
|
|
531
|
+
};
|
|
532
|
+
exports.deserializeAws_json1_0CreateVpcConnectorCommand = deserializeAws_json1_0CreateVpcConnectorCommand;
|
|
533
|
+
const deserializeAws_json1_0CreateVpcConnectorCommandError = async (output, context) => {
|
|
534
|
+
const parsedOutput = {
|
|
535
|
+
...output,
|
|
536
|
+
body: await parseBody(output.body, context),
|
|
537
|
+
};
|
|
538
|
+
let response;
|
|
539
|
+
let errorCode = "UnknownError";
|
|
540
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
+
switch (errorCode) {
|
|
542
|
+
case "InternalServiceErrorException":
|
|
543
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
544
|
+
response = {
|
|
545
|
+
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
546
|
+
name: errorCode,
|
|
547
|
+
$metadata: deserializeMetadata(output),
|
|
548
|
+
};
|
|
549
|
+
break;
|
|
550
|
+
case "InvalidRequestException":
|
|
551
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
552
|
+
response = {
|
|
553
|
+
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
554
|
+
name: errorCode,
|
|
555
|
+
$metadata: deserializeMetadata(output),
|
|
556
|
+
};
|
|
557
|
+
break;
|
|
558
|
+
case "ServiceQuotaExceededException":
|
|
559
|
+
case "com.amazonaws.apprunner#ServiceQuotaExceededException":
|
|
560
|
+
response = {
|
|
561
|
+
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
562
|
+
name: errorCode,
|
|
563
|
+
$metadata: deserializeMetadata(output),
|
|
564
|
+
};
|
|
565
|
+
break;
|
|
566
|
+
default:
|
|
567
|
+
const parsedBody = parsedOutput.body;
|
|
568
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
569
|
+
response = {
|
|
570
|
+
...parsedBody,
|
|
571
|
+
name: `${errorCode}`,
|
|
572
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
573
|
+
$fault: "client",
|
|
574
|
+
$metadata: deserializeMetadata(output),
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
const message = response.message || response.Message || errorCode;
|
|
578
|
+
response.message = message;
|
|
579
|
+
delete response.Message;
|
|
580
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
581
|
+
};
|
|
478
582
|
const deserializeAws_json1_0DeleteAutoScalingConfigurationCommand = async (output, context) => {
|
|
479
583
|
if (output.statusCode >= 300) {
|
|
480
584
|
return deserializeAws_json1_0DeleteAutoScalingConfigurationCommandError(output, context);
|
|
@@ -672,6 +776,69 @@ const deserializeAws_json1_0DeleteServiceCommandError = async (output, context)
|
|
|
672
776
|
delete response.Message;
|
|
673
777
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
674
778
|
};
|
|
779
|
+
const deserializeAws_json1_0DeleteVpcConnectorCommand = async (output, context) => {
|
|
780
|
+
if (output.statusCode >= 300) {
|
|
781
|
+
return deserializeAws_json1_0DeleteVpcConnectorCommandError(output, context);
|
|
782
|
+
}
|
|
783
|
+
const data = await parseBody(output.body, context);
|
|
784
|
+
let contents = {};
|
|
785
|
+
contents = deserializeAws_json1_0DeleteVpcConnectorResponse(data, context);
|
|
786
|
+
const response = {
|
|
787
|
+
$metadata: deserializeMetadata(output),
|
|
788
|
+
...contents,
|
|
789
|
+
};
|
|
790
|
+
return Promise.resolve(response);
|
|
791
|
+
};
|
|
792
|
+
exports.deserializeAws_json1_0DeleteVpcConnectorCommand = deserializeAws_json1_0DeleteVpcConnectorCommand;
|
|
793
|
+
const deserializeAws_json1_0DeleteVpcConnectorCommandError = async (output, context) => {
|
|
794
|
+
const parsedOutput = {
|
|
795
|
+
...output,
|
|
796
|
+
body: await parseBody(output.body, context),
|
|
797
|
+
};
|
|
798
|
+
let response;
|
|
799
|
+
let errorCode = "UnknownError";
|
|
800
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
|
+
switch (errorCode) {
|
|
802
|
+
case "InternalServiceErrorException":
|
|
803
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
804
|
+
response = {
|
|
805
|
+
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
806
|
+
name: errorCode,
|
|
807
|
+
$metadata: deserializeMetadata(output),
|
|
808
|
+
};
|
|
809
|
+
break;
|
|
810
|
+
case "InvalidRequestException":
|
|
811
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
812
|
+
response = {
|
|
813
|
+
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
814
|
+
name: errorCode,
|
|
815
|
+
$metadata: deserializeMetadata(output),
|
|
816
|
+
};
|
|
817
|
+
break;
|
|
818
|
+
case "ResourceNotFoundException":
|
|
819
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
820
|
+
response = {
|
|
821
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
822
|
+
name: errorCode,
|
|
823
|
+
$metadata: deserializeMetadata(output),
|
|
824
|
+
};
|
|
825
|
+
break;
|
|
826
|
+
default:
|
|
827
|
+
const parsedBody = parsedOutput.body;
|
|
828
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
829
|
+
response = {
|
|
830
|
+
...parsedBody,
|
|
831
|
+
name: `${errorCode}`,
|
|
832
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
833
|
+
$fault: "client",
|
|
834
|
+
$metadata: deserializeMetadata(output),
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
const message = response.message || response.Message || errorCode;
|
|
838
|
+
response.message = message;
|
|
839
|
+
delete response.Message;
|
|
840
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
841
|
+
};
|
|
675
842
|
const deserializeAws_json1_0DescribeAutoScalingConfigurationCommand = async (output, context) => {
|
|
676
843
|
if (output.statusCode >= 300) {
|
|
677
844
|
return deserializeAws_json1_0DescribeAutoScalingConfigurationCommandError(output, context);
|
|
@@ -861,6 +1028,69 @@ const deserializeAws_json1_0DescribeServiceCommandError = async (output, context
|
|
|
861
1028
|
delete response.Message;
|
|
862
1029
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
863
1030
|
};
|
|
1031
|
+
const deserializeAws_json1_0DescribeVpcConnectorCommand = async (output, context) => {
|
|
1032
|
+
if (output.statusCode >= 300) {
|
|
1033
|
+
return deserializeAws_json1_0DescribeVpcConnectorCommandError(output, context);
|
|
1034
|
+
}
|
|
1035
|
+
const data = await parseBody(output.body, context);
|
|
1036
|
+
let contents = {};
|
|
1037
|
+
contents = deserializeAws_json1_0DescribeVpcConnectorResponse(data, context);
|
|
1038
|
+
const response = {
|
|
1039
|
+
$metadata: deserializeMetadata(output),
|
|
1040
|
+
...contents,
|
|
1041
|
+
};
|
|
1042
|
+
return Promise.resolve(response);
|
|
1043
|
+
};
|
|
1044
|
+
exports.deserializeAws_json1_0DescribeVpcConnectorCommand = deserializeAws_json1_0DescribeVpcConnectorCommand;
|
|
1045
|
+
const deserializeAws_json1_0DescribeVpcConnectorCommandError = async (output, context) => {
|
|
1046
|
+
const parsedOutput = {
|
|
1047
|
+
...output,
|
|
1048
|
+
body: await parseBody(output.body, context),
|
|
1049
|
+
};
|
|
1050
|
+
let response;
|
|
1051
|
+
let errorCode = "UnknownError";
|
|
1052
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
+
switch (errorCode) {
|
|
1054
|
+
case "InternalServiceErrorException":
|
|
1055
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1056
|
+
response = {
|
|
1057
|
+
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1058
|
+
name: errorCode,
|
|
1059
|
+
$metadata: deserializeMetadata(output),
|
|
1060
|
+
};
|
|
1061
|
+
break;
|
|
1062
|
+
case "InvalidRequestException":
|
|
1063
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1064
|
+
response = {
|
|
1065
|
+
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1066
|
+
name: errorCode,
|
|
1067
|
+
$metadata: deserializeMetadata(output),
|
|
1068
|
+
};
|
|
1069
|
+
break;
|
|
1070
|
+
case "ResourceNotFoundException":
|
|
1071
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException":
|
|
1072
|
+
response = {
|
|
1073
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1074
|
+
name: errorCode,
|
|
1075
|
+
$metadata: deserializeMetadata(output),
|
|
1076
|
+
};
|
|
1077
|
+
break;
|
|
1078
|
+
default:
|
|
1079
|
+
const parsedBody = parsedOutput.body;
|
|
1080
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1081
|
+
response = {
|
|
1082
|
+
...parsedBody,
|
|
1083
|
+
name: `${errorCode}`,
|
|
1084
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1085
|
+
$fault: "client",
|
|
1086
|
+
$metadata: deserializeMetadata(output),
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
const message = response.message || response.Message || errorCode;
|
|
1090
|
+
response.message = message;
|
|
1091
|
+
delete response.Message;
|
|
1092
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1093
|
+
};
|
|
864
1094
|
const deserializeAws_json1_0DisassociateCustomDomainCommand = async (output, context) => {
|
|
865
1095
|
if (output.statusCode >= 300) {
|
|
866
1096
|
return deserializeAws_json1_0DisassociateCustomDomainCommandError(output, context);
|
|
@@ -1231,6 +1461,61 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1231
1461
|
delete response.Message;
|
|
1232
1462
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1233
1463
|
};
|
|
1464
|
+
const deserializeAws_json1_0ListVpcConnectorsCommand = async (output, context) => {
|
|
1465
|
+
if (output.statusCode >= 300) {
|
|
1466
|
+
return deserializeAws_json1_0ListVpcConnectorsCommandError(output, context);
|
|
1467
|
+
}
|
|
1468
|
+
const data = await parseBody(output.body, context);
|
|
1469
|
+
let contents = {};
|
|
1470
|
+
contents = deserializeAws_json1_0ListVpcConnectorsResponse(data, context);
|
|
1471
|
+
const response = {
|
|
1472
|
+
$metadata: deserializeMetadata(output),
|
|
1473
|
+
...contents,
|
|
1474
|
+
};
|
|
1475
|
+
return Promise.resolve(response);
|
|
1476
|
+
};
|
|
1477
|
+
exports.deserializeAws_json1_0ListVpcConnectorsCommand = deserializeAws_json1_0ListVpcConnectorsCommand;
|
|
1478
|
+
const deserializeAws_json1_0ListVpcConnectorsCommandError = async (output, context) => {
|
|
1479
|
+
const parsedOutput = {
|
|
1480
|
+
...output,
|
|
1481
|
+
body: await parseBody(output.body, context),
|
|
1482
|
+
};
|
|
1483
|
+
let response;
|
|
1484
|
+
let errorCode = "UnknownError";
|
|
1485
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
|
+
switch (errorCode) {
|
|
1487
|
+
case "InternalServiceErrorException":
|
|
1488
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException":
|
|
1489
|
+
response = {
|
|
1490
|
+
...(await deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)),
|
|
1491
|
+
name: errorCode,
|
|
1492
|
+
$metadata: deserializeMetadata(output),
|
|
1493
|
+
};
|
|
1494
|
+
break;
|
|
1495
|
+
case "InvalidRequestException":
|
|
1496
|
+
case "com.amazonaws.apprunner#InvalidRequestException":
|
|
1497
|
+
response = {
|
|
1498
|
+
...(await deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1499
|
+
name: errorCode,
|
|
1500
|
+
$metadata: deserializeMetadata(output),
|
|
1501
|
+
};
|
|
1502
|
+
break;
|
|
1503
|
+
default:
|
|
1504
|
+
const parsedBody = parsedOutput.body;
|
|
1505
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1506
|
+
response = {
|
|
1507
|
+
...parsedBody,
|
|
1508
|
+
name: `${errorCode}`,
|
|
1509
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1510
|
+
$fault: "client",
|
|
1511
|
+
$metadata: deserializeMetadata(output),
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
const message = response.message || response.Message || errorCode;
|
|
1515
|
+
response.message = message;
|
|
1516
|
+
delete response.Message;
|
|
1517
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1518
|
+
};
|
|
1234
1519
|
const deserializeAws_json1_0PauseServiceCommand = async (output, context) => {
|
|
1235
1520
|
if (output.statusCode >= 300) {
|
|
1236
1521
|
return deserializeAws_json1_0PauseServiceCommandError(output, context);
|
|
@@ -1790,6 +2075,10 @@ const serializeAws_json1_0CreateServiceRequest = (input, context) => {
|
|
|
1790
2075
|
input.InstanceConfiguration !== null && {
|
|
1791
2076
|
InstanceConfiguration: serializeAws_json1_0InstanceConfiguration(input.InstanceConfiguration, context),
|
|
1792
2077
|
}),
|
|
2078
|
+
...(input.NetworkConfiguration !== undefined &&
|
|
2079
|
+
input.NetworkConfiguration !== null && {
|
|
2080
|
+
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
2081
|
+
}),
|
|
1793
2082
|
...(input.ServiceName !== undefined && input.ServiceName !== null && { ServiceName: input.ServiceName }),
|
|
1794
2083
|
...(input.SourceConfiguration !== undefined &&
|
|
1795
2084
|
input.SourceConfiguration !== null && {
|
|
@@ -1798,6 +2087,19 @@ const serializeAws_json1_0CreateServiceRequest = (input, context) => {
|
|
|
1798
2087
|
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1799
2088
|
};
|
|
1800
2089
|
};
|
|
2090
|
+
const serializeAws_json1_0CreateVpcConnectorRequest = (input, context) => {
|
|
2091
|
+
return {
|
|
2092
|
+
...(input.SecurityGroups !== undefined &&
|
|
2093
|
+
input.SecurityGroups !== null && {
|
|
2094
|
+
SecurityGroups: serializeAws_json1_0StringList(input.SecurityGroups, context),
|
|
2095
|
+
}),
|
|
2096
|
+
...(input.Subnets !== undefined &&
|
|
2097
|
+
input.Subnets !== null && { Subnets: serializeAws_json1_0StringList(input.Subnets, context) }),
|
|
2098
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
2099
|
+
...(input.VpcConnectorName !== undefined &&
|
|
2100
|
+
input.VpcConnectorName !== null && { VpcConnectorName: input.VpcConnectorName }),
|
|
2101
|
+
};
|
|
2102
|
+
};
|
|
1801
2103
|
const serializeAws_json1_0DeleteAutoScalingConfigurationRequest = (input, context) => {
|
|
1802
2104
|
return {
|
|
1803
2105
|
...(input.AutoScalingConfigurationArn !== undefined &&
|
|
@@ -1814,6 +2116,12 @@ const serializeAws_json1_0DeleteServiceRequest = (input, context) => {
|
|
|
1814
2116
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
1815
2117
|
};
|
|
1816
2118
|
};
|
|
2119
|
+
const serializeAws_json1_0DeleteVpcConnectorRequest = (input, context) => {
|
|
2120
|
+
return {
|
|
2121
|
+
...(input.VpcConnectorArn !== undefined &&
|
|
2122
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }),
|
|
2123
|
+
};
|
|
2124
|
+
};
|
|
1817
2125
|
const serializeAws_json1_0DescribeAutoScalingConfigurationRequest = (input, context) => {
|
|
1818
2126
|
return {
|
|
1819
2127
|
...(input.AutoScalingConfigurationArn !== undefined &&
|
|
@@ -1832,12 +2140,25 @@ const serializeAws_json1_0DescribeServiceRequest = (input, context) => {
|
|
|
1832
2140
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
1833
2141
|
};
|
|
1834
2142
|
};
|
|
2143
|
+
const serializeAws_json1_0DescribeVpcConnectorRequest = (input, context) => {
|
|
2144
|
+
return {
|
|
2145
|
+
...(input.VpcConnectorArn !== undefined &&
|
|
2146
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }),
|
|
2147
|
+
};
|
|
2148
|
+
};
|
|
1835
2149
|
const serializeAws_json1_0DisassociateCustomDomainRequest = (input, context) => {
|
|
1836
2150
|
return {
|
|
1837
2151
|
...(input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName }),
|
|
1838
2152
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
1839
2153
|
};
|
|
1840
2154
|
};
|
|
2155
|
+
const serializeAws_json1_0EgressConfiguration = (input, context) => {
|
|
2156
|
+
return {
|
|
2157
|
+
...(input.EgressType !== undefined && input.EgressType !== null && { EgressType: input.EgressType }),
|
|
2158
|
+
...(input.VpcConnectorArn !== undefined &&
|
|
2159
|
+
input.VpcConnectorArn !== null && { VpcConnectorArn: input.VpcConnectorArn }),
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
1841
2162
|
const serializeAws_json1_0EncryptionConfiguration = (input, context) => {
|
|
1842
2163
|
return {
|
|
1843
2164
|
...(input.KmsKey !== undefined && input.KmsKey !== null && { KmsKey: input.KmsKey }),
|
|
@@ -1922,6 +2243,20 @@ const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
|
1922
2243
|
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
1923
2244
|
};
|
|
1924
2245
|
};
|
|
2246
|
+
const serializeAws_json1_0ListVpcConnectorsRequest = (input, context) => {
|
|
2247
|
+
return {
|
|
2248
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2249
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2250
|
+
};
|
|
2251
|
+
};
|
|
2252
|
+
const serializeAws_json1_0NetworkConfiguration = (input, context) => {
|
|
2253
|
+
return {
|
|
2254
|
+
...(input.EgressConfiguration !== undefined &&
|
|
2255
|
+
input.EgressConfiguration !== null && {
|
|
2256
|
+
EgressConfiguration: serializeAws_json1_0EgressConfiguration(input.EgressConfiguration, context),
|
|
2257
|
+
}),
|
|
2258
|
+
};
|
|
2259
|
+
};
|
|
1925
2260
|
const serializeAws_json1_0PauseServiceRequest = (input, context) => {
|
|
1926
2261
|
return {
|
|
1927
2262
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
@@ -1972,6 +2307,16 @@ const serializeAws_json1_0StartDeploymentRequest = (input, context) => {
|
|
|
1972
2307
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
1973
2308
|
};
|
|
1974
2309
|
};
|
|
2310
|
+
const serializeAws_json1_0StringList = (input, context) => {
|
|
2311
|
+
return input
|
|
2312
|
+
.filter((e) => e != null)
|
|
2313
|
+
.map((entry) => {
|
|
2314
|
+
if (entry === null) {
|
|
2315
|
+
return null;
|
|
2316
|
+
}
|
|
2317
|
+
return entry;
|
|
2318
|
+
});
|
|
2319
|
+
};
|
|
1975
2320
|
const serializeAws_json1_0Tag = (input, context) => {
|
|
1976
2321
|
return {
|
|
1977
2322
|
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
@@ -2023,6 +2368,10 @@ const serializeAws_json1_0UpdateServiceRequest = (input, context) => {
|
|
|
2023
2368
|
input.InstanceConfiguration !== null && {
|
|
2024
2369
|
InstanceConfiguration: serializeAws_json1_0InstanceConfiguration(input.InstanceConfiguration, context),
|
|
2025
2370
|
}),
|
|
2371
|
+
...(input.NetworkConfiguration !== undefined &&
|
|
2372
|
+
input.NetworkConfiguration !== null && {
|
|
2373
|
+
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
2374
|
+
}),
|
|
2026
2375
|
...(input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }),
|
|
2027
2376
|
...(input.SourceConfiguration !== undefined &&
|
|
2028
2377
|
input.SourceConfiguration !== null && {
|
|
@@ -2182,6 +2531,13 @@ const deserializeAws_json1_0CreateServiceResponse = (output, context) => {
|
|
|
2182
2531
|
: undefined,
|
|
2183
2532
|
};
|
|
2184
2533
|
};
|
|
2534
|
+
const deserializeAws_json1_0CreateVpcConnectorResponse = (output, context) => {
|
|
2535
|
+
return {
|
|
2536
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2537
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2538
|
+
: undefined,
|
|
2539
|
+
};
|
|
2540
|
+
};
|
|
2185
2541
|
const deserializeAws_json1_0CustomDomain = (output, context) => {
|
|
2186
2542
|
return {
|
|
2187
2543
|
CertificateValidationRecords: output.CertificateValidationRecords !== undefined && output.CertificateValidationRecords !== null
|
|
@@ -2224,6 +2580,13 @@ const deserializeAws_json1_0DeleteServiceResponse = (output, context) => {
|
|
|
2224
2580
|
: undefined,
|
|
2225
2581
|
};
|
|
2226
2582
|
};
|
|
2583
|
+
const deserializeAws_json1_0DeleteVpcConnectorResponse = (output, context) => {
|
|
2584
|
+
return {
|
|
2585
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2586
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2587
|
+
: undefined,
|
|
2588
|
+
};
|
|
2589
|
+
};
|
|
2227
2590
|
const deserializeAws_json1_0DescribeAutoScalingConfigurationResponse = (output, context) => {
|
|
2228
2591
|
return {
|
|
2229
2592
|
AutoScalingConfiguration: output.AutoScalingConfiguration !== undefined && output.AutoScalingConfiguration !== null
|
|
@@ -2248,6 +2611,13 @@ const deserializeAws_json1_0DescribeServiceResponse = (output, context) => {
|
|
|
2248
2611
|
: undefined,
|
|
2249
2612
|
};
|
|
2250
2613
|
};
|
|
2614
|
+
const deserializeAws_json1_0DescribeVpcConnectorResponse = (output, context) => {
|
|
2615
|
+
return {
|
|
2616
|
+
VpcConnector: output.VpcConnector !== undefined && output.VpcConnector !== null
|
|
2617
|
+
? deserializeAws_json1_0VpcConnector(output.VpcConnector, context)
|
|
2618
|
+
: undefined,
|
|
2619
|
+
};
|
|
2620
|
+
};
|
|
2251
2621
|
const deserializeAws_json1_0DisassociateCustomDomainResponse = (output, context) => {
|
|
2252
2622
|
return {
|
|
2253
2623
|
CustomDomain: output.CustomDomain !== undefined && output.CustomDomain !== null
|
|
@@ -2257,6 +2627,12 @@ const deserializeAws_json1_0DisassociateCustomDomainResponse = (output, context)
|
|
|
2257
2627
|
ServiceArn: smithy_client_1.expectString(output.ServiceArn),
|
|
2258
2628
|
};
|
|
2259
2629
|
};
|
|
2630
|
+
const deserializeAws_json1_0EgressConfiguration = (output, context) => {
|
|
2631
|
+
return {
|
|
2632
|
+
EgressType: smithy_client_1.expectString(output.EgressType),
|
|
2633
|
+
VpcConnectorArn: smithy_client_1.expectString(output.VpcConnectorArn),
|
|
2634
|
+
};
|
|
2635
|
+
};
|
|
2260
2636
|
const deserializeAws_json1_0EncryptionConfiguration = (output, context) => {
|
|
2261
2637
|
return {
|
|
2262
2638
|
KmsKey: smithy_client_1.expectString(output.KmsKey),
|
|
@@ -2351,6 +2727,21 @@ const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
|
2351
2727
|
: undefined,
|
|
2352
2728
|
};
|
|
2353
2729
|
};
|
|
2730
|
+
const deserializeAws_json1_0ListVpcConnectorsResponse = (output, context) => {
|
|
2731
|
+
return {
|
|
2732
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2733
|
+
VpcConnectors: output.VpcConnectors !== undefined && output.VpcConnectors !== null
|
|
2734
|
+
? deserializeAws_json1_0VpcConnectors(output.VpcConnectors, context)
|
|
2735
|
+
: undefined,
|
|
2736
|
+
};
|
|
2737
|
+
};
|
|
2738
|
+
const deserializeAws_json1_0NetworkConfiguration = (output, context) => {
|
|
2739
|
+
return {
|
|
2740
|
+
EgressConfiguration: output.EgressConfiguration !== undefined && output.EgressConfiguration !== null
|
|
2741
|
+
? deserializeAws_json1_0EgressConfiguration(output.EgressConfiguration, context)
|
|
2742
|
+
: undefined,
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2354
2745
|
const deserializeAws_json1_0OperationSummary = (output, context) => {
|
|
2355
2746
|
return {
|
|
2356
2747
|
EndedAt: output.EndedAt !== undefined && output.EndedAt !== null
|
|
@@ -2430,6 +2821,9 @@ const deserializeAws_json1_0Service = (output, context) => {
|
|
|
2430
2821
|
InstanceConfiguration: output.InstanceConfiguration !== undefined && output.InstanceConfiguration !== null
|
|
2431
2822
|
? deserializeAws_json1_0InstanceConfiguration(output.InstanceConfiguration, context)
|
|
2432
2823
|
: undefined,
|
|
2824
|
+
NetworkConfiguration: output.NetworkConfiguration !== undefined && output.NetworkConfiguration !== null
|
|
2825
|
+
? deserializeAws_json1_0NetworkConfiguration(output.NetworkConfiguration, context)
|
|
2826
|
+
: undefined,
|
|
2433
2827
|
ServiceArn: smithy_client_1.expectString(output.ServiceArn),
|
|
2434
2828
|
ServiceId: smithy_client_1.expectString(output.ServiceId),
|
|
2435
2829
|
ServiceName: smithy_client_1.expectString(output.ServiceName),
|
|
@@ -2498,6 +2892,16 @@ const deserializeAws_json1_0StartDeploymentResponse = (output, context) => {
|
|
|
2498
2892
|
OperationId: smithy_client_1.expectString(output.OperationId),
|
|
2499
2893
|
};
|
|
2500
2894
|
};
|
|
2895
|
+
const deserializeAws_json1_0StringList = (output, context) => {
|
|
2896
|
+
return (output || [])
|
|
2897
|
+
.filter((e) => e != null)
|
|
2898
|
+
.map((entry) => {
|
|
2899
|
+
if (entry === null) {
|
|
2900
|
+
return null;
|
|
2901
|
+
}
|
|
2902
|
+
return smithy_client_1.expectString(entry);
|
|
2903
|
+
});
|
|
2904
|
+
};
|
|
2501
2905
|
const deserializeAws_json1_0Tag = (output, context) => {
|
|
2502
2906
|
return {
|
|
2503
2907
|
Key: smithy_client_1.expectString(output.Key),
|
|
@@ -2528,6 +2932,36 @@ const deserializeAws_json1_0UpdateServiceResponse = (output, context) => {
|
|
|
2528
2932
|
: undefined,
|
|
2529
2933
|
};
|
|
2530
2934
|
};
|
|
2935
|
+
const deserializeAws_json1_0VpcConnector = (output, context) => {
|
|
2936
|
+
return {
|
|
2937
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
2938
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedAt)))
|
|
2939
|
+
: undefined,
|
|
2940
|
+
DeletedAt: output.DeletedAt !== undefined && output.DeletedAt !== null
|
|
2941
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeletedAt)))
|
|
2942
|
+
: undefined,
|
|
2943
|
+
SecurityGroups: output.SecurityGroups !== undefined && output.SecurityGroups !== null
|
|
2944
|
+
? deserializeAws_json1_0StringList(output.SecurityGroups, context)
|
|
2945
|
+
: undefined,
|
|
2946
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
2947
|
+
Subnets: output.Subnets !== undefined && output.Subnets !== null
|
|
2948
|
+
? deserializeAws_json1_0StringList(output.Subnets, context)
|
|
2949
|
+
: undefined,
|
|
2950
|
+
VpcConnectorArn: smithy_client_1.expectString(output.VpcConnectorArn),
|
|
2951
|
+
VpcConnectorName: smithy_client_1.expectString(output.VpcConnectorName),
|
|
2952
|
+
VpcConnectorRevision: smithy_client_1.expectInt32(output.VpcConnectorRevision),
|
|
2953
|
+
};
|
|
2954
|
+
};
|
|
2955
|
+
const deserializeAws_json1_0VpcConnectors = (output, context) => {
|
|
2956
|
+
return (output || [])
|
|
2957
|
+
.filter((e) => e != null)
|
|
2958
|
+
.map((entry) => {
|
|
2959
|
+
if (entry === null) {
|
|
2960
|
+
return null;
|
|
2961
|
+
}
|
|
2962
|
+
return deserializeAws_json1_0VpcConnector(entry, context);
|
|
2963
|
+
});
|
|
2964
|
+
};
|
|
2531
2965
|
const deserializeMetadata = (output) => {
|
|
2532
2966
|
var _a;
|
|
2533
2967
|
return ({
|