Skip to content
v2.278.0

FailoverRouterInputConfigurationProperty Struct ​

Configuration settings for a failover router input that allows switching between two input sources.

Example ​

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 failoverRouterInputConfigurationProperty: mediaconnect.CfnRouterInput.FailoverRouterInputConfigurationProperty = {
  networkInterfaceArn: 'networkInterfaceArn',
  protocolConfigurations: [{
    rist: {
      port: 123,
      recoveryLatencyMilliseconds: 123,
    },
    rtmpPush: {
      namingConfiguration: {
        automatic: automatic,
        manual: {
          applicationName: 'applicationName',
          streamName: 'streamName',
        },
      },
      port: 123,

      // the properties below are optional
      namingType: 'namingType',
    },
    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',
        },
      },
    },
  }],
  sourcePriorityMode: 'sourcePriorityMode',

  // the properties below are optional
  primarySourceIndex: 123,
};
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

# automatic: Any

failover_router_input_configuration_property = mediaconnect.CfnRouterInput.FailoverRouterInputConfigurationProperty(
    network_interface_arn="networkInterfaceArn",
    protocol_configurations=[mediaconnect.CfnRouterInput.FailoverRouterInputProtocolConfigurationProperty(
        rist=mediaconnect.CfnRouterInput.RistRouterInputConfigurationProperty(
            port=123,
            recovery_latency_milliseconds=123
        ),
        rtmp_push=mediaconnect.CfnRouterInput.RtmpPushRouterInputConfigurationProperty(
            naming_configuration=mediaconnect.CfnRouterInput.RtmpPushNamingConfigurationProperty(
                automatic=automatic,
                manual=mediaconnect.CfnRouterInput.ManualRtmpPushNamingConfigurationProperty(
                    application_name="applicationName",
                    stream_name="streamName"
                )
            ),
            port=123,

            # the properties below are optional
            naming_type="namingType"
        ),
        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"
                )
            )
        )
    )],
    source_priority_mode="sourcePriorityMode",

    # the properties below are optional
    primary_source_index=123
)
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;

FailoverRouterInputConfigurationProperty failoverRouterInputConfigurationProperty = FailoverRouterInputConfigurationProperty.builder()
        .networkInterfaceArn("networkInterfaceArn")
        .protocolConfigurations(List.of(FailoverRouterInputProtocolConfigurationProperty.builder()
                .rist(RistRouterInputConfigurationProperty.builder()
                        .port(123)
                        .recoveryLatencyMilliseconds(123)
                        .build())
                .rtmpPush(RtmpPushRouterInputConfigurationProperty.builder()
                        .namingConfiguration(RtmpPushNamingConfigurationProperty.builder()
                                .automatic(automatic)
                                .manual(ManualRtmpPushNamingConfigurationProperty.builder()
                                        .applicationName("applicationName")
                                        .streamName("streamName")
                                        .build())
                                .build())
                        .port(123)

                        // the properties below are optional
                        .namingType("namingType")
                        .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()))
        .sourcePriorityMode("sourcePriorityMode")

        // the properties below are optional
        .primarySourceIndex(123)
        .build();
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 failoverRouterInputConfigurationProperty = new FailoverRouterInputConfigurationProperty {
    NetworkInterfaceArn = "networkInterfaceArn",
    ProtocolConfigurations = new [] { new FailoverRouterInputProtocolConfigurationProperty {
        Rist = new RistRouterInputConfigurationProperty {
            Port = 123,
            RecoveryLatencyMilliseconds = 123
        },
        RtmpPush = new RtmpPushRouterInputConfigurationProperty {
            NamingConfiguration = new RtmpPushNamingConfigurationProperty {
                Automatic = automatic,
                Manual = new ManualRtmpPushNamingConfigurationProperty {
                    ApplicationName = "applicationName",
                    StreamName = "streamName"
                }
            },
            Port = 123,

            // the properties below are optional
            NamingType = "namingType"
        },
        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"
                }
            }
        }
    } },
    SourcePriorityMode = "sourcePriorityMode",

    // the properties below are optional
    PrimarySourceIndex = 123
};
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{}

failoverRouterInputConfigurationProperty := &FailoverRouterInputConfigurationProperty{
	NetworkInterfaceArn: jsii.String("networkInterfaceArn"),
	ProtocolConfigurations: []interface{}{
		&FailoverRouterInputProtocolConfigurationProperty{
			Rist: &RistRouterInputConfigurationProperty{
				Port: jsii.Number(123),
				RecoveryLatencyMilliseconds: jsii.Number(123),
			},
			RtmpPush: &RtmpPushRouterInputConfigurationProperty{
				NamingConfiguration: &RtmpPushNamingConfigurationProperty{
					Automatic: automatic,
					Manual: &ManualRtmpPushNamingConfigurationProperty{
						ApplicationName: jsii.String("applicationName"),
						StreamName: jsii.String("streamName"),
					},
				},
				Port: jsii.Number(123),

				// the properties below are optional
				NamingType: jsii.String("namingType"),
			},
			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"),
					},
				},
			},
		},
	},
	SourcePriorityMode: jsii.String("sourcePriorityMode"),

	// the properties below are optional
	PrimarySourceIndex: jsii.Number(123),
}

Properties ​

networkInterfaceArnstringnetwork_interface_arnstrnetworkInterfaceArnStringNetworkInterfaceArnstringNetworkInterfaceArn*string required #
The ARN of the network interface to use for this failover router input.
primarySourceIndexoptionalnumberprimary_source_indexoptionalint | floatprimarySourceIndexoptionalNumberPrimarySourceIndexoptionaldoublePrimarySourceIndexoptional*float64 #
The index (0 or 1) that specifies which source in the protocol configurations list is currently active.

Used to control which of the two failover sources is currently selected. This field is ignored when sourcePriorityMode is set to NO_PRIORITY

protocolConfigurationsIResolvable | IResolvable | CfnRouterInput.FailoverRouterInputProtocolConfigurationProperty[]protocol_configurationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FailoverRouterInputProtocolConfigurationProperty]]]protocolConfigurationsIResolvableProtocolConfigurationsIResolvableProtocolConfigurationsinterface{} required #
A list of exactly two protocol configurations for the failover input sources.

Both must use the same protocol type.

sourcePriorityModestringsource_priority_modestrsourcePriorityModeStringSourcePriorityModestringSourcePriorityMode*string required #