@aws-sdk/client-mediaconnect 3.312.0 → 3.313.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/README.md +167 -7
  2. package/dist-cjs/MediaConnect.js +300 -0
  3. package/dist-cjs/commands/AddBridgeOutputsCommand.js +45 -0
  4. package/dist-cjs/commands/AddBridgeSourcesCommand.js +45 -0
  5. package/dist-cjs/commands/CreateBridgeCommand.js +45 -0
  6. package/dist-cjs/commands/CreateGatewayCommand.js +45 -0
  7. package/dist-cjs/commands/DeleteBridgeCommand.js +45 -0
  8. package/dist-cjs/commands/DeleteGatewayCommand.js +45 -0
  9. package/dist-cjs/commands/DeregisterGatewayInstanceCommand.js +45 -0
  10. package/dist-cjs/commands/DescribeBridgeCommand.js +45 -0
  11. package/dist-cjs/commands/DescribeGatewayCommand.js +45 -0
  12. package/dist-cjs/commands/DescribeGatewayInstanceCommand.js +45 -0
  13. package/dist-cjs/commands/ListBridgesCommand.js +45 -0
  14. package/dist-cjs/commands/ListGatewayInstancesCommand.js +45 -0
  15. package/dist-cjs/commands/ListGatewaysCommand.js +45 -0
  16. package/dist-cjs/commands/RemoveBridgeOutputCommand.js +45 -0
  17. package/dist-cjs/commands/RemoveBridgeSourceCommand.js +45 -0
  18. package/dist-cjs/commands/UpdateBridgeCommand.js +45 -0
  19. package/dist-cjs/commands/UpdateBridgeOutputCommand.js +45 -0
  20. package/dist-cjs/commands/UpdateBridgeSourceCommand.js +45 -0
  21. package/dist-cjs/commands/UpdateBridgeStateCommand.js +45 -0
  22. package/dist-cjs/commands/UpdateGatewayInstanceCommand.js +45 -0
  23. package/dist-cjs/commands/index.js +20 -0
  24. package/dist-cjs/endpoint/ruleset.js +3 -3
  25. package/dist-cjs/models/models_0.js +106 -20
  26. package/dist-cjs/pagination/ListBridgesPaginator.js +29 -0
  27. package/dist-cjs/pagination/ListGatewayInstancesPaginator.js +29 -0
  28. package/dist-cjs/pagination/ListGatewaysPaginator.js +29 -0
  29. package/dist-cjs/pagination/index.js +3 -0
  30. package/dist-cjs/protocols/Aws_restJson1.js +2045 -140
  31. package/dist-es/MediaConnect.js +300 -0
  32. package/dist-es/commands/AddBridgeOutputsCommand.js +41 -0
  33. package/dist-es/commands/AddBridgeSourcesCommand.js +41 -0
  34. package/dist-es/commands/CreateBridgeCommand.js +41 -0
  35. package/dist-es/commands/CreateGatewayCommand.js +41 -0
  36. package/dist-es/commands/DeleteBridgeCommand.js +41 -0
  37. package/dist-es/commands/DeleteGatewayCommand.js +41 -0
  38. package/dist-es/commands/DeregisterGatewayInstanceCommand.js +41 -0
  39. package/dist-es/commands/DescribeBridgeCommand.js +41 -0
  40. package/dist-es/commands/DescribeGatewayCommand.js +41 -0
  41. package/dist-es/commands/DescribeGatewayInstanceCommand.js +41 -0
  42. package/dist-es/commands/ListBridgesCommand.js +41 -0
  43. package/dist-es/commands/ListGatewayInstancesCommand.js +41 -0
  44. package/dist-es/commands/ListGatewaysCommand.js +41 -0
  45. package/dist-es/commands/RemoveBridgeOutputCommand.js +41 -0
  46. package/dist-es/commands/RemoveBridgeSourceCommand.js +41 -0
  47. package/dist-es/commands/UpdateBridgeCommand.js +41 -0
  48. package/dist-es/commands/UpdateBridgeOutputCommand.js +41 -0
  49. package/dist-es/commands/UpdateBridgeSourceCommand.js +41 -0
  50. package/dist-es/commands/UpdateBridgeStateCommand.js +41 -0
  51. package/dist-es/commands/UpdateGatewayInstanceCommand.js +41 -0
  52. package/dist-es/commands/index.js +20 -0
  53. package/dist-es/endpoint/ruleset.js +3 -3
  54. package/dist-es/models/models_0.js +102 -19
  55. package/dist-es/pagination/ListBridgesPaginator.js +25 -0
  56. package/dist-es/pagination/ListGatewayInstancesPaginator.js +25 -0
  57. package/dist-es/pagination/ListGatewaysPaginator.js +25 -0
  58. package/dist-es/pagination/index.js +3 -0
  59. package/dist-es/protocols/Aws_restJson1.js +2002 -137
  60. package/dist-types/MediaConnect.d.ts +160 -0
  61. package/dist-types/MediaConnectClient.d.ts +22 -2
  62. package/dist-types/commands/AddBridgeOutputsCommand.d.ts +96 -0
  63. package/dist-types/commands/AddBridgeSourcesCommand.d.ts +102 -0
  64. package/dist-types/commands/AddFlowOutputsCommand.d.ts +1 -1
  65. package/dist-types/commands/AddFlowSourcesCommand.d.ts +7 -1
  66. package/dist-types/commands/CreateBridgeCommand.d.ts +130 -0
  67. package/dist-types/commands/CreateFlowCommand.d.ts +15 -3
  68. package/dist-types/commands/CreateGatewayCommand.d.ts +93 -0
  69. package/dist-types/commands/DeleteBridgeCommand.d.ts +84 -0
  70. package/dist-types/commands/DeleteGatewayCommand.d.ts +84 -0
  71. package/dist-types/commands/DeregisterGatewayInstanceCommand.d.ts +85 -0
  72. package/dist-types/commands/DescribeBridgeCommand.d.ts +84 -0
  73. package/dist-types/commands/DescribeGatewayCommand.d.ts +84 -0
  74. package/dist-types/commands/DescribeGatewayInstanceCommand.d.ts +84 -0
  75. package/dist-types/commands/ListBridgesCommand.d.ts +80 -0
  76. package/dist-types/commands/ListGatewayInstancesCommand.d.ts +80 -0
  77. package/dist-types/commands/ListGatewaysCommand.d.ts +79 -0
  78. package/dist-types/commands/RemoveBridgeOutputCommand.d.ts +85 -0
  79. package/dist-types/commands/RemoveBridgeSourceCommand.d.ts +85 -0
  80. package/dist-types/commands/UpdateBridgeCommand.d.ts +99 -0
  81. package/dist-types/commands/UpdateBridgeOutputCommand.d.ts +92 -0
  82. package/dist-types/commands/UpdateBridgeSourceCommand.d.ts +97 -0
  83. package/dist-types/commands/UpdateBridgeStateCommand.d.ts +85 -0
  84. package/dist-types/commands/UpdateFlowOutputCommand.d.ts +1 -1
  85. package/dist-types/commands/UpdateFlowSourceCommand.d.ts +7 -1
  86. package/dist-types/commands/UpdateGatewayInstanceCommand.d.ts +85 -0
  87. package/dist-types/commands/index.d.ts +20 -0
  88. package/dist-types/models/models_0.d.ts +1340 -85
  89. package/dist-types/pagination/ListBridgesPaginator.d.ts +7 -0
  90. package/dist-types/pagination/ListGatewayInstancesPaginator.d.ts +7 -0
  91. package/dist-types/pagination/ListGatewaysPaginator.d.ts +7 -0
  92. package/dist-types/pagination/index.d.ts +3 -0
  93. package/dist-types/protocols/Aws_restJson1.d.ts +180 -0
  94. package/dist-types/ts3.4/MediaConnect.d.ts +340 -0
  95. package/dist-types/ts3.4/MediaConnectClient.d.ts +122 -2
  96. package/dist-types/ts3.4/commands/AddBridgeOutputsCommand.d.ts +37 -0
  97. package/dist-types/ts3.4/commands/AddBridgeSourcesCommand.d.ts +37 -0
  98. package/dist-types/ts3.4/commands/CreateBridgeCommand.d.ts +34 -0
  99. package/dist-types/ts3.4/commands/CreateGatewayCommand.d.ts +37 -0
  100. package/dist-types/ts3.4/commands/DeleteBridgeCommand.d.ts +34 -0
  101. package/dist-types/ts3.4/commands/DeleteGatewayCommand.d.ts +37 -0
  102. package/dist-types/ts3.4/commands/DeregisterGatewayInstanceCommand.d.ts +41 -0
  103. package/dist-types/ts3.4/commands/DescribeBridgeCommand.d.ts +37 -0
  104. package/dist-types/ts3.4/commands/DescribeGatewayCommand.d.ts +37 -0
  105. package/dist-types/ts3.4/commands/DescribeGatewayInstanceCommand.d.ts +41 -0
  106. package/dist-types/ts3.4/commands/ListBridgesCommand.d.ts +34 -0
  107. package/dist-types/ts3.4/commands/ListGatewayInstancesCommand.d.ts +41 -0
  108. package/dist-types/ts3.4/commands/ListGatewaysCommand.d.ts +34 -0
  109. package/dist-types/ts3.4/commands/RemoveBridgeOutputCommand.d.ts +38 -0
  110. package/dist-types/ts3.4/commands/RemoveBridgeSourceCommand.d.ts +38 -0
  111. package/dist-types/ts3.4/commands/UpdateBridgeCommand.d.ts +34 -0
  112. package/dist-types/ts3.4/commands/UpdateBridgeOutputCommand.d.ts +38 -0
  113. package/dist-types/ts3.4/commands/UpdateBridgeSourceCommand.d.ts +38 -0
  114. package/dist-types/ts3.4/commands/UpdateBridgeStateCommand.d.ts +38 -0
  115. package/dist-types/ts3.4/commands/UpdateGatewayInstanceCommand.d.ts +41 -0
  116. package/dist-types/ts3.4/commands/index.d.ts +20 -0
  117. package/dist-types/ts3.4/models/models_0.d.ts +442 -33
  118. package/dist-types/ts3.4/pagination/ListBridgesPaginator.d.ts +11 -0
  119. package/dist-types/ts3.4/pagination/ListGatewayInstancesPaginator.d.ts +11 -0
  120. package/dist-types/ts3.4/pagination/ListGatewaysPaginator.d.ts +11 -0
  121. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  122. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +240 -0
  123. package/package.json +1 -1
