module Stratosphere.MediaTailor.Channel.RequestOutputItemProperty (
        module Exports, RequestOutputItemProperty(..),
        mkRequestOutputItemProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaTailor.Channel.DashPlaylistSettingsProperty as Exports
import {-# SOURCE #-} Stratosphere.MediaTailor.Channel.HlsPlaylistSettingsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RequestOutputItemProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-channel-requestoutputitem.html>
    RequestOutputItemProperty {RequestOutputItemProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-channel-requestoutputitem.html#cfn-mediatailor-channel-requestoutputitem-dashplaylistsettings>
                               RequestOutputItemProperty -> Maybe DashPlaylistSettingsProperty
dashPlaylistSettings :: (Prelude.Maybe DashPlaylistSettingsProperty),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-channel-requestoutputitem.html#cfn-mediatailor-channel-requestoutputitem-hlsplaylistsettings>
                               RequestOutputItemProperty -> Maybe HlsPlaylistSettingsProperty
hlsPlaylistSettings :: (Prelude.Maybe HlsPlaylistSettingsProperty),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-channel-requestoutputitem.html#cfn-mediatailor-channel-requestoutputitem-manifestname>
                               RequestOutputItemProperty -> Value Text
manifestName :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediatailor-channel-requestoutputitem.html#cfn-mediatailor-channel-requestoutputitem-sourcegroup>
                               RequestOutputItemProperty -> Value Text
sourceGroup :: (Value Prelude.Text)}
  deriving stock (RequestOutputItemProperty -> RequestOutputItemProperty -> Bool
(RequestOutputItemProperty -> RequestOutputItemProperty -> Bool)
-> (RequestOutputItemProperty -> RequestOutputItemProperty -> Bool)
-> Eq RequestOutputItemProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RequestOutputItemProperty -> RequestOutputItemProperty -> Bool
== :: RequestOutputItemProperty -> RequestOutputItemProperty -> Bool
$c/= :: RequestOutputItemProperty -> RequestOutputItemProperty -> Bool
/= :: RequestOutputItemProperty -> RequestOutputItemProperty -> Bool
Prelude.Eq, Int -> RequestOutputItemProperty -> ShowS
[RequestOutputItemProperty] -> ShowS
RequestOutputItemProperty -> String
(Int -> RequestOutputItemProperty -> ShowS)
-> (RequestOutputItemProperty -> String)
-> ([RequestOutputItemProperty] -> ShowS)
-> Show RequestOutputItemProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RequestOutputItemProperty -> ShowS
showsPrec :: Int -> RequestOutputItemProperty -> ShowS
$cshow :: RequestOutputItemProperty -> String
show :: RequestOutputItemProperty -> String
$cshowList :: [RequestOutputItemProperty] -> ShowS
showList :: [RequestOutputItemProperty] -> ShowS
Prelude.Show)
mkRequestOutputItemProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> RequestOutputItemProperty
mkRequestOutputItemProperty :: Value Text -> Value Text -> RequestOutputItemProperty
mkRequestOutputItemProperty Value Text
manifestName Value Text
sourceGroup
  = RequestOutputItemProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), manifestName :: Value Text
manifestName = Value Text
manifestName,
       sourceGroup :: Value Text
sourceGroup = Value Text
sourceGroup, dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
dashPlaylistSettings = Maybe DashPlaylistSettingsProperty
forall a. Maybe a
Prelude.Nothing,
       hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
hlsPlaylistSettings = Maybe HlsPlaylistSettingsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RequestOutputItemProperty where
  toResourceProperties :: RequestOutputItemProperty -> ResourceProperties
toResourceProperties RequestOutputItemProperty {Maybe DashPlaylistSettingsProperty
Maybe HlsPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: RequestOutputItemProperty -> ()
dashPlaylistSettings :: RequestOutputItemProperty -> Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: RequestOutputItemProperty -> Maybe HlsPlaylistSettingsProperty
manifestName :: RequestOutputItemProperty -> Value Text
sourceGroup :: RequestOutputItemProperty -> Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaTailor::Channel.RequestOutputItem",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"ManifestName" 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
manifestName,
                            Key
"SourceGroup" 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
sourceGroup]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> DashPlaylistSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DashPlaylistSettings" (DashPlaylistSettingsProperty -> (Key, Value))
-> Maybe DashPlaylistSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DashPlaylistSettingsProperty
dashPlaylistSettings,
                               Key -> HlsPlaylistSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HlsPlaylistSettings" (HlsPlaylistSettingsProperty -> (Key, Value))
-> Maybe HlsPlaylistSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HlsPlaylistSettingsProperty
hlsPlaylistSettings]))}
instance JSON.ToJSON RequestOutputItemProperty where
  toJSON :: RequestOutputItemProperty -> Value
toJSON RequestOutputItemProperty {Maybe DashPlaylistSettingsProperty
Maybe HlsPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: RequestOutputItemProperty -> ()
dashPlaylistSettings :: RequestOutputItemProperty -> Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: RequestOutputItemProperty -> Maybe HlsPlaylistSettingsProperty
manifestName :: RequestOutputItemProperty -> Value Text
sourceGroup :: RequestOutputItemProperty -> Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"ManifestName" 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
manifestName,
               Key
"SourceGroup" 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
sourceGroup]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> DashPlaylistSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DashPlaylistSettings" (DashPlaylistSettingsProperty -> (Key, Value))
-> Maybe DashPlaylistSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DashPlaylistSettingsProperty
dashPlaylistSettings,
                  Key -> HlsPlaylistSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HlsPlaylistSettings" (HlsPlaylistSettingsProperty -> (Key, Value))
