@aws-sdk/client-mediaconnect 3.477.0 → 3.480.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 (50) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/MediaConnect.js +2 -0
  3. package/dist-cjs/commands/DescribeFlowSourceMetadataCommand.js +51 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/pagination/ListBridgesPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListEntitlementsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListFlowsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListGatewayInstancesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListGatewaysPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListOfferingsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListReservationsPaginator.js +2 -24
  12. package/dist-cjs/protocols/Aws_restJson1.js +113 -2
  13. package/dist-es/MediaConnect.js +2 -0
  14. package/dist-es/commands/DescribeFlowSourceMetadataCommand.js +47 -0
  15. package/dist-es/commands/index.js +1 -0
  16. package/dist-es/pagination/ListBridgesPaginator.js +2 -23
  17. package/dist-es/pagination/ListEntitlementsPaginator.js +2 -23
  18. package/dist-es/pagination/ListFlowsPaginator.js +2 -23
  19. package/dist-es/pagination/ListGatewayInstancesPaginator.js +2 -23
  20. package/dist-es/pagination/ListGatewaysPaginator.js +2 -23
  21. package/dist-es/pagination/ListOfferingsPaginator.js +2 -23
  22. package/dist-es/pagination/ListReservationsPaginator.js +2 -23
  23. package/dist-es/protocols/Aws_restJson1.js +109 -1
  24. package/dist-types/MediaConnect.d.ts +7 -0
  25. package/dist-types/MediaConnectClient.d.ts +3 -2
  26. package/dist-types/commands/DescribeFlowSourceMetadataCommand.d.ts +124 -0
  27. package/dist-types/commands/index.d.ts +1 -0
  28. package/dist-types/models/models_0.d.ts +139 -0
  29. package/dist-types/pagination/ListBridgesPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListEntitlementsPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListFlowsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListGatewayInstancesPaginator.d.ts +1 -1
  33. package/dist-types/pagination/ListGatewaysPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListOfferingsPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListReservationsPaginator.d.ts +1 -1
  36. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  37. package/dist-types/ts3.4/MediaConnect.d.ts +17 -0
  38. package/dist-types/ts3.4/MediaConnectClient.d.ts +6 -0
  39. package/dist-types/ts3.4/commands/DescribeFlowSourceMetadataCommand.d.ts +42 -0
  40. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +33 -0
  42. package/dist-types/ts3.4/pagination/ListBridgesPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/ListEntitlementsPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/ListGatewayInstancesPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/ListGatewaysPaginator.d.ts +3 -3
  47. package/dist-types/ts3.4/pagination/ListOfferingsPaginator.d.ts +3 -3
  48. package/dist-types/ts3.4/pagination/ListReservationsPaginator.d.ts +3 -3
  49. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  50. package/package.json +5 -5
package/README.md CHANGED
@@ -322,6 +322,14 @@ DescribeFlow
322
322
 
323
323
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconnect/command/DescribeFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconnect/Interface/DescribeFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconnect/Interface/DescribeFlowCommandOutput/)
324
324
 
325
+ </details>
326
+ <details>
327
+ <summary>
328
+ DescribeFlowSourceMetadata
329
+ </summary>
330
+
331
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediaconnect/command/DescribeFlowSourceMetadataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconnect/Interface/DescribeFlowSourceMetadataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediaconnect/Interface/DescribeFlowSourceMetadataCommandOutput/)
332
+
325
333
  </details>
326
334
  <details>
327
335
  <summary>
@@ -17,6 +17,7 @@ const DeleteGatewayCommand_1 = require("./commands/DeleteGatewayCommand");
17
17
  const DeregisterGatewayInstanceCommand_1 = require("./commands/DeregisterGatewayInstanceCommand");
18
18
  const DescribeBridgeCommand_1 = require("./commands/DescribeBridgeCommand");
19
19
  const DescribeFlowCommand_1 = require("./commands/DescribeFlowCommand");
