module Stratosphere.MediaConnect.Flow.SourcePriorityProperty (
        SourcePriorityProperty(..), mkSourcePriorityProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SourcePriorityProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcepriority.html>
    SourcePriorityProperty {SourcePriorityProperty -> ()
haddock_workaround_ :: (),
                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcepriority.html#cfn-mediaconnect-flow-sourcepriority-primarysource>
                            SourcePriorityProperty -> Value Text
primarySource :: (Value Prelude.Text)}
  deriving stock (SourcePriorityProperty -> SourcePriorityProperty -> Bool
(SourcePriorityProperty -> SourcePriorityProperty -> Bool)
-> (SourcePriorityProperty -> SourcePriorityProperty -> Bool)
-> Eq SourcePriorityProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SourcePriorityProperty -> SourcePriorityProperty -> Bool
== :: SourcePriorityProperty -> SourcePriorityProperty -> Bool
$c/= :: SourcePriorityProperty -> SourcePriorityProperty -> Bool
/= :: SourcePriorityProperty -> SourcePriorityProperty -> Bool
Prelude.Eq, Int -> SourcePriorityProperty -> ShowS
[SourcePriorityProperty] -> ShowS
SourcePriorityProperty -> String
(Int -> SourcePriorityProperty -> ShowS)
-> (SourcePriorityProperty -> String)
-> ([SourcePriorityProperty] -> ShowS)
-> Show SourcePriorityProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SourcePriorityProperty -> ShowS
showsPrec :: Int -> SourcePriorityProperty -> ShowS
$cshow :: SourcePriorityProperty -> String
show :: SourcePriorityProperty -> String
$cshowList :: [SourcePriorityProperty] -> ShowS
showList :: [SourcePriorityProperty] -> ShowS
Prelude.Show)
mkSourcePriorityProperty ::
  Value Prelude.Text -> SourcePriorityProperty
mkSourcePriorityProperty :: Value Text -> SourcePriorityProperty
mkSourcePriorityProperty Value Text
primarySource
  = SourcePriorityProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), primarySource :: Value Text
primarySource = Value Text
primarySource}
instance ToResourceProperties SourcePriorityProperty where
  toResourceProperties :: SourcePriorityProperty -> ResourceProperties
toResourceProperties SourcePriorityProperty {()
Value Text
haddock_workaround_ :: SourcePriorityProperty -> ()
primarySource :: SourcePriorityProperty -> Value Text
haddock_workaround_ :: ()
primarySource :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaConnect::Flow.SourcePriority",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"PrimarySource" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
primarySource]}
instance JSON.ToJSON SourcePriorityProperty where
  toJSON :: SourcePriorityProperty -> Value
toJSON SourcePriorityProperty {()
Value Text
haddock_workaround_ :: SourcePriorityProperty -> ()
primarySource :: SourcePriorityProperty -> Value Text
haddock_workaround_ :: ()
primarySource :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"PrimarySource" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
primarySource]
instance Property "PrimarySource" SourcePriorityProperty where
  type PropertyType "PrimarySource" SourcePriorityProperty = Value Prelude.Text
  set :: PropertyType "PrimarySource" SourcePriorityProperty
-> SourcePriorityProperty -> SourcePriorityProperty
set PropertyType "PrimarySource" SourcePriorityProperty
newValue SourcePriorityProperty {()
Value Text
haddock_workaround_ :: SourcePriorityProperty -> ()
primarySource :: SourcePriorityProperty -> Value Text
haddock_workaround_ :: ()
primarySource :: Value Text
..}
    = SourcePriorityProperty {primarySource :: Value Text
primarySource = PropertyType "PrimarySource" SourcePriorityProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}