Interface SourceCdi
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SourceCdi.Jsii$Proxy
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.225Z")
@Stability(Experimental)
public interface SourceCdi
extends software.amazon.jsii.JsiiSerializable
(experimental) Configuration for CDI.
Example:
Stack stack;
IRole role;
ISecurityGroup securityGroup;
ISubnet subnet;
VpcInterfaceConfig efaInterface = VpcInterface.define(VpcInterfaceDefineProps.builder()
.vpcInterfaceName("efa-interface")
.role(role)
.securityGroups(List.of(securityGroup))
.subnet(subnet)
.networkInterfaceType(NetworkInterface.EFA)
.build());
MediaStream videoStream = MediaStream.video(MediaStreamVideo.builder()
.mediaStreamId(1)
.mediaStreamName("video")
.videoFormat(MediaVideoFormat.HD_1080P)
.fmtp(FmtpVideo.builder()
.exactFramerate(Framerate.FPS_29_97)
.par(PixelAspectRatio.SQUARE)
.build())
.build());
Flow flow = Flow.Builder.create(stack, "MyCdiFlow")
.flowSize(FlowSize.LARGE_4X) // Required for CDI and JPEG XS
.vpcInterfaces(List.of(efaInterface))
.mediaStreams(List.of(videoStream))
.source(SourceConfiguration.cdi(SourceCdi.builder()
.flowSourceName("cdi-source")
.vpcInterface(efaInterface)
.port(5000)
.maxSyncBuffer(100)
.mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationCdi.builder()
.encoding(Encoding.RAW)
.mediaStream(videoStream)
.build()))
.build()))
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceCdi.Builderbuilder()default String(experimental) The name of the source.(experimental) The size of the buffer (in ms) to use to sync incoming source data.(experimental) The media stream that is associated with the source, and the parameters for that association.getPort()(experimental) The port that the flow will be listening on for incoming content.(experimental) The VPC interface attachment to use for this bridge source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaxSyncBuffer
(experimental) The size of the buffer (in ms) to use to sync incoming source data.Required by the MediaConnect service for CDI sources.
-
getMediaStreamSourceConfigurations
@Stability(Experimental) @NotNull List<MediaStreamSourceConfigurationCdi> getMediaStreamSourceConfigurations()(experimental) The media stream that is associated with the source, and the parameters for that association. -
getPort
(experimental) The port that the flow will be listening on for incoming content. -
getVpcInterface
(experimental) The VPC interface attachment to use for this bridge source. -
getFlowSourceName
(experimental) The name of the source.Default: - a name is generated automatically
-
builder
- Returns:
- a
SourceCdi.BuilderofSourceCdi
-