Class FlowSource
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.mediaconnect.alpha.FlowSource
- All Implemented Interfaces:
IEnvironmentAware,IFlowSourceRef,IResource,IFlowSource,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.149Z")
@Stability(Experimental)
public class FlowSource
extends Resource
implements IFlowSource
(experimental) Adds source 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.alpha.*;
Flow flow;
SourceConfiguration sourceConfiguration;
FlowSource flowSource = FlowSource.Builder.create(this, "MyFlowSource")
.flow(flow)
.source(sourceConfiguration)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forFlowSource.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.alpha.IFlowSource
IFlowSource.Jsii$Default, IFlowSource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFlowSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedFlowSource(software.amazon.jsii.JsiiObjectRef objRef) FlowSource(software.constructs.Construct scope, String id, FlowSourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IFlowSourcefromFlowSourceArn(software.constructs.Construct scope, String id, String flowSourceArn) (experimental) Import an existing Flow Source from its ARN.static IFlowSourcefromFlowSourceAttributes(software.constructs.Construct scope, String id, FlowSourceAttributes attrs) (experimental) Import an existing Flow Source from its attributes.(experimental) The Amazon Resource Name (ARN) of the flow source.(experimental) The name of the flow source.(experimental) A reference to a FlowSource resource.(experimental) The IP address that the flow will be listening on for incoming content.(experimental) The port that the flow will be listening on for incoming content.Methods inherited from class software.amazon.awscdk.Resource
applyCrossStackReferenceStrength, applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
FlowSource
protected FlowSource(software.amazon.jsii.JsiiObjectRef objRef) -
FlowSource
protected FlowSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
FlowSource
@Stability(Experimental) public FlowSource(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FlowSourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromFlowSourceArn
@Stability(Experimental) @NotNull public static IFlowSource fromFlowSourceArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String flowSourceArn) (experimental) Import an existing Flow Source from its ARN.- Parameters:
scope- The parent construct. This parameter is required.id- The construct id. This parameter is required.flowSourceArn- The ARN of the Flow Source. This parameter is required.- Returns:
- A Flow Source construct
-
fromFlowSourceAttributes
@Stability(Experimental) @NotNull public static IFlowSource fromFlowSourceAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FlowSourceAttributes attrs) (experimental) Import an existing Flow Source from its attributes.Provide
ingestIpand/orsourceIngestPortwhen importing a source that was deployed externally — otherwise accessing those properties on the imported construct will throw.- Parameters:
scope- The parent construct. This parameter is required.id- The construct id. This parameter is required.attrs- The Flow Source attributes. This parameter is required.- Returns:
- A Flow Source construct
-
getFlowSourceArn
(experimental) The Amazon Resource Name (ARN) of the flow source.- Specified by:
getFlowSourceArnin interfaceIFlowSource
-
getFlowSourceName
(experimental) The name of the flow source.- Specified by:
getFlowSourceNamein interfaceIFlowSource
-
getFlowSourceRef
(experimental) A reference to a FlowSource resource.- Specified by:
getFlowSourceRefin interfaceIFlowSourceRef
-
getIngestIp
(experimental) The IP address that the flow will be listening on for incoming content.- Specified by:
getIngestIpin interfaceIFlowSource
-
getSourceIngestPort
(experimental) The port that the flow will be listening on for incoming content.- Specified by:
getSourceIngestPortin interfaceIFlowSource
-