@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
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListGatewayInstancesCommand, } from "../commands/ListGatewayInstancesCommand";
2
3
  import { MediaConnectClient } from "../MediaConnectClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListGatewayInstancesCommand(input), ...args);
5
- };
6
- export async function* paginateListGatewayInstances(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 paginateListGatewayInstances = createPaginator(MediaConnectClient, ListGatewayInstancesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListGatewaysCommand, } from "../commands/ListGatewaysCommand";
2
3
  import { MediaConnectClient } from "../MediaConnectClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListGatewaysCommand(input), ...args);
5
- };
6
- export async function* paginateListGateways(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 paginateListGateways = createPaginator(MediaConnectClient, ListGatewaysCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListOfferingsCommand, } from "../commands/ListOfferingsCommand";
2
3
  import { MediaConnectClient } from "../MediaConnectClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListOfferingsCommand(input), ...args);
5
- };
6
- export async function* paginateListOfferings(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 paginateListOfferings = createPaginator(MediaConnectClient, ListOfferingsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListReservationsCommand, } from "../commands/ListReservationsCommand";
2
3
  import { MediaConnectClient } from "../MediaConnectClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListReservationsCommand(input), ...args);
5
- };
6
- export async function* paginateListReservations(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 paginateListReservations = createPaginator(MediaConnectClient, ListReservationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,5 +1,5 @@
1
1
  import { requestBuilder as rb } from "@smithy/core";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { MediaConnectServiceException as __BaseException } from "../models/MediaConnectServiceException";
4
4
  import { AddFlowOutputs420Exception, BadRequestException, ConflictException, CreateBridge420Exception, CreateFlow420Exception, CreateGateway420Exception, ForbiddenException, GrantFlowEntitlements420Exception, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, } from "../models/models_0";
5
5
  export const se_AddBridgeOutputsCommand = async (input, context) => {
@@ -199,6 +199,15 @@ export const se_DescribeFlowCommand = async (input, context) => {
199
199
  b.m("GET").h(headers).b(body);
200
200
  return b.build();
201
201
  };
202
+ export const se_DescribeFlowSourceMetadataCommand = async (input, context) => {
203
+ const b = rb(input, context);
204
+ const headers = {};
205
+ b.bp("/v1/flows/{FlowArn}/source-metadata");
206
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
207
+ let body;
208
+ b.m("GET").h(headers).b(body);
209
+ return b.build();
210
+ };
202
211
  export const se_DescribeGatewayCommand = async (input, context) => {
203
212
  const b = rb(input, context);
204
213
  const headers = {};
@@ -1428,6 +1437,57 @@ const de_DescribeFlowCommandError = async (output, context) => {
1428
1437
  });
1429
1438
  }
1430
1439
  };
1440
+ export const de_DescribeFlowSourceMetadataCommand = async (output, context) => {
1441
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
+ return de_DescribeFlowSourceMetadataCommandError(output, context);
1443
+ }
1444
+ const contents = map({
1445
+ $metadata: deserializeMetadata(output),
1446
+ });
1447
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1448
+ const doc = take(data, {
1449
+ FlowArn: [, __expectString, `flowArn`],
1450
+ Messages: [, (_) => de___listOfMessageDetail(_, context), `messages`],
1451
+ Timestamp: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `timestamp`],
1452
+ TransportMediaInfo: [, (_) => de_TransportMediaInfo(_, context), `transportMediaInfo`],
1453
+ });
1454
+ Object.assign(contents, doc);
1455
+ return contents;
1456
+ };
1457
+ const de_DescribeFlowSourceMetadataCommandError = async (output, context) => {
1458
+ const parsedOutput = {
1459
+ ...output,
1460
+ body: await parseErrorBody(output.body, context),
1461
+ };
1462
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1463
+ switch (errorCode) {
1464
+ case "BadRequestException":
1465
+ case "com.amazonaws.mediaconnect#BadRequestException":
1466
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1467
+ case "ForbiddenException":
1468
+ case "com.amazonaws.mediaconnect#ForbiddenException":
1469
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
1470
+ case "InternalServerErrorException":
1471
+ case "com.amazonaws.mediaconnect#InternalServerErrorException":
1472
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1473
+ case "NotFoundException":
1474
+ case "com.amazonaws.mediaconnect#NotFoundException":
1475
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
1476
+ case "ServiceUnavailableException":
1477
+ case "com.amazonaws.mediaconnect#ServiceUnavailableException":
1478
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1479
+ case "TooManyRequestsException":
1480
+ case "com.amazonaws.mediaconnect#TooManyRequestsException":
1481
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1482
+ default:
1483
+ const parsedBody = parsedOutput.body;
1484
+ return throwDefaultError({
1485
+ output,
1486
+ parsedBody,
1487
+ errorCode,
1488
+ });
1489
+ }
1490
+ };
1431
1491
  export const de_DescribeGatewayCommand = async (output, context) => {
1432
1492
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1433
1493
  return de_DescribeGatewayCommandError(output, context);
@@ -3788,6 +3848,22 @@ const de___listOfSource = (output, context) => {
3788
3848
  });
