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