Skip to content
v2.278.0

FailoverConfigProperty Struct ​

The settings for source failover.

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';
const failoverConfigProperty: mediaconnect.CfnFlow.FailoverConfigProperty = {
  failoverMode: 'failoverMode',
  recoveryWindow: 123,
  sourcePriority: {
    primarySource: 'primarySource',
  },
  state: 'state',
};
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

failover_config_property = mediaconnect.CfnFlow.FailoverConfigProperty(
    failover_mode="failoverMode",
    recovery_window=123,
    source_priority=mediaconnect.CfnFlow.SourcePriorityProperty(
        primary_source="primarySource"
    ),
    state="state"
)
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.*;

FailoverConfigProperty failoverConfigProperty = FailoverConfigProperty.builder()
        .failoverMode("failoverMode")
        .recoveryWindow(123)
        .sourcePriority(SourcePriorityProperty.builder()
                .primarySource("primarySource")
                .build())
        .state("state")
        .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 failoverConfigProperty = new FailoverConfigProperty {
    FailoverMode = "failoverMode",
    RecoveryWindow = 123,
    SourcePriority = new SourcePriorityProperty {
        PrimarySource = "primarySource"
    },
    State = "state"
};
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"

failoverConfigProperty := &FailoverConfigProperty{
	FailoverMode: jsii.String("failoverMode"),
	RecoveryWindow: jsii.Number(123),
	SourcePriority: &SourcePriorityProperty{
		PrimarySource: jsii.String("primarySource"),
	},
	State: jsii.String("state"),
}

Properties ​

failoverModeoptionalstringfailover_modeoptionalstrfailoverModeoptionalStringFailoverModeoptionalstringFailoverModeoptional*string #
The type of failover you choose for this flow.
notes

MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams. The string for this property must be entered as MERGE or FAILOVER. No other string entry is valid.

recoveryWindowoptionalnumberrecovery_windowoptionalint | floatrecoveryWindowoptionalNumberRecoveryWindowoptionaldoubleRecoveryWindowoptional*float64 #
Search window time to look for dash-7 packets.
sourcePriorityoptionalIResolvable | CfnFlow.SourcePriorityPropertysource_priorityoptionaltyping.Union[IResolvable, SourcePriorityProperty]sourcePriorityoptionalIResolvableSourcePriorityoptionalIResolvableSourcePriorityoptionalinterface{} #
The priority you want to assign to a source.

You can have a primary stream and a backup stream or two equally prioritized streams.

stateoptionalstringstateoptionalstrstateoptionalStringStateoptionalstringStateoptional*string #
The state of source failover on the flow.

If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.