Class CfnFlowSource
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.mediaconnect.CfnFlowSource
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,IFlowSourceRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:09.562Z")
@Stability(Stable)
public class CfnFlowSource
extends CfnResource
implements IInspectable, IFlowSourceRef
The
AWS::MediaConnect::FlowSource resource is usedt to add additional sources to an existing flow.
Adding an additional source requires Failover to be enabled. When you enable Failover, the additional source must use the same protocol as the existing source. A source is the external video content that includes configuration information (encryption and source type) and a network address. Each flow has at least one source. A standard source comes from a source other than another AWS Elemental MediaConnect flow, such as an on-premises encoder.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediaconnect.*;
CfnFlowSource cfnFlowSource = CfnFlowSource.Builder.create(this, "MyCfnFlowSource")
.description("description")
.name("name")
// the properties below are optional
.decryption(EncryptionProperty.builder()
.roleArn("roleArn")
// the properties below are optional
.algorithm("algorithm")
.constantInitializationVector("constantInitializationVector")
.deviceId("deviceId")
.keyType("keyType")
.region("region")
.resourceId("resourceId")
.secretArn("secretArn")
.url("url")
.build())
.entitlementArn("entitlementArn")
.flowArn("flowArn")
.gatewayBridgeSource(GatewayBridgeSourceProperty.builder()
.bridgeArn("bridgeArn")
// the properties below are optional
.vpcInterfaceAttachment(VpcInterfaceAttachmentProperty.builder()
.vpcInterfaceName("vpcInterfaceName")
.build())
.build())
.ingestPort(123)
.maxBitrate(123)
.maxLatency(123)
.minLatency(123)
.protocol("protocol")
.senderControlPort(123)
.senderIpAddress("senderIpAddress")
.sourceListenerAddress("sourceListenerAddress")
.sourceListenerPort(123)
.streamId("streamId")
.vpcInterfaceName("vpcInterfaceName")
.whitelistCidr("whitelistCidr")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFlowSource.static interfaceInformation about the encryption of the flow.static interfaceThe source configuration for cloud flows receiving a stream from a bridge.static interfaceThe settings for attaching a VPC interface to an resource.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.mediaconnect.IFlowSourceRef
IFlowSourceRef.Jsii$Default, IFlowSourceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFlowSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFlowSource(software.amazon.jsii.JsiiObjectRef objRef) CfnFlowSource(software.constructs.Construct scope, String id, CfnFlowSourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe IP address that the flow listens on for incoming content.The ARN of the source.The port that the flow listens on for incoming content.The type of encryption that is used on the content ingested from this source.A description for the source.The ARN of the entitlement that allows you to subscribe to this flow.The Amazon Resource Name (ARN) of the flow this source is connected to.A reference to a FlowSource resource.The bridge's source.The port that the flow listens on for incoming content.The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams.The maximum latency in milliseconds.The minimum latency in milliseconds for SRT-based streams.getName()The name of the source.The protocol that the source uses to deliver the content to MediaConnect.The port that the flow uses to send outbound requests to initiate connection with the sender.The IP address that the flow communicates with to initiate connection with the sender.Source IP or domain name for SRT-caller protocol.Source port for SRT-caller protocol.The stream ID that you want to use for this transport.The name of the VPC interface to use for this source.The range of IP addresses that should be allowed to contribute content to your source.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDecryption(IResolvable value) The type of encryption that is used on the content ingested from this source.voidThe type of encryption that is used on the content ingested from this source.voidsetDescription(String value) A description for the source.voidsetEntitlementArn(String value) The ARN of the entitlement that allows you to subscribe to this flow.voidsetFlowArn(String value) The Amazon Resource Name (ARN) of the flow this source is connected to.voidThe bridge's source.voidThe bridge's source.voidsetIngestPort(Number value) The port that the flow listens on for incoming content.voidsetMaxBitrate(Number value) The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams.voidsetMaxLatency(Number value) The maximum latency in milliseconds.voidsetMinLatency(Number value) The minimum latency in milliseconds for SRT-based streams.voidThe name of the source.voidsetProtocol(String value) The protocol that the source uses to deliver the content to MediaConnect.voidsetSenderControlPort(Number value) The port that the flow uses to send outbound requests to initiate connection with the sender.voidsetSenderIpAddress(String value) The IP address that the flow communicates with to initiate connection with the sender.voidsetSourceListenerAddress(String value) Source IP or domain name for SRT-caller protocol.voidsetSourceListenerPort(Number value) Source port for SRT-caller protocol.voidsetStreamId(String value) The stream ID that you want to use for this transport.voidsetVpcInterfaceName(String value) The name of the VPC interface to use for this source.voidsetWhitelistCidr(String value) The range of IP addresses that should be allowed to contribute content to your source.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFlowSource
protected CfnFlowSource(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFlowSource
protected CfnFlowSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFlowSource
@Stability(Stable) public CfnFlowSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFlowSourceProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrIngestIp
The IP address that the flow listens on for incoming content. -
getAttrSourceArn
The ARN of the source. -
getAttrSourceIngestPort
The port that the flow listens on for incoming content.If the protocol of the source is Zixi, the port must be set to 2088.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFlowSourceRef
A reference to a FlowSource resource.- Specified by:
getFlowSourceRefin interfaceIFlowSourceRef
-
getDescription
A description for the source. -
setDescription
A description for the source. -
getName
The name of the source. -
setName
The name of the source. -
getDecryption
The type of encryption that is used on the content ingested from this source.Returns union: either
IResolvableorCfnFlowSource.EncryptionProperty -
setDecryption
The type of encryption that is used on the content ingested from this source. -
setDecryption
The type of encryption that is used on the content ingested from this source. -
getEntitlementArn
The ARN of the entitlement that allows you to subscribe to this flow. -
setEntitlementArn
The ARN of the entitlement that allows you to subscribe to this flow. -
getFlowArn
The Amazon Resource Name (ARN) of the flow this source is connected to. -
setFlowArn
The Amazon Resource Name (ARN) of the flow this source is connected to. -
getGatewayBridgeSource
The bridge's source.Returns union: either
IResolvableorCfnFlowSource.GatewayBridgeSourceProperty -
setGatewayBridgeSource
The bridge's source. -
setGatewayBridgeSource
@Stability(Stable) public void setGatewayBridgeSource(@Nullable CfnFlowSource.GatewayBridgeSourceProperty value) The bridge's source. -
getIngestPort
The port that the flow listens on for incoming content. -
setIngestPort
The port that the flow listens on for incoming content. -
getMaxBitrate
The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams. -
setMaxBitrate
The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams. -
getMaxLatency
The maximum latency in milliseconds. -
setMaxLatency
The maximum latency in milliseconds. -
getMinLatency
The minimum latency in milliseconds for SRT-based streams. -
setMinLatency
The minimum latency in milliseconds for SRT-based streams. -
getProtocol
The protocol that the source uses to deliver the content to MediaConnect. -
setProtocol
The protocol that the source uses to deliver the content to MediaConnect. -
getSenderControlPort
The port that the flow uses to send outbound requests to initiate connection with the sender. -
setSenderControlPort
The port that the flow uses to send outbound requests to initiate connection with the sender. -
getSenderIpAddress
The IP address that the flow communicates with to initiate connection with the sender. -
setSenderIpAddress
The IP address that the flow communicates with to initiate connection with the sender. -
getSourceListenerAddress
Source IP or domain name for SRT-caller protocol. -
setSourceListenerAddress
Source IP or domain name for SRT-caller protocol. -
getSourceListenerPort
Source port for SRT-caller protocol. -
setSourceListenerPort
Source port for SRT-caller protocol. -
getStreamId
The stream ID that you want to use for this transport. -
setStreamId
The stream ID that you want to use for this transport. -
getVpcInterfaceName
The name of the VPC interface to use for this source. -
setVpcInterfaceName
The name of the VPC interface to use for this source. -
getWhitelistCidr
The range of IP addresses that should be allowed to contribute content to your source. -
setWhitelistCidr
The range of IP addresses that should be allowed to contribute content to your source.
-