@aws-sdk/client-mediaconnect 3.312.0 → 3.313.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/README.md +167 -7
- package/dist-cjs/MediaConnect.js +300 -0
- package/dist-cjs/commands/AddBridgeOutputsCommand.js +45 -0
- package/dist-cjs/commands/AddBridgeSourcesCommand.js +45 -0
- package/dist-cjs/commands/CreateBridgeCommand.js +45 -0
- package/dist-cjs/commands/CreateGatewayCommand.js +45 -0
- package/dist-cjs/commands/DeleteBridgeCommand.js +45 -0
- package/dist-cjs/commands/DeleteGatewayCommand.js +45 -0
- package/dist-cjs/commands/DeregisterGatewayInstanceCommand.js +45 -0
- package/dist-cjs/commands/DescribeBridgeCommand.js +45 -0
- package/dist-cjs/commands/DescribeGatewayCommand.js +45 -0
- package/dist-cjs/commands/DescribeGatewayInstanceCommand.js +45 -0
- package/dist-cjs/commands/ListBridgesCommand.js +45 -0
- package/dist-cjs/commands/ListGatewayInstancesCommand.js +45 -0
- package/dist-cjs/commands/ListGatewaysCommand.js +45 -0
- package/dist-cjs/commands/RemoveBridgeOutputCommand.js +45 -0
- package/dist-cjs/commands/RemoveBridgeSourceCommand.js +45 -0
- package/dist-cjs/commands/UpdateBridgeCommand.js +45 -0
- package/dist-cjs/commands/UpdateBridgeOutputCommand.js +45 -0
- package/dist-cjs/commands/UpdateBridgeSourceCommand.js +45 -0
- package/dist-cjs/commands/UpdateBridgeStateCommand.js +45 -0
- package/dist-cjs/commands/UpdateGatewayInstanceCommand.js +45 -0
- package/dist-cjs/commands/index.js +20 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +106 -20
- package/dist-cjs/pagination/ListBridgesPaginator.js +29 -0
- package/dist-cjs/pagination/ListGatewayInstancesPaginator.js +29 -0
- package/dist-cjs/pagination/ListGatewaysPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2045 -140
- package/dist-es/MediaConnect.js +300 -0
- package/dist-es/commands/AddBridgeOutputsCommand.js +41 -0
- package/dist-es/commands/AddBridgeSourcesCommand.js +41 -0
- package/dist-es/commands/CreateBridgeCommand.js +41 -0
- package/dist-es/commands/CreateGatewayCommand.js +41 -0
- package/dist-es/commands/DeleteBridgeCommand.js +41 -0
- package/dist-es/commands/DeleteGatewayCommand.js +41 -0
- package/dist-es/commands/DeregisterGatewayInstanceCommand.js +41 -0
- package/dist-es/commands/DescribeBridgeCommand.js +41 -0
- package/dist-es/commands/DescribeGatewayCommand.js +41 -0
- package/dist-es/commands/DescribeGatewayInstanceCommand.js +41 -0
- package/dist-es/commands/ListBridgesCommand.js +41 -0
- package/dist-es/commands/ListGatewayInstancesCommand.js +41 -0
- package/dist-es/commands/ListGatewaysCommand.js +41 -0
- package/dist-es/commands/RemoveBridgeOutputCommand.js +41 -0
- package/dist-es/commands/RemoveBridgeSourceCommand.js +41 -0
- package/dist-es/commands/UpdateBridgeCommand.js +41 -0
- package/dist-es/commands/UpdateBridgeOutputCommand.js +41 -0
- package/dist-es/commands/UpdateBridgeSourceCommand.js +41 -0
- package/dist-es/commands/UpdateBridgeStateCommand.js +41 -0
- package/dist-es/commands/UpdateGatewayInstanceCommand.js +41 -0
- package/dist-es/commands/index.js +20 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +102 -19
- package/dist-es/pagination/ListBridgesPaginator.js +25 -0
- package/dist-es/pagination/ListGatewayInstancesPaginator.js +25 -0
- package/dist-es/pagination/ListGatewaysPaginator.js +25 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +2002 -137
- package/dist-types/MediaConnect.d.ts +160 -0
- package/dist-types/MediaConnectClient.d.ts +22 -2
- package/dist-types/commands/AddBridgeOutputsCommand.d.ts +96 -0
- package/dist-types/commands/AddBridgeSourcesCommand.d.ts +102 -0
- package/dist-types/commands/AddFlowOutputsCommand.d.ts +1 -1
- package/dist-types/commands/AddFlowSourcesCommand.d.ts +7 -1
- package/dist-types/commands/CreateBridgeCommand.d.ts +130 -0
- package/dist-types/commands/CreateFlowCommand.d.ts +15 -3
- package/dist-types/commands/CreateGatewayCommand.d.ts +93 -0
- package/dist-types/commands/DeleteBridgeCommand.d.ts +84 -0
- package/dist-types/commands/DeleteGatewayCommand.d.ts +84 -0
- package/dist-types/commands/DeregisterGatewayInstanceCommand.d.ts +85 -0
- package/dist-types/commands/DescribeBridgeCommand.d.ts +84 -0
- package/dist-types/commands/DescribeGatewayCommand.d.ts +84 -0
- package/dist-types/commands/DescribeGatewayInstanceCommand.d.ts +84 -0
- package/dist-types/commands/ListBridgesCommand.d.ts +80 -0
- package/dist-types/commands/ListGatewayInstancesCommand.d.ts +80 -0
- package/dist-types/commands/ListGatewaysCommand.d.ts +79 -0
- package/dist-types/commands/RemoveBridgeOutputCommand.d.ts +85 -0
- package/dist-types/commands/RemoveBridgeSourceCommand.d.ts +85 -0
- package/dist-types/commands/UpdateBridgeCommand.d.ts +99 -0
- package/dist-types/commands/UpdateBridgeOutputCommand.d.ts +92 -0
- package/dist-types/commands/UpdateBridgeSourceCommand.d.ts +97 -0
- package/dist-types/commands/UpdateBridgeStateCommand.d.ts +85 -0
- package/dist-types/commands/UpdateFlowOutputCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFlowSourceCommand.d.ts +7 -1
- package/dist-types/commands/UpdateGatewayInstanceCommand.d.ts +85 -0
- package/dist-types/commands/index.d.ts +20 -0
- package/dist-types/models/models_0.d.ts +1340 -85
- package/dist-types/pagination/ListBridgesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGatewayInstancesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListGatewaysPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +180 -0
- package/dist-types/ts3.4/MediaConnect.d.ts +340 -0
- package/dist-types/ts3.4/MediaConnectClient.d.ts +122 -2
- package/dist-types/ts3.4/commands/AddBridgeOutputsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/AddBridgeSourcesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateBridgeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateGatewayCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteBridgeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteGatewayCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeregisterGatewayInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeBridgeCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeGatewayCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeGatewayInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListBridgesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListGatewayInstancesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListGatewaysCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/RemoveBridgeOutputCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RemoveBridgeSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateBridgeCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateBridgeOutputCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateBridgeSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateBridgeStateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateGatewayInstanceCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -0
- package/dist-types/ts3.4/models/models_0.d.ts +442 -33
- package/dist-types/ts3.4/pagination/ListBridgesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGatewayInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListGatewaysPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +240 -0
- package/package.json +1 -1
|
@@ -1,11 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateFlowSourceCommand = exports.de_UpdateFlowOutputCommand = exports.de_UpdateFlowMediaStreamCommand = exports.de_UpdateFlowEntitlementCommand = exports.de_UpdateFlowCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopFlowCommand = exports.de_StartFlowCommand = exports.de_RevokeFlowEntitlementCommand = void 0;
|
|
3
|
+
exports.se_UpdateGatewayInstanceCommand = exports.se_UpdateFlowSourceCommand = exports.se_UpdateFlowOutputCommand = exports.se_UpdateFlowMediaStreamCommand = exports.se_UpdateFlowEntitlementCommand = exports.se_UpdateFlowCommand = exports.se_UpdateBridgeStateCommand = exports.se_UpdateBridgeSourceCommand = exports.se_UpdateBridgeOutputCommand = exports.se_UpdateBridgeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopFlowCommand = exports.se_StartFlowCommand = exports.se_RevokeFlowEntitlementCommand = exports.se_RemoveFlowVpcInterfaceCommand = exports.se_RemoveFlowSourceCommand = exports.se_RemoveFlowOutputCommand = exports.se_RemoveFlowMediaStreamCommand = exports.se_RemoveBridgeSourceCommand = exports.se_RemoveBridgeOutputCommand = exports.se_PurchaseOfferingCommand = exports.se_ListTagsForResourceCommand = exports.se_ListReservationsCommand = exports.se_ListOfferingsCommand = exports.se_ListGatewaysCommand = exports.se_ListGatewayInstancesCommand = exports.se_ListFlowsCommand = exports.se_ListEntitlementsCommand = exports.se_ListBridgesCommand = exports.se_GrantFlowEntitlementsCommand = exports.se_DescribeReservationCommand = exports.se_DescribeOfferingCommand = exports.se_DescribeGatewayInstanceCommand = exports.se_DescribeGatewayCommand = exports.se_DescribeFlowCommand = exports.se_DescribeBridgeCommand = exports.se_DeregisterGatewayInstanceCommand = exports.se_DeleteGatewayCommand = exports.se_DeleteFlowCommand = exports.se_DeleteBridgeCommand = exports.se_CreateGatewayCommand = exports.se_CreateFlowCommand = exports.se_CreateBridgeCommand = exports.se_AddFlowVpcInterfacesCommand = exports.se_AddFlowSourcesCommand = exports.se_AddFlowOutputsCommand = exports.se_AddFlowMediaStreamsCommand = exports.se_AddBridgeSourcesCommand = exports.se_AddBridgeOutputsCommand = void 0;
|
|
4
|
+
exports.de_UpdateGatewayInstanceCommand = exports.de_UpdateFlowSourceCommand = exports.de_UpdateFlowOutputCommand = exports.de_UpdateFlowMediaStreamCommand = exports.de_UpdateFlowEntitlementCommand = exports.de_UpdateFlowCommand = exports.de_UpdateBridgeStateCommand = exports.de_UpdateBridgeSourceCommand = exports.de_UpdateBridgeOutputCommand = exports.de_UpdateBridgeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopFlowCommand = exports.de_StartFlowCommand = exports.de_RevokeFlowEntitlementCommand = exports.de_RemoveFlowVpcInterfaceCommand = exports.de_RemoveFlowSourceCommand = exports.de_RemoveFlowOutputCommand = exports.de_RemoveFlowMediaStreamCommand = exports.de_RemoveBridgeSourceCommand = exports.de_RemoveBridgeOutputCommand = exports.de_PurchaseOfferingCommand = exports.de_ListTagsForResourceCommand = exports.de_ListReservationsCommand = exports.de_ListOfferingsCommand = exports.de_ListGatewaysCommand = exports.de_ListGatewayInstancesCommand = exports.de_ListFlowsCommand = exports.de_ListEntitlementsCommand = exports.de_ListBridgesCommand = exports.de_GrantFlowEntitlementsCommand = exports.de_DescribeReservationCommand = exports.de_DescribeOfferingCommand = exports.de_DescribeGatewayInstanceCommand = exports.de_DescribeGatewayCommand = exports.de_DescribeFlowCommand = exports.de_DescribeBridgeCommand = exports.de_DeregisterGatewayInstanceCommand = exports.de_DeleteGatewayCommand = exports.de_DeleteFlowCommand = exports.de_DeleteBridgeCommand = exports.de_CreateGatewayCommand = exports.de_CreateFlowCommand = exports.de_CreateBridgeCommand = exports.de_AddFlowVpcInterfacesCommand = exports.de_AddFlowSourcesCommand = exports.de_AddFlowOutputsCommand = exports.de_AddFlowMediaStreamsCommand = exports.de_AddBridgeSourcesCommand = exports.de_AddBridgeOutputsCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const MediaConnectServiceException_1 = require("../models/MediaConnectServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const se_AddBridgeOutputsCommand = async (input, context) => {
|
|
10
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
|
+
const headers = {
|
|
12
|
+
"content-type": "application/json",
|
|
13
|
+
};
|
|
14
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/outputs";
|
|
15
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
16
|
+
let body;
|
|
17
|
+
body = JSON.stringify({
|
|
18
|
+
...(input.Outputs != null && { outputs: se___listOfAddBridgeOutputRequest(input.Outputs, context) }),
|
|
19
|
+
});
|
|
20
|
+
return new protocol_http_1.HttpRequest({
|
|
21
|
+
protocol,
|
|
22
|
+
hostname,
|
|
23
|
+
port,
|
|
24
|
+
method: "POST",
|
|
25
|
+
headers,
|
|
26
|
+
path: resolvedPath,
|
|
27
|
+
body,
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.se_AddBridgeOutputsCommand = se_AddBridgeOutputsCommand;
|
|
31
|
+
const se_AddBridgeSourcesCommand = async (input, context) => {
|
|
32
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/json",
|
|
35
|
+
};
|
|
36
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/sources";
|
|
37
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify({
|
|
40
|
+
...(input.Sources != null && { sources: se___listOfAddBridgeSourceRequest(input.Sources, context) }),
|
|
41
|
+
});
|
|
42
|
+
return new protocol_http_1.HttpRequest({
|
|
43
|
+
protocol,
|
|
44
|
+
hostname,
|
|
45
|
+
port,
|
|
46
|
+
method: "POST",
|
|
47
|
+
headers,
|
|
48
|
+
path: resolvedPath,
|
|
49
|
+
body,
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
exports.se_AddBridgeSourcesCommand = se_AddBridgeSourcesCommand;
|
|
9
53
|
const se_AddFlowMediaStreamsCommand = async (input, context) => {
|
|
10
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
55
|
const headers = {
|
|
@@ -94,6 +138,39 @@ const se_AddFlowVpcInterfacesCommand = async (input, context) => {
|
|
|
94
138
|
});
|
|
95
139
|
};
|
|
96
140
|
exports.se_AddFlowVpcInterfacesCommand = se_AddFlowVpcInterfacesCommand;
|
|
141
|
+
const se_CreateBridgeCommand = async (input, context) => {
|
|
142
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
143
|
+
const headers = {
|
|
144
|
+
"content-type": "application/json",
|
|
145
|
+
};
|
|
146
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
|
|
147
|
+
let body;
|
|
148
|
+
body = JSON.stringify({
|
|
149
|
+
...(input.EgressGatewayBridge != null && {
|
|
150
|
+
egressGatewayBridge: se_AddEgressGatewayBridgeRequest(input.EgressGatewayBridge, context),
|
|
151
|
+
}),
|
|
152
|
+
...(input.IngressGatewayBridge != null && {
|
|
153
|
+
ingressGatewayBridge: se_AddIngressGatewayBridgeRequest(input.IngressGatewayBridge, context),
|
|
154
|
+
}),
|
|
155
|
+
...(input.Name != null && { name: input.Name }),
|
|
156
|
+
...(input.Outputs != null && { outputs: se___listOfAddBridgeOutputRequest(input.Outputs, context) }),
|
|
157
|
+
...(input.PlacementArn != null && { placementArn: input.PlacementArn }),
|
|
158
|
+
...(input.SourceFailoverConfig != null && {
|
|
159
|
+
sourceFailoverConfig: se_FailoverConfig(input.SourceFailoverConfig, context),
|
|
160
|
+
}),
|
|
161
|
+
...(input.Sources != null && { sources: se___listOfAddBridgeSourceRequest(input.Sources, context) }),
|
|
162
|
+
});
|
|
163
|
+
return new protocol_http_1.HttpRequest({
|
|
164
|
+
protocol,
|
|
165
|
+
hostname,
|
|
166
|
+
port,
|
|
167
|
+
method: "POST",
|
|
168
|
+
headers,
|
|
169
|
+
path: resolvedPath,
|
|
170
|
+
body,
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
exports.se_CreateBridgeCommand = se_CreateBridgeCommand;
|
|
97
174
|
const se_CreateFlowCommand = async (input, context) => {
|
|
98
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
99
176
|
const headers = {
|
|
@@ -128,6 +205,46 @@ const se_CreateFlowCommand = async (input, context) => {
|
|
|
128
205
|
});
|
|
129
206
|
};
|
|
130
207
|
exports.se_CreateFlowCommand = se_CreateFlowCommand;
|
|
208
|
+
const se_CreateGatewayCommand = async (input, context) => {
|
|
209
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
210
|
+
const headers = {
|
|
211
|
+
"content-type": "application/json",
|
|
212
|
+
};
|
|
213
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
|
|
214
|
+
let body;
|
|
215
|
+
body = JSON.stringify({
|
|
216
|
+
...(input.EgressCidrBlocks != null && { egressCidrBlocks: se___listOf__string(input.EgressCidrBlocks, context) }),
|
|
217
|
+
...(input.Name != null && { name: input.Name }),
|
|
218
|
+
...(input.Networks != null && { networks: se___listOfGatewayNetwork(input.Networks, context) }),
|
|
219
|
+
});
|
|
220
|
+
return new protocol_http_1.HttpRequest({
|
|
221
|
+
protocol,
|
|
222
|
+
hostname,
|
|
223
|
+
port,
|
|
224
|
+
method: "POST",
|
|
225
|
+
headers,
|
|
226
|
+
path: resolvedPath,
|
|
227
|
+
body,
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
exports.se_CreateGatewayCommand = se_CreateGatewayCommand;
|
|
231
|
+
const se_DeleteBridgeCommand = async (input, context) => {
|
|
232
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
233
|
+
const headers = {};
|
|
234
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
|
|
235
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
236
|
+
let body;
|
|
237
|
+
return new protocol_http_1.HttpRequest({
|
|
238
|
+
protocol,
|
|
239
|
+
hostname,
|
|
240
|
+
port,
|
|
241
|
+
method: "DELETE",
|
|
242
|
+
headers,
|
|
243
|
+
path: resolvedPath,
|
|
244
|
+
body,
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
exports.se_DeleteBridgeCommand = se_DeleteBridgeCommand;
|
|
131
248
|
const se_DeleteFlowCommand = async (input, context) => {
|
|
132
249
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
133
250
|
const headers = {};
|
|
@@ -145,6 +262,62 @@ const se_DeleteFlowCommand = async (input, context) => {
|
|
|
145
262
|
});
|
|
146
263
|
};
|
|
147
264
|
exports.se_DeleteFlowCommand = se_DeleteFlowCommand;
|
|
265
|
+
const se_DeleteGatewayCommand = async (input, context) => {
|
|
266
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
267
|
+
const headers = {};
|
|
268
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}";
|
|
269
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
|
|
270
|
+
let body;
|
|
271
|
+
return new protocol_http_1.HttpRequest({
|
|
272
|
+
protocol,
|
|
273
|
+
hostname,
|
|
274
|
+
port,
|
|
275
|
+
method: "DELETE",
|
|
276
|
+
headers,
|
|
277
|
+
path: resolvedPath,
|
|
278
|
+
body,
|
|
279
|
+
});
|
|
280
|
+
};
|
|
281
|
+
exports.se_DeleteGatewayCommand = se_DeleteGatewayCommand;
|
|
282
|
+
const se_DeregisterGatewayInstanceCommand = async (input, context) => {
|
|
283
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
284
|
+
const headers = {};
|
|
285
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
286
|
+
"/v1/gateway-instances/{GatewayInstanceArn}";
|
|
287
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
|
|
288
|
+
const query = map({
|
|
289
|
+
force: [() => input.Force !== void 0, () => input.Force.toString()],
|
|
290
|
+
});
|
|
291
|
+
let body;
|
|
292
|
+
return new protocol_http_1.HttpRequest({
|
|
293
|
+
protocol,
|
|
294
|
+
hostname,
|
|
295
|
+
port,
|
|
296
|
+
method: "DELETE",
|
|
297
|
+
headers,
|
|
298
|
+
path: resolvedPath,
|
|
299
|
+
query,
|
|
300
|
+
body,
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
exports.se_DeregisterGatewayInstanceCommand = se_DeregisterGatewayInstanceCommand;
|
|
304
|
+
const se_DescribeBridgeCommand = async (input, context) => {
|
|
305
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
306
|
+
const headers = {};
|
|
307
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
|
|
308
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
309
|
+
let body;
|
|
310
|
+
return new protocol_http_1.HttpRequest({
|
|
311
|
+
protocol,
|
|
312
|
+
hostname,
|
|
313
|
+
port,
|
|
314
|
+
method: "GET",
|
|
315
|
+
headers,
|
|
316
|
+
path: resolvedPath,
|
|
317
|
+
body,
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
exports.se_DescribeBridgeCommand = se_DescribeBridgeCommand;
|
|
148
321
|
const se_DescribeFlowCommand = async (input, context) => {
|
|
149
322
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
323
|
const headers = {};
|
|
@@ -162,6 +335,41 @@ const se_DescribeFlowCommand = async (input, context) => {
|
|
|
162
335
|
});
|
|
163
336
|
};
|
|
164
337
|
exports.se_DescribeFlowCommand = se_DescribeFlowCommand;
|
|
338
|
+
const se_DescribeGatewayCommand = async (input, context) => {
|
|
339
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
340
|
+
const headers = {};
|
|
341
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}";
|
|
342
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
|
|
343
|
+
let body;
|
|
344
|
+
return new protocol_http_1.HttpRequest({
|
|
345
|
+
protocol,
|
|
346
|
+
hostname,
|
|
347
|
+
port,
|
|
348
|
+
method: "GET",
|
|
349
|
+
headers,
|
|
350
|
+
path: resolvedPath,
|
|
351
|
+
body,
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
exports.se_DescribeGatewayCommand = se_DescribeGatewayCommand;
|
|
355
|
+
const se_DescribeGatewayInstanceCommand = async (input, context) => {
|
|
356
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
357
|
+
const headers = {};
|
|
358
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
359
|
+
"/v1/gateway-instances/{GatewayInstanceArn}";
|
|
360
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
|
|
361
|
+
let body;
|
|
362
|
+
return new protocol_http_1.HttpRequest({
|
|
363
|
+
protocol,
|
|
364
|
+
hostname,
|
|
365
|
+
port,
|
|
366
|
+
method: "GET",
|
|
367
|
+
headers,
|
|
368
|
+
path: resolvedPath,
|
|
369
|
+
body,
|
|
370
|
+
});
|
|
371
|
+
};
|
|
372
|
+
exports.se_DescribeGatewayInstanceCommand = se_DescribeGatewayInstanceCommand;
|
|
165
373
|
const se_DescribeOfferingCommand = async (input, context) => {
|
|
166
374
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
375
|
const headers = {};
|
|
@@ -220,6 +428,28 @@ const se_GrantFlowEntitlementsCommand = async (input, context) => {
|
|
|
220
428
|
});
|
|
221
429
|
};
|
|
222
430
|
exports.se_GrantFlowEntitlementsCommand = se_GrantFlowEntitlementsCommand;
|
|
431
|
+
const se_ListBridgesCommand = async (input, context) => {
|
|
432
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
433
|
+
const headers = {};
|
|
434
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
|
|
435
|
+
const query = map({
|
|
436
|
+
filterArn: [, input.FilterArn],
|
|
437
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
438
|
+
nextToken: [, input.NextToken],
|
|
439
|
+
});
|
|
440
|
+
let body;
|
|
441
|
+
return new protocol_http_1.HttpRequest({
|
|
442
|
+
protocol,
|
|
443
|
+
hostname,
|
|
444
|
+
port,
|
|
445
|
+
method: "GET",
|
|
446
|
+
headers,
|
|
447
|
+
path: resolvedPath,
|
|
448
|
+
query,
|
|
449
|
+
body,
|
|
450
|
+
});
|
|
451
|
+
};
|
|
452
|
+
exports.se_ListBridgesCommand = se_ListBridgesCommand;
|
|
223
453
|
const se_ListEntitlementsCommand = async (input, context) => {
|
|
224
454
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
225
455
|
const headers = {};
|
|
@@ -262,6 +492,49 @@ const se_ListFlowsCommand = async (input, context) => {
|
|
|
262
492
|
});
|
|
263
493
|
};
|
|
264
494
|
exports.se_ListFlowsCommand = se_ListFlowsCommand;
|
|
495
|
+
const se_ListGatewayInstancesCommand = async (input, context) => {
|
|
496
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
497
|
+
const headers = {};
|
|
498
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateway-instances";
|
|
499
|
+
const query = map({
|
|
500
|
+
filterArn: [, input.FilterArn],
|
|
501
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
502
|
+
nextToken: [, input.NextToken],
|
|
503
|
+
});
|
|
504
|
+
let body;
|
|
505
|
+
return new protocol_http_1.HttpRequest({
|
|
506
|
+
protocol,
|
|
507
|
+
hostname,
|
|
508
|
+
port,
|
|
509
|
+
method: "GET",
|
|
510
|
+
headers,
|
|
511
|
+
path: resolvedPath,
|
|
512
|
+
query,
|
|
513
|
+
body,
|
|
514
|
+
});
|
|
515
|
+
};
|
|
516
|
+
exports.se_ListGatewayInstancesCommand = se_ListGatewayInstancesCommand;
|
|
517
|
+
const se_ListGatewaysCommand = async (input, context) => {
|
|
518
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
519
|
+
const headers = {};
|
|
520
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
|
|
521
|
+
const query = map({
|
|
522
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
523
|
+
nextToken: [, input.NextToken],
|
|
524
|
+
});
|
|
525
|
+
let body;
|
|
526
|
+
return new protocol_http_1.HttpRequest({
|
|
527
|
+
protocol,
|
|
528
|
+
hostname,
|
|
529
|
+
port,
|
|
530
|
+
method: "GET",
|
|
531
|
+
headers,
|
|
532
|
+
path: resolvedPath,
|
|
533
|
+
query,
|
|
534
|
+
body,
|
|
535
|
+
});
|
|
536
|
+
};
|
|
537
|
+
exports.se_ListGatewaysCommand = se_ListGatewaysCommand;
|
|
265
538
|
const se_ListOfferingsCommand = async (input, context) => {
|
|
266
539
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
267
540
|
const headers = {};
|
|
@@ -344,6 +617,44 @@ const se_PurchaseOfferingCommand = async (input, context) => {
|
|
|
344
617
|
});
|
|
345
618
|
};
|
|
346
619
|
exports.se_PurchaseOfferingCommand = se_PurchaseOfferingCommand;
|
|
620
|
+
const se_RemoveBridgeOutputCommand = async (input, context) => {
|
|
621
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
622
|
+
const headers = {};
|
|
623
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
624
|
+
"/v1/bridges/{BridgeArn}/outputs/{OutputName}";
|
|
625
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
626
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutputName", () => input.OutputName, "{OutputName}", false);
|
|
627
|
+
let body;
|
|
628
|
+
return new protocol_http_1.HttpRequest({
|
|
629
|
+
protocol,
|
|
630
|
+
hostname,
|
|
631
|
+
port,
|
|
632
|
+
method: "DELETE",
|
|
633
|
+
headers,
|
|
634
|
+
path: resolvedPath,
|
|
635
|
+
body,
|
|
636
|
+
});
|
|
637
|
+
};
|
|
638
|
+
exports.se_RemoveBridgeOutputCommand = se_RemoveBridgeOutputCommand;
|
|
639
|
+
const se_RemoveBridgeSourceCommand = async (input, context) => {
|
|
640
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
641
|
+
const headers = {};
|
|
642
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
643
|
+
"/v1/bridges/{BridgeArn}/sources/{SourceName}";
|
|
644
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
645
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceName", () => input.SourceName, "{SourceName}", false);
|
|
646
|
+
let body;
|
|
647
|
+
return new protocol_http_1.HttpRequest({
|
|
648
|
+
protocol,
|
|
649
|
+
hostname,
|
|
650
|
+
port,
|
|
651
|
+
method: "DELETE",
|
|
652
|
+
headers,
|
|
653
|
+
path: resolvedPath,
|
|
654
|
+
body,
|
|
655
|
+
});
|
|
656
|
+
};
|
|
657
|
+
exports.se_RemoveBridgeSourceCommand = se_RemoveBridgeSourceCommand;
|
|
347
658
|
const se_RemoveFlowMediaStreamCommand = async (input, context) => {
|
|
348
659
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
349
660
|
const headers = {};
|
|
@@ -517,16 +828,21 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
517
828
|
});
|
|
518
829
|
};
|
|
519
830
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
520
|
-
const
|
|
831
|
+
const se_UpdateBridgeCommand = async (input, context) => {
|
|
521
832
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
522
833
|
const headers = {
|
|
523
834
|
"content-type": "application/json",
|
|
524
835
|
};
|
|
525
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/
|
|
526
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
836
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
|
|
837
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
527
838
|
let body;
|
|
528
839
|
body = JSON.stringify({
|
|
529
|
-
...(input.
|
|
840
|
+
...(input.EgressGatewayBridge != null && {
|
|
841
|
+
egressGatewayBridge: se_UpdateEgressGatewayBridgeRequest(input.EgressGatewayBridge, context),
|
|
842
|
+
}),
|
|
843
|
+
...(input.IngressGatewayBridge != null && {
|
|
844
|
+
ingressGatewayBridge: se_UpdateIngressGatewayBridgeRequest(input.IngressGatewayBridge, context),
|
|
845
|
+
}),
|
|
530
846
|
...(input.SourceFailoverConfig != null && {
|
|
531
847
|
sourceFailoverConfig: se_UpdateFailoverConfig(input.SourceFailoverConfig, context),
|
|
532
848
|
}),
|
|
@@ -541,22 +857,122 @@ const se_UpdateFlowCommand = async (input, context) => {
|
|
|
541
857
|
body,
|
|
542
858
|
});
|
|
543
859
|
};
|
|
544
|
-
exports.
|
|
545
|
-
const
|
|
860
|
+
exports.se_UpdateBridgeCommand = se_UpdateBridgeCommand;
|
|
861
|
+
const se_UpdateBridgeOutputCommand = async (input, context) => {
|
|
546
862
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
547
863
|
const headers = {
|
|
548
864
|
"content-type": "application/json",
|
|
549
865
|
};
|
|
550
866
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
551
|
-
"/v1/
|
|
552
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
553
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "
|
|
867
|
+
"/v1/bridges/{BridgeArn}/outputs/{OutputName}";
|
|
868
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
869
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutputName", () => input.OutputName, "{OutputName}", false);
|
|
554
870
|
let body;
|
|
555
871
|
body = JSON.stringify({
|
|
556
|
-
...(input.
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
872
|
+
...(input.NetworkOutput != null && {
|
|
873
|
+
networkOutput: se_UpdateBridgeNetworkOutputRequest(input.NetworkOutput, context),
|
|
874
|
+
}),
|
|
875
|
+
});
|
|
876
|
+
return new protocol_http_1.HttpRequest({
|
|
877
|
+
protocol,
|
|
878
|
+
hostname,
|
|
879
|
+
port,
|
|
880
|
+
method: "PUT",
|
|
881
|
+
headers,
|
|
882
|
+
path: resolvedPath,
|
|
883
|
+
body,
|
|
884
|
+
});
|
|
885
|
+
};
|
|
886
|
+
exports.se_UpdateBridgeOutputCommand = se_UpdateBridgeOutputCommand;
|
|
887
|
+
const se_UpdateBridgeSourceCommand = async (input, context) => {
|
|
888
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
889
|
+
const headers = {
|
|
890
|
+
"content-type": "application/json",
|
|
891
|
+
};
|
|
892
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
893
|
+
"/v1/bridges/{BridgeArn}/sources/{SourceName}";
|
|
894
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
895
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceName", () => input.SourceName, "{SourceName}", false);
|
|
896
|
+
let body;
|
|
897
|
+
body = JSON.stringify({
|
|
898
|
+
...(input.FlowSource != null && { flowSource: se_UpdateBridgeFlowSourceRequest(input.FlowSource, context) }),
|
|
899
|
+
...(input.NetworkSource != null && {
|
|
900
|
+
networkSource: se_UpdateBridgeNetworkSourceRequest(input.NetworkSource, context),
|
|
901
|
+
}),
|
|
902
|
+
});
|
|
903
|
+
return new protocol_http_1.HttpRequest({
|
|
904
|
+
protocol,
|
|
905
|
+
hostname,
|
|
906
|
+
port,
|
|
907
|
+
method: "PUT",
|
|
908
|
+
headers,
|
|
909
|
+
path: resolvedPath,
|
|
910
|
+
body,
|
|
911
|
+
});
|
|
912
|
+
};
|
|
913
|
+
exports.se_UpdateBridgeSourceCommand = se_UpdateBridgeSourceCommand;
|
|
914
|
+
const se_UpdateBridgeStateCommand = async (input, context) => {
|
|
915
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
916
|
+
const headers = {
|
|
917
|
+
"content-type": "application/json",
|
|
918
|
+
};
|
|
919
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/state";
|
|
920
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
921
|
+
let body;
|
|
922
|
+
body = JSON.stringify({
|
|
923
|
+
...(input.DesiredState != null && { desiredState: input.DesiredState }),
|
|
924
|
+
});
|
|
925
|
+
return new protocol_http_1.HttpRequest({
|
|
926
|
+
protocol,
|
|
927
|
+
hostname,
|
|
928
|
+
port,
|
|
929
|
+
method: "PUT",
|
|
930
|
+
headers,
|
|
931
|
+
path: resolvedPath,
|
|
932
|
+
body,
|
|
933
|
+
});
|
|
934
|
+
};
|
|
935
|
+
exports.se_UpdateBridgeStateCommand = se_UpdateBridgeStateCommand;
|
|
936
|
+
const se_UpdateFlowCommand = async (input, context) => {
|
|
937
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
938
|
+
const headers = {
|
|
939
|
+
"content-type": "application/json",
|
|
940
|
+
};
|
|
941
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}";
|
|
942
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
943
|
+
let body;
|
|
944
|
+
body = JSON.stringify({
|
|
945
|
+
...(input.Maintenance != null && { maintenance: se_UpdateMaintenance(input.Maintenance, context) }),
|
|
946
|
+
...(input.SourceFailoverConfig != null && {
|
|
947
|
+
sourceFailoverConfig: se_UpdateFailoverConfig(input.SourceFailoverConfig, context),
|
|
948
|
+
}),
|
|
949
|
+
});
|
|
950
|
+
return new protocol_http_1.HttpRequest({
|
|
951
|
+
protocol,
|
|
952
|
+
hostname,
|
|
953
|
+
port,
|
|
954
|
+
method: "PUT",
|
|
955
|
+
headers,
|
|
956
|
+
path: resolvedPath,
|
|
957
|
+
body,
|
|
958
|
+
});
|
|
959
|
+
};
|
|
960
|
+
exports.se_UpdateFlowCommand = se_UpdateFlowCommand;
|
|
961
|
+
const se_UpdateFlowEntitlementCommand = async (input, context) => {
|
|
962
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
963
|
+
const headers = {
|
|
964
|
+
"content-type": "application/json",
|
|
965
|
+
};
|
|
966
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
967
|
+
"/v1/flows/{FlowArn}/entitlements/{EntitlementArn}";
|
|
968
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
|
|
969
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
970
|
+
let body;
|
|
971
|
+
body = JSON.stringify({
|
|
972
|
+
...(input.Description != null && { description: input.Description }),
|
|
973
|
+
...(input.Encryption != null && { encryption: se_UpdateEncryption(input.Encryption, context) }),
|
|
974
|
+
...(input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus }),
|
|
975
|
+
...(input.Subscribers != null && { subscribers: se___listOf__string(input.Subscribers, context) }),
|
|
560
976
|
});
|
|
561
977
|
return new protocol_http_1.HttpRequest({
|
|
562
978
|
protocol,
|
|
@@ -651,6 +1067,9 @@ const se_UpdateFlowSourceCommand = async (input, context) => {
|
|
|
651
1067
|
...(input.Decryption != null && { decryption: se_UpdateEncryption(input.Decryption, context) }),
|
|
652
1068
|
...(input.Description != null && { description: input.Description }),
|
|
653
1069
|
...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
|
|
1070
|
+
...(input.GatewayBridgeSource != null && {
|
|
1071
|
+
gatewayBridgeSource: se_UpdateGatewayBridgeSourceRequest(input.GatewayBridgeSource, context),
|
|
1072
|
+
}),
|
|
654
1073
|
...(input.IngestPort != null && { ingestPort: input.IngestPort }),
|
|
655
1074
|
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
656
1075
|
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
@@ -679,6 +1098,139 @@ const se_UpdateFlowSourceCommand = async (input, context) => {
|
|
|
679
1098
|
});
|
|
680
1099
|
};
|
|
681
1100
|
exports.se_UpdateFlowSourceCommand = se_UpdateFlowSourceCommand;
|
|
1101
|
+
const se_UpdateGatewayInstanceCommand = async (input, context) => {
|
|
1102
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1103
|
+
const headers = {
|
|
1104
|
+
"content-type": "application/json",
|
|
1105
|
+
};
|
|
1106
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1107
|
+
"/v1/gateway-instances/{GatewayInstanceArn}";
|
|
1108
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
|
|
1109
|
+
let body;
|
|
1110
|
+
body = JSON.stringify({
|
|
1111
|
+
...(input.BridgePlacement != null && { bridgePlacement: input.BridgePlacement }),
|
|
1112
|
+
});
|
|
1113
|
+
return new protocol_http_1.HttpRequest({
|
|
1114
|
+
protocol,
|
|
1115
|
+
hostname,
|
|
1116
|
+
port,
|
|
1117
|
+
method: "PUT",
|
|
1118
|
+
headers,
|
|
1119
|
+
path: resolvedPath,
|
|
1120
|
+
body,
|
|
1121
|
+
});
|
|
1122
|
+
};
|
|
1123
|
+
exports.se_UpdateGatewayInstanceCommand = se_UpdateGatewayInstanceCommand;
|
|
1124
|
+
const de_AddBridgeOutputsCommand = async (output, context) => {
|
|
1125
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1126
|
+
return de_AddBridgeOutputsCommandError(output, context);
|
|
1127
|
+
}
|
|
1128
|
+
const contents = map({
|
|
1129
|
+
$metadata: deserializeMetadata(output),
|
|
1130
|
+
});
|
|
1131
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1132
|
+
if (data.bridgeArn != null) {
|
|
1133
|
+
contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
|
|
1134
|
+
}
|
|
1135
|
+
if (data.outputs != null) {
|
|
1136
|
+
contents.Outputs = de___listOfBridgeOutput(data.outputs, context);
|
|
1137
|
+
}
|
|
1138
|
+
return contents;
|
|
1139
|
+
};
|
|
1140
|
+
exports.de_AddBridgeOutputsCommand = de_AddBridgeOutputsCommand;
|
|
1141
|
+
const de_AddBridgeOutputsCommandError = async (output, context) => {
|
|
1142
|
+
const parsedOutput = {
|
|
1143
|
+
...output,
|
|
1144
|
+
body: await parseErrorBody(output.body, context),
|
|
1145
|
+
};
|
|
1146
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
+
switch (errorCode) {
|
|
1148
|
+
case "BadRequestException":
|
|
1149
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1150
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1151
|
+
case "ConflictException":
|
|
1152
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1153
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1154
|
+
case "ForbiddenException":
|
|
1155
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1156
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1157
|
+
case "InternalServerErrorException":
|
|
1158
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1159
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1160
|
+
case "NotFoundException":
|
|
1161
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1162
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1163
|
+
case "ServiceUnavailableException":
|
|
1164
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1165
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1166
|
+
case "TooManyRequestsException":
|
|
1167
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1168
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1169
|
+
default:
|
|
1170
|
+
const parsedBody = parsedOutput.body;
|
|
1171
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1172
|
+
output,
|
|
1173
|
+
parsedBody,
|
|
1174
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1175
|
+
errorCode,
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
const de_AddBridgeSourcesCommand = async (output, context) => {
|
|
1180
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1181
|
+
return de_AddBridgeSourcesCommandError(output, context);
|
|
1182
|
+
}
|
|
1183
|
+
const contents = map({
|
|
1184
|
+
$metadata: deserializeMetadata(output),
|
|
1185
|
+
});
|
|
1186
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1187
|
+
if (data.bridgeArn != null) {
|
|
1188
|
+
contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
|
|
1189
|
+
}
|
|
1190
|
+
if (data.sources != null) {
|
|
1191
|
+
contents.Sources = de___listOfBridgeSource(data.sources, context);
|
|
1192
|
+
}
|
|
1193
|
+
return contents;
|
|
1194
|
+
};
|
|
1195
|
+
exports.de_AddBridgeSourcesCommand = de_AddBridgeSourcesCommand;
|
|
1196
|
+
const de_AddBridgeSourcesCommandError = async (output, context) => {
|
|
1197
|
+
const parsedOutput = {
|
|
1198
|
+
...output,
|
|
1199
|
+
body: await parseErrorBody(output.body, context),
|
|
1200
|
+
};
|
|
1201
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
|
+
switch (errorCode) {
|
|
1203
|
+
case "BadRequestException":
|
|
1204
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1205
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1206
|
+
case "ConflictException":
|
|
1207
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1208
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1209
|
+
case "ForbiddenException":
|
|
1210
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1211
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1212
|
+
case "InternalServerErrorException":
|
|
1213
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1214
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1215
|
+
case "NotFoundException":
|
|
1216
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1217
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1218
|
+
case "ServiceUnavailableException":
|
|
1219
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1220
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1221
|
+
case "TooManyRequestsException":
|
|
1222
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1223
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1224
|
+
default:
|
|
1225
|
+
const parsedBody = parsedOutput.body;
|
|
1226
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1227
|
+
output,
|
|
1228
|
+
parsedBody,
|
|
1229
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1230
|
+
errorCode,
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
682
1234
|
const de_AddFlowMediaStreamsCommand = async (output, context) => {
|
|
683
1235
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
684
1236
|
return de_AddFlowMediaStreamsCommandError(output, context);
|
|
@@ -731,33 +1283,605 @@ const de_AddFlowMediaStreamsCommandError = async (output, context) => {
|
|
|
731
1283
|
});
|
|
732
1284
|
}
|
|
733
1285
|
};
|
|
734
|
-
const de_AddFlowOutputsCommand = async (output, context) => {
|
|
735
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
736
|
-
return de_AddFlowOutputsCommandError(output, context);
|
|
1286
|
+
const de_AddFlowOutputsCommand = async (output, context) => {
|
|
1287
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1288
|
+
return de_AddFlowOutputsCommandError(output, context);
|
|
1289
|
+
}
|
|
1290
|
+
const contents = map({
|
|
1291
|
+
$metadata: deserializeMetadata(output),
|
|
1292
|
+
});
|
|
1293
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1294
|
+
if (data.flowArn != null) {
|
|
1295
|
+
contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
|
|
1296
|
+
}
|
|
1297
|
+
if (data.outputs != null) {
|
|
1298
|
+
contents.Outputs = de___listOfOutput(data.outputs, context);
|
|
1299
|
+
}
|
|
1300
|
+
return contents;
|
|
1301
|
+
};
|
|
1302
|
+
exports.de_AddFlowOutputsCommand = de_AddFlowOutputsCommand;
|
|
1303
|
+
const de_AddFlowOutputsCommandError = async (output, context) => {
|
|
1304
|
+
const parsedOutput = {
|
|
1305
|
+
...output,
|
|
1306
|
+
body: await parseErrorBody(output.body, context),
|
|
1307
|
+
};
|
|
1308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
+
switch (errorCode) {
|
|
1310
|
+
case "AddFlowOutputs420Exception":
|
|
1311
|
+
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
1312
|
+
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
1313
|
+
case "BadRequestException":
|
|
1314
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1315
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1316
|
+
case "ForbiddenException":
|
|
1317
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1318
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1319
|
+
case "InternalServerErrorException":
|
|
1320
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1321
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1322
|
+
case "NotFoundException":
|
|
1323
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1324
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1325
|
+
case "ServiceUnavailableException":
|
|
1326
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1327
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1328
|
+
case "TooManyRequestsException":
|
|
1329
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1330
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1331
|
+
default:
|
|
1332
|
+
const parsedBody = parsedOutput.body;
|
|
1333
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1334
|
+
output,
|
|
1335
|
+
parsedBody,
|
|
1336
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1337
|
+
errorCode,
|
|
1338
|
+
});
|
|
1339
|
+
}
|
|
1340
|
+
};
|
|
1341
|
+
const de_AddFlowSourcesCommand = async (output, context) => {
|
|
1342
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1343
|
+
return de_AddFlowSourcesCommandError(output, context);
|
|
1344
|
+
}
|
|
1345
|
+
const contents = map({
|
|
1346
|
+
$metadata: deserializeMetadata(output),
|
|
1347
|
+
});
|
|
1348
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1349
|
+
if (data.flowArn != null) {
|
|
1350
|
+
contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
|
|
1351
|
+
}
|
|
1352
|
+
if (data.sources != null) {
|
|
1353
|
+
contents.Sources = de___listOfSource(data.sources, context);
|
|
1354
|
+
}
|
|
1355
|
+
return contents;
|
|
1356
|
+
};
|
|
1357
|
+
exports.de_AddFlowSourcesCommand = de_AddFlowSourcesCommand;
|
|
1358
|
+
const de_AddFlowSourcesCommandError = async (output, context) => {
|
|
1359
|
+
const parsedOutput = {
|
|
1360
|
+
...output,
|
|
1361
|
+
body: await parseErrorBody(output.body, context),
|
|
1362
|
+
};
|
|
1363
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1364
|
+
switch (errorCode) {
|
|
1365
|
+
case "BadRequestException":
|
|
1366
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1367
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1368
|
+
case "ForbiddenException":
|
|
1369
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1370
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1371
|
+
case "InternalServerErrorException":
|
|
1372
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1373
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1374
|
+
case "NotFoundException":
|
|
1375
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1376
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1377
|
+
case "ServiceUnavailableException":
|
|
1378
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1379
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1380
|
+
case "TooManyRequestsException":
|
|
1381
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1382
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1383
|
+
default:
|
|
1384
|
+
const parsedBody = parsedOutput.body;
|
|
1385
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1386
|
+
output,
|
|
1387
|
+
parsedBody,
|
|
1388
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1389
|
+
errorCode,
|
|
1390
|
+
});
|
|
1391
|
+
}
|
|
1392
|
+
};
|
|
1393
|
+
const de_AddFlowVpcInterfacesCommand = async (output, context) => {
|
|
1394
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1395
|
+
return de_AddFlowVpcInterfacesCommandError(output, context);
|
|
1396
|
+
}
|
|
1397
|
+
const contents = map({
|
|
1398
|
+
$metadata: deserializeMetadata(output),
|
|
1399
|
+
});
|
|
1400
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1401
|
+
if (data.flowArn != null) {
|
|
1402
|
+
contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
|
|
1403
|
+
}
|
|
1404
|
+
if (data.vpcInterfaces != null) {
|
|
1405
|
+
contents.VpcInterfaces = de___listOfVpcInterface(data.vpcInterfaces, context);
|
|
1406
|
+
}
|
|
1407
|
+
return contents;
|
|
1408
|
+
};
|
|
1409
|
+
exports.de_AddFlowVpcInterfacesCommand = de_AddFlowVpcInterfacesCommand;
|
|
1410
|
+
const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
1411
|
+
const parsedOutput = {
|
|
1412
|
+
...output,
|
|
1413
|
+
body: await parseErrorBody(output.body, context),
|
|
1414
|
+
};
|
|
1415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
+
switch (errorCode) {
|
|
1417
|
+
case "BadRequestException":
|
|
1418
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1419
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "ForbiddenException":
|
|
1421
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1422
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "InternalServerErrorException":
|
|
1424
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1425
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1426
|
+
case "NotFoundException":
|
|
1427
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1428
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1429
|
+
case "ServiceUnavailableException":
|
|
1430
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1431
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1432
|
+
case "TooManyRequestsException":
|
|
1433
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1434
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1435
|
+
default:
|
|
1436
|
+
const parsedBody = parsedOutput.body;
|
|
1437
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1438
|
+
output,
|
|
1439
|
+
parsedBody,
|
|
1440
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1441
|
+
errorCode,
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
const de_CreateBridgeCommand = async (output, context) => {
|
|
1446
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1447
|
+
return de_CreateBridgeCommandError(output, context);
|
|
1448
|
+
}
|
|
1449
|
+
const contents = map({
|
|
1450
|
+
$metadata: deserializeMetadata(output),
|
|
1451
|
+
});
|
|
1452
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1453
|
+
if (data.bridge != null) {
|
|
1454
|
+
contents.Bridge = de_Bridge(data.bridge, context);
|
|
1455
|
+
}
|
|
1456
|
+
return contents;
|
|
1457
|
+
};
|
|
1458
|
+
exports.de_CreateBridgeCommand = de_CreateBridgeCommand;
|
|
1459
|
+
const de_CreateBridgeCommandError = async (output, context) => {
|
|
1460
|
+
const parsedOutput = {
|
|
1461
|
+
...output,
|
|
1462
|
+
body: await parseErrorBody(output.body, context),
|
|
1463
|
+
};
|
|
1464
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1465
|
+
switch (errorCode) {
|
|
1466
|
+
case "BadRequestException":
|
|
1467
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1468
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1469
|
+
case "ConflictException":
|
|
1470
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1471
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1472
|
+
case "CreateBridge420Exception":
|
|
1473
|
+
case "com.amazonaws.mediaconnect#CreateBridge420Exception":
|
|
1474
|
+
throw await de_CreateBridge420ExceptionRes(parsedOutput, context);
|
|
1475
|
+
case "ForbiddenException":
|
|
1476
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1477
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1478
|
+
case "InternalServerErrorException":
|
|
1479
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1480
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1481
|
+
case "ServiceUnavailableException":
|
|
1482
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1483
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1484
|
+
case "TooManyRequestsException":
|
|
1485
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1486
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1487
|
+
default:
|
|
1488
|
+
const parsedBody = parsedOutput.body;
|
|
1489
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1490
|
+
output,
|
|
1491
|
+
parsedBody,
|
|
1492
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1493
|
+
errorCode,
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1496
|
+
};
|
|
1497
|
+
const de_CreateFlowCommand = async (output, context) => {
|
|
1498
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1499
|
+
return de_CreateFlowCommandError(output, context);
|
|
1500
|
+
}
|
|
1501
|
+
const contents = map({
|
|
1502
|
+
$metadata: deserializeMetadata(output),
|
|
1503
|
+
});
|
|
1504
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1505
|
+
if (data.flow != null) {
|
|
1506
|
+
contents.Flow = de_Flow(data.flow, context);
|
|
1507
|
+
}
|
|
1508
|
+
return contents;
|
|
1509
|
+
};
|
|
1510
|
+
exports.de_CreateFlowCommand = de_CreateFlowCommand;
|
|
1511
|
+
const de_CreateFlowCommandError = async (output, context) => {
|
|
1512
|
+
const parsedOutput = {
|
|
1513
|
+
...output,
|
|
1514
|
+
body: await parseErrorBody(output.body, context),
|
|
1515
|
+
};
|
|
1516
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1517
|
+
switch (errorCode) {
|
|
1518
|
+
case "BadRequestException":
|
|
1519
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1520
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1521
|
+
case "CreateFlow420Exception":
|
|
1522
|
+
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
1523
|
+
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
1524
|
+
case "ForbiddenException":
|
|
1525
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1526
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1527
|
+
case "InternalServerErrorException":
|
|
1528
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1529
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1530
|
+
case "ServiceUnavailableException":
|
|
1531
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1532
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1533
|
+
case "TooManyRequestsException":
|
|
1534
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1535
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1536
|
+
default:
|
|
1537
|
+
const parsedBody = parsedOutput.body;
|
|
1538
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1539
|
+
output,
|
|
1540
|
+
parsedBody,
|
|
1541
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1542
|
+
errorCode,
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
};
|
|
1546
|
+
const de_CreateGatewayCommand = async (output, context) => {
|
|
1547
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1548
|
+
return de_CreateGatewayCommandError(output, context);
|
|
1549
|
+
}
|
|
1550
|
+
const contents = map({
|
|
1551
|
+
$metadata: deserializeMetadata(output),
|
|
1552
|
+
});
|
|
1553
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1554
|
+
if (data.gateway != null) {
|
|
1555
|
+
contents.Gateway = de_Gateway(data.gateway, context);
|
|
1556
|
+
}
|
|
1557
|
+
return contents;
|
|
1558
|
+
};
|
|
1559
|
+
exports.de_CreateGatewayCommand = de_CreateGatewayCommand;
|
|
1560
|
+
const de_CreateGatewayCommandError = async (output, context) => {
|
|
1561
|
+
const parsedOutput = {
|
|
1562
|
+
...output,
|
|
1563
|
+
body: await parseErrorBody(output.body, context),
|
|
1564
|
+
};
|
|
1565
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
|
+
switch (errorCode) {
|
|
1567
|
+
case "BadRequestException":
|
|
1568
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1569
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1570
|
+
case "ConflictException":
|
|
1571
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1572
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1573
|
+
case "CreateGateway420Exception":
|
|
1574
|
+
case "com.amazonaws.mediaconnect#CreateGateway420Exception":
|
|
1575
|
+
throw await de_CreateGateway420ExceptionRes(parsedOutput, context);
|
|
1576
|
+
case "ForbiddenException":
|
|
1577
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1578
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1579
|
+
case "InternalServerErrorException":
|
|
1580
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1581
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1582
|
+
case "ServiceUnavailableException":
|
|
1583
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1584
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1585
|
+
case "TooManyRequestsException":
|
|
1586
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1587
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1588
|
+
default:
|
|
1589
|
+
const parsedBody = parsedOutput.body;
|
|
1590
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1591
|
+
output,
|
|
1592
|
+
parsedBody,
|
|
1593
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1594
|
+
errorCode,
|
|
1595
|
+
});
|
|
1596
|
+
}
|
|
1597
|
+
};
|
|
1598
|
+
const de_DeleteBridgeCommand = async (output, context) => {
|
|
1599
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1600
|
+
return de_DeleteBridgeCommandError(output, context);
|
|
1601
|
+
}
|
|
1602
|
+
const contents = map({
|
|
1603
|
+
$metadata: deserializeMetadata(output),
|
|
1604
|
+
});
|
|
1605
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1606
|
+
if (data.bridgeArn != null) {
|
|
1607
|
+
contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
|
|
1608
|
+
}
|
|
1609
|
+
return contents;
|
|
1610
|
+
};
|
|
1611
|
+
exports.de_DeleteBridgeCommand = de_DeleteBridgeCommand;
|
|
1612
|
+
const de_DeleteBridgeCommandError = async (output, context) => {
|
|
1613
|
+
const parsedOutput = {
|
|
1614
|
+
...output,
|
|
1615
|
+
body: await parseErrorBody(output.body, context),
|
|
1616
|
+
};
|
|
1617
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
|
+
switch (errorCode) {
|
|
1619
|
+
case "BadRequestException":
|
|
1620
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1621
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1622
|
+
case "ConflictException":
|
|
1623
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1624
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1625
|
+
case "ForbiddenException":
|
|
1626
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1627
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1628
|
+
case "InternalServerErrorException":
|
|
1629
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1630
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1631
|
+
case "NotFoundException":
|
|
1632
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1633
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1634
|
+
case "ServiceUnavailableException":
|
|
1635
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1636
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1637
|
+
case "TooManyRequestsException":
|
|
1638
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1639
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1640
|
+
default:
|
|
1641
|
+
const parsedBody = parsedOutput.body;
|
|
1642
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1643
|
+
output,
|
|
1644
|
+
parsedBody,
|
|
1645
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1646
|
+
errorCode,
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
};
|
|
1650
|
+
const de_DeleteFlowCommand = async (output, context) => {
|
|
1651
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1652
|
+
return de_DeleteFlowCommandError(output, context);
|
|
1653
|
+
}
|
|
1654
|
+
const contents = map({
|
|
1655
|
+
$metadata: deserializeMetadata(output),
|
|
1656
|
+
});
|
|
1657
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1658
|
+
if (data.flowArn != null) {
|
|
1659
|
+
contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
|
|
1660
|
+
}
|
|
1661
|
+
if (data.status != null) {
|
|
1662
|
+
contents.Status = (0, smithy_client_1.expectString)(data.status);
|
|
1663
|
+
}
|
|
1664
|
+
return contents;
|
|
1665
|
+
};
|
|
1666
|
+
exports.de_DeleteFlowCommand = de_DeleteFlowCommand;
|
|
1667
|
+
const de_DeleteFlowCommandError = async (output, context) => {
|
|
1668
|
+
const parsedOutput = {
|
|
1669
|
+
...output,
|
|
1670
|
+
body: await parseErrorBody(output.body, context),
|
|
1671
|
+
};
|
|
1672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
|
+
switch (errorCode) {
|
|
1674
|
+
case "BadRequestException":
|
|
1675
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1676
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1677
|
+
case "ForbiddenException":
|
|
1678
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1679
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1680
|
+
case "InternalServerErrorException":
|
|
1681
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1682
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1683
|
+
case "NotFoundException":
|
|
1684
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1685
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1686
|
+
case "ServiceUnavailableException":
|
|
1687
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1688
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1689
|
+
case "TooManyRequestsException":
|
|
1690
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1691
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1692
|
+
default:
|
|
1693
|
+
const parsedBody = parsedOutput.body;
|
|
1694
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1695
|
+
output,
|
|
1696
|
+
parsedBody,
|
|
1697
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1698
|
+
errorCode,
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
};
|
|
1702
|
+
const de_DeleteGatewayCommand = async (output, context) => {
|
|
1703
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1704
|
+
return de_DeleteGatewayCommandError(output, context);
|
|
1705
|
+
}
|
|
1706
|
+
const contents = map({
|
|
1707
|
+
$metadata: deserializeMetadata(output),
|
|
1708
|
+
});
|
|
1709
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1710
|
+
if (data.gatewayArn != null) {
|
|
1711
|
+
contents.GatewayArn = (0, smithy_client_1.expectString)(data.gatewayArn);
|
|
1712
|
+
}
|
|
1713
|
+
return contents;
|
|
1714
|
+
};
|
|
1715
|
+
exports.de_DeleteGatewayCommand = de_DeleteGatewayCommand;
|
|
1716
|
+
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
1717
|
+
const parsedOutput = {
|
|
1718
|
+
...output,
|
|
1719
|
+
body: await parseErrorBody(output.body, context),
|
|
1720
|
+
};
|
|
1721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
|
+
switch (errorCode) {
|
|
1723
|
+
case "BadRequestException":
|
|
1724
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1725
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1726
|
+
case "ConflictException":
|
|
1727
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1728
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1729
|
+
case "ForbiddenException":
|
|
1730
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1731
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1732
|
+
case "InternalServerErrorException":
|
|
1733
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1734
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1735
|
+
case "NotFoundException":
|
|
1736
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1737
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1738
|
+
case "ServiceUnavailableException":
|
|
1739
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1740
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1741
|
+
case "TooManyRequestsException":
|
|
1742
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1743
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1744
|
+
default:
|
|
1745
|
+
const parsedBody = parsedOutput.body;
|
|
1746
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1747
|
+
output,
|
|
1748
|
+
parsedBody,
|
|
1749
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1750
|
+
errorCode,
|
|
1751
|
+
});
|
|
1752
|
+
}
|
|
1753
|
+
};
|
|
1754
|
+
const de_DeregisterGatewayInstanceCommand = async (output, context) => {
|
|
1755
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1756
|
+
return de_DeregisterGatewayInstanceCommandError(output, context);
|
|
1757
|
+
}
|
|
1758
|
+
const contents = map({
|
|
1759
|
+
$metadata: deserializeMetadata(output),
|
|
1760
|
+
});
|
|
1761
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1762
|
+
if (data.gatewayInstanceArn != null) {
|
|
1763
|
+
contents.GatewayInstanceArn = (0, smithy_client_1.expectString)(data.gatewayInstanceArn);
|
|
1764
|
+
}
|
|
1765
|
+
if (data.instanceState != null) {
|
|
1766
|
+
contents.InstanceState = (0, smithy_client_1.expectString)(data.instanceState);
|
|
1767
|
+
}
|
|
1768
|
+
return contents;
|
|
1769
|
+
};
|
|
1770
|
+
exports.de_DeregisterGatewayInstanceCommand = de_DeregisterGatewayInstanceCommand;
|
|
1771
|
+
const de_DeregisterGatewayInstanceCommandError = async (output, context) => {
|
|
1772
|
+
const parsedOutput = {
|
|
1773
|
+
...output,
|
|
1774
|
+
body: await parseErrorBody(output.body, context),
|
|
1775
|
+
};
|
|
1776
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1777
|
+
switch (errorCode) {
|
|
1778
|
+
case "BadRequestException":
|
|
1779
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1780
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1781
|
+
case "ConflictException":
|
|
1782
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1783
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1784
|
+
case "ForbiddenException":
|
|
1785
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1786
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1787
|
+
case "InternalServerErrorException":
|
|
1788
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1789
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1790
|
+
case "NotFoundException":
|
|
1791
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1792
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1793
|
+
case "ServiceUnavailableException":
|
|
1794
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1795
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1796
|
+
case "TooManyRequestsException":
|
|
1797
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1798
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1799
|
+
default:
|
|
1800
|
+
const parsedBody = parsedOutput.body;
|
|
1801
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1802
|
+
output,
|
|
1803
|
+
parsedBody,
|
|
1804
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1805
|
+
errorCode,
|
|
1806
|
+
});
|
|
1807
|
+
}
|
|
1808
|
+
};
|
|
1809
|
+
const de_DescribeBridgeCommand = async (output, context) => {
|
|
1810
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1811
|
+
return de_DescribeBridgeCommandError(output, context);
|
|
1812
|
+
}
|
|
1813
|
+
const contents = map({
|
|
1814
|
+
$metadata: deserializeMetadata(output),
|
|
1815
|
+
});
|
|
1816
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1817
|
+
if (data.bridge != null) {
|
|
1818
|
+
contents.Bridge = de_Bridge(data.bridge, context);
|
|
1819
|
+
}
|
|
1820
|
+
return contents;
|
|
1821
|
+
};
|
|
1822
|
+
exports.de_DescribeBridgeCommand = de_DescribeBridgeCommand;
|
|
1823
|
+
const de_DescribeBridgeCommandError = async (output, context) => {
|
|
1824
|
+
const parsedOutput = {
|
|
1825
|
+
...output,
|
|
1826
|
+
body: await parseErrorBody(output.body, context),
|
|
1827
|
+
};
|
|
1828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1829
|
+
switch (errorCode) {
|
|
1830
|
+
case "BadRequestException":
|
|
1831
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1832
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1833
|
+
case "ConflictException":
|
|
1834
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1835
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1836
|
+
case "ForbiddenException":
|
|
1837
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1838
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1839
|
+
case "InternalServerErrorException":
|
|
1840
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1841
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1842
|
+
case "NotFoundException":
|
|
1843
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1844
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1845
|
+
case "ServiceUnavailableException":
|
|
1846
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1847
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1848
|
+
case "TooManyRequestsException":
|
|
1849
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1850
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1851
|
+
default:
|
|
1852
|
+
const parsedBody = parsedOutput.body;
|
|
1853
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1854
|
+
output,
|
|
1855
|
+
parsedBody,
|
|
1856
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
1857
|
+
errorCode,
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
};
|
|
1861
|
+
const de_DescribeFlowCommand = async (output, context) => {
|
|
1862
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1863
|
+
return de_DescribeFlowCommandError(output, context);
|
|
737
1864
|
}
|
|
738
1865
|
const contents = map({
|
|
739
1866
|
$metadata: deserializeMetadata(output),
|
|
740
1867
|
});
|
|
741
1868
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
742
|
-
if (data.
|
|
743
|
-
contents.
|
|
1869
|
+
if (data.flow != null) {
|
|
1870
|
+
contents.Flow = de_Flow(data.flow, context);
|
|
744
1871
|
}
|
|
745
|
-
if (data.
|
|
746
|
-
contents.
|
|
1872
|
+
if (data.messages != null) {
|
|
1873
|
+
contents.Messages = de_Messages(data.messages, context);
|
|
747
1874
|
}
|
|
748
1875
|
return contents;
|
|
749
1876
|
};
|
|
750
|
-
exports.
|
|
751
|
-
const
|
|
1877
|
+
exports.de_DescribeFlowCommand = de_DescribeFlowCommand;
|
|
1878
|
+
const de_DescribeFlowCommandError = async (output, context) => {
|
|
752
1879
|
const parsedOutput = {
|
|
753
1880
|
...output,
|
|
754
1881
|
body: await parseErrorBody(output.body, context),
|
|
755
1882
|
};
|
|
756
1883
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
1884
|
switch (errorCode) {
|
|
758
|
-
case "AddFlowOutputs420Exception":
|
|
759
|
-
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
760
|
-
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
761
1885
|
case "BadRequestException":
|
|
762
1886
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
763
1887
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
@@ -786,24 +1910,21 @@ const de_AddFlowOutputsCommandError = async (output, context) => {
|
|
|
786
1910
|
});
|
|
787
1911
|
}
|
|
788
1912
|
};
|
|
789
|
-
const
|
|
790
|
-
if (output.statusCode !==
|
|
791
|
-
return
|
|
1913
|
+
const de_DescribeGatewayCommand = async (output, context) => {
|
|
1914
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1915
|
+
return de_DescribeGatewayCommandError(output, context);
|
|
792
1916
|
}
|
|
793
1917
|
const contents = map({
|
|
794
1918
|
$metadata: deserializeMetadata(output),
|
|
795
1919
|
});
|
|
796
1920
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
797
|
-
if (data.
|
|
798
|
-
contents.
|
|
799
|
-
}
|
|
800
|
-
if (data.sources != null) {
|
|
801
|
-
contents.Sources = de___listOfSource(data.sources, context);
|
|
1921
|
+
if (data.gateway != null) {
|
|
1922
|
+
contents.Gateway = de_Gateway(data.gateway, context);
|
|
802
1923
|
}
|
|
803
1924
|
return contents;
|
|
804
1925
|
};
|
|
805
|
-
exports.
|
|
806
|
-
const
|
|
1926
|
+
exports.de_DescribeGatewayCommand = de_DescribeGatewayCommand;
|
|
1927
|
+
const de_DescribeGatewayCommandError = async (output, context) => {
|
|
807
1928
|
const parsedOutput = {
|
|
808
1929
|
...output,
|
|
809
1930
|
body: await parseErrorBody(output.body, context),
|
|
@@ -813,6 +1934,9 @@ const de_AddFlowSourcesCommandError = async (output, context) => {
|
|
|
813
1934
|
case "BadRequestException":
|
|
814
1935
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
815
1936
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1937
|
+
case "ConflictException":
|
|
1938
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1939
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
816
1940
|
case "ForbiddenException":
|
|
817
1941
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
818
1942
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -838,24 +1962,21 @@ const de_AddFlowSourcesCommandError = async (output, context) => {
|
|
|
838
1962
|
});
|
|
839
1963
|
}
|
|
840
1964
|
};
|
|
841
|
-
const
|
|
842
|
-
if (output.statusCode !==
|
|
843
|
-
return
|
|
1965
|
+
const de_DescribeGatewayInstanceCommand = async (output, context) => {
|
|
1966
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1967
|
+
return de_DescribeGatewayInstanceCommandError(output, context);
|
|
844
1968
|
}
|
|
845
1969
|
const contents = map({
|
|
846
1970
|
$metadata: deserializeMetadata(output),
|
|
847
1971
|
});
|
|
848
1972
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
849
|
-
if (data.
|
|
850
|
-
contents.
|
|
851
|
-
}
|
|
852
|
-
if (data.vpcInterfaces != null) {
|
|
853
|
-
contents.VpcInterfaces = de___listOfVpcInterface(data.vpcInterfaces, context);
|
|
1973
|
+
if (data.gatewayInstance != null) {
|
|
1974
|
+
contents.GatewayInstance = de_GatewayInstance(data.gatewayInstance, context);
|
|
854
1975
|
}
|
|
855
1976
|
return contents;
|
|
856
1977
|
};
|
|
857
|
-
exports.
|
|
858
|
-
const
|
|
1978
|
+
exports.de_DescribeGatewayInstanceCommand = de_DescribeGatewayInstanceCommand;
|
|
1979
|
+
const de_DescribeGatewayInstanceCommandError = async (output, context) => {
|
|
859
1980
|
const parsedOutput = {
|
|
860
1981
|
...output,
|
|
861
1982
|
body: await parseErrorBody(output.body, context),
|
|
@@ -865,6 +1986,9 @@ const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
|
865
1986
|
case "BadRequestException":
|
|
866
1987
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
867
1988
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1989
|
+
case "ConflictException":
|
|
1990
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1991
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
868
1992
|
case "ForbiddenException":
|
|
869
1993
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
870
1994
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -890,21 +2014,21 @@ const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
|
890
2014
|
});
|
|
891
2015
|
}
|
|
892
2016
|
};
|
|
893
|
-
const
|
|
894
|
-
if (output.statusCode !==
|
|
895
|
-
return
|
|
2017
|
+
const de_DescribeOfferingCommand = async (output, context) => {
|
|
2018
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2019
|
+
return de_DescribeOfferingCommandError(output, context);
|
|
896
2020
|
}
|
|
897
2021
|
const contents = map({
|
|
898
2022
|
$metadata: deserializeMetadata(output),
|
|
899
2023
|
});
|
|
900
2024
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
901
|
-
if (data.
|
|
902
|
-
contents.
|
|
2025
|
+
if (data.offering != null) {
|
|
2026
|
+
contents.Offering = de_Offering(data.offering, context);
|
|
903
2027
|
}
|
|
904
2028
|
return contents;
|
|
905
2029
|
};
|
|
906
|
-
exports.
|
|
907
|
-
const
|
|
2030
|
+
exports.de_DescribeOfferingCommand = de_DescribeOfferingCommand;
|
|
2031
|
+
const de_DescribeOfferingCommandError = async (output, context) => {
|
|
908
2032
|
const parsedOutput = {
|
|
909
2033
|
...output,
|
|
910
2034
|
body: await parseErrorBody(output.body, context),
|
|
@@ -914,15 +2038,12 @@ const de_CreateFlowCommandError = async (output, context) => {
|
|
|
914
2038
|
case "BadRequestException":
|
|
915
2039
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
916
2040
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
917
|
-
case "CreateFlow420Exception":
|
|
918
|
-
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
919
|
-
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ForbiddenException":
|
|
921
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
922
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
923
2041
|
case "InternalServerErrorException":
|
|
924
2042
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
925
2043
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2044
|
+
case "NotFoundException":
|
|
2045
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2046
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
926
2047
|
case "ServiceUnavailableException":
|
|
927
2048
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
928
2049
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -939,24 +2060,21 @@ const de_CreateFlowCommandError = async (output, context) => {
|
|
|
939
2060
|
});
|
|
940
2061
|
}
|
|
941
2062
|
};
|
|
942
|
-
const
|
|
943
|
-
if (output.statusCode !==
|
|
944
|
-
return
|
|
2063
|
+
const de_DescribeReservationCommand = async (output, context) => {
|
|
2064
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2065
|
+
return de_DescribeReservationCommandError(output, context);
|
|
945
2066
|
}
|
|
946
2067
|
const contents = map({
|
|
947
2068
|
$metadata: deserializeMetadata(output),
|
|
948
2069
|
});
|
|
949
2070
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
950
|
-
if (data.
|
|
951
|
-
contents.
|
|
952
|
-
}
|
|
953
|
-
if (data.status != null) {
|
|
954
|
-
contents.Status = (0, smithy_client_1.expectString)(data.status);
|
|
2071
|
+
if (data.reservation != null) {
|
|
2072
|
+
contents.Reservation = de_Reservation(data.reservation, context);
|
|
955
2073
|
}
|
|
956
2074
|
return contents;
|
|
957
2075
|
};
|
|
958
|
-
exports.
|
|
959
|
-
const
|
|
2076
|
+
exports.de_DescribeReservationCommand = de_DescribeReservationCommand;
|
|
2077
|
+
const de_DescribeReservationCommandError = async (output, context) => {
|
|
960
2078
|
const parsedOutput = {
|
|
961
2079
|
...output,
|
|
962
2080
|
body: await parseErrorBody(output.body, context),
|
|
@@ -966,9 +2084,6 @@ const de_DeleteFlowCommandError = async (output, context) => {
|
|
|
966
2084
|
case "BadRequestException":
|
|
967
2085
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
968
2086
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ForbiddenException":
|
|
970
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
971
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
972
2087
|
case "InternalServerErrorException":
|
|
973
2088
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
974
2089
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -991,24 +2106,24 @@ const de_DeleteFlowCommandError = async (output, context) => {
|
|
|
991
2106
|
});
|
|
992
2107
|
}
|
|
993
2108
|
};
|
|
994
|
-
const
|
|
2109
|
+
const de_GrantFlowEntitlementsCommand = async (output, context) => {
|
|
995
2110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
|
-
return
|
|
2111
|
+
return de_GrantFlowEntitlementsCommandError(output, context);
|
|
997
2112
|
}
|
|
998
2113
|
const contents = map({
|
|
999
2114
|
$metadata: deserializeMetadata(output),
|
|
1000
2115
|
});
|
|
1001
2116
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1002
|
-
if (data.
|
|
1003
|
-
contents.
|
|
2117
|
+
if (data.entitlements != null) {
|
|
2118
|
+
contents.Entitlements = de___listOfEntitlement(data.entitlements, context);
|
|
1004
2119
|
}
|
|
1005
|
-
if (data.
|
|
1006
|
-
contents.
|
|
2120
|
+
if (data.flowArn != null) {
|
|
2121
|
+
contents.FlowArn = (0, smithy_client_1.expectString)(data.flowArn);
|
|
1007
2122
|
}
|
|
1008
2123
|
return contents;
|
|
1009
2124
|
};
|
|
1010
|
-
exports.
|
|
1011
|
-
const
|
|
2125
|
+
exports.de_GrantFlowEntitlementsCommand = de_GrantFlowEntitlementsCommand;
|
|
2126
|
+
const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
1012
2127
|
const parsedOutput = {
|
|
1013
2128
|
...output,
|
|
1014
2129
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1021,6 +2136,9 @@ const de_DescribeFlowCommandError = async (output, context) => {
|
|
|
1021
2136
|
case "ForbiddenException":
|
|
1022
2137
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1023
2138
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2139
|
+
case "GrantFlowEntitlements420Exception":
|
|
2140
|
+
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
2141
|
+
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
1024
2142
|
case "InternalServerErrorException":
|
|
1025
2143
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1026
2144
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1043,21 +2161,24 @@ const de_DescribeFlowCommandError = async (output, context) => {
|
|
|
1043
2161
|
});
|
|
1044
2162
|
}
|
|
1045
2163
|
};
|
|
1046
|
-
const
|
|
2164
|
+
const de_ListBridgesCommand = async (output, context) => {
|
|
1047
2165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1048
|
-
return
|
|
2166
|
+
return de_ListBridgesCommandError(output, context);
|
|
1049
2167
|
}
|
|
1050
2168
|
const contents = map({
|
|
1051
2169
|
$metadata: deserializeMetadata(output),
|
|
1052
2170
|
});
|
|
1053
2171
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1054
|
-
if (data.
|
|
1055
|
-
contents.
|
|
2172
|
+
if (data.bridges != null) {
|
|
2173
|
+
contents.Bridges = de___listOfListedBridge(data.bridges, context);
|
|
2174
|
+
}
|
|
2175
|
+
if (data.nextToken != null) {
|
|
2176
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1056
2177
|
}
|
|
1057
2178
|
return contents;
|
|
1058
2179
|
};
|
|
1059
|
-
exports.
|
|
1060
|
-
const
|
|
2180
|
+
exports.de_ListBridgesCommand = de_ListBridgesCommand;
|
|
2181
|
+
const de_ListBridgesCommandError = async (output, context) => {
|
|
1061
2182
|
const parsedOutput = {
|
|
1062
2183
|
...output,
|
|
1063
2184
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1067,12 +2188,12 @@ const de_DescribeOfferingCommandError = async (output, context) => {
|
|
|
1067
2188
|
case "BadRequestException":
|
|
1068
2189
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1069
2190
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2191
|
+
case "ConflictException":
|
|
2192
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2193
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1070
2194
|
case "InternalServerErrorException":
|
|
1071
2195
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1072
2196
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "NotFoundException":
|
|
1074
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1075
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1076
2197
|
case "ServiceUnavailableException":
|
|
1077
2198
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1078
2199
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1089,21 +2210,24 @@ const de_DescribeOfferingCommandError = async (output, context) => {
|
|
|
1089
2210
|
});
|
|
1090
2211
|
}
|
|
1091
2212
|
};
|
|
1092
|
-
const
|
|
2213
|
+
const de_ListEntitlementsCommand = async (output, context) => {
|
|
1093
2214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1094
|
-
return
|
|
2215
|
+
return de_ListEntitlementsCommandError(output, context);
|
|
1095
2216
|
}
|
|
1096
2217
|
const contents = map({
|
|
1097
2218
|
$metadata: deserializeMetadata(output),
|
|
1098
2219
|
});
|
|
1099
2220
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1100
|
-
if (data.
|
|
1101
|
-
contents.
|
|
2221
|
+
if (data.entitlements != null) {
|
|
2222
|
+
contents.Entitlements = de___listOfListedEntitlement(data.entitlements, context);
|
|
2223
|
+
}
|
|
2224
|
+
if (data.nextToken != null) {
|
|
2225
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1102
2226
|
}
|
|
1103
2227
|
return contents;
|
|
1104
2228
|
};
|
|
1105
|
-
exports.
|
|
1106
|
-
const
|
|
2229
|
+
exports.de_ListEntitlementsCommand = de_ListEntitlementsCommand;
|
|
2230
|
+
const de_ListEntitlementsCommandError = async (output, context) => {
|
|
1107
2231
|
const parsedOutput = {
|
|
1108
2232
|
...output,
|
|
1109
2233
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1116,9 +2240,6 @@ const de_DescribeReservationCommandError = async (output, context) => {
|
|
|
1116
2240
|
case "InternalServerErrorException":
|
|
1117
2241
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1118
2242
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "NotFoundException":
|
|
1120
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1121
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1122
2243
|
case "ServiceUnavailableException":
|
|
1123
2244
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1124
2245
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1135,24 +2256,24 @@ const de_DescribeReservationCommandError = async (output, context) => {
|
|
|
1135
2256
|
});
|
|
1136
2257
|
}
|
|
1137
2258
|
};
|
|
1138
|
-
const
|
|
2259
|
+
const de_ListFlowsCommand = async (output, context) => {
|
|
1139
2260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1140
|
-
return
|
|
2261
|
+
return de_ListFlowsCommandError(output, context);
|
|
1141
2262
|
}
|
|
1142
2263
|
const contents = map({
|
|
1143
2264
|
$metadata: deserializeMetadata(output),
|
|
1144
2265
|
});
|
|
1145
2266
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1146
|
-
if (data.
|
|
1147
|
-
contents.
|
|
2267
|
+
if (data.flows != null) {
|
|
2268
|
+
contents.Flows = de___listOfListedFlow(data.flows, context);
|
|
1148
2269
|
}
|
|
1149
|
-
if (data.
|
|
1150
|
-
contents.
|
|
2270
|
+
if (data.nextToken != null) {
|
|
2271
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1151
2272
|
}
|
|
1152
2273
|
return contents;
|
|
1153
2274
|
};
|
|
1154
|
-
exports.
|
|
1155
|
-
const
|
|
2275
|
+
exports.de_ListFlowsCommand = de_ListFlowsCommand;
|
|
2276
|
+
const de_ListFlowsCommandError = async (output, context) => {
|
|
1156
2277
|
const parsedOutput = {
|
|
1157
2278
|
...output,
|
|
1158
2279
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1162,18 +2283,9 @@ const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
|
1162
2283
|
case "BadRequestException":
|
|
1163
2284
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1164
2285
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ForbiddenException":
|
|
1166
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1167
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "GrantFlowEntitlements420Exception":
|
|
1169
|
-
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
1170
|
-
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
1171
2286
|
case "InternalServerErrorException":
|
|
1172
2287
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1173
2288
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "NotFoundException":
|
|
1175
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1176
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1177
2289
|
case "ServiceUnavailableException":
|
|
1178
2290
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1179
2291
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1190,24 +2302,24 @@ const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
|
1190
2302
|
});
|
|
1191
2303
|
}
|
|
1192
2304
|
};
|
|
1193
|
-
const
|
|
2305
|
+
const de_ListGatewayInstancesCommand = async (output, context) => {
|
|
1194
2306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1195
|
-
return
|
|
2307
|
+
return de_ListGatewayInstancesCommandError(output, context);
|
|
1196
2308
|
}
|
|
1197
2309
|
const contents = map({
|
|
1198
2310
|
$metadata: deserializeMetadata(output),
|
|
1199
2311
|
});
|
|
1200
2312
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1201
|
-
if (data.
|
|
1202
|
-
contents.
|
|
2313
|
+
if (data.instances != null) {
|
|
2314
|
+
contents.Instances = de___listOfListedGatewayInstance(data.instances, context);
|
|
1203
2315
|
}
|
|
1204
2316
|
if (data.nextToken != null) {
|
|
1205
2317
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1206
2318
|
}
|
|
1207
2319
|
return contents;
|
|
1208
2320
|
};
|
|
1209
|
-
exports.
|
|
1210
|
-
const
|
|
2321
|
+
exports.de_ListGatewayInstancesCommand = de_ListGatewayInstancesCommand;
|
|
2322
|
+
const de_ListGatewayInstancesCommandError = async (output, context) => {
|
|
1211
2323
|
const parsedOutput = {
|
|
1212
2324
|
...output,
|
|
1213
2325
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1217,6 +2329,9 @@ const de_ListEntitlementsCommandError = async (output, context) => {
|
|
|
1217
2329
|
case "BadRequestException":
|
|
1218
2330
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1219
2331
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2332
|
+
case "ConflictException":
|
|
2333
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2334
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1220
2335
|
case "InternalServerErrorException":
|
|
1221
2336
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1222
2337
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1236,24 +2351,24 @@ const de_ListEntitlementsCommandError = async (output, context) => {
|
|
|
1236
2351
|
});
|
|
1237
2352
|
}
|
|
1238
2353
|
};
|
|
1239
|
-
const
|
|
2354
|
+
const de_ListGatewaysCommand = async (output, context) => {
|
|
1240
2355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1241
|
-
return
|
|
2356
|
+
return de_ListGatewaysCommandError(output, context);
|
|
1242
2357
|
}
|
|
1243
2358
|
const contents = map({
|
|
1244
2359
|
$metadata: deserializeMetadata(output),
|
|
1245
2360
|
});
|
|
1246
2361
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1247
|
-
if (data.
|
|
1248
|
-
contents.
|
|
2362
|
+
if (data.gateways != null) {
|
|
2363
|
+
contents.Gateways = de___listOfListedGateway(data.gateways, context);
|
|
1249
2364
|
}
|
|
1250
2365
|
if (data.nextToken != null) {
|
|
1251
2366
|
contents.NextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1252
2367
|
}
|
|
1253
2368
|
return contents;
|
|
1254
2369
|
};
|
|
1255
|
-
exports.
|
|
1256
|
-
const
|
|
2370
|
+
exports.de_ListGatewaysCommand = de_ListGatewaysCommand;
|
|
2371
|
+
const de_ListGatewaysCommandError = async (output, context) => {
|
|
1257
2372
|
const parsedOutput = {
|
|
1258
2373
|
...output,
|
|
1259
2374
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1263,6 +2378,9 @@ const de_ListFlowsCommandError = async (output, context) => {
|
|
|
1263
2378
|
case "BadRequestException":
|
|
1264
2379
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1265
2380
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2381
|
+
case "ConflictException":
|
|
2382
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2383
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1266
2384
|
case "InternalServerErrorException":
|
|
1267
2385
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1268
2386
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1414,21 +2532,128 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1414
2532
|
});
|
|
1415
2533
|
}
|
|
1416
2534
|
};
|
|
1417
|
-
const de_PurchaseOfferingCommand = async (output, context) => {
|
|
1418
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1419
|
-
return de_PurchaseOfferingCommandError(output, context);
|
|
2535
|
+
const de_PurchaseOfferingCommand = async (output, context) => {
|
|
2536
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2537
|
+
return de_PurchaseOfferingCommandError(output, context);
|
|
2538
|
+
}
|
|
2539
|
+
const contents = map({
|
|
2540
|
+
$metadata: deserializeMetadata(output),
|
|
2541
|
+
});
|
|
2542
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2543
|
+
if (data.reservation != null) {
|
|
2544
|
+
contents.Reservation = de_Reservation(data.reservation, context);
|
|
2545
|
+
}
|
|
2546
|
+
return contents;
|
|
2547
|
+
};
|
|
2548
|
+
exports.de_PurchaseOfferingCommand = de_PurchaseOfferingCommand;
|
|
2549
|
+
const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
2550
|
+
const parsedOutput = {
|
|
2551
|
+
...output,
|
|
2552
|
+
body: await parseErrorBody(output.body, context),
|
|
2553
|
+
};
|
|
2554
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2555
|
+
switch (errorCode) {
|
|
2556
|
+
case "BadRequestException":
|
|
2557
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2558
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2559
|
+
case "ForbiddenException":
|
|
2560
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2561
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2562
|
+
case "InternalServerErrorException":
|
|
2563
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2564
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2565
|
+
case "NotFoundException":
|
|
2566
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2567
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2568
|
+
case "ServiceUnavailableException":
|
|
2569
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2570
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2571
|
+
case "TooManyRequestsException":
|
|
2572
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2573
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2574
|
+
default:
|
|
2575
|
+
const parsedBody = parsedOutput.body;
|
|
2576
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2577
|
+
output,
|
|
2578
|
+
parsedBody,
|
|
2579
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
2580
|
+
errorCode,
|
|
2581
|
+
});
|
|
2582
|
+
}
|
|
2583
|
+
};
|
|
2584
|
+
const de_RemoveBridgeOutputCommand = async (output, context) => {
|
|
2585
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2586
|
+
return de_RemoveBridgeOutputCommandError(output, context);
|
|
2587
|
+
}
|
|
2588
|
+
const contents = map({
|
|
2589
|
+
$metadata: deserializeMetadata(output),
|
|
2590
|
+
});
|
|
2591
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2592
|
+
if (data.bridgeArn != null) {
|
|
2593
|
+
contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
|
|
2594
|
+
}
|
|
2595
|
+
if (data.outputName != null) {
|
|
2596
|
+
contents.OutputName = (0, smithy_client_1.expectString)(data.outputName);
|
|
2597
|
+
}
|
|
2598
|
+
return contents;
|
|
2599
|
+
};
|
|
2600
|
+
exports.de_RemoveBridgeOutputCommand = de_RemoveBridgeOutputCommand;
|
|
2601
|
+
const de_RemoveBridgeOutputCommandError = async (output, context) => {
|
|
2602
|
+
const parsedOutput = {
|
|
2603
|
+
...output,
|
|
2604
|
+
body: await parseErrorBody(output.body, context),
|
|
2605
|
+
};
|
|
2606
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2607
|
+
switch (errorCode) {
|
|
2608
|
+
case "BadRequestException":
|
|
2609
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2610
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2611
|
+
case "ConflictException":
|
|
2612
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2613
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2614
|
+
case "ForbiddenException":
|
|
2615
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2616
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2617
|
+
case "InternalServerErrorException":
|
|
2618
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2619
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2620
|
+
case "NotFoundException":
|
|
2621
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2622
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2623
|
+
case "ServiceUnavailableException":
|
|
2624
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2625
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2626
|
+
case "TooManyRequestsException":
|
|
2627
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2628
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2629
|
+
default:
|
|
2630
|
+
const parsedBody = parsedOutput.body;
|
|
2631
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2632
|
+
output,
|
|
2633
|
+
parsedBody,
|
|
2634
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
2635
|
+
errorCode,
|
|
2636
|
+
});
|
|
2637
|
+
}
|
|
2638
|
+
};
|
|
2639
|
+
const de_RemoveBridgeSourceCommand = async (output, context) => {
|
|
2640
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2641
|
+
return de_RemoveBridgeSourceCommandError(output, context);
|
|
1420
2642
|
}
|
|
1421
2643
|
const contents = map({
|
|
1422
2644
|
$metadata: deserializeMetadata(output),
|
|
1423
2645
|
});
|
|
1424
2646
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1425
|
-
if (data.
|
|
1426
|
-
contents.
|
|
2647
|
+
if (data.bridgeArn != null) {
|
|
2648
|
+
contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
|
|
2649
|
+
}
|
|
2650
|
+
if (data.sourceName != null) {
|
|
2651
|
+
contents.SourceName = (0, smithy_client_1.expectString)(data.sourceName);
|
|
1427
2652
|
}
|
|
1428
2653
|
return contents;
|
|
1429
2654
|
};
|
|
1430
|
-
exports.
|
|
1431
|
-
const
|
|
2655
|
+
exports.de_RemoveBridgeSourceCommand = de_RemoveBridgeSourceCommand;
|
|
2656
|
+
const de_RemoveBridgeSourceCommandError = async (output, context) => {
|
|
1432
2657
|
const parsedOutput = {
|
|
1433
2658
|
...output,
|
|
1434
2659
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1438,6 +2663,9 @@ const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
|
1438
2663
|
case "BadRequestException":
|
|
1439
2664
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1440
2665
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2666
|
+
case "ConflictException":
|
|
2667
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2668
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1441
2669
|
case "ForbiddenException":
|
|
1442
2670
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1443
2671
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -1904,6 +3132,223 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1904
3132
|
});
|
|
1905
3133
|
}
|
|
1906
3134
|
};
|
|
3135
|
+
const de_UpdateBridgeCommand = async (output, context) => {
|
|
3136
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3137
|
+
return de_UpdateBridgeCommandError(output, context);
|
|
3138
|
+
}
|
|
3139
|
+
const contents = map({
|
|
3140
|
+
$metadata: deserializeMetadata(output),
|
|
3141
|
+
});
|
|
3142
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3143
|
+
if (data.bridge != null) {
|
|
3144
|
+
contents.Bridge = de_Bridge(data.bridge, context);
|
|
3145
|
+
}
|
|
3146
|
+
return contents;
|
|
3147
|
+
};
|
|
3148
|
+
exports.de_UpdateBridgeCommand = de_UpdateBridgeCommand;
|
|
3149
|
+
const de_UpdateBridgeCommandError = async (output, context) => {
|
|
3150
|
+
const parsedOutput = {
|
|
3151
|
+
...output,
|
|
3152
|
+
body: await parseErrorBody(output.body, context),
|
|
3153
|
+
};
|
|
3154
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3155
|
+
switch (errorCode) {
|
|
3156
|
+
case "BadRequestException":
|
|
3157
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3158
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3159
|
+
case "ConflictException":
|
|
3160
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3161
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3162
|
+
case "ForbiddenException":
|
|
3163
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3164
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3165
|
+
case "InternalServerErrorException":
|
|
3166
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3167
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3168
|
+
case "NotFoundException":
|
|
3169
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3170
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3171
|
+
case "ServiceUnavailableException":
|
|
3172
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3173
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3174
|
+
case "TooManyRequestsException":
|
|
3175
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3176
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3177
|
+
default:
|
|
3178
|
+
const parsedBody = parsedOutput.body;
|
|
3179
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3180
|
+
output,
|
|
3181
|
+
parsedBody,
|
|
3182
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
3183
|
+
errorCode,
|
|
3184
|
+
});
|
|
3185
|
+
}
|
|
3186
|
+
};
|
|
3187
|
+
const de_UpdateBridgeOutputCommand = async (output, context) => {
|
|
3188
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3189
|
+
return de_UpdateBridgeOutputCommandError(output, context);
|
|
3190
|
+
}
|
|
3191
|
+
const contents = map({
|
|
3192
|
+
$metadata: deserializeMetadata(output),
|
|
3193
|
+
});
|
|
3194
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3195
|
+
if (data.bridgeArn != null) {
|
|
3196
|
+
contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
|
|
3197
|
+
}
|
|
3198
|
+
if (data.output != null) {
|
|
3199
|
+
contents.Output = de_BridgeOutput(data.output, context);
|
|
3200
|
+
}
|
|
3201
|
+
return contents;
|
|
3202
|
+
};
|
|
3203
|
+
exports.de_UpdateBridgeOutputCommand = de_UpdateBridgeOutputCommand;
|
|
3204
|
+
const de_UpdateBridgeOutputCommandError = async (output, context) => {
|
|
3205
|
+
const parsedOutput = {
|
|
3206
|
+
...output,
|
|
3207
|
+
body: await parseErrorBody(output.body, context),
|
|
3208
|
+
};
|
|
3209
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3210
|
+
switch (errorCode) {
|
|
3211
|
+
case "BadRequestException":
|
|
3212
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3213
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3214
|
+
case "ConflictException":
|
|
3215
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3216
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3217
|
+
case "ForbiddenException":
|
|
3218
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3219
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3220
|
+
case "InternalServerErrorException":
|
|
3221
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3222
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3223
|
+
case "NotFoundException":
|
|
3224
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3225
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3226
|
+
case "ServiceUnavailableException":
|
|
3227
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3228
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3229
|
+
case "TooManyRequestsException":
|
|
3230
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3231
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3232
|
+
default:
|
|
3233
|
+
const parsedBody = parsedOutput.body;
|
|
3234
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3235
|
+
output,
|
|
3236
|
+
parsedBody,
|
|
3237
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
3238
|
+
errorCode,
|
|
3239
|
+
});
|
|
3240
|
+
}
|
|
3241
|
+
};
|
|
3242
|
+
const de_UpdateBridgeSourceCommand = async (output, context) => {
|
|
3243
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3244
|
+
return de_UpdateBridgeSourceCommandError(output, context);
|
|
3245
|
+
}
|
|
3246
|
+
const contents = map({
|
|
3247
|
+
$metadata: deserializeMetadata(output),
|
|
3248
|
+
});
|
|
3249
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3250
|
+
if (data.bridgeArn != null) {
|
|
3251
|
+
contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
|
|
3252
|
+
}
|
|
3253
|
+
if (data.source != null) {
|
|
3254
|
+
contents.Source = de_BridgeSource(data.source, context);
|
|
3255
|
+
}
|
|
3256
|
+
return contents;
|
|
3257
|
+
};
|
|
3258
|
+
exports.de_UpdateBridgeSourceCommand = de_UpdateBridgeSourceCommand;
|
|
3259
|
+
const de_UpdateBridgeSourceCommandError = async (output, context) => {
|
|
3260
|
+
const parsedOutput = {
|
|
3261
|
+
...output,
|
|
3262
|
+
body: await parseErrorBody(output.body, context),
|
|
3263
|
+
};
|
|
3264
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3265
|
+
switch (errorCode) {
|
|
3266
|
+
case "BadRequestException":
|
|
3267
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3268
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3269
|
+
case "ConflictException":
|
|
3270
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3271
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3272
|
+
case "ForbiddenException":
|
|
3273
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3274
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3275
|
+
case "InternalServerErrorException":
|
|
3276
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3277
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3278
|
+
case "NotFoundException":
|
|
3279
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3280
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3281
|
+
case "ServiceUnavailableException":
|
|
3282
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3283
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3284
|
+
case "TooManyRequestsException":
|
|
3285
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3286
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3287
|
+
default:
|
|
3288
|
+
const parsedBody = parsedOutput.body;
|
|
3289
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3290
|
+
output,
|
|
3291
|
+
parsedBody,
|
|
3292
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
3293
|
+
errorCode,
|
|
3294
|
+
});
|
|
3295
|
+
}
|
|
3296
|
+
};
|
|
3297
|
+
const de_UpdateBridgeStateCommand = async (output, context) => {
|
|
3298
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3299
|
+
return de_UpdateBridgeStateCommandError(output, context);
|
|
3300
|
+
}
|
|
3301
|
+
const contents = map({
|
|
3302
|
+
$metadata: deserializeMetadata(output),
|
|
3303
|
+
});
|
|
3304
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3305
|
+
if (data.bridgeArn != null) {
|
|
3306
|
+
contents.BridgeArn = (0, smithy_client_1.expectString)(data.bridgeArn);
|
|
3307
|
+
}
|
|
3308
|
+
if (data.desiredState != null) {
|
|
3309
|
+
contents.DesiredState = (0, smithy_client_1.expectString)(data.desiredState);
|
|
3310
|
+
}
|
|
3311
|
+
return contents;
|
|
3312
|
+
};
|
|
3313
|
+
exports.de_UpdateBridgeStateCommand = de_UpdateBridgeStateCommand;
|
|
3314
|
+
const de_UpdateBridgeStateCommandError = async (output, context) => {
|
|
3315
|
+
const parsedOutput = {
|
|
3316
|
+
...output,
|
|
3317
|
+
body: await parseErrorBody(output.body, context),
|
|
3318
|
+
};
|
|
3319
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3320
|
+
switch (errorCode) {
|
|
3321
|
+
case "BadRequestException":
|
|
3322
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3323
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3324
|
+
case "ConflictException":
|
|
3325
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3326
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3327
|
+
case "ForbiddenException":
|
|
3328
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3329
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3330
|
+
case "InternalServerErrorException":
|
|
3331
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3332
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3333
|
+
case "NotFoundException":
|
|
3334
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3335
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3336
|
+
case "ServiceUnavailableException":
|
|
3337
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3338
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3339
|
+
case "TooManyRequestsException":
|
|
3340
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3341
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3342
|
+
default:
|
|
3343
|
+
const parsedBody = parsedOutput.body;
|
|
3344
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3345
|
+
output,
|
|
3346
|
+
parsedBody,
|
|
3347
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
3348
|
+
errorCode,
|
|
3349
|
+
});
|
|
3350
|
+
}
|
|
3351
|
+
};
|
|
1907
3352
|
const de_UpdateFlowCommand = async (output, context) => {
|
|
1908
3353
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1909
3354
|
return de_UpdateFlowCommandError(output, context);
|
|
@@ -2161,26 +3606,105 @@ const de_UpdateFlowSourceCommandError = async (output, context) => {
|
|
|
2161
3606
|
});
|
|
2162
3607
|
}
|
|
2163
3608
|
};
|
|
2164
|
-
const
|
|
2165
|
-
|
|
3609
|
+
const de_UpdateGatewayInstanceCommand = async (output, context) => {
|
|
3610
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3611
|
+
return de_UpdateGatewayInstanceCommandError(output, context);
|
|
3612
|
+
}
|
|
3613
|
+
const contents = map({
|
|
3614
|
+
$metadata: deserializeMetadata(output),
|
|
3615
|
+
});
|
|
3616
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3617
|
+
if (data.bridgePlacement != null) {
|
|
3618
|
+
contents.BridgePlacement = (0, smithy_client_1.expectString)(data.bridgePlacement);
|
|
3619
|
+
}
|
|
3620
|
+
if (data.gatewayInstanceArn != null) {
|
|
3621
|
+
contents.GatewayInstanceArn = (0, smithy_client_1.expectString)(data.gatewayInstanceArn);
|
|
3622
|
+
}
|
|
3623
|
+
return contents;
|
|
3624
|
+
};
|
|
3625
|
+
exports.de_UpdateGatewayInstanceCommand = de_UpdateGatewayInstanceCommand;
|
|
3626
|
+
const de_UpdateGatewayInstanceCommandError = async (output, context) => {
|
|
3627
|
+
const parsedOutput = {
|
|
3628
|
+
...output,
|
|
3629
|
+
body: await parseErrorBody(output.body, context),
|
|
3630
|
+
};
|
|
3631
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3632
|
+
switch (errorCode) {
|
|
3633
|
+
case "BadRequestException":
|
|
3634
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3635
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3636
|
+
case "ConflictException":
|
|
3637
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3638
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3639
|
+
case "ForbiddenException":
|
|
3640
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3641
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3642
|
+
case "InternalServerErrorException":
|
|
3643
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3644
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3645
|
+
case "NotFoundException":
|
|
3646
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3647
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3648
|
+
case "ServiceUnavailableException":
|
|
3649
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3650
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3651
|
+
case "TooManyRequestsException":
|
|
3652
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3653
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3654
|
+
default:
|
|
3655
|
+
const parsedBody = parsedOutput.body;
|
|
3656
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3657
|
+
output,
|
|
3658
|
+
parsedBody,
|
|
3659
|
+
exceptionCtor: MediaConnectServiceException_1.MediaConnectServiceException,
|
|
3660
|
+
errorCode,
|
|
3661
|
+
});
|
|
3662
|
+
}
|
|
3663
|
+
};
|
|
3664
|
+
const map = smithy_client_1.map;
|
|
3665
|
+
const de_AddFlowOutputs420ExceptionRes = async (parsedOutput, context) => {
|
|
3666
|
+
const contents = map({});
|
|
3667
|
+
const data = parsedOutput.body;
|
|
3668
|
+
if (data.message != null) {
|
|
3669
|
+
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
3670
|
+
}
|
|
3671
|
+
const exception = new models_0_1.AddFlowOutputs420Exception({
|
|
3672
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3673
|
+
...contents,
|
|
3674
|
+
});
|
|
3675
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3676
|
+
};
|
|
3677
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3678
|
+
const contents = map({});
|
|
3679
|
+
const data = parsedOutput.body;
|
|
3680
|
+
if (data.message != null) {
|
|
3681
|
+
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
3682
|
+
}
|
|
3683
|
+
const exception = new models_0_1.BadRequestException({
|
|
3684
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3685
|
+
...contents,
|
|
3686
|
+
});
|
|
3687
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3688
|
+
};
|
|
3689
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2166
3690
|
const contents = map({});
|
|
2167
3691
|
const data = parsedOutput.body;
|
|
2168
3692
|
if (data.message != null) {
|
|
2169
3693
|
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
2170
3694
|
}
|
|
2171
|
-
const exception = new models_0_1.
|
|
3695
|
+
const exception = new models_0_1.ConflictException({
|
|
2172
3696
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2173
3697
|
...contents,
|
|
2174
3698
|
});
|
|
2175
3699
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2176
3700
|
};
|
|
2177
|
-
const
|
|
3701
|
+
const de_CreateBridge420ExceptionRes = async (parsedOutput, context) => {
|
|
2178
3702
|
const contents = map({});
|
|
2179
3703
|
const data = parsedOutput.body;
|
|
2180
3704
|
if (data.message != null) {
|
|
2181
3705
|
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
2182
3706
|
}
|
|
2183
|
-
const exception = new models_0_1.
|
|
3707
|
+
const exception = new models_0_1.CreateBridge420Exception({
|
|
2184
3708
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2185
3709
|
...contents,
|
|
2186
3710
|
});
|
|
@@ -2198,6 +3722,18 @@ const de_CreateFlow420ExceptionRes = async (parsedOutput, context) => {
|
|
|
2198
3722
|
});
|
|
2199
3723
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2200
3724
|
};
|
|
3725
|
+
const de_CreateGateway420ExceptionRes = async (parsedOutput, context) => {
|
|
3726
|
+
const contents = map({});
|
|
3727
|
+
const data = parsedOutput.body;
|
|
3728
|
+
if (data.message != null) {
|
|
3729
|
+
contents.Message = (0, smithy_client_1.expectString)(data.message);
|
|
3730
|
+
}
|
|
3731
|
+
const exception = new models_0_1.CreateGateway420Exception({
|
|
3732
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3733
|
+
...contents,
|
|
3734
|
+
});
|
|
3735
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3736
|
+
};
|
|
2201
3737
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2202
3738
|
const contents = map({});
|
|
2203
3739
|
const data = parsedOutput.body;
|
|
@@ -2277,6 +3813,20 @@ const se___listOf__string = (input, context) => {
|
|
|
2277
3813
|
return entry;
|
|
2278
3814
|
});
|
|
2279
3815
|
};
|
|
3816
|
+
const se___listOfAddBridgeOutputRequest = (input, context) => {
|
|
3817
|
+
return input
|
|
3818
|
+
.filter((e) => e != null)
|
|
3819
|
+
.map((entry) => {
|
|
3820
|
+
return se_AddBridgeOutputRequest(entry, context);
|
|
3821
|
+
});
|
|
3822
|
+
};
|
|
3823
|
+
const se___listOfAddBridgeSourceRequest = (input, context) => {
|
|
3824
|
+
return input
|
|
3825
|
+
.filter((e) => e != null)
|
|
3826
|
+
.map((entry) => {
|
|
3827
|
+
return se_AddBridgeSourceRequest(entry, context);
|
|
3828
|
+
});
|
|
3829
|
+
};
|
|
2280
3830
|
const se___listOfAddMediaStreamRequest = (input, context) => {
|
|
2281
3831
|
return input
|
|
2282
3832
|
.filter((e) => e != null)
|
|
@@ -2298,6 +3848,13 @@ const se___listOfDestinationConfigurationRequest = (input, context) => {
|
|
|
2298
3848
|
return se_DestinationConfigurationRequest(entry, context);
|
|
2299
3849
|
});
|
|
2300
3850
|
};
|
|
3851
|
+
const se___listOfGatewayNetwork = (input, context) => {
|
|
3852
|
+
return input
|
|
3853
|
+
.filter((e) => e != null)
|
|
3854
|
+
.map((entry) => {
|
|
3855
|
+
return se_GatewayNetwork(entry, context);
|
|
3856
|
+
});
|
|
3857
|
+
};
|
|
2301
3858
|
const se___listOfGrantEntitlementRequest = (input, context) => {
|
|
2302
3859
|
return input
|
|
2303
3860
|
.filter((e) => e != null)
|
|
@@ -2349,6 +3906,60 @@ const se___mapOf__string = (input, context) => {
|
|
|
2349
3906
|
return acc;
|
|
2350
3907
|
}, {});
|
|
2351
3908
|
};
|
|
3909
|
+
const se_AddBridgeFlowSourceRequest = (input, context) => {
|
|
3910
|
+
return {
|
|
3911
|
+
...(input.FlowArn != null && { flowArn: input.FlowArn }),
|
|
3912
|
+
...(input.FlowVpcInterfaceAttachment != null && {
|
|
3913
|
+
flowVpcInterfaceAttachment: se_VpcInterfaceAttachment(input.FlowVpcInterfaceAttachment, context),
|
|
3914
|
+
}),
|
|
3915
|
+
...(input.Name != null && { name: input.Name }),
|
|
3916
|
+
};
|
|
3917
|
+
};
|
|
3918
|
+
const se_AddBridgeNetworkOutputRequest = (input, context) => {
|
|
3919
|
+
return {
|
|
3920
|
+
...(input.IpAddress != null && { ipAddress: input.IpAddress }),
|
|
3921
|
+
...(input.Name != null && { name: input.Name }),
|
|
3922
|
+
...(input.NetworkName != null && { networkName: input.NetworkName }),
|
|
3923
|
+
...(input.Port != null && { port: input.Port }),
|
|
3924
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
3925
|
+
...(input.Ttl != null && { ttl: input.Ttl }),
|
|
3926
|
+
};
|
|
3927
|
+
};
|
|
3928
|
+
const se_AddBridgeNetworkSourceRequest = (input, context) => {
|
|
3929
|
+
return {
|
|
3930
|
+
...(input.MulticastIp != null && { multicastIp: input.MulticastIp }),
|
|
3931
|
+
...(input.Name != null && { name: input.Name }),
|
|
3932
|
+
...(input.NetworkName != null && { networkName: input.NetworkName }),
|
|
3933
|
+
...(input.Port != null && { port: input.Port }),
|
|
3934
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
3935
|
+
};
|
|
3936
|
+
};
|
|
3937
|
+
const se_AddBridgeOutputRequest = (input, context) => {
|
|
3938
|
+
return {
|
|
3939
|
+
...(input.NetworkOutput != null && {
|
|
3940
|
+
networkOutput: se_AddBridgeNetworkOutputRequest(input.NetworkOutput, context),
|
|
3941
|
+
}),
|
|
3942
|
+
};
|
|
3943
|
+
};
|
|
3944
|
+
const se_AddBridgeSourceRequest = (input, context) => {
|
|
3945
|
+
return {
|
|
3946
|
+
...(input.FlowSource != null && { flowSource: se_AddBridgeFlowSourceRequest(input.FlowSource, context) }),
|
|
3947
|
+
...(input.NetworkSource != null && {
|
|
3948
|
+
networkSource: se_AddBridgeNetworkSourceRequest(input.NetworkSource, context),
|
|
3949
|
+
}),
|
|
3950
|
+
};
|
|
3951
|
+
};
|
|
3952
|
+
const se_AddEgressGatewayBridgeRequest = (input, context) => {
|
|
3953
|
+
return {
|
|
3954
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
3955
|
+
};
|
|
3956
|
+
};
|
|
3957
|
+
const se_AddIngressGatewayBridgeRequest = (input, context) => {
|
|
3958
|
+
return {
|
|
3959
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
3960
|
+
...(input.MaxOutputs != null && { maxOutputs: input.MaxOutputs }),
|
|
3961
|
+
};
|
|
3962
|
+
};
|
|
2352
3963
|
const se_AddMaintenance = (input, context) => {
|
|
2353
3964
|
return {
|
|
2354
3965
|
...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
|
|
@@ -2436,6 +4047,12 @@ const se_FmtpRequest = (input, context) => {
|
|
|
2436
4047
|
...(input.Tcs != null && { tcs: input.Tcs }),
|
|
2437
4048
|
};
|
|
2438
4049
|
};
|
|
4050
|
+
const se_GatewayNetwork = (input, context) => {
|
|
4051
|
+
return {
|
|
4052
|
+
...(input.CidrBlock != null && { cidrBlock: input.CidrBlock }),
|
|
4053
|
+
...(input.Name != null && { name: input.Name }),
|
|
4054
|
+
};
|
|
4055
|
+
};
|
|
2439
4056
|
const se_GrantEntitlementRequest = (input, context) => {
|
|
2440
4057
|
return {
|
|
2441
4058
|
...(input.DataTransferSubscriberFeePercent != null && {
|
|
@@ -2486,11 +4103,22 @@ const se_MediaStreamSourceConfigurationRequest = (input, context) => {
|
|
|
2486
4103
|
...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
|
|
2487
4104
|
};
|
|
2488
4105
|
};
|
|
4106
|
+
const se_SetGatewayBridgeSourceRequest = (input, context) => {
|
|
4107
|
+
return {
|
|
4108
|
+
...(input.BridgeArn != null && { bridgeArn: input.BridgeArn }),
|
|
4109
|
+
...(input.VpcInterfaceAttachment != null && {
|
|
4110
|
+
vpcInterfaceAttachment: se_VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
4111
|
+
}),
|
|
4112
|
+
};
|
|
4113
|
+
};
|
|
2489
4114
|
const se_SetSourceRequest = (input, context) => {
|
|
2490
4115
|
return {
|
|
2491
4116
|
...(input.Decryption != null && { decryption: se_Encryption(input.Decryption, context) }),
|
|
2492
4117
|
...(input.Description != null && { description: input.Description }),
|
|
2493
4118
|
...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
|
|
4119
|
+
...(input.GatewayBridgeSource != null && {
|
|
4120
|
+
gatewayBridgeSource: se_SetGatewayBridgeSourceRequest(input.GatewayBridgeSource, context),
|
|
4121
|
+
}),
|
|
2494
4122
|
...(input.IngestPort != null && { ingestPort: input.IngestPort }),
|
|
2495
4123
|
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
2496
4124
|
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
@@ -2515,6 +4143,36 @@ const se_SourcePriority = (input, context) => {
|
|
|
2515
4143
|
...(input.PrimarySource != null && { primarySource: input.PrimarySource }),
|
|
2516
4144
|
};
|
|
2517
4145
|
};
|
|
4146
|
+
const se_UpdateBridgeFlowSourceRequest = (input, context) => {
|
|
4147
|
+
return {
|
|
4148
|
+
...(input.FlowArn != null && { flowArn: input.FlowArn }),
|
|
4149
|
+
...(input.FlowVpcInterfaceAttachment != null && {
|
|
4150
|
+
flowVpcInterfaceAttachment: se_VpcInterfaceAttachment(input.FlowVpcInterfaceAttachment, context),
|
|
4151
|
+
}),
|
|
4152
|
+
};
|
|
4153
|
+
};
|
|
4154
|
+
const se_UpdateBridgeNetworkOutputRequest = (input, context) => {
|
|
4155
|
+
return {
|
|
4156
|
+
...(input.IpAddress != null && { ipAddress: input.IpAddress }),
|
|
4157
|
+
...(input.NetworkName != null && { networkName: input.NetworkName }),
|
|
4158
|
+
...(input.Port != null && { port: input.Port }),
|
|
4159
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
4160
|
+
...(input.Ttl != null && { ttl: input.Ttl }),
|
|
4161
|
+
};
|
|
4162
|
+
};
|
|
4163
|
+
const se_UpdateBridgeNetworkSourceRequest = (input, context) => {
|
|
4164
|
+
return {
|
|
4165
|
+
...(input.MulticastIp != null && { multicastIp: input.MulticastIp }),
|
|
4166
|
+
...(input.NetworkName != null && { networkName: input.NetworkName }),
|
|
4167
|
+
...(input.Port != null && { port: input.Port }),
|
|
4168
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
4169
|
+
};
|
|
4170
|
+
};
|
|
4171
|
+
const se_UpdateEgressGatewayBridgeRequest = (input, context) => {
|
|
4172
|
+
return {
|
|
4173
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
4174
|
+
};
|
|
4175
|
+
};
|
|
2518
4176
|
const se_UpdateEncryption = (input, context) => {
|
|
2519
4177
|
return {
|
|
2520
4178
|
...(input.Algorithm != null && { algorithm: input.Algorithm }),
|
|
@@ -2538,6 +4196,20 @@ const se_UpdateFailoverConfig = (input, context) => {
|
|
|
2538
4196
|
...(input.State != null && { state: input.State }),
|
|
2539
4197
|
};
|
|
2540
4198
|
};
|
|
4199
|
+
const se_UpdateGatewayBridgeSourceRequest = (input, context) => {
|
|
4200
|
+
return {
|
|
4201
|
+
...(input.BridgeArn != null && { bridgeArn: input.BridgeArn }),
|
|
4202
|
+
...(input.VpcInterfaceAttachment != null && {
|
|
4203
|
+
vpcInterfaceAttachment: se_VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
4204
|
+
}),
|
|
4205
|
+
};
|
|
4206
|
+
};
|
|
4207
|
+
const se_UpdateIngressGatewayBridgeRequest = (input, context) => {
|
|
4208
|
+
return {
|
|
4209
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
4210
|
+
...(input.MaxOutputs != null && { maxOutputs: input.MaxOutputs }),
|
|
4211
|
+
};
|
|
4212
|
+
};
|
|
2541
4213
|
const se_UpdateMaintenance = (input, context) => {
|
|
2542
4214
|
return {
|
|
2543
4215
|
...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
|
|
@@ -2559,6 +4231,17 @@ const se_VpcInterfaceRequest = (input, context) => {
|
|
|
2559
4231
|
...(input.SubnetId != null && { subnetId: input.SubnetId }),
|
|
2560
4232
|
};
|
|
2561
4233
|
};
|
|
4234
|
+
const de___listOf__integer = (output, context) => {
|
|
4235
|
+
const retVal = (output || [])
|
|
4236
|
+
.filter((e) => e != null)
|
|
4237
|
+
.map((entry) => {
|
|
4238
|
+
if (entry === null) {
|
|
4239
|
+
return null;
|
|
4240
|
+
}
|
|
4241
|
+
return (0, smithy_client_1.expectInt32)(entry);
|
|
4242
|
+
});
|
|
4243
|
+
return retVal;
|
|
4244
|
+
};
|
|
2562
4245
|
const de___listOf__string = (output, context) => {
|
|
2563
4246
|
const retVal = (output || [])
|
|
2564
4247
|
.filter((e) => e != null)
|
|
@@ -2570,6 +4253,28 @@ const de___listOf__string = (output, context) => {
|
|
|
2570
4253
|
});
|
|
2571
4254
|
return retVal;
|
|
2572
4255
|
};
|
|
4256
|
+
const de___listOfBridgeOutput = (output, context) => {
|
|
4257
|
+
const retVal = (output || [])
|
|
4258
|
+
.filter((e) => e != null)
|
|
4259
|
+
.map((entry) => {
|
|
4260
|
+
if (entry === null) {
|
|
4261
|
+
return null;
|
|
4262
|
+
}
|
|
4263
|
+
return de_BridgeOutput(entry, context);
|
|
4264
|
+
});
|
|
4265
|
+
return retVal;
|
|
4266
|
+
};
|
|
4267
|
+
const de___listOfBridgeSource = (output, context) => {
|
|
4268
|
+
const retVal = (output || [])
|
|
4269
|
+
.filter((e) => e != null)
|
|
4270
|
+
.map((entry) => {
|
|
4271
|
+
if (entry === null) {
|
|
4272
|
+
return null;
|
|
4273
|
+
}
|
|
4274
|
+
return de_BridgeSource(entry, context);
|
|
4275
|
+
});
|
|
4276
|
+
return retVal;
|
|
4277
|
+
};
|
|
2573
4278
|
const de___listOfDestinationConfiguration = (output, context) => {
|
|
2574
4279
|
const retVal = (output || [])
|
|
2575
4280
|
.filter((e) => e != null)
|
|
@@ -2592,6 +4297,17 @@ const de___listOfEntitlement = (output, context) => {
|
|
|
2592
4297
|
});
|
|
2593
4298
|
return retVal;
|
|
2594
4299
|
};
|
|
4300
|
+
const de___listOfGatewayNetwork = (output, context) => {
|
|
4301
|
+
const retVal = (output || [])
|
|
4302
|
+
.filter((e) => e != null)
|
|
4303
|
+
.map((entry) => {
|
|
4304
|
+
if (entry === null) {
|
|
4305
|
+
return null;
|
|
4306
|
+
}
|
|
4307
|
+
return de_GatewayNetwork(entry, context);
|
|
4308
|
+
});
|
|
4309
|
+
return retVal;
|
|
4310
|
+
};
|
|
2595
4311
|
const de___listOfInputConfiguration = (output, context) => {
|
|
2596
4312
|
const retVal = (output || [])
|
|
2597
4313
|
.filter((e) => e != null)
|
|
@@ -2603,6 +4319,17 @@ const de___listOfInputConfiguration = (output, context) => {
|
|
|
2603
4319
|
});
|
|
2604
4320
|
return retVal;
|
|
2605
4321
|
};
|
|
4322
|
+
const de___listOfListedBridge = (output, context) => {
|
|
4323
|
+
const retVal = (output || [])
|
|
4324
|
+
.filter((e) => e != null)
|
|
4325
|
+
.map((entry) => {
|
|
4326
|
+
if (entry === null) {
|
|
4327
|
+
return null;
|
|
4328
|
+
}
|
|
4329
|
+
return de_ListedBridge(entry, context);
|
|
4330
|
+
});
|
|
4331
|
+
return retVal;
|
|
4332
|
+
};
|
|
2606
4333
|
const de___listOfListedEntitlement = (output, context) => {
|
|
2607
4334
|
const retVal = (output || [])
|
|
2608
4335
|
.filter((e) => e != null)
|
|
@@ -2625,6 +4352,28 @@ const de___listOfListedFlow = (output, context) => {
|
|
|
2625
4352
|
});
|
|
2626
4353
|
return retVal;
|
|
2627
4354
|
};
|
|
4355
|
+
const de___listOfListedGateway = (output, context) => {
|
|
4356
|
+
const retVal = (output || [])
|
|
4357
|
+
.filter((e) => e != null)
|
|
4358
|
+
.map((entry) => {
|
|
4359
|
+
if (entry === null) {
|
|
4360
|
+
return null;
|
|
4361
|
+
}
|
|
4362
|
+
return de_ListedGateway(entry, context);
|
|
4363
|
+
});
|
|
4364
|
+
return retVal;
|
|
4365
|
+
};
|
|
4366
|
+
const de___listOfListedGatewayInstance = (output, context) => {
|
|
4367
|
+
const retVal = (output || [])
|
|
4368
|
+
.filter((e) => e != null)
|
|
4369
|
+
.map((entry) => {
|
|
4370
|
+
if (entry === null) {
|
|
4371
|
+
return null;
|
|
4372
|
+
}
|
|
4373
|
+
return de_ListedGatewayInstance(entry, context);
|
|
4374
|
+
});
|
|
4375
|
+
return retVal;
|
|
4376
|
+
};
|
|
2628
4377
|
const de___listOfMediaStream = (output, context) => {
|
|
2629
4378
|
const retVal = (output || [])
|
|
2630
4379
|
.filter((e) => e != null)
|
|
@@ -2658,6 +4407,17 @@ const de___listOfMediaStreamSourceConfiguration = (output, context) => {
|
|
|
2658
4407
|
});
|
|
2659
4408
|
return retVal;
|
|
2660
4409
|
};
|
|
4410
|
+
const de___listOfMessageDetail = (output, context) => {
|
|
4411
|
+
const retVal = (output || [])
|
|
4412
|
+
.filter((e) => e != null)
|
|
4413
|
+
.map((entry) => {
|
|
4414
|
+
if (entry === null) {
|
|
4415
|
+
return null;
|
|
4416
|
+
}
|
|
4417
|
+
return de_MessageDetail(entry, context);
|
|
4418
|
+
});
|
|
4419
|
+
return retVal;
|
|
4420
|
+
};
|
|
2661
4421
|
const de___listOfOffering = (output, context) => {
|
|
2662
4422
|
const retVal = (output || [])
|
|
2663
4423
|
.filter((e) => e != null)
|
|
@@ -2722,6 +4482,68 @@ const de___mapOf__string = (output, context) => {
|
|
|
2722
4482
|
return acc;
|
|
2723
4483
|
}, {});
|
|
2724
4484
|
};
|
|
4485
|
+
const de_Bridge = (output, context) => {
|
|
4486
|
+
return {
|
|
4487
|
+
BridgeArn: (0, smithy_client_1.expectString)(output.bridgeArn),
|
|
4488
|
+
BridgeMessages: output.bridgeMessages != null ? de___listOfMessageDetail(output.bridgeMessages, context) : undefined,
|
|
4489
|
+
BridgeState: (0, smithy_client_1.expectString)(output.bridgeState),
|
|
4490
|
+
EgressGatewayBridge: output.egressGatewayBridge != null ? de_EgressGatewayBridge(output.egressGatewayBridge, context) : undefined,
|
|
4491
|
+
IngressGatewayBridge: output.ingressGatewayBridge != null ? de_IngressGatewayBridge(output.ingressGatewayBridge, context) : undefined,
|
|
4492
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4493
|
+
Outputs: output.outputs != null ? de___listOfBridgeOutput(output.outputs, context) : undefined,
|
|
4494
|
+
PlacementArn: (0, smithy_client_1.expectString)(output.placementArn),
|
|
4495
|
+
SourceFailoverConfig: output.sourceFailoverConfig != null ? de_FailoverConfig(output.sourceFailoverConfig, context) : undefined,
|
|
4496
|
+
Sources: output.sources != null ? de___listOfBridgeSource(output.sources, context) : undefined,
|
|
4497
|
+
};
|
|
4498
|
+
};
|
|
4499
|
+
const de_BridgeFlowOutput = (output, context) => {
|
|
4500
|
+
return {
|
|
4501
|
+
FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
|
|
4502
|
+
FlowSourceArn: (0, smithy_client_1.expectString)(output.flowSourceArn),
|
|
4503
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4504
|
+
};
|
|
4505
|
+
};
|
|
4506
|
+
const de_BridgeFlowSource = (output, context) => {
|
|
4507
|
+
return {
|
|
4508
|
+
FlowArn: (0, smithy_client_1.expectString)(output.flowArn),
|
|
4509
|
+
FlowVpcInterfaceAttachment: output.flowVpcInterfaceAttachment != null
|
|
4510
|
+
? de_VpcInterfaceAttachment(output.flowVpcInterfaceAttachment, context)
|
|
4511
|
+
: undefined,
|
|
4512
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4513
|
+
OutputArn: (0, smithy_client_1.expectString)(output.outputArn),
|
|
4514
|
+
};
|
|
4515
|
+
};
|
|
4516
|
+
const de_BridgeNetworkOutput = (output, context) => {
|
|
4517
|
+
return {
|
|
4518
|
+
IpAddress: (0, smithy_client_1.expectString)(output.ipAddress),
|
|
4519
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4520
|
+
NetworkName: (0, smithy_client_1.expectString)(output.networkName),
|
|
4521
|
+
Port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4522
|
+
Protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
4523
|
+
Ttl: (0, smithy_client_1.expectInt32)(output.ttl),
|
|
4524
|
+
};
|
|
4525
|
+
};
|
|
4526
|
+
const de_BridgeNetworkSource = (output, context) => {
|
|
4527
|
+
return {
|
|
4528
|
+
MulticastIp: (0, smithy_client_1.expectString)(output.multicastIp),
|
|
4529
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4530
|
+
NetworkName: (0, smithy_client_1.expectString)(output.networkName),
|
|
4531
|
+
Port: (0, smithy_client_1.expectInt32)(output.port),
|
|
4532
|
+
Protocol: (0, smithy_client_1.expectString)(output.protocol),
|
|
4533
|
+
};
|
|
4534
|
+
};
|
|
4535
|
+
const de_BridgeOutput = (output, context) => {
|
|
4536
|
+
return {
|
|
4537
|
+
FlowOutput: output.flowOutput != null ? de_BridgeFlowOutput(output.flowOutput, context) : undefined,
|
|
4538
|
+
NetworkOutput: output.networkOutput != null ? de_BridgeNetworkOutput(output.networkOutput, context) : undefined,
|
|
4539
|
+
};
|
|
4540
|
+
};
|
|
4541
|
+
const de_BridgeSource = (output, context) => {
|
|
4542
|
+
return {
|
|
4543
|
+
FlowSource: output.flowSource != null ? de_BridgeFlowSource(output.flowSource, context) : undefined,
|
|
4544
|
+
NetworkSource: output.networkSource != null ? de_BridgeNetworkSource(output.networkSource, context) : undefined,
|
|
4545
|
+
};
|
|
4546
|
+
};
|
|
2725
4547
|
const de_DestinationConfiguration = (output, context) => {
|
|
2726
4548
|
return {
|
|
2727
4549
|
DestinationIp: (0, smithy_client_1.expectString)(output.destinationIp),
|
|
@@ -2730,6 +4552,12 @@ const de_DestinationConfiguration = (output, context) => {
|
|
|
2730
4552
|
OutboundIp: (0, smithy_client_1.expectString)(output.outboundIp),
|
|
2731
4553
|
};
|
|
2732
4554
|
};
|
|
4555
|
+
const de_EgressGatewayBridge = (output, context) => {
|
|
4556
|
+
return {
|
|
4557
|
+
InstanceId: (0, smithy_client_1.expectString)(output.instanceId),
|
|
4558
|
+
MaxBitrate: (0, smithy_client_1.expectInt32)(output.maxBitrate),
|
|
4559
|
+
};
|
|
4560
|
+
};
|
|
2733
4561
|
const de_EncodingParameters = (output, context) => {
|
|
2734
4562
|
return {
|
|
2735
4563
|
CompressionFactor: (0, smithy_client_1.limitedParseDouble)(output.compressionFactor),
|
|
@@ -2797,6 +4625,49 @@ const de_Fmtp = (output, context) => {
|
|
|
2797
4625
|
Tcs: (0, smithy_client_1.expectString)(output.tcs),
|
|
2798
4626
|
};
|
|
2799
4627
|
};
|
|
4628
|
+
const de_Gateway = (output, context) => {
|
|
4629
|
+
return {
|
|
4630
|
+
EgressCidrBlocks: output.egressCidrBlocks != null ? de___listOf__string(output.egressCidrBlocks, context) : undefined,
|
|
4631
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.gatewayArn),
|
|
4632
|
+
GatewayMessages: output.gatewayMessages != null ? de___listOfMessageDetail(output.gatewayMessages, context) : undefined,
|
|
4633
|
+
GatewayState: (0, smithy_client_1.expectString)(output.gatewayState),
|
|
4634
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4635
|
+
Networks: output.networks != null ? de___listOfGatewayNetwork(output.networks, context) : undefined,
|
|
4636
|
+
};
|
|
4637
|
+
};
|
|
4638
|
+
const de_GatewayBridgeSource = (output, context) => {
|
|
4639
|
+
return {
|
|
4640
|
+
BridgeArn: (0, smithy_client_1.expectString)(output.bridgeArn),
|
|
4641
|
+
VpcInterfaceAttachment: output.vpcInterfaceAttachment != null
|
|
4642
|
+
? de_VpcInterfaceAttachment(output.vpcInterfaceAttachment, context)
|
|
4643
|
+
: undefined,
|
|
4644
|
+
};
|
|
4645
|
+
};
|
|
4646
|
+
const de_GatewayInstance = (output, context) => {
|
|
4647
|
+
return {
|
|
4648
|
+
BridgePlacement: (0, smithy_client_1.expectString)(output.bridgePlacement),
|
|
4649
|
+
ConnectionStatus: (0, smithy_client_1.expectString)(output.connectionStatus),
|
|
4650
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.gatewayArn),
|
|
4651
|
+
GatewayInstanceArn: (0, smithy_client_1.expectString)(output.gatewayInstanceArn),
|
|
4652
|
+
InstanceId: (0, smithy_client_1.expectString)(output.instanceId),
|
|
4653
|
+
InstanceMessages: output.instanceMessages != null ? de___listOfMessageDetail(output.instanceMessages, context) : undefined,
|
|
4654
|
+
InstanceState: (0, smithy_client_1.expectString)(output.instanceState),
|
|
4655
|
+
RunningBridgeCount: (0, smithy_client_1.expectInt32)(output.runningBridgeCount),
|
|
4656
|
+
};
|
|
4657
|
+
};
|
|
4658
|
+
const de_GatewayNetwork = (output, context) => {
|
|
4659
|
+
return {
|
|
4660
|
+
CidrBlock: (0, smithy_client_1.expectString)(output.cidrBlock),
|
|
4661
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4662
|
+
};
|
|
4663
|
+
};
|
|
4664
|
+
const de_IngressGatewayBridge = (output, context) => {
|
|
4665
|
+
return {
|
|
4666
|
+
InstanceId: (0, smithy_client_1.expectString)(output.instanceId),
|
|
4667
|
+
MaxBitrate: (0, smithy_client_1.expectInt32)(output.maxBitrate),
|
|
4668
|
+
MaxOutputs: (0, smithy_client_1.expectInt32)(output.maxOutputs),
|
|
4669
|
+
};
|
|
4670
|
+
};
|
|
2800
4671
|
const de_InputConfiguration = (output, context) => {
|
|
2801
4672
|
return {
|
|
2802
4673
|
InputIp: (0, smithy_client_1.expectString)(output.inputIp),
|
|
@@ -2809,6 +4680,15 @@ const de_Interface = (output, context) => {
|
|
|
2809
4680
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
2810
4681
|
};
|
|
2811
4682
|
};
|
|
4683
|
+
const de_ListedBridge = (output, context) => {
|
|
4684
|
+
return {
|
|
4685
|
+
BridgeArn: (0, smithy_client_1.expectString)(output.bridgeArn),
|
|
4686
|
+
BridgeState: (0, smithy_client_1.expectString)(output.bridgeState),
|
|
4687
|
+
BridgeType: (0, smithy_client_1.expectString)(output.bridgeType),
|
|
4688
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4689
|
+
PlacementArn: (0, smithy_client_1.expectString)(output.placementArn),
|
|
4690
|
+
};
|
|
4691
|
+
};
|
|
2812
4692
|
const de_ListedEntitlement = (output, context) => {
|
|
2813
4693
|
return {
|
|
2814
4694
|
DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
|
|
@@ -2827,6 +4707,21 @@ const de_ListedFlow = (output, context) => {
|
|
|
2827
4707
|
Status: (0, smithy_client_1.expectString)(output.status),
|
|
2828
4708
|
};
|
|
2829
4709
|
};
|
|
4710
|
+
const de_ListedGateway = (output, context) => {
|
|
4711
|
+
return {
|
|
4712
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.gatewayArn),
|
|
4713
|
+
GatewayState: (0, smithy_client_1.expectString)(output.gatewayState),
|
|
4714
|
+
Name: (0, smithy_client_1.expectString)(output.name),
|
|
4715
|
+
};
|
|
4716
|
+
};
|
|
4717
|
+
const de_ListedGatewayInstance = (output, context) => {
|
|
4718
|
+
return {
|
|
4719
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.gatewayArn),
|
|
4720
|
+
GatewayInstanceArn: (0, smithy_client_1.expectString)(output.gatewayInstanceArn),
|
|
4721
|
+
InstanceId: (0, smithy_client_1.expectString)(output.instanceId),
|
|
4722
|
+
InstanceState: (0, smithy_client_1.expectString)(output.instanceState),
|
|
4723
|
+
};
|
|
4724
|
+
};
|
|
2830
4725
|
const de_Maintenance = (output, context) => {
|
|
2831
4726
|
return {
|
|
2832
4727
|
MaintenanceDay: (0, smithy_client_1.expectString)(output.maintenanceDay),
|
|
@@ -2872,6 +4767,13 @@ const de_MediaStreamSourceConfiguration = (output, context) => {
|
|
|
2872
4767
|
MediaStreamName: (0, smithy_client_1.expectString)(output.mediaStreamName),
|
|
2873
4768
|
};
|
|
2874
4769
|
};
|
|
4770
|
+
const de_MessageDetail = (output, context) => {
|
|
4771
|
+
return {
|
|
4772
|
+
Code: (0, smithy_client_1.expectString)(output.code),
|
|
4773
|
+
Message: (0, smithy_client_1.expectString)(output.message),
|
|
4774
|
+
ResourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
4775
|
+
};
|
|
4776
|
+
};
|
|
2875
4777
|
const de_Messages = (output, context) => {
|
|
2876
4778
|
return {
|
|
2877
4779
|
Errors: output.errors != null ? de___listOf__string(output.errors, context) : undefined,
|
|
@@ -2893,6 +4795,8 @@ const de_Offering = (output, context) => {
|
|
|
2893
4795
|
};
|
|
2894
4796
|
const de_Output = (output, context) => {
|
|
2895
4797
|
return {
|
|
4798
|
+
BridgeArn: (0, smithy_client_1.expectString)(output.bridgeArn),
|
|
4799
|
+
BridgePorts: output.bridgePorts != null ? de___listOf__integer(output.bridgePorts, context) : undefined,
|
|
2896
4800
|
DataTransferSubscriberFeePercent: (0, smithy_client_1.expectInt32)(output.dataTransferSubscriberFeePercent),
|
|
2897
4801
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
2898
4802
|
Destination: (0, smithy_client_1.expectString)(output.destination),
|
|
@@ -2943,6 +4847,7 @@ const de_Source = (output, context) => {
|
|
|
2943
4847
|
Decryption: output.decryption != null ? de_Encryption(output.decryption, context) : undefined,
|
|
2944
4848
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
2945
4849
|
EntitlementArn: (0, smithy_client_1.expectString)(output.entitlementArn),
|
|
4850
|
+
GatewayBridgeSource: output.gatewayBridgeSource != null ? de_GatewayBridgeSource(output.gatewayBridgeSource, context) : undefined,
|
|
2946
4851
|
IngestIp: (0, smithy_client_1.expectString)(output.ingestIp),
|
|
2947
4852
|
IngestPort: (0, smithy_client_1.expectInt32)(output.ingestPort),
|
|
2948
4853
|
MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations != null
|