20
+ const DescribeFlowSourceMetadataCommand_1 = require("./commands/DescribeFlowSourceMetadataCommand");
20
21
  const DescribeGatewayCommand_1 = require("./commands/DescribeGatewayCommand");
21
22
  const DescribeGatewayInstanceCommand_1 = require("./commands/DescribeGatewayInstanceCommand");
22
23
  const DescribeOfferingCommand_1 = require("./commands/DescribeOfferingCommand");
@@ -69,6 +70,7 @@ const commands = {
69
70
  DeregisterGatewayInstanceCommand: DeregisterGatewayInstanceCommand_1.DeregisterGatewayInstanceCommand,
70
71
  DescribeBridgeCommand: DescribeBridgeCommand_1.DescribeBridgeCommand,
71
72
  DescribeFlowCommand: DescribeFlowCommand_1.DescribeFlowCommand,
73
+ DescribeFlowSourceMetadataCommand: DescribeFlowSourceMetadataCommand_1.DescribeFlowSourceMetadataCommand,
72
74
  DescribeGatewayCommand: DescribeGatewayCommand_1.DescribeGatewayCommand,
73
75
  DescribeGatewayInstanceCommand: DescribeGatewayInstanceCommand_1.DescribeGatewayInstanceCommand,
74
76
  DescribeOfferingCommand: DescribeOfferingCommand_1.DescribeOfferingCommand,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeFlowSourceMetadataCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class DescribeFlowSourceMetadataCommand 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, DescribeFlowSourceMetadataCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "MediaConnectClient";
29
+ const commandName = "DescribeFlowSourceMetadataCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "MediaConnect",
38
+ operation: "DescribeFlowSourceMetadata",
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_DescribeFlowSourceMetadataCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_DescribeFlowSourceMetadataCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DescribeFlowSourceMetadataCommand = DescribeFlowSourceMetadataCommand;
@@ -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,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBridges = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBridgesCommand_1 = require("../commands/ListBridgesCommand");
5
6
  const MediaConnectClient_1 = require("../MediaConnectClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBridgesCommand_1.ListBridgesCommand(input), ...args);
8
- };
9
- async function* paginateListBridges(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaConnectClient_1.MediaConnectClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBridges = paginateListBridges;
7
+ exports.paginateListBridges = (0, core_1.createPaginator)(MediaConnectClient_1.MediaConnectClient, ListBridgesCommand_1.ListBridgesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEntitlements = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEntitlementsCommand_1 = require("../commands/ListEntitlementsCommand");
5
6
  const MediaConnectClient_1 = require("../MediaConnectClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEntitlementsCommand_1.ListEntitlementsCommand(input), ...args);
8
- };
9
- async function* paginateListEntitlements(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaConnectClient_1.MediaConnectClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListEntitlements = paginateListEntitlements;
7
+ exports.paginateListEntitlements = (0, core_1.createPaginator)(MediaConnectClient_1.MediaConnectClient, ListEntitlementsCommand_1.ListEntitlementsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListFlows = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListFlowsCommand_1 = require("../commands/ListFlowsCommand");
5
6
  const MediaConnectClient_1 = require("../MediaConnectClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFlowsCommand_1.ListFlowsCommand(input), ...args);
8
- };
9
- async function* paginateListFlows(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaConnectClient_1.MediaConnectClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListFlows = paginateListFlows;
7
+ exports.paginateListFlows = (0, core_1.createPaginator)(MediaConnectClient_1.MediaConnectClient, ListFlowsCommand_1.ListFlowsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListGatewayInstances = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListGatewayInstancesCommand_1 = require("../commands/ListGatewayInstancesCommand");
5
6
  const MediaConnectClient_1 = require("../MediaConnectClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListGatewayInstancesCommand_1.ListGatewayInstancesCommand(input), ...args);
8
- };
9
- async function* paginateListGatewayInstances(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaConnectClient_1.MediaConnectClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListGatewayInstances = paginateListGatewayInstances;
7
+ exports.paginateListGatewayInstances = (0, core_1.createPaginator)(MediaConnectClient_1.MediaConnectClient, ListGatewayInstancesCommand_1.ListGatewayInstancesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListGateways = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListGatewaysCommand_1 = require("../commands/ListGatewaysCommand");
5
6
  const MediaConnectClient_1 = require("../MediaConnectClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListGatewaysCommand_1.ListGatewaysCommand(input), ...args);
8
- };
9
- async function* paginateListGateways(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaConnectClient_1.MediaConnectClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListGateways = paginateListGateways;
7
+ exports.paginateListGateways = (0, core_1.createPaginator)(MediaConnectClient_1.MediaConnectClient, ListGatewaysCommand_1.ListGatewaysCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListOfferings = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListOfferingsCommand_1 = require("../commands/ListOfferingsCommand");
5
6
  const MediaConnectClient_1 = require("../MediaConnectClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListOfferingsCommand_1.ListOfferingsCommand(input), ...args);
8
- };
9
- async function* paginateListOfferings(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaConnectClient_1.MediaConnectClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListOfferings = paginateListOfferings;
7
+ exports.paginateListOfferings = (0, core_1.createPaginator)(MediaConnectClient_1.MediaConnectClient, ListOfferingsCommand_1.ListOfferingsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListReservations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListReservationsCommand_1 = require("../commands/ListReservationsCommand");
5
6
  const MediaConnectClient_1 = require("../MediaConnectClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListReservationsCommand_1.ListReservationsCommand(input), ...args);
8
- };
9
- async function* paginateListReservations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof MediaConnectClient_1.MediaConnectClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListReservations = paginateListReservations;
7
+ exports.paginateListReservations = (0, core_1.createPaginator)(MediaConnectClient_1.MediaConnectClient, ListReservationsCommand_1.ListReservationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -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,
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DescribeFlowSourceMetadataCommand, se_DescribeFlowSourceMetadataCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DescribeFlowSourceMetadataCommand 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, DescribeFlowSourceMetadataCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "MediaConnectClient";
26
+ const commandName = "DescribeFlowSourceMetadataCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "MediaConnect",
35
+ operation: "DescribeFlowSourceMetadata",
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_DescribeFlowSourceMetadataCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeFlowSourceMetadataCommand(output, context);
46
+ }
47
+ }
@@ -13,6 +13,7 @@ export * from "./DeleteGatewayCommand";
13
13
  export * from "./DeregisterGatewayInstanceCommand";
14
14
  export * from "./DescribeBridgeCommand";
15
15
  export * from "./DescribeFlowCommand";
16
+ export * from "./DescribeFlowSourceMetadataCommand";
16
17
  export * from "./DescribeGatewayCommand";
17
18
  export * from "./DescribeGatewayInstanceCommand";
18
19
  export * from "./DescribeOfferingCommand";
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListBridgesCommand } from "../commands/ListBridgesCommand";
2
3
  import { MediaConnectClient } from "../MediaConnectClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListBridgesCommand(input), ...args);
5
- };
6
- export async function* paginateListBridges(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaConnectClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListBridges = createPaginator(MediaConnectClient, ListBridgesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListEntitlementsCommand, } from "../commands/ListEntitlementsCommand";
2
3
  import { MediaConnectClient } from "../MediaConnectClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEntitlementsCommand(input), ...args);
5
- };
6
- export async function* paginateListEntitlements(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaConnectClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListEntitlements = createPaginator(MediaConnectClient, ListEntitlementsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListFlowsCommand } from "../commands/ListFlowsCommand";
2
3
  import { MediaConnectClient } from "../MediaConnectClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListFlowsCommand(input), ...args);
5
- };
6
- export async function* paginateListFlows(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof MediaConnectClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MediaConnect | MediaConnectClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListFlows = createPaginator(MediaConnectClient, ListFlowsCommand, "NextToken", "NextToken", "MaxResults");