# MergeRouterInputConfigurationProperty

Configuration settings for a merge router input that combines two input sources.

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## 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';
const mergeRouterInputConfigurationProperty: mediaconnect.CfnRouterInput.MergeRouterInputConfigurationProperty = {
  mergeRecoveryWindowMilliseconds: 123,
  networkInterfaceArn: 'networkInterfaceArn',
  protocolConfigurations: [{
    rist: {
      port: 123,
      recoveryLatencyMilliseconds: 123,
    },
    rtp: {
      port: 123,

      // the properties below are optional
      forwardErrorCorrection: 'forwardErrorCorrection',
    },
    srtCaller: {
      minimumLatencyMilliseconds: 123,
      sourceAddress: 'sourceAddress',
      sourcePort: 123,

      // the properties below are optional
      decryptionConfiguration: {
        encryptionKey: {
          roleArn: 'roleArn',
          secretArn: 'secretArn',
        },
      },
      streamId: 'streamId',
    },
    srtListener: {
      minimumLatencyMilliseconds: 123,
      port: 123,

      // the properties below are optional
      decryptionConfiguration: {
        encryptionKey: {
          roleArn: 'roleArn',
          secretArn: 'secretArn',
        },
      },
    },
  }],
};
```

Python:

```python
# 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

merge_router_input_configuration_property = mediaconnect.CfnRouterInput.MergeRouterInputConfigurationProperty(
    merge_recovery_window_milliseconds=123,
    network_interface_arn="networkInterfaceArn",
    protocol_configurations=[mediaconnect.CfnRouterInput.MergeRouterInputProtocolConfigurationProperty(
        rist=mediaconnect.CfnRouterInput.RistRouterInputConfigurationProperty(
            port=123,
            recovery_latency_milliseconds=123
        ),
        rtp=mediaconnect.CfnRouterInput.RtpRouterInputConfigurationProperty(
            port=123,

            # the properties below are optional
            forward_error_correction="forwardErrorCorrection"
        ),
        srt_caller=mediaconnect.CfnRouterInput.SrtCallerRouterInputConfigurationProperty(
            minimum_latency_milliseconds=123,
            source_address="sourceAddress",
            source_port=123,

            # the properties below are optional
            decryption_configuration=mediaconnect.CfnRouterInput.SrtDecryptionConfigurationProperty(
                encryption_key=mediaconnect.CfnRouterInput.SecretsManagerEncryptionKeyConfigurationProperty(
                    role_arn="roleArn",
                    secret_arn="secretArn"
                )
            ),
            stream_id="streamId"
        ),
        srt_listener=mediaconnect.CfnRouterInput.SrtListenerRouterInputConfigurationProperty(
            minimum_latency_milliseconds=123,
            port=123,

            # the properties below are optional
            decryption_configuration=mediaconnect.CfnRouterInput.SrtDecryptionConfigurationProperty(
                encryption_key=mediaconnect.CfnRouterInput.SecretsManagerEncryptionKeyConfigurationProperty(
                    role_arn="roleArn",
                    secret_arn="secretArn"
                )
            )
        )
    )]
)
```

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.*;

MergeRouterInputConfigurationProperty mergeRouterInputConfigurationProperty = MergeRouterInputConfigurationProperty.builder()
        .mergeRecoveryWindowMilliseconds(123)
        .networkInterfaceArn("networkInterfaceArn")
        .protocolConfigurations(List.of(MergeRouterInputProtocolConfigurationProperty.builder()
                .rist(RistRouterInputConfigurationProperty.builder()
                        .port(123)
                        .recoveryLatencyMilliseconds(123)
                        .build())
                .rtp(RtpRouterInputConfigurationProperty.builder()
                        .port(123)

                        // the properties below are optional
                        .forwardErrorCorrection("forwardErrorCorrection")
                        .build())
                .srtCaller(SrtCallerRouterInputConfigurationProperty.builder()
                        .minimumLatencyMilliseconds(123)
                        .sourceAddress("sourceAddress")
                        .sourcePort(123)

                        // the properties below are optional
                        .decryptionConfiguration(SrtDecryptionConfigurationProperty.builder()
                                .encryptionKey(SecretsManagerEncryptionKeyConfigurationProperty.builder()
                                        .roleArn("roleArn")
                                        .secretArn("secretArn")
                                        .build())
                                .build())
                        .streamId("streamId")
                        .build())
                .srtListener(SrtListenerRouterInputConfigurationProperty.builder()
                        .minimumLatencyMilliseconds(123)
                        .port(123)

                        // the properties below are optional
                        .decryptionConfiguration(SrtDecryptionConfigurationProperty.builder()
                                .encryptionKey(SecretsManagerEncryptionKeyConfigurationProperty.builder()
                                        .roleArn("roleArn")
                                        .secretArn("secretArn")
                                        .build())
                                .build())
                        .build())
                .build()))
        .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 mergeRouterInputConfigurationProperty = new MergeRouterInputConfigurationProperty {
    MergeRecoveryWindowMilliseconds = 123,
    NetworkInterfaceArn = "networkInterfaceArn",
    ProtocolConfigurations = new [] { new MergeRouterInputProtocolConfigurationProperty {
        Rist = new RistRouterInputConfigurationProperty {
            Port = 123,
            RecoveryLatencyMilliseconds = 123
        },
        Rtp = new RtpRouterInputConfigurationProperty {
            Port = 123,

            // the properties below are optional
            ForwardErrorCorrection = "forwardErrorCorrection"
        },
        SrtCaller = new SrtCallerRouterInputConfigurationProperty {
            MinimumLatencyMilliseconds = 123,
            SourceAddress = "sourceAddress",
            SourcePort = 123,

            // the properties below are optional
            DecryptionConfiguration = new SrtDecryptionConfigurationProperty {
                EncryptionKey = new SecretsManagerEncryptionKeyConfigurationProperty {
                    RoleArn = "roleArn",
                    SecretArn = "secretArn"
                }
            },
            StreamId = "streamId"
        },
        SrtListener = new SrtListenerRouterInputConfigurationProperty {
            MinimumLatencyMilliseconds = 123,
            Port = 123,

            // the properties below are optional
            DecryptionConfiguration = new SrtDecryptionConfigurationProperty {
                EncryptionKey = new SecretsManagerEncryptionKeyConfigurationProperty {
                    RoleArn = "roleArn",
                    SecretArn = "secretArn"
                }
            }
        }
    } }
};
```

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"

