module Stratosphere.MediaTailor.Channel.DashPlaylistSettingsProperty (
DashPlaylistSettingsProperty(..), mkDashPlaylistSettingsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DashPlaylistSettingsProperty
=
DashPlaylistSettingsProperty {DashPlaylistSettingsProperty -> ()
haddock_workaround_ :: (),
DashPlaylistSettingsProperty -> Maybe (Value Double)
manifestWindowSeconds :: (Prelude.Maybe (Value Prelude.Double)),
DashPlaylistSettingsProperty -> Maybe (Value Double)
minBufferTimeSeconds :: (Prelude.Maybe (Value Prelude.Double)),
DashPlaylistSettingsProperty -> Maybe (Value Double)
minUpdatePeriodSeconds :: (Prelude.Maybe (Value Prelude.Double)),
DashPlaylistSettingsProperty -> Maybe (Value Double)
suggestedPresentationDelaySeconds :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> Bool
(DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> Bool)
-> (DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> Bool)
-> Eq DashPlaylistSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> Bool
== :: DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> Bool
$c/= :: DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> Bool
/= :: DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> Bool
Prelude.Eq, Int -> DashPlaylistSettingsProperty -> ShowS
[DashPlaylistSettingsProperty] -> ShowS
DashPlaylistSettingsProperty -> String
(Int -> DashPlaylistSettingsProperty -> ShowS)
-> (DashPlaylistSettingsProperty -> String)
-> ([DashPlaylistSettingsProperty] -> ShowS)
-> Show DashPlaylistSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DashPlaylistSettingsProperty -> ShowS
showsPrec :: Int -> DashPlaylistSettingsProperty -> ShowS
$cshow :: DashPlaylistSettingsProperty -> String
show :: DashPlaylistSettingsProperty -> String
$cshowList :: [DashPlaylistSettingsProperty] -> ShowS
showList :: [DashPlaylistSettingsProperty] -> ShowS
Prelude.Show)
mkDashPlaylistSettingsProperty :: DashPlaylistSettingsProperty
mkDashPlaylistSettingsProperty :: DashPlaylistSettingsProperty
mkDashPlaylistSettingsProperty
= DashPlaylistSettingsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), manifestWindowSeconds :: Maybe (Value Double)
manifestWindowSeconds = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
minBufferTimeSeconds :: Maybe (Value Double)
minBufferTimeSeconds = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
minUpdatePeriodSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing,
suggestedPresentationDelaySeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DashPlaylistSettingsProperty where
toResourceProperties :: DashPlaylistSettingsProperty -> ResourceProperties
toResourceProperties DashPlaylistSettingsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DashPlaylistSettingsProperty -> ()
manifestWindowSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minBufferTimeSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minUpdatePeriodSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
suggestedPresentationDelaySeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaTailor::Channel.DashPlaylistSettings",
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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ManifestWindowSeconds"
(Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
manifestWindowSeconds,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinBufferTimeSeconds" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
minBufferTimeSeconds,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinUpdatePeriodSeconds"
(Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
minUpdatePeriodSeconds,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SuggestedPresentationDelaySeconds"
(Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
suggestedPresentationDelaySeconds])}
instance JSON.ToJSON DashPlaylistSettingsProperty where
toJSON :: DashPlaylistSettingsProperty -> Value
toJSON DashPlaylistSettingsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DashPlaylistSettingsProperty -> ()
manifestWindowSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minBufferTimeSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minUpdatePeriodSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
suggestedPresentationDelaySeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
..}
= [(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 Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ManifestWindowSeconds"
(Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
manifestWindowSeconds,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinBufferTimeSeconds" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
minBufferTimeSeconds,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinUpdatePeriodSeconds"
(Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
minUpdatePeriodSeconds,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SuggestedPresentationDelaySeconds"
(Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
suggestedPresentationDelaySeconds]))
instance Property "ManifestWindowSeconds" DashPlaylistSettingsProperty where
type PropertyType "ManifestWindowSeconds" DashPlaylistSettingsProperty = Value Prelude.Double
set :: PropertyType "ManifestWindowSeconds" DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> DashPlaylistSettingsProperty
set PropertyType "ManifestWindowSeconds" DashPlaylistSettingsProperty
newValue DashPlaylistSettingsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DashPlaylistSettingsProperty -> ()
manifestWindowSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minBufferTimeSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minUpdatePeriodSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
suggestedPresentationDelaySeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
..}
= DashPlaylistSettingsProperty
{manifestWindowSeconds :: Maybe (Value Double)
manifestWindowSeconds = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ManifestWindowSeconds" DashPlaylistSettingsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
haddock_workaround_ :: ()
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
..}
instance Property "MinBufferTimeSeconds" DashPlaylistSettingsProperty where
type PropertyType "MinBufferTimeSeconds" DashPlaylistSettingsProperty = Value Prelude.Double
set :: PropertyType "MinBufferTimeSeconds" DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> DashPlaylistSettingsProperty
set PropertyType "MinBufferTimeSeconds" DashPlaylistSettingsProperty
newValue DashPlaylistSettingsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DashPlaylistSettingsProperty -> ()
manifestWindowSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minBufferTimeSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minUpdatePeriodSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
suggestedPresentationDelaySeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
..}
= DashPlaylistSettingsProperty
{minBufferTimeSeconds :: Maybe (Value Double)
minBufferTimeSeconds = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MinBufferTimeSeconds" DashPlaylistSettingsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
..}
instance Property "MinUpdatePeriodSeconds" DashPlaylistSettingsProperty where
type PropertyType "MinUpdatePeriodSeconds" DashPlaylistSettingsProperty = Value Prelude.Double
set :: PropertyType "MinUpdatePeriodSeconds" DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> DashPlaylistSettingsProperty
set PropertyType "MinUpdatePeriodSeconds" DashPlaylistSettingsProperty
newValue DashPlaylistSettingsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DashPlaylistSettingsProperty -> ()
manifestWindowSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minBufferTimeSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minUpdatePeriodSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
suggestedPresentationDelaySeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
..}
= DashPlaylistSettingsProperty
{minUpdatePeriodSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MinUpdatePeriodSeconds" DashPlaylistSettingsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
..}
instance Property "SuggestedPresentationDelaySeconds" DashPlaylistSettingsProperty where
type PropertyType "SuggestedPresentationDelaySeconds" DashPlaylistSettingsProperty = Value Prelude.Double
set :: PropertyType
"SuggestedPresentationDelaySeconds" DashPlaylistSettingsProperty
-> DashPlaylistSettingsProperty -> DashPlaylistSettingsProperty
set PropertyType
"SuggestedPresentationDelaySeconds" DashPlaylistSettingsProperty
newValue DashPlaylistSettingsProperty {Maybe (Value Double)
()
haddock_workaround_ :: DashPlaylistSettingsProperty -> ()
manifestWindowSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minBufferTimeSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
minUpdatePeriodSeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
suggestedPresentationDelaySeconds :: DashPlaylistSettingsProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds :: Maybe (Value Double)
..}
= DashPlaylistSettingsProperty
{suggestedPresentationDelaySeconds :: Maybe (Value Double)
suggestedPresentationDelaySeconds = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SuggestedPresentationDelaySeconds" DashPlaylistSettingsProperty
Value Double
newValue, Maybe (Value Double)
()
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
haddock_workaround_ :: ()
manifestWindowSeconds :: Maybe (Value Double)
minBufferTimeSeconds :: Maybe (Value Double)
minUpdatePeriodSeconds :: Maybe (Value Double)
..}