# CfnFlowSourceProps

Properties for defining a `CfnFlowSource`.

Used as props by: [CfnFlowSource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnFlowSource.html)

- Source: Generated at build time
- Type last changed: v2.278.0 · 20 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediaconnect as mediaconnect } from 'aws-cdk-lib';

declare const automatic: any;
const cfnFlowSourceProps: mediaconnect.CfnFlowSourceProps = {
  description: 'description',
  flowArn: 'flowArn',
  name: 'name',

  // the properties below are optional
  decryption: {
    roleArn: 'roleArn',

    // the properties below are optional
    algorithm: 'algorithm',
    constantInitializationVector: 'constantInitializationVector',
    deviceId: 'deviceId',
    keyType: 'keyType',
    region: 'region',
    resourceId: 'resourceId',
    secretArn: 'secretArn',
    url: 'url',
  },
  entitlementArn: 'entitlementArn',
  gatewayBridgeSource: {
    bridgeArn: 'bridgeArn',

    // the properties below are optional
    vpcInterfaceAttachment: {
      vpcInterfaceName: 'vpcInterfaceName',
    },
  },
  ingestPort: 123,
  maxBitrate: 123,
  maxLatency: 123,
  minLatency: 123,
  protocol: 'protocol',
  rtmpPushSettings: {
    namingConfiguration: {
      automatic: automatic,
      manual: {
        applicationName: 'applicationName',
        streamName: 'streamName',
      },
    },
  },
  senderControlPort: 123,
  senderIpAddress: 'senderIpAddress',
  sourceListenerAddress: 'sourceListenerAddress',
  sourceListenerPort: 123,
  streamId: 'streamId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vpcInterfaceName: 'vpcInterfaceName',
  whitelistCidr: 'whitelistCidr',
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediaconnect as mediaconnect

# automatic: Any

cfn_flow_source_props = mediaconnect.CfnFlowSourceProps(
    description="description",
    flow_arn="flowArn",
    name="name",

    # the properties below are optional
    decryption=mediaconnect.CfnFlowSource.EncryptionProperty(
        role_arn="roleArn",

        # the properties below are optional
        algorithm="algorithm",
        constant_initialization_vector="constantInitializationVector",
        device_id="deviceId",
        key_type="keyType",
        region="region",
        resource_id="resourceId",
        secret_arn="secretArn",
        url="url"
    ),
    entitlement_arn="entitlementArn",
    gateway_bridge_source=mediaconnect.CfnFlowSource.GatewayBridgeSourceProperty(
        bridge_arn="bridgeArn",

        # the properties below are optional
        vpc_interface_attachment=mediaconnect.CfnFlowSource.VpcInterfaceAttachmentProperty(
            vpc_interface_name="vpcInterfaceName"
        )
    ),
    ingest_port=123,
    max_bitrate=123,
    max_latency=123,
    min_latency=123,
    protocol="protocol",
    rtmp_push_settings=mediaconnect.CfnFlowSource.RtmpPushSettingsProperty(
        naming_configuration=mediaconnect.CfnFlowSource.RtmpPushNamingConfigurationProperty(
            automatic=automatic,
            manual=mediaconnect.CfnFlowSource.ManualRtmpPushNamingConfigurationProperty(
                application_name="applicationName",
                stream_name="streamName"
            )
        )
    ),
    sender_control_port=123,
    sender_ip_address="senderIpAddress",
    source_listener_address="sourceListenerAddress",
    source_listener_port=123,
    stream_id="streamId",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_interface_name="vpcInterfaceName",
    whitelist_cidr="whitelistCidr"
)
```

Java:

```java
// 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.*;

Object automatic;

CfnFlowSourceProps cfnFlowSourceProps = CfnFlowSourceProps.builder()
        .description("description")
        .flowArn("flowArn")
        .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")
        .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")
        .rtmpPushSettings(RtmpPushSettingsProperty.builder()
                .namingConfiguration(RtmpPushNamingConfigurationProperty.builder()
                        .automatic(automatic)
                        .manual(ManualRtmpPushNamingConfigurationProperty.builder()
                                .applicationName("applicationName")
                                .streamName("streamName")
                                .build())
                        .build())
                .build())
        .senderControlPort(123)
        .senderIpAddress("senderIpAddress")
        .sourceListenerAddress("sourceListenerAddress")
        .sourceListenerPort(123)
        .streamId("streamId")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .vpcInterfaceName("vpcInterfaceName")
        .whitelistCidr("whitelistCidr")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect;

var automatic;

var cfnFlowSourceProps = new CfnFlowSourceProps {
    Description = "description",
    FlowArn = "flowArn",
    Name = "name",

    // the properties below are optional
    Decryption = new EncryptionProperty {
        RoleArn = "roleArn",

        // the properties below are optional
        Algorithm = "algorithm",
        ConstantInitializationVector = "constantInitializationVector",
        DeviceId = "deviceId",
        KeyType = "keyType",
        Region = "region",
        ResourceId = "resourceId",
        SecretArn = "secretArn",
        Url = "url"
    },
    EntitlementArn = "entitlementArn",
    GatewayBridgeSource = new GatewayBridgeSourceProperty {
        BridgeArn = "bridgeArn",

        // the properties below are optional
        VpcInterfaceAttachment = new VpcInterfaceAttachmentProperty {
            VpcInterfaceName = "vpcInterfaceName"
        }
    },
    IngestPort = 123,
    MaxBitrate = 123,
    MaxLatency = 123,
    MinLatency = 123,
    Protocol = "protocol",
    RtmpPushSettings = new RtmpPushSettingsProperty {
        NamingConfiguration = new RtmpPushNamingConfigurationProperty {
            Automatic = automatic,
            Manual = new ManualRtmpPushNamingConfigurationProperty {
                ApplicationName = "applicationName",
                StreamName = "streamName"
            }
        }
    },
    SenderControlPort = 123,
    SenderIpAddress = "senderIpAddress",
    SourceListenerAddress = "sourceListenerAddress",
    SourceListenerPort = 123,
    StreamId = "streamId",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VpcInterfaceName = "vpcInterfaceName",
    WhitelistCidr = "whitelistCidr"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var automatic interface{}

cfnFlowSourceProps := &CfnFlowSourceProps{
	Description: jsii.String("description"),
	FlowArn: jsii.String("flowArn"),
	Name: jsii.String("name"),

	// the properties below are optional
	Decryption: &EncryptionProperty{
		RoleArn: jsii.String("roleArn"),

		// the properties below are optional
		Algorithm: jsii.String("algorithm"),
		ConstantInitializationVector: jsii.String("constantInitializationVector"),
		DeviceId: jsii.String("deviceId"),
		KeyType: jsii.String("keyType"),
		Region: jsii.String("region"),
		ResourceId: jsii.String("resourceId"),
		SecretArn: jsii.String("secretArn"),
		Url: jsii.String("url"),
	},
	EntitlementArn: jsii.String("entitlementArn"),
	GatewayBridgeSource: &GatewayBridgeSourceProperty{
		BridgeArn: jsii.String("bridgeArn"),

		// the properties below are optional
		VpcInterfaceAttachment: &VpcInterfaceAttachmentProperty{
			VpcInterfaceName: jsii.String("vpcInterfaceName"),
		},
	},
	IngestPort: jsii.Number(123),
	MaxBitrate: jsii.Number(123),
	MaxLatency: jsii.Number(123),
	MinLatency: jsii.Number(123),
	Protocol: jsii.String("protocol"),
	RtmpPushSettings: &RtmpPushSettingsProperty{
		NamingConfiguration: &RtmpPushNamingConfigurationProperty{
			Automatic: automatic,
			Manual: &ManualRtmpPushNamingConfigurationProperty{
				ApplicationName: jsii.String("applicationName"),
				StreamName: jsii.String("streamName"),
			},
		},
	},
	SenderControlPort: jsii.Number(123),
	SenderIpAddress: jsii.String("senderIpAddress"),
	SourceListenerAddress: jsii.String("sourceListenerAddress"),
	SourceListenerPort: jsii.Number(123),
	StreamId: jsii.String("streamId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VpcInterfaceName: jsii.String("vpcInterfaceName"),
	WhitelistCidr: jsii.String("whitelistCidr"),
}
```

## Properties

- `decryption`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlowSource.EncryptionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnFlowSource.EncryptionProperty.html) — The type of encryption that is used on the content ingested from this source.

  Allowable encryption types: static-key.

- `description`: string (required) — A description for the source.

  This value is not used or seen outside of the current MediaConnect account.

- `entitlementArn`: string — this property has been deprecated

  The entitlement is set by the flow originator, and the ARN is generated as part of the originator's flow.

- `flowArn`: string (required) — The Amazon Resource Name (ARN) of the flow this source is connected to.

  The flow must have Failover enabled to add an additional source.

- `gatewayBridgeSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlowSource.GatewayBridgeSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnFlowSource.GatewayBridgeSourceProperty.html) — The bridge's source.

- `ingestPort`: number — 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.

- `maxBitrate`: number — The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams.

- `maxLatency`: number — The maximum latency in milliseconds.

  This parameter applies only to RIST-based and Zixi-based streams.

- `minLatency`: number — The minimum latency in milliseconds for SRT-based streams.

  In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.

- `name`: string (required) — The name of the source.

- `protocol`: string — The protocol that the source uses to deliver the content to MediaConnect.

  Adding additional sources to an existing flow requires Failover to be enabled. When you enable Failover, the additional source must use the same protocol as the existing source. Only the following protocols support failover: Zixi-push, RTP-FEC, RTP, RIST and SRT protocols.

  If you use failover with SRT caller or listener, the `FailoverMode` property must be set to `FAILOVER` . The `FailoverMode` property is found in the `FailoverConfig` resource of the same flow ARN you used for the source's `FlowArn` property. SRT caller/listener does not support merge mode failover.

- `rtmpPushSettings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlowSource.RtmpPushSettingsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnFlowSource.RtmpPushSettingsProperty.html) — The settings for the RTMP (Real-Time Messaging Protocol) source.

- `senderControlPort`: number — this property has been deprecated

- `senderIpAddress`: string — this property has been deprecated

- `sourceListenerAddress`: string — Source IP or domain name for SRT-caller protocol.

- `sourceListenerPort`: number — Source port for SRT-caller protocol.

- `streamId`: string — The stream ID that you want to use for this transport.

  This parameter applies only to Zixi and SRT caller-based streams.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Key-value pairs that can be used to tag and organize this flow source.

- `vpcInterfaceName`: string — The name of the VPC interface to use for this source.

- `whitelistCidr`: string — The range of IP addresses that should be allowed to contribute content to your source.

  These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
