@aws-sdk/client-mediaconnect 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +347 -431
- package/dist-es/protocols/Aws_restJson1.js +237 -321
- package/package.json +27 -27
|
@@ -24,8 +24,7 @@ const serializeAws_restJson1AddFlowMediaStreamsCommand = async (input, context)
|
|
|
24
24
|
}
|
|
25
25
|
let body;
|
|
26
26
|
body = JSON.stringify({
|
|
27
|
-
...(input.MediaStreams
|
|
28
|
-
input.MediaStreams !== null && {
|
|
27
|
+
...(input.MediaStreams != null && {
|
|
29
28
|
mediaStreams: serializeAws_restJson1__listOfAddMediaStreamRequest(input.MediaStreams, context),
|
|
30
29
|
}),
|
|
31
30
|
});
|
|
@@ -58,8 +57,7 @@ const serializeAws_restJson1AddFlowOutputsCommand = async (input, context) => {
|
|
|
58
57
|
}
|
|
59
58
|
let body;
|
|
60
59
|
body = JSON.stringify({
|
|
61
|
-
...(input.Outputs
|
|
62
|
-
input.Outputs !== null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) }),
|
|
60
|
+
...(input.Outputs != null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) }),
|
|
63
61
|
});
|
|
64
62
|
return new protocol_http_1.HttpRequest({
|
|
65
63
|
protocol,
|
|
@@ -90,8 +88,7 @@ const serializeAws_restJson1AddFlowSourcesCommand = async (input, context) => {
|
|
|
90
88
|
}
|
|
91
89
|
let body;
|
|
92
90
|
body = JSON.stringify({
|
|
93
|
-
...(input.Sources
|
|
94
|
-
input.Sources !== null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) }),
|
|
91
|
+
...(input.Sources != null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) }),
|
|
95
92
|
});
|
|
96
93
|
return new protocol_http_1.HttpRequest({
|
|
97
94
|
protocol,
|
|
@@ -122,8 +119,7 @@ const serializeAws_restJson1AddFlowVpcInterfacesCommand = async (input, context)
|
|
|
122
119
|
}
|
|
123
120
|
let body;
|
|
124
121
|
body = JSON.stringify({
|
|
125
|
-
...(input.VpcInterfaces
|
|
126
|
-
input.VpcInterfaces !== null && {
|
|
122
|
+
...(input.VpcInterfaces != null && {
|
|
127
123
|
vpcInterfaces: serializeAws_restJson1__listOfVpcInterfaceRequest(input.VpcInterfaces, context),
|
|
128
124
|
}),
|
|
129
125
|
});
|
|
@@ -146,31 +142,22 @@ const serializeAws_restJson1CreateFlowCommand = async (input, context) => {
|
|
|
146
142
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows";
|
|
147
143
|
let body;
|
|
148
144
|
body = JSON.stringify({
|
|
149
|
-
...(input.AvailabilityZone
|
|
150
|
-
|
|
151
|
-
...(input.Entitlements !== undefined &&
|
|
152
|
-
input.Entitlements !== null && {
|
|
145
|
+
...(input.AvailabilityZone != null && { availabilityZone: input.AvailabilityZone }),
|
|
146
|
+
...(input.Entitlements != null && {
|
|
153
147
|
entitlements: serializeAws_restJson1__listOfGrantEntitlementRequest(input.Entitlements, context),
|
|
154
148
|
}),
|
|
155
|
-
...(input.Maintenance
|
|
156
|
-
|
|
157
|
-
...(input.MediaStreams !== undefined &&
|
|
158
|
-
input.MediaStreams !== null && {
|
|
149
|
+
...(input.Maintenance != null && { maintenance: serializeAws_restJson1AddMaintenance(input.Maintenance, context) }),
|
|
150
|
+
...(input.MediaStreams != null && {
|
|
159
151
|
mediaStreams: serializeAws_restJson1__listOfAddMediaStreamRequest(input.MediaStreams, context),
|
|
160
152
|
}),
|
|
161
|
-
...(input.Name
|
|
162
|
-
...(input.Outputs
|
|
163
|
-
|
|
164
|
-
...(input.
|
|
165
|
-
input.Source !== null && { source: serializeAws_restJson1SetSourceRequest(input.Source, context) }),
|
|
166
|
-
...(input.SourceFailoverConfig !== undefined &&
|
|
167
|
-
input.SourceFailoverConfig !== null && {
|
|
153
|
+
...(input.Name != null && { name: input.Name }),
|
|
154
|
+
...(input.Outputs != null && { outputs: serializeAws_restJson1__listOfAddOutputRequest(input.Outputs, context) }),
|
|
155
|
+
...(input.Source != null && { source: serializeAws_restJson1SetSourceRequest(input.Source, context) }),
|
|
156
|
+
...(input.SourceFailoverConfig != null && {
|
|
168
157
|
sourceFailoverConfig: serializeAws_restJson1FailoverConfig(input.SourceFailoverConfig, context),
|
|
169
158
|
}),
|
|
170
|
-
...(input.Sources
|
|
171
|
-
|
|
172
|
-
...(input.VpcInterfaces !== undefined &&
|
|
173
|
-
input.VpcInterfaces !== null && {
|
|
159
|
+
...(input.Sources != null && { sources: serializeAws_restJson1__listOfSetSourceRequest(input.Sources, context) }),
|
|
160
|
+
...(input.VpcInterfaces != null && {
|
|
174
161
|
vpcInterfaces: serializeAws_restJson1__listOfVpcInterfaceRequest(input.VpcInterfaces, context),
|
|
175
162
|
}),
|
|
176
163
|
});
|
|
@@ -307,8 +294,7 @@ const serializeAws_restJson1GrantFlowEntitlementsCommand = async (input, context
|
|
|
307
294
|
}
|
|
308
295
|
let body;
|
|
309
296
|
body = JSON.stringify({
|
|
310
|
-
...(input.Entitlements
|
|
311
|
-
input.Entitlements !== null && {
|
|
297
|
+
...(input.Entitlements != null && {
|
|
312
298
|
entitlements: serializeAws_restJson1__listOfGrantEntitlementRequest(input.Entitlements, context),
|
|
313
299
|
}),
|
|
314
300
|
});
|
|
@@ -451,9 +437,8 @@ const serializeAws_restJson1PurchaseOfferingCommand = async (input, context) =>
|
|
|
451
437
|
}
|
|
452
438
|
let body;
|
|
453
439
|
body = JSON.stringify({
|
|
454
|
-
...(input.ReservationName
|
|
455
|
-
|
|
456
|
-
...(input.Start !== undefined && input.Start !== null && { start: input.Start }),
|
|
440
|
+
...(input.ReservationName != null && { reservationName: input.ReservationName }),
|
|
441
|
+
...(input.Start != null && { start: input.Start }),
|
|
457
442
|
});
|
|
458
443
|
return new protocol_http_1.HttpRequest({
|
|
459
444
|
protocol,
|
|
@@ -719,8 +704,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
719
704
|
}
|
|
720
705
|
let body;
|
|
721
706
|
body = JSON.stringify({
|
|
722
|
-
...(input.Tags
|
|
723
|
-
input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
707
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
|
|
724
708
|
});
|
|
725
709
|
return new protocol_http_1.HttpRequest({
|
|
726
710
|
protocol,
|
|
@@ -781,12 +765,10 @@ const serializeAws_restJson1UpdateFlowCommand = async (input, context) => {
|
|
|
781
765
|
}
|
|
782
766
|
let body;
|
|
783
767
|
body = JSON.stringify({
|
|
784
|
-
...(input.Maintenance
|
|
785
|
-
input.Maintenance !== null && {
|
|
768
|
+
...(input.Maintenance != null && {
|
|
786
769
|
maintenance: serializeAws_restJson1UpdateMaintenance(input.Maintenance, context),
|
|
787
770
|
}),
|
|
788
|
-
...(input.SourceFailoverConfig
|
|
789
|
-
input.SourceFailoverConfig !== null && {
|
|
771
|
+
...(input.SourceFailoverConfig != null && {
|
|
790
772
|
sourceFailoverConfig: serializeAws_restJson1UpdateFailoverConfig(input.SourceFailoverConfig, context),
|
|
791
773
|
}),
|
|
792
774
|
});
|
|
@@ -830,13 +812,10 @@ const serializeAws_restJson1UpdateFlowEntitlementCommand = async (input, context
|
|
|
830
812
|
}
|
|
831
813
|
let body;
|
|
832
814
|
body = JSON.stringify({
|
|
833
|
-
...(input.Description
|
|
834
|
-
...(input.Encryption
|
|
835
|
-
|
|
836
|
-
...(input.
|
|
837
|
-
input.EntitlementStatus !== null && { entitlementStatus: input.EntitlementStatus }),
|
|
838
|
-
...(input.Subscribers !== undefined &&
|
|
839
|
-
input.Subscribers !== null && {
|
|
815
|
+
...(input.Description != null && { description: input.Description }),
|
|
816
|
+
...(input.Encryption != null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) }),
|
|
817
|
+
...(input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus }),
|
|
818
|
+
...(input.Subscribers != null && {
|
|
840
819
|
subscribers: serializeAws_restJson1__listOf__string(input.Subscribers, context),
|
|
841
820
|
}),
|
|
842
821
|
});
|
|
@@ -880,15 +859,13 @@ const serializeAws_restJson1UpdateFlowMediaStreamCommand = async (input, context
|
|
|
880
859
|
}
|
|
881
860
|
let body;
|
|
882
861
|
body = JSON.stringify({
|
|
883
|
-
...(input.Attributes
|
|
884
|
-
input.Attributes !== null && {
|
|
862
|
+
...(input.Attributes != null && {
|
|
885
863
|
attributes: serializeAws_restJson1MediaStreamAttributesRequest(input.Attributes, context),
|
|
886
864
|
}),
|
|
887
|
-
...(input.ClockRate
|
|
888
|
-
...(input.Description
|
|
889
|
-
...(input.MediaStreamType
|
|
890
|
-
|
|
891
|
-
...(input.VideoFormat !== undefined && input.VideoFormat !== null && { videoFormat: input.VideoFormat }),
|
|
865
|
+
...(input.ClockRate != null && { clockRate: input.ClockRate }),
|
|
866
|
+
...(input.Description != null && { description: input.Description }),
|
|
867
|
+
...(input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType }),
|
|
868
|
+
...(input.VideoFormat != null && { videoFormat: input.VideoFormat }),
|
|
892
869
|
});
|
|
893
870
|
return new protocol_http_1.HttpRequest({
|
|
894
871
|
protocol,
|
|
@@ -929,32 +906,25 @@ const serializeAws_restJson1UpdateFlowOutputCommand = async (input, context) =>
|
|
|
929
906
|
}
|
|
930
907
|
let body;
|
|
931
908
|
body = JSON.stringify({
|
|
932
|
-
...(input.CidrAllowList
|
|
933
|
-
input.CidrAllowList !== null && {
|
|
909
|
+
...(input.CidrAllowList != null && {
|
|
934
910
|
cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
|
|
935
911
|
}),
|
|
936
|
-
...(input.Description
|
|
937
|
-
...(input.Destination
|
|
938
|
-
...(input.Encryption
|
|
939
|
-
|
|
940
|
-
...(input.
|
|
941
|
-
...(input.MediaStreamOutputConfigurations !== undefined &&
|
|
942
|
-
input.MediaStreamOutputConfigurations !== null && {
|
|
912
|
+
...(input.Description != null && { description: input.Description }),
|
|
913
|
+
...(input.Destination != null && { destination: input.Destination }),
|
|
914
|
+
...(input.Encryption != null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) }),
|
|
915
|
+
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
916
|
+
...(input.MediaStreamOutputConfigurations != null && {
|
|
943
917
|
mediaStreamOutputConfigurations: serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
|
|
944
918
|
}),
|
|
945
|
-
...(input.MinLatency
|
|
946
|
-
...(input.Port
|
|
947
|
-
...(input.Protocol
|
|
948
|
-
...(input.RemoteId
|
|
949
|
-
...(input.SenderControlPort
|
|
950
|
-
|
|
951
|
-
...(input.
|
|
952
|
-
|
|
953
|
-
...(input.
|
|
954
|
-
input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency }),
|
|
955
|
-
...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
|
|
956
|
-
...(input.VpcInterfaceAttachment !== undefined &&
|
|
957
|
-
input.VpcInterfaceAttachment !== null && {
|
|
919
|
+
...(input.MinLatency != null && { minLatency: input.MinLatency }),
|
|
920
|
+
...(input.Port != null && { port: input.Port }),
|
|
921
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
922
|
+
...(input.RemoteId != null && { remoteId: input.RemoteId }),
|
|
923
|
+
...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
|
|
924
|
+
...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
|
|
925
|
+
...(input.SmoothingLatency != null && { smoothingLatency: input.SmoothingLatency }),
|
|
926
|
+
...(input.StreamId != null && { streamId: input.StreamId }),
|
|
927
|
+
...(input.VpcInterfaceAttachment != null && {
|
|
958
928
|
vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
959
929
|
}),
|
|
960
930
|
});
|
|
@@ -997,29 +967,23 @@ const serializeAws_restJson1UpdateFlowSourceCommand = async (input, context) =>
|
|
|
997
967
|
}
|
|
998
968
|
let body;
|
|
999
969
|
body = JSON.stringify({
|
|
1000
|
-
...(input.Decryption
|
|
1001
|
-
|
|
1002
|
-
...(input.
|
|
1003
|
-
...(input.
|
|
1004
|
-
|
|
1005
|
-
...(input.
|
|
1006
|
-
...(input.
|
|
1007
|
-
...(input.
|
|
1008
|
-
...(input.MaxSyncBuffer !== undefined && input.MaxSyncBuffer !== null && { maxSyncBuffer: input.MaxSyncBuffer }),
|
|
1009
|
-
...(input.MediaStreamSourceConfigurations !== undefined &&
|
|
1010
|
-
input.MediaStreamSourceConfigurations !== null && {
|
|
970
|
+
...(input.Decryption != null && { decryption: serializeAws_restJson1UpdateEncryption(input.Decryption, context) }),
|
|
971
|
+
...(input.Description != null && { description: input.Description }),
|
|
972
|
+
...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
|
|
973
|
+
...(input.IngestPort != null && { ingestPort: input.IngestPort }),
|
|
974
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
975
|
+
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
976
|
+
...(input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer }),
|
|
977
|
+
...(input.MediaStreamSourceConfigurations != null && {
|
|
1011
978
|
mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
1012
979
|
}),
|
|
1013
|
-
...(input.MinLatency
|
|
1014
|
-
...(input.Protocol
|
|
1015
|
-
...(input.SenderControlPort
|
|
1016
|
-
|
|
1017
|
-
...(input.
|
|
1018
|
-
|
|
1019
|
-
...(input.
|
|
1020
|
-
...(input.VpcInterfaceName !== undefined &&
|
|
1021
|
-
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }),
|
|
1022
|
-
...(input.WhitelistCidr !== undefined && input.WhitelistCidr !== null && { whitelistCidr: input.WhitelistCidr }),
|
|
980
|
+
...(input.MinLatency != null && { minLatency: input.MinLatency }),
|
|
981
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
982
|
+
...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
|
|
983
|
+
...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
|
|
984
|
+
...(input.StreamId != null && { streamId: input.StreamId }),
|
|
985
|
+
...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
|
|
986
|
+
...(input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr }),
|
|
1023
987
|
});
|
|
1024
988
|
return new protocol_http_1.HttpRequest({
|
|
1025
989
|
protocol,
|
|
@@ -1057,8 +1021,7 @@ const deserializeAws_restJson1AddFlowMediaStreamsCommandError = async (output, c
|
|
|
1057
1021
|
body: await parseBody(output.body, context),
|
|
1058
1022
|
};
|
|
1059
1023
|
let response;
|
|
1060
|
-
|
|
1061
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
1025
|
switch (errorCode) {
|
|
1063
1026
|
case "BadRequestException":
|
|
1064
1027
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1080,10 +1043,12 @@ const deserializeAws_restJson1AddFlowMediaStreamsCommandError = async (output, c
|
|
|
1080
1043
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1081
1044
|
default:
|
|
1082
1045
|
const parsedBody = parsedOutput.body;
|
|
1046
|
+
const $metadata = deserializeMetadata(output);
|
|
1047
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1083
1048
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1084
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1049
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1085
1050
|
$fault: "client",
|
|
1086
|
-
$metadata
|
|
1051
|
+
$metadata,
|
|
1087
1052
|
});
|
|
1088
1053
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1089
1054
|
}
|
|
@@ -1113,8 +1078,7 @@ const deserializeAws_restJson1AddFlowOutputsCommandError = async (output, contex
|
|
|
1113
1078
|
body: await parseBody(output.body, context),
|
|
1114
1079
|
};
|
|
1115
1080
|
let response;
|
|
1116
|
-
|
|
1117
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
1082
|
switch (errorCode) {
|
|
1119
1083
|
case "AddFlowOutputs420Exception":
|
|
1120
1084
|
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
@@ -1139,10 +1103,12 @@ const deserializeAws_restJson1AddFlowOutputsCommandError = async (output, contex
|
|
|
1139
1103
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1140
1104
|
default:
|
|
1141
1105
|
const parsedBody = parsedOutput.body;
|
|
1106
|
+
const $metadata = deserializeMetadata(output);
|
|
1107
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1142
1108
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1143
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1109
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1144
1110
|
$fault: "client",
|
|
1145
|
-
$metadata
|
|
1111
|
+
$metadata,
|
|
1146
1112
|
});
|
|
1147
1113
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1148
1114
|
}
|
|
@@ -1172,8 +1138,7 @@ const deserializeAws_restJson1AddFlowSourcesCommandError = async (output, contex
|
|
|
1172
1138
|
body: await parseBody(output.body, context),
|
|
1173
1139
|
};
|
|
1174
1140
|
let response;
|
|
1175
|
-
|
|
1176
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1141
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
1142
|
switch (errorCode) {
|
|
1178
1143
|
case "BadRequestException":
|
|
1179
1144
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1195,10 +1160,12 @@ const deserializeAws_restJson1AddFlowSourcesCommandError = async (output, contex
|
|
|
1195
1160
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1196
1161
|
default:
|
|
1197
1162
|
const parsedBody = parsedOutput.body;
|
|
1163
|
+
const $metadata = deserializeMetadata(output);
|
|
1164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1198
1165
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1199
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1200
1167
|
$fault: "client",
|
|
1201
|
-
$metadata
|
|
1168
|
+
$metadata,
|
|
1202
1169
|
});
|
|
1203
1170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1204
1171
|
}
|
|
@@ -1228,8 +1195,7 @@ const deserializeAws_restJson1AddFlowVpcInterfacesCommandError = async (output,
|
|
|
1228
1195
|
body: await parseBody(output.body, context),
|
|
1229
1196
|
};
|
|
1230
1197
|
let response;
|
|
1231
|
-
|
|
1232
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1233
1199
|
switch (errorCode) {
|
|
1234
1200
|
case "BadRequestException":
|
|
1235
1201
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1251,10 +1217,12 @@ const deserializeAws_restJson1AddFlowVpcInterfacesCommandError = async (output,
|
|
|
1251
1217
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1252
1218
|
default:
|
|
1253
1219
|
const parsedBody = parsedOutput.body;
|
|
1220
|
+
const $metadata = deserializeMetadata(output);
|
|
1221
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1254
1222
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1255
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1223
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1256
1224
|
$fault: "client",
|
|
1257
|
-
$metadata
|
|
1225
|
+
$metadata,
|
|
1258
1226
|
});
|
|
1259
1227
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1260
1228
|
}
|
|
@@ -1280,8 +1248,7 @@ const deserializeAws_restJson1CreateFlowCommandError = async (output, context) =
|
|
|
1280
1248
|
body: await parseBody(output.body, context),
|
|
1281
1249
|
};
|
|
1282
1250
|
let response;
|
|
1283
|
-
|
|
1284
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
1252
|
switch (errorCode) {
|
|
1286
1253
|
case "BadRequestException":
|
|
1287
1254
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1303,10 +1270,12 @@ const deserializeAws_restJson1CreateFlowCommandError = async (output, context) =
|
|
|
1303
1270
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1304
1271
|
default:
|
|
1305
1272
|
const parsedBody = parsedOutput.body;
|
|
1273
|
+
const $metadata = deserializeMetadata(output);
|
|
1274
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1306
1275
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1307
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1276
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1308
1277
|
$fault: "client",
|
|
1309
|
-
$metadata
|
|
1278
|
+
$metadata,
|
|
1310
1279
|
});
|
|
1311
1280
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1312
1281
|
}
|
|
@@ -1336,8 +1305,7 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
|
|
|
1336
1305
|
body: await parseBody(output.body, context),
|
|
1337
1306
|
};
|
|
1338
1307
|
let response;
|
|
1339
|
-
|
|
1340
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
1309
|
switch (errorCode) {
|
|
1342
1310
|
case "BadRequestException":
|
|
1343
1311
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1359,10 +1327,12 @@ const deserializeAws_restJson1DeleteFlowCommandError = async (output, context) =
|
|
|
1359
1327
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1360
1328
|
default:
|
|
1361
1329
|
const parsedBody = parsedOutput.body;
|
|
1330
|
+
const $metadata = deserializeMetadata(output);
|
|
1331
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1362
1332
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1363
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1333
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1364
1334
|
$fault: "client",
|
|
1365
|
-
$metadata
|
|
1335
|
+
$metadata,
|
|
1366
1336
|
});
|
|
1367
1337
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1368
1338
|
}
|
|
@@ -1392,8 +1362,7 @@ const deserializeAws_restJson1DescribeFlowCommandError = async (output, context)
|
|
|
1392
1362
|
body: await parseBody(output.body, context),
|
|
1393
1363
|
};
|
|
1394
1364
|
let response;
|
|
1395
|
-
|
|
1396
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1397
1366
|
switch (errorCode) {
|
|
1398
1367
|
case "BadRequestException":
|
|
1399
1368
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1415,10 +1384,12 @@ const deserializeAws_restJson1DescribeFlowCommandError = async (output, context)
|
|
|
1415
1384
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1416
1385
|
default:
|
|
1417
1386
|
const parsedBody = parsedOutput.body;
|
|
1387
|
+
const $metadata = deserializeMetadata(output);
|
|
1388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1418
1389
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1419
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1420
1391
|
$fault: "client",
|
|
1421
|
-
$metadata
|
|
1392
|
+
$metadata,
|
|
1422
1393
|
});
|
|
1423
1394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1424
1395
|
}
|
|
@@ -1444,8 +1415,7 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
|
|
|
1444
1415
|
body: await parseBody(output.body, context),
|
|
1445
1416
|
};
|
|
1446
1417
|
let response;
|
|
1447
|
-
|
|
1448
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1449
1419
|
switch (errorCode) {
|
|
1450
1420
|
case "BadRequestException":
|
|
1451
1421
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1464,10 +1434,12 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
|
|
|
1464
1434
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1465
1435
|
default:
|
|
1466
1436
|
const parsedBody = parsedOutput.body;
|
|
1437
|
+
const $metadata = deserializeMetadata(output);
|
|
1438
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1467
1439
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1468
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1440
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1469
1441
|
$fault: "client",
|
|
1470
|
-
$metadata
|
|
1442
|
+
$metadata,
|
|
1471
1443
|
});
|
|
1472
1444
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1473
1445
|
}
|
|
@@ -1493,8 +1465,7 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
|
|
|
1493
1465
|
body: await parseBody(output.body, context),
|
|
1494
1466
|
};
|
|
1495
1467
|
let response;
|
|
1496
|
-
|
|
1497
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1498
1469
|
switch (errorCode) {
|
|
1499
1470
|
case "BadRequestException":
|
|
1500
1471
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1513,10 +1484,12 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
|
|
|
1513
1484
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1514
1485
|
default:
|
|
1515
1486
|
const parsedBody = parsedOutput.body;
|
|
1487
|
+
const $metadata = deserializeMetadata(output);
|
|
1488
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1516
1489
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1517
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1490
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1518
1491
|
$fault: "client",
|
|
1519
|
-
$metadata
|
|
1492
|
+
$metadata,
|
|
1520
1493
|
});
|
|
1521
1494
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1522
1495
|
}
|
|
@@ -1546,8 +1519,7 @@ const deserializeAws_restJson1GrantFlowEntitlementsCommandError = async (output,
|
|
|
1546
1519
|
body: await parseBody(output.body, context),
|
|
1547
1520
|
};
|
|
1548
1521
|
let response;
|
|
1549
|
-
|
|
1550
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
1523
|
switch (errorCode) {
|
|
1552
1524
|
case "BadRequestException":
|
|
1553
1525
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1572,10 +1544,12 @@ const deserializeAws_restJson1GrantFlowEntitlementsCommandError = async (output,
|
|
|
1572
1544
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1573
1545
|
default:
|
|
1574
1546
|
const parsedBody = parsedOutput.body;
|
|
1547
|
+
const $metadata = deserializeMetadata(output);
|
|
1548
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1575
1549
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1576
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1550
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1577
1551
|
$fault: "client",
|
|
1578
|
-
$metadata
|
|
1552
|
+
$metadata,
|
|
1579
1553
|
});
|
|
1580
1554
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1581
1555
|
}
|
|
@@ -1605,8 +1579,7 @@ const deserializeAws_restJson1ListEntitlementsCommandError = async (output, cont
|
|
|
1605
1579
|
body: await parseBody(output.body, context),
|
|
1606
1580
|
};
|
|
1607
1581
|
let response;
|
|
1608
|
-
|
|
1609
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
1583
|
switch (errorCode) {
|
|
1611
1584
|
case "BadRequestException":
|
|
1612
1585
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1622,10 +1595,12 @@ const deserializeAws_restJson1ListEntitlementsCommandError = async (output, cont
|
|
|
1622
1595
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1623
1596
|
default:
|
|
1624
1597
|
const parsedBody = parsedOutput.body;
|
|
1598
|
+
const $metadata = deserializeMetadata(output);
|
|
1599
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1625
1600
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1626
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1601
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1627
1602
|
$fault: "client",
|
|
1628
|
-
$metadata
|
|
1603
|
+
$metadata,
|
|
1629
1604
|
});
|
|
1630
1605
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1631
1606
|
}
|
|
@@ -1655,8 +1630,7 @@ const deserializeAws_restJson1ListFlowsCommandError = async (output, context) =>
|
|
|
1655
1630
|
body: await parseBody(output.body, context),
|
|
1656
1631
|
};
|
|
1657
1632
|
let response;
|
|
1658
|
-
|
|
1659
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
1634
|
switch (errorCode) {
|
|
1661
1635
|
case "BadRequestException":
|
|
1662
1636
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1672,10 +1646,12 @@ const deserializeAws_restJson1ListFlowsCommandError = async (output, context) =>
|
|
|
1672
1646
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1673
1647
|
default:
|
|
1674
1648
|
const parsedBody = parsedOutput.body;
|
|
1649
|
+
const $metadata = deserializeMetadata(output);
|
|
1650
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1675
1651
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1676
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1652
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1677
1653
|
$fault: "client",
|
|
1678
|
-
$metadata
|
|
1654
|
+
$metadata,
|
|
1679
1655
|
});
|
|
1680
1656
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1681
1657
|
}
|
|
@@ -1705,8 +1681,7 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
|
|
|
1705
1681
|
body: await parseBody(output.body, context),
|
|
1706
1682
|
};
|
|
1707
1683
|
let response;
|
|
1708
|
-
|
|
1709
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1684
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1685
|
switch (errorCode) {
|
|
1711
1686
|
case "BadRequestException":
|
|
1712
1687
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1722,10 +1697,12 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
|
|
|
1722
1697
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1723
1698
|
default:
|
|
1724
1699
|
const parsedBody = parsedOutput.body;
|
|
1700
|
+
const $metadata = deserializeMetadata(output);
|
|
1701
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1725
1702
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1726
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1703
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1727
1704
|
$fault: "client",
|
|
1728
|
-
$metadata
|
|
1705
|
+
$metadata,
|
|
1729
1706
|
});
|
|
1730
1707
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1731
1708
|
}
|
|
@@ -1755,8 +1732,7 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
|
|
|
1755
1732
|
body: await parseBody(output.body, context),
|
|
1756
1733
|
};
|
|
1757
1734
|
let response;
|
|
1758
|
-
|
|
1759
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1736
|
switch (errorCode) {
|
|
1761
1737
|
case "BadRequestException":
|
|
1762
1738
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1772,10 +1748,12 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
|
|
|
1772
1748
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1773
1749
|
default:
|
|
1774
1750
|
const parsedBody = parsedOutput.body;
|
|
1751
|
+
const $metadata = deserializeMetadata(output);
|
|
1752
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1775
1753
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1776
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1754
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1777
1755
|
$fault: "client",
|
|
1778
|
-
$metadata
|
|
1756
|
+
$metadata,
|
|
1779
1757
|
});
|
|
1780
1758
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1781
1759
|
}
|
|
@@ -1801,8 +1779,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1801
1779
|
body: await parseBody(output.body, context),
|
|
1802
1780
|
};
|
|
1803
1781
|
let response;
|
|
1804
|
-
|
|
1805
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1806
1783
|
switch (errorCode) {
|
|
1807
1784
|
case "BadRequestException":
|
|
1808
1785
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1815,10 +1792,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1815
1792
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1816
1793
|
default:
|
|
1817
1794
|
const parsedBody = parsedOutput.body;
|
|
1795
|
+
const $metadata = deserializeMetadata(output);
|
|
1796
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1818
1797
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1819
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1798
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1820
1799
|
$fault: "client",
|
|
1821
|
-
$metadata
|
|
1800
|
+
$metadata,
|
|
1822
1801
|
});
|
|
1823
1802
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1824
1803
|
}
|
|
@@ -1844,8 +1823,7 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
1844
1823
|
body: await parseBody(output.body, context),
|
|
1845
1824
|
};
|
|
1846
1825
|
let response;
|
|
1847
|
-
|
|
1848
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
1827
|
switch (errorCode) {
|
|
1850
1828
|
case "BadRequestException":
|
|
1851
1829
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1867,10 +1845,12 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
1867
1845
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1868
1846
|
default:
|
|
1869
1847
|
const parsedBody = parsedOutput.body;
|
|
1848
|
+
const $metadata = deserializeMetadata(output);
|
|
1849
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1870
1850
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1871
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1851
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1872
1852
|
$fault: "client",
|
|
1873
|
-
$metadata
|
|
1853
|
+
$metadata,
|
|
1874
1854
|
});
|
|
1875
1855
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1876
1856
|
}
|
|
@@ -1900,8 +1880,7 @@ const deserializeAws_restJson1RemoveFlowMediaStreamCommandError = async (output,
|
|
|
1900
1880
|
body: await parseBody(output.body, context),
|
|
1901
1881
|
};
|
|
1902
1882
|
let response;
|
|
1903
|
-
|
|
1904
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1883
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
1884
|
switch (errorCode) {
|
|
1906
1885
|
case "BadRequestException":
|
|
1907
1886
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1923,10 +1902,12 @@ const deserializeAws_restJson1RemoveFlowMediaStreamCommandError = async (output,
|
|
|
1923
1902
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1924
1903
|
default:
|
|
1925
1904
|
const parsedBody = parsedOutput.body;
|
|
1905
|
+
const $metadata = deserializeMetadata(output);
|
|
1906
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1926
1907
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1908
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1928
1909
|
$fault: "client",
|
|
1929
|
-
$metadata
|
|
1910
|
+
$metadata,
|
|
1930
1911
|
});
|
|
1931
1912
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1932
1913
|
}
|
|
@@ -1956,8 +1937,7 @@ const deserializeAws_restJson1RemoveFlowOutputCommandError = async (output, cont
|
|
|
1956
1937
|
body: await parseBody(output.body, context),
|
|
1957
1938
|
};
|
|
1958
1939
|
let response;
|
|
1959
|
-
|
|
1960
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1961
1941
|
switch (errorCode) {
|
|
1962
1942
|
case "BadRequestException":
|
|
1963
1943
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -1979,10 +1959,12 @@ const deserializeAws_restJson1RemoveFlowOutputCommandError = async (output, cont
|
|
|
1979
1959
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1980
1960
|
default:
|
|
1981
1961
|
const parsedBody = parsedOutput.body;
|
|
1962
|
+
const $metadata = deserializeMetadata(output);
|
|
1963
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1982
1964
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
1983
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1965
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1984
1966
|
$fault: "client",
|
|
1985
|
-
$metadata
|
|
1967
|
+
$metadata,
|
|
1986
1968
|
});
|
|
1987
1969
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1988
1970
|
}
|
|
@@ -2012,8 +1994,7 @@ const deserializeAws_restJson1RemoveFlowSourceCommandError = async (output, cont
|
|
|
2012
1994
|
body: await parseBody(output.body, context),
|
|
2013
1995
|
};
|
|
2014
1996
|
let response;
|
|
2015
|
-
|
|
2016
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
1998
|
switch (errorCode) {
|
|
2018
1999
|
case "BadRequestException":
|
|
2019
2000
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2035,10 +2016,12 @@ const deserializeAws_restJson1RemoveFlowSourceCommandError = async (output, cont
|
|
|
2035
2016
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2036
2017
|
default:
|
|
2037
2018
|
const parsedBody = parsedOutput.body;
|
|
2019
|
+
const $metadata = deserializeMetadata(output);
|
|
2020
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2038
2021
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2039
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2022
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2040
2023
|
$fault: "client",
|
|
2041
|
-
$metadata
|
|
2024
|
+
$metadata,
|
|
2042
2025
|
});
|
|
2043
2026
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2044
2027
|
}
|
|
@@ -2072,8 +2055,7 @@ const deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = async (output
|
|
|
2072
2055
|
body: await parseBody(output.body, context),
|
|
2073
2056
|
};
|
|
2074
2057
|
let response;
|
|
2075
|
-
|
|
2076
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
2059
|
switch (errorCode) {
|
|
2078
2060
|
case "BadRequestException":
|
|
2079
2061
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2095,10 +2077,12 @@ const deserializeAws_restJson1RemoveFlowVpcInterfaceCommandError = async (output
|
|
|
2095
2077
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2096
2078
|
default:
|
|
2097
2079
|
const parsedBody = parsedOutput.body;
|
|
2080
|
+
const $metadata = deserializeMetadata(output);
|
|
2081
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2098
2082
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2099
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2100
2084
|
$fault: "client",
|
|
2101
|
-
$metadata
|
|
2085
|
+
$metadata,
|
|
2102
2086
|
});
|
|
2103
2087
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2104
2088
|
}
|
|
@@ -2128,8 +2112,7 @@ const deserializeAws_restJson1RevokeFlowEntitlementCommandError = async (output,
|
|
|
2128
2112
|
body: await parseBody(output.body, context),
|
|
2129
2113
|
};
|
|
2130
2114
|
let response;
|
|
2131
|
-
|
|
2132
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2115
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
2116
|
switch (errorCode) {
|
|
2134
2117
|
case "BadRequestException":
|
|
2135
2118
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2151,10 +2134,12 @@ const deserializeAws_restJson1RevokeFlowEntitlementCommandError = async (output,
|
|
|
2151
2134
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2152
2135
|
default:
|
|
2153
2136
|
const parsedBody = parsedOutput.body;
|
|
2137
|
+
const $metadata = deserializeMetadata(output);
|
|
2138
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2154
2139
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2155
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2140
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2156
2141
|
$fault: "client",
|
|
2157
|
-
$metadata
|
|
2142
|
+
$metadata,
|
|
2158
2143
|
});
|
|
2159
2144
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2160
2145
|
}
|
|
@@ -2184,8 +2169,7 @@ const deserializeAws_restJson1StartFlowCommandError = async (output, context) =>
|
|
|
2184
2169
|
body: await parseBody(output.body, context),
|
|
2185
2170
|
};
|
|
2186
2171
|
let response;
|
|
2187
|
-
|
|
2188
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2189
2173
|
switch (errorCode) {
|
|
2190
2174
|
case "BadRequestException":
|
|
2191
2175
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2207,10 +2191,12 @@ const deserializeAws_restJson1StartFlowCommandError = async (output, context) =>
|
|
|
2207
2191
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2208
2192
|
default:
|
|
2209
2193
|
const parsedBody = parsedOutput.body;
|
|
2194
|
+
const $metadata = deserializeMetadata(output);
|
|
2195
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2210
2196
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2197
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2212
2198
|
$fault: "client",
|
|
2213
|
-
$metadata
|
|
2199
|
+
$metadata,
|
|
2214
2200
|
});
|
|
2215
2201
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2216
2202
|
}
|
|
@@ -2240,8 +2226,7 @@ const deserializeAws_restJson1StopFlowCommandError = async (output, context) =>
|
|
|
2240
2226
|
body: await parseBody(output.body, context),
|
|
2241
2227
|
};
|
|
2242
2228
|
let response;
|
|
2243
|
-
|
|
2244
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2229
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2245
2230
|
switch (errorCode) {
|
|
2246
2231
|
case "BadRequestException":
|
|
2247
2232
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2263,10 +2248,12 @@ const deserializeAws_restJson1StopFlowCommandError = async (output, context) =>
|
|
|
2263
2248
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2264
2249
|
default:
|
|
2265
2250
|
const parsedBody = parsedOutput.body;
|
|
2251
|
+
const $metadata = deserializeMetadata(output);
|
|
2252
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2266
2253
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2267
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2254
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2268
2255
|
$fault: "client",
|
|
2269
|
-
$metadata
|
|
2256
|
+
$metadata,
|
|
2270
2257
|
});
|
|
2271
2258
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2272
2259
|
}
|
|
@@ -2288,8 +2275,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2288
2275
|
body: await parseBody(output.body, context),
|
|
2289
2276
|
};
|
|
2290
2277
|
let response;
|
|
2291
|
-
|
|
2292
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2293
2279
|
switch (errorCode) {
|
|
2294
2280
|
case "BadRequestException":
|
|
2295
2281
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2302,10 +2288,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2302
2288
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2303
2289
|
default:
|
|
2304
2290
|
const parsedBody = parsedOutput.body;
|
|
2291
|
+
const $metadata = deserializeMetadata(output);
|
|
2292
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2305
2293
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2306
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2294
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2307
2295
|
$fault: "client",
|
|
2308
|
-
$metadata
|
|
2296
|
+
$metadata,
|
|
2309
2297
|
});
|
|
2310
2298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2311
2299
|
}
|
|
@@ -2327,8 +2315,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2327
2315
|
body: await parseBody(output.body, context),
|
|
2328
2316
|
};
|
|
2329
2317
|
let response;
|
|
2330
|
-
|
|
2331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2332
2319
|
switch (errorCode) {
|
|
2333
2320
|
case "BadRequestException":
|
|
2334
2321
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2341,10 +2328,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2341
2328
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2342
2329
|
default:
|
|
2343
2330
|
const parsedBody = parsedOutput.body;
|
|
2331
|
+
const $metadata = deserializeMetadata(output);
|
|
2332
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2344
2333
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2345
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2334
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2346
2335
|
$fault: "client",
|
|
2347
|
-
$metadata
|
|
2336
|
+
$metadata,
|
|
2348
2337
|
});
|
|
2349
2338
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2350
2339
|
}
|
|
@@ -2370,8 +2359,7 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
|
|
|
2370
2359
|
body: await parseBody(output.body, context),
|
|
2371
2360
|
};
|
|
2372
2361
|
let response;
|
|
2373
|
-
|
|
2374
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
2363
|
switch (errorCode) {
|
|
2376
2364
|
case "BadRequestException":
|
|
2377
2365
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2393,10 +2381,12 @@ const deserializeAws_restJson1UpdateFlowCommandError = async (output, context) =
|
|
|
2393
2381
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2394
2382
|
default:
|
|
2395
2383
|
const parsedBody = parsedOutput.body;
|
|
2384
|
+
const $metadata = deserializeMetadata(output);
|
|
2385
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2396
2386
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2387
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2398
2388
|
$fault: "client",
|
|
2399
|
-
$metadata
|
|
2389
|
+
$metadata,
|
|
2400
2390
|
});
|
|
2401
2391
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2402
2392
|
}
|
|
@@ -2426,8 +2416,7 @@ const deserializeAws_restJson1UpdateFlowEntitlementCommandError = async (output,
|
|
|
2426
2416
|
body: await parseBody(output.body, context),
|
|
2427
2417
|
};
|
|
2428
2418
|
let response;
|
|
2429
|
-
|
|
2430
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2431
2420
|
switch (errorCode) {
|
|
2432
2421
|
case "BadRequestException":
|
|
2433
2422
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2449,10 +2438,12 @@ const deserializeAws_restJson1UpdateFlowEntitlementCommandError = async (output,
|
|
|
2449
2438
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2450
2439
|
default:
|
|
2451
2440
|
const parsedBody = parsedOutput.body;
|
|
2441
|
+
const $metadata = deserializeMetadata(output);
|
|
2442
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2452
2443
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2453
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2454
2445
|
$fault: "client",
|
|
2455
|
-
$metadata
|
|
2446
|
+
$metadata,
|
|
2456
2447
|
});
|
|
2457
2448
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2458
2449
|
}
|
|
@@ -2482,8 +2473,7 @@ const deserializeAws_restJson1UpdateFlowMediaStreamCommandError = async (output,
|
|
|
2482
2473
|
body: await parseBody(output.body, context),
|
|
2483
2474
|
};
|
|
2484
2475
|
let response;
|
|
2485
|
-
|
|
2486
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2487
2477
|
switch (errorCode) {
|
|
2488
2478
|
case "BadRequestException":
|
|
2489
2479
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2505,10 +2495,12 @@ const deserializeAws_restJson1UpdateFlowMediaStreamCommandError = async (output,
|
|
|
2505
2495
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2506
2496
|
default:
|
|
2507
2497
|
const parsedBody = parsedOutput.body;
|
|
2498
|
+
const $metadata = deserializeMetadata(output);
|
|
2499
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2508
2500
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2509
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2501
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2510
2502
|
$fault: "client",
|
|
2511
|
-
$metadata
|
|
2503
|
+
$metadata,
|
|
2512
2504
|
});
|
|
2513
2505
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2514
2506
|
}
|
|
@@ -2538,8 +2530,7 @@ const deserializeAws_restJson1UpdateFlowOutputCommandError = async (output, cont
|
|
|
2538
2530
|
body: await parseBody(output.body, context),
|
|
2539
2531
|
};
|
|
2540
2532
|
let response;
|
|
2541
|
-
|
|
2542
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2543
2534
|
switch (errorCode) {
|
|
2544
2535
|
case "BadRequestException":
|
|
2545
2536
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2561,10 +2552,12 @@ const deserializeAws_restJson1UpdateFlowOutputCommandError = async (output, cont
|
|
|
2561
2552
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2562
2553
|
default:
|
|
2563
2554
|
const parsedBody = parsedOutput.body;
|
|
2555
|
+
const $metadata = deserializeMetadata(output);
|
|
2556
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2564
2557
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2565
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2558
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2566
2559
|
$fault: "client",
|
|
2567
|
-
$metadata
|
|
2560
|
+
$metadata,
|
|
2568
2561
|
});
|
|
2569
2562
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2570
2563
|
}
|
|
@@ -2594,8 +2587,7 @@ const deserializeAws_restJson1UpdateFlowSourceCommandError = async (output, cont
|
|
|
2594
2587
|
body: await parseBody(output.body, context),
|
|
2595
2588
|
};
|
|
2596
2589
|
let response;
|
|
2597
|
-
|
|
2598
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2590
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2599
2591
|
switch (errorCode) {
|
|
2600
2592
|
case "BadRequestException":
|
|
2601
2593
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
@@ -2617,10 +2609,12 @@ const deserializeAws_restJson1UpdateFlowSourceCommandError = async (output, cont
|
|
|
2617
2609
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2618
2610
|
default:
|
|
2619
2611
|
const parsedBody = parsedOutput.body;
|
|
2612
|
+
const $metadata = deserializeMetadata(output);
|
|
2613
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2620
2614
|
response = new MediaConnectServiceException_1.MediaConnectServiceException({
|
|
2621
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2622
2616
|
$fault: "client",
|
|
2623
|
-
$metadata
|
|
2617
|
+
$metadata,
|
|
2624
2618
|
});
|
|
2625
2619
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2626
2620
|
}
|
|
@@ -2846,267 +2840,222 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
|
|
|
2846
2840
|
};
|
|
2847
2841
|
const serializeAws_restJson1AddMaintenance = (input, context) => {
|
|
2848
2842
|
return {
|
|
2849
|
-
...(input.MaintenanceDay
|
|
2850
|
-
|
|
2851
|
-
...(input.MaintenanceStartHour !== undefined &&
|
|
2852
|
-
input.MaintenanceStartHour !== null && { maintenanceStartHour: input.MaintenanceStartHour }),
|
|
2843
|
+
...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
|
|
2844
|
+
...(input.MaintenanceStartHour != null && { maintenanceStartHour: input.MaintenanceStartHour }),
|
|
2853
2845
|
};
|
|
2854
2846
|
};
|
|
2855
2847
|
const serializeAws_restJson1AddMediaStreamRequest = (input, context) => {
|
|
2856
2848
|
return {
|
|
2857
|
-
...(input.Attributes
|
|
2858
|
-
input.Attributes !== null && {
|
|
2849
|
+
...(input.Attributes != null && {
|
|
2859
2850
|
attributes: serializeAws_restJson1MediaStreamAttributesRequest(input.Attributes, context),
|
|
2860
2851
|
}),
|
|
2861
|
-
...(input.ClockRate
|
|
2862
|
-
...(input.Description
|
|
2863
|
-
...(input.MediaStreamId
|
|
2864
|
-
...(input.MediaStreamName
|
|
2865
|
-
|
|
2866
|
-
...(input.
|
|
2867
|
-
input.MediaStreamType !== null && { mediaStreamType: input.MediaStreamType }),
|
|
2868
|
-
...(input.VideoFormat !== undefined && input.VideoFormat !== null && { videoFormat: input.VideoFormat }),
|
|
2852
|
+
...(input.ClockRate != null && { clockRate: input.ClockRate }),
|
|
2853
|
+
...(input.Description != null && { description: input.Description }),
|
|
2854
|
+
...(input.MediaStreamId != null && { mediaStreamId: input.MediaStreamId }),
|
|
2855
|
+
...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
|
|
2856
|
+
...(input.MediaStreamType != null && { mediaStreamType: input.MediaStreamType }),
|
|
2857
|
+
...(input.VideoFormat != null && { videoFormat: input.VideoFormat }),
|
|
2869
2858
|
};
|
|
2870
2859
|
};
|
|
2871
2860
|
const serializeAws_restJson1AddOutputRequest = (input, context) => {
|
|
2872
2861
|
return {
|
|
2873
|
-
...(input.CidrAllowList
|
|
2874
|
-
input.CidrAllowList !== null && {
|
|
2862
|
+
...(input.CidrAllowList != null && {
|
|
2875
2863
|
cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
|
|
2876
2864
|
}),
|
|
2877
|
-
...(input.Description
|
|
2878
|
-
...(input.Destination
|
|
2879
|
-
...(input.Encryption
|
|
2880
|
-
|
|
2881
|
-
...(input.
|
|
2882
|
-
...(input.MediaStreamOutputConfigurations !== undefined &&
|
|
2883
|
-
input.MediaStreamOutputConfigurations !== null && {
|
|
2865
|
+
...(input.Description != null && { description: input.Description }),
|
|
2866
|
+
...(input.Destination != null && { destination: input.Destination }),
|
|
2867
|
+
...(input.Encryption != null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) }),
|
|
2868
|
+
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
2869
|
+
...(input.MediaStreamOutputConfigurations != null && {
|
|
2884
2870
|
mediaStreamOutputConfigurations: serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
|
|
2885
2871
|
}),
|
|
2886
|
-
...(input.MinLatency
|
|
2887
|
-
...(input.Name
|
|
2888
|
-
...(input.Port
|
|
2889
|
-
...(input.Protocol
|
|
2890
|
-
...(input.RemoteId
|
|
2891
|
-
...(input.SenderControlPort
|
|
2892
|
-
|
|
2893
|
-
...(input.
|
|
2894
|
-
|
|
2895
|
-
...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
|
|
2896
|
-
...(input.VpcInterfaceAttachment !== undefined &&
|
|
2897
|
-
input.VpcInterfaceAttachment !== null && {
|
|
2872
|
+
...(input.MinLatency != null && { minLatency: input.MinLatency }),
|
|
2873
|
+
...(input.Name != null && { name: input.Name }),
|
|
2874
|
+
...(input.Port != null && { port: input.Port }),
|
|
2875
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
2876
|
+
...(input.RemoteId != null && { remoteId: input.RemoteId }),
|
|
2877
|
+
...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
|
|
2878
|
+
...(input.SmoothingLatency != null && { smoothingLatency: input.SmoothingLatency }),
|
|
2879
|
+
...(input.StreamId != null && { streamId: input.StreamId }),
|
|
2880
|
+
...(input.VpcInterfaceAttachment != null && {
|
|
2898
2881
|
vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
2899
2882
|
}),
|
|
2900
2883
|
};
|
|
2901
2884
|
};
|
|
2902
2885
|
const serializeAws_restJson1DestinationConfigurationRequest = (input, context) => {
|
|
2903
2886
|
return {
|
|
2904
|
-
...(input.DestinationIp
|
|
2905
|
-
...(input.DestinationPort
|
|
2906
|
-
|
|
2907
|
-
...(input.Interface !== undefined &&
|
|
2908
|
-
input.Interface !== null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }),
|
|
2887
|
+
...(input.DestinationIp != null && { destinationIp: input.DestinationIp }),
|
|
2888
|
+
...(input.DestinationPort != null && { destinationPort: input.DestinationPort }),
|
|
2889
|
+
...(input.Interface != null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }),
|
|
2909
2890
|
};
|
|
2910
2891
|
};
|
|
2911
2892
|
const serializeAws_restJson1EncodingParametersRequest = (input, context) => {
|
|
2912
2893
|
return {
|
|
2913
|
-
...(input.CompressionFactor
|
|
2914
|
-
|
|
2915
|
-
...(input.EncoderProfile !== undefined &&
|
|
2916
|
-
input.EncoderProfile !== null && { encoderProfile: input.EncoderProfile }),
|
|
2894
|
+
...(input.CompressionFactor != null && { compressionFactor: (0, smithy_client_1.serializeFloat)(input.CompressionFactor) }),
|
|
2895
|
+
...(input.EncoderProfile != null && { encoderProfile: input.EncoderProfile }),
|
|
2917
2896
|
};
|
|
2918
2897
|
};
|
|
2919
2898
|
const serializeAws_restJson1Encryption = (input, context) => {
|
|
2920
2899
|
return {
|
|
2921
|
-
...(input.Algorithm
|
|
2922
|
-
...(input.ConstantInitializationVector
|
|
2923
|
-
input.ConstantInitializationVector !== null && {
|
|
2900
|
+
...(input.Algorithm != null && { algorithm: input.Algorithm }),
|
|
2901
|
+
...(input.ConstantInitializationVector != null && {
|
|
2924
2902
|
constantInitializationVector: input.ConstantInitializationVector,
|
|
2925
2903
|
}),
|
|
2926
|
-
...(input.DeviceId
|
|
2927
|
-
...(input.KeyType
|
|
2928
|
-
...(input.Region
|
|
2929
|
-
...(input.ResourceId
|
|
2930
|
-
...(input.RoleArn
|
|
2931
|
-
...(input.SecretArn
|
|
2932
|
-
...(input.Url
|
|
2904
|
+
...(input.DeviceId != null && { deviceId: input.DeviceId }),
|
|
2905
|
+
...(input.KeyType != null && { keyType: input.KeyType }),
|
|
2906
|
+
...(input.Region != null && { region: input.Region }),
|
|
2907
|
+
...(input.ResourceId != null && { resourceId: input.ResourceId }),
|
|
2908
|
+
...(input.RoleArn != null && { roleArn: input.RoleArn }),
|
|
2909
|
+
...(input.SecretArn != null && { secretArn: input.SecretArn }),
|
|
2910
|
+
...(input.Url != null && { url: input.Url }),
|
|
2933
2911
|
};
|
|
2934
2912
|
};
|
|
2935
2913
|
const serializeAws_restJson1FailoverConfig = (input, context) => {
|
|
2936
2914
|
return {
|
|
2937
|
-
...(input.FailoverMode
|
|
2938
|
-
...(input.RecoveryWindow
|
|
2939
|
-
|
|
2940
|
-
...(input.SourcePriority !== undefined &&
|
|
2941
|
-
input.SourcePriority !== null && {
|
|
2915
|
+
...(input.FailoverMode != null && { failoverMode: input.FailoverMode }),
|
|
2916
|
+
...(input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow }),
|
|
2917
|
+
...(input.SourcePriority != null && {
|
|
2942
2918
|
sourcePriority: serializeAws_restJson1SourcePriority(input.SourcePriority, context),
|
|
2943
2919
|
}),
|
|
2944
|
-
...(input.State
|
|
2920
|
+
...(input.State != null && { state: input.State }),
|
|
2945
2921
|
};
|
|
2946
2922
|
};
|
|
2947
2923
|
const serializeAws_restJson1FmtpRequest = (input, context) => {
|
|
2948
2924
|
return {
|
|
2949
|
-
...(input.ChannelOrder
|
|
2950
|
-
...(input.Colorimetry
|
|
2951
|
-
...(input.ExactFramerate
|
|
2952
|
-
|
|
2953
|
-
...(input.
|
|
2954
|
-
...(input.
|
|
2955
|
-
...(input.
|
|
2956
|
-
...(input.Tcs !== undefined && input.Tcs !== null && { tcs: input.Tcs }),
|
|
2925
|
+
...(input.ChannelOrder != null && { channelOrder: input.ChannelOrder }),
|
|
2926
|
+
...(input.Colorimetry != null && { colorimetry: input.Colorimetry }),
|
|
2927
|
+
...(input.ExactFramerate != null && { exactFramerate: input.ExactFramerate }),
|
|
2928
|
+
...(input.Par != null && { par: input.Par }),
|
|
2929
|
+
...(input.Range != null && { range: input.Range }),
|
|
2930
|
+
...(input.ScanMode != null && { scanMode: input.ScanMode }),
|
|
2931
|
+
...(input.Tcs != null && { tcs: input.Tcs }),
|
|
2957
2932
|
};
|
|
2958
2933
|
};
|
|
2959
2934
|
const serializeAws_restJson1GrantEntitlementRequest = (input, context) => {
|
|
2960
2935
|
return {
|
|
2961
|
-
...(input.DataTransferSubscriberFeePercent
|
|
2962
|
-
input.DataTransferSubscriberFeePercent !== null && {
|
|
2936
|
+
...(input.DataTransferSubscriberFeePercent != null && {
|
|
2963
2937
|
dataTransferSubscriberFeePercent: input.DataTransferSubscriberFeePercent,
|
|
2964
2938
|
}),
|
|
2965
|
-
...(input.Description
|
|
2966
|
-
...(input.Encryption
|
|
2967
|
-
|
|
2968
|
-
...(input.
|
|
2969
|
-
|
|
2970
|
-
...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
|
|
2971
|
-
...(input.Subscribers !== undefined &&
|
|
2972
|
-
input.Subscribers !== null && {
|
|
2939
|
+
...(input.Description != null && { description: input.Description }),
|
|
2940
|
+
...(input.Encryption != null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) }),
|
|
2941
|
+
...(input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus }),
|
|
2942
|
+
...(input.Name != null && { name: input.Name }),
|
|
2943
|
+
...(input.Subscribers != null && {
|
|
2973
2944
|
subscribers: serializeAws_restJson1__listOf__string(input.Subscribers, context),
|
|
2974
2945
|
}),
|
|
2975
2946
|
};
|
|
2976
2947
|
};
|
|
2977
2948
|
const serializeAws_restJson1InputConfigurationRequest = (input, context) => {
|
|
2978
2949
|
return {
|
|
2979
|
-
...(input.InputPort
|
|
2980
|
-
...(input.Interface
|
|
2981
|
-
input.Interface !== null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }),
|
|
2950
|
+
...(input.InputPort != null && { inputPort: input.InputPort }),
|
|
2951
|
+
...(input.Interface != null && { interface: serializeAws_restJson1InterfaceRequest(input.Interface, context) }),
|
|
2982
2952
|
};
|
|
2983
2953
|
};
|
|
2984
2954
|
const serializeAws_restJson1InterfaceRequest = (input, context) => {
|
|
2985
2955
|
return {
|
|
2986
|
-
...(input.Name
|
|
2956
|
+
...(input.Name != null && { name: input.Name }),
|
|
2987
2957
|
};
|
|
2988
2958
|
};
|
|
2989
2959
|
const serializeAws_restJson1MediaStreamAttributesRequest = (input, context) => {
|
|
2990
2960
|
return {
|
|
2991
|
-
...(input.Fmtp
|
|
2992
|
-
|
|
2993
|
-
...(input.Lang !== undefined && input.Lang !== null && { lang: input.Lang }),
|
|
2961
|
+
...(input.Fmtp != null && { fmtp: serializeAws_restJson1FmtpRequest(input.Fmtp, context) }),
|
|
2962
|
+
...(input.Lang != null && { lang: input.Lang }),
|
|
2994
2963
|
};
|
|
2995
2964
|
};
|
|
2996
2965
|
const serializeAws_restJson1MediaStreamOutputConfigurationRequest = (input, context) => {
|
|
2997
2966
|
return {
|
|
2998
|
-
...(input.DestinationConfigurations
|
|
2999
|
-
input.DestinationConfigurations !== null && {
|
|
2967
|
+
...(input.DestinationConfigurations != null && {
|
|
3000
2968
|
destinationConfigurations: serializeAws_restJson1__listOfDestinationConfigurationRequest(input.DestinationConfigurations, context),
|
|
3001
2969
|
}),
|
|
3002
|
-
...(input.EncodingName
|
|
3003
|
-
...(input.EncodingParameters
|
|
3004
|
-
input.EncodingParameters !== null && {
|
|
2970
|
+
...(input.EncodingName != null && { encodingName: input.EncodingName }),
|
|
2971
|
+
...(input.EncodingParameters != null && {
|
|
3005
2972
|
encodingParameters: serializeAws_restJson1EncodingParametersRequest(input.EncodingParameters, context),
|
|
3006
2973
|
}),
|
|
3007
|
-
...(input.MediaStreamName
|
|
3008
|
-
input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }),
|
|
2974
|
+
...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
|
|
3009
2975
|
};
|
|
3010
2976
|
};
|
|
3011
2977
|
const serializeAws_restJson1MediaStreamSourceConfigurationRequest = (input, context) => {
|
|
3012
2978
|
return {
|
|
3013
|
-
...(input.EncodingName
|
|
3014
|
-
...(input.InputConfigurations
|
|
3015
|
-
input.InputConfigurations !== null && {
|
|
2979
|
+
...(input.EncodingName != null && { encodingName: input.EncodingName }),
|
|
2980
|
+
...(input.InputConfigurations != null && {
|
|
3016
2981
|
inputConfigurations: serializeAws_restJson1__listOfInputConfigurationRequest(input.InputConfigurations, context),
|
|
3017
2982
|
}),
|
|
3018
|
-
...(input.MediaStreamName
|
|
3019
|
-
input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }),
|
|
2983
|
+
...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
|
|
3020
2984
|
};
|
|
3021
2985
|
};
|
|
3022
2986
|
const serializeAws_restJson1SetSourceRequest = (input, context) => {
|
|
3023
2987
|
return {
|
|
3024
|
-
...(input.Decryption
|
|
3025
|
-
|
|
3026
|
-
...(input.
|
|
3027
|
-
...(input.
|
|
3028
|
-
|
|
3029
|
-
...(input.
|
|
3030
|
-
...(input.
|
|
3031
|
-
...(input.
|
|
3032
|
-
...(input.MaxSyncBuffer !== undefined && input.MaxSyncBuffer !== null && { maxSyncBuffer: input.MaxSyncBuffer }),
|
|
3033
|
-
...(input.MediaStreamSourceConfigurations !== undefined &&
|
|
3034
|
-
input.MediaStreamSourceConfigurations !== null && {
|
|
2988
|
+
...(input.Decryption != null && { decryption: serializeAws_restJson1Encryption(input.Decryption, context) }),
|
|
2989
|
+
...(input.Description != null && { description: input.Description }),
|
|
2990
|
+
...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
|
|
2991
|
+
...(input.IngestPort != null && { ingestPort: input.IngestPort }),
|
|
2992
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
2993
|
+
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
2994
|
+
...(input.MaxSyncBuffer != null && { maxSyncBuffer: input.MaxSyncBuffer }),
|
|
2995
|
+
...(input.MediaStreamSourceConfigurations != null && {
|
|
3035
2996
|
mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
3036
2997
|
}),
|
|
3037
|
-
...(input.MinLatency
|
|
3038
|
-
...(input.Name
|
|
3039
|
-
...(input.Protocol
|
|
3040
|
-
...(input.SenderControlPort
|
|
3041
|
-
|
|
3042
|
-
...(input.
|
|
3043
|
-
|
|
3044
|
-
...(input.
|
|
3045
|
-
...(input.VpcInterfaceName !== undefined &&
|
|
3046
|
-
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }),
|
|
3047
|
-
...(input.WhitelistCidr !== undefined && input.WhitelistCidr !== null && { whitelistCidr: input.WhitelistCidr }),
|
|
2998
|
+
...(input.MinLatency != null && { minLatency: input.MinLatency }),
|
|
2999
|
+
...(input.Name != null && { name: input.Name }),
|
|
3000
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
3001
|
+
...(input.SenderControlPort != null && { senderControlPort: input.SenderControlPort }),
|
|
3002
|
+
...(input.SenderIpAddress != null && { senderIpAddress: input.SenderIpAddress }),
|
|
3003
|
+
...(input.StreamId != null && { streamId: input.StreamId }),
|
|
3004
|
+
...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
|
|
3005
|
+
...(input.WhitelistCidr != null && { whitelistCidr: input.WhitelistCidr }),
|
|
3048
3006
|
};
|
|
3049
3007
|
};
|
|
3050
3008
|
const serializeAws_restJson1SourcePriority = (input, context) => {
|
|
3051
3009
|
return {
|
|
3052
|
-
...(input.PrimarySource
|
|
3010
|
+
...(input.PrimarySource != null && { primarySource: input.PrimarySource }),
|
|
3053
3011
|
};
|
|
3054
3012
|
};
|
|
3055
3013
|
const serializeAws_restJson1UpdateEncryption = (input, context) => {
|
|
3056
3014
|
return {
|
|
3057
|
-
...(input.Algorithm
|
|
3058
|
-
...(input.ConstantInitializationVector
|
|
3059
|
-
input.ConstantInitializationVector !== null && {
|
|
3015
|
+
...(input.Algorithm != null && { algorithm: input.Algorithm }),
|
|
3016
|
+
...(input.ConstantInitializationVector != null && {
|
|
3060
3017
|
constantInitializationVector: input.ConstantInitializationVector,
|
|
3061
3018
|
}),
|
|
3062
|
-
...(input.DeviceId
|
|
3063
|
-
...(input.KeyType
|
|
3064
|
-
...(input.Region
|
|
3065
|
-
...(input.ResourceId
|
|
3066
|
-
...(input.RoleArn
|
|
3067
|
-
...(input.SecretArn
|
|
3068
|
-
...(input.Url
|
|
3019
|
+
...(input.DeviceId != null && { deviceId: input.DeviceId }),
|
|
3020
|
+
...(input.KeyType != null && { keyType: input.KeyType }),
|
|
3021
|
+
...(input.Region != null && { region: input.Region }),
|
|
3022
|
+
...(input.ResourceId != null && { resourceId: input.ResourceId }),
|
|
3023
|
+
...(input.RoleArn != null && { roleArn: input.RoleArn }),
|
|
3024
|
+
...(input.SecretArn != null && { secretArn: input.SecretArn }),
|
|
3025
|
+
...(input.Url != null && { url: input.Url }),
|
|
3069
3026
|
};
|
|
3070
3027
|
};
|
|
3071
3028
|
const serializeAws_restJson1UpdateFailoverConfig = (input, context) => {
|
|
3072
3029
|
return {
|
|
3073
|
-
...(input.FailoverMode
|
|
3074
|
-
...(input.RecoveryWindow
|
|
3075
|
-
|
|
3076
|
-
...(input.SourcePriority !== undefined &&
|
|
3077
|
-
input.SourcePriority !== null && {
|
|
3030
|
+
...(input.FailoverMode != null && { failoverMode: input.FailoverMode }),
|
|
3031
|
+
...(input.RecoveryWindow != null && { recoveryWindow: input.RecoveryWindow }),
|
|
3032
|
+
...(input.SourcePriority != null && {
|
|
3078
3033
|
sourcePriority: serializeAws_restJson1SourcePriority(input.SourcePriority, context),
|
|
3079
3034
|
}),
|
|
3080
|
-
...(input.State
|
|
3035
|
+
...(input.State != null && { state: input.State }),
|
|
3081
3036
|
};
|
|
3082
3037
|
};
|
|
3083
3038
|
const serializeAws_restJson1UpdateMaintenance = (input, context) => {
|
|
3084
3039
|
return {
|
|
3085
|
-
...(input.MaintenanceDay
|
|
3086
|
-
|
|
3087
|
-
...(input.
|
|
3088
|
-
input.MaintenanceScheduledDate !== null && { maintenanceScheduledDate: input.MaintenanceScheduledDate }),
|
|
3089
|
-
...(input.MaintenanceStartHour !== undefined &&
|
|
3090
|
-
input.MaintenanceStartHour !== null && { maintenanceStartHour: input.MaintenanceStartHour }),
|
|
3040
|
+
...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
|
|
3041
|
+
...(input.MaintenanceScheduledDate != null && { maintenanceScheduledDate: input.MaintenanceScheduledDate }),
|
|
3042
|
+
...(input.MaintenanceStartHour != null && { maintenanceStartHour: input.MaintenanceStartHour }),
|
|
3091
3043
|
};
|
|
3092
3044
|
};
|
|
3093
3045
|
const serializeAws_restJson1VpcInterfaceAttachment = (input, context) => {
|
|
3094
3046
|
return {
|
|
3095
|
-
...(input.VpcInterfaceName
|
|
3096
|
-
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }),
|
|
3047
|
+
...(input.VpcInterfaceName != null && { vpcInterfaceName: input.VpcInterfaceName }),
|
|
3097
3048
|
};
|
|
3098
3049
|
};
|
|
3099
3050
|
const serializeAws_restJson1VpcInterfaceRequest = (input, context) => {
|
|
3100
3051
|
return {
|
|
3101
|
-
...(input.Name
|
|
3102
|
-
...(input.NetworkInterfaceType
|
|
3103
|
-
|
|
3104
|
-
...(input.
|
|
3105
|
-
...(input.SecurityGroupIds !== undefined &&
|
|
3106
|
-
input.SecurityGroupIds !== null && {
|
|
3052
|
+
...(input.Name != null && { name: input.Name }),
|
|
3053
|
+
...(input.NetworkInterfaceType != null && { networkInterfaceType: input.NetworkInterfaceType }),
|
|
3054
|
+
...(input.RoleArn != null && { roleArn: input.RoleArn }),
|
|
3055
|
+
...(input.SecurityGroupIds != null && {
|
|
3107
3056
|
securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
|
|
3108
3057
|
}),
|
|
3109
|
-
...(input.SubnetId
|
|
3058
|
+
...(input.SubnetId != null && { subnetId: input.SubnetId }),
|
|
3110
3059
|
};
|
|
3111
3060
|
};
|
|
3112
3061
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
@@ -3278,9 +3227,7 @@ const deserializeAws_restJson1DestinationConfiguration = (output, context) => {
|
|
|
3278
3227
|
return {
|
|
3279
3228
|
DestinationIp: (0, smithy_client_1.expectString)(output.destinationIp),
|
|
3280
3229
|
DestinationPort: (0, smithy_client_1.expectInt32)(output.destinationPort),
|
|
3281
|
-
Interface: output.interface
|
|
3282
|
-
? deserializeAws_restJson1Interface(output.interface, context)
|
|
3283
|
-
: undefined,
|
|
3230
|
+
Interface: output.interface != null ? deserializeAws_restJson1Interface(output.interface, context) : undefined,
|
|
3284
3231
|
OutboundIp: (0, smithy_client_1.expectString)(output.outboundIp),
|
|
3285
3232
|
};
|
|
3286
3233
|
};
|
|
@@ -3307,22 +3254,18 @@ const deserializeAws_restJson1Entitlement = (output, context) => {
|
|
|
3307
3254
|
return {
|
|
3308
3255
|
DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
|
|
3309
3256
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
3310
|
-
Encryption: output.encryption
|
|
3311
|
-
? deserializeAws_restJson1Encryption(output.encryption, context)
|
|
3312
|
-
: undefined,
|
|
3257
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1Encryption(output.encryption, context) : undefined,
|
|
3313
3258
|
EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
|
|
3314
3259
|
EntitlementStatus: (0, smithy_client_1.expectString)(output.entitlementStatus),
|
|
3315
3260
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
3316
|
-
Subscribers: output.subscribers
|
|
3317
|
-
? deserializeAws_restJson1__listOf__string(output.subscribers, context)
|
|
3318
|
-
: undefined,
|
|
3261
|
+
Subscribers: output.subscribers != null ? deserializeAws_restJson1__listOf__string(output.subscribers, context) : undefined,
|
|
3319
3262
|
};
|
|
3320
3263
|
};
|
|
3321
3264
|
const deserializeAws_restJson1FailoverConfig = (output, context) => {
|
|
3322
3265
|
return {
|
|
3323
3266
|
FailoverMode: (0, smithy_client_1.expectString)(output.failoverMode),
|
|
3324
3267
|
RecoveryWindow: (0, smithy_client_1.expectInt32)(output.recoveryWindow),
|
|
3325
|
-
SourcePriority: output.sourcePriority
|
|
3268
|
+
SourcePriority: output.sourcePriority != null
|
|
3326
3269
|
? deserializeAws_restJson1SourcePriority(output.sourcePriority, context)
|
|
3327
3270
|
: undefined,
|
|
3328
3271
|
State: (0, smithy_client_1.expectString)(output.state),
|
|
@@ -3333,31 +3276,23 @@ const deserializeAws_restJson1Flow = (output, context) => {
|
|
|
3333
3276
|
AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
|
|
3334
3277
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
3335
3278
|
EgressIp: (0, smithy_client_1.expectString)(output.egressIp),
|
|
3336
|
-
Entitlements: output.entitlements
|
|
3279
|
+
Entitlements: output.entitlements != null
|
|
3337
3280
|
? deserializeAws_restJson1__listOfEntitlement(output.entitlements, context)
|
|
3338
3281
|
: undefined,
|
|
3339
3282
|
FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
|
|
3340
|
-
Maintenance: output.maintenance
|
|
3341
|
-
|
|
3342
|
-
: undefined,
|
|
3343
|
-
MediaStreams: output.mediaStreams !== undefined && output.mediaStreams !== null
|
|
3283
|
+
Maintenance: output.maintenance != null ? deserializeAws_restJson1Maintenance(output.maintenance, context) : undefined,
|
|
3284
|
+
MediaStreams: output.mediaStreams != null
|
|
3344
3285
|
? deserializeAws_restJson1__listOfMediaStream(output.mediaStreams, context)
|
|
3345
3286
|
: undefined,
|
|
3346
3287
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
3347
|
-
Outputs: output.outputs
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
Source: output.source !== undefined && output.source !== null
|
|
3351
|
-
? deserializeAws_restJson1Source(output.source, context)
|
|
3352
|
-
: undefined,
|
|
3353
|
-
SourceFailoverConfig: output.sourceFailoverConfig !== undefined && output.sourceFailoverConfig !== null
|
|
3288
|
+
Outputs: output.outputs != null ? deserializeAws_restJson1__listOfOutput(output.outputs, context) : undefined,
|
|
3289
|
+
Source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
|
|
3290
|
+
SourceFailoverConfig: output.sourceFailoverConfig != null
|
|
3354
3291
|
? deserializeAws_restJson1FailoverConfig(output.sourceFailoverConfig, context)
|
|
3355
3292
|
: undefined,
|
|
3356
|
-
Sources: output.sources
|
|
3357
|
-
? deserializeAws_restJson1__listOfSource(output.sources, context)
|
|
3358
|
-
: undefined,
|
|
3293
|
+
Sources: output.sources != null ? deserializeAws_restJson1__listOfSource(output.sources, context) : undefined,
|
|
3359
3294
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
3360
|
-
VpcInterfaces: output.vpcInterfaces
|
|
3295
|
+
VpcInterfaces: output.vpcInterfaces != null
|
|
3361
3296
|
? deserializeAws_restJson1__listOfVpcInterface(output.vpcInterfaces, context)
|
|
3362
3297
|
: undefined,
|
|
3363
3298
|
};
|
|
@@ -3377,9 +3312,7 @@ const deserializeAws_restJson1InputConfiguration = (output, context) => {
|
|
|
3377
3312
|
return {
|
|
3378
3313
|
InputIp: (0, smithy_client_1.expectString)(output.inputIp),
|
|
3379
3314
|
InputPort: (0, smithy_client_1.expectInt32)(output.inputPort),
|
|
3380
|
-
Interface: output.interface
|
|
3381
|
-
? deserializeAws_restJson1Interface(output.interface, context)
|
|
3382
|
-
: undefined,
|
|
3315
|
+
Interface: output.interface != null ? deserializeAws_restJson1Interface(output.interface, context) : undefined,
|
|
3383
3316
|
};
|
|
3384
3317
|
};
|
|
3385
3318
|
const deserializeAws_restJson1Interface = (output, context) => {
|
|
@@ -3399,9 +3332,7 @@ const deserializeAws_restJson1ListedFlow = (output, context) => {
|
|
|
3399
3332
|
AvailabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
|
|
3400
3333
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
3401
3334
|
FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
|
|
3402
|
-
Maintenance: output.maintenance
|
|
3403
|
-
? deserializeAws_restJson1Maintenance(output.maintenance, context)
|
|
3404
|
-
: undefined,
|
|
3335
|
+
Maintenance: output.maintenance != null ? deserializeAws_restJson1Maintenance(output.maintenance, context) : undefined,
|
|
3405
3336
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
3406
3337
|
SourceType: (0, smithy_client_1.expectString)(output.sourceType),
|
|
3407
3338
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -3417,9 +3348,7 @@ const deserializeAws_restJson1Maintenance = (output, context) => {
|
|
|
3417
3348
|
};
|
|
3418
3349
|
const deserializeAws_restJson1MediaStream = (output, context) => {
|
|
3419
3350
|
return {
|
|
3420
|
-
Attributes: output.attributes
|
|
3421
|
-
? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context)
|
|
3422
|
-
: undefined,
|
|
3351
|
+
Attributes: output.attributes != null ? deserializeAws_restJson1MediaStreamAttributes(output.attributes, context) : undefined,
|
|
3423
3352
|
ClockRate: (0, smithy_client_1.expectInt32)(output.clockRate),
|
|
3424
3353
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
3425
3354
|
Fmt: (0, smithy_client_1.expectInt32)(output.fmt),
|
|
@@ -3431,19 +3360,17 @@ const deserializeAws_restJson1MediaStream = (output, context) => {
|
|
|
3431
3360
|
};
|
|
3432
3361
|
const deserializeAws_restJson1MediaStreamAttributes = (output, context) => {
|
|
3433
3362
|
return {
|
|
3434
|
-
Fmtp: output.fmtp
|
|
3435
|
-
? deserializeAws_restJson1Fmtp(output.fmtp, context)
|
|
3436
|
-
: undefined,
|
|
3363
|
+
Fmtp: output.fmtp != null ? deserializeAws_restJson1Fmtp(output.fmtp, context) : undefined,
|
|
3437
3364
|
Lang: (0, smithy_client_1.expectString)(output.lang),
|
|
3438
3365
|
};
|
|
3439
3366
|
};
|
|
3440
3367
|
const deserializeAws_restJson1MediaStreamOutputConfiguration = (output, context) => {
|
|
3441
3368
|
return {
|
|
3442
|
-
DestinationConfigurations: output.destinationConfigurations
|
|
3369
|
+
DestinationConfigurations: output.destinationConfigurations != null
|
|
3443
3370
|
? deserializeAws_restJson1__listOfDestinationConfiguration(output.destinationConfigurations, context)
|
|
3444
3371
|
: undefined,
|
|
3445
3372
|
EncodingName: (0, smithy_client_1.expectString)(output.encodingName),
|
|
3446
|
-
EncodingParameters: output.encodingParameters
|
|
3373
|
+
EncodingParameters: output.encodingParameters != null
|
|
3447
3374
|
? deserializeAws_restJson1EncodingParameters(output.encodingParameters, context)
|
|
3448
3375
|
: undefined,
|
|
3449
3376
|
MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
|
|
@@ -3452,7 +3379,7 @@ const deserializeAws_restJson1MediaStreamOutputConfiguration = (output, context)
|
|
|
3452
3379
|
const deserializeAws_restJson1MediaStreamSourceConfiguration = (output, context) => {
|
|
3453
3380
|
return {
|
|
3454
3381
|
EncodingName: (0, smithy_client_1.expectString)(output.encodingName),
|
|
3455
|
-
InputConfigurations: output.inputConfigurations
|
|
3382
|
+
InputConfigurations: output.inputConfigurations != null
|
|
3456
3383
|
? deserializeAws_restJson1__listOfInputConfiguration(output.inputConfigurations, context)
|
|
3457
3384
|
: undefined,
|
|
3458
3385
|
MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
|
|
@@ -3460,9 +3387,7 @@ const deserializeAws_restJson1MediaStreamSourceConfiguration = (output, context)
|
|
|
3460
3387
|
};
|
|
3461
3388
|
const deserializeAws_restJson1Messages = (output, context) => {
|
|
3462
3389
|
return {
|
|
3463
|
-
Errors: output.errors
|
|
3464
|
-
? deserializeAws_restJson1__listOf__string(output.errors, context)
|
|
3465
|
-
: undefined,
|
|
3390
|
+
Errors: output.errors != null ? deserializeAws_restJson1__listOf__string(output.errors, context) : undefined,
|
|
3466
3391
|
};
|
|
3467
3392
|
};
|
|
3468
3393
|
const deserializeAws_restJson1Offering = (output, context) => {
|
|
@@ -3474,7 +3399,7 @@ const deserializeAws_restJson1Offering = (output, context) => {
|
|
|
3474
3399
|
OfferingDescription: (0, smithy_client_1.expectString)(output.offeringDescription),
|
|
3475
3400
|
PricePerUnit: (0, smithy_client_1.expectString)(output.pricePerUnit),
|
|
3476
3401
|
PriceUnits: (0, smithy_client_1.expectString)(output.priceUnits),
|
|
3477
|
-
ResourceSpecification: output.resourceSpecification
|
|
3402
|
+
ResourceSpecification: output.resourceSpecification != null
|
|
3478
3403
|
? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
|
|
3479
3404
|
: undefined,
|
|
3480
3405
|
};
|
|
@@ -3484,22 +3409,18 @@ const deserializeAws_restJson1Output = (output, context) => {
|
|
|
3484
3409
|
DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
|
|
3485
3410
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
3486
3411
|
Destination: (0, smithy_client_1.expectString)(output.destination),
|
|
3487
|
-
Encryption: output.encryption
|
|
3488
|
-
? deserializeAws_restJson1Encryption(output.encryption, context)
|
|
3489
|
-
: undefined,
|
|
3412
|
+
Encryption: output.encryption != null ? deserializeAws_restJson1Encryption(output.encryption, context) : undefined,
|
|
3490
3413
|
EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
|
|
3491
3414
|
ListenerAddress: (0, smithy_client_1.expectString)(output.listenerAddress),
|
|
3492
3415
|
MediaLiveInputArn: (0, smithy_client_1.expectString)(output.mediaLiveInputArn),
|
|
3493
|
-
MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations
|
|
3416
|
+
MediaStreamOutputConfigurations: output.mediaStreamOutputConfigurations != null
|
|
3494
3417
|
? deserializeAws_restJson1__listOfMediaStreamOutputConfiguration(output.mediaStreamOutputConfigurations, context)
|
|
3495
3418
|
: undefined,
|
|
3496
3419
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
3497
3420
|
OutputArn: (0, smithy_client_1.expectString)(output.outputArn),
|
|
3498
3421
|
Port: (0, smithy_client_1.expectInt32)(output.port),
|
|
3499
|
-
Transport: output.transport
|
|
3500
|
-
|
|
3501
|
-
: undefined,
|
|
3502
|
-
VpcInterfaceAttachment: output.vpcInterfaceAttachment !== undefined && output.vpcInterfaceAttachment !== null
|
|
3422
|
+
Transport: output.transport != null ? deserializeAws_restJson1Transport(output.transport, context) : undefined,
|
|
3423
|
+
VpcInterfaceAttachment: output.vpcInterfaceAttachment != null
|
|
3503
3424
|
? deserializeAws_restJson1VpcInterfaceAttachment(output.vpcInterfaceAttachment, context)
|
|
3504
3425
|
: undefined,
|
|
3505
3426
|
};
|
|
@@ -3517,7 +3438,7 @@ const deserializeAws_restJson1Reservation = (output, context) => {
|
|
|
3517
3438
|
ReservationArn: (0, smithy_client_1.expectString)(output.reservationArn),
|
|
3518
3439
|
ReservationName: (0, smithy_client_1.expectString)(output.reservationName),
|
|
3519
3440
|
ReservationState: (0, smithy_client_1.expectString)(output.reservationState),
|
|
3520
|
-
ResourceSpecification: output.resourceSpecification
|
|
3441
|
+
ResourceSpecification: output.resourceSpecification != null
|
|
3521
3442
|
? deserializeAws_restJson1ResourceSpecification(output.resourceSpecification, context)
|
|
3522
3443
|
: undefined,
|
|
3523
3444
|
Start: (0, smithy_client_1.expectString)(output.start),
|
|
@@ -3532,23 +3453,19 @@ const deserializeAws_restJson1ResourceSpecification = (output, context) => {
|
|
|
3532
3453
|
const deserializeAws_restJson1Source = (output, context) => {
|
|
3533
3454
|
return {
|
|
3534
3455
|
DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
|
|
3535
|
-
Decryption: output.decryption
|
|
3536
|
-
? deserializeAws_restJson1Encryption(output.decryption, context)
|
|
3537
|
-
: undefined,
|
|
3456
|
+
Decryption: output.decryption != null ? deserializeAws_restJson1Encryption(output.decryption, context) : undefined,
|
|
3538
3457
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
3539
3458
|
EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
|
|
3540
3459
|
IngestIp: (0, smithy_client_1.expectString)(output.ingestIp),
|
|
3541
3460
|
IngestPort: (0, smithy_client_1.expectInt32)(output.ingestPort),
|
|
3542
|
-
MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations
|
|
3461
|
+
MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations != null
|
|
3543
3462
|
? deserializeAws_restJson1__listOfMediaStreamSourceConfiguration(output.mediaStreamSourceConfigurations, context)
|
|
3544
3463
|
: undefined,
|
|
3545
3464
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
3546
3465
|
SenderControlPort: (0, smithy_client_1.expectInt32)(output.senderControlPort),
|
|
3547
3466
|
SenderIpAddress: (0, smithy_client_1.expectString)(output.senderIpAddress),
|
|
3548
3467
|
SourceArn: (0, smithy_client_1.expectString)(output.sourceArn),
|
|
3549
|
-
Transport: output.transport
|
|
3550
|
-
? deserializeAws_restJson1Transport(output.transport, context)
|
|
3551
|
-
: undefined,
|
|
3468
|
+
Transport: output.transport != null ? deserializeAws_restJson1Transport(output.transport, context) : undefined,
|
|
3552
3469
|
VpcInterfaceName: (0, smithy_client_1.expectString)(output.vpcInterfaceName),
|
|
3553
3470
|
WhitelistCidr: (0, smithy_client_1.expectString)(output.whitelistCidr),
|
|
3554
3471
|
};
|
|
@@ -3560,7 +3477,7 @@ const deserializeAws_restJson1SourcePriority = (output, context) => {
|
|
|
3560
3477
|
};
|
|
3561
3478
|
const deserializeAws_restJson1Transport = (output, context) => {
|
|
3562
3479
|
return {
|
|
3563
|
-
CidrAllowList: output.cidrAllowList
|
|
3480
|
+
CidrAllowList: output.cidrAllowList != null
|
|
3564
3481
|
? deserializeAws_restJson1__listOf__string(output.cidrAllowList, context)
|
|
3565
3482
|
: undefined,
|
|
3566
3483
|
MaxBitrate: (0, smithy_client_1.expectInt32)(output.maxBitrate),
|
|
@@ -3578,12 +3495,12 @@ const deserializeAws_restJson1Transport = (output, context) => {
|
|
|
3578
3495
|
const deserializeAws_restJson1VpcInterface = (output, context) => {
|
|
3579
3496
|
return {
|
|
3580
3497
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
3581
|
-
NetworkInterfaceIds: output.networkInterfaceIds
|
|
3498
|
+
NetworkInterfaceIds: output.networkInterfaceIds != null
|
|
3582
3499
|
? deserializeAws_restJson1__listOf__string(output.networkInterfaceIds, context)
|
|
3583
3500
|
: undefined,
|
|
3584
3501
|
NetworkInterfaceType: (0, smithy_client_1.expectString)(output.networkInterfaceType),
|
|
3585
3502
|
RoleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
3586
|
-
SecurityGroupIds: output.securityGroupIds
|
|
3503
|
+
SecurityGroupIds: output.securityGroupIds != null
|
|
3587
3504
|
? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
|
|
3588
3505
|
: undefined,
|
|
3589
3506
|
SubnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
@@ -3643,5 +3560,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3643
3560
|
if (data["__type"] !== undefined) {
|
|
3644
3561
|
return sanitizeErrorCode(data["__type"]);
|
|
3645
3562
|
}
|
|
3646
|
-
return "";
|
|
3647
3563
|
};
|