-> Maybe HlsPlaylistSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HlsPlaylistSettingsProperty
hlsPlaylistSettings])))
instance Property "DashPlaylistSettings" RequestOutputItemProperty where
  type PropertyType "DashPlaylistSettings" RequestOutputItemProperty = DashPlaylistSettingsProperty
  set :: PropertyType "DashPlaylistSettings" RequestOutputItemProperty
-> RequestOutputItemProperty -> RequestOutputItemProperty
set PropertyType "DashPlaylistSettings" RequestOutputItemProperty
newValue RequestOutputItemProperty {Maybe DashPlaylistSettingsProperty
Maybe HlsPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: RequestOutputItemProperty -> ()
dashPlaylistSettings :: RequestOutputItemProperty -> Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: RequestOutputItemProperty -> Maybe HlsPlaylistSettingsProperty
manifestName :: RequestOutputItemProperty -> Value Text
sourceGroup :: RequestOutputItemProperty -> Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
..}
    = RequestOutputItemProperty
        {dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
dashPlaylistSettings = DashPlaylistSettingsProperty -> Maybe DashPlaylistSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DashPlaylistSettings" RequestOutputItemProperty
DashPlaylistSettingsProperty
newValue, Maybe HlsPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: ()
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
haddock_workaround_ :: ()
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
..}
instance Property "HlsPlaylistSettings" RequestOutputItemProperty where
  type PropertyType "HlsPlaylistSettings" RequestOutputItemProperty = HlsPlaylistSettingsProperty
  set :: PropertyType "HlsPlaylistSettings" RequestOutputItemProperty
-> RequestOutputItemProperty -> RequestOutputItemProperty
set PropertyType "HlsPlaylistSettings" RequestOutputItemProperty
newValue RequestOutputItemProperty {Maybe DashPlaylistSettingsProperty
Maybe HlsPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: RequestOutputItemProperty -> ()
dashPlaylistSettings :: RequestOutputItemProperty -> Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: RequestOutputItemProperty -> Maybe HlsPlaylistSettingsProperty
manifestName :: RequestOutputItemProperty -> Value Text
sourceGroup :: RequestOutputItemProperty -> Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
..}
    = RequestOutputItemProperty
        {hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
hlsPlaylistSettings = HlsPlaylistSettingsProperty -> Maybe HlsPlaylistSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HlsPlaylistSettings" RequestOutputItemProperty
HlsPlaylistSettingsProperty
newValue, Maybe DashPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
..}
instance Property "ManifestName" RequestOutputItemProperty where
  type PropertyType "ManifestName" RequestOutputItemProperty = Value Prelude.Text
  set :: PropertyType "ManifestName" RequestOutputItemProperty
-> RequestOutputItemProperty -> RequestOutputItemProperty
set PropertyType "ManifestName" RequestOutputItemProperty
newValue RequestOutputItemProperty {Maybe DashPlaylistSettingsProperty
Maybe HlsPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: RequestOutputItemProperty -> ()
dashPlaylistSettings :: RequestOutputItemProperty -> Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: RequestOutputItemProperty -> Maybe HlsPlaylistSettingsProperty
manifestName :: RequestOutputItemProperty -> Value Text
sourceGroup :: RequestOutputItemProperty -> Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
..}
    = RequestOutputItemProperty {manifestName :: Value Text
manifestName = PropertyType "ManifestName" RequestOutputItemProperty
Value Text
newValue, Maybe DashPlaylistSettingsProperty
Maybe HlsPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
sourceGroup :: Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
sourceGroup :: Value Text
..}
instance Property "SourceGroup" RequestOutputItemProperty where
  type PropertyType "SourceGroup" RequestOutputItemProperty = Value Prelude.Text
  set :: PropertyType "SourceGroup" RequestOutputItemProperty
-> RequestOutputItemProperty -> RequestOutputItemProperty
set PropertyType "SourceGroup" RequestOutputItemProperty
newValue RequestOutputItemProperty {Maybe DashPlaylistSettingsProperty
Maybe HlsPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: RequestOutputItemProperty -> ()
dashPlaylistSettings :: RequestOutputItemProperty -> Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: RequestOutputItemProperty -> Maybe HlsPlaylistSettingsProperty
manifestName :: RequestOutputItemProperty -> Value Text
sourceGroup :: RequestOutputItemProperty -> Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
sourceGroup :: Value Text
..}
    = RequestOutputItemProperty {sourceGroup :: Value Text
sourceGroup = PropertyType "SourceGroup" RequestOutputItemProperty
Value Text
newValue, Maybe DashPlaylistSettingsProperty
Maybe HlsPlaylistSettingsProperty
()
Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
haddock_workaround_ :: ()
dashPlaylistSettings :: Maybe DashPlaylistSettingsProperty
hlsPlaylistSettings :: Maybe HlsPlaylistSettingsProperty
manifestName :: Value Text
..}