class FlowSize
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaConnect.Alpha.FlowSize |
Go | github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2#FlowSize |
Java | software.amazon.awscdk.services.mediaconnect.alpha.FlowSize |
Python | aws_cdk.aws_mediaconnect_alpha.FlowSize |
TypeScript (source) | @aws-cdk/aws-mediaconnect-alpha ยป FlowSize |
Options for Flow Size.
Example
declare const stack: Stack;
declare const role: iam.IRole;
declare const securityGroup: ec2.ISecurityGroup;
declare const subnet: ec2.ISubnet;
const efaInterface = VpcInterface.define({
vpcInterfaceName: 'efa-interface',
role: role,
securityGroups: [securityGroup],
subnet: subnet,
networkInterfaceType: NetworkInterface.EFA, // Required for CDI
});
const videoStream = MediaStream.video({
mediaStreamId: 1,
mediaStreamName: 'video',
videoFormat: MediaVideoFormat.HD_1080P,
fmtp: {
exactFramerate: Framerate.FPS_29_97,
par: PixelAspectRatio.SQUARE,
},
});
const flow = new Flow(stack, 'MyCdiFlow', {
flowSize: FlowSize.LARGE_4X, // Required for CDI and JPEG XS
vpcInterfaces: [efaInterface],
mediaStreams: [videoStream],
source: SourceConfiguration.cdi({
flowSourceName: 'cdi-source',
vpcInterface: efaInterface,
port: 5000,
maxSyncBuffer: 100,
mediaStreamSourceConfigurations: [{
encoding: Encoding.RAW,
mediaStream: videoStream,
}],
}),
});
Properties
| Name | Type | Description |
|---|---|---|
| value | string | The flow size string value. |
| static LARGE | Flow | Large flow size. |
| static LARGE_4 | Flow | Option for large 4x flow size. |
| static MEDIUM | Flow | Medium flow size. |
value
Type:
string
The flow size string value.
static LARGE
Type:
Flow
Large flow size.
Required when the flow uses NDI sources or outputs. Supports transport stream distribution plus NDI; does not support CDI or JPEG XS.
See also: https://docs.aws.amazon.com/mediaconnect/latest/ug/flow-sizes-capabilities.html
static LARGE_4X
Type:
Flow
Option for large 4x flow size.
Required for JPEG XS and CDI protocols. Does not support transport streams or NDI.
static MEDIUM
Type:
Flow
Medium flow size.
The default โ standard transport stream distribution; does not support NDI, CDI, or JPEG XS.
See also: https://docs.aws.amazon.com/mediaconnect/latest/ug/flow-sizes-capabilities.html
Methods
| Name | Description |
|---|---|
| to | Returns the string value. |
| static of(value) | Use a custom flow size value. |
toString()
public toString(): string
Returns
string
Returns the string value.
static of(value)
public static of(value: string): FlowSize
Parameters
- value
stringโ The flow size string value.
Returns
Use a custom flow size value.

.NET
Go
Java
Python
TypeScript (