module Stratosphere.MediaConnect.Flow.MediaStreamAttributesProperty (
module Exports, MediaStreamAttributesProperty(..),
mkMediaStreamAttributesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaConnect.Flow.FmtpProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MediaStreamAttributesProperty
=
MediaStreamAttributesProperty {MediaStreamAttributesProperty -> ()
haddock_workaround_ :: (),
MediaStreamAttributesProperty -> Maybe FmtpProperty
fmtp :: (Prelude.Maybe FmtpProperty),
MediaStreamAttributesProperty -> Maybe (Value Text)
lang :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MediaStreamAttributesProperty
-> MediaStreamAttributesProperty -> Bool
(MediaStreamAttributesProperty
-> MediaStreamAttributesProperty -> Bool)
-> (MediaStreamAttributesProperty
-> MediaStreamAttributesProperty -> Bool)
-> Eq MediaStreamAttributesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MediaStreamAttributesProperty
-> MediaStreamAttributesProperty -> Bool
== :: MediaStreamAttributesProperty
-> MediaStreamAttributesProperty -> Bool
$c/= :: MediaStreamAttributesProperty
-> MediaStreamAttributesProperty -> Bool
/= :: MediaStreamAttributesProperty
-> MediaStreamAttributesProperty -> Bool
Prelude.Eq, Int -> MediaStreamAttributesProperty -> ShowS
[MediaStreamAttributesProperty] -> ShowS
MediaStreamAttributesProperty -> String
(Int -> MediaStreamAttributesProperty -> ShowS)
-> (MediaStreamAttributesProperty -> String)
-> ([MediaStreamAttributesProperty] -> ShowS)
-> Show MediaStreamAttributesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MediaStreamAttributesProperty -> ShowS
showsPrec :: Int -> MediaStreamAttributesProperty -> ShowS
$cshow :: MediaStreamAttributesProperty -> String
show :: MediaStreamAttributesProperty -> String
$cshowList :: [MediaStreamAttributesProperty] -> ShowS
showList :: [MediaStreamAttributesProperty] -> ShowS
Prelude.Show)
mkMediaStreamAttributesProperty :: MediaStreamAttributesProperty
mkMediaStreamAttributesProperty :: MediaStreamAttributesProperty
mkMediaStreamAttributesProperty
= MediaStreamAttributesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fmtp :: Maybe FmtpProperty
fmtp = Maybe FmtpProperty
forall a. Maybe a
Prelude.Nothing,
lang :: Maybe (Value Text)
lang = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MediaStreamAttributesProperty where
toResourceProperties :: MediaStreamAttributesProperty -> ResourceProperties
toResourceProperties MediaStreamAttributesProperty {Maybe (Value Text)
Maybe FmtpProperty
()
haddock_workaround_ :: MediaStreamAttributesProperty -> ()
fmtp :: MediaStreamAttributesProperty -> Maybe FmtpProperty
lang :: MediaStreamAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fmtp :: Maybe FmtpProperty
lang :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaConnect::Flow.MediaStreamAttributes",
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 -> FmtpProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Fmtp" (FmtpProperty -> (Key, Value))
-> Maybe FmtpProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FmtpProperty
fmtp,
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
"Lang" (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)
lang])}
instance JSON.ToJSON MediaStreamAttributesProperty where
toJSON :: MediaStreamAttributesProperty -> Value
toJSON MediaStreamAttributesProperty {Maybe (Value Text)
Maybe FmtpProperty
()
haddock_workaround_ :: MediaStreamAttributesProperty -> ()
fmtp :: MediaStreamAttributesProperty -> Maybe FmtpProperty
lang :: MediaStreamAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fmtp :: Maybe FmtpProperty
lang :: 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 -> FmtpProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Fmtp" (FmtpProperty -> (Key, Value))
-> Maybe FmtpProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FmtpProperty
fmtp,
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
"Lang" (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)
lang]))
instance Property "Fmtp" MediaStreamAttributesProperty where
type PropertyType "Fmtp" MediaStreamAttributesProperty = FmtpProperty
set :: PropertyType "Fmtp" MediaStreamAttributesProperty
-> MediaStreamAttributesProperty -> MediaStreamAttributesProperty
set PropertyType "Fmtp" MediaStreamAttributesProperty
newValue MediaStreamAttributesProperty {Maybe (Value Text)
Maybe FmtpProperty
()
haddock_workaround_ :: MediaStreamAttributesProperty -> ()
fmtp :: MediaStreamAttributesProperty -> Maybe FmtpProperty
lang :: MediaStreamAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fmtp :: Maybe FmtpProperty
lang :: Maybe (Value Text)
..}
= MediaStreamAttributesProperty {fmtp :: Maybe FmtpProperty
fmtp = FmtpProperty -> Maybe FmtpProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Fmtp" MediaStreamAttributesProperty
FmtpProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
lang :: Maybe (Value Text)
haddock_workaround_ :: ()
lang :: Maybe (Value Text)
..}
instance Property "Lang" MediaStreamAttributesProperty where
type PropertyType "Lang" MediaStreamAttributesProperty = Value Prelude.Text
set :: PropertyType "Lang" MediaStreamAttributesProperty
-> MediaStreamAttributesProperty -> MediaStreamAttributesProperty
set PropertyType "Lang" MediaStreamAttributesProperty
newValue MediaStreamAttributesProperty {Maybe (Value Text)
Maybe FmtpProperty
()
haddock_workaround_ :: MediaStreamAttributesProperty -> ()
fmtp :: MediaStreamAttributesProperty -> Maybe FmtpProperty
lang :: MediaStreamAttributesProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
fmtp :: Maybe FmtpProperty
lang :: Maybe (Value Text)
..}
= MediaStreamAttributesProperty {lang :: Maybe (Value Text)
lang = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Lang" MediaStreamAttributesProperty
Value Text
newValue, Maybe FmtpProperty
()
haddock_workaround_ :: ()
fmtp :: Maybe FmtpProperty
haddock_workaround_ :: ()
fmtp :: Maybe FmtpProperty
..}