@aws-sdk/client-mediaconnect 3.310.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 +2 -2
|
@@ -1,7 +1,49 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MediaConnectServiceException as __BaseException } from "../models/MediaConnectServiceException";
|
|
4
|
-
import { AddFlowOutputs420Exception, BadRequestException, CreateFlow420Exception, ForbiddenException, GrantFlowEntitlements420Exception, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, } from "../models/models_0";
|
|
4
|
+
import { AddFlowOutputs420Exception, BadRequestException, ConflictException, CreateBridge420Exception, CreateFlow420Exception, CreateGateway420Exception, ForbiddenException, GrantFlowEntitlements420Exception, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, } from "../models/models_0";
|
|
5
|
+
export const se_AddBridgeOutputsCommand = async (input, context) => {
|
|
6
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/json",
|
|
9
|
+
};
|
|
10
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/outputs";
|
|
11
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify({
|
|
14
|
+
...(input.Outputs != null && { outputs: se___listOfAddBridgeOutputRequest(input.Outputs, context) }),
|
|
15
|
+
});
|
|
16
|
+
return new __HttpRequest({
|
|
17
|
+
protocol,
|
|
18
|
+
hostname,
|
|
19
|
+
port,
|
|
20
|
+
method: "POST",
|
|
21
|
+
headers,
|
|
22
|
+
path: resolvedPath,
|
|
23
|
+
body,
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export const se_AddBridgeSourcesCommand = async (input, context) => {
|
|
27
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
28
|
+
const headers = {
|
|
29
|
+
"content-type": "application/json",
|
|
30
|
+
};
|
|
31
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/sources";
|
|
32
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify({
|
|
35
|
+
...(input.Sources != null && { sources: se___listOfAddBridgeSourceRequest(input.Sources, context) }),
|
|
36
|
+
});
|
|
37
|
+
return new __HttpRequest({
|
|
38
|
+
protocol,
|
|
39
|
+
hostname,
|
|
40
|
+
port,
|
|
41
|
+
method: "POST",
|
|
42
|
+
headers,
|
|
43
|
+
path: resolvedPath,
|
|
44
|
+
body,
|
|
45
|
+
});
|
|
46
|
+
};
|
|
5
47
|
export const se_AddFlowMediaStreamsCommand = async (input, context) => {
|
|
6
48
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
49
|
const headers = {
|
|
@@ -86,6 +128,38 @@ export const se_AddFlowVpcInterfacesCommand = async (input, context) => {
|
|
|
86
128
|
body,
|
|
87
129
|
});
|
|
88
130
|
};
|
|
131
|
+
export const se_CreateBridgeCommand = async (input, context) => {
|
|
132
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
133
|
+
const headers = {
|
|
134
|
+
"content-type": "application/json",
|
|
135
|
+
};
|
|
136
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
|
|
137
|
+
let body;
|
|
138
|
+
body = JSON.stringify({
|
|
139
|
+
...(input.EgressGatewayBridge != null && {
|
|
140
|
+
egressGatewayBridge: se_AddEgressGatewayBridgeRequest(input.EgressGatewayBridge, context),
|
|
141
|
+
}),
|
|
142
|
+
...(input.IngressGatewayBridge != null && {
|
|
143
|
+
ingressGatewayBridge: se_AddIngressGatewayBridgeRequest(input.IngressGatewayBridge, context),
|
|
144
|
+
}),
|
|
145
|
+
...(input.Name != null && { name: input.Name }),
|
|
146
|
+
...(input.Outputs != null && { outputs: se___listOfAddBridgeOutputRequest(input.Outputs, context) }),
|
|
147
|
+
...(input.PlacementArn != null && { placementArn: input.PlacementArn }),
|
|
148
|
+
...(input.SourceFailoverConfig != null && {
|
|
149
|
+
sourceFailoverConfig: se_FailoverConfig(input.SourceFailoverConfig, context),
|
|
150
|
+
}),
|
|
151
|
+
...(input.Sources != null && { sources: se___listOfAddBridgeSourceRequest(input.Sources, context) }),
|
|
152
|
+
});
|
|
153
|
+
return new __HttpRequest({
|
|
154
|
+
protocol,
|
|
155
|
+
hostname,
|
|
156
|
+
port,
|
|
157
|
+
method: "POST",
|
|
158
|
+
headers,
|
|
159
|
+
path: resolvedPath,
|
|
160
|
+
body,
|
|
161
|
+
});
|
|
162
|
+
};
|
|
89
163
|
export const se_CreateFlowCommand = async (input, context) => {
|
|
90
164
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
91
165
|
const headers = {
|
|
@@ -119,6 +193,44 @@ export const se_CreateFlowCommand = async (input, context) => {
|
|
|
119
193
|
body,
|
|
120
194
|
});
|
|
121
195
|
};
|
|
196
|
+
export const se_CreateGatewayCommand = async (input, context) => {
|
|
197
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
198
|
+
const headers = {
|
|
199
|
+
"content-type": "application/json",
|
|
200
|
+
};
|
|
201
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
|
|
202
|
+
let body;
|
|
203
|
+
body = JSON.stringify({
|
|
204
|
+
...(input.EgressCidrBlocks != null && { egressCidrBlocks: se___listOf__string(input.EgressCidrBlocks, context) }),
|
|
205
|
+
...(input.Name != null && { name: input.Name }),
|
|
206
|
+
...(input.Networks != null && { networks: se___listOfGatewayNetwork(input.Networks, context) }),
|
|
207
|
+
});
|
|
208
|
+
return new __HttpRequest({
|
|
209
|
+
protocol,
|
|
210
|
+
hostname,
|
|
211
|
+
port,
|
|
212
|
+
method: "POST",
|
|
213
|
+
headers,
|
|
214
|
+
path: resolvedPath,
|
|
215
|
+
body,
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
export const se_DeleteBridgeCommand = async (input, context) => {
|
|
219
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
220
|
+
const headers = {};
|
|
221
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
|
|
222
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
223
|
+
let body;
|
|
224
|
+
return new __HttpRequest({
|
|
225
|
+
protocol,
|
|
226
|
+
hostname,
|
|
227
|
+
port,
|
|
228
|
+
method: "DELETE",
|
|
229
|
+
headers,
|
|
230
|
+
path: resolvedPath,
|
|
231
|
+
body,
|
|
232
|
+
});
|
|
233
|
+
};
|
|
122
234
|
export const se_DeleteFlowCommand = async (input, context) => {
|
|
123
235
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
236
|
const headers = {};
|
|
@@ -135,6 +247,59 @@ export const se_DeleteFlowCommand = async (input, context) => {
|
|
|
135
247
|
body,
|
|
136
248
|
});
|
|
137
249
|
};
|
|
250
|
+
export const se_DeleteGatewayCommand = async (input, context) => {
|
|
251
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
252
|
+
const headers = {};
|
|
253
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}";
|
|
254
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
|
|
255
|
+
let body;
|
|
256
|
+
return new __HttpRequest({
|
|
257
|
+
protocol,
|
|
258
|
+
hostname,
|
|
259
|
+
port,
|
|
260
|
+
method: "DELETE",
|
|
261
|
+
headers,
|
|
262
|
+
path: resolvedPath,
|
|
263
|
+
body,
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
export const se_DeregisterGatewayInstanceCommand = async (input, context) => {
|
|
267
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
|
+
const headers = {};
|
|
269
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
270
|
+
"/v1/gateway-instances/{GatewayInstanceArn}";
|
|
271
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
|
|
272
|
+
const query = map({
|
|
273
|
+
force: [() => input.Force !== void 0, () => input.Force.toString()],
|
|
274
|
+
});
|
|
275
|
+
let body;
|
|
276
|
+
return new __HttpRequest({
|
|
277
|
+
protocol,
|
|
278
|
+
hostname,
|
|
279
|
+
port,
|
|
280
|
+
method: "DELETE",
|
|
281
|
+
headers,
|
|
282
|
+
path: resolvedPath,
|
|
283
|
+
query,
|
|
284
|
+
body,
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
export const se_DescribeBridgeCommand = async (input, context) => {
|
|
288
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
|
+
const headers = {};
|
|
290
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
|
|
291
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
292
|
+
let body;
|
|
293
|
+
return new __HttpRequest({
|
|
294
|
+
protocol,
|
|
295
|
+
hostname,
|
|
296
|
+
port,
|
|
297
|
+
method: "GET",
|
|
298
|
+
headers,
|
|
299
|
+
path: resolvedPath,
|
|
300
|
+
body,
|
|
301
|
+
});
|
|
302
|
+
};
|
|
138
303
|
export const se_DescribeFlowCommand = async (input, context) => {
|
|
139
304
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
305
|
const headers = {};
|
|
@@ -151,6 +316,39 @@ export const se_DescribeFlowCommand = async (input, context) => {
|
|
|
151
316
|
body,
|
|
152
317
|
});
|
|
153
318
|
};
|
|
319
|
+
export const se_DescribeGatewayCommand = async (input, context) => {
|
|
320
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
321
|
+
const headers = {};
|
|
322
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}";
|
|
323
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
|
|
324
|
+
let body;
|
|
325
|
+
return new __HttpRequest({
|
|
326
|
+
protocol,
|
|
327
|
+
hostname,
|
|
328
|
+
port,
|
|
329
|
+
method: "GET",
|
|
330
|
+
headers,
|
|
331
|
+
path: resolvedPath,
|
|
332
|
+
body,
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
export const se_DescribeGatewayInstanceCommand = async (input, context) => {
|
|
336
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
337
|
+
const headers = {};
|
|
338
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
339
|
+
"/v1/gateway-instances/{GatewayInstanceArn}";
|
|
340
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
|
|
341
|
+
let body;
|
|
342
|
+
return new __HttpRequest({
|
|
343
|
+
protocol,
|
|
344
|
+
hostname,
|
|
345
|
+
port,
|
|
346
|
+
method: "GET",
|
|
347
|
+
headers,
|
|
348
|
+
path: resolvedPath,
|
|
349
|
+
body,
|
|
350
|
+
});
|
|
351
|
+
};
|
|
154
352
|
export const se_DescribeOfferingCommand = async (input, context) => {
|
|
155
353
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
156
354
|
const headers = {};
|
|
@@ -206,6 +404,27 @@ export const se_GrantFlowEntitlementsCommand = async (input, context) => {
|
|
|
206
404
|
body,
|
|
207
405
|
});
|
|
208
406
|
};
|
|
407
|
+
export const se_ListBridgesCommand = async (input, context) => {
|
|
408
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
409
|
+
const headers = {};
|
|
410
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
|
|
411
|
+
const query = map({
|
|
412
|
+
filterArn: [, input.FilterArn],
|
|
413
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
414
|
+
nextToken: [, input.NextToken],
|
|
415
|
+
});
|
|
416
|
+
let body;
|
|
417
|
+
return new __HttpRequest({
|
|
418
|
+
protocol,
|
|
419
|
+
hostname,
|
|
420
|
+
port,
|
|
421
|
+
method: "GET",
|
|
422
|
+
headers,
|
|
423
|
+
path: resolvedPath,
|
|
424
|
+
query,
|
|
425
|
+
body,
|
|
426
|
+
});
|
|
427
|
+
};
|
|
209
428
|
export const se_ListEntitlementsCommand = async (input, context) => {
|
|
210
429
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
430
|
const headers = {};
|
|
@@ -246,6 +465,47 @@ export const se_ListFlowsCommand = async (input, context) => {
|
|
|
246
465
|
body,
|
|
247
466
|
});
|
|
248
467
|
};
|
|
468
|
+
export const se_ListGatewayInstancesCommand = async (input, context) => {
|
|
469
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
470
|
+
const headers = {};
|
|
471
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateway-instances";
|
|
472
|
+
const query = map({
|
|
473
|
+
filterArn: [, input.FilterArn],
|
|
474
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
475
|
+
nextToken: [, input.NextToken],
|
|
476
|
+
});
|
|
477
|
+
let body;
|
|
478
|
+
return new __HttpRequest({
|
|
479
|
+
protocol,
|
|
480
|
+
hostname,
|
|
481
|
+
port,
|
|
482
|
+
method: "GET",
|
|
483
|
+
headers,
|
|
484
|
+
path: resolvedPath,
|
|
485
|
+
query,
|
|
486
|
+
body,
|
|
487
|
+
});
|
|
488
|
+
};
|
|
489
|
+
export const se_ListGatewaysCommand = async (input, context) => {
|
|
490
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
491
|
+
const headers = {};
|
|
492
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
|
|
493
|
+
const query = map({
|
|
494
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
495
|
+
nextToken: [, input.NextToken],
|
|
496
|
+
});
|
|
497
|
+
let body;
|
|
498
|
+
return new __HttpRequest({
|
|
499
|
+
protocol,
|
|
500
|
+
hostname,
|
|
501
|
+
port,
|
|
502
|
+
method: "GET",
|
|
503
|
+
headers,
|
|
504
|
+
path: resolvedPath,
|
|
505
|
+
query,
|
|
506
|
+
body,
|
|
507
|
+
});
|
|
508
|
+
};
|
|
249
509
|
export const se_ListOfferingsCommand = async (input, context) => {
|
|
250
510
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
251
511
|
const headers = {};
|
|
@@ -324,6 +584,42 @@ export const se_PurchaseOfferingCommand = async (input, context) => {
|
|
|
324
584
|
body,
|
|
325
585
|
});
|
|
326
586
|
};
|
|
587
|
+
export const se_RemoveBridgeOutputCommand = async (input, context) => {
|
|
588
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
589
|
+
const headers = {};
|
|
590
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
591
|
+
"/v1/bridges/{BridgeArn}/outputs/{OutputName}";
|
|
592
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
593
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutputName", () => input.OutputName, "{OutputName}", false);
|
|
594
|
+
let body;
|
|
595
|
+
return new __HttpRequest({
|
|
596
|
+
protocol,
|
|
597
|
+
hostname,
|
|
598
|
+
port,
|
|
599
|
+
method: "DELETE",
|
|
600
|
+
headers,
|
|
601
|
+
path: resolvedPath,
|
|
602
|
+
body,
|
|
603
|
+
});
|
|
604
|
+
};
|
|
605
|
+
export const se_RemoveBridgeSourceCommand = async (input, context) => {
|
|
606
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
607
|
+
const headers = {};
|
|
608
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
609
|
+
"/v1/bridges/{BridgeArn}/sources/{SourceName}";
|
|
610
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
611
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SourceName", () => input.SourceName, "{SourceName}", false);
|
|
612
|
+
let body;
|
|
613
|
+
return new __HttpRequest({
|
|
614
|
+
protocol,
|
|
615
|
+
hostname,
|
|
616
|
+
port,
|
|
617
|
+
method: "DELETE",
|
|
618
|
+
headers,
|
|
619
|
+
path: resolvedPath,
|
|
620
|
+
body,
|
|
621
|
+
});
|
|
622
|
+
};
|
|
327
623
|
export const se_RemoveFlowMediaStreamCommand = async (input, context) => {
|
|
328
624
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
329
625
|
const headers = {};
|
|
@@ -488,16 +784,21 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
488
784
|
body,
|
|
489
785
|
});
|
|
490
786
|
};
|
|
491
|
-
export const
|
|
787
|
+
export const se_UpdateBridgeCommand = async (input, context) => {
|
|
492
788
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
493
789
|
const headers = {
|
|
494
790
|
"content-type": "application/json",
|
|
495
791
|
};
|
|
496
|
-
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/
|
|
497
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "
|
|
792
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
|
|
793
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
498
794
|
let body;
|
|
499
795
|
body = JSON.stringify({
|
|
500
|
-
...(input.
|
|
796
|
+
...(input.EgressGatewayBridge != null && {
|
|
797
|
+
egressGatewayBridge: se_UpdateEgressGatewayBridgeRequest(input.EgressGatewayBridge, context),
|
|
798
|
+
}),
|
|
799
|
+
...(input.IngressGatewayBridge != null && {
|
|
800
|
+
ingressGatewayBridge: se_UpdateIngressGatewayBridgeRequest(input.IngressGatewayBridge, context),
|
|
801
|
+
}),
|
|
501
802
|
...(input.SourceFailoverConfig != null && {
|
|
502
803
|
sourceFailoverConfig: se_UpdateFailoverConfig(input.SourceFailoverConfig, context),
|
|
503
804
|
}),
|
|
@@ -512,21 +813,20 @@ export const se_UpdateFlowCommand = async (input, context) => {
|
|
|
512
813
|
body,
|
|
513
814
|
});
|
|
514
815
|
};
|
|
515
|
-
export const
|
|
816
|
+
export const se_UpdateBridgeOutputCommand = async (input, context) => {
|
|
516
817
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
517
818
|
const headers = {
|
|
518
819
|
"content-type": "application/json",
|
|
519
820
|
};
|
|
520
821
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
521
|
-
"/v1/
|
|
522
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "
|
|
523
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "
|
|
822
|
+
"/v1/bridges/{BridgeArn}/outputs/{OutputName}";
|
|
823
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
824
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "OutputName", () => input.OutputName, "{OutputName}", false);
|
|
524
825
|
let body;
|
|
525
826
|
body = JSON.stringify({
|
|
526
|
-
...(input.
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
...(input.Subscribers != null && { subscribers: se___listOf__string(input.Subscribers, context) }),
|
|
827
|
+
...(input.NetworkOutput != null && {
|
|
828
|
+
networkOutput: se_UpdateBridgeNetworkOutputRequest(input.NetworkOutput, context),
|
|
829
|
+
}),
|
|
530
830
|
});
|
|
531
831
|
return new __HttpRequest({
|
|
532
832
|
protocol,
|
|
@@ -538,7 +838,104 @@ export const se_UpdateFlowEntitlementCommand = async (input, context) => {
|
|
|
538
838
|
body,
|
|
539
839
|
});
|
|
540
840
|
};
|
|
541
|
-
export const
|
|
841
|
+
export const se_UpdateBridgeSourceCommand = async (input, context) => {
|
|
842
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
843
|
+
const headers = {
|
|
844
|
+
"content-type": "application/json",
|
|
845
|
+
};
|
|
846
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
847
|
+
"/v1/bridges/{BridgeArn}/sources/{SourceName}";
|
|
848
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
849
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "SourceName", () => input.SourceName, "{SourceName}", false);
|
|
850
|
+
let body;
|
|
851
|
+
body = JSON.stringify({
|
|
852
|
+
...(input.FlowSource != null && { flowSource: se_UpdateBridgeFlowSourceRequest(input.FlowSource, context) }),
|
|
853
|
+
...(input.NetworkSource != null && {
|
|
854
|
+
networkSource: se_UpdateBridgeNetworkSourceRequest(input.NetworkSource, context),
|
|
855
|
+
}),
|
|
856
|
+
});
|
|
857
|
+
return new __HttpRequest({
|
|
858
|
+
protocol,
|
|
859
|
+
hostname,
|
|
860
|
+
port,
|
|
861
|
+
method: "PUT",
|
|
862
|
+
headers,
|
|
863
|
+
path: resolvedPath,
|
|
864
|
+
body,
|
|
865
|
+
});
|
|
866
|
+
};
|
|
867
|
+
export const se_UpdateBridgeStateCommand = async (input, context) => {
|
|
868
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
869
|
+
const headers = {
|
|
870
|
+
"content-type": "application/json",
|
|
871
|
+
};
|
|
872
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/state";
|
|
873
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
|
|
874
|
+
let body;
|
|
875
|
+
body = JSON.stringify({
|
|
876
|
+
...(input.DesiredState != null && { desiredState: input.DesiredState }),
|
|
877
|
+
});
|
|
878
|
+
return new __HttpRequest({
|
|
879
|
+
protocol,
|
|
880
|
+
hostname,
|
|
881
|
+
port,
|
|
882
|
+
method: "PUT",
|
|
883
|
+
headers,
|
|
884
|
+
path: resolvedPath,
|
|
885
|
+
body,
|
|
886
|
+
});
|
|
887
|
+
};
|
|
888
|
+
export const se_UpdateFlowCommand = async (input, context) => {
|
|
889
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
890
|
+
const headers = {
|
|
891
|
+
"content-type": "application/json",
|
|
892
|
+
};
|
|
893
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}";
|
|
894
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
895
|
+
let body;
|
|
896
|
+
body = JSON.stringify({
|
|
897
|
+
...(input.Maintenance != null && { maintenance: se_UpdateMaintenance(input.Maintenance, context) }),
|
|
898
|
+
...(input.SourceFailoverConfig != null && {
|
|
899
|
+
sourceFailoverConfig: se_UpdateFailoverConfig(input.SourceFailoverConfig, context),
|
|
900
|
+
}),
|
|
901
|
+
});
|
|
902
|
+
return new __HttpRequest({
|
|
903
|
+
protocol,
|
|
904
|
+
hostname,
|
|
905
|
+
port,
|
|
906
|
+
method: "PUT",
|
|
907
|
+
headers,
|
|
908
|
+
path: resolvedPath,
|
|
909
|
+
body,
|
|
910
|
+
});
|
|
911
|
+
};
|
|
912
|
+
export const se_UpdateFlowEntitlementCommand = async (input, context) => {
|
|
913
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
914
|
+
const headers = {
|
|
915
|
+
"content-type": "application/json",
|
|
916
|
+
};
|
|
917
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
918
|
+
"/v1/flows/{FlowArn}/entitlements/{EntitlementArn}";
|
|
919
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
|
|
920
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
|
|
921
|
+
let body;
|
|
922
|
+
body = JSON.stringify({
|
|
923
|
+
...(input.Description != null && { description: input.Description }),
|
|
924
|
+
...(input.Encryption != null && { encryption: se_UpdateEncryption(input.Encryption, context) }),
|
|
925
|
+
...(input.EntitlementStatus != null && { entitlementStatus: input.EntitlementStatus }),
|
|
926
|
+
...(input.Subscribers != null && { subscribers: se___listOf__string(input.Subscribers, context) }),
|
|
927
|
+
});
|
|
928
|
+
return new __HttpRequest({
|
|
929
|
+
protocol,
|
|
930
|
+
hostname,
|
|
931
|
+
port,
|
|
932
|
+
method: "PUT",
|
|
933
|
+
headers,
|
|
934
|
+
path: resolvedPath,
|
|
935
|
+
body,
|
|
936
|
+
});
|
|
937
|
+
};
|
|
938
|
+
export const se_UpdateFlowMediaStreamCommand = async (input, context) => {
|
|
542
939
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
543
940
|
const headers = {
|
|
544
941
|
"content-type": "application/json",
|
|
@@ -618,6 +1015,9 @@ export const se_UpdateFlowSourceCommand = async (input, context) => {
|
|
|
618
1015
|
...(input.Decryption != null && { decryption: se_UpdateEncryption(input.Decryption, context) }),
|
|
619
1016
|
...(input.Description != null && { description: input.Description }),
|
|
620
1017
|
...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
|
|
1018
|
+
...(input.GatewayBridgeSource != null && {
|
|
1019
|
+
gatewayBridgeSource: se_UpdateGatewayBridgeSourceRequest(input.GatewayBridgeSource, context),
|
|
1020
|
+
}),
|
|
621
1021
|
...(input.IngestPort != null && { ingestPort: input.IngestPort }),
|
|
622
1022
|
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
623
1023
|
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
@@ -645,23 +1045,714 @@ export const se_UpdateFlowSourceCommand = async (input, context) => {
|
|
|
645
1045
|
body,
|
|
646
1046
|
});
|
|
647
1047
|
};
|
|
648
|
-
export const
|
|
649
|
-
|
|
650
|
-
|
|
1048
|
+
export const se_UpdateGatewayInstanceCommand = async (input, context) => {
|
|
1049
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1050
|
+
const headers = {
|
|
1051
|
+
"content-type": "application/json",
|
|
1052
|
+
};
|
|
1053
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1054
|
+
"/v1/gateway-instances/{GatewayInstanceArn}";
|
|
1055
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
|
|
1056
|
+
let body;
|
|
1057
|
+
body = JSON.stringify({
|
|
1058
|
+
...(input.BridgePlacement != null && { bridgePlacement: input.BridgePlacement }),
|
|
1059
|
+
});
|
|
1060
|
+
return new __HttpRequest({
|
|
1061
|
+
protocol,
|
|
1062
|
+
hostname,
|
|
1063
|
+
port,
|
|
1064
|
+
method: "PUT",
|
|
1065
|
+
headers,
|
|
1066
|
+
path: resolvedPath,
|
|
1067
|
+
body,
|
|
1068
|
+
});
|
|
1069
|
+
};
|
|
1070
|
+
export const de_AddBridgeOutputsCommand = async (output, context) => {
|
|
1071
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1072
|
+
return de_AddBridgeOutputsCommandError(output, context);
|
|
1073
|
+
}
|
|
1074
|
+
const contents = map({
|
|
1075
|
+
$metadata: deserializeMetadata(output),
|
|
1076
|
+
});
|
|
1077
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1078
|
+
if (data.bridgeArn != null) {
|
|
1079
|
+
contents.BridgeArn = __expectString(data.bridgeArn);
|
|
1080
|
+
}
|
|
1081
|
+
if (data.outputs != null) {
|
|
1082
|
+
contents.Outputs = de___listOfBridgeOutput(data.outputs, context);
|
|
1083
|
+
}
|
|
1084
|
+
return contents;
|
|
1085
|
+
};
|
|
1086
|
+
const de_AddBridgeOutputsCommandError = async (output, context) => {
|
|
1087
|
+
const parsedOutput = {
|
|
1088
|
+
...output,
|
|
1089
|
+
body: await parseErrorBody(output.body, context),
|
|
1090
|
+
};
|
|
1091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
|
+
switch (errorCode) {
|
|
1093
|
+
case "BadRequestException":
|
|
1094
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1095
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1096
|
+
case "ConflictException":
|
|
1097
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1098
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1099
|
+
case "ForbiddenException":
|
|
1100
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1101
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1102
|
+
case "InternalServerErrorException":
|
|
1103
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1104
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1105
|
+
case "NotFoundException":
|
|
1106
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1107
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1108
|
+
case "ServiceUnavailableException":
|
|
1109
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1110
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1111
|
+
case "TooManyRequestsException":
|
|
1112
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1113
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1114
|
+
default:
|
|
1115
|
+
const parsedBody = parsedOutput.body;
|
|
1116
|
+
throwDefaultError({
|
|
1117
|
+
output,
|
|
1118
|
+
parsedBody,
|
|
1119
|
+
exceptionCtor: __BaseException,
|
|
1120
|
+
errorCode,
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
};
|
|
1124
|
+
export const de_AddBridgeSourcesCommand = async (output, context) => {
|
|
1125
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1126
|
+
return de_AddBridgeSourcesCommandError(output, context);
|
|
1127
|
+
}
|
|
1128
|
+
const contents = map({
|
|
1129
|
+
$metadata: deserializeMetadata(output),
|
|
1130
|
+
});
|
|
1131
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1132
|
+
if (data.bridgeArn != null) {
|
|
1133
|
+
contents.BridgeArn = __expectString(data.bridgeArn);
|
|
1134
|
+
}
|
|
1135
|
+
if (data.sources != null) {
|
|
1136
|
+
contents.Sources = de___listOfBridgeSource(data.sources, context);
|
|
1137
|
+
}
|
|
1138
|
+
return contents;
|
|
1139
|
+
};
|
|
1140
|
+
const de_AddBridgeSourcesCommandError = async (output, context) => {
|
|
1141
|
+
const parsedOutput = {
|
|
1142
|
+
...output,
|
|
1143
|
+
body: await parseErrorBody(output.body, context),
|
|
1144
|
+
};
|
|
1145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
+
switch (errorCode) {
|
|
1147
|
+
case "BadRequestException":
|
|
1148
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1149
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "ConflictException":
|
|
1151
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1152
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1153
|
+
case "ForbiddenException":
|
|
1154
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1155
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "InternalServerErrorException":
|
|
1157
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1158
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1159
|
+
case "NotFoundException":
|
|
1160
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1161
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1162
|
+
case "ServiceUnavailableException":
|
|
1163
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1164
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1165
|
+
case "TooManyRequestsException":
|
|
1166
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1167
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1168
|
+
default:
|
|
1169
|
+
const parsedBody = parsedOutput.body;
|
|
1170
|
+
throwDefaultError({
|
|
1171
|
+
output,
|
|
1172
|
+
parsedBody,
|
|
1173
|
+
exceptionCtor: __BaseException,
|
|
1174
|
+
errorCode,
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
};
|
|
1178
|
+
export const de_AddFlowMediaStreamsCommand = async (output, context) => {
|
|
1179
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1180
|
+
return de_AddFlowMediaStreamsCommandError(output, context);
|
|
1181
|
+
}
|
|
1182
|
+
const contents = map({
|
|
1183
|
+
$metadata: deserializeMetadata(output),
|
|
1184
|
+
});
|
|
1185
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1186
|
+
if (data.flowArn != null) {
|
|
1187
|
+
contents.FlowArn = __expectString(data.flowArn);
|
|
1188
|
+
}
|
|
1189
|
+
if (data.mediaStreams != null) {
|
|
1190
|
+
contents.MediaStreams = de___listOfMediaStream(data.mediaStreams, context);
|
|
1191
|
+
}
|
|
1192
|
+
return contents;
|
|
1193
|
+
};
|
|
1194
|
+
const de_AddFlowMediaStreamsCommandError = async (output, context) => {
|
|
1195
|
+
const parsedOutput = {
|
|
1196
|
+
...output,
|
|
1197
|
+
body: await parseErrorBody(output.body, context),
|
|
1198
|
+
};
|
|
1199
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
+
switch (errorCode) {
|
|
1201
|
+
case "BadRequestException":
|
|
1202
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1203
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1204
|
+
case "ForbiddenException":
|
|
1205
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1206
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1207
|
+
case "InternalServerErrorException":
|
|
1208
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1209
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1210
|
+
case "NotFoundException":
|
|
1211
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1212
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1213
|
+
case "ServiceUnavailableException":
|
|
1214
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1215
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1216
|
+
case "TooManyRequestsException":
|
|
1217
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1218
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1219
|
+
default:
|
|
1220
|
+
const parsedBody = parsedOutput.body;
|
|
1221
|
+
throwDefaultError({
|
|
1222
|
+
output,
|
|
1223
|
+
parsedBody,
|
|
1224
|
+
exceptionCtor: __BaseException,
|
|
1225
|
+
errorCode,
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
export const de_AddFlowOutputsCommand = async (output, context) => {
|
|
1230
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1231
|
+
return de_AddFlowOutputsCommandError(output, context);
|
|
1232
|
+
}
|
|
1233
|
+
const contents = map({
|
|
1234
|
+
$metadata: deserializeMetadata(output),
|
|
1235
|
+
});
|
|
1236
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1237
|
+
if (data.flowArn != null) {
|
|
1238
|
+
contents.FlowArn = __expectString(data.flowArn);
|
|
1239
|
+
}
|
|
1240
|
+
if (data.outputs != null) {
|
|
1241
|
+
contents.Outputs = de___listOfOutput(data.outputs, context);
|
|
1242
|
+
}
|
|
1243
|
+
return contents;
|
|
1244
|
+
};
|
|
1245
|
+
const de_AddFlowOutputsCommandError = async (output, context) => {
|
|
1246
|
+
const parsedOutput = {
|
|
1247
|
+
...output,
|
|
1248
|
+
body: await parseErrorBody(output.body, context),
|
|
1249
|
+
};
|
|
1250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1251
|
+
switch (errorCode) {
|
|
1252
|
+
case "AddFlowOutputs420Exception":
|
|
1253
|
+
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
1254
|
+
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
1255
|
+
case "BadRequestException":
|
|
1256
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1257
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1258
|
+
case "ForbiddenException":
|
|
1259
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1260
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1261
|
+
case "InternalServerErrorException":
|
|
1262
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1263
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1264
|
+
case "NotFoundException":
|
|
1265
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1266
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1267
|
+
case "ServiceUnavailableException":
|
|
1268
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1269
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1270
|
+
case "TooManyRequestsException":
|
|
1271
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1272
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1273
|
+
default:
|
|
1274
|
+
const parsedBody = parsedOutput.body;
|
|
1275
|
+
throwDefaultError({
|
|
1276
|
+
output,
|
|
1277
|
+
parsedBody,
|
|
1278
|
+
exceptionCtor: __BaseException,
|
|
1279
|
+
errorCode,
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
};
|
|
1283
|
+
export const de_AddFlowSourcesCommand = async (output, context) => {
|
|
1284
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1285
|
+
return de_AddFlowSourcesCommandError(output, context);
|
|
1286
|
+
}
|
|
1287
|
+
const contents = map({
|
|
1288
|
+
$metadata: deserializeMetadata(output),
|
|
1289
|
+
});
|
|
1290
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1291
|
+
if (data.flowArn != null) {
|
|
1292
|
+
contents.FlowArn = __expectString(data.flowArn);
|
|
1293
|
+
}
|
|
1294
|
+
if (data.sources != null) {
|
|
1295
|
+
contents.Sources = de___listOfSource(data.sources, context);
|
|
1296
|
+
}
|
|
1297
|
+
return contents;
|
|
1298
|
+
};
|
|
1299
|
+
const de_AddFlowSourcesCommandError = async (output, context) => {
|
|
1300
|
+
const parsedOutput = {
|
|
1301
|
+
...output,
|
|
1302
|
+
body: await parseErrorBody(output.body, context),
|
|
1303
|
+
};
|
|
1304
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
|
+
switch (errorCode) {
|
|
1306
|
+
case "BadRequestException":
|
|
1307
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1308
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1309
|
+
case "ForbiddenException":
|
|
1310
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1311
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1312
|
+
case "InternalServerErrorException":
|
|
1313
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1314
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1315
|
+
case "NotFoundException":
|
|
1316
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1317
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1318
|
+
case "ServiceUnavailableException":
|
|
1319
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1320
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1321
|
+
case "TooManyRequestsException":
|
|
1322
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1323
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1324
|
+
default:
|
|
1325
|
+
const parsedBody = parsedOutput.body;
|
|
1326
|
+
throwDefaultError({
|
|
1327
|
+
output,
|
|
1328
|
+
parsedBody,
|
|
1329
|
+
exceptionCtor: __BaseException,
|
|
1330
|
+
errorCode,
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
};
|
|
1334
|
+
export const de_AddFlowVpcInterfacesCommand = async (output, context) => {
|
|
1335
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1336
|
+
return de_AddFlowVpcInterfacesCommandError(output, context);
|
|
1337
|
+
}
|
|
1338
|
+
const contents = map({
|
|
1339
|
+
$metadata: deserializeMetadata(output),
|
|
1340
|
+
});
|
|
1341
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1342
|
+
if (data.flowArn != null) {
|
|
1343
|
+
contents.FlowArn = __expectString(data.flowArn);
|
|
1344
|
+
}
|
|
1345
|
+
if (data.vpcInterfaces != null) {
|
|
1346
|
+
contents.VpcInterfaces = de___listOfVpcInterface(data.vpcInterfaces, context);
|
|
1347
|
+
}
|
|
1348
|
+
return contents;
|
|
1349
|
+
};
|
|
1350
|
+
const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
1351
|
+
const parsedOutput = {
|
|
1352
|
+
...output,
|
|
1353
|
+
body: await parseErrorBody(output.body, context),
|
|
1354
|
+
};
|
|
1355
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
|
+
switch (errorCode) {
|
|
1357
|
+
case "BadRequestException":
|
|
1358
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1359
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1360
|
+
case "ForbiddenException":
|
|
1361
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1362
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1363
|
+
case "InternalServerErrorException":
|
|
1364
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1365
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1366
|
+
case "NotFoundException":
|
|
1367
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1368
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1369
|
+
case "ServiceUnavailableException":
|
|
1370
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1371
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1372
|
+
case "TooManyRequestsException":
|
|
1373
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1374
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1375
|
+
default:
|
|
1376
|
+
const parsedBody = parsedOutput.body;
|
|
1377
|
+
throwDefaultError({
|
|
1378
|
+
output,
|
|
1379
|
+
parsedBody,
|
|
1380
|
+
exceptionCtor: __BaseException,
|
|
1381
|
+
errorCode,
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
export const de_CreateBridgeCommand = async (output, context) => {
|
|
1386
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1387
|
+
return de_CreateBridgeCommandError(output, context);
|
|
1388
|
+
}
|
|
1389
|
+
const contents = map({
|
|
1390
|
+
$metadata: deserializeMetadata(output),
|
|
1391
|
+
});
|
|
1392
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1393
|
+
if (data.bridge != null) {
|
|
1394
|
+
contents.Bridge = de_Bridge(data.bridge, context);
|
|
1395
|
+
}
|
|
1396
|
+
return contents;
|
|
1397
|
+
};
|
|
1398
|
+
const de_CreateBridgeCommandError = async (output, context) => {
|
|
1399
|
+
const parsedOutput = {
|
|
1400
|
+
...output,
|
|
1401
|
+
body: await parseErrorBody(output.body, context),
|
|
1402
|
+
};
|
|
1403
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
|
+
switch (errorCode) {
|
|
1405
|
+
case "BadRequestException":
|
|
1406
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1407
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1408
|
+
case "ConflictException":
|
|
1409
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1410
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1411
|
+
case "CreateBridge420Exception":
|
|
1412
|
+
case "com.amazonaws.mediaconnect#CreateBridge420Exception":
|
|
1413
|
+
throw await de_CreateBridge420ExceptionRes(parsedOutput, context);
|
|
1414
|
+
case "ForbiddenException":
|
|
1415
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1416
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1417
|
+
case "InternalServerErrorException":
|
|
1418
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1419
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "ServiceUnavailableException":
|
|
1421
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1422
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "TooManyRequestsException":
|
|
1424
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1425
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1426
|
+
default:
|
|
1427
|
+
const parsedBody = parsedOutput.body;
|
|
1428
|
+
throwDefaultError({
|
|
1429
|
+
output,
|
|
1430
|
+
parsedBody,
|
|
1431
|
+
exceptionCtor: __BaseException,
|
|
1432
|
+
errorCode,
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1436
|
+
export const de_CreateFlowCommand = async (output, context) => {
|
|
1437
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1438
|
+
return de_CreateFlowCommandError(output, context);
|
|
1439
|
+
}
|
|
1440
|
+
const contents = map({
|
|
1441
|
+
$metadata: deserializeMetadata(output),
|
|
1442
|
+
});
|
|
1443
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1444
|
+
if (data.flow != null) {
|
|
1445
|
+
contents.Flow = de_Flow(data.flow, context);
|
|
1446
|
+
}
|
|
1447
|
+
return contents;
|
|
1448
|
+
};
|
|
1449
|
+
const de_CreateFlowCommandError = async (output, context) => {
|
|
1450
|
+
const parsedOutput = {
|
|
1451
|
+
...output,
|
|
1452
|
+
body: await parseErrorBody(output.body, context),
|
|
1453
|
+
};
|
|
1454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
+
switch (errorCode) {
|
|
1456
|
+
case "BadRequestException":
|
|
1457
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1458
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1459
|
+
case "CreateFlow420Exception":
|
|
1460
|
+
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
1461
|
+
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
1462
|
+
case "ForbiddenException":
|
|
1463
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1464
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1465
|
+
case "InternalServerErrorException":
|
|
1466
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1467
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1468
|
+
case "ServiceUnavailableException":
|
|
1469
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1470
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1471
|
+
case "TooManyRequestsException":
|
|
1472
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1473
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1474
|
+
default:
|
|
1475
|
+
const parsedBody = parsedOutput.body;
|
|
1476
|
+
throwDefaultError({
|
|
1477
|
+
output,
|
|
1478
|
+
parsedBody,
|
|
1479
|
+
exceptionCtor: __BaseException,
|
|
1480
|
+
errorCode,
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
};
|
|
1484
|
+
export const de_CreateGatewayCommand = async (output, context) => {
|
|
1485
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1486
|
+
return de_CreateGatewayCommandError(output, context);
|
|
1487
|
+
}
|
|
1488
|
+
const contents = map({
|
|
1489
|
+
$metadata: deserializeMetadata(output),
|
|
1490
|
+
});
|
|
1491
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1492
|
+
if (data.gateway != null) {
|
|
1493
|
+
contents.Gateway = de_Gateway(data.gateway, context);
|
|
1494
|
+
}
|
|
1495
|
+
return contents;
|
|
1496
|
+
};
|
|
1497
|
+
const de_CreateGatewayCommandError = async (output, context) => {
|
|
1498
|
+
const parsedOutput = {
|
|
1499
|
+
...output,
|
|
1500
|
+
body: await parseErrorBody(output.body, context),
|
|
1501
|
+
};
|
|
1502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
+
switch (errorCode) {
|
|
1504
|
+
case "BadRequestException":
|
|
1505
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1506
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1507
|
+
case "ConflictException":
|
|
1508
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1509
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1510
|
+
case "CreateGateway420Exception":
|
|
1511
|
+
case "com.amazonaws.mediaconnect#CreateGateway420Exception":
|
|
1512
|
+
throw await de_CreateGateway420ExceptionRes(parsedOutput, context);
|
|
1513
|
+
case "ForbiddenException":
|
|
1514
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1515
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1516
|
+
case "InternalServerErrorException":
|
|
1517
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1518
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1519
|
+
case "ServiceUnavailableException":
|
|
1520
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1521
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1522
|
+
case "TooManyRequestsException":
|
|
1523
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1524
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1525
|
+
default:
|
|
1526
|
+
const parsedBody = parsedOutput.body;
|
|
1527
|
+
throwDefaultError({
|
|
1528
|
+
output,
|
|
1529
|
+
parsedBody,
|
|
1530
|
+
exceptionCtor: __BaseException,
|
|
1531
|
+
errorCode,
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
};
|
|
1535
|
+
export const de_DeleteBridgeCommand = async (output, context) => {
|
|
1536
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1537
|
+
return de_DeleteBridgeCommandError(output, context);
|
|
1538
|
+
}
|
|
1539
|
+
const contents = map({
|
|
1540
|
+
$metadata: deserializeMetadata(output),
|
|
1541
|
+
});
|
|
1542
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1543
|
+
if (data.bridgeArn != null) {
|
|
1544
|
+
contents.BridgeArn = __expectString(data.bridgeArn);
|
|
1545
|
+
}
|
|
1546
|
+
return contents;
|
|
1547
|
+
};
|
|
1548
|
+
const de_DeleteBridgeCommandError = async (output, context) => {
|
|
1549
|
+
const parsedOutput = {
|
|
1550
|
+
...output,
|
|
1551
|
+
body: await parseErrorBody(output.body, context),
|
|
1552
|
+
};
|
|
1553
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
+
switch (errorCode) {
|
|
1555
|
+
case "BadRequestException":
|
|
1556
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1557
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1558
|
+
case "ConflictException":
|
|
1559
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1560
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1561
|
+
case "ForbiddenException":
|
|
1562
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1563
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1564
|
+
case "InternalServerErrorException":
|
|
1565
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1566
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1567
|
+
case "NotFoundException":
|
|
1568
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1569
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1570
|
+
case "ServiceUnavailableException":
|
|
1571
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1572
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1573
|
+
case "TooManyRequestsException":
|
|
1574
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1575
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1576
|
+
default:
|
|
1577
|
+
const parsedBody = parsedOutput.body;
|
|
1578
|
+
throwDefaultError({
|
|
1579
|
+
output,
|
|
1580
|
+
parsedBody,
|
|
1581
|
+
exceptionCtor: __BaseException,
|
|
1582
|
+
errorCode,
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
};
|
|
1586
|
+
export const de_DeleteFlowCommand = async (output, context) => {
|
|
1587
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1588
|
+
return de_DeleteFlowCommandError(output, context);
|
|
1589
|
+
}
|
|
1590
|
+
const contents = map({
|
|
1591
|
+
$metadata: deserializeMetadata(output),
|
|
1592
|
+
});
|
|
1593
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1594
|
+
if (data.flowArn != null) {
|
|
1595
|
+
contents.FlowArn = __expectString(data.flowArn);
|
|
1596
|
+
}
|
|
1597
|
+
if (data.status != null) {
|
|
1598
|
+
contents.Status = __expectString(data.status);
|
|
1599
|
+
}
|
|
1600
|
+
return contents;
|
|
1601
|
+
};
|
|
1602
|
+
const de_DeleteFlowCommandError = async (output, context) => {
|
|
1603
|
+
const parsedOutput = {
|
|
1604
|
+
...output,
|
|
1605
|
+
body: await parseErrorBody(output.body, context),
|
|
1606
|
+
};
|
|
1607
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1608
|
+
switch (errorCode) {
|
|
1609
|
+
case "BadRequestException":
|
|
1610
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1611
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1612
|
+
case "ForbiddenException":
|
|
1613
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1614
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1615
|
+
case "InternalServerErrorException":
|
|
1616
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1617
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1618
|
+
case "NotFoundException":
|
|
1619
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1620
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1621
|
+
case "ServiceUnavailableException":
|
|
1622
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1623
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1624
|
+
case "TooManyRequestsException":
|
|
1625
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1626
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1627
|
+
default:
|
|
1628
|
+
const parsedBody = parsedOutput.body;
|
|
1629
|
+
throwDefaultError({
|
|
1630
|
+
output,
|
|
1631
|
+
parsedBody,
|
|
1632
|
+
exceptionCtor: __BaseException,
|
|
1633
|
+
errorCode,
|
|
1634
|
+
});
|
|
1635
|
+
}
|
|
1636
|
+
};
|
|
1637
|
+
export const de_DeleteGatewayCommand = async (output, context) => {
|
|
1638
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1639
|
+
return de_DeleteGatewayCommandError(output, context);
|
|
1640
|
+
}
|
|
1641
|
+
const contents = map({
|
|
1642
|
+
$metadata: deserializeMetadata(output),
|
|
1643
|
+
});
|
|
1644
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1645
|
+
if (data.gatewayArn != null) {
|
|
1646
|
+
contents.GatewayArn = __expectString(data.gatewayArn);
|
|
1647
|
+
}
|
|
1648
|
+
return contents;
|
|
1649
|
+
};
|
|
1650
|
+
const de_DeleteGatewayCommandError = async (output, context) => {
|
|
1651
|
+
const parsedOutput = {
|
|
1652
|
+
...output,
|
|
1653
|
+
body: await parseErrorBody(output.body, context),
|
|
1654
|
+
};
|
|
1655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
+
switch (errorCode) {
|
|
1657
|
+
case "BadRequestException":
|
|
1658
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1659
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1660
|
+
case "ConflictException":
|
|
1661
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1662
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1663
|
+
case "ForbiddenException":
|
|
1664
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1665
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1666
|
+
case "InternalServerErrorException":
|
|
1667
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1668
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1669
|
+
case "NotFoundException":
|
|
1670
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1671
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1672
|
+
case "ServiceUnavailableException":
|
|
1673
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1674
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1675
|
+
case "TooManyRequestsException":
|
|
1676
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1677
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1678
|
+
default:
|
|
1679
|
+
const parsedBody = parsedOutput.body;
|
|
1680
|
+
throwDefaultError({
|
|
1681
|
+
output,
|
|
1682
|
+
parsedBody,
|
|
1683
|
+
exceptionCtor: __BaseException,
|
|
1684
|
+
errorCode,
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1687
|
+
};
|
|
1688
|
+
export const de_DeregisterGatewayInstanceCommand = async (output, context) => {
|
|
1689
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1690
|
+
return de_DeregisterGatewayInstanceCommandError(output, context);
|
|
1691
|
+
}
|
|
1692
|
+
const contents = map({
|
|
1693
|
+
$metadata: deserializeMetadata(output),
|
|
1694
|
+
});
|
|
1695
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1696
|
+
if (data.gatewayInstanceArn != null) {
|
|
1697
|
+
contents.GatewayInstanceArn = __expectString(data.gatewayInstanceArn);
|
|
1698
|
+
}
|
|
1699
|
+
if (data.instanceState != null) {
|
|
1700
|
+
contents.InstanceState = __expectString(data.instanceState);
|
|
1701
|
+
}
|
|
1702
|
+
return contents;
|
|
1703
|
+
};
|
|
1704
|
+
const de_DeregisterGatewayInstanceCommandError = async (output, context) => {
|
|
1705
|
+
const parsedOutput = {
|
|
1706
|
+
...output,
|
|
1707
|
+
body: await parseErrorBody(output.body, context),
|
|
1708
|
+
};
|
|
1709
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
|
+
switch (errorCode) {
|
|
1711
|
+
case "BadRequestException":
|
|
1712
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1713
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1714
|
+
case "ConflictException":
|
|
1715
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1716
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1717
|
+
case "ForbiddenException":
|
|
1718
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1719
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1720
|
+
case "InternalServerErrorException":
|
|
1721
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1722
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1723
|
+
case "NotFoundException":
|
|
1724
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1725
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1726
|
+
case "ServiceUnavailableException":
|
|
1727
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1728
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1729
|
+
case "TooManyRequestsException":
|
|
1730
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
1731
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1732
|
+
default:
|
|
1733
|
+
const parsedBody = parsedOutput.body;
|
|
1734
|
+
throwDefaultError({
|
|
1735
|
+
output,
|
|
1736
|
+
parsedBody,
|
|
1737
|
+
exceptionCtor: __BaseException,
|
|
1738
|
+
errorCode,
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1741
|
+
};
|
|
1742
|
+
export const de_DescribeBridgeCommand = async (output, context) => {
|
|
1743
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1744
|
+
return de_DescribeBridgeCommandError(output, context);
|
|
651
1745
|
}
|
|
652
1746
|
const contents = map({
|
|
653
1747
|
$metadata: deserializeMetadata(output),
|
|
654
1748
|
});
|
|
655
1749
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
656
|
-
if (data.
|
|
657
|
-
contents.
|
|
658
|
-
}
|
|
659
|
-
if (data.mediaStreams != null) {
|
|
660
|
-
contents.MediaStreams = de___listOfMediaStream(data.mediaStreams, context);
|
|
1750
|
+
if (data.bridge != null) {
|
|
1751
|
+
contents.Bridge = de_Bridge(data.bridge, context);
|
|
661
1752
|
}
|
|
662
1753
|
return contents;
|
|
663
1754
|
};
|
|
664
|
-
const
|
|
1755
|
+
const de_DescribeBridgeCommandError = async (output, context) => {
|
|
665
1756
|
const parsedOutput = {
|
|
666
1757
|
...output,
|
|
667
1758
|
body: await parseErrorBody(output.body, context),
|
|
@@ -671,6 +1762,9 @@ const de_AddFlowMediaStreamsCommandError = async (output, context) => {
|
|
|
671
1762
|
case "BadRequestException":
|
|
672
1763
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
673
1764
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1765
|
+
case "ConflictException":
|
|
1766
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1767
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
674
1768
|
case "ForbiddenException":
|
|
675
1769
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
676
1770
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -696,32 +1790,29 @@ const de_AddFlowMediaStreamsCommandError = async (output, context) => {
|
|
|
696
1790
|
});
|
|
697
1791
|
}
|
|
698
1792
|
};
|
|
699
|
-
export const
|
|
700
|
-
if (output.statusCode !==
|
|
701
|
-
return
|
|
1793
|
+
export const de_DescribeFlowCommand = async (output, context) => {
|
|
1794
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1795
|
+
return de_DescribeFlowCommandError(output, context);
|
|
702
1796
|
}
|
|
703
1797
|
const contents = map({
|
|
704
1798
|
$metadata: deserializeMetadata(output),
|
|
705
1799
|
});
|
|
706
1800
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
707
|
-
if (data.
|
|
708
|
-
contents.
|
|
1801
|
+
if (data.flow != null) {
|
|
1802
|
+
contents.Flow = de_Flow(data.flow, context);
|
|
709
1803
|
}
|
|
710
|
-
if (data.
|
|
711
|
-
contents.
|
|
1804
|
+
if (data.messages != null) {
|
|
1805
|
+
contents.Messages = de_Messages(data.messages, context);
|
|
712
1806
|
}
|
|
713
1807
|
return contents;
|
|
714
1808
|
};
|
|
715
|
-
const
|
|
1809
|
+
const de_DescribeFlowCommandError = async (output, context) => {
|
|
716
1810
|
const parsedOutput = {
|
|
717
1811
|
...output,
|
|
718
1812
|
body: await parseErrorBody(output.body, context),
|
|
719
1813
|
};
|
|
720
1814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
1815
|
switch (errorCode) {
|
|
722
|
-
case "AddFlowOutputs420Exception":
|
|
723
|
-
case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
|
|
724
|
-
throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
|
|
725
1816
|
case "BadRequestException":
|
|
726
1817
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
727
1818
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
@@ -750,23 +1841,20 @@ const de_AddFlowOutputsCommandError = async (output, context) => {
|
|
|
750
1841
|
});
|
|
751
1842
|
}
|
|
752
1843
|
};
|
|
753
|
-
export const
|
|
754
|
-
if (output.statusCode !==
|
|
755
|
-
return
|
|
1844
|
+
export const de_DescribeGatewayCommand = async (output, context) => {
|
|
1845
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
|
+
return de_DescribeGatewayCommandError(output, context);
|
|
756
1847
|
}
|
|
757
1848
|
const contents = map({
|
|
758
1849
|
$metadata: deserializeMetadata(output),
|
|
759
1850
|
});
|
|
760
1851
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
761
|
-
if (data.
|
|
762
|
-
contents.
|
|
763
|
-
}
|
|
764
|
-
if (data.sources != null) {
|
|
765
|
-
contents.Sources = de___listOfSource(data.sources, context);
|
|
1852
|
+
if (data.gateway != null) {
|
|
1853
|
+
contents.Gateway = de_Gateway(data.gateway, context);
|
|
766
1854
|
}
|
|
767
1855
|
return contents;
|
|
768
1856
|
};
|
|
769
|
-
const
|
|
1857
|
+
const de_DescribeGatewayCommandError = async (output, context) => {
|
|
770
1858
|
const parsedOutput = {
|
|
771
1859
|
...output,
|
|
772
1860
|
body: await parseErrorBody(output.body, context),
|
|
@@ -776,6 +1864,9 @@ const de_AddFlowSourcesCommandError = async (output, context) => {
|
|
|
776
1864
|
case "BadRequestException":
|
|
777
1865
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
778
1866
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1867
|
+
case "ConflictException":
|
|
1868
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1869
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
779
1870
|
case "ForbiddenException":
|
|
780
1871
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
781
1872
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -801,23 +1892,20 @@ const de_AddFlowSourcesCommandError = async (output, context) => {
|
|
|
801
1892
|
});
|
|
802
1893
|
}
|
|
803
1894
|
};
|
|
804
|
-
export const
|
|
805
|
-
if (output.statusCode !==
|
|
806
|
-
return
|
|
1895
|
+
export const de_DescribeGatewayInstanceCommand = async (output, context) => {
|
|
1896
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1897
|
+
return de_DescribeGatewayInstanceCommandError(output, context);
|
|
807
1898
|
}
|
|
808
1899
|
const contents = map({
|
|
809
1900
|
$metadata: deserializeMetadata(output),
|
|
810
1901
|
});
|
|
811
1902
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
812
|
-
if (data.
|
|
813
|
-
contents.
|
|
814
|
-
}
|
|
815
|
-
if (data.vpcInterfaces != null) {
|
|
816
|
-
contents.VpcInterfaces = de___listOfVpcInterface(data.vpcInterfaces, context);
|
|
1903
|
+
if (data.gatewayInstance != null) {
|
|
1904
|
+
contents.GatewayInstance = de_GatewayInstance(data.gatewayInstance, context);
|
|
817
1905
|
}
|
|
818
1906
|
return contents;
|
|
819
1907
|
};
|
|
820
|
-
const
|
|
1908
|
+
const de_DescribeGatewayInstanceCommandError = async (output, context) => {
|
|
821
1909
|
const parsedOutput = {
|
|
822
1910
|
...output,
|
|
823
1911
|
body: await parseErrorBody(output.body, context),
|
|
@@ -827,6 +1915,9 @@ const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
|
827
1915
|
case "BadRequestException":
|
|
828
1916
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
829
1917
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1918
|
+
case "ConflictException":
|
|
1919
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
1920
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
830
1921
|
case "ForbiddenException":
|
|
831
1922
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
832
1923
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -852,20 +1943,20 @@ const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
|
|
|
852
1943
|
});
|
|
853
1944
|
}
|
|
854
1945
|
};
|
|
855
|
-
export const
|
|
856
|
-
if (output.statusCode !==
|
|
857
|
-
return
|
|
1946
|
+
export const de_DescribeOfferingCommand = async (output, context) => {
|
|
1947
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1948
|
+
return de_DescribeOfferingCommandError(output, context);
|
|
858
1949
|
}
|
|
859
1950
|
const contents = map({
|
|
860
1951
|
$metadata: deserializeMetadata(output),
|
|
861
1952
|
});
|
|
862
1953
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
863
|
-
if (data.
|
|
864
|
-
contents.
|
|
1954
|
+
if (data.offering != null) {
|
|
1955
|
+
contents.Offering = de_Offering(data.offering, context);
|
|
865
1956
|
}
|
|
866
1957
|
return contents;
|
|
867
1958
|
};
|
|
868
|
-
const
|
|
1959
|
+
const de_DescribeOfferingCommandError = async (output, context) => {
|
|
869
1960
|
const parsedOutput = {
|
|
870
1961
|
...output,
|
|
871
1962
|
body: await parseErrorBody(output.body, context),
|
|
@@ -875,15 +1966,12 @@ const de_CreateFlowCommandError = async (output, context) => {
|
|
|
875
1966
|
case "BadRequestException":
|
|
876
1967
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
877
1968
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
878
|
-
case "CreateFlow420Exception":
|
|
879
|
-
case "com.amazonaws.mediaconnect#CreateFlow420Exception":
|
|
880
|
-
throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
|
|
881
|
-
case "ForbiddenException":
|
|
882
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
883
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
884
1969
|
case "InternalServerErrorException":
|
|
885
1970
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
886
1971
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1972
|
+
case "NotFoundException":
|
|
1973
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1974
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
887
1975
|
case "ServiceUnavailableException":
|
|
888
1976
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
889
1977
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -900,23 +1988,20 @@ const de_CreateFlowCommandError = async (output, context) => {
|
|
|
900
1988
|
});
|
|
901
1989
|
}
|
|
902
1990
|
};
|
|
903
|
-
export const
|
|
904
|
-
if (output.statusCode !==
|
|
905
|
-
return
|
|
1991
|
+
export const de_DescribeReservationCommand = async (output, context) => {
|
|
1992
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1993
|
+
return de_DescribeReservationCommandError(output, context);
|
|
906
1994
|
}
|
|
907
1995
|
const contents = map({
|
|
908
1996
|
$metadata: deserializeMetadata(output),
|
|
909
1997
|
});
|
|
910
1998
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
911
|
-
if (data.
|
|
912
|
-
contents.
|
|
913
|
-
}
|
|
914
|
-
if (data.status != null) {
|
|
915
|
-
contents.Status = __expectString(data.status);
|
|
1999
|
+
if (data.reservation != null) {
|
|
2000
|
+
contents.Reservation = de_Reservation(data.reservation, context);
|
|
916
2001
|
}
|
|
917
2002
|
return contents;
|
|
918
2003
|
};
|
|
919
|
-
const
|
|
2004
|
+
const de_DescribeReservationCommandError = async (output, context) => {
|
|
920
2005
|
const parsedOutput = {
|
|
921
2006
|
...output,
|
|
922
2007
|
body: await parseErrorBody(output.body, context),
|
|
@@ -926,9 +2011,6 @@ const de_DeleteFlowCommandError = async (output, context) => {
|
|
|
926
2011
|
case "BadRequestException":
|
|
927
2012
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
928
2013
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ForbiddenException":
|
|
930
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
931
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
932
2014
|
case "InternalServerErrorException":
|
|
933
2015
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
934
2016
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -951,23 +2033,23 @@ const de_DeleteFlowCommandError = async (output, context) => {
|
|
|
951
2033
|
});
|
|
952
2034
|
}
|
|
953
2035
|
};
|
|
954
|
-
export const
|
|
2036
|
+
export const de_GrantFlowEntitlementsCommand = async (output, context) => {
|
|
955
2037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
956
|
-
return
|
|
2038
|
+
return de_GrantFlowEntitlementsCommandError(output, context);
|
|
957
2039
|
}
|
|
958
2040
|
const contents = map({
|
|
959
2041
|
$metadata: deserializeMetadata(output),
|
|
960
2042
|
});
|
|
961
2043
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
962
|
-
if (data.
|
|
963
|
-
contents.
|
|
2044
|
+
if (data.entitlements != null) {
|
|
2045
|
+
contents.Entitlements = de___listOfEntitlement(data.entitlements, context);
|
|
964
2046
|
}
|
|
965
|
-
if (data.
|
|
966
|
-
contents.
|
|
2047
|
+
if (data.flowArn != null) {
|
|
2048
|
+
contents.FlowArn = __expectString(data.flowArn);
|
|
967
2049
|
}
|
|
968
2050
|
return contents;
|
|
969
2051
|
};
|
|
970
|
-
const
|
|
2052
|
+
const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
971
2053
|
const parsedOutput = {
|
|
972
2054
|
...output,
|
|
973
2055
|
body: await parseErrorBody(output.body, context),
|
|
@@ -980,6 +2062,9 @@ const de_DescribeFlowCommandError = async (output, context) => {
|
|
|
980
2062
|
case "ForbiddenException":
|
|
981
2063
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
982
2064
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2065
|
+
case "GrantFlowEntitlements420Exception":
|
|
2066
|
+
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
2067
|
+
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
983
2068
|
case "InternalServerErrorException":
|
|
984
2069
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
985
2070
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1002,20 +2087,23 @@ const de_DescribeFlowCommandError = async (output, context) => {
|
|
|
1002
2087
|
});
|
|
1003
2088
|
}
|
|
1004
2089
|
};
|
|
1005
|
-
export const
|
|
2090
|
+
export const de_ListBridgesCommand = async (output, context) => {
|
|
1006
2091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1007
|
-
return
|
|
2092
|
+
return de_ListBridgesCommandError(output, context);
|
|
1008
2093
|
}
|
|
1009
2094
|
const contents = map({
|
|
1010
2095
|
$metadata: deserializeMetadata(output),
|
|
1011
2096
|
});
|
|
1012
2097
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1013
|
-
if (data.
|
|
1014
|
-
contents.
|
|
2098
|
+
if (data.bridges != null) {
|
|
2099
|
+
contents.Bridges = de___listOfListedBridge(data.bridges, context);
|
|
2100
|
+
}
|
|
2101
|
+
if (data.nextToken != null) {
|
|
2102
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1015
2103
|
}
|
|
1016
2104
|
return contents;
|
|
1017
2105
|
};
|
|
1018
|
-
const
|
|
2106
|
+
const de_ListBridgesCommandError = async (output, context) => {
|
|
1019
2107
|
const parsedOutput = {
|
|
1020
2108
|
...output,
|
|
1021
2109
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1025,12 +2113,12 @@ const de_DescribeOfferingCommandError = async (output, context) => {
|
|
|
1025
2113
|
case "BadRequestException":
|
|
1026
2114
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1027
2115
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2116
|
+
case "ConflictException":
|
|
2117
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2118
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1028
2119
|
case "InternalServerErrorException":
|
|
1029
2120
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1030
2121
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "NotFoundException":
|
|
1032
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1033
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1034
2122
|
case "ServiceUnavailableException":
|
|
1035
2123
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1036
2124
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1047,20 +2135,23 @@ const de_DescribeOfferingCommandError = async (output, context) => {
|
|
|
1047
2135
|
});
|
|
1048
2136
|
}
|
|
1049
2137
|
};
|
|
1050
|
-
export const
|
|
2138
|
+
export const de_ListEntitlementsCommand = async (output, context) => {
|
|
1051
2139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1052
|
-
return
|
|
2140
|
+
return de_ListEntitlementsCommandError(output, context);
|
|
1053
2141
|
}
|
|
1054
2142
|
const contents = map({
|
|
1055
2143
|
$metadata: deserializeMetadata(output),
|
|
1056
2144
|
});
|
|
1057
2145
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1058
|
-
if (data.
|
|
1059
|
-
contents.
|
|
2146
|
+
if (data.entitlements != null) {
|
|
2147
|
+
contents.Entitlements = de___listOfListedEntitlement(data.entitlements, context);
|
|
2148
|
+
}
|
|
2149
|
+
if (data.nextToken != null) {
|
|
2150
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1060
2151
|
}
|
|
1061
2152
|
return contents;
|
|
1062
2153
|
};
|
|
1063
|
-
const
|
|
2154
|
+
const de_ListEntitlementsCommandError = async (output, context) => {
|
|
1064
2155
|
const parsedOutput = {
|
|
1065
2156
|
...output,
|
|
1066
2157
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1073,9 +2164,6 @@ const de_DescribeReservationCommandError = async (output, context) => {
|
|
|
1073
2164
|
case "InternalServerErrorException":
|
|
1074
2165
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1075
2166
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "NotFoundException":
|
|
1077
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1078
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1079
2167
|
case "ServiceUnavailableException":
|
|
1080
2168
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1081
2169
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1092,23 +2180,23 @@ const de_DescribeReservationCommandError = async (output, context) => {
|
|
|
1092
2180
|
});
|
|
1093
2181
|
}
|
|
1094
2182
|
};
|
|
1095
|
-
export const
|
|
2183
|
+
export const de_ListFlowsCommand = async (output, context) => {
|
|
1096
2184
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1097
|
-
return
|
|
2185
|
+
return de_ListFlowsCommandError(output, context);
|
|
1098
2186
|
}
|
|
1099
2187
|
const contents = map({
|
|
1100
2188
|
$metadata: deserializeMetadata(output),
|
|
1101
2189
|
});
|
|
1102
2190
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1103
|
-
if (data.
|
|
1104
|
-
contents.
|
|
2191
|
+
if (data.flows != null) {
|
|
2192
|
+
contents.Flows = de___listOfListedFlow(data.flows, context);
|
|
1105
2193
|
}
|
|
1106
|
-
if (data.
|
|
1107
|
-
contents.
|
|
2194
|
+
if (data.nextToken != null) {
|
|
2195
|
+
contents.NextToken = __expectString(data.nextToken);
|
|
1108
2196
|
}
|
|
1109
2197
|
return contents;
|
|
1110
2198
|
};
|
|
1111
|
-
const
|
|
2199
|
+
const de_ListFlowsCommandError = async (output, context) => {
|
|
1112
2200
|
const parsedOutput = {
|
|
1113
2201
|
...output,
|
|
1114
2202
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1118,18 +2206,9 @@ const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
|
1118
2206
|
case "BadRequestException":
|
|
1119
2207
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1120
2208
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ForbiddenException":
|
|
1122
|
-
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1123
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "GrantFlowEntitlements420Exception":
|
|
1125
|
-
case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
|
|
1126
|
-
throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
|
|
1127
2209
|
case "InternalServerErrorException":
|
|
1128
2210
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1129
2211
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "NotFoundException":
|
|
1131
|
-
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1132
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1133
2212
|
case "ServiceUnavailableException":
|
|
1134
2213
|
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
1135
2214
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
@@ -1146,23 +2225,23 @@ const de_GrantFlowEntitlementsCommandError = async (output, context) => {
|
|
|
1146
2225
|
});
|
|
1147
2226
|
}
|
|
1148
2227
|
};
|
|
1149
|
-
export const
|
|
2228
|
+
export const de_ListGatewayInstancesCommand = async (output, context) => {
|
|
1150
2229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1151
|
-
return
|
|
2230
|
+
return de_ListGatewayInstancesCommandError(output, context);
|
|
1152
2231
|
}
|
|
1153
2232
|
const contents = map({
|
|
1154
2233
|
$metadata: deserializeMetadata(output),
|
|
1155
2234
|
});
|
|
1156
2235
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1157
|
-
if (data.
|
|
1158
|
-
contents.
|
|
2236
|
+
if (data.instances != null) {
|
|
2237
|
+
contents.Instances = de___listOfListedGatewayInstance(data.instances, context);
|
|
1159
2238
|
}
|
|
1160
2239
|
if (data.nextToken != null) {
|
|
1161
2240
|
contents.NextToken = __expectString(data.nextToken);
|
|
1162
2241
|
}
|
|
1163
2242
|
return contents;
|
|
1164
2243
|
};
|
|
1165
|
-
const
|
|
2244
|
+
const de_ListGatewayInstancesCommandError = async (output, context) => {
|
|
1166
2245
|
const parsedOutput = {
|
|
1167
2246
|
...output,
|
|
1168
2247
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1172,6 +2251,9 @@ const de_ListEntitlementsCommandError = async (output, context) => {
|
|
|
1172
2251
|
case "BadRequestException":
|
|
1173
2252
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1174
2253
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2254
|
+
case "ConflictException":
|
|
2255
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2256
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1175
2257
|
case "InternalServerErrorException":
|
|
1176
2258
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1177
2259
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1191,23 +2273,23 @@ const de_ListEntitlementsCommandError = async (output, context) => {
|
|
|
1191
2273
|
});
|
|
1192
2274
|
}
|
|
1193
2275
|
};
|
|
1194
|
-
export const
|
|
2276
|
+
export const de_ListGatewaysCommand = async (output, context) => {
|
|
1195
2277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1196
|
-
return
|
|
2278
|
+
return de_ListGatewaysCommandError(output, context);
|
|
1197
2279
|
}
|
|
1198
2280
|
const contents = map({
|
|
1199
2281
|
$metadata: deserializeMetadata(output),
|
|
1200
2282
|
});
|
|
1201
2283
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1202
|
-
if (data.
|
|
1203
|
-
contents.
|
|
2284
|
+
if (data.gateways != null) {
|
|
2285
|
+
contents.Gateways = de___listOfListedGateway(data.gateways, context);
|
|
1204
2286
|
}
|
|
1205
2287
|
if (data.nextToken != null) {
|
|
1206
2288
|
contents.NextToken = __expectString(data.nextToken);
|
|
1207
2289
|
}
|
|
1208
2290
|
return contents;
|
|
1209
2291
|
};
|
|
1210
|
-
const
|
|
2292
|
+
const de_ListGatewaysCommandError = async (output, context) => {
|
|
1211
2293
|
const parsedOutput = {
|
|
1212
2294
|
...output,
|
|
1213
2295
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1217,6 +2299,9 @@ const de_ListFlowsCommandError = async (output, context) => {
|
|
|
1217
2299
|
case "BadRequestException":
|
|
1218
2300
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1219
2301
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2302
|
+
case "ConflictException":
|
|
2303
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2304
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1220
2305
|
case "InternalServerErrorException":
|
|
1221
2306
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1222
2307
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
@@ -1339,7 +2424,97 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1339
2424
|
}
|
|
1340
2425
|
return contents;
|
|
1341
2426
|
};
|
|
1342
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2427
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2428
|
+
const parsedOutput = {
|
|
2429
|
+
...output,
|
|
2430
|
+
body: await parseErrorBody(output.body, context),
|
|
2431
|
+
};
|
|
2432
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
|
+
switch (errorCode) {
|
|
2434
|
+
case "BadRequestException":
|
|
2435
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2436
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2437
|
+
case "InternalServerErrorException":
|
|
2438
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2439
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2440
|
+
case "NotFoundException":
|
|
2441
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2442
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2443
|
+
default:
|
|
2444
|
+
const parsedBody = parsedOutput.body;
|
|
2445
|
+
throwDefaultError({
|
|
2446
|
+
output,
|
|
2447
|
+
parsedBody,
|
|
2448
|
+
exceptionCtor: __BaseException,
|
|
2449
|
+
errorCode,
|
|
2450
|
+
});
|
|
2451
|
+
}
|
|
2452
|
+
};
|
|
2453
|
+
export const de_PurchaseOfferingCommand = async (output, context) => {
|
|
2454
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2455
|
+
return de_PurchaseOfferingCommandError(output, context);
|
|
2456
|
+
}
|
|
2457
|
+
const contents = map({
|
|
2458
|
+
$metadata: deserializeMetadata(output),
|
|
2459
|
+
});
|
|
2460
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2461
|
+
if (data.reservation != null) {
|
|
2462
|
+
contents.Reservation = de_Reservation(data.reservation, context);
|
|
2463
|
+
}
|
|
2464
|
+
return contents;
|
|
2465
|
+
};
|
|
2466
|
+
const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
2467
|
+
const parsedOutput = {
|
|
2468
|
+
...output,
|
|
2469
|
+
body: await parseErrorBody(output.body, context),
|
|
2470
|
+
};
|
|
2471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
|
+
switch (errorCode) {
|
|
2473
|
+
case "BadRequestException":
|
|
2474
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
2475
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2476
|
+
case "ForbiddenException":
|
|
2477
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2478
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2479
|
+
case "InternalServerErrorException":
|
|
2480
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
2481
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2482
|
+
case "NotFoundException":
|
|
2483
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
2484
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2485
|
+
case "ServiceUnavailableException":
|
|
2486
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2487
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2488
|
+
case "TooManyRequestsException":
|
|
2489
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2490
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2491
|
+
default:
|
|
2492
|
+
const parsedBody = parsedOutput.body;
|
|
2493
|
+
throwDefaultError({
|
|
2494
|
+
output,
|
|
2495
|
+
parsedBody,
|
|
2496
|
+
exceptionCtor: __BaseException,
|
|
2497
|
+
errorCode,
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
};
|
|
2501
|
+
export const de_RemoveBridgeOutputCommand = async (output, context) => {
|
|
2502
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2503
|
+
return de_RemoveBridgeOutputCommandError(output, context);
|
|
2504
|
+
}
|
|
2505
|
+
const contents = map({
|
|
2506
|
+
$metadata: deserializeMetadata(output),
|
|
2507
|
+
});
|
|
2508
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2509
|
+
if (data.bridgeArn != null) {
|
|
2510
|
+
contents.BridgeArn = __expectString(data.bridgeArn);
|
|
2511
|
+
}
|
|
2512
|
+
if (data.outputName != null) {
|
|
2513
|
+
contents.OutputName = __expectString(data.outputName);
|
|
2514
|
+
}
|
|
2515
|
+
return contents;
|
|
2516
|
+
};
|
|
2517
|
+
const de_RemoveBridgeOutputCommandError = async (output, context) => {
|
|
1343
2518
|
const parsedOutput = {
|
|
1344
2519
|
...output,
|
|
1345
2520
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1349,12 +2524,24 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1349
2524
|
case "BadRequestException":
|
|
1350
2525
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1351
2526
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2527
|
+
case "ConflictException":
|
|
2528
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2529
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2530
|
+
case "ForbiddenException":
|
|
2531
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
2532
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1352
2533
|
case "InternalServerErrorException":
|
|
1353
2534
|
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
1354
2535
|
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1355
2536
|
case "NotFoundException":
|
|
1356
2537
|
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
1357
2538
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2539
|
+
case "ServiceUnavailableException":
|
|
2540
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
2541
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2542
|
+
case "TooManyRequestsException":
|
|
2543
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
2544
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1358
2545
|
default:
|
|
1359
2546
|
const parsedBody = parsedOutput.body;
|
|
1360
2547
|
throwDefaultError({
|
|
@@ -1365,20 +2552,23 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1365
2552
|
});
|
|
1366
2553
|
}
|
|
1367
2554
|
};
|
|
1368
|
-
export const
|
|
1369
|
-
if (output.statusCode !==
|
|
1370
|
-
return
|
|
2555
|
+
export const de_RemoveBridgeSourceCommand = async (output, context) => {
|
|
2556
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2557
|
+
return de_RemoveBridgeSourceCommandError(output, context);
|
|
1371
2558
|
}
|
|
1372
2559
|
const contents = map({
|
|
1373
2560
|
$metadata: deserializeMetadata(output),
|
|
1374
2561
|
});
|
|
1375
2562
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1376
|
-
if (data.
|
|
1377
|
-
contents.
|
|
2563
|
+
if (data.bridgeArn != null) {
|
|
2564
|
+
contents.BridgeArn = __expectString(data.bridgeArn);
|
|
2565
|
+
}
|
|
2566
|
+
if (data.sourceName != null) {
|
|
2567
|
+
contents.SourceName = __expectString(data.sourceName);
|
|
1378
2568
|
}
|
|
1379
2569
|
return contents;
|
|
1380
2570
|
};
|
|
1381
|
-
const
|
|
2571
|
+
const de_RemoveBridgeSourceCommandError = async (output, context) => {
|
|
1382
2572
|
const parsedOutput = {
|
|
1383
2573
|
...output,
|
|
1384
2574
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1388,6 +2578,9 @@ const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
|
1388
2578
|
case "BadRequestException":
|
|
1389
2579
|
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
1390
2580
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2581
|
+
case "ConflictException":
|
|
2582
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
2583
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1391
2584
|
case "ForbiddenException":
|
|
1392
2585
|
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
1393
2586
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
@@ -1845,6 +3038,219 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1845
3038
|
});
|
|
1846
3039
|
}
|
|
1847
3040
|
};
|
|
3041
|
+
export const de_UpdateBridgeCommand = async (output, context) => {
|
|
3042
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3043
|
+
return de_UpdateBridgeCommandError(output, context);
|
|
3044
|
+
}
|
|
3045
|
+
const contents = map({
|
|
3046
|
+
$metadata: deserializeMetadata(output),
|
|
3047
|
+
});
|
|
3048
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3049
|
+
if (data.bridge != null) {
|
|
3050
|
+
contents.Bridge = de_Bridge(data.bridge, context);
|
|
3051
|
+
}
|
|
3052
|
+
return contents;
|
|
3053
|
+
};
|
|
3054
|
+
const de_UpdateBridgeCommandError = async (output, context) => {
|
|
3055
|
+
const parsedOutput = {
|
|
3056
|
+
...output,
|
|
3057
|
+
body: await parseErrorBody(output.body, context),
|
|
3058
|
+
};
|
|
3059
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3060
|
+
switch (errorCode) {
|
|
3061
|
+
case "BadRequestException":
|
|
3062
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3063
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3064
|
+
case "ConflictException":
|
|
3065
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3066
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3067
|
+
case "ForbiddenException":
|
|
3068
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3069
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3070
|
+
case "InternalServerErrorException":
|
|
3071
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3072
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3073
|
+
case "NotFoundException":
|
|
3074
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3075
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3076
|
+
case "ServiceUnavailableException":
|
|
3077
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3078
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3079
|
+
case "TooManyRequestsException":
|
|
3080
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3081
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3082
|
+
default:
|
|
3083
|
+
const parsedBody = parsedOutput.body;
|
|
3084
|
+
throwDefaultError({
|
|
3085
|
+
output,
|
|
3086
|
+
parsedBody,
|
|
3087
|
+
exceptionCtor: __BaseException,
|
|
3088
|
+
errorCode,
|
|
3089
|
+
});
|
|
3090
|
+
}
|
|
3091
|
+
};
|
|
3092
|
+
export const de_UpdateBridgeOutputCommand = async (output, context) => {
|
|
3093
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3094
|
+
return de_UpdateBridgeOutputCommandError(output, context);
|
|
3095
|
+
}
|
|
3096
|
+
const contents = map({
|
|
3097
|
+
$metadata: deserializeMetadata(output),
|
|
3098
|
+
});
|
|
3099
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3100
|
+
if (data.bridgeArn != null) {
|
|
3101
|
+
contents.BridgeArn = __expectString(data.bridgeArn);
|
|
3102
|
+
}
|
|
3103
|
+
if (data.output != null) {
|
|
3104
|
+
contents.Output = de_BridgeOutput(data.output, context);
|
|
3105
|
+
}
|
|
3106
|
+
return contents;
|
|
3107
|
+
};
|
|
3108
|
+
const de_UpdateBridgeOutputCommandError = async (output, context) => {
|
|
3109
|
+
const parsedOutput = {
|
|
3110
|
+
...output,
|
|
3111
|
+
body: await parseErrorBody(output.body, context),
|
|
3112
|
+
};
|
|
3113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3114
|
+
switch (errorCode) {
|
|
3115
|
+
case "BadRequestException":
|
|
3116
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3117
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3118
|
+
case "ConflictException":
|
|
3119
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3120
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3121
|
+
case "ForbiddenException":
|
|
3122
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3123
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3124
|
+
case "InternalServerErrorException":
|
|
3125
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3126
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3127
|
+
case "NotFoundException":
|
|
3128
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3129
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3130
|
+
case "ServiceUnavailableException":
|
|
3131
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3132
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3133
|
+
case "TooManyRequestsException":
|
|
3134
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3135
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3136
|
+
default:
|
|
3137
|
+
const parsedBody = parsedOutput.body;
|
|
3138
|
+
throwDefaultError({
|
|
3139
|
+
output,
|
|
3140
|
+
parsedBody,
|
|
3141
|
+
exceptionCtor: __BaseException,
|
|
3142
|
+
errorCode,
|
|
3143
|
+
});
|
|
3144
|
+
}
|
|
3145
|
+
};
|
|
3146
|
+
export const de_UpdateBridgeSourceCommand = async (output, context) => {
|
|
3147
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3148
|
+
return de_UpdateBridgeSourceCommandError(output, context);
|
|
3149
|
+
}
|
|
3150
|
+
const contents = map({
|
|
3151
|
+
$metadata: deserializeMetadata(output),
|
|
3152
|
+
});
|
|
3153
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3154
|
+
if (data.bridgeArn != null) {
|
|
3155
|
+
contents.BridgeArn = __expectString(data.bridgeArn);
|
|
3156
|
+
}
|
|
3157
|
+
if (data.source != null) {
|
|
3158
|
+
contents.Source = de_BridgeSource(data.source, context);
|
|
3159
|
+
}
|
|
3160
|
+
return contents;
|
|
3161
|
+
};
|
|
3162
|
+
const de_UpdateBridgeSourceCommandError = async (output, context) => {
|
|
3163
|
+
const parsedOutput = {
|
|
3164
|
+
...output,
|
|
3165
|
+
body: await parseErrorBody(output.body, context),
|
|
3166
|
+
};
|
|
3167
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3168
|
+
switch (errorCode) {
|
|
3169
|
+
case "BadRequestException":
|
|
3170
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3171
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3172
|
+
case "ConflictException":
|
|
3173
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3174
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3175
|
+
case "ForbiddenException":
|
|
3176
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3177
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3178
|
+
case "InternalServerErrorException":
|
|
3179
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3180
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3181
|
+
case "NotFoundException":
|
|
3182
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3183
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3184
|
+
case "ServiceUnavailableException":
|
|
3185
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3186
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3187
|
+
case "TooManyRequestsException":
|
|
3188
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3189
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3190
|
+
default:
|
|
3191
|
+
const parsedBody = parsedOutput.body;
|
|
3192
|
+
throwDefaultError({
|
|
3193
|
+
output,
|
|
3194
|
+
parsedBody,
|
|
3195
|
+
exceptionCtor: __BaseException,
|
|
3196
|
+
errorCode,
|
|
3197
|
+
});
|
|
3198
|
+
}
|
|
3199
|
+
};
|
|
3200
|
+
export const de_UpdateBridgeStateCommand = async (output, context) => {
|
|
3201
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3202
|
+
return de_UpdateBridgeStateCommandError(output, context);
|
|
3203
|
+
}
|
|
3204
|
+
const contents = map({
|
|
3205
|
+
$metadata: deserializeMetadata(output),
|
|
3206
|
+
});
|
|
3207
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3208
|
+
if (data.bridgeArn != null) {
|
|
3209
|
+
contents.BridgeArn = __expectString(data.bridgeArn);
|
|
3210
|
+
}
|
|
3211
|
+
if (data.desiredState != null) {
|
|
3212
|
+
contents.DesiredState = __expectString(data.desiredState);
|
|
3213
|
+
}
|
|
3214
|
+
return contents;
|
|
3215
|
+
};
|
|
3216
|
+
const de_UpdateBridgeStateCommandError = async (output, context) => {
|
|
3217
|
+
const parsedOutput = {
|
|
3218
|
+
...output,
|
|
3219
|
+
body: await parseErrorBody(output.body, context),
|
|
3220
|
+
};
|
|
3221
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3222
|
+
switch (errorCode) {
|
|
3223
|
+
case "BadRequestException":
|
|
3224
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3225
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3226
|
+
case "ConflictException":
|
|
3227
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3228
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3229
|
+
case "ForbiddenException":
|
|
3230
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3231
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3232
|
+
case "InternalServerErrorException":
|
|
3233
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3234
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3235
|
+
case "NotFoundException":
|
|
3236
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3237
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3238
|
+
case "ServiceUnavailableException":
|
|
3239
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3240
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3241
|
+
case "TooManyRequestsException":
|
|
3242
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3243
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3244
|
+
default:
|
|
3245
|
+
const parsedBody = parsedOutput.body;
|
|
3246
|
+
throwDefaultError({
|
|
3247
|
+
output,
|
|
3248
|
+
parsedBody,
|
|
3249
|
+
exceptionCtor: __BaseException,
|
|
3250
|
+
errorCode,
|
|
3251
|
+
});
|
|
3252
|
+
}
|
|
3253
|
+
};
|
|
1848
3254
|
export const de_UpdateFlowCommand = async (output, context) => {
|
|
1849
3255
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1850
3256
|
return de_UpdateFlowCommandError(output, context);
|
|
@@ -2097,26 +3503,104 @@ const de_UpdateFlowSourceCommandError = async (output, context) => {
|
|
|
2097
3503
|
});
|
|
2098
3504
|
}
|
|
2099
3505
|
};
|
|
2100
|
-
const
|
|
2101
|
-
|
|
3506
|
+
export const de_UpdateGatewayInstanceCommand = async (output, context) => {
|
|
3507
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3508
|
+
return de_UpdateGatewayInstanceCommandError(output, context);
|
|
3509
|
+
}
|
|
3510
|
+
const contents = map({
|
|
3511
|
+
$metadata: deserializeMetadata(output),
|
|
3512
|
+
});
|
|
3513
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3514
|
+
if (data.bridgePlacement != null) {
|
|
3515
|
+
contents.BridgePlacement = __expectString(data.bridgePlacement);
|
|
3516
|
+
}
|
|
3517
|
+
if (data.gatewayInstanceArn != null) {
|
|
3518
|
+
contents.GatewayInstanceArn = __expectString(data.gatewayInstanceArn);
|
|
3519
|
+
}
|
|
3520
|
+
return contents;
|
|
3521
|
+
};
|
|
3522
|
+
const de_UpdateGatewayInstanceCommandError = async (output, context) => {
|
|
3523
|
+
const parsedOutput = {
|
|
3524
|
+
...output,
|
|
3525
|
+
body: await parseErrorBody(output.body, context),
|
|
3526
|
+
};
|
|
3527
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3528
|
+
switch (errorCode) {
|
|
3529
|
+
case "BadRequestException":
|
|
3530
|
+
case "com.amazonaws.mediaconnect#BadRequestException":
|
|
3531
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3532
|
+
case "ConflictException":
|
|
3533
|
+
case "com.amazonaws.mediaconnect#ConflictException":
|
|
3534
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3535
|
+
case "ForbiddenException":
|
|
3536
|
+
case "com.amazonaws.mediaconnect#ForbiddenException":
|
|
3537
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3538
|
+
case "InternalServerErrorException":
|
|
3539
|
+
case "com.amazonaws.mediaconnect#InternalServerErrorException":
|
|
3540
|
+
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3541
|
+
case "NotFoundException":
|
|
3542
|
+
case "com.amazonaws.mediaconnect#NotFoundException":
|
|
3543
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3544
|
+
case "ServiceUnavailableException":
|
|
3545
|
+
case "com.amazonaws.mediaconnect#ServiceUnavailableException":
|
|
3546
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3547
|
+
case "TooManyRequestsException":
|
|
3548
|
+
case "com.amazonaws.mediaconnect#TooManyRequestsException":
|
|
3549
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3550
|
+
default:
|
|
3551
|
+
const parsedBody = parsedOutput.body;
|
|
3552
|
+
throwDefaultError({
|
|
3553
|
+
output,
|
|
3554
|
+
parsedBody,
|
|
3555
|
+
exceptionCtor: __BaseException,
|
|
3556
|
+
errorCode,
|
|
3557
|
+
});
|
|
3558
|
+
}
|
|
3559
|
+
};
|
|
3560
|
+
const map = __map;
|
|
3561
|
+
const de_AddFlowOutputs420ExceptionRes = async (parsedOutput, context) => {
|
|
3562
|
+
const contents = map({});
|
|
3563
|
+
const data = parsedOutput.body;
|
|
3564
|
+
if (data.message != null) {
|
|
3565
|
+
contents.Message = __expectString(data.message);
|
|
3566
|
+
}
|
|
3567
|
+
const exception = new AddFlowOutputs420Exception({
|
|
3568
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3569
|
+
...contents,
|
|
3570
|
+
});
|
|
3571
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3572
|
+
};
|
|
3573
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3574
|
+
const contents = map({});
|
|
3575
|
+
const data = parsedOutput.body;
|
|
3576
|
+
if (data.message != null) {
|
|
3577
|
+
contents.Message = __expectString(data.message);
|
|
3578
|
+
}
|
|
3579
|
+
const exception = new BadRequestException({
|
|
3580
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3581
|
+
...contents,
|
|
3582
|
+
});
|
|
3583
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3584
|
+
};
|
|
3585
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2102
3586
|
const contents = map({});
|
|
2103
3587
|
const data = parsedOutput.body;
|
|
2104
3588
|
if (data.message != null) {
|
|
2105
3589
|
contents.Message = __expectString(data.message);
|
|
2106
3590
|
}
|
|
2107
|
-
const exception = new
|
|
3591
|
+
const exception = new ConflictException({
|
|
2108
3592
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2109
3593
|
...contents,
|
|
2110
3594
|
});
|
|
2111
3595
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2112
3596
|
};
|
|
2113
|
-
const
|
|
3597
|
+
const de_CreateBridge420ExceptionRes = async (parsedOutput, context) => {
|
|
2114
3598
|
const contents = map({});
|
|
2115
3599
|
const data = parsedOutput.body;
|
|
2116
3600
|
if (data.message != null) {
|
|
2117
3601
|
contents.Message = __expectString(data.message);
|
|
2118
3602
|
}
|
|
2119
|
-
const exception = new
|
|
3603
|
+
const exception = new CreateBridge420Exception({
|
|
2120
3604
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2121
3605
|
...contents,
|
|
2122
3606
|
});
|
|
@@ -2134,6 +3618,18 @@ const de_CreateFlow420ExceptionRes = async (parsedOutput, context) => {
|
|
|
2134
3618
|
});
|
|
2135
3619
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2136
3620
|
};
|
|
3621
|
+
const de_CreateGateway420ExceptionRes = async (parsedOutput, context) => {
|
|
3622
|
+
const contents = map({});
|
|
3623
|
+
const data = parsedOutput.body;
|
|
3624
|
+
if (data.message != null) {
|
|
3625
|
+
contents.Message = __expectString(data.message);
|
|
3626
|
+
}
|
|
3627
|
+
const exception = new CreateGateway420Exception({
|
|
3628
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3629
|
+
...contents,
|
|
3630
|
+
});
|
|
3631
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3632
|
+
};
|
|
2137
3633
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2138
3634
|
const contents = map({});
|
|
2139
3635
|
const data = parsedOutput.body;
|
|
@@ -2213,6 +3709,20 @@ const se___listOf__string = (input, context) => {
|
|
|
2213
3709
|
return entry;
|
|
2214
3710
|
});
|
|
2215
3711
|
};
|
|
3712
|
+
const se___listOfAddBridgeOutputRequest = (input, context) => {
|
|
3713
|
+
return input
|
|
3714
|
+
.filter((e) => e != null)
|
|
3715
|
+
.map((entry) => {
|
|
3716
|
+
return se_AddBridgeOutputRequest(entry, context);
|
|
3717
|
+
});
|
|
3718
|
+
};
|
|
3719
|
+
const se___listOfAddBridgeSourceRequest = (input, context) => {
|
|
3720
|
+
return input
|
|
3721
|
+
.filter((e) => e != null)
|
|
3722
|
+
.map((entry) => {
|
|
3723
|
+
return se_AddBridgeSourceRequest(entry, context);
|
|
3724
|
+
});
|
|
3725
|
+
};
|
|
2216
3726
|
const se___listOfAddMediaStreamRequest = (input, context) => {
|
|
2217
3727
|
return input
|
|
2218
3728
|
.filter((e) => e != null)
|
|
@@ -2234,6 +3744,13 @@ const se___listOfDestinationConfigurationRequest = (input, context) => {
|
|
|
2234
3744
|
return se_DestinationConfigurationRequest(entry, context);
|
|
2235
3745
|
});
|
|
2236
3746
|
};
|
|
3747
|
+
const se___listOfGatewayNetwork = (input, context) => {
|
|
3748
|
+
return input
|
|
3749
|
+
.filter((e) => e != null)
|
|
3750
|
+
.map((entry) => {
|
|
3751
|
+
return se_GatewayNetwork(entry, context);
|
|
3752
|
+
});
|
|
3753
|
+
};
|
|
2237
3754
|
const se___listOfGrantEntitlementRequest = (input, context) => {
|
|
2238
3755
|
return input
|
|
2239
3756
|
.filter((e) => e != null)
|
|
@@ -2285,6 +3802,60 @@ const se___mapOf__string = (input, context) => {
|
|
|
2285
3802
|
return acc;
|
|
2286
3803
|
}, {});
|
|
2287
3804
|
};
|
|
3805
|
+
const se_AddBridgeFlowSourceRequest = (input, context) => {
|
|
3806
|
+
return {
|
|
3807
|
+
...(input.FlowArn != null && { flowArn: input.FlowArn }),
|
|
3808
|
+
...(input.FlowVpcInterfaceAttachment != null && {
|
|
3809
|
+
flowVpcInterfaceAttachment: se_VpcInterfaceAttachment(input.FlowVpcInterfaceAttachment, context),
|
|
3810
|
+
}),
|
|
3811
|
+
...(input.Name != null && { name: input.Name }),
|
|
3812
|
+
};
|
|
3813
|
+
};
|
|
3814
|
+
const se_AddBridgeNetworkOutputRequest = (input, context) => {
|
|
3815
|
+
return {
|
|
3816
|
+
...(input.IpAddress != null && { ipAddress: input.IpAddress }),
|
|
3817
|
+
...(input.Name != null && { name: input.Name }),
|
|
3818
|
+
...(input.NetworkName != null && { networkName: input.NetworkName }),
|
|
3819
|
+
...(input.Port != null && { port: input.Port }),
|
|
3820
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
3821
|
+
...(input.Ttl != null && { ttl: input.Ttl }),
|
|
3822
|
+
};
|
|
3823
|
+
};
|
|
3824
|
+
const se_AddBridgeNetworkSourceRequest = (input, context) => {
|
|
3825
|
+
return {
|
|
3826
|
+
...(input.MulticastIp != null && { multicastIp: input.MulticastIp }),
|
|
3827
|
+
...(input.Name != null && { name: input.Name }),
|
|
3828
|
+
...(input.NetworkName != null && { networkName: input.NetworkName }),
|
|
3829
|
+
...(input.Port != null && { port: input.Port }),
|
|
3830
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
3831
|
+
};
|
|
3832
|
+
};
|
|
3833
|
+
const se_AddBridgeOutputRequest = (input, context) => {
|
|
3834
|
+
return {
|
|
3835
|
+
...(input.NetworkOutput != null && {
|
|
3836
|
+
networkOutput: se_AddBridgeNetworkOutputRequest(input.NetworkOutput, context),
|
|
3837
|
+
}),
|
|
3838
|
+
};
|
|
3839
|
+
};
|
|
3840
|
+
const se_AddBridgeSourceRequest = (input, context) => {
|
|
3841
|
+
return {
|
|
3842
|
+
...(input.FlowSource != null && { flowSource: se_AddBridgeFlowSourceRequest(input.FlowSource, context) }),
|
|
3843
|
+
...(input.NetworkSource != null && {
|
|
3844
|
+
networkSource: se_AddBridgeNetworkSourceRequest(input.NetworkSource, context),
|
|
3845
|
+
}),
|
|
3846
|
+
};
|
|
3847
|
+
};
|
|
3848
|
+
const se_AddEgressGatewayBridgeRequest = (input, context) => {
|
|
3849
|
+
return {
|
|
3850
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
3851
|
+
};
|
|
3852
|
+
};
|
|
3853
|
+
const se_AddIngressGatewayBridgeRequest = (input, context) => {
|
|
3854
|
+
return {
|
|
3855
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
3856
|
+
...(input.MaxOutputs != null && { maxOutputs: input.MaxOutputs }),
|
|
3857
|
+
};
|
|
3858
|
+
};
|
|
2288
3859
|
const se_AddMaintenance = (input, context) => {
|
|
2289
3860
|
return {
|
|
2290
3861
|
...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
|
|
@@ -2372,6 +3943,12 @@ const se_FmtpRequest = (input, context) => {
|
|
|
2372
3943
|
...(input.Tcs != null && { tcs: input.Tcs }),
|
|
2373
3944
|
};
|
|
2374
3945
|
};
|
|
3946
|
+
const se_GatewayNetwork = (input, context) => {
|
|
3947
|
+
return {
|
|
3948
|
+
...(input.CidrBlock != null && { cidrBlock: input.CidrBlock }),
|
|
3949
|
+
...(input.Name != null && { name: input.Name }),
|
|
3950
|
+
};
|
|
3951
|
+
};
|
|
2375
3952
|
const se_GrantEntitlementRequest = (input, context) => {
|
|
2376
3953
|
return {
|
|
2377
3954
|
...(input.DataTransferSubscriberFeePercent != null && {
|
|
@@ -2422,11 +3999,22 @@ const se_MediaStreamSourceConfigurationRequest = (input, context) => {
|
|
|
2422
3999
|
...(input.MediaStreamName != null && { mediaStreamName: input.MediaStreamName }),
|
|
2423
4000
|
};
|
|
2424
4001
|
};
|
|
4002
|
+
const se_SetGatewayBridgeSourceRequest = (input, context) => {
|
|
4003
|
+
return {
|
|
4004
|
+
...(input.BridgeArn != null && { bridgeArn: input.BridgeArn }),
|
|
4005
|
+
...(input.VpcInterfaceAttachment != null && {
|
|
4006
|
+
vpcInterfaceAttachment: se_VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
4007
|
+
}),
|
|
4008
|
+
};
|
|
4009
|
+
};
|
|
2425
4010
|
const se_SetSourceRequest = (input, context) => {
|
|
2426
4011
|
return {
|
|
2427
4012
|
...(input.Decryption != null && { decryption: se_Encryption(input.Decryption, context) }),
|
|
2428
4013
|
...(input.Description != null && { description: input.Description }),
|
|
2429
4014
|
...(input.EntitlementArn != null && { entitlementArn: input.EntitlementArn }),
|
|
4015
|
+
...(input.GatewayBridgeSource != null && {
|
|
4016
|
+
gatewayBridgeSource: se_SetGatewayBridgeSourceRequest(input.GatewayBridgeSource, context),
|
|
4017
|
+
}),
|
|
2430
4018
|
...(input.IngestPort != null && { ingestPort: input.IngestPort }),
|
|
2431
4019
|
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
2432
4020
|
...(input.MaxLatency != null && { maxLatency: input.MaxLatency }),
|
|
@@ -2451,6 +4039,36 @@ const se_SourcePriority = (input, context) => {
|
|
|
2451
4039
|
...(input.PrimarySource != null && { primarySource: input.PrimarySource }),
|
|
2452
4040
|
};
|
|
2453
4041
|
};
|
|
4042
|
+
const se_UpdateBridgeFlowSourceRequest = (input, context) => {
|
|
4043
|
+
return {
|
|
4044
|
+
...(input.FlowArn != null && { flowArn: input.FlowArn }),
|
|
4045
|
+
...(input.FlowVpcInterfaceAttachment != null && {
|
|
4046
|
+
flowVpcInterfaceAttachment: se_VpcInterfaceAttachment(input.FlowVpcInterfaceAttachment, context),
|
|
4047
|
+
}),
|
|
4048
|
+
};
|
|
4049
|
+
};
|
|
4050
|
+
const se_UpdateBridgeNetworkOutputRequest = (input, context) => {
|
|
4051
|
+
return {
|
|
4052
|
+
...(input.IpAddress != null && { ipAddress: input.IpAddress }),
|
|
4053
|
+
...(input.NetworkName != null && { networkName: input.NetworkName }),
|
|
4054
|
+
...(input.Port != null && { port: input.Port }),
|
|
4055
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
4056
|
+
...(input.Ttl != null && { ttl: input.Ttl }),
|
|
4057
|
+
};
|
|
4058
|
+
};
|
|
4059
|
+
const se_UpdateBridgeNetworkSourceRequest = (input, context) => {
|
|
4060
|
+
return {
|
|
4061
|
+
...(input.MulticastIp != null && { multicastIp: input.MulticastIp }),
|
|
4062
|
+
...(input.NetworkName != null && { networkName: input.NetworkName }),
|
|
4063
|
+
...(input.Port != null && { port: input.Port }),
|
|
4064
|
+
...(input.Protocol != null && { protocol: input.Protocol }),
|
|
4065
|
+
};
|
|
4066
|
+
};
|
|
4067
|
+
const se_UpdateEgressGatewayBridgeRequest = (input, context) => {
|
|
4068
|
+
return {
|
|
4069
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
4070
|
+
};
|
|
4071
|
+
};
|
|
2454
4072
|
const se_UpdateEncryption = (input, context) => {
|
|
2455
4073
|
return {
|
|
2456
4074
|
...(input.Algorithm != null && { algorithm: input.Algorithm }),
|
|
@@ -2474,6 +4092,20 @@ const se_UpdateFailoverConfig = (input, context) => {
|
|
|
2474
4092
|
...(input.State != null && { state: input.State }),
|
|
2475
4093
|
};
|
|
2476
4094
|
};
|
|
4095
|
+
const se_UpdateGatewayBridgeSourceRequest = (input, context) => {
|
|
4096
|
+
return {
|
|
4097
|
+
...(input.BridgeArn != null && { bridgeArn: input.BridgeArn }),
|
|
4098
|
+
...(input.VpcInterfaceAttachment != null && {
|
|
4099
|
+
vpcInterfaceAttachment: se_VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
4100
|
+
}),
|
|
4101
|
+
};
|
|
4102
|
+
};
|
|
4103
|
+
const se_UpdateIngressGatewayBridgeRequest = (input, context) => {
|
|
4104
|
+
return {
|
|
4105
|
+
...(input.MaxBitrate != null && { maxBitrate: input.MaxBitrate }),
|
|
4106
|
+
...(input.MaxOutputs != null && { maxOutputs: input.MaxOutputs }),
|
|
4107
|
+
};
|
|
4108
|
+
};
|
|
2477
4109
|
const se_UpdateMaintenance = (input, context) => {
|
|
2478
4110
|
return {
|
|
2479
4111
|
...(input.MaintenanceDay != null && { maintenanceDay: input.MaintenanceDay }),
|
|
@@ -2495,6 +4127,17 @@ const se_VpcInterfaceRequest = (input, context) => {
|
|
|
2495
4127
|
...(input.SubnetId != null && { subnetId: input.SubnetId }),
|
|
2496
4128
|
};
|
|
2497
4129
|
};
|
|
4130
|
+
const de___listOf__integer = (output, context) => {
|
|
4131
|
+
const retVal = (output || [])
|
|
4132
|
+
.filter((e) => e != null)
|
|
4133
|
+
.map((entry) => {
|
|
4134
|
+
if (entry === null) {
|
|
4135
|
+
return null;
|
|
4136
|
+
}
|
|
4137
|
+
return __expectInt32(entry);
|
|
4138
|
+
});
|
|
4139
|
+
return retVal;
|
|
4140
|
+
};
|
|
2498
4141
|
const de___listOf__string = (output, context) => {
|
|
2499
4142
|
const retVal = (output || [])
|
|
2500
4143
|
.filter((e) => e != null)
|
|
@@ -2506,6 +4149,28 @@ const de___listOf__string = (output, context) => {
|
|
|
2506
4149
|
});
|
|
2507
4150
|
return retVal;
|
|
2508
4151
|
};
|
|
4152
|
+
const de___listOfBridgeOutput = (output, context) => {
|
|
4153
|
+
const retVal = (output || [])
|
|
4154
|
+
.filter((e) => e != null)
|
|
4155
|
+
.map((entry) => {
|
|
4156
|
+
if (entry === null) {
|
|
4157
|
+
return null;
|
|
4158
|
+
}
|
|
4159
|
+
return de_BridgeOutput(entry, context);
|
|
4160
|
+
});
|
|
4161
|
+
return retVal;
|
|
4162
|
+
};
|
|
4163
|
+
const de___listOfBridgeSource = (output, context) => {
|
|
4164
|
+
const retVal = (output || [])
|
|
4165
|
+
.filter((e) => e != null)
|
|
4166
|
+
.map((entry) => {
|
|
4167
|
+
if (entry === null) {
|
|
4168
|
+
return null;
|
|
4169
|
+
}
|
|
4170
|
+
return de_BridgeSource(entry, context);
|
|
4171
|
+
});
|
|
4172
|
+
return retVal;
|
|
4173
|
+
};
|
|
2509
4174
|
const de___listOfDestinationConfiguration = (output, context) => {
|
|
2510
4175
|
const retVal = (output || [])
|
|
2511
4176
|
.filter((e) => e != null)
|
|
@@ -2528,6 +4193,17 @@ const de___listOfEntitlement = (output, context) => {
|
|
|
2528
4193
|
});
|
|
2529
4194
|
return retVal;
|
|
2530
4195
|
};
|
|
4196
|
+
const de___listOfGatewayNetwork = (output, context) => {
|
|
4197
|
+
const retVal = (output || [])
|
|
4198
|
+
.filter((e) => e != null)
|
|
4199
|
+
.map((entry) => {
|
|
4200
|
+
if (entry === null) {
|
|
4201
|
+
return null;
|
|
4202
|
+
}
|
|
4203
|
+
return de_GatewayNetwork(entry, context);
|
|
4204
|
+
});
|
|
4205
|
+
return retVal;
|
|
4206
|
+
};
|
|
2531
4207
|
const de___listOfInputConfiguration = (output, context) => {
|
|
2532
4208
|
const retVal = (output || [])
|
|
2533
4209
|
.filter((e) => e != null)
|
|
@@ -2539,6 +4215,17 @@ const de___listOfInputConfiguration = (output, context) => {
|
|
|
2539
4215
|
});
|
|
2540
4216
|
return retVal;
|
|
2541
4217
|
};
|
|
4218
|
+
const de___listOfListedBridge = (output, context) => {
|
|
4219
|
+
const retVal = (output || [])
|
|
4220
|
+
.filter((e) => e != null)
|
|
4221
|
+
.map((entry) => {
|
|
4222
|
+
if (entry === null) {
|
|
4223
|
+
return null;
|
|
4224
|
+
}
|
|
4225
|
+
return de_ListedBridge(entry, context);
|
|
4226
|
+
});
|
|
4227
|
+
return retVal;
|
|
4228
|
+
};
|
|
2542
4229
|
const de___listOfListedEntitlement = (output, context) => {
|
|
2543
4230
|
const retVal = (output || [])
|
|
2544
4231
|
.filter((e) => e != null)
|
|
@@ -2561,6 +4248,28 @@ const de___listOfListedFlow = (output, context) => {
|
|
|
2561
4248
|
});
|
|
2562
4249
|
return retVal;
|
|
2563
4250
|
};
|
|
4251
|
+
const de___listOfListedGateway = (output, context) => {
|
|
4252
|
+
const retVal = (output || [])
|
|
4253
|
+
.filter((e) => e != null)
|
|
4254
|
+
.map((entry) => {
|
|
4255
|
+
if (entry === null) {
|
|
4256
|
+
return null;
|
|
4257
|
+
}
|
|
4258
|
+
return de_ListedGateway(entry, context);
|
|
4259
|
+
});
|
|
4260
|
+
return retVal;
|
|
4261
|
+
};
|
|
4262
|
+
const de___listOfListedGatewayInstance = (output, context) => {
|
|
4263
|
+
const retVal = (output || [])
|
|
4264
|
+
.filter((e) => e != null)
|
|
4265
|
+
.map((entry) => {
|
|
4266
|
+
if (entry === null) {
|
|
4267
|
+
return null;
|
|
4268
|
+
}
|
|
4269
|
+
return de_ListedGatewayInstance(entry, context);
|
|
4270
|
+
});
|
|
4271
|
+
return retVal;
|
|
4272
|
+
};
|
|
2564
4273
|
const de___listOfMediaStream = (output, context) => {
|
|
2565
4274
|
const retVal = (output || [])
|
|
2566
4275
|
.filter((e) => e != null)
|
|
@@ -2594,6 +4303,17 @@ const de___listOfMediaStreamSourceConfiguration = (output, context) => {
|
|
|
2594
4303
|
});
|
|
2595
4304
|
return retVal;
|
|
2596
4305
|
};
|
|
4306
|
+
const de___listOfMessageDetail = (output, context) => {
|
|
4307
|
+
const retVal = (output || [])
|
|
4308
|
+
.filter((e) => e != null)
|
|
4309
|
+
.map((entry) => {
|
|
4310
|
+
if (entry === null) {
|
|
4311
|
+
return null;
|
|
4312
|
+
}
|
|
4313
|
+
return de_MessageDetail(entry, context);
|
|
4314
|
+
});
|
|
4315
|
+
return retVal;
|
|
4316
|
+
};
|
|
2597
4317
|
const de___listOfOffering = (output, context) => {
|
|
2598
4318
|
const retVal = (output || [])
|
|
2599
4319
|
.filter((e) => e != null)
|
|
@@ -2658,6 +4378,68 @@ const de___mapOf__string = (output, context) => {
|
|
|
2658
4378
|
return acc;
|
|
2659
4379
|
}, {});
|
|
2660
4380
|
};
|
|
4381
|
+
const de_Bridge = (output, context) => {
|
|
4382
|
+
return {
|
|
4383
|
+
BridgeArn: __expectString(output.bridgeArn),
|
|
4384
|
+
BridgeMessages: output.bridgeMessages != null ? de___listOfMessageDetail(output.bridgeMessages, context) : undefined,
|
|
4385
|
+
BridgeState: __expectString(output.bridgeState),
|
|
4386
|
+
EgressGatewayBridge: output.egressGatewayBridge != null ? de_EgressGatewayBridge(output.egressGatewayBridge, context) : undefined,
|
|
4387
|
+
IngressGatewayBridge: output.ingressGatewayBridge != null ? de_IngressGatewayBridge(output.ingressGatewayBridge, context) : undefined,
|
|
4388
|
+
Name: __expectString(output.name),
|
|
4389
|
+
Outputs: output.outputs != null ? de___listOfBridgeOutput(output.outputs, context) : undefined,
|
|
4390
|
+
PlacementArn: __expectString(output.placementArn),
|
|
4391
|
+
SourceFailoverConfig: output.sourceFailoverConfig != null ? de_FailoverConfig(output.sourceFailoverConfig, context) : undefined,
|
|
4392
|
+
Sources: output.sources != null ? de___listOfBridgeSource(output.sources, context) : undefined,
|
|
4393
|
+
};
|
|
4394
|
+
};
|
|
4395
|
+
const de_BridgeFlowOutput = (output, context) => {
|
|
4396
|
+
return {
|
|
4397
|
+
FlowArn: __expectString(output.flowArn),
|
|
4398
|
+
FlowSourceArn: __expectString(output.flowSourceArn),
|
|
4399
|
+
Name: __expectString(output.name),
|
|
4400
|
+
};
|
|
4401
|
+
};
|
|
4402
|
+
const de_BridgeFlowSource = (output, context) => {
|
|
4403
|
+
return {
|
|
4404
|
+
FlowArn: __expectString(output.flowArn),
|
|
4405
|
+
FlowVpcInterfaceAttachment: output.flowVpcInterfaceAttachment != null
|
|
4406
|
+
? de_VpcInterfaceAttachment(output.flowVpcInterfaceAttachment, context)
|
|
4407
|
+
: undefined,
|
|
4408
|
+
Name: __expectString(output.name),
|
|
4409
|
+
OutputArn: __expectString(output.outputArn),
|
|
4410
|
+
};
|
|
4411
|
+
};
|
|
4412
|
+
const de_BridgeNetworkOutput = (output, context) => {
|
|
4413
|
+
return {
|
|
4414
|
+
IpAddress: __expectString(output.ipAddress),
|
|
4415
|
+
Name: __expectString(output.name),
|
|
4416
|
+
NetworkName: __expectString(output.networkName),
|
|
4417
|
+
Port: __expectInt32(output.port),
|
|
4418
|
+
Protocol: __expectString(output.protocol),
|
|
4419
|
+
Ttl: __expectInt32(output.ttl),
|
|
4420
|
+
};
|
|
4421
|
+
};
|
|
4422
|
+
const de_BridgeNetworkSource = (output, context) => {
|
|
4423
|
+
return {
|
|
4424
|
+
MulticastIp: __expectString(output.multicastIp),
|
|
4425
|
+
Name: __expectString(output.name),
|
|
4426
|
+
NetworkName: __expectString(output.networkName),
|
|
4427
|
+
Port: __expectInt32(output.port),
|
|
4428
|
+
Protocol: __expectString(output.protocol),
|
|
4429
|
+
};
|
|
4430
|
+
};
|
|
4431
|
+
const de_BridgeOutput = (output, context) => {
|
|
4432
|
+
return {
|
|
4433
|
+
FlowOutput: output.flowOutput != null ? de_BridgeFlowOutput(output.flowOutput, context) : undefined,
|
|
4434
|
+
NetworkOutput: output.networkOutput != null ? de_BridgeNetworkOutput(output.networkOutput, context) : undefined,
|
|
4435
|
+
};
|
|
4436
|
+
};
|
|
4437
|
+
const de_BridgeSource = (output, context) => {
|
|
4438
|
+
return {
|
|
4439
|
+
FlowSource: output.flowSource != null ? de_BridgeFlowSource(output.flowSource, context) : undefined,
|
|
4440
|
+
NetworkSource: output.networkSource != null ? de_BridgeNetworkSource(output.networkSource, context) : undefined,
|
|
4441
|
+
};
|
|
4442
|
+
};
|
|
2661
4443
|
const de_DestinationConfiguration = (output, context) => {
|
|
2662
4444
|
return {
|
|
2663
4445
|
DestinationIp: __expectString(output.destinationIp),
|
|
@@ -2666,6 +4448,12 @@ const de_DestinationConfiguration = (output, context) => {
|
|
|
2666
4448
|
OutboundIp: __expectString(output.outboundIp),
|
|
2667
4449
|
};
|
|
2668
4450
|
};
|
|
4451
|
+
const de_EgressGatewayBridge = (output, context) => {
|
|
4452
|
+
return {
|
|
4453
|
+
InstanceId: __expectString(output.instanceId),
|
|
4454
|
+
MaxBitrate: __expectInt32(output.maxBitrate),
|
|
4455
|
+
};
|
|
4456
|
+
};
|
|
2669
4457
|
const de_EncodingParameters = (output, context) => {
|
|
2670
4458
|
return {
|
|
2671
4459
|
CompressionFactor: __limitedParseDouble(output.compressionFactor),
|
|
@@ -2733,6 +4521,49 @@ const de_Fmtp = (output, context) => {
|
|
|
2733
4521
|
Tcs: __expectString(output.tcs),
|
|
2734
4522
|
};
|
|
2735
4523
|
};
|
|
4524
|
+
const de_Gateway = (output, context) => {
|
|
4525
|
+
return {
|
|
4526
|
+
EgressCidrBlocks: output.egressCidrBlocks != null ? de___listOf__string(output.egressCidrBlocks, context) : undefined,
|
|
4527
|
+
GatewayArn: __expectString(output.gatewayArn),
|
|
4528
|
+
GatewayMessages: output.gatewayMessages != null ? de___listOfMessageDetail(output.gatewayMessages, context) : undefined,
|
|
4529
|
+
GatewayState: __expectString(output.gatewayState),
|
|
4530
|
+
Name: __expectString(output.name),
|
|
4531
|
+
Networks: output.networks != null ? de___listOfGatewayNetwork(output.networks, context) : undefined,
|
|
4532
|
+
};
|
|
4533
|
+
};
|
|
4534
|
+
const de_GatewayBridgeSource = (output, context) => {
|
|
4535
|
+
return {
|
|
4536
|
+
BridgeArn: __expectString(output.bridgeArn),
|
|
4537
|
+
VpcInterfaceAttachment: output.vpcInterfaceAttachment != null
|
|
4538
|
+
? de_VpcInterfaceAttachment(output.vpcInterfaceAttachment, context)
|
|
4539
|
+
: undefined,
|
|
4540
|
+
};
|
|
4541
|
+
};
|
|
4542
|
+
const de_GatewayInstance = (output, context) => {
|
|
4543
|
+
return {
|
|
4544
|
+
BridgePlacement: __expectString(output.bridgePlacement),
|
|
4545
|
+
ConnectionStatus: __expectString(output.connectionStatus),
|
|
4546
|
+
GatewayArn: __expectString(output.gatewayArn),
|
|
4547
|
+
GatewayInstanceArn: __expectString(output.gatewayInstanceArn),
|
|
4548
|
+
InstanceId: __expectString(output.instanceId),
|
|
4549
|
+
InstanceMessages: output.instanceMessages != null ? de___listOfMessageDetail(output.instanceMessages, context) : undefined,
|
|
4550
|
+
InstanceState: __expectString(output.instanceState),
|
|
4551
|
+
RunningBridgeCount: __expectInt32(output.runningBridgeCount),
|
|
4552
|
+
};
|
|
4553
|
+
};
|
|
4554
|
+
const de_GatewayNetwork = (output, context) => {
|
|
4555
|
+
return {
|
|
4556
|
+
CidrBlock: __expectString(output.cidrBlock),
|
|
4557
|
+
Name: __expectString(output.name),
|
|
4558
|
+
};
|
|
4559
|
+
};
|
|
4560
|
+
const de_IngressGatewayBridge = (output, context) => {
|
|
4561
|
+
return {
|
|
4562
|
+
InstanceId: __expectString(output.instanceId),
|
|
4563
|
+
MaxBitrate: __expectInt32(output.maxBitrate),
|
|
4564
|
+
MaxOutputs: __expectInt32(output.maxOutputs),
|
|
4565
|
+
};
|
|
4566
|
+
};
|
|
2736
4567
|
const de_InputConfiguration = (output, context) => {
|
|
2737
4568
|
return {
|
|
2738
4569
|
InputIp: __expectString(output.inputIp),
|
|
@@ -2745,6 +4576,15 @@ const de_Interface = (output, context) => {
|
|
|
2745
4576
|
Name: __expectString(output.name),
|
|
2746
4577
|
};
|
|
2747
4578
|
};
|
|
4579
|
+
const de_ListedBridge = (output, context) => {
|
|
4580
|
+
return {
|
|
4581
|
+
BridgeArn: __expectString(output.bridgeArn),
|
|
4582
|
+
BridgeState: __expectString(output.bridgeState),
|
|
4583
|
+
BridgeType: __expectString(output.bridgeType),
|
|
4584
|
+
Name: __expectString(output.name),
|
|
4585
|
+
PlacementArn: __expectString(output.placementArn),
|
|
4586
|
+
};
|
|
4587
|
+
};
|
|
2748
4588
|
const de_ListedEntitlement = (output, context) => {
|
|
2749
4589
|
return {
|
|
2750
4590
|
DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent),
|
|
@@ -2763,6 +4603,21 @@ const de_ListedFlow = (output, context) => {
|
|
|
2763
4603
|
Status: __expectString(output.status),
|
|
2764
4604
|
};
|
|
2765
4605
|
};
|
|
4606
|
+
const de_ListedGateway = (output, context) => {
|
|
4607
|
+
return {
|
|
4608
|
+
GatewayArn: __expectString(output.gatewayArn),
|
|
4609
|
+
GatewayState: __expectString(output.gatewayState),
|
|
4610
|
+
Name: __expectString(output.name),
|
|
4611
|
+
};
|
|
4612
|
+
};
|
|
4613
|
+
const de_ListedGatewayInstance = (output, context) => {
|
|
4614
|
+
return {
|
|
4615
|
+
GatewayArn: __expectString(output.gatewayArn),
|
|
4616
|
+
GatewayInstanceArn: __expectString(output.gatewayInstanceArn),
|
|
4617
|
+
InstanceId: __expectString(output.instanceId),
|
|
4618
|
+
InstanceState: __expectString(output.instanceState),
|
|
4619
|
+
};
|
|
4620
|
+
};
|
|
2766
4621
|
const de_Maintenance = (output, context) => {
|
|
2767
4622
|
return {
|
|
2768
4623
|
MaintenanceDay: __expectString(output.maintenanceDay),
|
|
@@ -2808,6 +4663,13 @@ const de_MediaStreamSourceConfiguration = (output, context) => {
|
|
|
2808
4663
|
MediaStreamName: __expectString(output.mediaStreamName),
|
|
2809
4664
|
};
|
|
2810
4665
|
};
|
|
4666
|
+
const de_MessageDetail = (output, context) => {
|
|
4667
|
+
return {
|
|
4668
|
+
Code: __expectString(output.code),
|
|
4669
|
+
Message: __expectString(output.message),
|
|
4670
|
+
ResourceName: __expectString(output.resourceName),
|
|
4671
|
+
};
|
|
4672
|
+
};
|
|
2811
4673
|
const de_Messages = (output, context) => {
|
|
2812
4674
|
return {
|
|
2813
4675
|
Errors: output.errors != null ? de___listOf__string(output.errors, context) : undefined,
|
|
@@ -2829,6 +4691,8 @@ const de_Offering = (output, context) => {
|
|
|
2829
4691
|
};
|
|
2830
4692
|
const de_Output = (output, context) => {
|
|
2831
4693
|
return {
|
|
4694
|
+
BridgeArn: __expectString(output.bridgeArn),
|
|
4695
|
+
BridgePorts: output.bridgePorts != null ? de___listOf__integer(output.bridgePorts, context) : undefined,
|
|
2832
4696
|
DataTransferSubscriberFeePercent: __expectInt32(output.dataTransferSubscriberFeePercent),
|
|
2833
4697
|
Description: __expectString(output.description),
|
|
2834
4698
|
Destination: __expectString(output.destination),
|
|
@@ -2879,6 +4743,7 @@ const de_Source = (output, context) => {
|
|
|
2879
4743
|
Decryption: output.decryption != null ? de_Encryption(output.decryption, context) : undefined,
|
|
2880
4744
|
Description: __expectString(output.description),
|
|
2881
4745
|
EntitlementArn: __expectString(output.entitlementArn),
|
|
4746
|
+
GatewayBridgeSource: output.gatewayBridgeSource != null ? de_GatewayBridgeSource(output.gatewayBridgeSource, context) : undefined,
|
|
2882
4747
|
IngestIp: __expectString(output.ingestIp),
|
|
2883
4748
|
IngestPort: __expectInt32(output.ingestPort),
|
|
2884
4749
|
MediaStreamSourceConfigurations: output.mediaStreamSourceConfigurations != null
|