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