Class CfnFlowSource

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:21.487Z") @Stability(Stable) public class CfnFlowSource extends CfnResource implements IInspectable
The AWS::MediaConnect::FlowSource resource is used 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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrIngestIp

      @Stability(Stable) @NotNull public String getAttrIngestIp()
      The IP address that the flow listens on for incoming content.
    • getAttrSourceArn

      @Stability(Stable) @NotNull public String getAttrSourceArn()
      The ARN of the source.
    • getAttrSourceIngestPort

      @Stability(Stable) @NotNull public String 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

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getDescription

      @Stability(Stable) @NotNull public String getDescription()
      A description of the source.
    • setDescription

      @Stability(Stable) public void setDescription(@NotNull String value)
      A description of the source.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the source.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the source.
    • getDecryption

      @Stability(Stable) @Nullable public Object getDecryption()
      The type of encryption that is used on the content ingested from the source.
    • setDecryption

      @Stability(Stable) public void setDecryption(@Nullable IResolvable value)
      The type of encryption that is used on the content ingested from the source.
    • setDecryption

      @Stability(Stable) public void setDecryption(@Nullable CfnFlowSource.EncryptionProperty value)
      The type of encryption that is used on the content ingested from the source.
    • getEntitlementArn

      @Stability(Stable) @Nullable public String getEntitlementArn()
      The ARN of the entitlement that allows you to subscribe to the flow.
    • setEntitlementArn

      @Stability(Stable) public void setEntitlementArn(@Nullable String value)
      The ARN of the entitlement that allows you to subscribe to the flow.
    • getFlowArn

      @Stability(Stable) @Nullable public String getFlowArn()
      The Amazon Resource Name (ARN) of the flow this source is connected to.
    • setFlowArn

      @Stability(Stable) public void setFlowArn(@Nullable String value)
      The Amazon Resource Name (ARN) of the flow this source is connected to.
    • getGatewayBridgeSource

      @Stability(Stable) @Nullable public Object getGatewayBridgeSource()
      The source configuration for cloud flows receiving a stream from a bridge.
    • setGatewayBridgeSource

      @Stability(Stable) public void setGatewayBridgeSource(@Nullable IResolvable value)
      The source configuration for cloud flows receiving a stream from a bridge.
    • setGatewayBridgeSource

      @Stability(Stable) public void setGatewayBridgeSource(@Nullable CfnFlowSource.GatewayBridgeSourceProperty value)
      The source configuration for cloud flows receiving a stream from a bridge.
    • getIngestPort

      @Stability(Stable) @Nullable public Number getIngestPort()
      The port that the flow listens on for incoming content.
    • setIngestPort

      @Stability(Stable) public void setIngestPort(@Nullable Number value)
      The port that the flow listens on for incoming content.
    • getMaxBitrate

      @Stability(Stable) @Nullable public Number getMaxBitrate()
      The maximum bitrate for RIST, RTP, and RTP-FEC streams.
    • setMaxBitrate

      @Stability(Stable) public void setMaxBitrate(@Nullable Number value)
      The maximum bitrate for RIST, RTP, and RTP-FEC streams.
    • getMaxLatency

      @Stability(Stable) @Nullable public Number getMaxLatency()
      The maximum latency in milliseconds.
    • setMaxLatency

      @Stability(Stable) public void setMaxLatency(@Nullable Number value)
      The maximum latency in milliseconds.
    • getMinLatency

      @Stability(Stable) @Nullable public Number getMinLatency()
      The minimum latency in milliseconds for SRT-based streams.
    • setMinLatency

      @Stability(Stable) public void setMinLatency(@Nullable Number value)
      The minimum latency in milliseconds for SRT-based streams.
    • getProtocol

      @Stability(Stable) @Nullable public String getProtocol()
      The protocol that the source uses to deliver the content to MediaConnect.
    • setProtocol

      @Stability(Stable) public void setProtocol(@Nullable String value)
      The protocol that the source uses to deliver the content to MediaConnect.
    • getSenderControlPort

      @Stability(Stable) @Nullable public Number getSenderControlPort()
      The port that the flow uses to send outbound requests to initiate connection with the sender.
    • setSenderControlPort

      @Stability(Stable) public void setSenderControlPort(@Nullable Number value)
      The port that the flow uses to send outbound requests to initiate connection with the sender.
    • getSenderIpAddress

      @Stability(Stable) @Nullable public String getSenderIpAddress()
      The IP address that the flow communicates with to initiate connection with the sender.
    • setSenderIpAddress

      @Stability(Stable) public void setSenderIpAddress(@Nullable String value)
      The IP address that the flow communicates with to initiate connection with the sender.
    • getSourceListenerAddress

      @Stability(Stable) @Nullable public String getSourceListenerAddress()
      Source IP or domain name for SRT-caller protocol.
    • setSourceListenerAddress

      @Stability(Stable) public void setSourceListenerAddress(@Nullable String value)
      Source IP or domain name for SRT-caller protocol.
    • getSourceListenerPort

      @Stability(Stable) @Nullable public Number getSourceListenerPort()
      Source port for SRT-caller protocol.
    • setSourceListenerPort

      @Stability(Stable) public void setSourceListenerPort(@Nullable Number value)
      Source port for SRT-caller protocol.
    • getStreamId

      @Stability(Stable) @Nullable public String getStreamId()
      The stream ID that you want to use for this transport.
    • setStreamId

      @Stability(Stable) public void setStreamId(@Nullable String value)
      The stream ID that you want to use for this transport.
    • getVpcInterfaceName

      @Stability(Stable) @Nullable public String getVpcInterfaceName()
      The name of the VPC interface that you want to send your output to.
    • setVpcInterfaceName

      @Stability(Stable) public void setVpcInterfaceName(@Nullable String value)
      The name of the VPC interface that you want to send your output to.
    • getWhitelistCidr

      @Stability(Stable) @Nullable public String getWhitelistCidr()
      The range of IP addresses that are allowed to contribute content to your source.
    • setWhitelistCidr

      @Stability(Stable) public void setWhitelistCidr(@Nullable String value)
      The range of IP addresses that are allowed to contribute content to your source.