module Stratosphere.MediaLive.Channel.InputSpecificationProperty (
        InputSpecificationProperty(..), mkInputSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputspecification.html>
    InputSpecificationProperty {InputSpecificationProperty -> ()
haddock_workaround_ :: (),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputspecification.html#cfn-medialive-channel-inputspecification-codec>
                                InputSpecificationProperty -> Maybe (Value Text)
codec :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputspecification.html#cfn-medialive-channel-inputspecification-maximumbitrate>
                                InputSpecificationProperty -> Maybe (Value Text)
maximumBitrate :: (Prelude.Maybe (Value Prelude.Text)),
                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-inputspecification.html#cfn-medialive-channel-inputspecification-resolution>
                                InputSpecificationProperty -> Maybe (Value Text)
resolution :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (InputSpecificationProperty -> InputSpecificationProperty -> Bool
(InputSpecificationProperty -> InputSpecificationProperty -> Bool)
-> (InputSpecificationProperty
    -> InputSpecificationProperty -> Bool)
-> Eq InputSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputSpecificationProperty -> InputSpecificationProperty -> Bool
== :: InputSpecificationProperty -> InputSpecificationProperty -> Bool
$c/= :: InputSpecificationProperty -> InputSpecificationProperty -> Bool
/= :: InputSpecificationProperty -> InputSpecificationProperty -> Bool
Prelude.Eq, Int -> InputSpecificationProperty -> ShowS
[InputSpecificationProperty] -> ShowS
InputSpecificationProperty -> String
(Int -> InputSpecificationProperty -> ShowS)
-> (InputSpecificationProperty -> String)
-> ([InputSpecificationProperty] -> ShowS)
-> Show InputSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputSpecificationProperty -> ShowS
showsPrec :: Int -> InputSpecificationProperty -> ShowS
$cshow :: InputSpecificationProperty -> String
show :: InputSpecificationProperty -> String
$cshowList :: [InputSpecificationProperty] -> ShowS
showList :: [InputSpecificationProperty] -> ShowS
Prelude.Show)
mkInputSpecificationProperty :: InputSpecificationProperty
mkInputSpecificationProperty :: InputSpecificationProperty
mkInputSpecificationProperty
  = InputSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), codec :: Maybe (Value Text)
codec = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       maximumBitrate :: Maybe (Value Text)
maximumBitrate = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, resolution :: Maybe (Value Text)
resolution = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputSpecificationProperty where
  toResourceProperties :: InputSpecificationProperty -> ResourceProperties
toResourceProperties InputSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputSpecificationProperty -> ()
codec :: InputSpecificationProperty -> Maybe (Value Text)
maximumBitrate :: InputSpecificationProperty -> Maybe (Value Text)
resolution :: InputSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
codec :: Maybe (Value Text)
maximumBitrate :: Maybe (Value Text)
resolution :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.InputSpecification",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"Codec" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
codec,
                            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..=) Key
"MaximumBitrate" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
maximumBitrate,
                            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..=) Key
"Resolution" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
resolution])}
instance JSON.ToJSON InputSpecificationProperty where
  toJSON :: InputSpecificationProperty -> Value
toJSON InputSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputSpecificationProperty -> ()
codec :: InputSpecificationProperty -> Maybe (Value Text)
maximumBitrate :: InputSpecificationProperty -> Maybe (Value Text)
resolution :: InputSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
codec :: Maybe (Value Text)
maximumBitrate :: Maybe (Value Text)
resolution :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"Codec" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
codec,
               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..=) Key
"MaximumBitrate" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
maximumBitrate,
               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..=) Key
"Resolution" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
resolution]))
instance Property "Codec" InputSpecificationProperty where
  type PropertyType "Codec" InputSpecificationProperty = Value Prelude.Text
  set :: PropertyType "Codec" InputSpecificationProperty
-> InputSpecificationProperty -> InputSpecificationProperty
set PropertyType "Codec" InputSpecificationProperty
newValue InputSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputSpecificationProperty -> ()
codec :: InputSpecificationProperty -> Maybe (Value Text)
maximumBitrate :: InputSpecificationProperty -> Maybe (Value Text)
resolution :: InputSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
codec :: Maybe (Value Text)
maximumBitrate :: Maybe (Value Text)
resolution :: Maybe (Value Text)
..}
    = InputSpecificationProperty {codec :: Maybe (Value Text)
codec = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Codec" InputSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
maximumBitrate :: Maybe (Value Text)
resolution :: Maybe (Value Text)
haddock_workaround_ :: ()
maximumBitrate :: Maybe (Value Text)
resolution :: Maybe (Value Text)
..}
instance Property "MaximumBitrate" InputSpecificationProperty where
  type PropertyType "MaximumBitrate" InputSpecificationProperty = Value Prelude.Text
  set :: PropertyType "MaximumBitrate" InputSpecificationProperty
-> InputSpecificationProperty -> InputSpecificationProperty
set PropertyType "MaximumBitrate" InputSpecificationProperty
newValue InputSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputSpecificationProperty -> ()
codec :: InputSpecificationProperty -> Maybe (Value Text)
maximumBitrate :: InputSpecificationProperty -> Maybe (Value Text)
resolution :: InputSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
codec :: Maybe (Value Text)
maximumBitrate :: Maybe (Value Text)
resolution :: Maybe (Value Text)
..}
    = InputSpecificationProperty
        {maximumBitrate :: Maybe (Value Text)
maximumBitrate = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MaximumBitrate" InputSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
codec :: Maybe (Value Text)
resolution :: Maybe (Value Text)
haddock_workaround_ :: ()
codec :: Maybe (Value Text)
resolution :: Maybe (Value Text)
..}
instance Property "Resolution" InputSpecificationProperty where
  type PropertyType "Resolution" InputSpecificationProperty = Value Prelude.Text
  set :: PropertyType "Resolution" InputSpecificationProperty
-> InputSpecificationProperty -> InputSpecificationProperty
set PropertyType "Resolution" InputSpecificationProperty
newValue InputSpecificationProperty {Maybe (Value Text)
()
haddock_workaround_ :: InputSpecificationProperty -> ()
codec :: InputSpecificationProperty -> Maybe (Value Text)
maximumBitrate :: InputSpecificationProperty -> Maybe (Value Text)
resolution :: InputSpecificationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
codec :: Maybe (Value Text)
maximumBitrate :: Maybe (Value Text)
resolution :: Maybe (Value Text)
..}
    = InputSpecificationProperty
        {resolution :: Maybe (Value Text)
resolution = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Resolution" InputSpecificationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
codec :: Maybe (Value Text)
maximumBitrate :: Maybe (Value Text)
haddock_workaround_ :: ()
codec :: Maybe (Value Text)
maximumBitrate :: Maybe (Value Text)
..}