@@ -1,19 +1,34 @@
1
+ import { AddBridgeOutputsCommand, } from "./commands/AddBridgeOutputsCommand";
2
+ import { AddBridgeSourcesCommand, } from "./commands/AddBridgeSourcesCommand";
1
3
  import { AddFlowMediaStreamsCommand, } from "./commands/AddFlowMediaStreamsCommand";
2
4
  import { AddFlowOutputsCommand, } from "./commands/AddFlowOutputsCommand";
3
5
  import { AddFlowSourcesCommand, } from "./commands/AddFlowSourcesCommand";
4
6
  import { AddFlowVpcInterfacesCommand, } from "./commands/AddFlowVpcInterfacesCommand";
7
+ import { CreateBridgeCommand, } from "./commands/CreateBridgeCommand";
5
8
  import { CreateFlowCommand } from "./commands/CreateFlowCommand";
9
+ import { CreateGatewayCommand, } from "./commands/CreateGatewayCommand";
10
+ import { DeleteBridgeCommand, } from "./commands/DeleteBridgeCommand";
6
11
  import { DeleteFlowCommand } from "./commands/DeleteFlowCommand";
12
+ import { DeleteGatewayCommand, } from "./commands/DeleteGatewayCommand";
13
+ import { DeregisterGatewayInstanceCommand, } from "./commands/DeregisterGatewayInstanceCommand";
14
+ import { DescribeBridgeCommand, } from "./commands/DescribeBridgeCommand";
7
15
  import { DescribeFlowCommand, } from "./commands/DescribeFlowCommand";
