import { FailoverConditionProps } from './FailoverConditionProps';
import { Value } from '../../../cloudformation/Value';
/**
  Settings to configure the conditions that will define the input as unhealthy and that will make MediaLive fail over to the other input in the input failover pair.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-automaticinputfailoversettings.html">the AWS Docs</a>
*/
export interface AutomaticInputFailoverSettingsProps {
    /** <code>FailoverConditions</code>  <a name="cfn-medialive-channel-automaticinputfailoversettings-failoverconditions"></a>
  A list of failover conditions. If any of these conditions occur, MediaLive will perform a failover to the other input.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    failoverConditions?: FailoverConditionProps[];
    /** <code>InputPreference</code>  <a name="cfn-medialive-channel-automaticinputfailoversettings-inputpreference"></a>
  Input preference when deciding which input to make active when a previously failed input has recovered.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    inputPreference?: Value<string>;
    /** <code>SecondaryInputId</code>  <a name="cfn-medialive-channel-automaticinputfailoversettings-secondaryinputid"></a>
  The input ID of the secondary input in the automatic input failover pair.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    secondaryInputId?: Value<string>;
    /** <code>ErrorClearTimeMsec</code>  <a name="cfn-medialive-channel-automaticinputfailoversettings-errorcleartimemsec"></a>
  This clear time defines the requirement a recovered input must meet to be considered healthy. The input must have no failover conditions for this length of time. Enter a time in milliseconds. This value is particularly important if the input_preference for the failover pair is set to PRIMARY_INPUT_PREFERRED, because after this time, MediaLive will switch back to the primary input.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    errorClearTimeMsec?: Value<number>;
}
