@aws-sdk/client-mediaconnect 3.490.0 → 3.496.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.
Files changed (76) hide show
  1. package/dist-cjs/MediaConnect.js +1 -113
  2. package/dist-cjs/MediaConnectClient.js +1 -43
  3. package/dist-cjs/commands/AddBridgeOutputsCommand.js +1 -28
  4. package/dist-cjs/commands/AddBridgeSourcesCommand.js +1 -28
  5. package/dist-cjs/commands/AddFlowMediaStreamsCommand.js +1 -28
  6. package/dist-cjs/commands/AddFlowOutputsCommand.js +1 -28
  7. package/dist-cjs/commands/AddFlowSourcesCommand.js +1 -28
  8. package/dist-cjs/commands/AddFlowVpcInterfacesCommand.js +1 -28
  9. package/dist-cjs/commands/CreateBridgeCommand.js +1 -28
  10. package/dist-cjs/commands/CreateFlowCommand.js +1 -28
  11. package/dist-cjs/commands/CreateGatewayCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteBridgeCommand.js +1 -28
  13. package/dist-cjs/commands/DeleteFlowCommand.js +1 -28
  14. package/dist-cjs/commands/DeleteGatewayCommand.js +1 -28
  15. package/dist-cjs/commands/DeregisterGatewayInstanceCommand.js +1 -28
  16. package/dist-cjs/commands/DescribeBridgeCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeFlowCommand.js +1 -28
  18. package/dist-cjs/commands/DescribeFlowSourceMetadataCommand.js +1 -28
  19. package/dist-cjs/commands/DescribeGatewayCommand.js +1 -28
  20. package/dist-cjs/commands/DescribeGatewayInstanceCommand.js +1 -28
  21. package/dist-cjs/commands/DescribeOfferingCommand.js +1 -28
  22. package/dist-cjs/commands/DescribeReservationCommand.js +1 -28
  23. package/dist-cjs/commands/GrantFlowEntitlementsCommand.js +1 -28
  24. package/dist-cjs/commands/ListBridgesCommand.js +1 -28
  25. package/dist-cjs/commands/ListEntitlementsCommand.js +1 -28
  26. package/dist-cjs/commands/ListFlowsCommand.js +1 -28
  27. package/dist-cjs/commands/ListGatewayInstancesCommand.js +1 -28
  28. package/dist-cjs/commands/ListGatewaysCommand.js +1 -28
  29. package/dist-cjs/commands/ListOfferingsCommand.js +1 -28
  30. package/dist-cjs/commands/ListReservationsCommand.js +1 -28
  31. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  32. package/dist-cjs/commands/PurchaseOfferingCommand.js +1 -28
  33. package/dist-cjs/commands/RemoveBridgeOutputCommand.js +1 -28
  34. package/dist-cjs/commands/RemoveBridgeSourceCommand.js +1 -28
  35. package/dist-cjs/commands/RemoveFlowMediaStreamCommand.js +1 -28
  36. package/dist-cjs/commands/RemoveFlowOutputCommand.js +1 -28
  37. package/dist-cjs/commands/RemoveFlowSourceCommand.js +1 -28
  38. package/dist-cjs/commands/RemoveFlowVpcInterfaceCommand.js +1 -28
  39. package/dist-cjs/commands/RevokeFlowEntitlementCommand.js +1 -28
  40. package/dist-cjs/commands/StartFlowCommand.js +1 -28
  41. package/dist-cjs/commands/StopFlowCommand.js +1 -28
  42. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  43. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  44. package/dist-cjs/commands/UpdateBridgeCommand.js +1 -28
  45. package/dist-cjs/commands/UpdateBridgeOutputCommand.js +1 -28
  46. package/dist-cjs/commands/UpdateBridgeSourceCommand.js +1 -28
  47. package/dist-cjs/commands/UpdateBridgeStateCommand.js +1 -28
  48. package/dist-cjs/commands/UpdateFlowCommand.js +1 -28
  49. package/dist-cjs/commands/UpdateFlowEntitlementCommand.js +1 -28
  50. package/dist-cjs/commands/UpdateFlowMediaStreamCommand.js +1 -28
  51. package/dist-cjs/commands/UpdateFlowOutputCommand.js +1 -28
  52. package/dist-cjs/commands/UpdateFlowSourceCommand.js +1 -28
  53. package/dist-cjs/commands/UpdateGatewayInstanceCommand.js +1 -28
  54. package/dist-cjs/commands/index.js +1 -54
  55. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  56. package/dist-cjs/extensionConfiguration.js +1 -2
  57. package/dist-cjs/index.js +6207 -12
  58. package/dist-cjs/models/MediaConnectServiceException.js +1 -12
  59. package/dist-cjs/models/index.js +1 -4
  60. package/dist-cjs/models/models_0.js +1 -336
  61. package/dist-cjs/pagination/Interfaces.js +1 -2
  62. package/dist-cjs/pagination/ListBridgesPaginator.js +1 -7
  63. package/dist-cjs/pagination/ListEntitlementsPaginator.js +1 -7
  64. package/dist-cjs/pagination/ListFlowsPaginator.js +1 -7
  65. package/dist-cjs/pagination/ListGatewayInstancesPaginator.js +1 -7
  66. package/dist-cjs/pagination/ListGatewaysPaginator.js +1 -7
  67. package/dist-cjs/pagination/ListOfferingsPaginator.js +1 -7
  68. package/dist-cjs/pagination/ListReservationsPaginator.js +1 -7
  69. package/dist-cjs/pagination/index.js +1 -11
  70. package/dist-cjs/protocols/Aws_restJson1.js +1 -4486
  71. package/dist-cjs/runtimeExtensions.js +1 -22
  72. package/dist-cjs/waiters/index.js +1 -6
  73. package/dist-cjs/waiters/waitForFlowActive.js +1 -69
  74. package/dist-cjs/waiters/waitForFlowDeleted.js +1 -54
  75. package/dist-cjs/waiters/waitForFlowStandby.js +1 -60
  76. package/package.json +41 -41