16
+ import { DescribeGatewayCommand, } from "./commands/DescribeGatewayCommand";
17
+ import { DescribeGatewayInstanceCommand, } from "./commands/DescribeGatewayInstanceCommand";
8
18
  import { DescribeOfferingCommand, } from "./commands/DescribeOfferingCommand";
9
19
  import { DescribeReservationCommand, } from "./commands/DescribeReservationCommand";
10
20
  import { GrantFlowEntitlementsCommand, } from "./commands/GrantFlowEntitlementsCommand";
21
+ import { ListBridgesCommand } from "./commands/ListBridgesCommand";
11
22
  import { ListEntitlementsCommand, } from "./commands/ListEntitlementsCommand";
12
23
  import { ListFlowsCommand } from "./commands/ListFlowsCommand";
24
+ import { ListGatewayInstancesCommand, } from "./commands/ListGatewayInstancesCommand";
25
+ import { ListGatewaysCommand, } from "./commands/ListGatewaysCommand";
13
26
  import { ListOfferingsCommand, } from "./commands/ListOfferingsCommand";
14
27
  import { ListReservationsCommand, } from "./commands/ListReservationsCommand";
15
28
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
16
29
  import { PurchaseOfferingCommand, } from "./commands/PurchaseOfferingCommand";
30
+ import { RemoveBridgeOutputCommand, } from "./commands/RemoveBridgeOutputCommand";
31
+ import { RemoveBridgeSourceCommand, } from "./commands/RemoveBridgeSourceCommand";
17
32
  import { RemoveFlowMediaStreamCommand, } from "./commands/RemoveFlowMediaStreamCommand";
