> **Experimental**
>
> `@aws-cdk/aws-mediaconnect-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# FailoverFailoverOptions

Options for switchover-mode source failover.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/flow.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-mediaconnect-alpha/lib/flow.ts#L270)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

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

- `primarySource`: 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.

- `state`: [State](/cdk/api/v2/docs/@aws-cdk_aws-mediaconnect-alpha.State.html) = State.ENABLED — Whether failover is enabled.

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