@@ -1,4486 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateFlowSourceCommand = exports.se_UpdateFlowOutputCommand = exports.se_UpdateFlowMediaStreamCommand = exports.se_UpdateFlowEntitlementCommand = exports.se_UpdateFlowCommand = exports.se_UpdateBridgeStateCommand = exports.se_UpdateBridgeSourceCommand = exports.se_UpdateBridgeOutputCommand = exports.se_UpdateBridgeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopFlowCommand = exports.se_StartFlowCommand = exports.se_RevokeFlowEntitlementCommand = exports.se_RemoveFlowVpcInterfaceCommand = exports.se_RemoveFlowSourceCommand = exports.se_RemoveFlowOutputCommand = exports.se_RemoveFlowMediaStreamCommand = exports.se_RemoveBridgeSourceCommand = exports.se_RemoveBridgeOutputCommand = exports.se_PurchaseOfferingCommand = exports.se_ListTagsForResourceCommand = exports.se_ListReservationsCommand = exports.se_ListOfferingsCommand = exports.se_ListGatewaysCommand = exports.se_ListGatewayInstancesCommand = exports.se_ListFlowsCommand = exports.se_ListEntitlementsCommand = exports.se_ListBridgesCommand = exports.se_GrantFlowEntitlementsCommand = exports.se_DescribeReservationCommand = exports.se_DescribeOfferingCommand = exports.se_DescribeGatewayInstanceCommand = exports.se_DescribeGatewayCommand = exports.se_DescribeFlowSourceMetadataCommand = exports.se_DescribeFlowCommand = exports.se_DescribeBridgeCommand = exports.se_DeregisterGatewayInstanceCommand = exports.se_DeleteGatewayCommand = exports.se_DeleteFlowCommand = exports.se_DeleteBridgeCommand = exports.se_CreateGatewayCommand = exports.se_CreateFlowCommand = exports.se_CreateBridgeCommand = exports.se_AddFlowVpcInterfacesCommand = exports.se_AddFlowSourcesCommand = exports.se_AddFlowOutputsCommand = exports.se_AddFlowMediaStreamsCommand = exports.se_AddBridgeSourcesCommand = exports.se_AddBridgeOutputsCommand = void 0;
4
- exports.de_UpdateFlowOutputCommand = exports.de_UpdateFlowMediaStreamCommand = exports.de_UpdateFlowEntitlementCommand = exports.de_UpdateFlowCommand = exports.de_UpdateBridgeStateCommand = exports.de_UpdateBridgeSourceCommand = exports.de_UpdateBridgeOutputCommand = exports.de_UpdateBridgeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopFlowCommand = exports.de_StartFlowCommand = exports.de_RevokeFlowEntitlementCommand = exports.de_RemoveFlowVpcInterfaceCommand = exports.de_RemoveFlowSourceCommand = exports.de_RemoveFlowOutputCommand = exports.de_RemoveFlowMediaStreamCommand = exports.de_RemoveBridgeSourceCommand = exports.de_RemoveBridgeOutputCommand = exports.de_PurchaseOfferingCommand = exports.de_ListTagsForResourceCommand = exports.de_ListReservationsCommand = exports.de_ListOfferingsCommand = exports.de_ListGatewaysCommand = exports.de_ListGatewayInstancesCommand = exports.de_ListFlowsCommand = exports.de_ListEntitlementsCommand = exports.de_ListBridgesCommand = exports.de_GrantFlowEntitlementsCommand = exports.de_DescribeReservationCommand = exports.de_DescribeOfferingCommand = exports.de_DescribeGatewayInstanceCommand = exports.de_DescribeGatewayCommand = exports.de_DescribeFlowSourceMetadataCommand = exports.de_DescribeFlowCommand = exports.de_DescribeBridgeCommand = exports.de_DeregisterGatewayInstanceCommand = exports.de_DeleteGatewayCommand = exports.de_DeleteFlowCommand = exports.de_DeleteBridgeCommand = exports.de_CreateGatewayCommand = exports.de_CreateFlowCommand = exports.de_CreateBridgeCommand = exports.de_AddFlowVpcInterfacesCommand = exports.de_AddFlowSourcesCommand = exports.de_AddFlowOutputsCommand = exports.de_AddFlowMediaStreamsCommand = exports.de_AddBridgeSourcesCommand = exports.de_AddBridgeOutputsCommand = exports.se_UpdateGatewayInstanceCommand = void 0;
5
- exports.de_UpdateGatewayInstanceCommand = exports.de_UpdateFlowSourceCommand = void 0;
6
- const core_1 = require("@smithy/core");
7
- const smithy_client_1 = require("@smithy/smithy-client");
8
- const MediaConnectServiceException_1 = require("../models/MediaConnectServiceException");
9
- const models_0_1 = require("../models/models_0");
10
- const se_AddBridgeOutputsCommand = async (input, context) => {
11
- const b = (0, core_1.requestBuilder)(input, context);
12
- const headers = {
13
- "content-type": "application/json",
14
- };
15
- b.bp("/v1/bridges/{BridgeArn}/outputs");
16
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
17
- let body;
18
- body = JSON.stringify((0, smithy_client_1.take)(input, {
19
- outputs: [, (_) => se___listOfAddBridgeOutputRequest(_, context), `Outputs`],
20
- }));
21
- b.m("POST").h(headers).b(body);
22
- return b.build();
23
- };
24
- exports.se_AddBridgeOutputsCommand = se_AddBridgeOutputsCommand;
25
- const se_AddBridgeSourcesCommand = async (input, context) => {
26
- const b = (0, core_1.requestBuilder)(input, context);
27
- const headers = {
28
- "content-type": "application/json",
29
- };
30
- b.bp("/v1/bridges/{BridgeArn}/sources");
31
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
32
- let body;
33
- body = JSON.stringify((0, smithy_client_1.take)(input, {
34
- sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`],
35
- }));
36
- b.m("POST").h(headers).b(body);
37
- return b.build();
38
- };
39
- exports.se_AddBridgeSourcesCommand = se_AddBridgeSourcesCommand;
40
- const se_AddFlowMediaStreamsCommand = async (input, context) => {
41
- const b = (0, core_1.requestBuilder)(input, context);
42
- const headers = {
43
- "content-type": "application/json",
44
- };
45
- b.bp("/v1/flows/{FlowArn}/mediaStreams");
46
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
47
- let body;
48
- body = JSON.stringify((0, smithy_client_1.take)(input, {
49
- mediaStreams: [, (_) => se___listOfAddMediaStreamRequest(_, context), `MediaStreams`],
50
- }));
51
- b.m("POST").h(headers).b(body);
52
- return b.build();
53
- };
54
- exports.se_AddFlowMediaStreamsCommand = se_AddFlowMediaStreamsCommand;
55
- const se_AddFlowOutputsCommand = async (input, context) => {
56
- const b = (0, core_1.requestBuilder)(input, context);
57
- const headers = {
58
- "content-type": "application/json",
59
- };
60
- b.bp("/v1/flows/{FlowArn}/outputs");
61
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
62
- let body;
63
- body = JSON.stringify((0, smithy_client_1.take)(input, {
64
- outputs: [, (_) => se___listOfAddOutputRequest(_, context), `Outputs`],
65
- }));
66
- b.m("POST").h(headers).b(body);
67
- return b.build();
68
- };
69
- exports.se_AddFlowOutputsCommand = se_AddFlowOutputsCommand;
70
- const se_AddFlowSourcesCommand = async (input, context) => {
71
- const b = (0, core_1.requestBuilder)(input, context);
72
- const headers = {
73
- "content-type": "application/json",
74
- };
75
- b.bp("/v1/flows/{FlowArn}/source");
76
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
77
- let body;
78
- body = JSON.stringify((0, smithy_client_1.take)(input, {
79
- sources: [, (_) => se___listOfSetSourceRequest(_, context), `Sources`],
80
- }));
81
- b.m("POST").h(headers).b(body);
82
- return b.build();
83
- };
84
- exports.se_AddFlowSourcesCommand = se_AddFlowSourcesCommand;
85
- const se_AddFlowVpcInterfacesCommand = async (input, context) => {
86
- const b = (0, core_1.requestBuilder)(input, context);
87
- const headers = {
88
- "content-type": "application/json",
89
- };
90
- b.bp("/v1/flows/{FlowArn}/vpcInterfaces");
91
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
92
- let body;
93
- body = JSON.stringify((0, smithy_client_1.take)(input, {
94
- vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`],
95
- }));
96
- b.m("POST").h(headers).b(body);
97
- return b.build();
98
- };
99
- exports.se_AddFlowVpcInterfacesCommand = se_AddFlowVpcInterfacesCommand;
100
- const se_CreateBridgeCommand = async (input, context) => {
101
- const b = (0, core_1.requestBuilder)(input, context);
102
- const headers = {
103
- "content-type": "application/json",
104
- };
105
- b.bp("/v1/bridges");
106
- let body;
107
- body = JSON.stringify((0, smithy_client_1.take)(input, {
108
- egressGatewayBridge: [, (_) => se_AddEgressGatewayBridgeRequest(_, context), `EgressGatewayBridge`],
109
- ingressGatewayBridge: [, (_) => se_AddIngressGatewayBridgeRequest(_, context), `IngressGatewayBridge`],
110
- name: [, , `Name`],
111
- outputs: [, (_) => se___listOfAddBridgeOutputRequest(_, context), `Outputs`],
112
- placementArn: [, , `PlacementArn`],
113
- sourceFailoverConfig: [, (_) => se_FailoverConfig(_, context), `SourceFailoverConfig`],
114
- sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`],
115
- }));
116
- b.m("POST").h(headers).b(body);
117
- return b.build();
118
- };
119
- exports.se_CreateBridgeCommand = se_CreateBridgeCommand;
120
- const se_CreateFlowCommand = async (input, context) => {
121
- const b = (0, core_1.requestBuilder)(input, context);
122
- const headers = {
123
- "content-type": "application/json",
124
- };
125
- b.bp("/v1/flows");
126
- let body;
127
- body = JSON.stringify((0, smithy_client_1.take)(input, {
128
- availabilityZone: [, , `AvailabilityZone`],
129
- entitlements: [, (_) => se___listOfGrantEntitlementRequest(_, context), `Entitlements`],
130
- maintenance: [, (_) => se_AddMaintenance(_, context), `Maintenance`],
131
- mediaStreams: [, (_) => se___listOfAddMediaStreamRequest(_, context), `MediaStreams`],
132
- name: [, , `Name`],
133
- outputs: [, (_) => se___listOfAddOutputRequest(_, context), `Outputs`],
134
- source: [, (_) => se_SetSourceRequest(_, context), `Source`],
135
- sourceFailoverConfig: [, (_) => se_FailoverConfig(_, context), `SourceFailoverConfig`],
136
- sources: [, (_) => se___listOfSetSourceRequest(_, context), `Sources`],
137
- vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`],
138
- }));
139
- b.m("POST").h(headers).b(body);
140
- return b.build();
141
- };
142
- exports.se_CreateFlowCommand = se_CreateFlowCommand;
143
- const se_CreateGatewayCommand = async (input, context) => {
144
- const b = (0, core_1.requestBuilder)(input, context);
145
- const headers = {
146
- "content-type": "application/json",
147
- };
148
- b.bp("/v1/gateways");
149
- let body;
150
- body = JSON.stringify((0, smithy_client_1.take)(input, {
151
- egressCidrBlocks: [, (_) => (0, smithy_client_1._json)(_), `EgressCidrBlocks`],
152
- name: [, , `Name`],
153
- networks: [, (_) => se___listOfGatewayNetwork(_, context), `Networks`],
154
- }));
155
- b.m("POST").h(headers).b(body);
156
- return b.build();
157
- };
158
- exports.se_CreateGatewayCommand = se_CreateGatewayCommand;
159
- const se_DeleteBridgeCommand = async (input, context) => {
160
- const b = (0, core_1.requestBuilder)(input, context);
161
- const headers = {};
162
- b.bp("/v1/bridges/{BridgeArn}");
163
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
164
- let body;
165
- b.m("DELETE").h(headers).b(body);
166
- return b.build();
167
- };
168
- exports.se_DeleteBridgeCommand = se_DeleteBridgeCommand;
169
- const se_DeleteFlowCommand = async (input, context) => {
170
- const b = (0, core_1.requestBuilder)(input, context);
171
- const headers = {};
172
- b.bp("/v1/flows/{FlowArn}");
173
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
174
- let body;
175
- b.m("DELETE").h(headers).b(body);
176
- return b.build();
177
- };
178
- exports.se_DeleteFlowCommand = se_DeleteFlowCommand;
179
- const se_DeleteGatewayCommand = async (input, context) => {
180
- const b = (0, core_1.requestBuilder)(input, context);
181
- const headers = {};
182
- b.bp("/v1/gateways/{GatewayArn}");
183
- b.p("GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
184
- let body;
185
- b.m("DELETE").h(headers).b(body);
186
- return b.build();
187
- };
188
- exports.se_DeleteGatewayCommand = se_DeleteGatewayCommand;
189
- const se_DeregisterGatewayInstanceCommand = async (input, context) => {
190
- const b = (0, core_1.requestBuilder)(input, context);
191
- const headers = {};
192
- b.bp("/v1/gateway-instances/{GatewayInstanceArn}");
193
- b.p("GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
194
- const query = (0, smithy_client_1.map)({
195
- [_f]: [() => input.Force !== void 0, () => input[_F].toString()],
196
- });
197
- let body;
198
- b.m("DELETE").h(headers).q(query).b(body);
199
- return b.build();
200
- };
201
- exports.se_DeregisterGatewayInstanceCommand = se_DeregisterGatewayInstanceCommand;
202
- const se_DescribeBridgeCommand = async (input, context) => {
203
- const b = (0, core_1.requestBuilder)(input, context);
204
- const headers = {};
205
- b.bp("/v1/bridges/{BridgeArn}");
206
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
207
- let body;
208
- b.m("GET").h(headers).b(body);
209
- return b.build();
210
- };
211
- exports.se_DescribeBridgeCommand = se_DescribeBridgeCommand;
212
- const se_DescribeFlowCommand = async (input, context) => {
213
- const b = (0, core_1.requestBuilder)(input, context);
214
- const headers = {};
215
- b.bp("/v1/flows/{FlowArn}");
216
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
217
- let body;
218
- b.m("GET").h(headers).b(body);
219
- return b.build();
220
- };
221
- exports.se_DescribeFlowCommand = se_DescribeFlowCommand;
222
- const se_DescribeFlowSourceMetadataCommand = async (input, context) => {
223
- const b = (0, core_1.requestBuilder)(input, context);
224
- const headers = {};
225
- b.bp("/v1/flows/{FlowArn}/source-metadata");
226
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
227
- let body;
228
- b.m("GET").h(headers).b(body);
229
- return b.build();
230
- };
231
- exports.se_DescribeFlowSourceMetadataCommand = se_DescribeFlowSourceMetadataCommand;
232
- const se_DescribeGatewayCommand = async (input, context) => {
233
- const b = (0, core_1.requestBuilder)(input, context);
234
- const headers = {};
235
- b.bp("/v1/gateways/{GatewayArn}");
236
- b.p("GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
237
- let body;
238
- b.m("GET").h(headers).b(body);
239
- return b.build();
240
- };
241
- exports.se_DescribeGatewayCommand = se_DescribeGatewayCommand;
242
- const se_DescribeGatewayInstanceCommand = async (input, context) => {
243
- const b = (0, core_1.requestBuilder)(input, context);
244
- const headers = {};
245
- b.bp("/v1/gateway-instances/{GatewayInstanceArn}");
246
- b.p("GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
247
- let body;
248
- b.m("GET").h(headers).b(body);
249
- return b.build();
250
- };
251
- exports.se_DescribeGatewayInstanceCommand = se_DescribeGatewayInstanceCommand;
252
- const se_DescribeOfferingCommand = async (input, context) => {
253
- const b = (0, core_1.requestBuilder)(input, context);
254
- const headers = {};
255
- b.bp("/v1/offerings/{OfferingArn}");
256
- b.p("OfferingArn", () => input.OfferingArn, "{OfferingArn}", false);
257
- let body;
258
- b.m("GET").h(headers).b(body);
259
- return b.build();
260
- };
261
- exports.se_DescribeOfferingCommand = se_DescribeOfferingCommand;
262
- const se_DescribeReservationCommand = async (input, context) => {
263
- const b = (0, core_1.requestBuilder)(input, context);
264
- const headers = {};
265
- b.bp("/v1/reservations/{ReservationArn}");
266
- b.p("ReservationArn", () => input.ReservationArn, "{ReservationArn}", false);
267
- let body;
268
- b.m("GET").h(headers).b(body);
269
- return b.build();
270
- };
271
- exports.se_DescribeReservationCommand = se_DescribeReservationCommand;
272
- const se_GrantFlowEntitlementsCommand = async (input, context) => {
273
- const b = (0, core_1.requestBuilder)(input, context);
274
- const headers = {
275
- "content-type": "application/json",
276
- };
277
- b.bp("/v1/flows/{FlowArn}/entitlements");
278
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
279
- let body;
280
- body = JSON.stringify((0, smithy_client_1.take)(input, {
281
- entitlements: [, (_) => se___listOfGrantEntitlementRequest(_, context), `Entitlements`],
282
- }));
283
- b.m("POST").h(headers).b(body);
284
- return b.build();
285
- };
286
- exports.se_GrantFlowEntitlementsCommand = se_GrantFlowEntitlementsCommand;
287
- const se_ListBridgesCommand = async (input, context) => {
288
- const b = (0, core_1.requestBuilder)(input, context);
289
- const headers = {};
290
- b.bp("/v1/bridges");
291
- const query = (0, smithy_client_1.map)({
292
- [_fA]: [, input[_FA]],
293
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
294
- [_nT]: [, input[_NT]],
295
- });
296
- let body;
297
- b.m("GET").h(headers).q(query).b(body);
298
- return b.build();
299
- };
300
- exports.se_ListBridgesCommand = se_ListBridgesCommand;
301
- const se_ListEntitlementsCommand = async (input, context) => {
302
- const b = (0, core_1.requestBuilder)(input, context);
303
- const headers = {};
304
- b.bp("/v1/entitlements");
305
- const query = (0, smithy_client_1.map)({
306
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
307
- [_nT]: [, input[_NT]],
308
- });
309
- let body;
310
- b.m("GET").h(headers).q(query).b(body);
311
- return b.build();
312
- };
313
- exports.se_ListEntitlementsCommand = se_ListEntitlementsCommand;
314
- const se_ListFlowsCommand = async (input, context) => {
315
- const b = (0, core_1.requestBuilder)(input, context);
316
- const headers = {};
317
- b.bp("/v1/flows");
318
- const query = (0, smithy_client_1.map)({
319
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
320
- [_nT]: [, input[_NT]],
321
- });
322
- let body;
323
- b.m("GET").h(headers).q(query).b(body);
324
- return b.build();
325
- };
326
- exports.se_ListFlowsCommand = se_ListFlowsCommand;
327
- const se_ListGatewayInstancesCommand = async (input, context) => {
328
- const b = (0, core_1.requestBuilder)(input, context);
329
- const headers = {};
330
- b.bp("/v1/gateway-instances");
331
- const query = (0, smithy_client_1.map)({
332
- [_fA]: [, input[_FA]],
333
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
334
- [_nT]: [, input[_NT]],
335
- });
336
- let body;
337
- b.m("GET").h(headers).q(query).b(body);
338
- return b.build();
339
- };
340
- exports.se_ListGatewayInstancesCommand = se_ListGatewayInstancesCommand;
341
- const se_ListGatewaysCommand = async (input, context) => {
342
- const b = (0, core_1.requestBuilder)(input, context);
343
- const headers = {};
344
- b.bp("/v1/gateways");
345
- const query = (0, smithy_client_1.map)({
346
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
347
- [_nT]: [, input[_NT]],
348
- });
349
- let body;
350
- b.m("GET").h(headers).q(query).b(body);
351
- return b.build();
352
- };
353
- exports.se_ListGatewaysCommand = se_ListGatewaysCommand;
354
- const se_ListOfferingsCommand = async (input, context) => {
355
- const b = (0, core_1.requestBuilder)(input, context);
356
- const headers = {};
357
- b.bp("/v1/offerings");
358
- const query = (0, smithy_client_1.map)({
359
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
360
- [_nT]: [, input[_NT]],
361
- });
362
- let body;
363
- b.m("GET").h(headers).q(query).b(body);
364
- return b.build();
365
- };
366
- exports.se_ListOfferingsCommand = se_ListOfferingsCommand;
367
- const se_ListReservationsCommand = async (input, context) => {
368
- const b = (0, core_1.requestBuilder)(input, context);
369
- const headers = {};
370
- b.bp("/v1/reservations");
371
- const query = (0, smithy_client_1.map)({
372
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
373
- [_nT]: [, input[_NT]],
374
- });
375
- let body;
376
- b.m("GET").h(headers).q(query).b(body);
377
- return b.build();
378
- };
379
- exports.se_ListReservationsCommand = se_ListReservationsCommand;
380
- const se_ListTagsForResourceCommand = async (input, context) => {
381
- const b = (0, core_1.requestBuilder)(input, context);
382
- const headers = {};
383
- b.bp("/tags/{ResourceArn}");
384
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
385
- let body;
386
- b.m("GET").h(headers).b(body);
387
- return b.build();
388
- };
389
- exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
390
- const se_PurchaseOfferingCommand = async (input, context) => {
391
- const b = (0, core_1.requestBuilder)(input, context);
392
- const headers = {
393
- "content-type": "application/json",
394
- };
395
- b.bp("/v1/offerings/{OfferingArn}");
396
- b.p("OfferingArn", () => input.OfferingArn, "{OfferingArn}", false);
397
- let body;
398
- body = JSON.stringify((0, smithy_client_1.take)(input, {
399
- reservationName: [, , `ReservationName`],
400
- start: [, , `Start`],
401
- }));
402
- b.m("POST").h(headers).b(body);
403
- return b.build();
404
- };
405
- exports.se_PurchaseOfferingCommand = se_PurchaseOfferingCommand;
406
- const se_RemoveBridgeOutputCommand = async (input, context) => {
407
- const b = (0, core_1.requestBuilder)(input, context);
408
- const headers = {};
409
- b.bp("/v1/bridges/{BridgeArn}/outputs/{OutputName}");
410
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
411
- b.p("OutputName", () => input.OutputName, "{OutputName}", false);
412
- let body;
413
- b.m("DELETE").h(headers).b(body);
414
- return b.build();
415
- };
416
- exports.se_RemoveBridgeOutputCommand = se_RemoveBridgeOutputCommand;
417
- const se_RemoveBridgeSourceCommand = async (input, context) => {
418
- const b = (0, core_1.requestBuilder)(input, context);
419
- const headers = {};
420
- b.bp("/v1/bridges/{BridgeArn}/sources/{SourceName}");
421
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
422
- b.p("SourceName", () => input.SourceName, "{SourceName}", false);
423
- let body;
424
- b.m("DELETE").h(headers).b(body);
425
- return b.build();
426
- };
427
- exports.se_RemoveBridgeSourceCommand = se_RemoveBridgeSourceCommand;
428
- const se_RemoveFlowMediaStreamCommand = async (input, context) => {
429
- const b = (0, core_1.requestBuilder)(input, context);
430
- const headers = {};
431
- b.bp("/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}");
432
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
433
- b.p("MediaStreamName", () => input.MediaStreamName, "{MediaStreamName}", false);
434
- let body;
435
- b.m("DELETE").h(headers).b(body);
436
- return b.build();
437
- };
438
- exports.se_RemoveFlowMediaStreamCommand = se_RemoveFlowMediaStreamCommand;
439
- const se_RemoveFlowOutputCommand = async (input, context) => {
440
- const b = (0, core_1.requestBuilder)(input, context);
441
- const headers = {};
442
- b.bp("/v1/flows/{FlowArn}/outputs/{OutputArn}");
443
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
444
- b.p("OutputArn", () => input.OutputArn, "{OutputArn}", false);
445
- let body;
446
- b.m("DELETE").h(headers).b(body);
447
- return b.build();
448
- };
449
- exports.se_RemoveFlowOutputCommand = se_RemoveFlowOutputCommand;
450
- const se_RemoveFlowSourceCommand = async (input, context) => {
451
- const b = (0, core_1.requestBuilder)(input, context);
452
- const headers = {};
453
- b.bp("/v1/flows/{FlowArn}/source/{SourceArn}");
454
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
455
- b.p("SourceArn", () => input.SourceArn, "{SourceArn}", false);
456
- let body;
457
- b.m("DELETE").h(headers).b(body);
458
- return b.build();
459
- };
460
- exports.se_RemoveFlowSourceCommand = se_RemoveFlowSourceCommand;
461
- const se_RemoveFlowVpcInterfaceCommand = async (input, context) => {
462
- const b = (0, core_1.requestBuilder)(input, context);
463
- const headers = {};
464
- b.bp("/v1/flows/{FlowArn}/vpcInterfaces/{VpcInterfaceName}");
465
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
466
- b.p("VpcInterfaceName", () => input.VpcInterfaceName, "{VpcInterfaceName}", false);
467
- let body;
468
- b.m("DELETE").h(headers).b(body);
469
- return b.build();
470
- };
471
- exports.se_RemoveFlowVpcInterfaceCommand = se_RemoveFlowVpcInterfaceCommand;
472
- const se_RevokeFlowEntitlementCommand = async (input, context) => {
473
- const b = (0, core_1.requestBuilder)(input, context);
474
- const headers = {};
475
- b.bp("/v1/flows/{FlowArn}/entitlements/{EntitlementArn}");
476
- b.p("EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
477
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
478
- let body;
479
- b.m("DELETE").h(headers).b(body);
480
- return b.build();
481
- };
482
- exports.se_RevokeFlowEntitlementCommand = se_RevokeFlowEntitlementCommand;
483
- const se_StartFlowCommand = async (input, context) => {
484
- const b = (0, core_1.requestBuilder)(input, context);
485
- const headers = {};
486
- b.bp("/v1/flows/start/{FlowArn}");
487
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
488
- let body;
489
- b.m("POST").h(headers).b(body);
490
- return b.build();
491
- };
492
- exports.se_StartFlowCommand = se_StartFlowCommand;
493
- const se_StopFlowCommand = async (input, context) => {
494
- const b = (0, core_1.requestBuilder)(input, context);
495
- const headers = {};
496
- b.bp("/v1/flows/stop/{FlowArn}");
497
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
498
- let body;
499
- b.m("POST").h(headers).b(body);
500
- return b.build();
501
- };
502
- exports.se_StopFlowCommand = se_StopFlowCommand;
503
- const se_TagResourceCommand = async (input, context) => {
504
- const b = (0, core_1.requestBuilder)(input, context);
505
- const headers = {
506
- "content-type": "application/json",
507
- };
508
- b.bp("/tags/{ResourceArn}");
509
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
510
- let body;
511
- body = JSON.stringify((0, smithy_client_1.take)(input, {
512
- tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
513
- }));
514
- b.m("POST").h(headers).b(body);
515
- return b.build();
516
- };
517
- exports.se_TagResourceCommand = se_TagResourceCommand;
518
- const se_UntagResourceCommand = async (input, context) => {
519
- const b = (0, core_1.requestBuilder)(input, context);
520
- const headers = {};
521
- b.bp("/tags/{ResourceArn}");
522
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
523
- const query = (0, smithy_client_1.map)({
524
- [_tK]: [
525
- (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
526
- () => (input[_TK] || []).map((_entry) => _entry),
527
- ],
528
- });
529
- let body;
530
- b.m("DELETE").h(headers).q(query).b(body);
531
- return b.build();
532
- };
533
- exports.se_UntagResourceCommand = se_UntagResourceCommand;
534
- const se_UpdateBridgeCommand = async (input, context) => {
535
- const b = (0, core_1.requestBuilder)(input, context);
536
- const headers = {
537
- "content-type": "application/json",
538
- };
539
- b.bp("/v1/bridges/{BridgeArn}");
540
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
541
- let body;
542
- body = JSON.stringify((0, smithy_client_1.take)(input, {
543
- egressGatewayBridge: [, (_) => se_UpdateEgressGatewayBridgeRequest(_, context), `EgressGatewayBridge`],
544
- ingressGatewayBridge: [, (_) => se_UpdateIngressGatewayBridgeRequest(_, context), `IngressGatewayBridge`],
545
- sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`],
546
- }));
547
- b.m("PUT").h(headers).b(body);
548
- return b.build();
549
- };
550
- exports.se_UpdateBridgeCommand = se_UpdateBridgeCommand;
551
- const se_UpdateBridgeOutputCommand = async (input, context) => {
552
- const b = (0, core_1.requestBuilder)(input, context);
553
- const headers = {
554
- "content-type": "application/json",
555
- };
556
- b.bp("/v1/bridges/{BridgeArn}/outputs/{OutputName}");
557
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
558
- b.p("OutputName", () => input.OutputName, "{OutputName}", false);
559
- let body;
560
- body = JSON.stringify((0, smithy_client_1.take)(input, {
561
- networkOutput: [, (_) => se_UpdateBridgeNetworkOutputRequest(_, context), `NetworkOutput`],
562
- }));
563
- b.m("PUT").h(headers).b(body);
564
- return b.build();
565
- };
566
- exports.se_UpdateBridgeOutputCommand = se_UpdateBridgeOutputCommand;
567
- const se_UpdateBridgeSourceCommand = async (input, context) => {
568
- const b = (0, core_1.requestBuilder)(input, context);
569
- const headers = {
570
- "content-type": "application/json",
571
- };
572
- b.bp("/v1/bridges/{BridgeArn}/sources/{SourceName}");
573
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
574
- b.p("SourceName", () => input.SourceName, "{SourceName}", false);
575
- let body;
576
- body = JSON.stringify((0, smithy_client_1.take)(input, {
577
- flowSource: [, (_) => se_UpdateBridgeFlowSourceRequest(_, context), `FlowSource`],
578
- networkSource: [, (_) => se_UpdateBridgeNetworkSourceRequest(_, context), `NetworkSource`],
579
- }));
580
- b.m("PUT").h(headers).b(body);
581
- return b.build();
582
- };
583
- exports.se_UpdateBridgeSourceCommand = se_UpdateBridgeSourceCommand;
584
- const se_UpdateBridgeStateCommand = async (input, context) => {
585
- const b = (0, core_1.requestBuilder)(input, context);
586
- const headers = {
587
- "content-type": "application/json",
588
- };
589
- b.bp("/v1/bridges/{BridgeArn}/state");
590
- b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
591
- let body;
592
- body = JSON.stringify((0, smithy_client_1.take)(input, {
593
- desiredState: [, , `DesiredState`],
594
- }));
595
- b.m("PUT").h(headers).b(body);
596
- return b.build();
597
- };
598
- exports.se_UpdateBridgeStateCommand = se_UpdateBridgeStateCommand;
599
- const se_UpdateFlowCommand = async (input, context) => {
600
- const b = (0, core_1.requestBuilder)(input, context);
601
- const headers = {
602
- "content-type": "application/json",
603
- };
604
- b.bp("/v1/flows/{FlowArn}");
605
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
606
- let body;
607
- body = JSON.stringify((0, smithy_client_1.take)(input, {
608
- maintenance: [, (_) => se_UpdateMaintenance(_, context), `Maintenance`],
609
- sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`],
610
- }));
611
- b.m("PUT").h(headers).b(body);
612
- return b.build();
613
- };
614
- exports.se_UpdateFlowCommand = se_UpdateFlowCommand;
615
- const se_UpdateFlowEntitlementCommand = async (input, context) => {
616
- const b = (0, core_1.requestBuilder)(input, context);
617
- const headers = {
618
- "content-type": "application/json",
619
- };
620
- b.bp("/v1/flows/{FlowArn}/entitlements/{EntitlementArn}");
621
- b.p("EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
622
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
623
- let body;
624
- body = JSON.stringify((0, smithy_client_1.take)(input, {
625
- description: [, , `Description`],
626
- encryption: [, (_) => se_UpdateEncryption(_, context), `Encryption`],
627
- entitlementStatus: [, , `EntitlementStatus`],
628
- subscribers: [, (_) => (0, smithy_client_1._json)(_), `Subscribers`],
629
- }));
630
- b.m("PUT").h(headers).b(body);
631
- return b.build();
632
- };
633
- exports.se_UpdateFlowEntitlementCommand = se_UpdateFlowEntitlementCommand;
634
- const se_UpdateFlowMediaStreamCommand = async (input, context) => {
635
- const b = (0, core_1.requestBuilder)(input, context);
636
- const headers = {
637
- "content-type": "application/json",
638
- };
639
- b.bp("/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}");
640
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
641
- b.p("MediaStreamName", () => input.MediaStreamName, "{MediaStreamName}", false);
642
- let body;
643
- body = JSON.stringify((0, smithy_client_1.take)(input, {
644
- attributes: [, (_) => se_MediaStreamAttributesRequest(_, context), `Attributes`],
645
- clockRate: [, , `ClockRate`],
646
- description: [, , `Description`],
647
- mediaStreamType: [, , `MediaStreamType`],
648
- videoFormat: [, , `VideoFormat`],
649
- }));
650
- b.m("PUT").h(headers).b(body);
651
- return b.build();
652
- };
653
- exports.se_UpdateFlowMediaStreamCommand = se_UpdateFlowMediaStreamCommand;
654
- const se_UpdateFlowOutputCommand = async (input, context) => {
655
- const b = (0, core_1.requestBuilder)(input, context);
656
- const headers = {
657
- "content-type": "application/json",
658
- };
659
- b.bp("/v1/flows/{FlowArn}/outputs/{OutputArn}");
660
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
661
- b.p("OutputArn", () => input.OutputArn, "{OutputArn}", false);
662
- let body;
663
- body = JSON.stringify((0, smithy_client_1.take)(input, {
664
- cidrAllowList: [, (_) => (0, smithy_client_1._json)(_), `CidrAllowList`],
665
- description: [, , `Description`],
666
- destination: [, , `Destination`],
667
- encryption: [, (_) => se_UpdateEncryption(_, context), `Encryption`],
668
- maxLatency: [, , `MaxLatency`],
669
- mediaStreamOutputConfigurations: [
670
- ,
671
- (_) => se___listOfMediaStreamOutputConfigurationRequest(_, context),
672
- `MediaStreamOutputConfigurations`,
673
- ],
674
- minLatency: [, , `MinLatency`],
675
- port: [, , `Port`],
676
- protocol: [, , `Protocol`],
677
- remoteId: [, , `RemoteId`],
678
- senderControlPort: [, , `SenderControlPort`],
679
- senderIpAddress: [, , `SenderIpAddress`],
680
- smoothingLatency: [, , `SmoothingLatency`],
681
- streamId: [, , `StreamId`],
682
- vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
683
- }));
684
- b.m("PUT").h(headers).b(body);
685
- return b.build();
686
- };
687
- exports.se_UpdateFlowOutputCommand = se_UpdateFlowOutputCommand;
688
- const se_UpdateFlowSourceCommand = async (input, context) => {
689
- const b = (0, core_1.requestBuilder)(input, context);
690
- const headers = {
691
- "content-type": "application/json",
692
- };
693
- b.bp("/v1/flows/{FlowArn}/source/{SourceArn}");
694
- b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
695
- b.p("SourceArn", () => input.SourceArn, "{SourceArn}", false);
696
- let body;
697
- body = JSON.stringify((0, smithy_client_1.take)(input, {
698
- decryption: [, (_) => se_UpdateEncryption(_, context), `Decryption`],
699
- description: [, , `Description`],
700
- entitlementArn: [, , `EntitlementArn`],
701
- gatewayBridgeSource: [, (_) => se_UpdateGatewayBridgeSourceRequest(_, context), `GatewayBridgeSource`],
702
- ingestPort: [, , `IngestPort`],
703
- maxBitrate: [, , `MaxBitrate`],
704
- maxLatency: [, , `MaxLatency`],
705
- maxSyncBuffer: [, , `MaxSyncBuffer`],
706
- mediaStreamSourceConfigurations: [
707
- ,
708
- (_) => se___listOfMediaStreamSourceConfigurationRequest(_, context),
709
- `MediaStreamSourceConfigurations`,
710
- ],
711
- minLatency: [, , `MinLatency`],
712
- protocol: [, , `Protocol`],
713
- senderControlPort: [, , `SenderControlPort`],
714
- senderIpAddress: [, , `SenderIpAddress`],
715
- sourceListenerAddress: [, , `SourceListenerAddress`],
716
- sourceListenerPort: [, , `SourceListenerPort`],
717
- streamId: [, , `StreamId`],
718
- vpcInterfaceName: [, , `VpcInterfaceName`],
719
- whitelistCidr: [, , `WhitelistCidr`],
720
- }));
721
- b.m("PUT").h(headers).b(body);
722
- return b.build();
723
- };
724
- exports.se_UpdateFlowSourceCommand = se_UpdateFlowSourceCommand;
725
- const se_UpdateGatewayInstanceCommand = async (input, context) => {
726
- const b = (0, core_1.requestBuilder)(input, context);
727
- const headers = {
728
- "content-type": "application/json",
729
- };
730
- b.bp("/v1/gateway-instances/{GatewayInstanceArn}");
731
- b.p("GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
732
- let body;
733
- body = JSON.stringify((0, smithy_client_1.take)(input, {
734
- bridgePlacement: [, , `BridgePlacement`],
735
- }));
736
- b.m("PUT").h(headers).b(body);
737
- return b.build();
738
- };
739
- exports.se_UpdateGatewayInstanceCommand = se_UpdateGatewayInstanceCommand;
740
- const de_AddBridgeOutputsCommand = async (output, context) => {
741
- if (output.statusCode !== 202 && output.statusCode >= 300) {
742
- return de_AddBridgeOutputsCommandError(output, context);
743
- }
744
- const contents = (0, smithy_client_1.map)({
745
- $metadata: deserializeMetadata(output),
746
- });
747
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
748
- const doc = (0, smithy_client_1.take)(data, {
749
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
750
- Outputs: [, (_) => de___listOfBridgeOutput(_, context), `outputs`],
751
- });
752
- Object.assign(contents, doc);
753
- return contents;
754
- };
755
- exports.de_AddBridgeOutputsCommand = de_AddBridgeOutputsCommand;
756
- const de_AddBridgeOutputsCommandError = async (output, context) => {
757
- const parsedOutput = {
758
- ...output,
759
- body: await parseErrorBody(output.body, context),
760
- };
761
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
762
- switch (errorCode) {
763
- case "BadRequestException":
764
- case "com.amazonaws.mediaconnect#BadRequestException":
765
- throw await de_BadRequestExceptionRes(parsedOutput, context);
766
- case "ConflictException":
767
- case "com.amazonaws.mediaconnect#ConflictException":
768
- throw await de_ConflictExceptionRes(parsedOutput, context);
769
- case "ForbiddenException":
770
- case "com.amazonaws.mediaconnect#ForbiddenException":
771
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
772
- case "InternalServerErrorException":
773
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
774
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
775
- case "NotFoundException":
776
- case "com.amazonaws.mediaconnect#NotFoundException":
777
- throw await de_NotFoundExceptionRes(parsedOutput, context);
778
- case "ServiceUnavailableException":
779
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
780
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
781
- case "TooManyRequestsException":
782
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
783
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
784
- default:
785
- const parsedBody = parsedOutput.body;
786
- return throwDefaultError({
787
- output,
788
- parsedBody,
789
- errorCode,
790
- });
791
- }
792
- };
793
- const de_AddBridgeSourcesCommand = async (output, context) => {
794
- if (output.statusCode !== 202 && output.statusCode >= 300) {
795
- return de_AddBridgeSourcesCommandError(output, context);
796
- }
797
- const contents = (0, smithy_client_1.map)({
798
- $metadata: deserializeMetadata(output),
799
- });
800
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
801
- const doc = (0, smithy_client_1.take)(data, {
802
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
803
- Sources: [, (_) => de___listOfBridgeSource(_, context), `sources`],
804
- });
805
- Object.assign(contents, doc);
806
- return contents;
807
- };
808
- exports.de_AddBridgeSourcesCommand = de_AddBridgeSourcesCommand;
809
- const de_AddBridgeSourcesCommandError = async (output, context) => {
810
- const parsedOutput = {
811
- ...output,
812
- body: await parseErrorBody(output.body, context),
813
- };
814
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
815
- switch (errorCode) {
816
- case "BadRequestException":
817
- case "com.amazonaws.mediaconnect#BadRequestException":
818
- throw await de_BadRequestExceptionRes(parsedOutput, context);
819
- case "ConflictException":
820
- case "com.amazonaws.mediaconnect#ConflictException":
821
- throw await de_ConflictExceptionRes(parsedOutput, context);
822
- case "ForbiddenException":
823
- case "com.amazonaws.mediaconnect#ForbiddenException":
824
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
825
- case "InternalServerErrorException":
826
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
827
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
828
- case "NotFoundException":
829
- case "com.amazonaws.mediaconnect#NotFoundException":
830
- throw await de_NotFoundExceptionRes(parsedOutput, context);
831
- case "ServiceUnavailableException":
832
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
833
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
834
- case "TooManyRequestsException":
835
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
836
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
837
- default:
838
- const parsedBody = parsedOutput.body;
839
- return throwDefaultError({
840
- output,
841
- parsedBody,
842
- errorCode,
843
- });
844
- }
845
- };
846
- const de_AddFlowMediaStreamsCommand = async (output, context) => {
847
- if (output.statusCode !== 201 && output.statusCode >= 300) {
848
- return de_AddFlowMediaStreamsCommandError(output, context);
849
- }
850
- const contents = (0, smithy_client_1.map)({
851
- $metadata: deserializeMetadata(output),
852
- });
853
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
854
- const doc = (0, smithy_client_1.take)(data, {
855
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
856
- MediaStreams: [, (_) => de___listOfMediaStream(_, context), `mediaStreams`],
857
- });
858
- Object.assign(contents, doc);
859
- return contents;
860
- };
861
- exports.de_AddFlowMediaStreamsCommand = de_AddFlowMediaStreamsCommand;
862
- const de_AddFlowMediaStreamsCommandError = async (output, context) => {
863
- const parsedOutput = {
864
- ...output,
865
- body: await parseErrorBody(output.body, context),
866
- };
867
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
868
- switch (errorCode) {
869
- case "BadRequestException":
870
- case "com.amazonaws.mediaconnect#BadRequestException":
871
- throw await de_BadRequestExceptionRes(parsedOutput, context);
872
- case "ForbiddenException":
873
- case "com.amazonaws.mediaconnect#ForbiddenException":
874
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
875
- case "InternalServerErrorException":
876
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
877
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
878
- case "NotFoundException":
879
- case "com.amazonaws.mediaconnect#NotFoundException":
880
- throw await de_NotFoundExceptionRes(parsedOutput, context);
881
- case "ServiceUnavailableException":
882
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
883
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
884
- case "TooManyRequestsException":
885
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
886
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
887
- default:
888
- const parsedBody = parsedOutput.body;
889
- return throwDefaultError({
890
- output,
891
- parsedBody,
892
- errorCode,
893
- });
894
- }
895
- };
896
- const de_AddFlowOutputsCommand = async (output, context) => {
897
- if (output.statusCode !== 201 && output.statusCode >= 300) {
898
- return de_AddFlowOutputsCommandError(output, context);
899
- }
900
- const contents = (0, smithy_client_1.map)({
901
- $metadata: deserializeMetadata(output),
902
- });
903
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
904
- const doc = (0, smithy_client_1.take)(data, {
905
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
906
- Outputs: [, (_) => de___listOfOutput(_, context), `outputs`],
907
- });
908
- Object.assign(contents, doc);
909
- return contents;
910
- };
911
- exports.de_AddFlowOutputsCommand = de_AddFlowOutputsCommand;
912
- const de_AddFlowOutputsCommandError = async (output, context) => {
913
- const parsedOutput = {
914
- ...output,
915
- body: await parseErrorBody(output.body, context),
916
- };
917
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
918
- switch (errorCode) {
919
- case "AddFlowOutputs420Exception":
920
- case "com.amazonaws.mediaconnect#AddFlowOutputs420Exception":
921
- throw await de_AddFlowOutputs420ExceptionRes(parsedOutput, context);
922
- case "BadRequestException":
923
- case "com.amazonaws.mediaconnect#BadRequestException":
924
- throw await de_BadRequestExceptionRes(parsedOutput, context);
925
- case "ForbiddenException":
926
- case "com.amazonaws.mediaconnect#ForbiddenException":
927
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
928
- case "InternalServerErrorException":
929
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
930
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
931
- case "NotFoundException":
932
- case "com.amazonaws.mediaconnect#NotFoundException":
933
- throw await de_NotFoundExceptionRes(parsedOutput, context);
934
- case "ServiceUnavailableException":
935
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
936
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
937
- case "TooManyRequestsException":
938
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
939
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
940
- default:
941
- const parsedBody = parsedOutput.body;
942
- return throwDefaultError({
943
- output,
944
- parsedBody,
945
- errorCode,
946
- });
947
- }
948
- };
949
- const de_AddFlowSourcesCommand = async (output, context) => {
950
- if (output.statusCode !== 201 && output.statusCode >= 300) {
951
- return de_AddFlowSourcesCommandError(output, context);
952
- }
953
- const contents = (0, smithy_client_1.map)({
954
- $metadata: deserializeMetadata(output),
955
- });
956
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
957
- const doc = (0, smithy_client_1.take)(data, {
958
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
959
- Sources: [, (_) => de___listOfSource(_, context), `sources`],
960
- });
961
- Object.assign(contents, doc);
962
- return contents;
963
- };
964
- exports.de_AddFlowSourcesCommand = de_AddFlowSourcesCommand;
965
- const de_AddFlowSourcesCommandError = async (output, context) => {
966
- const parsedOutput = {
967
- ...output,
968
- body: await parseErrorBody(output.body, context),
969
- };
970
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
971
- switch (errorCode) {
972
- case "BadRequestException":
973
- case "com.amazonaws.mediaconnect#BadRequestException":
974
- throw await de_BadRequestExceptionRes(parsedOutput, context);
975
- case "ForbiddenException":
976
- case "com.amazonaws.mediaconnect#ForbiddenException":
977
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
978
- case "InternalServerErrorException":
979
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
980
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
981
- case "NotFoundException":
982
- case "com.amazonaws.mediaconnect#NotFoundException":
983
- throw await de_NotFoundExceptionRes(parsedOutput, context);
984
- case "ServiceUnavailableException":
985
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
986
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
987
- case "TooManyRequestsException":
988
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
989
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
990
- default:
991
- const parsedBody = parsedOutput.body;
992
- return throwDefaultError({
993
- output,
994
- parsedBody,
995
- errorCode,
996
- });
997
- }
998
- };
999
- const de_AddFlowVpcInterfacesCommand = async (output, context) => {
1000
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1001
- return de_AddFlowVpcInterfacesCommandError(output, context);
1002
- }
1003
- const contents = (0, smithy_client_1.map)({
1004
- $metadata: deserializeMetadata(output),
1005
- });
1006
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1007
- const doc = (0, smithy_client_1.take)(data, {
1008
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
1009
- VpcInterfaces: [, (_) => de___listOfVpcInterface(_, context), `vpcInterfaces`],
1010
- });
1011
- Object.assign(contents, doc);
1012
- return contents;
1013
- };
1014
- exports.de_AddFlowVpcInterfacesCommand = de_AddFlowVpcInterfacesCommand;
1015
- const de_AddFlowVpcInterfacesCommandError = async (output, context) => {
1016
- const parsedOutput = {
1017
- ...output,
1018
- body: await parseErrorBody(output.body, context),
1019
- };
1020
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1021
- switch (errorCode) {
1022
- case "BadRequestException":
1023
- case "com.amazonaws.mediaconnect#BadRequestException":
1024
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1025
- case "ForbiddenException":
1026
- case "com.amazonaws.mediaconnect#ForbiddenException":
1027
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1028
- case "InternalServerErrorException":
1029
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1030
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1031
- case "NotFoundException":
1032
- case "com.amazonaws.mediaconnect#NotFoundException":
1033
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1034
- case "ServiceUnavailableException":
1035
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1036
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1037
- case "TooManyRequestsException":
1038
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1039
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1040
- default:
1041
- const parsedBody = parsedOutput.body;
1042
- return throwDefaultError({
1043
- output,
1044
- parsedBody,
1045
- errorCode,
1046
- });
1047
- }
1048
- };
1049
- const de_CreateBridgeCommand = async (output, context) => {
1050
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1051
- return de_CreateBridgeCommandError(output, context);
1052
- }
1053
- const contents = (0, smithy_client_1.map)({
1054
- $metadata: deserializeMetadata(output),
1055
- });
1056
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1057
- const doc = (0, smithy_client_1.take)(data, {
1058
- Bridge: [, (_) => de_Bridge(_, context), `bridge`],
1059
- });
1060
- Object.assign(contents, doc);
1061
- return contents;
1062
- };
1063
- exports.de_CreateBridgeCommand = de_CreateBridgeCommand;
1064
- const de_CreateBridgeCommandError = async (output, context) => {
1065
- const parsedOutput = {
1066
- ...output,
1067
- body: await parseErrorBody(output.body, context),
1068
- };
1069
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1070
- switch (errorCode) {
1071
- case "BadRequestException":
1072
- case "com.amazonaws.mediaconnect#BadRequestException":
1073
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1074
- case "ConflictException":
1075
- case "com.amazonaws.mediaconnect#ConflictException":
1076
- throw await de_ConflictExceptionRes(parsedOutput, context);
1077
- case "CreateBridge420Exception":
1078
- case "com.amazonaws.mediaconnect#CreateBridge420Exception":
1079
- throw await de_CreateBridge420ExceptionRes(parsedOutput, context);
1080
- case "ForbiddenException":
1081
- case "com.amazonaws.mediaconnect#ForbiddenException":
1082
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1083
- case "InternalServerErrorException":
1084
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1085
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1086
- case "ServiceUnavailableException":
1087
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1088
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1089
- case "TooManyRequestsException":
1090
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1091
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1092
- default:
1093
- const parsedBody = parsedOutput.body;
1094
- return throwDefaultError({
1095
- output,
1096
- parsedBody,
1097
- errorCode,
1098
- });
1099
- }
1100
- };
1101
- const de_CreateFlowCommand = async (output, context) => {
1102
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1103
- return de_CreateFlowCommandError(output, context);
1104
- }
1105
- const contents = (0, smithy_client_1.map)({
1106
- $metadata: deserializeMetadata(output),
1107
- });
1108
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1109
- const doc = (0, smithy_client_1.take)(data, {
1110
- Flow: [, (_) => de_Flow(_, context), `flow`],
1111
- });
1112
- Object.assign(contents, doc);
1113
- return contents;
1114
- };
1115
- exports.de_CreateFlowCommand = de_CreateFlowCommand;
1116
- const de_CreateFlowCommandError = async (output, context) => {
1117
- const parsedOutput = {
1118
- ...output,
1119
- body: await parseErrorBody(output.body, context),
1120
- };
1121
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1122
- switch (errorCode) {
1123
- case "BadRequestException":
1124
- case "com.amazonaws.mediaconnect#BadRequestException":
1125
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1126
- case "CreateFlow420Exception":
1127
- case "com.amazonaws.mediaconnect#CreateFlow420Exception":
1128
- throw await de_CreateFlow420ExceptionRes(parsedOutput, context);
1129
- case "ForbiddenException":
1130
- case "com.amazonaws.mediaconnect#ForbiddenException":
1131
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1132
- case "InternalServerErrorException":
1133
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1134
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1135
- case "ServiceUnavailableException":
1136
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1137
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1138
- case "TooManyRequestsException":
1139
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1140
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1141
- default:
1142
- const parsedBody = parsedOutput.body;
1143
- return throwDefaultError({
1144
- output,
1145
- parsedBody,
1146
- errorCode,
1147
- });
1148
- }
1149
- };
1150
- const de_CreateGatewayCommand = async (output, context) => {
1151
- if (output.statusCode !== 201 && output.statusCode >= 300) {
1152
- return de_CreateGatewayCommandError(output, context);
1153
- }
1154
- const contents = (0, smithy_client_1.map)({
1155
- $metadata: deserializeMetadata(output),
1156
- });
1157
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1158
- const doc = (0, smithy_client_1.take)(data, {
1159
- Gateway: [, (_) => de_Gateway(_, context), `gateway`],
1160
- });
1161
- Object.assign(contents, doc);
1162
- return contents;
1163
- };
1164
- exports.de_CreateGatewayCommand = de_CreateGatewayCommand;
1165
- const de_CreateGatewayCommandError = async (output, context) => {
1166
- const parsedOutput = {
1167
- ...output,
1168
- body: await parseErrorBody(output.body, context),
1169
- };
1170
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1171
- switch (errorCode) {
1172
- case "BadRequestException":
1173
- case "com.amazonaws.mediaconnect#BadRequestException":
1174
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1175
- case "ConflictException":
1176
- case "com.amazonaws.mediaconnect#ConflictException":
1177
- throw await de_ConflictExceptionRes(parsedOutput, context);
1178
- case "CreateGateway420Exception":
1179
- case "com.amazonaws.mediaconnect#CreateGateway420Exception":
1180
- throw await de_CreateGateway420ExceptionRes(parsedOutput, context);
1181
- case "ForbiddenException":
1182
- case "com.amazonaws.mediaconnect#ForbiddenException":
1183
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1184
- case "InternalServerErrorException":
1185
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1186
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1187
- case "ServiceUnavailableException":
1188
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1189
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1190
- case "TooManyRequestsException":
1191
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1192
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1193
- default:
1194
- const parsedBody = parsedOutput.body;
1195
- return throwDefaultError({
1196
- output,
1197
- parsedBody,
1198
- errorCode,
1199
- });
1200
- }
1201
- };
1202
- const de_DeleteBridgeCommand = async (output, context) => {
1203
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1204
- return de_DeleteBridgeCommandError(output, context);
1205
- }
1206
- const contents = (0, smithy_client_1.map)({
1207
- $metadata: deserializeMetadata(output),
1208
- });
1209
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1210
- const doc = (0, smithy_client_1.take)(data, {
1211
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
1212
- });
1213
- Object.assign(contents, doc);
1214
- return contents;
1215
- };
1216
- exports.de_DeleteBridgeCommand = de_DeleteBridgeCommand;
1217
- const de_DeleteBridgeCommandError = async (output, context) => {
1218
- const parsedOutput = {
1219
- ...output,
1220
- body: await parseErrorBody(output.body, context),
1221
- };
1222
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1223
- switch (errorCode) {
1224
- case "BadRequestException":
1225
- case "com.amazonaws.mediaconnect#BadRequestException":
1226
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1227
- case "ConflictException":
1228
- case "com.amazonaws.mediaconnect#ConflictException":
1229
- throw await de_ConflictExceptionRes(parsedOutput, context);
1230
- case "ForbiddenException":
1231
- case "com.amazonaws.mediaconnect#ForbiddenException":
1232
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1233
- case "InternalServerErrorException":
1234
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1235
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1236
- case "NotFoundException":
1237
- case "com.amazonaws.mediaconnect#NotFoundException":
1238
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1239
- case "ServiceUnavailableException":
1240
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1241
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1242
- case "TooManyRequestsException":
1243
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1244
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1245
- default:
1246
- const parsedBody = parsedOutput.body;
1247
- return throwDefaultError({
1248
- output,
1249
- parsedBody,
1250
- errorCode,
1251
- });
1252
- }
1253
- };
1254
- const de_DeleteFlowCommand = async (output, context) => {
1255
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1256
- return de_DeleteFlowCommandError(output, context);
1257
- }
1258
- const contents = (0, smithy_client_1.map)({
1259
- $metadata: deserializeMetadata(output),
1260
- });
1261
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1262
- const doc = (0, smithy_client_1.take)(data, {
1263
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
1264
- Status: [, smithy_client_1.expectString, `status`],
1265
- });
1266
- Object.assign(contents, doc);
1267
- return contents;
1268
- };
1269
- exports.de_DeleteFlowCommand = de_DeleteFlowCommand;
1270
- const de_DeleteFlowCommandError = async (output, context) => {
1271
- const parsedOutput = {
1272
- ...output,
1273
- body: await parseErrorBody(output.body, context),
1274
- };
1275
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1276
- switch (errorCode) {
1277
- case "BadRequestException":
1278
- case "com.amazonaws.mediaconnect#BadRequestException":
1279
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1280
- case "ForbiddenException":
1281
- case "com.amazonaws.mediaconnect#ForbiddenException":
1282
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1283
- case "InternalServerErrorException":
1284
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1285
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1286
- case "NotFoundException":
1287
- case "com.amazonaws.mediaconnect#NotFoundException":
1288
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1289
- case "ServiceUnavailableException":
1290
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1291
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1292
- case "TooManyRequestsException":
1293
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1294
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1295
- default:
1296
- const parsedBody = parsedOutput.body;
1297
- return throwDefaultError({
1298
- output,
1299
- parsedBody,
1300
- errorCode,
1301
- });
1302
- }
1303
- };
1304
- const de_DeleteGatewayCommand = async (output, context) => {
1305
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1306
- return de_DeleteGatewayCommandError(output, context);
1307
- }
1308
- const contents = (0, smithy_client_1.map)({
1309
- $metadata: deserializeMetadata(output),
1310
- });
1311
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1312
- const doc = (0, smithy_client_1.take)(data, {
1313
- GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
1314
- });
1315
- Object.assign(contents, doc);
1316
- return contents;
1317
- };
1318
- exports.de_DeleteGatewayCommand = de_DeleteGatewayCommand;
1319
- const de_DeleteGatewayCommandError = async (output, context) => {
1320
- const parsedOutput = {
1321
- ...output,
1322
- body: await parseErrorBody(output.body, context),
1323
- };
1324
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1325
- switch (errorCode) {
1326
- case "BadRequestException":
1327
- case "com.amazonaws.mediaconnect#BadRequestException":
1328
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1329
- case "ConflictException":
1330
- case "com.amazonaws.mediaconnect#ConflictException":
1331
- throw await de_ConflictExceptionRes(parsedOutput, context);
1332
- case "ForbiddenException":
1333
- case "com.amazonaws.mediaconnect#ForbiddenException":
1334
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1335
- case "InternalServerErrorException":
1336
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1337
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1338
- case "NotFoundException":
1339
- case "com.amazonaws.mediaconnect#NotFoundException":
1340
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1341
- case "ServiceUnavailableException":
1342
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1343
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1344
- case "TooManyRequestsException":
1345
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1346
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1347
- default:
1348
- const parsedBody = parsedOutput.body;
1349
- return throwDefaultError({
1350
- output,
1351
- parsedBody,
1352
- errorCode,
1353
- });
1354
- }
1355
- };
1356
- const de_DeregisterGatewayInstanceCommand = async (output, context) => {
1357
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1358
- return de_DeregisterGatewayInstanceCommandError(output, context);
1359
- }
1360
- const contents = (0, smithy_client_1.map)({
1361
- $metadata: deserializeMetadata(output),
1362
- });
1363
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1364
- const doc = (0, smithy_client_1.take)(data, {
1365
- GatewayInstanceArn: [, smithy_client_1.expectString, `gatewayInstanceArn`],
1366
- InstanceState: [, smithy_client_1.expectString, `instanceState`],
1367
- });
1368
- Object.assign(contents, doc);
1369
- return contents;
1370
- };
1371
- exports.de_DeregisterGatewayInstanceCommand = de_DeregisterGatewayInstanceCommand;
1372
- const de_DeregisterGatewayInstanceCommandError = async (output, context) => {
1373
- const parsedOutput = {
1374
- ...output,
1375
- body: await parseErrorBody(output.body, context),
1376
- };
1377
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1378
- switch (errorCode) {
1379
- case "BadRequestException":
1380
- case "com.amazonaws.mediaconnect#BadRequestException":
1381
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1382
- case "ConflictException":
1383
- case "com.amazonaws.mediaconnect#ConflictException":
1384
- throw await de_ConflictExceptionRes(parsedOutput, context);
1385
- case "ForbiddenException":
1386
- case "com.amazonaws.mediaconnect#ForbiddenException":
1387
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1388
- case "InternalServerErrorException":
1389
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1390
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1391
- case "NotFoundException":
1392
- case "com.amazonaws.mediaconnect#NotFoundException":
1393
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1394
- case "ServiceUnavailableException":
1395
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1396
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1397
- case "TooManyRequestsException":
1398
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1399
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1400
- default:
1401
- const parsedBody = parsedOutput.body;
1402
- return throwDefaultError({
1403
- output,
1404
- parsedBody,
1405
- errorCode,
1406
- });
1407
- }
1408
- };
1409
- const de_DescribeBridgeCommand = async (output, context) => {
1410
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1411
- return de_DescribeBridgeCommandError(output, context);
1412
- }
1413
- const contents = (0, smithy_client_1.map)({
1414
- $metadata: deserializeMetadata(output),
1415
- });
1416
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1417
- const doc = (0, smithy_client_1.take)(data, {
1418
- Bridge: [, (_) => de_Bridge(_, context), `bridge`],
1419
- });
1420
- Object.assign(contents, doc);
1421
- return contents;
1422
- };
1423
- exports.de_DescribeBridgeCommand = de_DescribeBridgeCommand;
1424
- const de_DescribeBridgeCommandError = async (output, context) => {
1425
- const parsedOutput = {
1426
- ...output,
1427
- body: await parseErrorBody(output.body, context),
1428
- };
1429
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1430
- switch (errorCode) {
1431
- case "BadRequestException":
1432
- case "com.amazonaws.mediaconnect#BadRequestException":
1433
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1434
- case "ConflictException":
1435
- case "com.amazonaws.mediaconnect#ConflictException":
1436
- throw await de_ConflictExceptionRes(parsedOutput, context);
1437
- case "ForbiddenException":
1438
- case "com.amazonaws.mediaconnect#ForbiddenException":
1439
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1440
- case "InternalServerErrorException":
1441
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1442
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1443
- case "NotFoundException":
1444
- case "com.amazonaws.mediaconnect#NotFoundException":
1445
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1446
- case "ServiceUnavailableException":
1447
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1448
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1449
- case "TooManyRequestsException":
1450
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1451
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1452
- default:
1453
- const parsedBody = parsedOutput.body;
1454
- return throwDefaultError({
1455
- output,
1456
- parsedBody,
1457
- errorCode,
1458
- });
1459
- }
1460
- };
1461
- const de_DescribeFlowCommand = async (output, context) => {
1462
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1463
- return de_DescribeFlowCommandError(output, context);
1464
- }
1465
- const contents = (0, smithy_client_1.map)({
1466
- $metadata: deserializeMetadata(output),
1467
- });
1468
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1469
- const doc = (0, smithy_client_1.take)(data, {
1470
- Flow: [, (_) => de_Flow(_, context), `flow`],
1471
- Messages: [, (_) => de_Messages(_, context), `messages`],
1472
- });
1473
- Object.assign(contents, doc);
1474
- return contents;
1475
- };
1476
- exports.de_DescribeFlowCommand = de_DescribeFlowCommand;
1477
- const de_DescribeFlowCommandError = async (output, context) => {
1478
- const parsedOutput = {
1479
- ...output,
1480
- body: await parseErrorBody(output.body, context),
1481
- };
1482
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1483
- switch (errorCode) {
1484
- case "BadRequestException":
1485
- case "com.amazonaws.mediaconnect#BadRequestException":
1486
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1487
- case "ForbiddenException":
1488
- case "com.amazonaws.mediaconnect#ForbiddenException":
1489
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1490
- case "InternalServerErrorException":
1491
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1492
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1493
- case "NotFoundException":
1494
- case "com.amazonaws.mediaconnect#NotFoundException":
1495
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1496
- case "ServiceUnavailableException":
1497
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1498
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1499
- case "TooManyRequestsException":
1500
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1501
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1502
- default:
1503
- const parsedBody = parsedOutput.body;
1504
- return throwDefaultError({
1505
- output,
1506
- parsedBody,
1507
- errorCode,
1508
- });
1509
- }
1510
- };
1511
- const de_DescribeFlowSourceMetadataCommand = async (output, context) => {
1512
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1513
- return de_DescribeFlowSourceMetadataCommandError(output, context);
1514
- }
1515
- const contents = (0, smithy_client_1.map)({
1516
- $metadata: deserializeMetadata(output),
1517
- });
1518
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1519
- const doc = (0, smithy_client_1.take)(data, {
1520
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
1521
- Messages: [, (_) => de___listOfMessageDetail(_, context), `messages`],
1522
- Timestamp: [, (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)), `timestamp`],
1523
- TransportMediaInfo: [, (_) => de_TransportMediaInfo(_, context), `transportMediaInfo`],
1524
- });
1525
- Object.assign(contents, doc);
1526
- return contents;
1527
- };
1528
- exports.de_DescribeFlowSourceMetadataCommand = de_DescribeFlowSourceMetadataCommand;
1529
- const de_DescribeFlowSourceMetadataCommandError = async (output, context) => {
1530
- const parsedOutput = {
1531
- ...output,
1532
- body: await parseErrorBody(output.body, context),
1533
- };
1534
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1535
- switch (errorCode) {
1536
- case "BadRequestException":
1537
- case "com.amazonaws.mediaconnect#BadRequestException":
1538
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1539
- case "ForbiddenException":
1540
- case "com.amazonaws.mediaconnect#ForbiddenException":
1541
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1542
- case "InternalServerErrorException":
1543
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1544
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1545
- case "NotFoundException":
1546
- case "com.amazonaws.mediaconnect#NotFoundException":
1547
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1548
- case "ServiceUnavailableException":
1549
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1550
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1551
- case "TooManyRequestsException":
1552
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1553
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1554
- default:
1555
- const parsedBody = parsedOutput.body;
1556
- return throwDefaultError({
1557
- output,
1558
- parsedBody,
1559
- errorCode,
1560
- });
1561
- }
1562
- };
1563
- const de_DescribeGatewayCommand = async (output, context) => {
1564
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1565
- return de_DescribeGatewayCommandError(output, context);
1566
- }
1567
- const contents = (0, smithy_client_1.map)({
1568
- $metadata: deserializeMetadata(output),
1569
- });
1570
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1571
- const doc = (0, smithy_client_1.take)(data, {
1572
- Gateway: [, (_) => de_Gateway(_, context), `gateway`],
1573
- });
1574
- Object.assign(contents, doc);
1575
- return contents;
1576
- };
1577
- exports.de_DescribeGatewayCommand = de_DescribeGatewayCommand;
1578
- const de_DescribeGatewayCommandError = async (output, context) => {
1579
- const parsedOutput = {
1580
- ...output,
1581
- body: await parseErrorBody(output.body, context),
1582
- };
1583
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1584
- switch (errorCode) {
1585
- case "BadRequestException":
1586
- case "com.amazonaws.mediaconnect#BadRequestException":
1587
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1588
- case "ConflictException":
1589
- case "com.amazonaws.mediaconnect#ConflictException":
1590
- throw await de_ConflictExceptionRes(parsedOutput, context);
1591
- case "ForbiddenException":
1592
- case "com.amazonaws.mediaconnect#ForbiddenException":
1593
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1594
- case "InternalServerErrorException":
1595
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1596
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1597
- case "NotFoundException":
1598
- case "com.amazonaws.mediaconnect#NotFoundException":
1599
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1600
- case "ServiceUnavailableException":
1601
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1602
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1603
- case "TooManyRequestsException":
1604
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1605
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1606
- default:
1607
- const parsedBody = parsedOutput.body;
1608
- return throwDefaultError({
1609
- output,
1610
- parsedBody,
1611
- errorCode,
1612
- });
1613
- }
1614
- };
1615
- const de_DescribeGatewayInstanceCommand = async (output, context) => {
1616
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1617
- return de_DescribeGatewayInstanceCommandError(output, context);
1618
- }
1619
- const contents = (0, smithy_client_1.map)({
1620
- $metadata: deserializeMetadata(output),
1621
- });
1622
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1623
- const doc = (0, smithy_client_1.take)(data, {
1624
- GatewayInstance: [, (_) => de_GatewayInstance(_, context), `gatewayInstance`],
1625
- });
1626
- Object.assign(contents, doc);
1627
- return contents;
1628
- };
1629
- exports.de_DescribeGatewayInstanceCommand = de_DescribeGatewayInstanceCommand;
1630
- const de_DescribeGatewayInstanceCommandError = async (output, context) => {
1631
- const parsedOutput = {
1632
- ...output,
1633
- body: await parseErrorBody(output.body, context),
1634
- };
1635
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1636
- switch (errorCode) {
1637
- case "BadRequestException":
1638
- case "com.amazonaws.mediaconnect#BadRequestException":
1639
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1640
- case "ConflictException":
1641
- case "com.amazonaws.mediaconnect#ConflictException":
1642
- throw await de_ConflictExceptionRes(parsedOutput, context);
1643
- case "ForbiddenException":
1644
- case "com.amazonaws.mediaconnect#ForbiddenException":
1645
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1646
- case "InternalServerErrorException":
1647
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1648
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1649
- case "NotFoundException":
1650
- case "com.amazonaws.mediaconnect#NotFoundException":
1651
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1652
- case "ServiceUnavailableException":
1653
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1654
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1655
- case "TooManyRequestsException":
1656
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1657
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1658
- default:
1659
- const parsedBody = parsedOutput.body;
1660
- return throwDefaultError({
1661
- output,
1662
- parsedBody,
1663
- errorCode,
1664
- });
1665
- }
1666
- };
1667
- const de_DescribeOfferingCommand = async (output, context) => {
1668
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1669
- return de_DescribeOfferingCommandError(output, context);
1670
- }
1671
- const contents = (0, smithy_client_1.map)({
1672
- $metadata: deserializeMetadata(output),
1673
- });
1674
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1675
- const doc = (0, smithy_client_1.take)(data, {
1676
- Offering: [, (_) => de_Offering(_, context), `offering`],
1677
- });
1678
- Object.assign(contents, doc);
1679
- return contents;
1680
- };
1681
- exports.de_DescribeOfferingCommand = de_DescribeOfferingCommand;
1682
- const de_DescribeOfferingCommandError = async (output, context) => {
1683
- const parsedOutput = {
1684
- ...output,
1685
- body: await parseErrorBody(output.body, context),
1686
- };
1687
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1688
- switch (errorCode) {
1689
- case "BadRequestException":
1690
- case "com.amazonaws.mediaconnect#BadRequestException":
1691
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1692
- case "InternalServerErrorException":
1693
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1694
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1695
- case "NotFoundException":
1696
- case "com.amazonaws.mediaconnect#NotFoundException":
1697
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1698
- case "ServiceUnavailableException":
1699
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1700
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1701
- case "TooManyRequestsException":
1702
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1703
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1704
- default:
1705
- const parsedBody = parsedOutput.body;
1706
- return throwDefaultError({
1707
- output,
1708
- parsedBody,
1709
- errorCode,
1710
- });
1711
- }
1712
- };
1713
- const de_DescribeReservationCommand = async (output, context) => {
1714
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1715
- return de_DescribeReservationCommandError(output, context);
1716
- }
1717
- const contents = (0, smithy_client_1.map)({
1718
- $metadata: deserializeMetadata(output),
1719
- });
1720
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1721
- const doc = (0, smithy_client_1.take)(data, {
1722
- Reservation: [, (_) => de_Reservation(_, context), `reservation`],
1723
- });
1724
- Object.assign(contents, doc);
1725
- return contents;
1726
- };
1727
- exports.de_DescribeReservationCommand = de_DescribeReservationCommand;
1728
- const de_DescribeReservationCommandError = async (output, context) => {
1729
- const parsedOutput = {
1730
- ...output,
1731
- body: await parseErrorBody(output.body, context),
1732
- };
1733
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1734
- switch (errorCode) {
1735
- case "BadRequestException":
1736
- case "com.amazonaws.mediaconnect#BadRequestException":
1737
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1738
- case "InternalServerErrorException":
1739
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1740
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1741
- case "NotFoundException":
1742
- case "com.amazonaws.mediaconnect#NotFoundException":
1743
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1744
- case "ServiceUnavailableException":
1745
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1746
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1747
- case "TooManyRequestsException":
1748
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1749
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1750
- default:
1751
- const parsedBody = parsedOutput.body;
1752
- return throwDefaultError({
1753
- output,
1754
- parsedBody,
1755
- errorCode,
1756
- });
1757
- }
1758
- };
1759
- const de_GrantFlowEntitlementsCommand = async (output, context) => {
1760
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1761
- return de_GrantFlowEntitlementsCommandError(output, context);
1762
- }
1763
- const contents = (0, smithy_client_1.map)({
1764
- $metadata: deserializeMetadata(output),
1765
- });
1766
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1767
- const doc = (0, smithy_client_1.take)(data, {
1768
- Entitlements: [, (_) => de___listOfEntitlement(_, context), `entitlements`],
1769
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
1770
- });
1771
- Object.assign(contents, doc);
1772
- return contents;
1773
- };
1774
- exports.de_GrantFlowEntitlementsCommand = de_GrantFlowEntitlementsCommand;
1775
- const de_GrantFlowEntitlementsCommandError = async (output, context) => {
1776
- const parsedOutput = {
1777
- ...output,
1778
- body: await parseErrorBody(output.body, context),
1779
- };
1780
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1781
- switch (errorCode) {
1782
- case "BadRequestException":
1783
- case "com.amazonaws.mediaconnect#BadRequestException":
1784
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1785
- case "ForbiddenException":
1786
- case "com.amazonaws.mediaconnect#ForbiddenException":
1787
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1788
- case "GrantFlowEntitlements420Exception":
1789
- case "com.amazonaws.mediaconnect#GrantFlowEntitlements420Exception":
1790
- throw await de_GrantFlowEntitlements420ExceptionRes(parsedOutput, context);
1791
- case "InternalServerErrorException":
1792
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1793
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1794
- case "NotFoundException":
1795
- case "com.amazonaws.mediaconnect#NotFoundException":
1796
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1797
- case "ServiceUnavailableException":
1798
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1799
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1800
- case "TooManyRequestsException":
1801
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1802
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1803
- default:
1804
- const parsedBody = parsedOutput.body;
1805
- return throwDefaultError({
1806
- output,
1807
- parsedBody,
1808
- errorCode,
1809
- });
1810
- }
1811
- };
1812
- const de_ListBridgesCommand = async (output, context) => {
1813
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1814
- return de_ListBridgesCommandError(output, context);
1815
- }
1816
- const contents = (0, smithy_client_1.map)({
1817
- $metadata: deserializeMetadata(output),
1818
- });
1819
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1820
- const doc = (0, smithy_client_1.take)(data, {
1821
- Bridges: [, (_) => de___listOfListedBridge(_, context), `bridges`],
1822
- NextToken: [, smithy_client_1.expectString, `nextToken`],
1823
- });
1824
- Object.assign(contents, doc);
1825
- return contents;
1826
- };
1827
- exports.de_ListBridgesCommand = de_ListBridgesCommand;
1828
- const de_ListBridgesCommandError = async (output, context) => {
1829
- const parsedOutput = {
1830
- ...output,
1831
- body: await parseErrorBody(output.body, context),
1832
- };
1833
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1834
- switch (errorCode) {
1835
- case "BadRequestException":
1836
- case "com.amazonaws.mediaconnect#BadRequestException":
1837
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1838
- case "ConflictException":
1839
- case "com.amazonaws.mediaconnect#ConflictException":
1840
- throw await de_ConflictExceptionRes(parsedOutput, context);
1841
- case "InternalServerErrorException":
1842
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1843
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1844
- case "ServiceUnavailableException":
1845
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1846
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1847
- case "TooManyRequestsException":
1848
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1849
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1850
- default:
1851
- const parsedBody = parsedOutput.body;
1852
- return throwDefaultError({
1853
- output,
1854
- parsedBody,
1855
- errorCode,
1856
- });
1857
- }
1858
- };
1859
- const de_ListEntitlementsCommand = async (output, context) => {
1860
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1861
- return de_ListEntitlementsCommandError(output, context);
1862
- }
1863
- const contents = (0, smithy_client_1.map)({
1864
- $metadata: deserializeMetadata(output),
1865
- });
1866
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1867
- const doc = (0, smithy_client_1.take)(data, {
1868
- Entitlements: [, (_) => de___listOfListedEntitlement(_, context), `entitlements`],
1869
- NextToken: [, smithy_client_1.expectString, `nextToken`],
1870
- });
1871
- Object.assign(contents, doc);
1872
- return contents;
1873
- };
1874
- exports.de_ListEntitlementsCommand = de_ListEntitlementsCommand;
1875
- const de_ListEntitlementsCommandError = async (output, context) => {
1876
- const parsedOutput = {
1877
- ...output,
1878
- body: await parseErrorBody(output.body, context),
1879
- };
1880
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1881
- switch (errorCode) {
1882
- case "BadRequestException":
1883
- case "com.amazonaws.mediaconnect#BadRequestException":
1884
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1885
- case "InternalServerErrorException":
1886
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1887
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1888
- case "ServiceUnavailableException":
1889
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1890
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1891
- case "TooManyRequestsException":
1892
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1893
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1894
- default:
1895
- const parsedBody = parsedOutput.body;
1896
- return throwDefaultError({
1897
- output,
1898
- parsedBody,
1899
- errorCode,
1900
- });
1901
- }
1902
- };
1903
- const de_ListFlowsCommand = async (output, context) => {
1904
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1905
- return de_ListFlowsCommandError(output, context);
1906
- }
1907
- const contents = (0, smithy_client_1.map)({
1908
- $metadata: deserializeMetadata(output),
1909
- });
1910
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1911
- const doc = (0, smithy_client_1.take)(data, {
1912
- Flows: [, (_) => de___listOfListedFlow(_, context), `flows`],
1913
- NextToken: [, smithy_client_1.expectString, `nextToken`],
1914
- });
1915
- Object.assign(contents, doc);
1916
- return contents;
1917
- };
1918
- exports.de_ListFlowsCommand = de_ListFlowsCommand;
1919
- const de_ListFlowsCommandError = async (output, context) => {
1920
- const parsedOutput = {
1921
- ...output,
1922
- body: await parseErrorBody(output.body, context),
1923
- };
1924
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1925
- switch (errorCode) {
1926
- case "BadRequestException":
1927
- case "com.amazonaws.mediaconnect#BadRequestException":
1928
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1929
- case "InternalServerErrorException":
1930
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1931
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1932
- case "ServiceUnavailableException":
1933
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1934
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1935
- case "TooManyRequestsException":
1936
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1937
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1938
- default:
1939
- const parsedBody = parsedOutput.body;
1940
- return throwDefaultError({
1941
- output,
1942
- parsedBody,
1943
- errorCode,
1944
- });
1945
- }
1946
- };
1947
- const de_ListGatewayInstancesCommand = async (output, context) => {
1948
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1949
- return de_ListGatewayInstancesCommandError(output, context);
1950
- }
1951
- const contents = (0, smithy_client_1.map)({
1952
- $metadata: deserializeMetadata(output),
1953
- });
1954
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1955
- const doc = (0, smithy_client_1.take)(data, {
1956
- Instances: [, (_) => de___listOfListedGatewayInstance(_, context), `instances`],
1957
- NextToken: [, smithy_client_1.expectString, `nextToken`],
1958
- });
1959
- Object.assign(contents, doc);
1960
- return contents;
1961
- };
1962
- exports.de_ListGatewayInstancesCommand = de_ListGatewayInstancesCommand;
1963
- const de_ListGatewayInstancesCommandError = async (output, context) => {
1964
- const parsedOutput = {
1965
- ...output,
1966
- body: await parseErrorBody(output.body, context),
1967
- };
1968
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1969
- switch (errorCode) {
1970
- case "BadRequestException":
1971
- case "com.amazonaws.mediaconnect#BadRequestException":
1972
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1973
- case "ConflictException":
1974
- case "com.amazonaws.mediaconnect#ConflictException":
1975
- throw await de_ConflictExceptionRes(parsedOutput, context);
1976
- case "InternalServerErrorException":
1977
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
1978
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1979
- case "ServiceUnavailableException":
1980
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1981
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1982
- case "TooManyRequestsException":
1983
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
1984
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1985
- default:
1986
- const parsedBody = parsedOutput.body;
1987
- return throwDefaultError({
1988
- output,
1989
- parsedBody,
1990
- errorCode,
1991
- });
1992
- }
1993
- };
1994
- const de_ListGatewaysCommand = async (output, context) => {
1995
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1996
- return de_ListGatewaysCommandError(output, context);
1997
- }
1998
- const contents = (0, smithy_client_1.map)({
1999
- $metadata: deserializeMetadata(output),
2000
- });
2001
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2002
- const doc = (0, smithy_client_1.take)(data, {
2003
- Gateways: [, (_) => de___listOfListedGateway(_, context), `gateways`],
2004
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2005
- });
2006
- Object.assign(contents, doc);
2007
- return contents;
2008
- };
2009
- exports.de_ListGatewaysCommand = de_ListGatewaysCommand;
2010
- const de_ListGatewaysCommandError = async (output, context) => {
2011
- const parsedOutput = {
2012
- ...output,
2013
- body: await parseErrorBody(output.body, context),
2014
- };
2015
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2016
- switch (errorCode) {
2017
- case "BadRequestException":
2018
- case "com.amazonaws.mediaconnect#BadRequestException":
2019
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2020
- case "ConflictException":
2021
- case "com.amazonaws.mediaconnect#ConflictException":
2022
- throw await de_ConflictExceptionRes(parsedOutput, context);
2023
- case "InternalServerErrorException":
2024
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2025
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2026
- case "ServiceUnavailableException":
2027
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2028
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2029
- case "TooManyRequestsException":
2030
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2031
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2032
- default:
2033
- const parsedBody = parsedOutput.body;
2034
- return throwDefaultError({
2035
- output,
2036
- parsedBody,
2037
- errorCode,
2038
- });
2039
- }
2040
- };
2041
- const de_ListOfferingsCommand = async (output, context) => {
2042
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2043
- return de_ListOfferingsCommandError(output, context);
2044
- }
2045
- const contents = (0, smithy_client_1.map)({
2046
- $metadata: deserializeMetadata(output),
2047
- });
2048
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2049
- const doc = (0, smithy_client_1.take)(data, {
2050
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2051
- Offerings: [, (_) => de___listOfOffering(_, context), `offerings`],
2052
- });
2053
- Object.assign(contents, doc);
2054
- return contents;
2055
- };
2056
- exports.de_ListOfferingsCommand = de_ListOfferingsCommand;
2057
- const de_ListOfferingsCommandError = async (output, context) => {
2058
- const parsedOutput = {
2059
- ...output,
2060
- body: await parseErrorBody(output.body, context),
2061
- };
2062
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2063
- switch (errorCode) {
2064
- case "BadRequestException":
2065
- case "com.amazonaws.mediaconnect#BadRequestException":
2066
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2067
- case "InternalServerErrorException":
2068
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2069
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2070
- case "ServiceUnavailableException":
2071
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2072
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2073
- case "TooManyRequestsException":
2074
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2075
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2076
- default:
2077
- const parsedBody = parsedOutput.body;
2078
- return throwDefaultError({
2079
- output,
2080
- parsedBody,
2081
- errorCode,
2082
- });
2083
- }
2084
- };
2085
- const de_ListReservationsCommand = async (output, context) => {
2086
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2087
- return de_ListReservationsCommandError(output, context);
2088
- }
2089
- const contents = (0, smithy_client_1.map)({
2090
- $metadata: deserializeMetadata(output),
2091
- });
2092
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2093
- const doc = (0, smithy_client_1.take)(data, {
2094
- NextToken: [, smithy_client_1.expectString, `nextToken`],
2095
- Reservations: [, (_) => de___listOfReservation(_, context), `reservations`],
2096
- });
2097
- Object.assign(contents, doc);
2098
- return contents;
2099
- };
2100
- exports.de_ListReservationsCommand = de_ListReservationsCommand;
2101
- const de_ListReservationsCommandError = async (output, context) => {
2102
- const parsedOutput = {
2103
- ...output,
2104
- body: await parseErrorBody(output.body, context),
2105
- };
2106
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2107
- switch (errorCode) {
2108
- case "BadRequestException":
2109
- case "com.amazonaws.mediaconnect#BadRequestException":
2110
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2111
- case "InternalServerErrorException":
2112
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2113
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2114
- case "ServiceUnavailableException":
2115
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2116
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2117
- case "TooManyRequestsException":
2118
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2119
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2120
- default:
2121
- const parsedBody = parsedOutput.body;
2122
- return throwDefaultError({
2123
- output,
2124
- parsedBody,
2125
- errorCode,
2126
- });
2127
- }
2128
- };
2129
- const de_ListTagsForResourceCommand = async (output, context) => {
2130
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2131
- return de_ListTagsForResourceCommandError(output, context);
2132
- }
2133
- const contents = (0, smithy_client_1.map)({
2134
- $metadata: deserializeMetadata(output),
2135
- });
2136
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2137
- const doc = (0, smithy_client_1.take)(data, {
2138
- Tags: [, smithy_client_1._json, `tags`],
2139
- });
2140
- Object.assign(contents, doc);
2141
- return contents;
2142
- };
2143
- exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2144
- const de_ListTagsForResourceCommandError = async (output, context) => {
2145
- const parsedOutput = {
2146
- ...output,
2147
- body: await parseErrorBody(output.body, context),
2148
- };
2149
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2150
- switch (errorCode) {
2151
- case "BadRequestException":
2152
- case "com.amazonaws.mediaconnect#BadRequestException":
2153
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2154
- case "InternalServerErrorException":
2155
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2156
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2157
- case "NotFoundException":
2158
- case "com.amazonaws.mediaconnect#NotFoundException":
2159
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2160
- default:
2161
- const parsedBody = parsedOutput.body;
2162
- return throwDefaultError({
2163
- output,
2164
- parsedBody,
2165
- errorCode,
2166
- });
2167
- }
2168
- };
2169
- const de_PurchaseOfferingCommand = async (output, context) => {
2170
- if (output.statusCode !== 201 && output.statusCode >= 300) {
2171
- return de_PurchaseOfferingCommandError(output, context);
2172
- }
2173
- const contents = (0, smithy_client_1.map)({
2174
- $metadata: deserializeMetadata(output),
2175
- });
2176
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2177
- const doc = (0, smithy_client_1.take)(data, {
2178
- Reservation: [, (_) => de_Reservation(_, context), `reservation`],
2179
- });
2180
- Object.assign(contents, doc);
2181
- return contents;
2182
- };
2183
- exports.de_PurchaseOfferingCommand = de_PurchaseOfferingCommand;
2184
- const de_PurchaseOfferingCommandError = async (output, context) => {
2185
- const parsedOutput = {
2186
- ...output,
2187
- body: await parseErrorBody(output.body, context),
2188
- };
2189
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2190
- switch (errorCode) {
2191
- case "BadRequestException":
2192
- case "com.amazonaws.mediaconnect#BadRequestException":
2193
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2194
- case "ForbiddenException":
2195
- case "com.amazonaws.mediaconnect#ForbiddenException":
2196
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2197
- case "InternalServerErrorException":
2198
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2199
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2200
- case "NotFoundException":
2201
- case "com.amazonaws.mediaconnect#NotFoundException":
2202
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2203
- case "ServiceUnavailableException":
2204
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2205
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2206
- case "TooManyRequestsException":
2207
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2208
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2209
- default:
2210
- const parsedBody = parsedOutput.body;
2211
- return throwDefaultError({
2212
- output,
2213
- parsedBody,
2214
- errorCode,
2215
- });
2216
- }
2217
- };
2218
- const de_RemoveBridgeOutputCommand = async (output, context) => {
2219
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2220
- return de_RemoveBridgeOutputCommandError(output, context);
2221
- }
2222
- const contents = (0, smithy_client_1.map)({
2223
- $metadata: deserializeMetadata(output),
2224
- });
2225
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2226
- const doc = (0, smithy_client_1.take)(data, {
2227
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
2228
- OutputName: [, smithy_client_1.expectString, `outputName`],
2229
- });
2230
- Object.assign(contents, doc);
2231
- return contents;
2232
- };
2233
- exports.de_RemoveBridgeOutputCommand = de_RemoveBridgeOutputCommand;
2234
- const de_RemoveBridgeOutputCommandError = async (output, context) => {
2235
- const parsedOutput = {
2236
- ...output,
2237
- body: await parseErrorBody(output.body, context),
2238
- };
2239
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2240
- switch (errorCode) {
2241
- case "BadRequestException":
2242
- case "com.amazonaws.mediaconnect#BadRequestException":
2243
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2244
- case "ConflictException":
2245
- case "com.amazonaws.mediaconnect#ConflictException":
2246
- throw await de_ConflictExceptionRes(parsedOutput, context);
2247
- case "ForbiddenException":
2248
- case "com.amazonaws.mediaconnect#ForbiddenException":
2249
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2250
- case "InternalServerErrorException":
2251
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2252
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2253
- case "NotFoundException":
2254
- case "com.amazonaws.mediaconnect#NotFoundException":
2255
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2256
- case "ServiceUnavailableException":
2257
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2258
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2259
- case "TooManyRequestsException":
2260
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2261
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2262
- default:
2263
- const parsedBody = parsedOutput.body;
2264
- return throwDefaultError({
2265
- output,
2266
- parsedBody,
2267
- errorCode,
2268
- });
2269
- }
2270
- };
2271
- const de_RemoveBridgeSourceCommand = async (output, context) => {
2272
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2273
- return de_RemoveBridgeSourceCommandError(output, context);
2274
- }
2275
- const contents = (0, smithy_client_1.map)({
2276
- $metadata: deserializeMetadata(output),
2277
- });
2278
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2279
- const doc = (0, smithy_client_1.take)(data, {
2280
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
2281
- SourceName: [, smithy_client_1.expectString, `sourceName`],
2282
- });
2283
- Object.assign(contents, doc);
2284
- return contents;
2285
- };
2286
- exports.de_RemoveBridgeSourceCommand = de_RemoveBridgeSourceCommand;
2287
- const de_RemoveBridgeSourceCommandError = async (output, context) => {
2288
- const parsedOutput = {
2289
- ...output,
2290
- body: await parseErrorBody(output.body, context),
2291
- };
2292
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2293
- switch (errorCode) {
2294
- case "BadRequestException":
2295
- case "com.amazonaws.mediaconnect#BadRequestException":
2296
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2297
- case "ConflictException":
2298
- case "com.amazonaws.mediaconnect#ConflictException":
2299
- throw await de_ConflictExceptionRes(parsedOutput, context);
2300
- case "ForbiddenException":
2301
- case "com.amazonaws.mediaconnect#ForbiddenException":
2302
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2303
- case "InternalServerErrorException":
2304
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2305
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2306
- case "NotFoundException":
2307
- case "com.amazonaws.mediaconnect#NotFoundException":
2308
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2309
- case "ServiceUnavailableException":
2310
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2311
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2312
- case "TooManyRequestsException":
2313
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2314
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2315
- default:
2316
- const parsedBody = parsedOutput.body;
2317
- return throwDefaultError({
2318
- output,
2319
- parsedBody,
2320
- errorCode,
2321
- });
2322
- }
2323
- };
2324
- const de_RemoveFlowMediaStreamCommand = async (output, context) => {
2325
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2326
- return de_RemoveFlowMediaStreamCommandError(output, context);
2327
- }
2328
- const contents = (0, smithy_client_1.map)({
2329
- $metadata: deserializeMetadata(output),
2330
- });
2331
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2332
- const doc = (0, smithy_client_1.take)(data, {
2333
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
2334
- MediaStreamName: [, smithy_client_1.expectString, `mediaStreamName`],
2335
- });
2336
- Object.assign(contents, doc);
2337
- return contents;
2338
- };
2339
- exports.de_RemoveFlowMediaStreamCommand = de_RemoveFlowMediaStreamCommand;
2340
- const de_RemoveFlowMediaStreamCommandError = async (output, context) => {
2341
- const parsedOutput = {
2342
- ...output,
2343
- body: await parseErrorBody(output.body, context),
2344
- };
2345
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2346
- switch (errorCode) {
2347
- case "BadRequestException":
2348
- case "com.amazonaws.mediaconnect#BadRequestException":
2349
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2350
- case "ForbiddenException":
2351
- case "com.amazonaws.mediaconnect#ForbiddenException":
2352
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2353
- case "InternalServerErrorException":
2354
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2355
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2356
- case "NotFoundException":
2357
- case "com.amazonaws.mediaconnect#NotFoundException":
2358
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2359
- case "ServiceUnavailableException":
2360
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2361
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2362
- case "TooManyRequestsException":
2363
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2364
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2365
- default:
2366
- const parsedBody = parsedOutput.body;
2367
- return throwDefaultError({
2368
- output,
2369
- parsedBody,
2370
- errorCode,
2371
- });
2372
- }
2373
- };
2374
- const de_RemoveFlowOutputCommand = async (output, context) => {
2375
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2376
- return de_RemoveFlowOutputCommandError(output, context);
2377
- }
2378
- const contents = (0, smithy_client_1.map)({
2379
- $metadata: deserializeMetadata(output),
2380
- });
2381
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2382
- const doc = (0, smithy_client_1.take)(data, {
2383
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
2384
- OutputArn: [, smithy_client_1.expectString, `outputArn`],
2385
- });
2386
- Object.assign(contents, doc);
2387
- return contents;
2388
- };
2389
- exports.de_RemoveFlowOutputCommand = de_RemoveFlowOutputCommand;
2390
- const de_RemoveFlowOutputCommandError = async (output, context) => {
2391
- const parsedOutput = {
2392
- ...output,
2393
- body: await parseErrorBody(output.body, context),
2394
- };
2395
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2396
- switch (errorCode) {
2397
- case "BadRequestException":
2398
- case "com.amazonaws.mediaconnect#BadRequestException":
2399
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2400
- case "ForbiddenException":
2401
- case "com.amazonaws.mediaconnect#ForbiddenException":
2402
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2403
- case "InternalServerErrorException":
2404
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2405
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2406
- case "NotFoundException":
2407
- case "com.amazonaws.mediaconnect#NotFoundException":
2408
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2409
- case "ServiceUnavailableException":
2410
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2411
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2412
- case "TooManyRequestsException":
2413
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2414
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2415
- default:
2416
- const parsedBody = parsedOutput.body;
2417
- return throwDefaultError({
2418
- output,
2419
- parsedBody,
2420
- errorCode,
2421
- });
2422
- }
2423
- };
2424
- const de_RemoveFlowSourceCommand = async (output, context) => {
2425
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2426
- return de_RemoveFlowSourceCommandError(output, context);
2427
- }
2428
- const contents = (0, smithy_client_1.map)({
2429
- $metadata: deserializeMetadata(output),
2430
- });
2431
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2432
- const doc = (0, smithy_client_1.take)(data, {
2433
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
2434
- SourceArn: [, smithy_client_1.expectString, `sourceArn`],
2435
- });
2436
- Object.assign(contents, doc);
2437
- return contents;
2438
- };
2439
- exports.de_RemoveFlowSourceCommand = de_RemoveFlowSourceCommand;
2440
- const de_RemoveFlowSourceCommandError = async (output, context) => {
2441
- const parsedOutput = {
2442
- ...output,
2443
- body: await parseErrorBody(output.body, context),
2444
- };
2445
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2446
- switch (errorCode) {
2447
- case "BadRequestException":
2448
- case "com.amazonaws.mediaconnect#BadRequestException":
2449
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2450
- case "ForbiddenException":
2451
- case "com.amazonaws.mediaconnect#ForbiddenException":
2452
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2453
- case "InternalServerErrorException":
2454
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2455
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2456
- case "NotFoundException":
2457
- case "com.amazonaws.mediaconnect#NotFoundException":
2458
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2459
- case "ServiceUnavailableException":
2460
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2461
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2462
- case "TooManyRequestsException":
2463
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2464
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2465
- default:
2466
- const parsedBody = parsedOutput.body;
2467
- return throwDefaultError({
2468
- output,
2469
- parsedBody,
2470
- errorCode,
2471
- });
2472
- }
2473
- };
2474
- const de_RemoveFlowVpcInterfaceCommand = async (output, context) => {
2475
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2476
- return de_RemoveFlowVpcInterfaceCommandError(output, context);
2477
- }
2478
- const contents = (0, smithy_client_1.map)({
2479
- $metadata: deserializeMetadata(output),
2480
- });
2481
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2482
- const doc = (0, smithy_client_1.take)(data, {
2483
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
2484
- NonDeletedNetworkInterfaceIds: [, smithy_client_1._json, `nonDeletedNetworkInterfaceIds`],
2485
- VpcInterfaceName: [, smithy_client_1.expectString, `vpcInterfaceName`],
2486
- });
2487
- Object.assign(contents, doc);
2488
- return contents;
2489
- };
2490
- exports.de_RemoveFlowVpcInterfaceCommand = de_RemoveFlowVpcInterfaceCommand;
2491
- const de_RemoveFlowVpcInterfaceCommandError = async (output, context) => {
2492
- const parsedOutput = {
2493
- ...output,
2494
- body: await parseErrorBody(output.body, context),
2495
- };
2496
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2497
- switch (errorCode) {
2498
- case "BadRequestException":
2499
- case "com.amazonaws.mediaconnect#BadRequestException":
2500
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2501
- case "ForbiddenException":
2502
- case "com.amazonaws.mediaconnect#ForbiddenException":
2503
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2504
- case "InternalServerErrorException":
2505
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2506
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2507
- case "NotFoundException":
2508
- case "com.amazonaws.mediaconnect#NotFoundException":
2509
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2510
- case "ServiceUnavailableException":
2511
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2512
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2513
- case "TooManyRequestsException":
2514
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2515
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2516
- default:
2517
- const parsedBody = parsedOutput.body;
2518
- return throwDefaultError({
2519
- output,
2520
- parsedBody,
2521
- errorCode,
2522
- });
2523
- }
2524
- };
2525
- const de_RevokeFlowEntitlementCommand = async (output, context) => {
2526
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2527
- return de_RevokeFlowEntitlementCommandError(output, context);
2528
- }
2529
- const contents = (0, smithy_client_1.map)({
2530
- $metadata: deserializeMetadata(output),
2531
- });
2532
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2533
- const doc = (0, smithy_client_1.take)(data, {
2534
- EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
2535
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
2536
- });
2537
- Object.assign(contents, doc);
2538
- return contents;
2539
- };
2540
- exports.de_RevokeFlowEntitlementCommand = de_RevokeFlowEntitlementCommand;
2541
- const de_RevokeFlowEntitlementCommandError = async (output, context) => {
2542
- const parsedOutput = {
2543
- ...output,
2544
- body: await parseErrorBody(output.body, context),
2545
- };
2546
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2547
- switch (errorCode) {
2548
- case "BadRequestException":
2549
- case "com.amazonaws.mediaconnect#BadRequestException":
2550
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2551
- case "ForbiddenException":
2552
- case "com.amazonaws.mediaconnect#ForbiddenException":
2553
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2554
- case "InternalServerErrorException":
2555
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2556
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2557
- case "NotFoundException":
2558
- case "com.amazonaws.mediaconnect#NotFoundException":
2559
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2560
- case "ServiceUnavailableException":
2561
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2562
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2563
- case "TooManyRequestsException":
2564
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2565
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2566
- default:
2567
- const parsedBody = parsedOutput.body;
2568
- return throwDefaultError({
2569
- output,
2570
- parsedBody,
2571
- errorCode,
2572
- });
2573
- }
2574
- };
2575
- const de_StartFlowCommand = async (output, context) => {
2576
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2577
- return de_StartFlowCommandError(output, context);
2578
- }
2579
- const contents = (0, smithy_client_1.map)({
2580
- $metadata: deserializeMetadata(output),
2581
- });
2582
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2583
- const doc = (0, smithy_client_1.take)(data, {
2584
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
2585
- Status: [, smithy_client_1.expectString, `status`],
2586
- });
2587
- Object.assign(contents, doc);
2588
- return contents;
2589
- };
2590
- exports.de_StartFlowCommand = de_StartFlowCommand;
2591
- const de_StartFlowCommandError = async (output, context) => {
2592
- const parsedOutput = {
2593
- ...output,
2594
- body: await parseErrorBody(output.body, context),
2595
- };
2596
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2597
- switch (errorCode) {
2598
- case "BadRequestException":
2599
- case "com.amazonaws.mediaconnect#BadRequestException":
2600
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2601
- case "ForbiddenException":
2602
- case "com.amazonaws.mediaconnect#ForbiddenException":
2603
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2604
- case "InternalServerErrorException":
2605
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2606
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2607
- case "NotFoundException":
2608
- case "com.amazonaws.mediaconnect#NotFoundException":
2609
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2610
- case "ServiceUnavailableException":
2611
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2612
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2613
- case "TooManyRequestsException":
2614
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2615
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2616
- default:
2617
- const parsedBody = parsedOutput.body;
2618
- return throwDefaultError({
2619
- output,
2620
- parsedBody,
2621
- errorCode,
2622
- });
2623
- }
2624
- };
2625
- const de_StopFlowCommand = async (output, context) => {
2626
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2627
- return de_StopFlowCommandError(output, context);
2628
- }
2629
- const contents = (0, smithy_client_1.map)({
2630
- $metadata: deserializeMetadata(output),
2631
- });
2632
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2633
- const doc = (0, smithy_client_1.take)(data, {
2634
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
2635
- Status: [, smithy_client_1.expectString, `status`],
2636
- });
2637
- Object.assign(contents, doc);
2638
- return contents;
2639
- };
2640
- exports.de_StopFlowCommand = de_StopFlowCommand;
2641
- const de_StopFlowCommandError = async (output, context) => {
2642
- const parsedOutput = {
2643
- ...output,
2644
- body: await parseErrorBody(output.body, context),
2645
- };
2646
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2647
- switch (errorCode) {
2648
- case "BadRequestException":
2649
- case "com.amazonaws.mediaconnect#BadRequestException":
2650
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2651
- case "ForbiddenException":
2652
- case "com.amazonaws.mediaconnect#ForbiddenException":
2653
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2654
- case "InternalServerErrorException":
2655
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2656
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2657
- case "NotFoundException":
2658
- case "com.amazonaws.mediaconnect#NotFoundException":
2659
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2660
- case "ServiceUnavailableException":
2661
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2662
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2663
- case "TooManyRequestsException":
2664
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2665
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2666
- default:
2667
- const parsedBody = parsedOutput.body;
2668
- return throwDefaultError({
2669
- output,
2670
- parsedBody,
2671
- errorCode,
2672
- });
2673
- }
2674
- };
2675
- const de_TagResourceCommand = async (output, context) => {
2676
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2677
- return de_TagResourceCommandError(output, context);
2678
- }
2679
- const contents = (0, smithy_client_1.map)({
2680
- $metadata: deserializeMetadata(output),
2681
- });
2682
- await (0, smithy_client_1.collectBody)(output.body, context);
2683
- return contents;
2684
- };
2685
- exports.de_TagResourceCommand = de_TagResourceCommand;
2686
- const de_TagResourceCommandError = async (output, context) => {
2687
- const parsedOutput = {
2688
- ...output,
2689
- body: await parseErrorBody(output.body, context),
2690
- };
2691
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2692
- switch (errorCode) {
2693
- case "BadRequestException":
2694
- case "com.amazonaws.mediaconnect#BadRequestException":
2695
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2696
- case "InternalServerErrorException":
2697
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2698
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2699
- case "NotFoundException":
2700
- case "com.amazonaws.mediaconnect#NotFoundException":
2701
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2702
- default:
2703
- const parsedBody = parsedOutput.body;
2704
- return throwDefaultError({
2705
- output,
2706
- parsedBody,
2707
- errorCode,
2708
- });
2709
- }
2710
- };
2711
- const de_UntagResourceCommand = async (output, context) => {
2712
- if (output.statusCode !== 204 && output.statusCode >= 300) {
2713
- return de_UntagResourceCommandError(output, context);
2714
- }
2715
- const contents = (0, smithy_client_1.map)({
2716
- $metadata: deserializeMetadata(output),
2717
- });
2718
- await (0, smithy_client_1.collectBody)(output.body, context);
2719
- return contents;
2720
- };
2721
- exports.de_UntagResourceCommand = de_UntagResourceCommand;
2722
- const de_UntagResourceCommandError = async (output, context) => {
2723
- const parsedOutput = {
2724
- ...output,
2725
- body: await parseErrorBody(output.body, context),
2726
- };
2727
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2728
- switch (errorCode) {
2729
- case "BadRequestException":
2730
- case "com.amazonaws.mediaconnect#BadRequestException":
2731
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2732
- case "InternalServerErrorException":
2733
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2734
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2735
- case "NotFoundException":
2736
- case "com.amazonaws.mediaconnect#NotFoundException":
2737
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2738
- default:
2739
- const parsedBody = parsedOutput.body;
2740
- return throwDefaultError({
2741
- output,
2742
- parsedBody,
2743
- errorCode,
2744
- });
2745
- }
2746
- };
2747
- const de_UpdateBridgeCommand = async (output, context) => {
2748
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2749
- return de_UpdateBridgeCommandError(output, context);
2750
- }
2751
- const contents = (0, smithy_client_1.map)({
2752
- $metadata: deserializeMetadata(output),
2753
- });
2754
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2755
- const doc = (0, smithy_client_1.take)(data, {
2756
- Bridge: [, (_) => de_Bridge(_, context), `bridge`],
2757
- });
2758
- Object.assign(contents, doc);
2759
- return contents;
2760
- };
2761
- exports.de_UpdateBridgeCommand = de_UpdateBridgeCommand;
2762
- const de_UpdateBridgeCommandError = async (output, context) => {
2763
- const parsedOutput = {
2764
- ...output,
2765
- body: await parseErrorBody(output.body, context),
2766
- };
2767
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2768
- switch (errorCode) {
2769
- case "BadRequestException":
2770
- case "com.amazonaws.mediaconnect#BadRequestException":
2771
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2772
- case "ConflictException":
2773
- case "com.amazonaws.mediaconnect#ConflictException":
2774
- throw await de_ConflictExceptionRes(parsedOutput, context);
2775
- case "ForbiddenException":
2776
- case "com.amazonaws.mediaconnect#ForbiddenException":
2777
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2778
- case "InternalServerErrorException":
2779
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2780
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2781
- case "NotFoundException":
2782
- case "com.amazonaws.mediaconnect#NotFoundException":
2783
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2784
- case "ServiceUnavailableException":
2785
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2786
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2787
- case "TooManyRequestsException":
2788
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2789
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2790
- default:
2791
- const parsedBody = parsedOutput.body;
2792
- return throwDefaultError({
2793
- output,
2794
- parsedBody,
2795
- errorCode,
2796
- });
2797
- }
2798
- };
2799
- const de_UpdateBridgeOutputCommand = async (output, context) => {
2800
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2801
- return de_UpdateBridgeOutputCommandError(output, context);
2802
- }
2803
- const contents = (0, smithy_client_1.map)({
2804
- $metadata: deserializeMetadata(output),
2805
- });
2806
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2807
- const doc = (0, smithy_client_1.take)(data, {
2808
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
2809
- Output: [, (_) => de_BridgeOutput(_, context), `output`],
2810
- });
2811
- Object.assign(contents, doc);
2812
- return contents;
2813
- };
2814
- exports.de_UpdateBridgeOutputCommand = de_UpdateBridgeOutputCommand;
2815
- const de_UpdateBridgeOutputCommandError = async (output, context) => {
2816
- const parsedOutput = {
2817
- ...output,
2818
- body: await parseErrorBody(output.body, context),
2819
- };
2820
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2821
- switch (errorCode) {
2822
- case "BadRequestException":
2823
- case "com.amazonaws.mediaconnect#BadRequestException":
2824
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2825
- case "ConflictException":
2826
- case "com.amazonaws.mediaconnect#ConflictException":
2827
- throw await de_ConflictExceptionRes(parsedOutput, context);
2828
- case "ForbiddenException":
2829
- case "com.amazonaws.mediaconnect#ForbiddenException":
2830
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2831
- case "InternalServerErrorException":
2832
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2833
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2834
- case "NotFoundException":
2835
- case "com.amazonaws.mediaconnect#NotFoundException":
2836
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2837
- case "ServiceUnavailableException":
2838
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2839
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2840
- case "TooManyRequestsException":
2841
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2842
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2843
- default:
2844
- const parsedBody = parsedOutput.body;
2845
- return throwDefaultError({
2846
- output,
2847
- parsedBody,
2848
- errorCode,
2849
- });
2850
- }
2851
- };
2852
- const de_UpdateBridgeSourceCommand = async (output, context) => {
2853
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2854
- return de_UpdateBridgeSourceCommandError(output, context);
2855
- }
2856
- const contents = (0, smithy_client_1.map)({
2857
- $metadata: deserializeMetadata(output),
2858
- });
2859
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2860
- const doc = (0, smithy_client_1.take)(data, {
2861
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
2862
- Source: [, (_) => de_BridgeSource(_, context), `source`],
2863
- });
2864
- Object.assign(contents, doc);
2865
- return contents;
2866
- };
2867
- exports.de_UpdateBridgeSourceCommand = de_UpdateBridgeSourceCommand;
2868
- const de_UpdateBridgeSourceCommandError = async (output, context) => {
2869
- const parsedOutput = {
2870
- ...output,
2871
- body: await parseErrorBody(output.body, context),
2872
- };
2873
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2874
- switch (errorCode) {
2875
- case "BadRequestException":
2876
- case "com.amazonaws.mediaconnect#BadRequestException":
2877
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2878
- case "ConflictException":
2879
- case "com.amazonaws.mediaconnect#ConflictException":
2880
- throw await de_ConflictExceptionRes(parsedOutput, context);
2881
- case "ForbiddenException":
2882
- case "com.amazonaws.mediaconnect#ForbiddenException":
2883
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2884
- case "InternalServerErrorException":
2885
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2886
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2887
- case "NotFoundException":
2888
- case "com.amazonaws.mediaconnect#NotFoundException":
2889
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2890
- case "ServiceUnavailableException":
2891
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2892
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2893
- case "TooManyRequestsException":
2894
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2895
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2896
- default:
2897
- const parsedBody = parsedOutput.body;
2898
- return throwDefaultError({
2899
- output,
2900
- parsedBody,
2901
- errorCode,
2902
- });
2903
- }
2904
- };
2905
- const de_UpdateBridgeStateCommand = async (output, context) => {
2906
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2907
- return de_UpdateBridgeStateCommandError(output, context);
2908
- }
2909
- const contents = (0, smithy_client_1.map)({
2910
- $metadata: deserializeMetadata(output),
2911
- });
2912
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2913
- const doc = (0, smithy_client_1.take)(data, {
2914
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
2915
- DesiredState: [, smithy_client_1.expectString, `desiredState`],
2916
- });
2917
- Object.assign(contents, doc);
2918
- return contents;
2919
- };
2920
- exports.de_UpdateBridgeStateCommand = de_UpdateBridgeStateCommand;
2921
- const de_UpdateBridgeStateCommandError = async (output, context) => {
2922
- const parsedOutput = {
2923
- ...output,
2924
- body: await parseErrorBody(output.body, context),
2925
- };
2926
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2927
- switch (errorCode) {
2928
- case "BadRequestException":
2929
- case "com.amazonaws.mediaconnect#BadRequestException":
2930
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2931
- case "ConflictException":
2932
- case "com.amazonaws.mediaconnect#ConflictException":
2933
- throw await de_ConflictExceptionRes(parsedOutput, context);
2934
- case "ForbiddenException":
2935
- case "com.amazonaws.mediaconnect#ForbiddenException":
2936
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2937
- case "InternalServerErrorException":
2938
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2939
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2940
- case "NotFoundException":
2941
- case "com.amazonaws.mediaconnect#NotFoundException":
2942
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2943
- case "ServiceUnavailableException":
2944
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2945
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2946
- case "TooManyRequestsException":
2947
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2948
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2949
- default:
2950
- const parsedBody = parsedOutput.body;
2951
- return throwDefaultError({
2952
- output,
2953
- parsedBody,
2954
- errorCode,
2955
- });
2956
- }
2957
- };
2958
- const de_UpdateFlowCommand = async (output, context) => {
2959
- if (output.statusCode !== 202 && output.statusCode >= 300) {
2960
- return de_UpdateFlowCommandError(output, context);
2961
- }
2962
- const contents = (0, smithy_client_1.map)({
2963
- $metadata: deserializeMetadata(output),
2964
- });
2965
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2966
- const doc = (0, smithy_client_1.take)(data, {
2967
- Flow: [, (_) => de_Flow(_, context), `flow`],
2968
- });
2969
- Object.assign(contents, doc);
2970
- return contents;
2971
- };
2972
- exports.de_UpdateFlowCommand = de_UpdateFlowCommand;
2973
- const de_UpdateFlowCommandError = async (output, context) => {
2974
- const parsedOutput = {
2975
- ...output,
2976
- body: await parseErrorBody(output.body, context),
2977
- };
2978
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2979
- switch (errorCode) {
2980
- case "BadRequestException":
2981
- case "com.amazonaws.mediaconnect#BadRequestException":
2982
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2983
- case "ForbiddenException":
2984
- case "com.amazonaws.mediaconnect#ForbiddenException":
2985
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2986
- case "InternalServerErrorException":
2987
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
2988
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2989
- case "NotFoundException":
2990
- case "com.amazonaws.mediaconnect#NotFoundException":
2991
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2992
- case "ServiceUnavailableException":
2993
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
2994
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2995
- case "TooManyRequestsException":
2996
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
2997
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2998
- default:
2999
- const parsedBody = parsedOutput.body;
3000
- return throwDefaultError({
3001
- output,
3002
- parsedBody,
3003
- errorCode,
3004
- });
3005
- }
3006
- };
3007
- const de_UpdateFlowEntitlementCommand = async (output, context) => {
3008
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3009
- return de_UpdateFlowEntitlementCommandError(output, context);
3010
- }
3011
- const contents = (0, smithy_client_1.map)({
3012
- $metadata: deserializeMetadata(output),
3013
- });
3014
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3015
- const doc = (0, smithy_client_1.take)(data, {
3016
- Entitlement: [, (_) => de_Entitlement(_, context), `entitlement`],
3017
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
3018
- });
3019
- Object.assign(contents, doc);
3020
- return contents;
3021
- };
3022
- exports.de_UpdateFlowEntitlementCommand = de_UpdateFlowEntitlementCommand;
3023
- const de_UpdateFlowEntitlementCommandError = async (output, context) => {
3024
- const parsedOutput = {
3025
- ...output,
3026
- body: await parseErrorBody(output.body, context),
3027
- };
3028
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3029
- switch (errorCode) {
3030
- case "BadRequestException":
3031
- case "com.amazonaws.mediaconnect#BadRequestException":
3032
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3033
- case "ForbiddenException":
3034
- case "com.amazonaws.mediaconnect#ForbiddenException":
3035
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3036
- case "InternalServerErrorException":
3037
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
3038
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3039
- case "NotFoundException":
3040
- case "com.amazonaws.mediaconnect#NotFoundException":
3041
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3042
- case "ServiceUnavailableException":
3043
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
3044
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3045
- case "TooManyRequestsException":
3046
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
3047
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3048
- default:
3049
- const parsedBody = parsedOutput.body;
3050
- return throwDefaultError({
3051
- output,
3052
- parsedBody,
3053
- errorCode,
3054
- });
3055
- }
3056
- };
3057
- const de_UpdateFlowMediaStreamCommand = async (output, context) => {
3058
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3059
- return de_UpdateFlowMediaStreamCommandError(output, context);
3060
- }
3061
- const contents = (0, smithy_client_1.map)({
3062
- $metadata: deserializeMetadata(output),
3063
- });
3064
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3065
- const doc = (0, smithy_client_1.take)(data, {
3066
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
3067
- MediaStream: [, (_) => de_MediaStream(_, context), `mediaStream`],
3068
- });
3069
- Object.assign(contents, doc);
3070
- return contents;
3071
- };
3072
- exports.de_UpdateFlowMediaStreamCommand = de_UpdateFlowMediaStreamCommand;
3073
- const de_UpdateFlowMediaStreamCommandError = async (output, context) => {
3074
- const parsedOutput = {
3075
- ...output,
3076
- body: await parseErrorBody(output.body, context),
3077
- };
3078
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3079
- switch (errorCode) {
3080
- case "BadRequestException":
3081
- case "com.amazonaws.mediaconnect#BadRequestException":
3082
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3083
- case "ForbiddenException":
3084
- case "com.amazonaws.mediaconnect#ForbiddenException":
3085
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3086
- case "InternalServerErrorException":
3087
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
3088
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3089
- case "NotFoundException":
3090
- case "com.amazonaws.mediaconnect#NotFoundException":
3091
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3092
- case "ServiceUnavailableException":
3093
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
3094
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3095
- case "TooManyRequestsException":
3096
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
3097
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3098
- default:
3099
- const parsedBody = parsedOutput.body;
3100
- return throwDefaultError({
3101
- output,
3102
- parsedBody,
3103
- errorCode,
3104
- });
3105
- }
3106
- };
3107
- const de_UpdateFlowOutputCommand = async (output, context) => {
3108
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3109
- return de_UpdateFlowOutputCommandError(output, context);
3110
- }
3111
- const contents = (0, smithy_client_1.map)({
3112
- $metadata: deserializeMetadata(output),
3113
- });
3114
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3115
- const doc = (0, smithy_client_1.take)(data, {
3116
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
3117
- Output: [, (_) => de_Output(_, context), `output`],
3118
- });
3119
- Object.assign(contents, doc);
3120
- return contents;
3121
- };
3122
- exports.de_UpdateFlowOutputCommand = de_UpdateFlowOutputCommand;
3123
- const de_UpdateFlowOutputCommandError = async (output, context) => {
3124
- const parsedOutput = {
3125
- ...output,
3126
- body: await parseErrorBody(output.body, context),
3127
- };
3128
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3129
- switch (errorCode) {
3130
- case "BadRequestException":
3131
- case "com.amazonaws.mediaconnect#BadRequestException":
3132
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3133
- case "ForbiddenException":
3134
- case "com.amazonaws.mediaconnect#ForbiddenException":
3135
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3136
- case "InternalServerErrorException":
3137
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
3138
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3139
- case "NotFoundException":
3140
- case "com.amazonaws.mediaconnect#NotFoundException":
3141
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3142
- case "ServiceUnavailableException":
3143
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
3144
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3145
- case "TooManyRequestsException":
3146
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
3147
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3148
- default:
3149
- const parsedBody = parsedOutput.body;
3150
- return throwDefaultError({
3151
- output,
3152
- parsedBody,
3153
- errorCode,
3154
- });
3155
- }
3156
- };
3157
- const de_UpdateFlowSourceCommand = async (output, context) => {
3158
- if (output.statusCode !== 202 && output.statusCode >= 300) {
3159
- return de_UpdateFlowSourceCommandError(output, context);
3160
- }
3161
- const contents = (0, smithy_client_1.map)({
3162
- $metadata: deserializeMetadata(output),
3163
- });
3164
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3165
- const doc = (0, smithy_client_1.take)(data, {
3166
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
3167
- Source: [, (_) => de_Source(_, context), `source`],
3168
- });
3169
- Object.assign(contents, doc);
3170
- return contents;
3171
- };
3172
- exports.de_UpdateFlowSourceCommand = de_UpdateFlowSourceCommand;
3173
- const de_UpdateFlowSourceCommandError = async (output, context) => {
3174
- const parsedOutput = {
3175
- ...output,
3176
- body: await parseErrorBody(output.body, context),
3177
- };
3178
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3179
- switch (errorCode) {
3180
- case "BadRequestException":
3181
- case "com.amazonaws.mediaconnect#BadRequestException":
3182
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3183
- case "ForbiddenException":
3184
- case "com.amazonaws.mediaconnect#ForbiddenException":
3185
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3186
- case "InternalServerErrorException":
3187
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
3188
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3189
- case "NotFoundException":
3190
- case "com.amazonaws.mediaconnect#NotFoundException":
3191
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3192
- case "ServiceUnavailableException":
3193
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
3194
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3195
- case "TooManyRequestsException":
3196
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
3197
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3198
- default:
3199
- const parsedBody = parsedOutput.body;
3200
- return throwDefaultError({
3201
- output,
3202
- parsedBody,
3203
- errorCode,
3204
- });
3205
- }
3206
- };
3207
- const de_UpdateGatewayInstanceCommand = async (output, context) => {
3208
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3209
- return de_UpdateGatewayInstanceCommandError(output, context);
3210
- }
3211
- const contents = (0, smithy_client_1.map)({
3212
- $metadata: deserializeMetadata(output),
3213
- });
3214
- const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3215
- const doc = (0, smithy_client_1.take)(data, {
3216
- BridgePlacement: [, smithy_client_1.expectString, `bridgePlacement`],
3217
- GatewayInstanceArn: [, smithy_client_1.expectString, `gatewayInstanceArn`],
3218
- });
3219
- Object.assign(contents, doc);
3220
- return contents;
3221
- };
3222
- exports.de_UpdateGatewayInstanceCommand = de_UpdateGatewayInstanceCommand;
3223
- const de_UpdateGatewayInstanceCommandError = async (output, context) => {
3224
- const parsedOutput = {
3225
- ...output,
3226
- body: await parseErrorBody(output.body, context),
3227
- };
3228
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3229
- switch (errorCode) {
3230
- case "BadRequestException":
3231
- case "com.amazonaws.mediaconnect#BadRequestException":
3232
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3233
- case "ConflictException":
3234
- case "com.amazonaws.mediaconnect#ConflictException":
3235
- throw await de_ConflictExceptionRes(parsedOutput, context);
3236
- case "ForbiddenException":
3237
- case "com.amazonaws.mediaconnect#ForbiddenException":
3238
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3239
- case "InternalServerErrorException":
3240
- case "com.amazonaws.mediaconnect#InternalServerErrorException":
3241
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3242
- case "NotFoundException":
3243
- case "com.amazonaws.mediaconnect#NotFoundException":
3244
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3245
- case "ServiceUnavailableException":
3246
- case "com.amazonaws.mediaconnect#ServiceUnavailableException":
3247
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3248
- case "TooManyRequestsException":
3249
- case "com.amazonaws.mediaconnect#TooManyRequestsException":
3250
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3251
- default:
3252
- const parsedBody = parsedOutput.body;
3253
- return throwDefaultError({
3254
- output,
3255
- parsedBody,
3256
- errorCode,
3257
- });
3258
- }
3259
- };
3260
- const throwDefaultError = (0, smithy_client_1.withBaseException)(MediaConnectServiceException_1.MediaConnectServiceException);
3261
- const de_AddFlowOutputs420ExceptionRes = async (parsedOutput, context) => {
3262
- const contents = (0, smithy_client_1.map)({});
3263
- const data = parsedOutput.body;
3264
- const doc = (0, smithy_client_1.take)(data, {
3265
- Message: [, smithy_client_1.expectString, `message`],
3266
- });
3267
- Object.assign(contents, doc);
3268
- const exception = new models_0_1.AddFlowOutputs420Exception({
3269
- $metadata: deserializeMetadata(parsedOutput),
3270
- ...contents,
3271
- });
3272
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3273
- };
3274
- const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3275
- const contents = (0, smithy_client_1.map)({});
3276
- const data = parsedOutput.body;
3277
- const doc = (0, smithy_client_1.take)(data, {
3278
- Message: [, smithy_client_1.expectString, `message`],
3279
- });
3280
- Object.assign(contents, doc);
3281
- const exception = new models_0_1.BadRequestException({
3282
- $metadata: deserializeMetadata(parsedOutput),
3283
- ...contents,
3284
- });
3285
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3286
- };
3287
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
3288
- const contents = (0, smithy_client_1.map)({});
3289
- const data = parsedOutput.body;
3290
- const doc = (0, smithy_client_1.take)(data, {
3291
- Message: [, smithy_client_1.expectString, `message`],
3292
- });
3293
- Object.assign(contents, doc);
3294
- const exception = new models_0_1.ConflictException({
3295
- $metadata: deserializeMetadata(parsedOutput),
3296
- ...contents,
3297
- });
3298
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3299
- };
3300
- const de_CreateBridge420ExceptionRes = async (parsedOutput, context) => {
3301
- const contents = (0, smithy_client_1.map)({});
3302
- const data = parsedOutput.body;
3303
- const doc = (0, smithy_client_1.take)(data, {
3304
- Message: [, smithy_client_1.expectString, `message`],
3305
- });
3306
- Object.assign(contents, doc);
3307
- const exception = new models_0_1.CreateBridge420Exception({
3308
- $metadata: deserializeMetadata(parsedOutput),
3309
- ...contents,
3310
- });
3311
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3312
- };
3313
- const de_CreateFlow420ExceptionRes = async (parsedOutput, context) => {
3314
- const contents = (0, smithy_client_1.map)({});
3315
- const data = parsedOutput.body;
3316
- const doc = (0, smithy_client_1.take)(data, {
3317
- Message: [, smithy_client_1.expectString, `message`],
3318
- });
3319
- Object.assign(contents, doc);
3320
- const exception = new models_0_1.CreateFlow420Exception({
3321
- $metadata: deserializeMetadata(parsedOutput),
3322
- ...contents,
3323
- });
3324
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3325
- };
3326
- const de_CreateGateway420ExceptionRes = async (parsedOutput, context) => {
3327
- const contents = (0, smithy_client_1.map)({});
3328
- const data = parsedOutput.body;
3329
- const doc = (0, smithy_client_1.take)(data, {
3330
- Message: [, smithy_client_1.expectString, `message`],
3331
- });
3332
- Object.assign(contents, doc);
3333
- const exception = new models_0_1.CreateGateway420Exception({
3334
- $metadata: deserializeMetadata(parsedOutput),
3335
- ...contents,
3336
- });
3337
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3338
- };
3339
- const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
3340
- const contents = (0, smithy_client_1.map)({});
3341
- const data = parsedOutput.body;
3342
- const doc = (0, smithy_client_1.take)(data, {
3343
- Message: [, smithy_client_1.expectString, `message`],
3344
- });
3345
- Object.assign(contents, doc);
3346
- const exception = new models_0_1.ForbiddenException({
3347
- $metadata: deserializeMetadata(parsedOutput),
3348
- ...contents,
3349
- });
3350
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3351
- };
3352
- const de_GrantFlowEntitlements420ExceptionRes = async (parsedOutput, context) => {
3353
- const contents = (0, smithy_client_1.map)({});
3354
- const data = parsedOutput.body;
3355
- const doc = (0, smithy_client_1.take)(data, {
3356
- Message: [, smithy_client_1.expectString, `message`],
3357
- });
3358
- Object.assign(contents, doc);
3359
- const exception = new models_0_1.GrantFlowEntitlements420Exception({
3360
- $metadata: deserializeMetadata(parsedOutput),
3361
- ...contents,
3362
- });
3363
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3364
- };
3365
- const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
3366
- const contents = (0, smithy_client_1.map)({});
3367
- const data = parsedOutput.body;
3368
- const doc = (0, smithy_client_1.take)(data, {
3369
- Message: [, smithy_client_1.expectString, `message`],
3370
- });
3371
- Object.assign(contents, doc);
3372
- const exception = new models_0_1.InternalServerErrorException({
3373
- $metadata: deserializeMetadata(parsedOutput),
3374
- ...contents,
3375
- });
3376
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3377
- };
3378
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
3379
- const contents = (0, smithy_client_1.map)({});
3380
- const data = parsedOutput.body;
3381
- const doc = (0, smithy_client_1.take)(data, {
3382
- Message: [, smithy_client_1.expectString, `message`],
3383
- });
3384
- Object.assign(contents, doc);
3385
- const exception = new models_0_1.NotFoundException({
3386
- $metadata: deserializeMetadata(parsedOutput),
3387
- ...contents,
3388
- });
3389
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3390
- };
3391
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
3392
- const contents = (0, smithy_client_1.map)({});
3393
- const data = parsedOutput.body;
3394
- const doc = (0, smithy_client_1.take)(data, {
3395
- Message: [, smithy_client_1.expectString, `message`],
3396
- });
3397
- Object.assign(contents, doc);
3398
- const exception = new models_0_1.ServiceUnavailableException({
3399
- $metadata: deserializeMetadata(parsedOutput),
3400
- ...contents,
3401
- });
3402
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3403
- };
3404
- const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
3405
- const contents = (0, smithy_client_1.map)({});
3406
- const data = parsedOutput.body;
3407
- const doc = (0, smithy_client_1.take)(data, {
3408
- Message: [, smithy_client_1.expectString, `message`],
3409
- });
3410
- Object.assign(contents, doc);
3411
- const exception = new models_0_1.TooManyRequestsException({
3412
- $metadata: deserializeMetadata(parsedOutput),
3413
- ...contents,
3414
- });
3415
- return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
3416
- };
3417
- const se___listOfAddBridgeOutputRequest = (input, context) => {
3418
- return input
3419
- .filter((e) => e != null)
3420
- .map((entry) => {
3421
- return se_AddBridgeOutputRequest(entry, context);
3422
- });
3423
- };
3424
- const se___listOfAddBridgeSourceRequest = (input, context) => {
3425
- return input
3426
- .filter((e) => e != null)
3427
- .map((entry) => {
3428
- return se_AddBridgeSourceRequest(entry, context);
3429
- });
3430
- };
3431
- const se___listOfAddMediaStreamRequest = (input, context) => {
3432
- return input
3433
- .filter((e) => e != null)
3434
- .map((entry) => {
3435
- return se_AddMediaStreamRequest(entry, context);
3436
- });
3437
- };
3438
- const se___listOfAddOutputRequest = (input, context) => {
3439
- return input
3440
- .filter((e) => e != null)
3441
- .map((entry) => {
3442
- return se_AddOutputRequest(entry, context);
3443
- });
3444
- };
3445
- const se___listOfDestinationConfigurationRequest = (input, context) => {
3446
- return input
3447
- .filter((e) => e != null)
3448
- .map((entry) => {
3449
- return se_DestinationConfigurationRequest(entry, context);
3450
- });
3451
- };
3452
- const se___listOfGatewayNetwork = (input, context) => {
3453
- return input
3454
- .filter((e) => e != null)
3455
- .map((entry) => {
3456
- return se_GatewayNetwork(entry, context);
3457
- });
3458
- };
3459
- const se___listOfGrantEntitlementRequest = (input, context) => {
3460
- return input
3461
- .filter((e) => e != null)
3462
- .map((entry) => {
3463
- return se_GrantEntitlementRequest(entry, context);
3464
- });
3465
- };
3466
- const se___listOfInputConfigurationRequest = (input, context) => {
3467
- return input
3468
- .filter((e) => e != null)
3469
- .map((entry) => {
3470
- return se_InputConfigurationRequest(entry, context);
3471
- });
3472
- };
3473
- const se___listOfMediaStreamOutputConfigurationRequest = (input, context) => {
3474
- return input
3475
- .filter((e) => e != null)
3476
- .map((entry) => {
3477
- return se_MediaStreamOutputConfigurationRequest(entry, context);
3478
- });
3479
- };
3480
- const se___listOfMediaStreamSourceConfigurationRequest = (input, context) => {
3481
- return input
3482
- .filter((e) => e != null)
3483
- .map((entry) => {
3484
- return se_MediaStreamSourceConfigurationRequest(entry, context);
3485
- });
3486
- };
3487
- const se___listOfSetSourceRequest = (input, context) => {
3488
- return input
3489
- .filter((e) => e != null)
3490
- .map((entry) => {
3491
- return se_SetSourceRequest(entry, context);
3492
- });
3493
- };
3494
- const se___listOfVpcInterfaceRequest = (input, context) => {
3495
- return input
3496
- .filter((e) => e != null)
3497
- .map((entry) => {
3498
- return se_VpcInterfaceRequest(entry, context);
3499
- });
3500
- };
3501
- const se_AddBridgeFlowSourceRequest = (input, context) => {
3502
- return (0, smithy_client_1.take)(input, {
3503
- flowArn: [, , `FlowArn`],
3504
- flowVpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `FlowVpcInterfaceAttachment`],
3505
- name: [, , `Name`],
3506
- });
3507
- };
3508
- const se_AddBridgeNetworkOutputRequest = (input, context) => {
3509
- return (0, smithy_client_1.take)(input, {
3510
- ipAddress: [, , `IpAddress`],
3511
- name: [, , `Name`],
3512
- networkName: [, , `NetworkName`],
3513
- port: [, , `Port`],
3514
- protocol: [, , `Protocol`],
3515
- ttl: [, , `Ttl`],
3516
- });
3517
- };
3518
- const se_AddBridgeNetworkSourceRequest = (input, context) => {
3519
- return (0, smithy_client_1.take)(input, {
3520
- multicastIp: [, , `MulticastIp`],
3521
- name: [, , `Name`],
3522
- networkName: [, , `NetworkName`],
3523
- port: [, , `Port`],
3524
- protocol: [, , `Protocol`],
3525
- });
3526
- };
3527
- const se_AddBridgeOutputRequest = (input, context) => {
3528
- return (0, smithy_client_1.take)(input, {
3529
- networkOutput: [, (_) => se_AddBridgeNetworkOutputRequest(_, context), `NetworkOutput`],
3530
- });
3531
- };
3532
- const se_AddBridgeSourceRequest = (input, context) => {
3533
- return (0, smithy_client_1.take)(input, {
3534
- flowSource: [, (_) => se_AddBridgeFlowSourceRequest(_, context), `FlowSource`],
3535
- networkSource: [, (_) => se_AddBridgeNetworkSourceRequest(_, context), `NetworkSource`],
3536
- });
3537
- };
3538
- const se_AddEgressGatewayBridgeRequest = (input, context) => {
3539
- return (0, smithy_client_1.take)(input, {
3540
- maxBitrate: [, , `MaxBitrate`],
3541
- });
3542
- };
3543
- const se_AddIngressGatewayBridgeRequest = (input, context) => {
3544
- return (0, smithy_client_1.take)(input, {
3545
- maxBitrate: [, , `MaxBitrate`],
3546
- maxOutputs: [, , `MaxOutputs`],
3547
- });
3548
- };
3549
- const se_AddMaintenance = (input, context) => {
3550
- return (0, smithy_client_1.take)(input, {
3551
- maintenanceDay: [, , `MaintenanceDay`],
3552
- maintenanceStartHour: [, , `MaintenanceStartHour`],
3553
- });
3554
- };
3555
- const se_AddMediaStreamRequest = (input, context) => {
3556
- return (0, smithy_client_1.take)(input, {
3557
- attributes: [, (_) => se_MediaStreamAttributesRequest(_, context), `Attributes`],
3558
- clockRate: [, , `ClockRate`],
3559
- description: [, , `Description`],
3560
- mediaStreamId: [, , `MediaStreamId`],
3561
- mediaStreamName: [, , `MediaStreamName`],
3562
- mediaStreamType: [, , `MediaStreamType`],
3563
- videoFormat: [, , `VideoFormat`],
3564
- });
3565
- };
3566
- const se_AddOutputRequest = (input, context) => {
3567
- return (0, smithy_client_1.take)(input, {
3568
- cidrAllowList: [, smithy_client_1._json, `CidrAllowList`],
3569
- description: [, , `Description`],
3570
- destination: [, , `Destination`],
3571
- encryption: [, (_) => se_Encryption(_, context), `Encryption`],
3572
- maxLatency: [, , `MaxLatency`],
3573
- mediaStreamOutputConfigurations: [
3574
- ,
3575
- (_) => se___listOfMediaStreamOutputConfigurationRequest(_, context),
3576
- `MediaStreamOutputConfigurations`,
3577
- ],
3578
- minLatency: [, , `MinLatency`],
3579
- name: [, , `Name`],
3580
- port: [, , `Port`],
3581
- protocol: [, , `Protocol`],
3582
- remoteId: [, , `RemoteId`],
3583
- senderControlPort: [, , `SenderControlPort`],
3584
- smoothingLatency: [, , `SmoothingLatency`],
3585
- streamId: [, , `StreamId`],
3586
- vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
3587
- });
3588
- };
3589
- const se_DestinationConfigurationRequest = (input, context) => {
3590
- return (0, smithy_client_1.take)(input, {
3591
- destinationIp: [, , `DestinationIp`],
3592
- destinationPort: [, , `DestinationPort`],
3593
- interface: [, (_) => se_InterfaceRequest(_, context), `Interface`],
3594
- });
3595
- };
3596
- const se_EncodingParametersRequest = (input, context) => {
3597
- return (0, smithy_client_1.take)(input, {
3598
- compressionFactor: [, smithy_client_1.serializeFloat, `CompressionFactor`],
3599
- encoderProfile: [, , `EncoderProfile`],
3600
- });
3601
- };
3602
- const se_Encryption = (input, context) => {
3603
- return (0, smithy_client_1.take)(input, {
3604
- algorithm: [, , `Algorithm`],
3605
- constantInitializationVector: [, , `ConstantInitializationVector`],
3606
- deviceId: [, , `DeviceId`],
3607
- keyType: [, , `KeyType`],
3608
- region: [, , `Region`],
3609
- resourceId: [, , `ResourceId`],
3610
- roleArn: [, , `RoleArn`],
3611
- secretArn: [, , `SecretArn`],
3612
- url: [, , `Url`],
3613
- });
3614
- };
3615
- const se_FailoverConfig = (input, context) => {
3616
- return (0, smithy_client_1.take)(input, {
3617
- failoverMode: [, , `FailoverMode`],
3618
- recoveryWindow: [, , `RecoveryWindow`],
3619
- sourcePriority: [, (_) => se_SourcePriority(_, context), `SourcePriority`],
3620
- state: [, , `State`],
3621
- });
3622
- };
3623
- const se_FmtpRequest = (input, context) => {
3624
- return (0, smithy_client_1.take)(input, {
3625
- channelOrder: [, , `ChannelOrder`],
3626
- colorimetry: [, , `Colorimetry`],
3627
- exactFramerate: [, , `ExactFramerate`],
3628
- par: [, , `Par`],
3629
- range: [, , `Range`],
3630
- scanMode: [, , `ScanMode`],
3631
- tcs: [, , `Tcs`],
3632
- });
3633
- };
3634
- const se_GatewayNetwork = (input, context) => {
3635
- return (0, smithy_client_1.take)(input, {
3636
- cidrBlock: [, , `CidrBlock`],
3637
- name: [, , `Name`],
3638
- });
3639
- };
3640
- const se_GrantEntitlementRequest = (input, context) => {
3641
- return (0, smithy_client_1.take)(input, {
3642
- dataTransferSubscriberFeePercent: [, , `DataTransferSubscriberFeePercent`],
3643
- description: [, , `Description`],
3644
- encryption: [, (_) => se_Encryption(_, context), `Encryption`],
3645
- entitlementStatus: [, , `EntitlementStatus`],
3646
- name: [, , `Name`],
3647
- subscribers: [, smithy_client_1._json, `Subscribers`],
3648
- });
3649
- };
3650
- const se_InputConfigurationRequest = (input, context) => {
3651
- return (0, smithy_client_1.take)(input, {
3652
- inputPort: [, , `InputPort`],
3653
- interface: [, (_) => se_InterfaceRequest(_, context), `Interface`],
3654
- });
3655
- };
3656
- const se_InterfaceRequest = (input, context) => {
3657
- return (0, smithy_client_1.take)(input, {
3658
- name: [, , `Name`],
3659
- });
3660
- };
3661
- const se_MediaStreamAttributesRequest = (input, context) => {
3662
- return (0, smithy_client_1.take)(input, {
3663
- fmtp: [, (_) => se_FmtpRequest(_, context), `Fmtp`],
3664
- lang: [, , `Lang`],
3665
- });
3666
- };
3667
- const se_MediaStreamOutputConfigurationRequest = (input, context) => {
3668
- return (0, smithy_client_1.take)(input, {
3669
- destinationConfigurations: [
3670
- ,
3671
- (_) => se___listOfDestinationConfigurationRequest(_, context),
3672
- `DestinationConfigurations`,
3673
- ],
3674
- encodingName: [, , `EncodingName`],
3675
- encodingParameters: [, (_) => se_EncodingParametersRequest(_, context), `EncodingParameters`],
3676
- mediaStreamName: [, , `MediaStreamName`],
3677
- });
3678
- };
3679
- const se_MediaStreamSourceConfigurationRequest = (input, context) => {
3680
- return (0, smithy_client_1.take)(input, {
3681
- encodingName: [, , `EncodingName`],
3682
- inputConfigurations: [, (_) => se___listOfInputConfigurationRequest(_, context), `InputConfigurations`],
3683
- mediaStreamName: [, , `MediaStreamName`],
3684
- });
3685
- };
3686
- const se_SetGatewayBridgeSourceRequest = (input, context) => {
3687
- return (0, smithy_client_1.take)(input, {
3688
- bridgeArn: [, , `BridgeArn`],
3689
- vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
3690
- });
3691
- };
3692
- const se_SetSourceRequest = (input, context) => {
3693
- return (0, smithy_client_1.take)(input, {
3694
- decryption: [, (_) => se_Encryption(_, context), `Decryption`],
3695
- description: [, , `Description`],
3696
- entitlementArn: [, , `EntitlementArn`],
3697
- gatewayBridgeSource: [, (_) => se_SetGatewayBridgeSourceRequest(_, context), `GatewayBridgeSource`],
3698
- ingestPort: [, , `IngestPort`],
3699
- maxBitrate: [, , `MaxBitrate`],
3700
- maxLatency: [, , `MaxLatency`],
3701
- maxSyncBuffer: [, , `MaxSyncBuffer`],
3702
- mediaStreamSourceConfigurations: [
3703
- ,
3704
- (_) => se___listOfMediaStreamSourceConfigurationRequest(_, context),
3705
- `MediaStreamSourceConfigurations`,
3706
- ],
3707
- minLatency: [, , `MinLatency`],
3708
- name: [, , `Name`],
3709
- protocol: [, , `Protocol`],
3710
- senderControlPort: [, , `SenderControlPort`],
3711
- senderIpAddress: [, , `SenderIpAddress`],
3712
- sourceListenerAddress: [, , `SourceListenerAddress`],
3713
- sourceListenerPort: [, , `SourceListenerPort`],
3714
- streamId: [, , `StreamId`],
3715
- vpcInterfaceName: [, , `VpcInterfaceName`],
3716
- whitelistCidr: [, , `WhitelistCidr`],
3717
- });
3718
- };
3719
- const se_SourcePriority = (input, context) => {
3720
- return (0, smithy_client_1.take)(input, {
3721
- primarySource: [, , `PrimarySource`],
3722
- });
3723
- };
3724
- const se_UpdateBridgeFlowSourceRequest = (input, context) => {
3725
- return (0, smithy_client_1.take)(input, {
3726
- flowArn: [, , `FlowArn`],
3727
- flowVpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `FlowVpcInterfaceAttachment`],
3728
- });
3729
- };
3730
- const se_UpdateBridgeNetworkOutputRequest = (input, context) => {
3731
- return (0, smithy_client_1.take)(input, {
3732
- ipAddress: [, , `IpAddress`],
3733
- networkName: [, , `NetworkName`],
3734
- port: [, , `Port`],
3735
- protocol: [, , `Protocol`],
3736
- ttl: [, , `Ttl`],
3737
- });
3738
- };
3739
- const se_UpdateBridgeNetworkSourceRequest = (input, context) => {
3740
- return (0, smithy_client_1.take)(input, {
3741
- multicastIp: [, , `MulticastIp`],
3742
- networkName: [, , `NetworkName`],
3743
- port: [, , `Port`],
3744
- protocol: [, , `Protocol`],
3745
- });
3746
- };
3747
- const se_UpdateEgressGatewayBridgeRequest = (input, context) => {
3748
- return (0, smithy_client_1.take)(input, {
3749
- maxBitrate: [, , `MaxBitrate`],
3750
- });
3751
- };
3752
- const se_UpdateEncryption = (input, context) => {
3753
- return (0, smithy_client_1.take)(input, {
3754
- algorithm: [, , `Algorithm`],
3755
- constantInitializationVector: [, , `ConstantInitializationVector`],
3756
- deviceId: [, , `DeviceId`],
3757
- keyType: [, , `KeyType`],
3758
- region: [, , `Region`],
3759
- resourceId: [, , `ResourceId`],
3760
- roleArn: [, , `RoleArn`],
3761
- secretArn: [, , `SecretArn`],
3762
- url: [, , `Url`],
3763
- });
3764
- };
3765
- const se_UpdateFailoverConfig = (input, context) => {
3766
- return (0, smithy_client_1.take)(input, {
3767
- failoverMode: [, , `FailoverMode`],
3768
- recoveryWindow: [, , `RecoveryWindow`],
3769
- sourcePriority: [, (_) => se_SourcePriority(_, context), `SourcePriority`],
3770
- state: [, , `State`],
3771
- });
3772
- };
3773
- const se_UpdateGatewayBridgeSourceRequest = (input, context) => {
3774
- return (0, smithy_client_1.take)(input, {
3775
- bridgeArn: [, , `BridgeArn`],
3776
- vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
3777
- });
3778
- };
3779
- const se_UpdateIngressGatewayBridgeRequest = (input, context) => {
3780
- return (0, smithy_client_1.take)(input, {
3781
- maxBitrate: [, , `MaxBitrate`],
3782
- maxOutputs: [, , `MaxOutputs`],
3783
- });
3784
- };
3785
- const se_UpdateMaintenance = (input, context) => {
3786
- return (0, smithy_client_1.take)(input, {
3787
- maintenanceDay: [, , `MaintenanceDay`],
3788
- maintenanceScheduledDate: [, , `MaintenanceScheduledDate`],
3789
- maintenanceStartHour: [, , `MaintenanceStartHour`],
3790
- });
3791
- };
3792
- const se_VpcInterfaceAttachment = (input, context) => {
3793
- return (0, smithy_client_1.take)(input, {
3794
- vpcInterfaceName: [, , `VpcInterfaceName`],
3795
- });
3796
- };
3797
- const se_VpcInterfaceRequest = (input, context) => {
3798
- return (0, smithy_client_1.take)(input, {
3799
- name: [, , `Name`],
3800
- networkInterfaceType: [, , `NetworkInterfaceType`],
3801
- roleArn: [, , `RoleArn`],
3802
- securityGroupIds: [, smithy_client_1._json, `SecurityGroupIds`],
3803
- subnetId: [, , `SubnetId`],
3804
- });
3805
- };
3806
- const de___listOfBridgeOutput = (output, context) => {
3807
- const retVal = (output || [])
3808
- .filter((e) => e != null)
3809
- .map((entry) => {
3810
- return de_BridgeOutput(entry, context);
3811
- });
3812
- return retVal;
3813
- };
3814
- const de___listOfBridgeSource = (output, context) => {
3815
- const retVal = (output || [])
3816
- .filter((e) => e != null)
3817
- .map((entry) => {
3818
- return de_BridgeSource(entry, context);
3819
- });
3820
- return retVal;
3821
- };
3822
- const de___listOfDestinationConfiguration = (output, context) => {
3823
- const retVal = (output || [])
3824
- .filter((e) => e != null)
3825
- .map((entry) => {
3826
- return de_DestinationConfiguration(entry, context);
3827
- });
3828
- return retVal;
3829
- };
3830
- const de___listOfEntitlement = (output, context) => {
3831
- const retVal = (output || [])
3832
- .filter((e) => e != null)
3833
- .map((entry) => {
3834
- return de_Entitlement(entry, context);
3835
- });
3836
- return retVal;
3837
- };
3838
- const de___listOfGatewayNetwork = (output, context) => {
3839
- const retVal = (output || [])
3840
- .filter((e) => e != null)
3841
- .map((entry) => {
3842
- return de_GatewayNetwork(entry, context);
3843
- });
3844
- return retVal;
3845
- };
3846
- const de___listOfInputConfiguration = (output, context) => {
3847
- const retVal = (output || [])
3848
- .filter((e) => e != null)
3849
- .map((entry) => {
3850
- return de_InputConfiguration(entry, context);
3851
- });
3852
- return retVal;
3853
- };
3854
- const de___listOfListedBridge = (output, context) => {
3855
- const retVal = (output || [])
3856
- .filter((e) => e != null)
3857
- .map((entry) => {
3858
- return de_ListedBridge(entry, context);
3859
- });
3860
- return retVal;
3861
- };
3862
- const de___listOfListedEntitlement = (output, context) => {
3863
- const retVal = (output || [])
3864
- .filter((e) => e != null)
3865
- .map((entry) => {
3866
- return de_ListedEntitlement(entry, context);
3867
- });
3868
- return retVal;
3869
- };
3870
- const de___listOfListedFlow = (output, context) => {
3871
- const retVal = (output || [])
3872
- .filter((e) => e != null)
3873
- .map((entry) => {
3874
- return de_ListedFlow(entry, context);
3875
- });
3876
- return retVal;
3877
- };
3878
- const de___listOfListedGateway = (output, context) => {
3879
- const retVal = (output || [])
3880
- .filter((e) => e != null)
3881
- .map((entry) => {
3882
- return de_ListedGateway(entry, context);
3883
- });
3884
- return retVal;
3885
- };
3886
- const de___listOfListedGatewayInstance = (output, context) => {
3887
- const retVal = (output || [])
3888
- .filter((e) => e != null)
3889
- .map((entry) => {
3890
- return de_ListedGatewayInstance(entry, context);
3891
- });
3892
- return retVal;
3893
- };
3894
- const de___listOfMediaStream = (output, context) => {
3895
- const retVal = (output || [])
3896
- .filter((e) => e != null)
3897
- .map((entry) => {
3898
- return de_MediaStream(entry, context);
3899
- });
3900
- return retVal;
3901
- };
3902
- const de___listOfMediaStreamOutputConfiguration = (output, context) => {
3903
- const retVal = (output || [])
3904
- .filter((e) => e != null)
3905
- .map((entry) => {
3906
- return de_MediaStreamOutputConfiguration(entry, context);
3907
- });
3908
- return retVal;
3909
- };
3910
- const de___listOfMediaStreamSourceConfiguration = (output, context) => {
3911
- const retVal = (output || [])
3912
- .filter((e) => e != null)
3913
- .map((entry) => {
3914
- return de_MediaStreamSourceConfiguration(entry, context);
3915
- });
3916
- return retVal;
3917
- };
3918
- const de___listOfMessageDetail = (output, context) => {
3919
- const retVal = (output || [])
3920
- .filter((e) => e != null)
3921
- .map((entry) => {
3922
- return de_MessageDetail(entry, context);
3923
- });
3924
- return retVal;
3925
- };
3926
- const de___listOfOffering = (output, context) => {
3927
- const retVal = (output || [])
3928
- .filter((e) => e != null)
3929
- .map((entry) => {
3930
- return de_Offering(entry, context);
3931
- });
3932
- return retVal;
3933
- };
3934
- const de___listOfOutput = (output, context) => {
3935
- const retVal = (output || [])
3936
- .filter((e) => e != null)
3937
- .map((entry) => {
3938
- return de_Output(entry, context);
3939
- });
3940
- return retVal;
3941
- };
3942
- const de___listOfReservation = (output, context) => {
3943
- const retVal = (output || [])
3944
- .filter((e) => e != null)
3945
- .map((entry) => {
3946
- return de_Reservation(entry, context);
3947
- });
3948
- return retVal;
3949
- };
3950
- const de___listOfSource = (output, context) => {
3951
- const retVal = (output || [])
3952
- .filter((e) => e != null)
3953
- .map((entry) => {
3954
- return de_Source(entry, context);
3955
- });
3956
- return retVal;
3957
- };
3958
- const de___listOfTransportStream = (output, context) => {
3959
- const retVal = (output || [])
3960
- .filter((e) => e != null)
3961
- .map((entry) => {
3962
- return de_TransportStream(entry, context);
3963
- });
3964
- return retVal;
3965
- };
3966
- const de___listOfTransportStreamProgram = (output, context) => {
3967
- const retVal = (output || [])
3968
- .filter((e) => e != null)
3969
- .map((entry) => {
3970
- return de_TransportStreamProgram(entry, context);
3971
- });
3972
- return retVal;
3973
- };
3974
- const de___listOfVpcInterface = (output, context) => {
3975
- const retVal = (output || [])
3976
- .filter((e) => e != null)
3977
- .map((entry) => {
3978
- return de_VpcInterface(entry, context);
3979
- });
3980
- return retVal;
3981
- };
3982
- const de_Bridge = (output, context) => {
3983
- return (0, smithy_client_1.take)(output, {
3984
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
3985
- BridgeMessages: [, (_) => de___listOfMessageDetail(_, context), `bridgeMessages`],
3986
- BridgeState: [, smithy_client_1.expectString, `bridgeState`],
3987
- EgressGatewayBridge: [, (_) => de_EgressGatewayBridge(_, context), `egressGatewayBridge`],
3988
- IngressGatewayBridge: [, (_) => de_IngressGatewayBridge(_, context), `ingressGatewayBridge`],
3989
- Name: [, smithy_client_1.expectString, `name`],
3990
- Outputs: [, (_) => de___listOfBridgeOutput(_, context), `outputs`],
3991
- PlacementArn: [, smithy_client_1.expectString, `placementArn`],
3992
- SourceFailoverConfig: [, (_) => de_FailoverConfig(_, context), `sourceFailoverConfig`],
3993
- Sources: [, (_) => de___listOfBridgeSource(_, context), `sources`],
3994
- });
3995
- };
3996
- const de_BridgeFlowOutput = (output, context) => {
3997
- return (0, smithy_client_1.take)(output, {
3998
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
3999
- FlowSourceArn: [, smithy_client_1.expectString, `flowSourceArn`],
4000
- Name: [, smithy_client_1.expectString, `name`],
4001
- });
4002
- };
4003
- const de_BridgeFlowSource = (output, context) => {
4004
- return (0, smithy_client_1.take)(output, {
4005
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
4006
- FlowVpcInterfaceAttachment: [, (_) => de_VpcInterfaceAttachment(_, context), `flowVpcInterfaceAttachment`],
4007
- Name: [, smithy_client_1.expectString, `name`],
4008
- OutputArn: [, smithy_client_1.expectString, `outputArn`],
4009
- });
4010
- };
4011
- const de_BridgeNetworkOutput = (output, context) => {
4012
- return (0, smithy_client_1.take)(output, {
4013
- IpAddress: [, smithy_client_1.expectString, `ipAddress`],
4014
- Name: [, smithy_client_1.expectString, `name`],
4015
- NetworkName: [, smithy_client_1.expectString, `networkName`],
4016
- Port: [, smithy_client_1.expectInt32, `port`],
4017
- Protocol: [, smithy_client_1.expectString, `protocol`],
4018
- Ttl: [, smithy_client_1.expectInt32, `ttl`],
4019
- });
4020
- };
4021
- const de_BridgeNetworkSource = (output, context) => {
4022
- return (0, smithy_client_1.take)(output, {
4023
- MulticastIp: [, smithy_client_1.expectString, `multicastIp`],
4024
- Name: [, smithy_client_1.expectString, `name`],
4025
- NetworkName: [, smithy_client_1.expectString, `networkName`],
4026
- Port: [, smithy_client_1.expectInt32, `port`],
4027
- Protocol: [, smithy_client_1.expectString, `protocol`],
4028
- });
4029
- };
4030
- const de_BridgeOutput = (output, context) => {
4031
- return (0, smithy_client_1.take)(output, {
4032
- FlowOutput: [, (_) => de_BridgeFlowOutput(_, context), `flowOutput`],
4033
- NetworkOutput: [, (_) => de_BridgeNetworkOutput(_, context), `networkOutput`],
4034
- });
4035
- };
4036
- const de_BridgeSource = (output, context) => {
4037
- return (0, smithy_client_1.take)(output, {
4038
- FlowSource: [, (_) => de_BridgeFlowSource(_, context), `flowSource`],
4039
- NetworkSource: [, (_) => de_BridgeNetworkSource(_, context), `networkSource`],
4040
- });
4041
- };
4042
- const de_DestinationConfiguration = (output, context) => {
4043
- return (0, smithy_client_1.take)(output, {
4044
- DestinationIp: [, smithy_client_1.expectString, `destinationIp`],
4045
- DestinationPort: [, smithy_client_1.expectInt32, `destinationPort`],
4046
- Interface: [, (_) => de_Interface(_, context), `interface`],
4047
- OutboundIp: [, smithy_client_1.expectString, `outboundIp`],
4048
- });
4049
- };
4050
- const de_EgressGatewayBridge = (output, context) => {
4051
- return (0, smithy_client_1.take)(output, {
4052
- InstanceId: [, smithy_client_1.expectString, `instanceId`],
4053
- MaxBitrate: [, smithy_client_1.expectInt32, `maxBitrate`],
4054
- });
4055
- };
4056
- const de_EncodingParameters = (output, context) => {
4057
- return (0, smithy_client_1.take)(output, {
4058
- CompressionFactor: [, smithy_client_1.limitedParseDouble, `compressionFactor`],
4059
- EncoderProfile: [, smithy_client_1.expectString, `encoderProfile`],
4060
- });
4061
- };
4062
- const de_Encryption = (output, context) => {
4063
- return (0, smithy_client_1.take)(output, {
4064
- Algorithm: [, smithy_client_1.expectString, `algorithm`],
4065
- ConstantInitializationVector: [, smithy_client_1.expectString, `constantInitializationVector`],
4066
- DeviceId: [, smithy_client_1.expectString, `deviceId`],
4067
- KeyType: [, smithy_client_1.expectString, `keyType`],
4068
- Region: [, smithy_client_1.expectString, `region`],
4069
- ResourceId: [, smithy_client_1.expectString, `resourceId`],
4070
- RoleArn: [, smithy_client_1.expectString, `roleArn`],
4071
- SecretArn: [, smithy_client_1.expectString, `secretArn`],
4072
- Url: [, smithy_client_1.expectString, `url`],
4073
- });
4074
- };
4075
- const de_Entitlement = (output, context) => {
4076
- return (0, smithy_client_1.take)(output, {
4077
- DataTransferSubscriberFeePercent: [, smithy_client_1.expectInt32, `dataTransferSubscriberFeePercent`],
4078
- Description: [, smithy_client_1.expectString, `description`],
4079
- Encryption: [, (_) => de_Encryption(_, context), `encryption`],
4080
- EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
4081
- EntitlementStatus: [, smithy_client_1.expectString, `entitlementStatus`],
4082
- Name: [, smithy_client_1.expectString, `name`],
4083
- Subscribers: [, smithy_client_1._json, `subscribers`],
4084
- });
4085
- };
4086
- const de_FailoverConfig = (output, context) => {
4087
- return (0, smithy_client_1.take)(output, {
4088
- FailoverMode: [, smithy_client_1.expectString, `failoverMode`],
4089
- RecoveryWindow: [, smithy_client_1.expectInt32, `recoveryWindow`],
4090
- SourcePriority: [, (_) => de_SourcePriority(_, context), `sourcePriority`],
4091
- State: [, smithy_client_1.expectString, `state`],
4092
- });
4093
- };
4094
- const de_Flow = (output, context) => {
4095
- return (0, smithy_client_1.take)(output, {
4096
- AvailabilityZone: [, smithy_client_1.expectString, `availabilityZone`],
4097
- Description: [, smithy_client_1.expectString, `description`],
4098
- EgressIp: [, smithy_client_1.expectString, `egressIp`],
4099
- Entitlements: [, (_) => de___listOfEntitlement(_, context), `entitlements`],
4100
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
4101
- Maintenance: [, (_) => de_Maintenance(_, context), `maintenance`],
4102
- MediaStreams: [, (_) => de___listOfMediaStream(_, context), `mediaStreams`],
4103
- Name: [, smithy_client_1.expectString, `name`],
4104
- Outputs: [, (_) => de___listOfOutput(_, context), `outputs`],
4105
- Source: [, (_) => de_Source(_, context), `source`],
4106
- SourceFailoverConfig: [, (_) => de_FailoverConfig(_, context), `sourceFailoverConfig`],
4107
- Sources: [, (_) => de___listOfSource(_, context), `sources`],
4108
- Status: [, smithy_client_1.expectString, `status`],
4109
- VpcInterfaces: [, (_) => de___listOfVpcInterface(_, context), `vpcInterfaces`],
4110
- });
4111
- };
4112
- const de_Fmtp = (output, context) => {
4113
- return (0, smithy_client_1.take)(output, {
4114
- ChannelOrder: [, smithy_client_1.expectString, `channelOrder`],
4115
- Colorimetry: [, smithy_client_1.expectString, `colorimetry`],
4116
- ExactFramerate: [, smithy_client_1.expectString, `exactFramerate`],
4117
- Par: [, smithy_client_1.expectString, `par`],
4118
- Range: [, smithy_client_1.expectString, `range`],
4119
- ScanMode: [, smithy_client_1.expectString, `scanMode`],
4120
- Tcs: [, smithy_client_1.expectString, `tcs`],
4121
- });
4122
- };
4123
- const de_FrameResolution = (output, context) => {
4124
- return (0, smithy_client_1.take)(output, {
4125
- FrameHeight: [, smithy_client_1.expectInt32, `frameHeight`],
4126
- FrameWidth: [, smithy_client_1.expectInt32, `frameWidth`],
4127
- });
4128
- };
4129
- const de_Gateway = (output, context) => {
4130
- return (0, smithy_client_1.take)(output, {
4131
- EgressCidrBlocks: [, smithy_client_1._json, `egressCidrBlocks`],
4132
- GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
4133
- GatewayMessages: [, (_) => de___listOfMessageDetail(_, context), `gatewayMessages`],
4134
- GatewayState: [, smithy_client_1.expectString, `gatewayState`],
4135
- Name: [, smithy_client_1.expectString, `name`],
4136
- Networks: [, (_) => de___listOfGatewayNetwork(_, context), `networks`],
4137
- });
4138
- };
4139
- const de_GatewayBridgeSource = (output, context) => {
4140
- return (0, smithy_client_1.take)(output, {
4141
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
4142
- VpcInterfaceAttachment: [, (_) => de_VpcInterfaceAttachment(_, context), `vpcInterfaceAttachment`],
4143
- });
4144
- };
4145
- const de_GatewayInstance = (output, context) => {
4146
- return (0, smithy_client_1.take)(output, {
4147
- BridgePlacement: [, smithy_client_1.expectString, `bridgePlacement`],
4148
- ConnectionStatus: [, smithy_client_1.expectString, `connectionStatus`],
4149
- GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
4150
- GatewayInstanceArn: [, smithy_client_1.expectString, `gatewayInstanceArn`],
4151
- InstanceId: [, smithy_client_1.expectString, `instanceId`],
4152
- InstanceMessages: [, (_) => de___listOfMessageDetail(_, context), `instanceMessages`],
4153
- InstanceState: [, smithy_client_1.expectString, `instanceState`],
4154
- RunningBridgeCount: [, smithy_client_1.expectInt32, `runningBridgeCount`],
4155
- });
4156
- };
4157
- const de_GatewayNetwork = (output, context) => {
4158
- return (0, smithy_client_1.take)(output, {
4159
- CidrBlock: [, smithy_client_1.expectString, `cidrBlock`],
4160
- Name: [, smithy_client_1.expectString, `name`],
4161
- });
4162
- };
4163
- const de_IngressGatewayBridge = (output, context) => {
4164
- return (0, smithy_client_1.take)(output, {
4165
- InstanceId: [, smithy_client_1.expectString, `instanceId`],
4166
- MaxBitrate: [, smithy_client_1.expectInt32, `maxBitrate`],
4167
- MaxOutputs: [, smithy_client_1.expectInt32, `maxOutputs`],
4168
- });
4169
- };
4170
- const de_InputConfiguration = (output, context) => {
4171
- return (0, smithy_client_1.take)(output, {
4172
- InputIp: [, smithy_client_1.expectString, `inputIp`],
4173
- InputPort: [, smithy_client_1.expectInt32, `inputPort`],
4174
- Interface: [, (_) => de_Interface(_, context), `interface`],
4175
- });
4176
- };
4177
- const de_Interface = (output, context) => {
4178
- return (0, smithy_client_1.take)(output, {
4179
- Name: [, smithy_client_1.expectString, `name`],
4180
- });
4181
- };
4182
- const de_ListedBridge = (output, context) => {
4183
- return (0, smithy_client_1.take)(output, {
4184
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
4185
- BridgeState: [, smithy_client_1.expectString, `bridgeState`],
4186
- BridgeType: [, smithy_client_1.expectString, `bridgeType`],
4187
- Name: [, smithy_client_1.expectString, `name`],
4188
- PlacementArn: [, smithy_client_1.expectString, `placementArn`],
4189
- });
4190
- };
4191
- const de_ListedEntitlement = (output, context) => {
4192
- return (0, smithy_client_1.take)(output, {
4193
- DataTransferSubscriberFeePercent: [, smithy_client_1.expectInt32, `dataTransferSubscriberFeePercent`],
4194
- EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
4195
- EntitlementName: [, smithy_client_1.expectString, `entitlementName`],
4196
- });
4197
- };
4198
- const de_ListedFlow = (output, context) => {
4199
- return (0, smithy_client_1.take)(output, {
4200
- AvailabilityZone: [, smithy_client_1.expectString, `availabilityZone`],
4201
- Description: [, smithy_client_1.expectString, `description`],
4202
- FlowArn: [, smithy_client_1.expectString, `flowArn`],
4203
- Maintenance: [, (_) => de_Maintenance(_, context), `maintenance`],
4204
- Name: [, smithy_client_1.expectString, `name`],
4205
- SourceType: [, smithy_client_1.expectString, `sourceType`],
4206
- Status: [, smithy_client_1.expectString, `status`],
4207
- });
4208
- };
4209
- const de_ListedGateway = (output, context) => {
4210
- return (0, smithy_client_1.take)(output, {
4211
- GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
4212
- GatewayState: [, smithy_client_1.expectString, `gatewayState`],
4213
- Name: [, smithy_client_1.expectString, `name`],
4214
- });
4215
- };
4216
- const de_ListedGatewayInstance = (output, context) => {
4217
- return (0, smithy_client_1.take)(output, {
4218
- GatewayArn: [, smithy_client_1.expectString, `gatewayArn`],
4219
- GatewayInstanceArn: [, smithy_client_1.expectString, `gatewayInstanceArn`],
4220
- InstanceId: [, smithy_client_1.expectString, `instanceId`],
4221
- InstanceState: [, smithy_client_1.expectString, `instanceState`],
4222
- });
4223
- };
4224
- const de_Maintenance = (output, context) => {
4225
- return (0, smithy_client_1.take)(output, {
4226
- MaintenanceDay: [, smithy_client_1.expectString, `maintenanceDay`],
4227
- MaintenanceDeadline: [, smithy_client_1.expectString, `maintenanceDeadline`],
4228
- MaintenanceScheduledDate: [, smithy_client_1.expectString, `maintenanceScheduledDate`],
4229
- MaintenanceStartHour: [, smithy_client_1.expectString, `maintenanceStartHour`],
4230
- });
4231
- };
4232
- const de_MediaStream = (output, context) => {
4233
- return (0, smithy_client_1.take)(output, {
4234
- Attributes: [, (_) => de_MediaStreamAttributes(_, context), `attributes`],
4235
- ClockRate: [, smithy_client_1.expectInt32, `clockRate`],
4236
- Description: [, smithy_client_1.expectString, `description`],
4237
- Fmt: [, smithy_client_1.expectInt32, `fmt`],
4238
- MediaStreamId: [, smithy_client_1.expectInt32, `mediaStreamId`],
4239
- MediaStreamName: [, smithy_client_1.expectString, `mediaStreamName`],
4240
- MediaStreamType: [, smithy_client_1.expectString, `mediaStreamType`],
4241
- VideoFormat: [, smithy_client_1.expectString, `videoFormat`],
4242
- });
4243
- };
4244
- const de_MediaStreamAttributes = (output, context) => {
4245
- return (0, smithy_client_1.take)(output, {
4246
- Fmtp: [, (_) => de_Fmtp(_, context), `fmtp`],
4247
- Lang: [, smithy_client_1.expectString, `lang`],
4248
- });
4249
- };
4250
- const de_MediaStreamOutputConfiguration = (output, context) => {
4251
- return (0, smithy_client_1.take)(output, {
4252
- DestinationConfigurations: [
4253
- ,
4254
- (_) => de___listOfDestinationConfiguration(_, context),
4255
- `destinationConfigurations`,
4256
- ],
4257
- EncodingName: [, smithy_client_1.expectString, `encodingName`],
4258
- EncodingParameters: [, (_) => de_EncodingParameters(_, context), `encodingParameters`],
4259
- MediaStreamName: [, smithy_client_1.expectString, `mediaStreamName`],
4260
- });
4261
- };
4262
- const de_MediaStreamSourceConfiguration = (output, context) => {
4263
- return (0, smithy_client_1.take)(output, {
4264
- EncodingName: [, smithy_client_1.expectString, `encodingName`],
4265
- InputConfigurations: [, (_) => de___listOfInputConfiguration(_, context), `inputConfigurations`],
4266
- MediaStreamName: [, smithy_client_1.expectString, `mediaStreamName`],
4267
- });
4268
- };
4269
- const de_MessageDetail = (output, context) => {
4270
- return (0, smithy_client_1.take)(output, {
4271
- Code: [, smithy_client_1.expectString, `code`],
4272
- Message: [, smithy_client_1.expectString, `message`],
4273
- ResourceName: [, smithy_client_1.expectString, `resourceName`],
4274
- });
4275
- };
4276
- const de_Messages = (output, context) => {
4277
- return (0, smithy_client_1.take)(output, {
4278
- Errors: [, smithy_client_1._json, `errors`],
4279
- });
4280
- };
4281
- const de_Offering = (output, context) => {
4282
- return (0, smithy_client_1.take)(output, {
4283
- CurrencyCode: [, smithy_client_1.expectString, `currencyCode`],
4284
- Duration: [, smithy_client_1.expectInt32, `duration`],
4285
- DurationUnits: [, smithy_client_1.expectString, `durationUnits`],
4286
- OfferingArn: [, smithy_client_1.expectString, `offeringArn`],
4287
- OfferingDescription: [, smithy_client_1.expectString, `offeringDescription`],
4288
- PricePerUnit: [, smithy_client_1.expectString, `pricePerUnit`],
4289
- PriceUnits: [, smithy_client_1.expectString, `priceUnits`],
4290
- ResourceSpecification: [, (_) => de_ResourceSpecification(_, context), `resourceSpecification`],
4291
- });
4292
- };
4293
- const de_Output = (output, context) => {
4294
- return (0, smithy_client_1.take)(output, {
4295
- BridgeArn: [, smithy_client_1.expectString, `bridgeArn`],
4296
- BridgePorts: [, smithy_client_1._json, `bridgePorts`],
4297
- DataTransferSubscriberFeePercent: [, smithy_client_1.expectInt32, `dataTransferSubscriberFeePercent`],
4298
- Description: [, smithy_client_1.expectString, `description`],
4299
- Destination: [, smithy_client_1.expectString, `destination`],
4300
- Encryption: [, (_) => de_Encryption(_, context), `encryption`],
4301
- EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
4302
- ListenerAddress: [, smithy_client_1.expectString, `listenerAddress`],
4303
- MediaLiveInputArn: [, smithy_client_1.expectString, `mediaLiveInputArn`],
4304
- MediaStreamOutputConfigurations: [
4305
- ,
4306
- (_) => de___listOfMediaStreamOutputConfiguration(_, context),
4307
- `mediaStreamOutputConfigurations`,
4308
- ],
4309
- Name: [, smithy_client_1.expectString, `name`],
4310
- OutputArn: [, smithy_client_1.expectString, `outputArn`],
4311
- Port: [, smithy_client_1.expectInt32, `port`],
4312
- Transport: [, (_) => de_Transport(_, context), `transport`],
4313
- VpcInterfaceAttachment: [, (_) => de_VpcInterfaceAttachment(_, context), `vpcInterfaceAttachment`],
4314
- });
4315
- };
4316
- const de_Reservation = (output, context) => {
4317
- return (0, smithy_client_1.take)(output, {
4318
- CurrencyCode: [, smithy_client_1.expectString, `currencyCode`],
4319
- Duration: [, smithy_client_1.expectInt32, `duration`],
4320
- DurationUnits: [, smithy_client_1.expectString, `durationUnits`],
4321
- End: [, smithy_client_1.expectString, `end`],
4322
- OfferingArn: [, smithy_client_1.expectString, `offeringArn`],
4323
- OfferingDescription: [, smithy_client_1.expectString, `offeringDescription`],
4324
- PricePerUnit: [, smithy_client_1.expectString, `pricePerUnit`],
4325
- PriceUnits: [, smithy_client_1.expectString, `priceUnits`],
4326
- ReservationArn: [, smithy_client_1.expectString, `reservationArn`],
4327
- ReservationName: [, smithy_client_1.expectString, `reservationName`],
4328
- ReservationState: [, smithy_client_1.expectString, `reservationState`],
4329
- ResourceSpecification: [, (_) => de_ResourceSpecification(_, context), `resourceSpecification`],
4330
- Start: [, smithy_client_1.expectString, `start`],
4331
- });
4332
- };
4333
- const de_ResourceSpecification = (output, context) => {
4334
- return (0, smithy_client_1.take)(output, {
4335
- ReservedBitrate: [, smithy_client_1.expectInt32, `reservedBitrate`],
4336
- ResourceType: [, smithy_client_1.expectString, `resourceType`],
4337
- });
4338
- };
4339
- const de_Source = (output, context) => {
4340
- return (0, smithy_client_1.take)(output, {
4341
- DataTransferSubscriberFeePercent: [, smithy_client_1.expectInt32, `dataTransferSubscriberFeePercent`],
4342
- Decryption: [, (_) => de_Encryption(_, context), `decryption`],
4343
- Description: [, smithy_client_1.expectString, `description`],
4344
- EntitlementArn: [, smithy_client_1.expectString, `entitlementArn`],
4345
- GatewayBridgeSource: [, (_) => de_GatewayBridgeSource(_, context), `gatewayBridgeSource`],
4346
- IngestIp: [, smithy_client_1.expectString, `ingestIp`],
4347
- IngestPort: [, smithy_client_1.expectInt32, `ingestPort`],
4348
- MediaStreamSourceConfigurations: [
4349
- ,
4350
- (_) => de___listOfMediaStreamSourceConfiguration(_, context),
4351
- `mediaStreamSourceConfigurations`,
4352
- ],
4353
- Name: [, smithy_client_1.expectString, `name`],
4354
- SenderControlPort: [, smithy_client_1.expectInt32, `senderControlPort`],
4355
- SenderIpAddress: [, smithy_client_1.expectString, `senderIpAddress`],
4356
- SourceArn: [, smithy_client_1.expectString, `sourceArn`],
4357
- Transport: [, (_) => de_Transport(_, context), `transport`],
4358
- VpcInterfaceName: [, smithy_client_1.expectString, `vpcInterfaceName`],
4359
- WhitelistCidr: [, smithy_client_1.expectString, `whitelistCidr`],
4360
- });
4361
- };
4362
- const de_SourcePriority = (output, context) => {
4363
- return (0, smithy_client_1.take)(output, {
4364
- PrimarySource: [, smithy_client_1.expectString, `primarySource`],
4365
- });
4366
- };
4367
- const de_Transport = (output, context) => {
4368
- return (0, smithy_client_1.take)(output, {
4369
- CidrAllowList: [, smithy_client_1._json, `cidrAllowList`],
4370
- MaxBitrate: [, smithy_client_1.expectInt32, `maxBitrate`],
4371
- MaxLatency: [, smithy_client_1.expectInt32, `maxLatency`],
4372
- MaxSyncBuffer: [, smithy_client_1.expectInt32, `maxSyncBuffer`],
4373
- MinLatency: [, smithy_client_1.expectInt32, `minLatency`],
4374
- Protocol: [, smithy_client_1.expectString, `protocol`],
4375
- RemoteId: [, smithy_client_1.expectString, `remoteId`],
4376
- SenderControlPort: [, smithy_client_1.expectInt32, `senderControlPort`],
4377
- SenderIpAddress: [, smithy_client_1.expectString, `senderIpAddress`],
4378
- SmoothingLatency: [, smithy_client_1.expectInt32, `smoothingLatency`],
4379
- SourceListenerAddress: [, smithy_client_1.expectString, `sourceListenerAddress`],
4380
- SourceListenerPort: [, smithy_client_1.expectInt32, `sourceListenerPort`],
4381
- StreamId: [, smithy_client_1.expectString, `streamId`],
4382
- });
4383
- };
4384
- const de_TransportMediaInfo = (output, context) => {
4385
- return (0, smithy_client_1.take)(output, {
4386
- Programs: [, (_) => de___listOfTransportStreamProgram(_, context), `programs`],
4387
- });
4388
- };
4389
- const de_TransportStream = (output, context) => {
4390
- return (0, smithy_client_1.take)(output, {
4391
- Channels: [, smithy_client_1.expectInt32, `channels`],
4392
- Codec: [, smithy_client_1.expectString, `codec`],
4393
- FrameRate: [, smithy_client_1.expectString, `frameRate`],
4394
- FrameResolution: [, (_) => de_FrameResolution(_, context), `frameResolution`],
4395
- Pid: [, smithy_client_1.expectInt32, `pid`],
4396
- SampleRate: [, smithy_client_1.expectInt32, `sampleRate`],
4397
- SampleSize: [, smithy_client_1.expectInt32, `sampleSize`],
4398
- StreamType: [, smithy_client_1.expectString, `streamType`],
4399
- });
4400
- };
4401
- const de_TransportStreamProgram = (output, context) => {
4402
- return (0, smithy_client_1.take)(output, {
4403
- PcrPid: [, smithy_client_1.expectInt32, `pcrPid`],
4404
- ProgramName: [, smithy_client_1.expectString, `programName`],
4405
- ProgramNumber: [, smithy_client_1.expectInt32, `programNumber`],
4406
- ProgramPid: [, smithy_client_1.expectInt32, `programPid`],
4407
- Streams: [, (_) => de___listOfTransportStream(_, context), `streams`],
4408
- });
4409
- };
4410
- const de_VpcInterface = (output, context) => {
4411
- return (0, smithy_client_1.take)(output, {
4412
- Name: [, smithy_client_1.expectString, `name`],
4413
- NetworkInterfaceIds: [, smithy_client_1._json, `networkInterfaceIds`],
4414
- NetworkInterfaceType: [, smithy_client_1.expectString, `networkInterfaceType`],
4415
- RoleArn: [, smithy_client_1.expectString, `roleArn`],
4416
- SecurityGroupIds: [, smithy_client_1._json, `securityGroupIds`],
4417
- SubnetId: [, smithy_client_1.expectString, `subnetId`],
4418
- });
4419
- };
4420
- const de_VpcInterfaceAttachment = (output, context) => {
4421
- return (0, smithy_client_1.take)(output, {
4422
- VpcInterfaceName: [, smithy_client_1.expectString, `vpcInterfaceName`],
4423
- });
4424
- };
4425
- const deserializeMetadata = (output) => ({
4426
- httpStatusCode: output.statusCode,
4427
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
4428
- extendedRequestId: output.headers["x-amz-id-2"],
4429
- cfId: output.headers["x-amz-cf-id"],
4430
- });
4431
- const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
4432
- const isSerializableHeaderValue = (value) => value !== undefined &&
4433
- value !== null &&
4434
- value !== "" &&
4435
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4436
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
4437
- const _F = "Force";
4438
- const _FA = "FilterArn";
4439
- const _MR = "MaxResults";
4440
- const _NT = "NextToken";
4441
- const _TK = "TagKeys";
4442
- const _f = "force";
4443
- const _fA = "filterArn";
4444
- const _mR = "maxResults";
4445
- const _nT = "nextToken";
4446
- const _tK = "tagKeys";
4447
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4448
- if (encoded.length) {
4449
- return JSON.parse(encoded);
4450
- }
4451
- return {};
4452
- });
4453
- const parseErrorBody = async (errorBody, context) => {
4454
- const value = await parseBody(errorBody, context);
4455
- value.message = value.message ?? value.Message;
4456
- return value;
4457
- };
4458
- const loadRestJsonErrorCode = (output, data) => {
4459
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4460
- const sanitizeErrorCode = (rawValue) => {
4461
- let cleanValue = rawValue;
4462
- if (typeof cleanValue === "number") {
4463
- cleanValue = cleanValue.toString();
4464
- }
4465
- if (cleanValue.indexOf(",") >= 0) {
4466
- cleanValue = cleanValue.split(",")[0];
4467
- }
4468
- if (cleanValue.indexOf(":") >= 0) {
4469
- cleanValue = cleanValue.split(":")[0];
4470
- }
4471
- if (cleanValue.indexOf("#") >= 0) {
4472
- cleanValue = cleanValue.split("#")[1];
4473
- }
4474
- return cleanValue;
4475
- };
4476
- const headerKey = findKey(output.headers, "x-amzn-errortype");
4477
- if (headerKey !== undefined) {
4478
- return sanitizeErrorCode(output.headers[headerKey]);
4479
- }
4480
- if (data.code !== undefined) {
4481
- return sanitizeErrorCode(data.code);
4482
- }
4483
- if (data["__type"] !== undefined) {
4484
- return sanitizeErrorCode(data["__type"]);
4485
- }
4486
- };
1
+ module.exports = require("../index.js");