18
33
  import { RemoveFlowOutputCommand, } from "./commands/RemoveFlowOutputCommand";
19
34
  import { RemoveFlowSourceCommand, } from "./commands/RemoveFlowSourceCommand";
@@ -23,13 +38,46 @@ import { StartFlowCommand } from "./commands/StartFlowCommand";
23
38
  import { StopFlowCommand } from "./commands/StopFlowCommand";
24
39
  import { TagResourceCommand } from "./commands/TagResourceCommand";
25
40
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
41
+ import { UpdateBridgeCommand, } from "./commands/UpdateBridgeCommand";
42
+ import { UpdateBridgeOutputCommand, } from "./commands/UpdateBridgeOutputCommand";
43
+ import { UpdateBridgeSourceCommand, } from "./commands/UpdateBridgeSourceCommand";
44
+ import { UpdateBridgeStateCommand, } from "./commands/UpdateBridgeStateCommand";
26
45
  import { UpdateFlowCommand } from "./commands/UpdateFlowCommand";
27
46
  import { UpdateFlowEntitlementCommand, } from "./commands/UpdateFlowEntitlementCommand";
28
47
  import { UpdateFlowMediaStreamCommand, } from "./commands/UpdateFlowMediaStreamCommand";
29
48
  import { UpdateFlowOutputCommand, } from "./commands/UpdateFlowOutputCommand";
30
49
  import { UpdateFlowSourceCommand, } from "./commands/UpdateFlowSourceCommand";
50
+ import { UpdateGatewayInstanceCommand, } from "./commands/UpdateGatewayInstanceCommand";
31
51
  import { MediaConnectClient } from "./MediaConnectClient";
