Skip to content
v2.277.0

Experimental

@aws-cdk/aws-mediaconnect-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

FailoverFailoverOptions Struct ​

Options for switchover-mode source failover.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediaconnect_alpha from '@aws-cdk/aws-mediaconnect-alpha';
const failoverFailoverOptions: mediaconnect_alpha.FailoverFailoverOptions = {
  primarySource: 'primarySource',
  state: mediaconnect_alpha.State.ENABLED,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_mediaconnect_alpha as mediaconnect_alpha

failover_failover_options = mediaconnect_alpha.FailoverFailoverOptions(
    primary_source="primarySource",
    state=mediaconnect_alpha.State.ENABLED
)
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.alpha.*;

FailoverFailoverOptions failoverFailoverOptions = FailoverFailoverOptions.builder()
        .primarySource("primarySource")
        .state(State.ENABLED)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaConnect.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect.Alpha;

var failoverFailoverOptions = new FailoverFailoverOptions {
    PrimarySource = "primarySource",
    State = State.ENABLED
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmediaconnectalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import mediaconnect_alpha "github.com/aws/aws-cdk-go/awsmediaconnectalpha"

failoverFailoverOptions := &FailoverFailoverOptions{
	PrimarySource: jsii.String("primarySource"),
	State: mediaconnect_alpha.State_ENABLED,
}

Properties ​

primarySourceoptionalstringprimary_sourceoptionalstrprimarySourceoptionalStringPrimarySourceoptionalstringPrimarySourceoptional*string#
The name of the source you want to treat as primary.

Default: both sources are equal priority

If set, MediaConnect always uses this source when it is available. When unset, both sources are treated with equal priority.

stateoptionalStatestateoptionalStatestateoptionalStateStateoptionalStateStateoptionalState= State.ENABLED#
Whether failover is enabled.

Set to State.DISABLED to keep the configuration on the flow without switching failover on.