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