module Stratosphere.MediaLive.Channel.OutputProperty (
        module Exports, OutputProperty(..), mkOutputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.OutputSettingsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-output.html>
    OutputProperty {OutputProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-output.html#cfn-medialive-channel-output-audiodescriptionnames>
                    OutputProperty -> Maybe (ValueList Text)
audioDescriptionNames :: (Prelude.Maybe (ValueList Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-output.html#cfn-medialive-channel-output-captiondescriptionnames>
                    OutputProperty -> Maybe (ValueList Text)
captionDescriptionNames :: (Prelude.Maybe (ValueList Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-output.html#cfn-medialive-channel-output-outputname>
                    OutputProperty -> Maybe (Value Text)
outputName :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-output.html#cfn-medialive-channel-output-outputsettings>
                    OutputProperty -> Maybe OutputSettingsProperty
outputSettings :: (Prelude.Maybe OutputSettingsProperty),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-output.html#cfn-medialive-channel-output-videodescriptionname>
                    OutputProperty -> Maybe (Value Text)
videoDescriptionName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (OutputProperty -> OutputProperty -> Bool
(OutputProperty -> OutputProperty -> Bool)
-> (OutputProperty -> OutputProperty -> Bool) -> Eq OutputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutputProperty -> OutputProperty -> Bool
== :: OutputProperty -> OutputProperty -> Bool
$c/= :: OutputProperty -> OutputProperty -> Bool
/= :: OutputProperty -> OutputProperty -> Bool
Prelude.Eq, Int -> OutputProperty -> ShowS
[OutputProperty] -> ShowS
OutputProperty -> String
(Int -> OutputProperty -> ShowS)
-> (OutputProperty -> String)
-> ([OutputProperty] -> ShowS)
-> Show OutputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutputProperty -> ShowS
showsPrec :: Int -> OutputProperty -> ShowS
$cshow :: OutputProperty -> String
show :: OutputProperty -> String
$cshowList :: [OutputProperty] -> ShowS
showList :: [OutputProperty] -> ShowS
Prelude.Show)
mkOutputProperty :: OutputProperty
mkOutputProperty :: OutputProperty
mkOutputProperty
  = OutputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), audioDescriptionNames :: Maybe (ValueList Text)
audioDescriptionNames = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       captionDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
       outputName :: Maybe (Value Text)
outputName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, outputSettings :: Maybe OutputSettingsProperty
outputSettings = Maybe OutputSettingsProperty
forall a. Maybe a
Prelude.Nothing,
       videoDescriptionName :: Maybe (Value Text)
videoDescriptionName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutputProperty where
  toResourceProperties :: OutputProperty -> ResourceProperties
toResourceProperties OutputProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: OutputProperty -> ()
audioDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
captionDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
outputName :: OutputProperty -> Maybe (Value Text)
outputSettings :: OutputProperty -> Maybe OutputSettingsProperty
videoDescriptionName :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.Output",
         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 -> ValueList 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
"AudioDescriptionNames"
                              (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
audioDescriptionNames,
                            Key -> ValueList 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
"CaptionDescriptionNames"
                              (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
captionDescriptionNames,
                            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
"OutputName" (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)
outputName,
                            Key -> OutputSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OutputSettings" (OutputSettingsProperty -> (Key, Value))
-> Maybe OutputSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputSettingsProperty
outputSettings,
                            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
"VideoDescriptionName"
                              (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)
videoDescriptionName])}
instance JSON.ToJSON OutputProperty where
  toJSON :: OutputProperty -> Value
toJSON OutputProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: OutputProperty -> ()
audioDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
captionDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
outputName :: OutputProperty -> Maybe (Value Text)
outputSettings :: OutputProperty -> Maybe OutputSettingsProperty
videoDescriptionName :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: 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 -> ValueList 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
"AudioDescriptionNames"
                 (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
audioDescriptionNames,
               Key -> ValueList 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
"CaptionDescriptionNames"
                 (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
captionDescriptionNames,
               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
"OutputName" (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)
outputName,
               Key -> OutputSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"OutputSettings" (OutputSettingsProperty -> (Key, Value))
-> Maybe OutputSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputSettingsProperty
outputSettings,
               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
"VideoDescriptionName"
                 (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)
videoDescriptionName]))
instance Property "AudioDescriptionNames" OutputProperty where
  type PropertyType "AudioDescriptionNames" OutputProperty = ValueList Prelude.Text
  set :: PropertyType "AudioDescriptionNames" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "AudioDescriptionNames" OutputProperty
newValue OutputProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: OutputProperty -> ()
audioDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
captionDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
outputName :: OutputProperty -> Maybe (Value Text)
outputSettings :: OutputProperty -> Maybe OutputSettingsProperty
videoDescriptionName :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
..}
    = OutputProperty
        {audioDescriptionNames :: Maybe (ValueList Text)
audioDescriptionNames = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AudioDescriptionNames" OutputProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: ()
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
haddock_workaround_ :: ()
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
..}
instance Property "CaptionDescriptionNames" OutputProperty where
  type PropertyType "CaptionDescriptionNames" OutputProperty = ValueList Prelude.Text
  set :: PropertyType "CaptionDescriptionNames" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "CaptionDescriptionNames" OutputProperty
newValue OutputProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: OutputProperty -> ()
audioDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
captionDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
outputName :: OutputProperty -> Maybe (Value Text)
outputSettings :: OutputProperty -> Maybe OutputSettingsProperty
videoDescriptionName :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
..}
    = OutputProperty
        {captionDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CaptionDescriptionNames" OutputProperty
ValueList Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
..}
instance Property "OutputName" OutputProperty where
  type PropertyType "OutputName" OutputProperty = Value Prelude.Text
  set :: PropertyType "OutputName" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "OutputName" OutputProperty
newValue OutputProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: OutputProperty -> ()
audioDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
captionDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
outputName :: OutputProperty -> Maybe (Value Text)
outputSettings :: OutputProperty -> Maybe OutputSettingsProperty
videoDescriptionName :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
..}
    = OutputProperty {outputName :: Maybe (Value Text)
outputName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputName" OutputProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
..}
instance Property "OutputSettings" OutputProperty where
  type PropertyType "OutputSettings" OutputProperty = OutputSettingsProperty
  set :: PropertyType "OutputSettings" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "OutputSettings" OutputProperty
