content: module Stratosphere.MediaLive.Channel.FailoverConditionProperty (
          module Exports, FailoverConditionProperty(..),
          mkFailoverConditionProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.MediaLive.Channel.FailoverConditionSettingsProperty as Exports
  import Stratosphere.ResourceProperties
  data FailoverConditionProperty
    = FailoverConditionProperty {failoverConditionSettings :: (Prelude.Maybe FailoverConditionSettingsProperty)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkFailoverConditionProperty :: FailoverConditionProperty
  mkFailoverConditionProperty
    = FailoverConditionProperty
        {failoverConditionSettings = Prelude.Nothing}
  instance ToResourceProperties FailoverConditionProperty where
    toResourceProperties FailoverConditionProperty {..}
      = ResourceProperties
          {awsType = "AWS::MediaLive::Channel.FailoverCondition",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "FailoverConditionSettings"
                                Prelude.<$> failoverConditionSettings])}
  instance JSON.ToJSON FailoverConditionProperty where
    toJSON FailoverConditionProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "FailoverConditionSettings"
                   Prelude.<$> failoverConditionSettings]))
  instance Property "FailoverConditionSettings" FailoverConditionProperty where
    type PropertyType "FailoverConditionSettings" FailoverConditionProperty = FailoverConditionSettingsProperty
    set newValue FailoverConditionProperty {}
      = FailoverConditionProperty
          {failoverConditionSettings = Prelude.pure newValue, ..}