module Stratosphere.IVS.Channel.MultitrackInputConfigurationProperty (
MultitrackInputConfigurationProperty(..),
mkMultitrackInputConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MultitrackInputConfigurationProperty
=
MultitrackInputConfigurationProperty {MultitrackInputConfigurationProperty -> ()
haddock_workaround_ :: (),
MultitrackInputConfigurationProperty -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool)),
MultitrackInputConfigurationProperty -> Maybe (Value Text)
maximumResolution :: (Prelude.Maybe (Value Prelude.Text)),
MultitrackInputConfigurationProperty -> Maybe (Value Text)
policy :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty -> Bool
(MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty -> Bool)
-> (MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty -> Bool)
-> Eq MultitrackInputConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty -> Bool
== :: MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty -> Bool
$c/= :: MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty -> Bool
/= :: MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty -> Bool
Prelude.Eq, Int -> MultitrackInputConfigurationProperty -> ShowS
[MultitrackInputConfigurationProperty] -> ShowS
MultitrackInputConfigurationProperty -> String
(Int -> MultitrackInputConfigurationProperty -> ShowS)
-> (MultitrackInputConfigurationProperty -> String)
-> ([MultitrackInputConfigurationProperty] -> ShowS)
-> Show MultitrackInputConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MultitrackInputConfigurationProperty -> ShowS
showsPrec :: Int -> MultitrackInputConfigurationProperty -> ShowS
$cshow :: MultitrackInputConfigurationProperty -> String
show :: MultitrackInputConfigurationProperty -> String
$cshowList :: [MultitrackInputConfigurationProperty] -> ShowS
showList :: [MultitrackInputConfigurationProperty] -> ShowS
Prelude.Show)
mkMultitrackInputConfigurationProperty ::
MultitrackInputConfigurationProperty
mkMultitrackInputConfigurationProperty :: MultitrackInputConfigurationProperty
mkMultitrackInputConfigurationProperty
= MultitrackInputConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
maximumResolution :: Maybe (Value Text)
maximumResolution = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, policy :: Maybe (Value Text)
policy = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MultitrackInputConfigurationProperty where
toResourceProperties :: MultitrackInputConfigurationProperty -> ResourceProperties
toResourceProperties MultitrackInputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MultitrackInputConfigurationProperty -> ()
enabled :: MultitrackInputConfigurationProperty -> Maybe (Value Bool)
maximumResolution :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
policy :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
maximumResolution :: Maybe (Value Text)
policy :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IVS::Channel.MultitrackInputConfiguration",
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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
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
"MaximumResolution" (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)
maximumResolution,
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
"Policy" (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)
policy])}
instance JSON.ToJSON MultitrackInputConfigurationProperty where
toJSON :: MultitrackInputConfigurationProperty -> Value
toJSON MultitrackInputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MultitrackInputConfigurationProperty -> ()
enabled :: MultitrackInputConfigurationProperty -> Maybe (Value Bool)
maximumResolution :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
policy :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
maximumResolution :: Maybe (Value Text)
policy :: 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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Enabled" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
enabled,
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
"MaximumResolution" (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)
maximumResolution,
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
"Policy" (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)
policy]))
instance Property "Enabled" MultitrackInputConfigurationProperty where
type PropertyType "Enabled" MultitrackInputConfigurationProperty = Value Prelude.Bool
set :: PropertyType "Enabled" MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty
set PropertyType "Enabled" MultitrackInputConfigurationProperty
newValue MultitrackInputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MultitrackInputConfigurationProperty -> ()
enabled :: MultitrackInputConfigurationProperty -> Maybe (Value Bool)
maximumResolution :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
policy :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
maximumResolution :: Maybe (Value Text)
policy :: Maybe (Value Text)
..}
= MultitrackInputConfigurationProperty
{enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" MultitrackInputConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
maximumResolution :: Maybe (Value Text)
policy :: Maybe (Value Text)
haddock_workaround_ :: ()
maximumResolution :: Maybe (Value Text)
policy :: Maybe (Value Text)
..}
instance Property "MaximumResolution" MultitrackInputConfigurationProperty where
type PropertyType "MaximumResolution" MultitrackInputConfigurationProperty = Value Prelude.Text
set :: PropertyType
"MaximumResolution" MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty
set PropertyType
"MaximumResolution" MultitrackInputConfigurationProperty
newValue MultitrackInputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MultitrackInputConfigurationProperty -> ()
enabled :: MultitrackInputConfigurationProperty -> Maybe (Value Bool)
maximumResolution :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
policy :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
maximumResolution :: Maybe (Value Text)
policy :: Maybe (Value Text)
..}
= MultitrackInputConfigurationProperty
{maximumResolution :: Maybe (Value Text)
maximumResolution = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"MaximumResolution" MultitrackInputConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
policy :: Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
policy :: Maybe (Value Text)
..}
instance Property "Policy" MultitrackInputConfigurationProperty where
type PropertyType "Policy" MultitrackInputConfigurationProperty = Value Prelude.Text
set :: PropertyType "Policy" MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty
-> MultitrackInputConfigurationProperty
set PropertyType "Policy" MultitrackInputConfigurationProperty
newValue MultitrackInputConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: MultitrackInputConfigurationProperty -> ()
enabled :: MultitrackInputConfigurationProperty -> Maybe (Value Bool)
maximumResolution :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
policy :: MultitrackInputConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
maximumResolution :: Maybe (Value Text)
policy :: Maybe (Value Text)
..}
= MultitrackInputConfigurationProperty
{policy :: Maybe (Value Text)
policy = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Policy" MultitrackInputConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
maximumResolution :: Maybe (Value Text)
haddock_workaround_ :: ()
enabled :: Maybe (Value Bool)
maximumResolution :: Maybe (Value Text)
..}