@aws-sdk/client-mediaconnect 3.478.0 → 3.481.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 (226) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/MediaConnect.js +2 -0
  3. package/dist-cjs/commands/AddBridgeOutputsCommand.js +18 -41
  4. package/dist-cjs/commands/AddBridgeSourcesCommand.js +18 -41
  5. package/dist-cjs/commands/AddFlowMediaStreamsCommand.js +18 -41
  6. package/dist-cjs/commands/AddFlowOutputsCommand.js +18 -41
  7. package/dist-cjs/commands/AddFlowSourcesCommand.js +18 -41
  8. package/dist-cjs/commands/AddFlowVpcInterfacesCommand.js +18 -41
  9. package/dist-cjs/commands/CreateBridgeCommand.js +18 -41
  10. package/dist-cjs/commands/CreateFlowCommand.js +18 -41
  11. package/dist-cjs/commands/CreateGatewayCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteBridgeCommand.js +18 -41
  13. package/dist-cjs/commands/DeleteFlowCommand.js +18 -41
  14. package/dist-cjs/commands/DeleteGatewayCommand.js +18 -41
  15. package/dist-cjs/commands/DeregisterGatewayInstanceCommand.js +18 -41
  16. package/dist-cjs/commands/DescribeBridgeCommand.js +18 -41
  17. package/dist-cjs/commands/DescribeFlowCommand.js +18 -41
  18. package/dist-cjs/commands/DescribeFlowSourceMetadataCommand.js +28 -0
  19. package/dist-cjs/commands/DescribeGatewayCommand.js +18 -41
  20. package/dist-cjs/commands/DescribeGatewayInstanceCommand.js +18 -41
  21. package/dist-cjs/commands/DescribeOfferingCommand.js +18 -41
  22. package/dist-cjs/commands/DescribeReservationCommand.js +18 -41
  23. package/dist-cjs/commands/GrantFlowEntitlementsCommand.js +18 -41
  24. package/dist-cjs/commands/ListBridgesCommand.js +18 -41
  25. package/dist-cjs/commands/ListEntitlementsCommand.js +18 -41
  26. package/dist-cjs/commands/ListFlowsCommand.js +18 -41
  27. package/dist-cjs/commands/ListGatewayInstancesCommand.js +18 -41
  28. package/dist-cjs/commands/ListGatewaysCommand.js +18 -41
  29. package/dist-cjs/commands/ListOfferingsCommand.js +18 -41
  30. package/dist-cjs/commands/ListReservationsCommand.js +18 -41
  31. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  32. package/dist-cjs/commands/PurchaseOfferingCommand.js +18 -41
  33. package/dist-cjs/commands/RemoveBridgeOutputCommand.js +18 -41
  34. package/dist-cjs/commands/RemoveBridgeSourceCommand.js +18 -41
  35. package/dist-cjs/commands/RemoveFlowMediaStreamCommand.js +18 -41
  36. package/dist-cjs/commands/RemoveFlowOutputCommand.js +18 -41
  37. package/dist-cjs/commands/RemoveFlowSourceCommand.js +18 -41
  38. package/dist-cjs/commands/RemoveFlowVpcInterfaceCommand.js +18 -41
  39. package/dist-cjs/commands/RevokeFlowEntitlementCommand.js +18 -41
  40. package/dist-cjs/commands/StartFlowCommand.js +18 -41
  41. package/dist-cjs/commands/StopFlowCommand.js +18 -41
  42. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  43. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  44. package/dist-cjs/commands/UpdateBridgeCommand.js +18 -41
  45. package/dist-cjs/commands/UpdateBridgeOutputCommand.js +18 -41
  46. package/dist-cjs/commands/UpdateBridgeSourceCommand.js +18 -41
  47. package/dist-cjs/commands/UpdateBridgeStateCommand.js +18 -41
  48. package/dist-cjs/commands/UpdateFlowCommand.js +18 -41
  49. package/dist-cjs/commands/UpdateFlowEntitlementCommand.js +18 -41
  50. package/dist-cjs/commands/UpdateFlowMediaStreamCommand.js +18 -41
  51. package/dist-cjs/commands/UpdateFlowOutputCommand.js +18 -41
  52. package/dist-cjs/commands/UpdateFlowSourceCommand.js +18 -41
  53. package/dist-cjs/commands/UpdateGatewayInstanceCommand.js +18 -41
  54. package/dist-cjs/commands/index.js +1 -0
  55. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  56. package/dist-cjs/protocols/Aws_restJson1.js +113 -2
  57. package/dist-es/MediaConnect.js +2 -0
  58. package/dist-es/commands/AddBridgeOutputsCommand.js +18 -41
  59. package/dist-es/commands/AddBridgeSourcesCommand.js +18 -41
  60. package/dist-es/commands/AddFlowMediaStreamsCommand.js +18 -41
  61. package/dist-es/commands/AddFlowOutputsCommand.js +18 -41
  62. package/dist-es/commands/AddFlowSourcesCommand.js +18 -41
  63. package/dist-es/commands/AddFlowVpcInterfacesCommand.js +18 -41
  64. package/dist-es/commands/CreateBridgeCommand.js +18 -41
  65. package/dist-es/commands/CreateFlowCommand.js +18 -41
  66. package/dist-es/commands/CreateGatewayCommand.js +18 -41
  67. package/dist-es/commands/DeleteBridgeCommand.js +18 -41
  68. package/dist-es/commands/DeleteFlowCommand.js +18 -41
  69. package/dist-es/commands/DeleteGatewayCommand.js +18 -41
  70. package/dist-es/commands/DeregisterGatewayInstanceCommand.js +18 -41
  71. package/dist-es/commands/DescribeBridgeCommand.js +18 -41
  72. package/dist-es/commands/DescribeFlowCommand.js +18 -41
  73. package/dist-es/commands/DescribeFlowSourceMetadataCommand.js +24 -0
  74. package/dist-es/commands/DescribeGatewayCommand.js +18 -41
  75. package/dist-es/commands/DescribeGatewayInstanceCommand.js +18 -41
  76. package/dist-es/commands/DescribeOfferingCommand.js +18 -41
  77. package/dist-es/commands/DescribeReservationCommand.js +18 -41
  78. package/dist-es/commands/GrantFlowEntitlementsCommand.js +18 -41
  79. package/dist-es/commands/ListBridgesCommand.js +18 -41
  80. package/dist-es/commands/ListEntitlementsCommand.js +18 -41
  81. package/dist-es/commands/ListFlowsCommand.js +18 -41
  82. package/dist-es/commands/ListGatewayInstancesCommand.js +18 -41
  83. package/dist-es/commands/ListGatewaysCommand.js +18 -41
  84. package/dist-es/commands/ListOfferingsCommand.js +18 -41
  85. package/dist-es/commands/ListReservationsCommand.js +18 -41
  86. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  87. package/dist-es/commands/PurchaseOfferingCommand.js +18 -41
  88. package/dist-es/commands/RemoveBridgeOutputCommand.js +18 -41
  89. package/dist-es/commands/RemoveBridgeSourceCommand.js +18 -41
  90. package/dist-es/commands/RemoveFlowMediaStreamCommand.js +18 -41
  91. package/dist-es/commands/RemoveFlowOutputCommand.js +18 -41
  92. package/dist-es/commands/RemoveFlowSourceCommand.js +18 -41
  93. package/dist-es/commands/RemoveFlowVpcInterfaceCommand.js +18 -41
  94. package/dist-es/commands/RevokeFlowEntitlementCommand.js +18 -41
  95. package/dist-es/commands/StartFlowCommand.js +18 -41
  96. package/dist-es/commands/StopFlowCommand.js +18 -41
  97. package/dist-es/commands/TagResourceCommand.js +18 -41
  98. package/dist-es/commands/UntagResourceCommand.js +18 -41
  99. package/dist-es/commands/UpdateBridgeCommand.js +18 -41
  100. package/dist-es/commands/UpdateBridgeOutputCommand.js +18 -41
  101. package/dist-es/commands/UpdateBridgeSourceCommand.js +18 -41
  102. package/dist-es/commands/UpdateBridgeStateCommand.js +18 -41
  103. package/dist-es/commands/UpdateFlowCommand.js +18 -41
  104. package/dist-es/commands/UpdateFlowEntitlementCommand.js +18 -41
  105. package/dist-es/commands/UpdateFlowMediaStreamCommand.js +18 -41
  106. package/dist-es/commands/UpdateFlowOutputCommand.js +18 -41
  107. package/dist-es/commands/UpdateFlowSourceCommand.js +18 -41
  108. package/dist-es/commands/UpdateGatewayInstanceCommand.js +18 -41
  109. package/dist-es/commands/index.js +1 -0
  110. package/dist-es/endpoint/EndpointParameters.js +6 -0
  111. package/dist-es/protocols/Aws_restJson1.js +109 -1
  112. package/dist-types/MediaConnect.d.ts +7 -0
  113. package/dist-types/MediaConnectClient.d.ts +3 -2
  114. package/dist-types/commands/AddBridgeOutputsCommand.d.ts +6 -21
  115. package/dist-types/commands/AddBridgeSourcesCommand.d.ts +6 -21
  116. package/dist-types/commands/AddFlowMediaStreamsCommand.d.ts +6 -21
  117. package/dist-types/commands/AddFlowOutputsCommand.d.ts +6 -21
  118. package/dist-types/commands/AddFlowSourcesCommand.d.ts +6 -21
  119. package/dist-types/commands/AddFlowVpcInterfacesCommand.d.ts +6 -21
  120. package/dist-types/commands/CreateBridgeCommand.d.ts +6 -21
  121. package/dist-types/commands/CreateFlowCommand.d.ts +6 -21
  122. package/dist-types/commands/CreateGatewayCommand.d.ts +6 -21
  123. package/dist-types/commands/DeleteBridgeCommand.d.ts +6 -21
  124. package/dist-types/commands/DeleteFlowCommand.d.ts +6 -21
  125. package/dist-types/commands/DeleteGatewayCommand.d.ts +6 -21
  126. package/dist-types/commands/DeregisterGatewayInstanceCommand.d.ts +6 -21
  127. package/dist-types/commands/DescribeBridgeCommand.d.ts +6 -21
  128. package/dist-types/commands/DescribeFlowCommand.d.ts +6 -21
  129. package/dist-types/commands/DescribeFlowSourceMetadataCommand.d.ts +109 -0
  130. package/dist-types/commands/DescribeGatewayCommand.d.ts +6 -21
  131. package/dist-types/commands/DescribeGatewayInstanceCommand.d.ts +6 -21
  132. package/dist-types/commands/DescribeOfferingCommand.d.ts +6 -21
  133. package/dist-types/commands/DescribeReservationCommand.d.ts +6 -21
  134. package/dist-types/commands/GrantFlowEntitlementsCommand.d.ts +6 -21
  135. package/dist-types/commands/ListBridgesCommand.d.ts +6 -21
  136. package/dist-types/commands/ListEntitlementsCommand.d.ts +6 -21
  137. package/dist-types/commands/ListFlowsCommand.d.ts +6 -21
  138. package/dist-types/commands/ListGatewayInstancesCommand.d.ts +6 -21
  139. package/dist-types/commands/ListGatewaysCommand.d.ts +6 -21
  140. package/dist-types/commands/ListOfferingsCommand.d.ts +6 -21
  141. package/dist-types/commands/ListReservationsCommand.d.ts +6 -21
  142. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  143. package/dist-types/commands/PurchaseOfferingCommand.d.ts +6 -21
  144. package/dist-types/commands/RemoveBridgeOutputCommand.d.ts +6 -21
  145. package/dist-types/commands/RemoveBridgeSourceCommand.d.ts +6 -21
  146. package/dist-types/commands/RemoveFlowMediaStreamCommand.d.ts +6 -21
  147. package/dist-types/commands/RemoveFlowOutputCommand.d.ts +6 -21
  148. package/dist-types/commands/RemoveFlowSourceCommand.d.ts +6 -21
  149. package/dist-types/commands/RemoveFlowVpcInterfaceCommand.d.ts +6 -21
  150. package/dist-types/commands/RevokeFlowEntitlementCommand.d.ts +6 -21
  151. package/dist-types/commands/StartFlowCommand.d.ts +6 -21
  152. package/dist-types/commands/StopFlowCommand.d.ts +6 -21
  153. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  154. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  155. package/dist-types/commands/UpdateBridgeCommand.d.ts +6 -21
  156. package/dist-types/commands/UpdateBridgeOutputCommand.d.ts +6 -21
  157. package/dist-types/commands/UpdateBridgeSourceCommand.d.ts +6 -21
  158. package/dist-types/commands/UpdateBridgeStateCommand.d.ts +6 -21
  159. package/dist-types/commands/UpdateFlowCommand.d.ts +6 -21
  160. package/dist-types/commands/UpdateFlowEntitlementCommand.d.ts +6 -21
  161. package/dist-types/commands/UpdateFlowMediaStreamCommand.d.ts +6 -21
  162. package/dist-types/commands/UpdateFlowOutputCommand.d.ts +6 -21
  163. package/dist-types/commands/UpdateFlowSourceCommand.d.ts +6 -21
  164. package/dist-types/commands/UpdateGatewayInstanceCommand.d.ts +6 -21
  165. package/dist-types/commands/index.d.ts +1 -0
  166. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  167. package/dist-types/models/models_0.d.ts +139 -0
  168. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  169. package/dist-types/ts3.4/MediaConnect.d.ts +17 -0
  170. package/dist-types/ts3.4/MediaConnectClient.d.ts +6 -0
  171. package/dist-types/ts3.4/commands/AddBridgeOutputsCommand.d.ts +14 -23
  172. package/dist-types/ts3.4/commands/AddBridgeSourcesCommand.d.ts +14 -23
  173. package/dist-types/ts3.4/commands/AddFlowMediaStreamsCommand.d.ts +14 -23
  174. package/dist-types/ts3.4/commands/AddFlowOutputsCommand.d.ts +14 -23
  175. package/dist-types/ts3.4/commands/AddFlowSourcesCommand.d.ts +14 -23
  176. package/dist-types/ts3.4/commands/AddFlowVpcInterfacesCommand.d.ts +12 -24
  177. package/dist-types/ts3.4/commands/CreateBridgeCommand.d.ts +14 -23
  178. package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +14 -23
  179. package/dist-types/ts3.4/commands/CreateGatewayCommand.d.ts +14 -23
  180. package/dist-types/ts3.4/commands/DeleteBridgeCommand.d.ts +14 -23
  181. package/dist-types/ts3.4/commands/DeleteFlowCommand.d.ts +14 -23
  182. package/dist-types/ts3.4/commands/DeleteGatewayCommand.d.ts +14 -23
  183. package/dist-types/ts3.4/commands/DeregisterGatewayInstanceCommand.d.ts +12 -24
  184. package/dist-types/ts3.4/commands/DescribeBridgeCommand.d.ts +14 -23
  185. package/dist-types/ts3.4/commands/DescribeFlowCommand.d.ts +14 -23
  186. package/dist-types/ts3.4/commands/DescribeFlowSourceMetadataCommand.d.ts +30 -0
  187. package/dist-types/ts3.4/commands/DescribeGatewayCommand.d.ts +14 -23
  188. package/dist-types/ts3.4/commands/DescribeGatewayInstanceCommand.d.ts +12 -24
  189. package/dist-types/ts3.4/commands/DescribeOfferingCommand.d.ts +14 -23
  190. package/dist-types/ts3.4/commands/DescribeReservationCommand.d.ts +14 -23
  191. package/dist-types/ts3.4/commands/GrantFlowEntitlementsCommand.d.ts +12 -24
  192. package/dist-types/ts3.4/commands/ListBridgesCommand.d.ts +14 -23
  193. package/dist-types/ts3.4/commands/ListEntitlementsCommand.d.ts +14 -23
  194. package/dist-types/ts3.4/commands/ListFlowsCommand.d.ts +14 -23
  195. package/dist-types/ts3.4/commands/ListGatewayInstancesCommand.d.ts +12 -24
  196. package/dist-types/ts3.4/commands/ListGatewaysCommand.d.ts +14 -23
  197. package/dist-types/ts3.4/commands/ListOfferingsCommand.d.ts +14 -23
  198. package/dist-types/ts3.4/commands/ListReservationsCommand.d.ts +14 -23
  199. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  200. package/dist-types/ts3.4/commands/PurchaseOfferingCommand.d.ts +14 -23
  201. package/dist-types/ts3.4/commands/RemoveBridgeOutputCommand.d.ts +14 -23
  202. package/dist-types/ts3.4/commands/RemoveBridgeSourceCommand.d.ts +14 -23
  203. package/dist-types/ts3.4/commands/RemoveFlowMediaStreamCommand.d.ts +12 -24
  204. package/dist-types/ts3.4/commands/RemoveFlowOutputCommand.d.ts +14 -23
  205. package/dist-types/ts3.4/commands/RemoveFlowSourceCommand.d.ts +14 -23
  206. package/dist-types/ts3.4/commands/RemoveFlowVpcInterfaceCommand.d.ts +12 -24
  207. package/dist-types/ts3.4/commands/RevokeFlowEntitlementCommand.d.ts +12 -24
  208. package/dist-types/ts3.4/commands/StartFlowCommand.d.ts +14 -23
  209. package/dist-types/ts3.4/commands/StopFlowCommand.d.ts +14 -23
  210. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  211. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  212. package/dist-types/ts3.4/commands/UpdateBridgeCommand.d.ts +14 -23
  213. package/dist-types/ts3.4/commands/UpdateBridgeOutputCommand.d.ts +14 -23
  214. package/dist-types/ts3.4/commands/UpdateBridgeSourceCommand.d.ts +14 -23
  215. package/dist-types/ts3.4/commands/UpdateBridgeStateCommand.d.ts +14 -23
  216. package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +14 -23
  217. package/dist-types/ts3.4/commands/UpdateFlowEntitlementCommand.d.ts +12 -24
  218. package/dist-types/ts3.4/commands/UpdateFlowMediaStreamCommand.d.ts +12 -24
  219. package/dist-types/ts3.4/commands/UpdateFlowOutputCommand.d.ts +14 -23
  220. package/dist-types/ts3.4/commands/UpdateFlowSourceCommand.d.ts +14 -23
  221. package/dist-types/ts3.4/commands/UpdateGatewayInstanceCommand.d.ts +12 -24
  222. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  223. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  224. package/dist-types/ts3.4/models/models_0.d.ts +33 -0
  225. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  226. package/package.json +9 -9
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateFlowEntitlementCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateFlowEntitlementCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "MediaConnectClient";
29
- const commandName = "UpdateFlowEntitlementCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "MediaConnect",
38
- operation: "UpdateFlowEntitlement",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateFlowEntitlementCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateFlowEntitlementCommand)(output, context);
49
- }
10
+ class UpdateFlowEntitlementCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("MediaConnect", "UpdateFlowEntitlement", {})
22
+ .n("MediaConnectClient", "UpdateFlowEntitlementCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateFlowEntitlementCommand)
25
+ .de(Aws_restJson1_1.de_UpdateFlowEntitlementCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateFlowEntitlementCommand = UpdateFlowEntitlementCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateFlowMediaStreamCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateFlowMediaStreamCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "MediaConnectClient";
29
- const commandName = "UpdateFlowMediaStreamCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "MediaConnect",
38
- operation: "UpdateFlowMediaStream",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateFlowMediaStreamCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateFlowMediaStreamCommand)(output, context);
49
- }
10
+ class UpdateFlowMediaStreamCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("MediaConnect", "UpdateFlowMediaStream", {})
22
+ .n("MediaConnectClient", "UpdateFlowMediaStreamCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateFlowMediaStreamCommand)
25
+ .de(Aws_restJson1_1.de_UpdateFlowMediaStreamCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateFlowMediaStreamCommand = UpdateFlowMediaStreamCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateFlowOutputCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateFlowOutputCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "MediaConnectClient";
29
- const commandName = "UpdateFlowOutputCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "MediaConnect",
38
- operation: "UpdateFlowOutput",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateFlowOutputCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateFlowOutputCommand)(output, context);
49
- }
10
+ class UpdateFlowOutputCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("MediaConnect", "UpdateFlowOutput", {})
22
+ .n("MediaConnectClient", "UpdateFlowOutputCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateFlowOutputCommand)
25
+ .de(Aws_restJson1_1.de_UpdateFlowOutputCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateFlowOutputCommand = UpdateFlowOutputCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateFlowSourceCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateFlowSourceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "MediaConnectClient";
29
- const commandName = "UpdateFlowSourceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "MediaConnect",
38
- operation: "UpdateFlowSource",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateFlowSourceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateFlowSourceCommand)(output, context);
49
- }
10
+ class UpdateFlowSourceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("MediaConnect", "UpdateFlowSource", {})
22
+ .n("MediaConnectClient", "UpdateFlowSourceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateFlowSourceCommand)
25
+ .de(Aws_restJson1_1.de_UpdateFlowSourceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateFlowSourceCommand = UpdateFlowSourceCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateGatewayInstanceCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateGatewayInstanceCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "MediaConnectClient";
29
- const commandName = "UpdateGatewayInstanceCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "MediaConnect",
38
- operation: "UpdateGatewayInstance",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateGatewayInstanceCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateGatewayInstanceCommand)(output, context);
49
- }
10
+ class UpdateGatewayInstanceCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("MediaConnect", "UpdateGatewayInstance", {})
22
+ .n("MediaConnectClient", "UpdateGatewayInstanceCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateGatewayInstanceCommand)
25
+ .de(Aws_restJson1_1.de_UpdateGatewayInstanceCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateGatewayInstanceCommand = UpdateGatewayInstanceCommand;
@@ -16,6 +16,7 @@ tslib_1.__exportStar(require("./DeleteGatewayCommand"), exports);
16
16
  tslib_1.__exportStar(require("./DeregisterGatewayInstanceCommand"), exports);
17
17
  tslib_1.__exportStar(require("./DescribeBridgeCommand"), exports);
18
18
  tslib_1.__exportStar(require("./DescribeFlowCommand"), exports);
19
+ tslib_1.__exportStar(require("./DescribeFlowSourceMetadataCommand"), exports);
19
20
  tslib_1.__exportStar(require("./DescribeGatewayCommand"), exports);
20
21
  tslib_1.__exportStar(require("./DescribeGatewayInstanceCommand"), exports);
21
22
  tslib_1.__exportStar(require("./DescribeOfferingCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UpdateGatewayInstanceCommand = exports.se_UpdateFlowSourceCommand = exports.se_UpdateFlowOutputCommand = exports.se_UpdateFlowMediaStreamCommand = exports.se_UpdateFlowEntitlementCommand = exports.se_UpdateFlowCommand = exports.se_UpdateBridgeStateCommand = exports.se_UpdateBridgeSourceCommand = exports.se_UpdateBridgeOutputCommand = exports.se_UpdateBridgeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopFlowCommand = exports.se_StartFlowCommand = exports.se_RevokeFlowEntitlementCommand = exports.se_RemoveFlowVpcInterfaceCommand = exports.se_RemoveFlowSourceCommand = exports.se_RemoveFlowOutputCommand = exports.se_RemoveFlowMediaStreamCommand = exports.se_RemoveBridgeSourceCommand = exports.se_RemoveBridgeOutputCommand = exports.se_PurchaseOfferingCommand = exports.se_ListTagsForResourceCommand = exports.se_ListReservationsCommand = exports.se_ListOfferingsCommand = exports.se_ListGatewaysCommand = exports.se_ListGatewayInstancesCommand = exports.se_ListFlowsCommand = exports.se_ListEntitlementsCommand = exports.se_ListBridgesCommand = exports.se_GrantFlowEntitlementsCommand = exports.se_DescribeReservationCommand = exports.se_DescribeOfferingCommand = exports.se_DescribeGatewayInstanceCommand = exports.se_DescribeGatewayCommand = exports.se_DescribeFlowCommand = exports.se_DescribeBridgeCommand = exports.se_DeregisterGatewayInstanceCommand = exports.se_DeleteGatewayCommand = exports.se_DeleteFlowCommand = exports.se_DeleteBridgeCommand = exports.se_CreateGatewayCommand = exports.se_CreateFlowCommand = exports.se_CreateBridgeCommand = exports.se_AddFlowVpcInterfacesCommand = exports.se_AddFlowSourcesCommand = exports.se_AddFlowOutputsCommand = exports.se_AddFlowMediaStreamsCommand = exports.se_AddBridgeSourcesCommand = exports.se_AddBridgeOutputsCommand = void 0;
4
- exports.de_UpdateGatewayInstanceCommand = exports.de_UpdateFlowSourceCommand = exports.de_UpdateFlowOutputCommand = exports.de_UpdateFlowMediaStreamCommand = exports.de_UpdateFlowEntitlementCommand = exports.de_UpdateFlowCommand = exports.de_UpdateBridgeStateCommand = exports.de_UpdateBridgeSourceCommand = exports.de_UpdateBridgeOutputCommand = exports.de_UpdateBridgeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopFlowCommand = exports.de_StartFlowCommand = exports.de_RevokeFlowEntitlementCommand = exports.de_RemoveFlowVpcInterfaceCommand = exports.de_RemoveFlowSourceCommand = exports.de_RemoveFlowOutputCommand = exports.de_RemoveFlowMediaStreamCommand = exports.de_RemoveBridgeSourceCommand = exports.de_RemoveBridgeOutputCommand = exports.de_PurchaseOfferingCommand = exports.de_ListTagsForResourceCommand = exports.de_ListReservationsCommand = exports.de_ListOfferingsCommand = exports.de_ListGatewaysCommand = exports.de_ListGatewayInstancesCommand = exports.de_ListFlowsCommand = exports.de_ListEntitlementsCommand = exports.de_ListBridgesCommand = exports.de_GrantFlowEntitlementsCommand = exports.de_DescribeReservationCommand = exports.de_DescribeOfferingCommand = exports.de_DescribeGatewayInstanceCommand = exports.de_DescribeGatewayCommand = exports.de_DescribeFlowCommand = exports.de_DescribeBridgeCommand = exports.de_DeregisterGatewayInstanceCommand = exports.de_DeleteGatewayCommand = exports.de_DeleteFlowCommand = exports.de_DeleteBridgeCommand = exports.de_CreateGatewayCommand = exports.de_CreateFlowCommand = exports.de_CreateBridgeCommand = exports.de_AddFlowVpcInterfacesCommand = exports.de_AddFlowSourcesCommand = exports.de_AddFlowOutputsCommand = exports.de_AddFlowMediaStreamsCommand = exports.de_AddBridgeSourcesCommand = exports.de_AddBridgeOutputsCommand = void 0;
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;
5
6
  const core_1 = require("@smithy/core");
6
7
  const smithy_client_1 = require("@smithy/smithy-client");
7
8
  const MediaConnectServiceException_1 = require("../models/MediaConnectServiceException");
@@ -218,6 +219,16 @@ const se_DescribeFlowCommand = async (input, context) => {
218
219
  return b.build();
219
220
  };
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;
221
232
  const se_DescribeGatewayCommand = async (input, context) => {
222
233
  const b = (0, core_1.requestBuilder)(input, context);
223
234
  const headers = {};
@@ -1497,6 +1508,58 @@ const de_DescribeFlowCommandError = async (output, context) => {
1497
1508
  });
1498
1509
  }
1499
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
+ };
1500
1563
  const de_DescribeGatewayCommand = async (output, context) => {
1501
1564
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1502
1565
  return de_DescribeGatewayCommandError(output, context);
@@ -3892,6 +3955,22 @@ const de___listOfSource = (output, context) => {
3892
3955
  });
3893
3956
  return retVal;
3894
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
+ };
3895
3974
  const de___listOfVpcInterface = (output, context) => {
3896
3975
  const retVal = (output || [])
3897
3976
  .filter((e) => e != null)
@@ -4041,6 +4120,12 @@ const de_Fmtp = (output, context) => {
4041
4120
  Tcs: [, smithy_client_1.expectString, `tcs`],
4042
4121
  });
4043
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
+ };
4044
4129
  const de_Gateway = (output, context) => {
4045
4130
  return (0, smithy_client_1.take)(output, {
4046
4131
  EgressCidrBlocks: [, smithy_client_1._json, `egressCidrBlocks`],
@@ -4296,6 +4381,32 @@ const de_Transport = (output, context) => {
4296
4381
  StreamId: [, smithy_client_1.expectString, `streamId`],
4297
4382
  });
4298
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
+ };
4299
4410
  const de_VpcInterface = (output, context) => {
4300
4411
  return (0, smithy_client_1.take)(output, {
4301
4412
  Name: [, smithy_client_1.expectString, `name`],
@@ -14,6 +14,7 @@ import { DeleteGatewayCommand, } from "./commands/DeleteGatewayCommand";
14
14
  import { DeregisterGatewayInstanceCommand, } from "./commands/DeregisterGatewayInstanceCommand";
15
15
  import { DescribeBridgeCommand, } from "./commands/DescribeBridgeCommand";
16
16
  import { DescribeFlowCommand, } from "./commands/DescribeFlowCommand";
17
+ import { DescribeFlowSourceMetadataCommand, } from "./commands/DescribeFlowSourceMetadataCommand";
17
18
  import { DescribeGatewayCommand, } from "./commands/DescribeGatewayCommand";
18
19
  import { DescribeGatewayInstanceCommand, } from "./commands/DescribeGatewayInstanceCommand";
19
20
  import { DescribeOfferingCommand, } from "./commands/DescribeOfferingCommand";
@@ -66,6 +67,7 @@ const commands = {
66
67
  DeregisterGatewayInstanceCommand,
67
68
  DescribeBridgeCommand,
68
69
  DescribeFlowCommand,
70
+ DescribeFlowSourceMetadataCommand,
69
71
  DescribeGatewayCommand,
70
72
  DescribeGatewayInstanceCommand,
71
73
  DescribeOfferingCommand,
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_AddBridgeOutputsCommand, se_AddBridgeOutputsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class AddBridgeOutputsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, AddBridgeOutputsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MediaConnectClient";
26
- const commandName = "AddBridgeOutputsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "MediaConnect",
35
- operation: "AddBridgeOutputs",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_AddBridgeOutputsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_AddBridgeOutputsCommand(output, context);
46
- }
7
+ export class AddBridgeOutputsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("MediaConnect", "AddBridgeOutputs", {})
19
+ .n("MediaConnectClient", "AddBridgeOutputsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_AddBridgeOutputsCommand)
22
+ .de(de_AddBridgeOutputsCommand)
23
+ .build() {
47
24
  }