module Stratosphere.MediaTailor.PlaybackConfiguration.DashConfigurationProperty (
DashConfigurationProperty(..), mkDashConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DashConfigurationProperty
=
DashConfigurationProperty {DashConfigurationProperty -> ()
haddock_workaround_ :: (),
DashConfigurationProperty -> Maybe (Value Text)
manifestEndpointPrefix :: (Prelude.Maybe (Value Prelude.Text)),
DashConfigurationProperty -> Maybe (Value Text)
mpdLocation :: (Prelude.Maybe (Value Prelude.Text)),
DashConfigurationProperty -> Maybe (Value Text)
originManifestType :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (DashConfigurationProperty -> DashConfigurationProperty -> Bool
(DashConfigurationProperty -> DashConfigurationProperty -> Bool)
-> (DashConfigurationProperty -> DashConfigurationProperty -> Bool)
-> Eq DashConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DashConfigurationProperty -> DashConfigurationProperty -> Bool
== :: DashConfigurationProperty -> DashConfigurationProperty -> Bool
$c/= :: DashConfigurationProperty -> DashConfigurationProperty -> Bool
/= :: DashConfigurationProperty -> DashConfigurationProperty -> Bool
Prelude.Eq, Int -> DashConfigurationProperty -> ShowS
[DashConfigurationProperty] -> ShowS
DashConfigurationProperty -> String
(Int -> DashConfigurationProperty -> ShowS)
-> (DashConfigurationProperty -> String)
-> ([DashConfigurationProperty] -> ShowS)
-> Show DashConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DashConfigurationProperty -> ShowS
showsPrec :: Int -> DashConfigurationProperty -> ShowS
$cshow :: DashConfigurationProperty -> String
show :: DashConfigurationProperty -> String
$cshowList :: [DashConfigurationProperty] -> ShowS
showList :: [DashConfigurationProperty] -> ShowS
Prelude.Show)
mkDashConfigurationProperty :: DashConfigurationProperty
mkDashConfigurationProperty :: DashConfigurationProperty
mkDashConfigurationProperty
= DashConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
manifestEndpointPrefix :: Maybe (Value Text)
manifestEndpointPrefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
mpdLocation :: Maybe (Value Text)
mpdLocation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
originManifestType :: Maybe (Value Text)
originManifestType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DashConfigurationProperty where
toResourceProperties :: DashConfigurationProperty -> ResourceProperties
toResourceProperties DashConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashConfigurationProperty -> ()
manifestEndpointPrefix :: DashConfigurationProperty -> Maybe (Value Text)
mpdLocation :: DashConfigurationProperty -> Maybe (Value Text)
originManifestType :: DashConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
manifestEndpointPrefix :: Maybe (Value Text)
mpdLocation :: Maybe (Value Text)
originManifestType :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaTailor::PlaybackConfiguration.DashConfiguration",
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
"ManifestEndpointPrefix"
(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)
manifestEndpointPrefix,
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
"MpdLocation" (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)
mpdLocation,
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
"OriginManifestType" (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)
originManifestType])}
instance JSON.ToJSON DashConfigurationProperty where
toJSON :: DashConfigurationProperty -> Value
toJSON DashConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashConfigurationProperty -> ()
manifestEndpointPrefix :: DashConfigurationProperty -> Maybe (Value Text)
mpdLocation :: DashConfigurationProperty -> Maybe (Value Text)
originManifestType :: DashConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
manifestEndpointPrefix :: Maybe (Value Text)
mpdLocation :: Maybe (Value Text)
originManifestType :: 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
"ManifestEndpointPrefix"
(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)
manifestEndpointPrefix,
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
"MpdLocation" (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)
mpdLocation,
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
"OriginManifestType" (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)
originManifestType]))
instance Property "ManifestEndpointPrefix" DashConfigurationProperty where
type PropertyType "ManifestEndpointPrefix" DashConfigurationProperty = Value Prelude.Text
set :: PropertyType "ManifestEndpointPrefix" DashConfigurationProperty
-> DashConfigurationProperty -> DashConfigurationProperty
set PropertyType "ManifestEndpointPrefix" DashConfigurationProperty
newValue DashConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashConfigurationProperty -> ()
manifestEndpointPrefix :: DashConfigurationProperty -> Maybe (Value Text)
mpdLocation :: DashConfigurationProperty -> Maybe (Value Text)
originManifestType :: DashConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
manifestEndpointPrefix :: Maybe (Value Text)
mpdLocation :: Maybe (Value Text)
originManifestType :: Maybe (Value Text)
..}
= DashConfigurationProperty
{manifestEndpointPrefix :: Maybe (Value Text)
manifestEndpointPrefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ManifestEndpointPrefix" DashConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
mpdLocation :: Maybe (Value Text)
originManifestType :: Maybe (Value Text)
haddock_workaround_ :: ()
mpdLocation :: Maybe (Value Text)
originManifestType :: Maybe (Value Text)
..}
instance Property "MpdLocation" DashConfigurationProperty where
type PropertyType "MpdLocation" DashConfigurationProperty = Value Prelude.Text
set :: PropertyType "MpdLocation" DashConfigurationProperty
-> DashConfigurationProperty -> DashConfigurationProperty
set PropertyType "MpdLocation" DashConfigurationProperty
newValue DashConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashConfigurationProperty -> ()
manifestEndpointPrefix :: DashConfigurationProperty -> Maybe (Value Text)
mpdLocation :: DashConfigurationProperty -> Maybe (Value Text)
originManifestType :: DashConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
manifestEndpointPrefix :: Maybe (Value Text)
mpdLocation :: Maybe (Value Text)
originManifestType :: Maybe (Value Text)
..}
= DashConfigurationProperty
{mpdLocation :: Maybe (Value Text)
mpdLocation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MpdLocation" DashConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
manifestEndpointPrefix :: Maybe (Value Text)
originManifestType :: Maybe (Value Text)
haddock_workaround_ :: ()
manifestEndpointPrefix :: Maybe (Value Text)
originManifestType :: Maybe (Value Text)
..}
instance Property "OriginManifestType" DashConfigurationProperty where
type PropertyType "OriginManifestType" DashConfigurationProperty = Value Prelude.Text
set :: PropertyType "OriginManifestType" DashConfigurationProperty
-> DashConfigurationProperty -> DashConfigurationProperty
set PropertyType "OriginManifestType" DashConfigurationProperty
newValue DashConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: DashConfigurationProperty -> ()
manifestEndpointPrefix :: DashConfigurationProperty -> Maybe (Value Text)
mpdLocation :: DashConfigurationProperty -> Maybe (Value Text)
originManifestType :: DashConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
manifestEndpointPrefix :: Maybe (Value Text)
mpdLocation :: Maybe (Value Text)
originManifestType :: Maybe (Value Text)
..}
= DashConfigurationProperty
{originManifestType :: Maybe (Value Text)
originManifestType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OriginManifestType" DashConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
manifestEndpointPrefix :: Maybe (Value Text)
mpdLocation :: Maybe (Value Text)
haddock_workaround_ :: ()
manifestEndpointPrefix :: Maybe (Value Text)
mpdLocation :: Maybe (Value Text)
..}