newValue OutputProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: OutputProperty -> ()
audioDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
captionDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
outputName :: OutputProperty -> Maybe (Value Text)
outputSettings :: OutputProperty -> Maybe OutputSettingsProperty
videoDescriptionName :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
..}
    = OutputProperty {outputSettings :: Maybe OutputSettingsProperty
outputSettings = OutputSettingsProperty -> Maybe OutputSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputSettings" OutputProperty
OutputSettingsProperty
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
videoDescriptionName :: Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
videoDescriptionName :: Maybe (Value Text)
..}
instance Property "VideoDescriptionName" OutputProperty where
  type PropertyType "VideoDescriptionName" OutputProperty = Value Prelude.Text
  set :: PropertyType "VideoDescriptionName" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "VideoDescriptionName" OutputProperty
newValue OutputProperty {Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: OutputProperty -> ()
audioDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
captionDescriptionNames :: OutputProperty -> Maybe (ValueList Text)
outputName :: OutputProperty -> Maybe (Value Text)
outputSettings :: OutputProperty -> Maybe OutputSettingsProperty
videoDescriptionName :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
videoDescriptionName :: Maybe (Value Text)
..}
    = OutputProperty {videoDescriptionName :: Maybe (Value Text)
videoDescriptionName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VideoDescriptionName" OutputProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
Maybe OutputSettingsProperty
()
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
haddock_workaround_ :: ()
audioDescriptionNames :: Maybe (ValueList Text)
captionDescriptionNames :: Maybe (ValueList Text)
outputName :: Maybe (Value Text)
outputSettings :: Maybe OutputSettingsProperty
..}