3789
3849
  return retVal;
3790
3850
  };
3851
+ const de___listOfTransportStream = (output, context) => {
3852
+ const retVal = (output || [])
3853
+ .filter((e) => e != null)
3854
+ .map((entry) => {
3855
+ return de_TransportStream(entry, context);
3856
+ });
3857
+ return retVal;
3858
+ };
3859
+ const de___listOfTransportStreamProgram = (output, context) => {
3860
+ const retVal = (output || [])
3861
+ .filter((e) => e != null)
3862
+ .map((entry) => {
3863
+ return de_TransportStreamProgram(entry, context);
3864
+ });
3865
+ return retVal;
3866
+ };
3791
3867
  const de___listOfVpcInterface = (output, context) => {
3792
3868
  const retVal = (output || [])
3793
3869
  .filter((e) => e != null)
@@ -3937,6 +4013,12 @@ const de_Fmtp = (output, context) => {
3937
4013
  Tcs: [, __expectString, `tcs`],
3938
4014
  });
3939
4015
  };
4016
+ const de_FrameResolution = (output, context) => {
4017
+ return take(output, {
4018
+ FrameHeight: [, __expectInt32, `frameHeight`],
4019
+ FrameWidth: [, __expectInt32, `frameWidth`],
4020
+ });
4021
+ };
3940
4022
  const de_Gateway = (output, context) => {
3941
4023
  return take(output, {
3942
4024
  EgressCidrBlocks: [, _json, `egressCidrBlocks`],
@@ -4192,6 +4274,32 @@ const de_Transport = (output, context) => {
4192
4274
  StreamId: [, __expectString, `streamId`],
4193
4275
  });
4194
4276
  };
4277
+ const de_TransportMediaInfo = (output, context) => {
4278
+ return take(output, {
4279
+ Programs: [, (_) => de___listOfTransportStreamProgram(_, context), `programs`],
4280
+ });
4281
+ };
4282
+ const de_TransportStream = (output, context) => {
4283
+ return take(output, {
4284
+ Channels: [, __expectInt32, `channels`],
4285
+ Codec: [, __expectString, `codec`],
4286
+ FrameRate: [, __expectString, `frameRate`],
4287
+ FrameResolution: [, (_) => de_FrameResolution(_, context), `frameResolution`],
4288
+ Pid: [, __expectInt32, `pid`],
4289
+ SampleRate: [, __expectInt32, `sampleRate`],
4290
+ SampleSize: [, __expectInt32, `sampleSize`],
4291
+ StreamType: [, __expectString, `streamType`],
4292
+ });
4293
+ };
4294
+ const de_TransportStreamProgram = (output, context) => {
4295
+ return take(output, {
4296
+ PcrPid: [, __expectInt32, `pcrPid`],
4297
+ ProgramName: [, __expectString, `programName`],
4298
+ ProgramNumber: [, __expectInt32, `programNumber`],
4299
+ ProgramPid: [, __expectInt32, `programPid`],
4300
+ Streams: [, (_) => de___listOfTransportStream(_, context), `streams`],
4301
+ });
4302
+ };
4195
4303
  const de_VpcInterface = (output, context) => {
4196
4304
  return take(output, {
4197
4305
  Name: [, __expectString, `name`],
@@ -14,6 +14,7 @@ import { DeleteGatewayCommandInput, DeleteGatewayCommandOutput } from "./command
14
14
  import { DeregisterGatewayInstanceCommandInput, DeregisterGatewayInstanceCommandOutput } from "./commands/DeregisterGatewayInstanceCommand";
15
15
  import { DescribeBridgeCommandInput, DescribeBridgeCommandOutput } from "./commands/DescribeBridgeCommand";
16
16
  import { DescribeFlowCommandInput, DescribeFlowCommandOutput } from "./commands/DescribeFlowCommand";
17
+ import { DescribeFlowSourceMetadataCommandInput, DescribeFlowSourceMetadataCommandOutput } from "./commands/DescribeFlowSourceMetadataCommand";
17
18
  import { DescribeGatewayCommandInput, DescribeGatewayCommandOutput } from "./commands/DescribeGatewayCommand";
18
19
  import { DescribeGatewayInstanceCommandInput, DescribeGatewayInstanceCommandOutput } from "./commands/DescribeGatewayInstanceCommand";
19
20
  import { DescribeOfferingCommandInput, DescribeOfferingCommandOutput } from "./commands/DescribeOfferingCommand";
@@ -141,6 +142,12 @@ export interface MediaConnect {
141
142
  describeFlow(args: DescribeFlowCommandInput, options?: __HttpHandlerOptions): Promise<DescribeFlowCommandOutput>;
142
143
  describeFlow(args: DescribeFlowCommandInput, cb: (err: any, data?: DescribeFlowCommandOutput) => void): void;
143
144
  describeFlow(args: DescribeFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeFlowCommandOutput) => void): void;
145
+ /**
146
+ * @see {@link DescribeFlowSourceMetadataCommand}
147
+ */
148
+ describeFlowSourceMetadata(args: DescribeFlowSourceMetadataCommandInput, options?: __HttpHandlerOptions): Promise<DescribeFlowSourceMetadataCommandOutput>;
149
+ describeFlowSourceMetadata(args: DescribeFlowSourceMetadataCommandInput, cb: (err: any, data?: DescribeFlowSourceMetadataCommandOutput) => void): void;
150
+ describeFlowSourceMetadata(args: DescribeFlowSourceMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeFlowSourceMetadataCommandOutput) => void): void;
144
151
  /**
145
152
  * @see {@link DescribeGatewayCommand}
146
153
  */
@@ -23,6 +23,7 @@ import { DeleteGatewayCommandInput, DeleteGatewayCommandOutput } from "./command
23
23
  import { DeregisterGatewayInstanceCommandInput, DeregisterGatewayInstanceCommandOutput } from "./commands/DeregisterGatewayInstanceCommand";
24
24
  import { DescribeBridgeCommandInput, DescribeBridgeCommandOutput } from "./commands/DescribeBridgeCommand";
25
25
  import { DescribeFlowCommandInput, DescribeFlowCommandOutput } from "./commands/DescribeFlowCommand";
26
+ import { DescribeFlowSourceMetadataCommandInput, DescribeFlowSourceMetadataCommandOutput } from "./commands/DescribeFlowSourceMetadataCommand";
26
27
  import { DescribeGatewayCommandInput, DescribeGatewayCommandOutput } from "./commands/DescribeGatewayCommand";
27
28
  import { DescribeGatewayInstanceCommandInput, DescribeGatewayInstanceCommandOutput } from "./commands/DescribeGatewayInstanceCommand";
28
29
  import { DescribeOfferingCommandInput, DescribeOfferingCommandOutput } from "./commands/DescribeOfferingCommand";
@@ -64,11 +65,11 @@ export { __Client };
64
65
  /**
65
66
  * @public
66
67
  */
67
- export type ServiceInputTypes = AddBridgeOutputsCommandInput | AddBridgeSourcesCommandInput | AddFlowMediaStreamsCommandInput | AddFlowOutputsCommandInput | AddFlowSourcesCommandInput | AddFlowVpcInterfacesCommandInput | CreateBridgeCommandInput | CreateFlowCommandInput | CreateGatewayCommandInput | DeleteBridgeCommandInput | DeleteFlowCommandInput | DeleteGatewayCommandInput | DeregisterGatewayInstanceCommandInput | DescribeBridgeCommandInput | DescribeFlowCommandInput | DescribeGatewayCommandInput | DescribeGatewayInstanceCommandInput | DescribeOfferingCommandInput | DescribeReservationCommandInput | GrantFlowEntitlementsCommandInput | ListBridgesCommandInput | ListEntitlementsCommandInput | ListFlowsCommandInput | ListGatewayInstancesCommandInput | ListGatewaysCommandInput | ListOfferingsCommandInput | ListReservationsCommandInput | ListTagsForResourceCommandInput | PurchaseOfferingCommandInput | RemoveBridgeOutputCommandInput | RemoveBridgeSourceCommandInput | RemoveFlowMediaStreamCommandInput | RemoveFlowOutputCommandInput | RemoveFlowSourceCommandInput | RemoveFlowVpcInterfaceCommandInput | RevokeFlowEntitlementCommandInput | StartFlowCommandInput | StopFlowCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBridgeCommandInput | UpdateBridgeOutputCommandInput | UpdateBridgeSourceCommandInput | UpdateBridgeStateCommandInput | UpdateFlowCommandInput | UpdateFlowEntitlementCommandInput | UpdateFlowMediaStreamCommandInput | UpdateFlowOutputCommandInput | UpdateFlowSourceCommandInput | UpdateGatewayInstanceCommandInput;
68
+ export type ServiceInputTypes = AddBridgeOutputsCommandInput | AddBridgeSourcesCommandInput | AddFlowMediaStreamsCommandInput | AddFlowOutputsCommandInput | AddFlowSourcesCommandInput | AddFlowVpcInterfacesCommandInput | CreateBridgeCommandInput | CreateFlowCommandInput | CreateGatewayCommandInput | DeleteBridgeCommandInput | DeleteFlowCommandInput | DeleteGatewayCommandInput | DeregisterGatewayInstanceCommandInput | DescribeBridgeCommandInput | DescribeFlowCommandInput | DescribeFlowSourceMetadataCommandInput | DescribeGatewayCommandInput | DescribeGatewayInstanceCommandInput | DescribeOfferingCommandInput | DescribeReservationCommandInput | GrantFlowEntitlementsCommandInput | ListBridgesCommandInput | ListEntitlementsCommandInput | ListFlowsCommandInput | ListGatewayInstancesCommandInput | ListGatewaysCommandInput | ListOfferingsCommandInput | ListReservationsCommandInput | ListTagsForResourceCommandInput | PurchaseOfferingCommandInput | RemoveBridgeOutputCommandInput | RemoveBridgeSourceCommandInput | RemoveFlowMediaStreamCommandInput | RemoveFlowOutputCommandInput | RemoveFlowSourceCommandInput | RemoveFlowVpcInterfaceCommandInput | RevokeFlowEntitlementCommandInput | StartFlowCommandInput | StopFlowCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBridgeCommandInput | UpdateBridgeOutputCommandInput | UpdateBridgeSourceCommandInput | UpdateBridgeStateCommandInput | UpdateFlowCommandInput | UpdateFlowEntitlementCommandInput | UpdateFlowMediaStreamCommandInput | UpdateFlowOutputCommandInput | UpdateFlowSourceCommandInput | UpdateGatewayInstanceCommandInput;
68
69
  /**
69
70
  * @public
70
71
  */
71
- export type ServiceOutputTypes = AddBridgeOutputsCommandOutput | AddBridgeSourcesCommandOutput | AddFlowMediaStreamsCommandOutput | AddFlowOutputsCommandOutput | AddFlowSourcesCommandOutput | AddFlowVpcInterfacesCommandOutput | CreateBridgeCommandOutput | CreateFlowCommandOutput | CreateGatewayCommandOutput | DeleteBridgeCommandOutput | DeleteFlowCommandOutput | DeleteGatewayCommandOutput | DeregisterGatewayInstanceCommandOutput | DescribeBridgeCommandOutput | DescribeFlowCommandOutput | DescribeGatewayCommandOutput | DescribeGatewayInstanceCommandOutput | DescribeOfferingCommandOutput | DescribeReservationCommandOutput | GrantFlowEntitlementsCommandOutput | ListBridgesCommandOutput | ListEntitlementsCommandOutput | ListFlowsCommandOutput | ListGatewayInstancesCommandOutput | ListGatewaysCommandOutput | ListOfferingsCommandOutput | ListReservationsCommandOutput | ListTagsForResourceCommandOutput | PurchaseOfferingCommandOutput | RemoveBridgeOutputCommandOutput | RemoveBridgeSourceCommandOutput | RemoveFlowMediaStreamCommandOutput | RemoveFlowOutputCommandOutput | RemoveFlowSourceCommandOutput | RemoveFlowVpcInterfaceCommandOutput | RevokeFlowEntitlementCommandOutput | StartFlowCommandOutput | StopFlowCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBridgeCommandOutput | UpdateBridgeOutputCommandOutput | UpdateBridgeSourceCommandOutput | UpdateBridgeStateCommandOutput | UpdateFlowCommandOutput | UpdateFlowEntitlementCommandOutput | UpdateFlowMediaStreamCommandOutput | UpdateFlowOutputCommandOutput | UpdateFlowSourceCommandOutput | UpdateGatewayInstanceCommandOutput;
72
+ export type ServiceOutputTypes = AddBridgeOutputsCommandOutput | AddBridgeSourcesCommandOutput | AddFlowMediaStreamsCommandOutput | AddFlowOutputsCommandOutput | AddFlowSourcesCommandOutput | AddFlowVpcInterfacesCommandOutput | CreateBridgeCommandOutput | CreateFlowCommandOutput | CreateGatewayCommandOutput | DeleteBridgeCommandOutput | DeleteFlowCommandOutput | DeleteGatewayCommandOutput | DeregisterGatewayInstanceCommandOutput | DescribeBridgeCommandOutput | DescribeFlowCommandOutput | DescribeFlowSourceMetadataCommandOutput | DescribeGatewayCommandOutput | DescribeGatewayInstanceCommandOutput | DescribeOfferingCommandOutput | DescribeReservationCommandOutput | GrantFlowEntitlementsCommandOutput | ListBridgesCommandOutput | ListEntitlementsCommandOutput | ListFlowsCommandOutput | ListGatewayInstancesCommandOutput | ListGatewaysCommandOutput | ListOfferingsCommandOutput | ListReservationsCommandOutput | ListTagsForResourceCommandOutput | PurchaseOfferingCommandOutput | RemoveBridgeOutputCommandOutput | RemoveBridgeSourceCommandOutput | RemoveFlowMediaStreamCommandOutput | RemoveFlowOutputCommandOutput | RemoveFlowSourceCommandOutput | RemoveFlowVpcInterfaceCommandOutput | RevokeFlowEntitlementCommandOutput | StartFlowCommandOutput | StopFlowCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBridgeCommandOutput | UpdateBridgeOutputCommandOutput | UpdateBridgeSourceCommandOutput | UpdateBridgeStateCommandOutput | UpdateFlowCommandOutput | UpdateFlowEntitlementCommandOutput | UpdateFlowMediaStreamCommandOutput | UpdateFlowOutputCommandOutput | UpdateFlowSourceCommandOutput | UpdateGatewayInstanceCommandOutput;
72
73
  /**
73
74
  * @public
74
75
  */
@@ -0,0 +1,124 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { MediaConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaConnectClient";
5
+ import { DescribeFlowSourceMetadataRequest, DescribeFlowSourceMetadataResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeFlowSourceMetadataCommand}.
14
+ */
15
+ export interface DescribeFlowSourceMetadataCommandInput extends DescribeFlowSourceMetadataRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeFlowSourceMetadataCommand}.
21
+ */
22
+ export interface DescribeFlowSourceMetadataCommandOutput extends DescribeFlowSourceMetadataResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * Displays details of the flow's source stream. The response contains information about the contents of the stream and its programs.
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { MediaConnectClient, DescribeFlowSourceMetadataCommand } from "@aws-sdk/client-mediaconnect"; // ES Modules import
31
+ * // const { MediaConnectClient, DescribeFlowSourceMetadataCommand } = require("@aws-sdk/client-mediaconnect"); // CommonJS import
32
+ * const client = new MediaConnectClient(config);
33
+ * const input = { // DescribeFlowSourceMetadataRequest
34
+ * FlowArn: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DescribeFlowSourceMetadataCommand(input);
37
+ * const response = await client.send(command);
38
+ * // { // DescribeFlowSourceMetadataResponse
39
+ * // FlowArn: "STRING_VALUE",
40
+ * // Messages: [ // __listOfMessageDetail
41
+ * // { // MessageDetail
42
+ * // Code: "STRING_VALUE", // required
43
+ * // Message: "STRING_VALUE", // required
44
+ * // ResourceName: "STRING_VALUE",
45
+ * // },
46
+ * // ],
47
+ * // Timestamp: new Date("TIMESTAMP"),
48
+ * // TransportMediaInfo: { // TransportMediaInfo
49
+ * // Programs: [ // __listOfTransportStreamProgram // required
50
+ * // { // TransportStreamProgram
51
+ * // PcrPid: Number("int"), // required
52
+ * // ProgramName: "STRING_VALUE",
53
+ * // ProgramNumber: Number("int"), // required
54
+ * // ProgramPid: Number("int"), // required
55
+ * // Streams: [ // __listOfTransportStream // required
56
+ * // { // TransportStream
57
+ * // Channels: Number("int"),
58
+ * // Codec: "STRING_VALUE",
59
+ * // FrameRate: "STRING_VALUE",
60
+ * // FrameResolution: { // FrameResolution
61
+ * // FrameHeight: Number("int"), // required
62
+ * // FrameWidth: Number("int"), // required
63
+ * // },
64
+ * // Pid: Number("int"), // required
65
+ * // SampleRate: Number("int"),
66
+ * // SampleSize: Number("int"),
67
+ * // StreamType: "STRING_VALUE", // required
68
+ * // },
69
+ * // ],
70
+ * // },
71
+ * // ],
72
+ * // },
73
+ * // };
74
+ *
75
+ * ```
76
+ *
77
+ * @param DescribeFlowSourceMetadataCommandInput - {@link DescribeFlowSourceMetadataCommandInput}
78
+ * @returns {@link DescribeFlowSourceMetadataCommandOutput}
79
+ * @see {@link DescribeFlowSourceMetadataCommandInput} for command's `input` shape.
80
+ * @see {@link DescribeFlowSourceMetadataCommandOutput} for command's `response` shape.
81
+ * @see {@link MediaConnectClientResolvedConfig | config} for MediaConnectClient's `config` shape.
82
+ *
83
+ * @throws {@link BadRequestException} (client fault)
84
+ * Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.
85
+ *
86
+ * @throws {@link ForbiddenException} (client fault)
87
+ * Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.
88
+ *
89
+ * @throws {@link InternalServerErrorException} (server fault)
90
+ * Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.
91
+ *
92
+ * @throws {@link NotFoundException} (client fault)
93
+ * Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.
94
+ *
95
+ * @throws {@link ServiceUnavailableException} (server fault)
96
+ * Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.
97
+ *
98
+ * @throws {@link TooManyRequestsException} (client fault)
99
+ * Exception raised by AWS Elemental MediaConnect. See the error message and documentation for the operation for more information on the cause of this exception.
100
+ *
101
+ * @throws {@link MediaConnectServiceException}
102
+ * <p>Base exception class for all service exceptions from MediaConnect service.</p>
103
+ *
104
+ */
105
+ export declare class DescribeFlowSourceMetadataCommand extends $Command<DescribeFlowSourceMetadataCommandInput, DescribeFlowSourceMetadataCommandOutput, MediaConnectClientResolvedConfig> {
106
+ readonly input: DescribeFlowSourceMetadataCommandInput;
107
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
108
+ /**
109
+ * @public
110
+ */
111
+ constructor(input: DescribeFlowSourceMetadataCommandInput);
112
+ /**
113
+ * @internal
114
+ */
115
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaConnectClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeFlowSourceMetadataCommandInput, DescribeFlowSourceMetadataCommandOutput>;
116
+ /**
117
+ * @internal
118
+ */
119
+ private serialize;
120
+ /**
121
+ * @internal
122
+ */
123
+ private deserialize;
124
+ }
@@ -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";
@@ -1914,6 +1914,99 @@ export interface Source {
1914
1914
  */
1915
1915
  GatewayBridgeSource?: GatewayBridgeSource;
1916
1916
  }
1917
+ /**
1918
+ * @public
1919
+ * The frame resolution used by the video stream.
1920
+ */
1921
+ export interface FrameResolution {
1922
+ /**
1923
+ * @public
1924
+ * The number of pixels in the height of the video frame.
1925
+ */
1926
+ FrameHeight: number | undefined;
1927
+ /**
1928
+ * @public
1929
+ * The number of pixels in the width of the video frame.
1930
+ */
1931
+ FrameWidth: number | undefined;
1932
+ }
1933
+ /**
1934
+ * @public
1935
+ * The metadata of an elementary transport stream.
1936
+ */
1937
+ export interface TransportStream {
1938
+ /**
1939
+ * @public
1940
+ * The number of channels in the audio stream.
1941
+ */
1942
+ Channels?: number;
1943
+ /**
1944
+ * @public
1945
+ * The codec used by the stream.
1946
+ */
1947
+ Codec?: string;
1948
+ /**
1949
+ * @public
1950
+ * The frame rate used by the video stream.
1951
+ */
1952
+ FrameRate?: string;
1953
+ /**
1954
+ * @public
1955
+ * The frame resolution used by the video stream.
1956
+ */
1957
+ FrameResolution?: FrameResolution;
1958
+ /**
1959
+ * @public
1960
+ * The Packet ID (PID) as it is reported in the Program Map Table.
1961
+ */
1962
+ Pid: number | undefined;
1963
+ /**
1964
+ * @public
1965
+ * The sample rate used by the audio stream.
1966
+ */
1967
+ SampleRate?: number;
1968
+ /**
1969
+ * @public
1970
+ * The sample bit size used by the audio stream.
1971
+ */
1972
+ SampleSize?: number;
1973
+ /**
1974
+ * @public
1975
+ * The Stream Type as it is reported in the Program Map Table.
1976
+ */
1977
+ StreamType: string | undefined;
1978
+ }
1979
+ /**
1980
+ * @public
1981
+ * The metadata of a single transport stream program.
1982
+ */
1983
+ export interface TransportStreamProgram {
1984
+ /**
1985
+ * @public
1986
+ * The Program Clock Reference (PCR) Packet ID (PID) as it is reported in the Program Association Table.
1987
+ */
1988
+ PcrPid: number | undefined;
1989
+ /**
1990
+ * @public
1991
+ * The program name as it is reported in the Program Association Table.
1992
+ */
1993
+ ProgramName?: string;
1994
+ /**
1995
+ * @public
1996
+ * The program number as it is reported in the Program Association Table.
1997
+ */
1998
+ ProgramNumber: number | undefined;
1999
+ /**
2000
+ * @public
2001
+ * The program Packet ID (PID) as it is reported in the Program Association Table.
2002
+ */
2003
+ ProgramPid: number | undefined;
2004
+ /**
2005
+ * @public
2006
+ * The list of elementary transport streams in the program. The list includes video, audio, and data streams.
2007
+ */
2008
+ Streams: TransportStream[] | undefined;
2009
+ }
1917
2010
  /**
1918
2011
  * @public
1919
2012
  * @enum
@@ -2962,6 +3055,52 @@ export interface DescribeFlowResponse {
2962
3055
  */
2963
3056
  Messages?: Messages;
2964
3057
  }
3058
+ /**
3059
+ * @public
3060
+ */
3061
+ export interface DescribeFlowSourceMetadataRequest {
3062
+ /**
3063
+ * @public
3064
+ * The Amazon Resource Name (ARN) of the flow.
3065
+ */
3066
+ FlowArn: string | undefined;
3067
+ }
3068
+ /**
3069
+ * @public
3070
+ * The metadata of the transport stream in the current flow's source.
3071
+ */
3072
+ export interface TransportMediaInfo {
3073
+ /**
3074
+ * @public
3075
+ * The list of transport stream programs in the current flow's source.
3076
+ */
3077
+ Programs: TransportStreamProgram[] | undefined;
3078
+ }
3079
+ /**
3080
+ * @public
3081
+ */
3082
+ export interface DescribeFlowSourceMetadataResponse {
3083
+ /**
3084
+ * @public
3085
+ * The ARN of the flow that DescribeFlowSourceMetadata was performed on.
3086
+ */
3087
+ FlowArn?: string;
3088
+ /**
3089
+ * @public
3090
+ * Provides a status code and message regarding issues found with the flow source metadata.
3091
+ */
3092
+ Messages?: MessageDetail[];
3093
+ /**
3094
+ * @public
3095
+ * The timestamp of the most recent change in metadata for this flow’s source.
3096
+ */
3097
+ Timestamp?: Date;
3098
+ /**
3099
+ * @public
3100
+ * The metadata of the transport stream in the current flow's source.
3101
+ */
3102
+ TransportMediaInfo?: TransportMediaInfo;
3103
+ }
2965
3104
  /**
2966
3105
  * @public
2967
3106
  */
@@ -4,4 +4,4 @@ import { MediaConnectPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBridges(config: MediaConnectPaginationConfiguration, input: ListBridgesCommandInput, ...additionalArguments: any): Paginator<ListBridgesCommandOutput>;
7
+ export declare const paginateListBridges: (config: MediaConnectPaginationConfiguration, input: ListBridgesCommandInput, ...rest: any[]) => Paginator<ListBridgesCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaConnectPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListEntitlements(config: MediaConnectPaginationConfiguration, input: ListEntitlementsCommandInput, ...additionalArguments: any): Paginator<ListEntitlementsCommandOutput>;
7
+ export declare const paginateListEntitlements: (config: MediaConnectPaginationConfiguration, input: ListEntitlementsCommandInput, ...rest: any[]) => Paginator<ListEntitlementsCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaConnectPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListFlows(config: MediaConnectPaginationConfiguration, input: ListFlowsCommandInput, ...additionalArguments: any): Paginator<ListFlowsCommandOutput>;
7
+ export declare const paginateListFlows: (config: MediaConnectPaginationConfiguration, input: ListFlowsCommandInput, ...rest: any[]) => Paginator<ListFlowsCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaConnectPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListGatewayInstances(config: MediaConnectPaginationConfiguration, input: ListGatewayInstancesCommandInput, ...additionalArguments: any): Paginator<ListGatewayInstancesCommandOutput>;
7
+ export declare const paginateListGatewayInstances: (config: MediaConnectPaginationConfiguration, input: ListGatewayInstancesCommandInput, ...rest: any[]) => Paginator<ListGatewayInstancesCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaConnectPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListGateways(config: MediaConnectPaginationConfiguration, input: ListGatewaysCommandInput, ...additionalArguments: any): Paginator<ListGatewaysCommandOutput>;
7
+ export declare const paginateListGateways: (config: MediaConnectPaginationConfiguration, input: ListGatewaysCommandInput, ...rest: any[]) => Paginator<ListGatewaysCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaConnectPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListOfferings(config: MediaConnectPaginationConfiguration, input: ListOfferingsCommandInput, ...additionalArguments: any): Paginator<ListOfferingsCommandOutput>;
7
+ export declare const paginateListOfferings: (config: MediaConnectPaginationConfiguration, input: ListOfferingsCommandInput, ...rest: any[]) => Paginator<ListOfferingsCommandOutput>;
@@ -4,4 +4,4 @@ import { MediaConnectPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListReservations(config: MediaConnectPaginationConfiguration, input: ListReservationsCommandInput, ...additionalArguments: any): Paginator<ListReservationsCommandOutput>;
7
+ export declare const paginateListReservations: (config: MediaConnectPaginationConfiguration, input: ListReservationsCommandInput, ...rest: any[]) => Paginator<ListReservationsCommandOutput>;