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();
 
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Experimental) public static final String 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 ingestIp and/or sourceIngestPort when 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

      @Stability(Experimental) @NotNull public String getFlowSourceArn()
      (experimental) The Amazon Resource Name (ARN) of the flow source.
      Specified by:
      getFlowSourceArn in interface IFlowSource
    • getFlowSourceName

      @Stability(Experimental) @NotNull public String getFlowSourceName()
      (experimental) The name of the flow source.
      Specified by:
      getFlowSourceName in interface IFlowSource
    • getFlowSourceRef

      @Stability(Experimental) @NotNull public FlowSourceReference getFlowSourceRef()
      (experimental) A reference to a FlowSource resource.
      Specified by:
      getFlowSourceRef in interface IFlowSourceRef
    • getIngestIp

      @Stability(Experimental) @NotNull public String getIngestIp()
      (experimental) The IP address that the flow will be listening on for incoming content.
      Specified by:
      getIngestIp in interface IFlowSource
    • getSourceIngestPort

      @Stability(Experimental) @NotNull public String getSourceIngestPort()
      (experimental) The port that the flow will be listening on for incoming content.
      Specified by:
      getSourceIngestPort in interface IFlowSource