mergeRouterInputConfigurationProperty := &MergeRouterInputConfigurationProperty{
	MergeRecoveryWindowMilliseconds: jsii.Number(123),
	NetworkInterfaceArn: jsii.String("networkInterfaceArn"),
	ProtocolConfigurations: []interface{}{
		&MergeRouterInputProtocolConfigurationProperty{
			Rist: &RistRouterInputConfigurationProperty{
				Port: jsii.Number(123),
				RecoveryLatencyMilliseconds: jsii.Number(123),
			},
			Rtp: &RtpRouterInputConfigurationProperty{
				Port: jsii.Number(123),

				// the properties below are optional
				ForwardErrorCorrection: jsii.String("forwardErrorCorrection"),
			},
			SrtCaller: &SrtCallerRouterInputConfigurationProperty{
				MinimumLatencyMilliseconds: jsii.Number(123),
				SourceAddress: jsii.String("sourceAddress"),
				SourcePort: jsii.Number(123),

				// the properties below are optional
				DecryptionConfiguration: &SrtDecryptionConfigurationProperty{
					EncryptionKey: &SecretsManagerEncryptionKeyConfigurationProperty{
						RoleArn: jsii.String("roleArn"),
						SecretArn: jsii.String("secretArn"),
					},
				},
				StreamId: jsii.String("streamId"),
			},
			SrtListener: &SrtListenerRouterInputConfigurationProperty{
				MinimumLatencyMilliseconds: jsii.Number(123),
				Port: jsii.Number(123),

				// the properties below are optional
				DecryptionConfiguration: &SrtDecryptionConfigurationProperty{
					EncryptionKey: &SecretsManagerEncryptionKeyConfigurationProperty{
						RoleArn: jsii.String("roleArn"),
						SecretArn: jsii.String("secretArn"),
					},
				},
			},
		},
	},
}
```

## Properties

- `mergeRecoveryWindowMilliseconds`: number (required) — The time window in milliseconds for merging the two input sources.

- `networkInterfaceArn`: string (required) — The ARN of the network interface to use for this merge router input.

- `protocolConfigurations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRouterInput.MergeRouterInputProtocolConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnRouterInput.MergeRouterInputProtocolConfigurationProperty.html)[] (required) — A list of exactly two protocol configurations for the merge input sources.

  Both must use the same protocol type.
