Experimental
@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
FlowSize Class
Options for Flow Size.
Example
ts
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
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.
Option for large 4x flow size.
Required for JPEG XS and CDI protocols. Does not support transport streams or NDI.
Medium flow size.
The default — standard transport stream distribution; does not support NDI, CDI, or JPEG XS.
The flow size string value.
Methods
of(value: string): FlowSize // chainable@staticmethod def of(value: str) -> FlowSizepublic static FlowSize of(String value)public static FlowSize Of(string value)func Of(Value *string) FlowSizestatic#Use a custom flow size value.
1 parameter
Parameters
valuevaluevaluevalueValue— The flow size string value.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#Returns the string value.