32
52
  export class MediaConnect extends MediaConnectClient {
53
+ addBridgeOutputs(args, optionsOrCb, cb) {
54
+ const command = new AddBridgeOutputsCommand(args);
55
+ if (typeof optionsOrCb === "function") {
56
+ this.send(command, optionsOrCb);
57
+ }
58
+ else if (typeof cb === "function") {
59
+ if (typeof optionsOrCb !== "object")
60
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
61
+ this.send(command, optionsOrCb || {}, cb);
62
+ }
63
+ else {
64
+ return this.send(command, optionsOrCb);
65
+ }
66
+ }
67
+ addBridgeSources(args, optionsOrCb, cb) {
68
+ const command = new AddBridgeSourcesCommand(args);
69
+ if (typeof optionsOrCb === "function") {
70
+ this.send(command, optionsOrCb);
71
+ }
72
+ else if (typeof cb === "function") {
73
+ if (typeof optionsOrCb !== "object")
74
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
75
+ this.send(command, optionsOrCb || {}, cb);
76
+ }
77
+ else {
78
+ return this.send(command, optionsOrCb);
79
+ }
80
+ }
33
81
  addFlowMediaStreams(args, optionsOrCb, cb) {
34
82
  const command = new AddFlowMediaStreamsCommand(args);
35
83
  if (typeof optionsOrCb === "function") {
@@ -86,6 +134,20 @@ export class MediaConnect extends MediaConnectClient {
86
134
  return this.send(command, optionsOrCb);
87
135
  }
88
136
  }
137
+ createBridge(args, optionsOrCb, cb) {
138
+ const command = new CreateBridgeCommand(args);
139
+ if (typeof optionsOrCb === "function") {
140
+ this.send(command, optionsOrCb);
141
+ }
142
+ else if (typeof cb === "function") {
143
+ if (typeof optionsOrCb !== "object")
144
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
+ this.send(command, optionsOrCb || {}, cb);
146
+ }
147
+ else {
148
+ return this.send(command, optionsOrCb);
149
+ }
150
+ }
89
151
  createFlow(args, optionsOrCb, cb) {
90
152
  const command = new CreateFlowCommand(args);
91
153
  if (typeof optionsOrCb === "function") {
@@ -100,6 +162,34 @@ export class MediaConnect extends MediaConnectClient {
100
162
  return this.send(command, optionsOrCb);
101
163
  }
102
164
  }
165
+ createGateway(args, optionsOrCb, cb) {
166
+ const command = new CreateGatewayCommand(args);
167
+ if (typeof optionsOrCb === "function") {
168
+ this.send(command, optionsOrCb);
169
+ }
170
+ else if (typeof cb === "function") {
171
+ if (typeof optionsOrCb !== "object")
172
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
+ this.send(command, optionsOrCb || {}, cb);
174
+ }
175
+ else {
176
+ return this.send(command, optionsOrCb);
177
+ }
178
+ }
179
+ deleteBridge(args, optionsOrCb, cb) {
180
+ const command = new DeleteBridgeCommand(args);
181
+ if (typeof optionsOrCb === "function") {
182
+ this.send(command, optionsOrCb);
183
+ }
184
+ else if (typeof cb === "function") {
185
+ if (typeof optionsOrCb !== "object")
186
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
+ this.send(command, optionsOrCb || {}, cb);
188
+ }
189
+ else {
190
+ return this.send(command, optionsOrCb);
191
+ }
192
+ }
103
193
  deleteFlow(args, optionsOrCb, cb) {
104
194
  const command = new DeleteFlowCommand(args);
105
195
  if (typeof optionsOrCb === "function") {
@@ -114,6 +204,48 @@ export class MediaConnect extends MediaConnectClient {
114
204
  return this.send(command, optionsOrCb);
115
205
  }
116
206
  }
207
+ deleteGateway(args, optionsOrCb, cb) {
208
+ const command = new DeleteGatewayCommand(args);
209
+ if (typeof optionsOrCb === "function") {
210
+ this.send(command, optionsOrCb);
211
+ }
212
+ else if (typeof cb === "function") {
213
+ if (typeof optionsOrCb !== "object")
214
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
+ this.send(command, optionsOrCb || {}, cb);
216
+ }
217
+ else {
218
+ return this.send(command, optionsOrCb);
219
+ }
220
+ }
221
+ deregisterGatewayInstance(args, optionsOrCb, cb) {
222
+ const command = new DeregisterGatewayInstanceCommand(args);
223
+ if (typeof optionsOrCb === "function") {
224
+ this.send(command, optionsOrCb);
225
+ }
226
+ else if (typeof cb === "function") {
227
+ if (typeof optionsOrCb !== "object")
228
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
+ this.send(command, optionsOrCb || {}, cb);
230
+ }
231
+ else {
232
+ return this.send(command, optionsOrCb);
233
+ }
234
+ }
235
+ describeBridge(args, optionsOrCb, cb) {
236
+ const command = new DescribeBridgeCommand(args);
237
+ if (typeof optionsOrCb === "function") {
238
+ this.send(command, optionsOrCb);
239
+ }
240
+ else if (typeof cb === "function") {
241
+ if (typeof optionsOrCb !== "object")
242
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
+ this.send(command, optionsOrCb || {}, cb);
244
+ }
245
+ else {
246
+ return this.send(command, optionsOrCb);
247
+ }
248
+ }
117
249
  describeFlow(args, optionsOrCb, cb) {
118
250
  const command = new DescribeFlowCommand(args);
119
251
  if (typeof optionsOrCb === "function") {
@@ -128,6 +260,34 @@ export class MediaConnect extends MediaConnectClient {
128
260
  return this.send(command, optionsOrCb);
129
261
  }
130
262
  }
263
+ describeGateway(args, optionsOrCb, cb) {
264
+ const command = new DescribeGatewayCommand(args);
265
+ if (typeof optionsOrCb === "function") {
266
+ this.send(command, optionsOrCb);
267
+ }
268
+ else if (typeof cb === "function") {
269
+ if (typeof optionsOrCb !== "object")
270
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
+ this.send(command, optionsOrCb || {}, cb);
272
+ }
273
+ else {
274
+ return this.send(command, optionsOrCb);
275
+ }
276
+ }
277
+ describeGatewayInstance(args, optionsOrCb, cb) {
278
+ const command = new DescribeGatewayInstanceCommand(args);
279
+ if (typeof optionsOrCb === "function") {
280
+ this.send(command, optionsOrCb);
281
+ }
282
+ else if (typeof cb === "function") {
283
+ if (typeof optionsOrCb !== "object")
284
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
+ this.send(command, optionsOrCb || {}, cb);
286
+ }
287
+ else {
288
+ return this.send(command, optionsOrCb);
289
+ }
290
+ }
131
291
  describeOffering(args, optionsOrCb, cb) {
132
292
  const command = new DescribeOfferingCommand(args);
133
293
  if (typeof optionsOrCb === "function") {
@@ -170,6 +330,20 @@ export class MediaConnect extends MediaConnectClient {
170
330
  return this.send(command, optionsOrCb);
171
331
  }
172
332
  }
333
+ listBridges(args, optionsOrCb, cb) {
334
+ const command = new ListBridgesCommand(args);
335
+ if (typeof optionsOrCb === "function") {
336
+ this.send(command, optionsOrCb);
337
+ }
338
+ else if (typeof cb === "function") {
339
+ if (typeof optionsOrCb !== "object")
340
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
341
+ this.send(command, optionsOrCb || {}, cb);
342
+ }
343
+ else {
344
+ return this.send(command, optionsOrCb);
345
+ }
346
+ }
173
347
  listEntitlements(args, optionsOrCb, cb) {
174
348
  const command = new ListEntitlementsCommand(args);
175
349
  if (typeof optionsOrCb === "function") {
@@ -198,6 +372,34 @@ export class MediaConnect extends MediaConnectClient {
198
372
  return this.send(command, optionsOrCb);
199
373
  }
200
374
  }
375
+ listGatewayInstances(args, optionsOrCb, cb) {
376
+ const command = new ListGatewayInstancesCommand(args);
377
+ if (typeof optionsOrCb === "function") {
378
+ this.send(command, optionsOrCb);
379
+ }
380
+ else if (typeof cb === "function") {
381
+ if (typeof optionsOrCb !== "object")
382
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
383
+ this.send(command, optionsOrCb || {}, cb);
384
+ }
385
+ else {
386
+ return this.send(command, optionsOrCb);
387
+ }
388
+ }
389
+ listGateways(args, optionsOrCb, cb) {
390
+ const command = new ListGatewaysCommand(args);
391
+ if (typeof optionsOrCb === "function") {
392
+ this.send(command, optionsOrCb);
393
+ }
394
+ else if (typeof cb === "function") {
395
+ if (typeof optionsOrCb !== "object")
396
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
397
+ this.send(command, optionsOrCb || {}, cb);
398
+ }
399
+ else {
400
+ return this.send(command, optionsOrCb);
401
+ }
402
+ }
201
403
  listOfferings(args, optionsOrCb, cb) {
202
404
  const command = new ListOfferingsCommand(args);
203
405
  if (typeof optionsOrCb === "function") {
@@ -254,6 +456,34 @@ export class MediaConnect extends MediaConnectClient {
254
456
  return this.send(command, optionsOrCb);
255
457
  }
256
458
  }
459
+ removeBridgeOutput(args, optionsOrCb, cb) {
460
+ const command = new RemoveBridgeOutputCommand(args);
461
+ if (typeof optionsOrCb === "function") {
462
+ this.send(command, optionsOrCb);
463
+ }
464
+ else if (typeof cb === "function") {
465
+ if (typeof optionsOrCb !== "object")
466
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
467
+ this.send(command, optionsOrCb || {}, cb);
468
+ }
469
+ else {
470
+ return this.send(command, optionsOrCb);
471
+ }
472
+ }
473
+ removeBridgeSource(args, optionsOrCb, cb) {
474
+ const command = new RemoveBridgeSourceCommand(args);
475
+ if (typeof optionsOrCb === "function") {
476
+ this.send(command, optionsOrCb);
477
+ }
478
+ else if (typeof cb === "function") {
479
+ if (typeof optionsOrCb !== "object")
480
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
481
+ this.send(command, optionsOrCb || {}, cb);
482
+ }
483
+ else {
484
+ return this.send(command, optionsOrCb);
485
+ }
486
+ }
257
487
  removeFlowMediaStream(args, optionsOrCb, cb) {
258
488
  const command = new RemoveFlowMediaStreamCommand(args);
259
489
  if (typeof optionsOrCb === "function") {
@@ -380,6 +610,62 @@ export class MediaConnect extends MediaConnectClient {
380
610
  return this.send(command, optionsOrCb);
381
611
  }
382
612
  }
613
+ updateBridge(args, optionsOrCb, cb) {
614
+ const command = new UpdateBridgeCommand(args);
615
+ if (typeof optionsOrCb === "function") {
616
+ this.send(command, optionsOrCb);
617
+ }
618
+ else if (typeof cb === "function") {
619
+ if (typeof optionsOrCb !== "object")
620
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
621
+ this.send(command, optionsOrCb || {}, cb);
622
+ }
623
+ else {
624
+ return this.send(command, optionsOrCb);
625
+ }
626
+ }
627
+ updateBridgeOutput(args, optionsOrCb, cb) {
628
+ const command = new UpdateBridgeOutputCommand(args);
629
+ if (typeof optionsOrCb === "function") {
630
+ this.send(command, optionsOrCb);
631
+ }
632
+ else if (typeof cb === "function") {
633
+ if (typeof optionsOrCb !== "object")
634
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
635
+ this.send(command, optionsOrCb || {}, cb);
636
+ }
637
+ else {
638
+ return this.send(command, optionsOrCb);
639
+ }
640
+ }
641
+ updateBridgeSource(args, optionsOrCb, cb) {
642
+ const command = new UpdateBridgeSourceCommand(args);
643
+ if (typeof optionsOrCb === "function") {
644
+ this.send(command, optionsOrCb);
645
+ }
646
+ else if (typeof cb === "function") {
647
+ if (typeof optionsOrCb !== "object")
648
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
649
+ this.send(command, optionsOrCb || {}, cb);
650
+ }
651
+ else {
652
+ return this.send(command, optionsOrCb);
653
+ }
654
+ }
655
+ updateBridgeState(args, optionsOrCb, cb) {
656
+ const command = new UpdateBridgeStateCommand(args);
657
+ if (typeof optionsOrCb === "function") {
658
+ this.send(command, optionsOrCb);
659
+ }
660
+ else if (typeof cb === "function") {
661
+ if (typeof optionsOrCb !== "object")
662
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
663
+ this.send(command, optionsOrCb || {}, cb);
664
+ }
665
+ else {
666
+ return this.send(command, optionsOrCb);
667
+ }
668
+ }
383
669
  updateFlow(args, optionsOrCb, cb) {
384
670
  const command = new UpdateFlowCommand(args);
385
671
  if (typeof optionsOrCb === "function") {
@@ -450,4 +736,18 @@ export class MediaConnect extends MediaConnectClient {
450
736
  return this.send(command, optionsOrCb);
451
737
  }
452
738
  }
739
+ updateGatewayInstance(args, optionsOrCb, cb) {
740
+ const command = new UpdateGatewayInstanceCommand(args);
741
+ if (typeof optionsOrCb === "function") {
742
+ this.send(command, optionsOrCb);
743
+ }
744
+ else if (typeof cb === "function") {
745
+ if (typeof optionsOrCb !== "object")
746
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
747
+ this.send(command, optionsOrCb || {}, cb);
748
+ }
749
+ else {
750
+ return this.send(command, optionsOrCb);
751
+ }
752
+ }
453
753
  }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_AddBridgeOutputsCommand, se_AddBridgeOutputsCommand } from "../protocols/Aws_restJson1";
5
+ export class AddBridgeOutputsCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, AddBridgeOutputsCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "MediaConnectClient";
24
+ const commandName = "AddBridgeOutputsCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_AddBridgeOutputsCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_AddBridgeOutputsCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_AddBridgeSourcesCommand, se_AddBridgeSourcesCommand } from "../protocols/Aws_restJson1";
5
+ export class AddBridgeSourcesCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, AddBridgeSourcesCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "MediaConnectClient";
24
+ const commandName = "AddBridgeSourcesCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_AddBridgeSourcesCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_AddBridgeSourcesCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CreateBridgeCommand, se_CreateBridgeCommand } from "../protocols/Aws_restJson1";
5
+ export class CreateBridgeCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateBridgeCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "MediaConnectClient";
24
+ const commandName = "CreateBridgeCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_CreateBridgeCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_CreateBridgeCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CreateGatewayCommand, se_CreateGatewayCommand } from "../protocols/Aws_restJson1";
5
+ export class CreateGatewayCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateGatewayCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "MediaConnectClient";
24
+ const commandName = "CreateGatewayCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_CreateGatewayCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_CreateGatewayCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeleteBridgeCommand, se_DeleteBridgeCommand } from "../protocols/Aws_restJson1";
5
+ export class DeleteBridgeCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteBridgeCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "MediaConnectClient";
24
+ const commandName = "DeleteBridgeCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_DeleteBridgeCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_DeleteBridgeCommand(output, context);
40
+ }
41
+ }
@@ -0,0 +1,41 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeleteGatewayCommand, se_DeleteGatewayCommand } from "../protocols/Aws_restJson1";
5
+ export class DeleteGatewayCommand extends $Command {
6
+ static getEndpointParameterInstructions() {
7
+ return {
8
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
9
+ Endpoint: { type: "builtInParams", name: "endpoint" },
10
+ Region: { type: "builtInParams", name: "region" },
11
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
12
+ };
13
+ }
14
+ constructor(input) {
15
+ super();
16
+ this.input = input;
17
+ }
18
+ resolveMiddleware(clientStack, configuration, options) {
19
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteGatewayCommand.getEndpointParameterInstructions()));
21
+ const stack = clientStack.concat(this.middlewareStack);
22
+ const { logger } = configuration;
23
+ const clientName = "MediaConnectClient";
24
+ const commandName = "DeleteGatewayCommand";
25
+ const handlerExecutionContext = {
26
+ logger,
27
+ clientName,
28
+ commandName,
29
+ inputFilterSensitiveLog: (_) => _,
30
+ outputFilterSensitiveLog: (_) => _,
31
+ };
32
+ const { requestHandler } = configuration;
33
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
+ }
35
+ serialize(input, context) {
36
+ return se_DeleteGatewayCommand(input, context);
37
+ }
38
+ deserialize(output, context) {
39
+ return de_DeleteGatewayCommand(output, context);
40
+ }
41
+ }